/* Shared table styling based on the Connection Type reference screen. */
:root {
    --table-ink: #23465f;
    --table-border: #dedede;
    --table-blue: #2196f3;
}

/* Compact, consistent controls across forms. Keep floating labels readable. */
.form-control:not(textarea),
.form-select:not([multiple]):not([size]) {
    min-height: 36px;
    height: 36px;
    padding: .375rem .65rem;
    font-size: .9rem;
}

.form-floating > .form-control:not(textarea),
.form-floating > .form-select:not([multiple]):not([size]) {
    height: 40px !important;
    min-height: 40px !important;
    padding: .9rem .75rem .1rem !important;
}

.form-floating > label {
    padding: .75rem;
    font-size: .88rem;
}

textarea.form-control {
    min-height: 76px;
    padding: .45rem .65rem;
    font-size: .9rem;
}

.table-responsive {
    border-radius: 0;
}

.employee-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.employee-list-table {
    min-width: 1600px;
}

/* DataTables listings */
.dataTables_wrapper {
    color: var(--table-ink);
    font-family: inherit;
    font-size: 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--table-ink);
    margin: 0 0 .75rem;
    font-size: .82rem;
    text-transform: uppercase;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    height: 30px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #212529;
    padding: .3rem .55rem;
    text-transform: none;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 72px;
    margin: 0 .2rem;
}

.dataTables_wrapper .dataTables_filter input {
    width: min(145px, 40vw);
    margin-left: .35rem;
}

.dataTables_wrapper table.dataTable,
.table:not(.table-borderless) {
    width: 100% !important;
    margin: 0 0 .75rem !important;
    border: 1px solid var(--table-border);
    border-collapse: collapse !important;
    color: #171717;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td,
.table:not(.table-borderless) thead th {
    padding: .45rem .75rem;
    border: 1px solid #fff;
    background: var(--table-ink) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable tbody td,
.table:not(.table-borderless) tbody td {
    padding: .85rem .75rem;
    border: 1px solid #e8e8e8;
    background: #fff;
    font-size: 1rem;
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable tbody tr:hover td,
.table:not(.table-borderless) tbody tr:hover td {
    background-color: #f7fafc;
}

.dataTables_wrapper table.dataTable.no-footer {
    border-bottom: 1px solid var(--table-border);
}

.dataTables_wrapper .dataTables_info {
    padding-top: .75rem;
    color: #171717;
    font-size: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: .25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 42px;
    margin-left: .2rem;
    padding: .55rem .75rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #8b9299 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--table-blue) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eaf4fd !important;
    color: var(--table-ink) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #b5bbc0 !important;
}

@media (max-width: 575.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: calc(100% - 90px);
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: left;
    }
}

/* Keep sidebar menu labels compact across all pages using the shared layout. */
.sb-sidenav .sb-sidenav-menu .nav .nav-link {
    font-size: .82rem;
}
