:root {
    --grid-ink: #142536;
    --grid-muted: #647789;
    --grid-line: #dce6ee;
    --grid-accent: #13a6c7;
    --grid-panel: #fff;
}

.grid-shell,
.grid-filter-card {
    overflow: hidden;
    border: 1px solid var(--grid-line);
    border-radius: 14px;
    background: var(--grid-panel);
    box-shadow: 0 10px 26px rgba(17, 48, 72, .07);
}

.grid-shell > .table-responsive {
    border-radius: inherit;
    overscroll-behavior-inline: contain;
    scrollbar-color: #8daab9 #edf3f6;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.grid-shell > .table-responsive::-webkit-scrollbar {
    height: 9px;
}

.grid-shell > .table-responsive::-webkit-scrollbar-track {
    background: #edf3f6;
}

.grid-shell > .table-responsive::-webkit-scrollbar-thumb {
    border: 2px solid #edf3f6;
    border-radius: 999px;
    background: #8daab9;
}

table.data-grid {
    min-width: 720px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--grid-ink);
    font-size: .94rem;
}

table.data-grid thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .95rem 1rem;
    border: 0;
    border-bottom: 1px solid #24465c;
    background: linear-gradient(110deg, #13283b, #1b4058);
    color: #f3faff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

table.data-grid tbody td {
    padding: .9rem 1rem;
    border-color: #e7eef3;
    background: #fff;
    vertical-align: middle;
}

table.data-grid tbody tr:nth-child(even) td {
    background: #f7fafc;
}

table.data-grid tbody tr:hover td {
    background: #edf8fb;
}

table.data-grid td .form-control,
table.data-grid td .form-select {
    min-width: 7rem;
}

table.data-grid tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

table.data-grid tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.grid-badge,
.grid-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: .2rem .65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 650;
    white-space: nowrap;
}

.grid-badge {
    border-color: #d3eaf0;
    background: #edf8fb;
    color: #17627b;
}

.grid-status-on {
    border-color: #c7ead7;
    background: #eaf8f0;
    color: #17643d;
}

.grid-status-off {
    border-color: #f2d1d4;
    background: #fff0f1;
    color: #a12732;
}

.grid-shell .dataTables_wrapper {
    padding: 1rem;
}

.grid-shell .dataTables_wrapper .dataTables_filter input,
.grid-shell .dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--grid-line);
    border-radius: 8px;
    padding: .35rem .6rem;
}

.grid-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border: 1px solid #bde5ed !important;
    border-radius: 8px;
    background: #e9f8fb !important;
    color: #14566c !important;
}

.grid-shell .btn,
.grid-filter-card .btn {
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    table.data-grid {
        min-width: 640px;
        font-size: .88rem;
    }

    table.data-grid thead th,
    table.data-grid tbody td {
        padding: .75rem .8rem;
    }

    .grid-shell,
    .grid-filter-card {
        border-radius: 11px;
    }

    .grid-shell > .table-responsive {
        max-width: 100%;
    }

    .grid-shell .dataTables_wrapper {
        padding: .75rem;
    }

    .grid-shell .dataTables_wrapper .dataTables_filter,
    .grid-shell .dataTables_wrapper .dataTables_length {
        float: none;
        margin-bottom: .75rem;
        text-align: left;
    }

    .grid-shell .dataTables_wrapper .dataTables_filter input {
        max-width: min(65vw, 15rem);
    }

    .grid-shell .dataTables_wrapper .dataTables_paginate {
        overflow-x: auto;
        white-space: nowrap;
    }
}
