﻿
.cw-gridview {
    border-collapse: collapse !important;
    border-spacing: 0 ;
    border: 0 ;
    font-size: 10pt;
}

.cw-gridview thead th {
    background-color: inherit;
    border-bottom: solid 1px gainsboro;
    border-left: 0;
    border-right: solid 1px gainsboro;
    border-top: 0;
    font-weight: normal;
    overflow: hidden;
    padding: 2px 4px;
    text-overflow: ellipsis;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.cw-gridview tbody td {
    background-color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
}

.cw-gridview td {
    padding: 0px 4px;
    border: solid 1px gainsboro;
}

.cw-gridview tbody tr:nth-child(even) {
    background-color: white;
}

.cw-gridview tbody tr:nth-child(odd) {
    background-color: #eff3fb;
}

.cw-input-row td input,
.cw-input-row td select {
    min-height: calc(1.5em + 3px);
    padding: 0rem 0.5rem;
}

.cw-input-row td input[type=checkbox],
.cw-input-row td input[type=radio] {
    min-height: inherit;
    padding: inherit;
}

.cw-datatables-length-placeholder {
    clear: none !important;
    float: left;
    margin-left: 30px;
    padding-top: 5px;
}

.cw-datatables-paginate-placeholder {
    clear: none !important;
    float: left;
    margin-top: 0px;
    margin-left: 30px;
}

.cw-datatables-paginate-placeholder .dataTables_paginate .paginate_button {
    padding: 0.20em 0.10em !important;
    width: 2em !important;
    height: 2em !important;
}

.cw-datatables-paginate-placeholder .dataTables_paginate span.ellipsis {
    display: inline-block;
    width: 2em !important;
    margin: 0 1px;
}

.cw-datatables {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 0 !important;
    font-size: 10pt;
    margin-left: 0 !important;
    overflow: auto !important;
    width: max-content !important;
}

.cw-datatables thead th {
    background-color: inherit;
    border-bottom: solid 1px gainsboro;
    border-left: 0;
    border-right: solid 1px gainsboro;
    border-top: 0;
    font-weight: normal !important;
    overflow: hidden;
    padding: 2px 18px !important;
    position: sticky;
    text-overflow: ellipsis;
    top: 0;
    white-space: nowrap;
}

.cw-datatables tbody td {
    background-color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
}

.cw-datatables tbody tr:nth-child(even) {
    background-color: white;
}

.cw-datatables tbody tr:nth-child(odd) {
    background-color: #eff3fb;
}

.cw-datatables:focus {
    outline: none !important;
}

.cw-datatables th.cw-fixed-column-header {
    z-index: 2;
}

.cw-datatables td {
    border-bottom: solid 1px gainsboro;
    border-left: 0;
    border-right: solid 1px gainsboro;
    border-top: 0;
    padding: 0 5px !important;
}

.cw-datatables tr:first-child th {
    background-color: inherit;
}

.cw-datatables thead th:first-child {
    border-left: 1px solid gainsboro;
}

.cw-datatables th {
    background-color: inherit;
    border-top: 0;
    position: sticky;
    top: 0;
}

.cw-datatables th.sorting_disabled.DTCR_tableHeader {
    cursor: auto !important;
}

.cw-datatables-length-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.cw-datatalbes-nodata {
    font-style: italic;
    margin-left: 5px;
    text-align: left;
}
.cw-datatalbes-nodata:after {
    content: "データがありません";
}

.cw-resizable-column {
}

.cw-resizable-column:before {
    content: '';
    position: absolute;
    top: 1px;
    right: 0;
    width: 4px;
    height: calc(100% - 2px);
    background-image: repeating-linear-gradient(-45deg, #eff3fb, #eff3fb 1px, #507cd1 2px, #507cd1 3px);
}

table.dataTable tbody tr.selected {
    background-color: var(--cw-color-selectedrow);
}

/* override */
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {
    background-position: center right 3px!important;
}

/* override */
.dataTables_length select {
    background-color: white !important;
}