/* =========================================================================
   Hident Clinic - interface theme
   Loaded last, it re-dresses the old template without touching its markup.
   ========================================================================= */

:root {
    /* brand */
    --brand-900: #10233f;
    --brand-800: #16325c;
    --brand-700: #1b4079;
    --brand-600: #20549f;
    --brand-500: #2f6ac4;
    --brand-100: #e8f0fc;
    --brand-50:  #f4f8fe;

    /* accents */
    --green-600: #1f8a52;
    --green-100: #e6f6ed;
    --red-600:   #c23b33;
    --red-100:   #fdecea;
    --amber-600: #b7791f;
    --amber-100: #fdf4e3;
    --cyan-600:  #0e7c99;
    --cyan-100:  #e4f5fa;

    /* neutrals */
    --ink-900: #131a26;
    --ink-700: #33415c;
    --ink-500: #5b6882;
    --ink-400: #7c88a1;
    --ink-300: #aab4c8;
    --line:    #e4e9f2;
    --line-2:  #eef1f7;
    --surface: #ffffff;
    --canvas:  #f4f6fb;

    --radius:    10px;
    --radius-sm: 7px;
    --shadow-1: 0 1px 2px rgba(16, 35, 63, .06), 0 1px 3px rgba(16, 35, 63, .04);
    --shadow-2: 0 4px 14px rgba(16, 35, 63, .10);
    --shadow-3: 0 18px 40px rgba(16, 35, 63, .18);

    --sidebar-w: 236px;
    --header-h: 62px;

    --font: "Segoe UI", Inter, Bahnschrift, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------------------------------------------- base */

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--canvas) !important;
    background-image: none !important;
    font-family: var(--font) !important;
    font-size: 14px;
    color: var(--ink-700);
    -webkit-font-smoothing: antialiased;
}

* { outline: none; }

a { color: var(--brand-600); transition: color .15s ease; }
a:hover, a:focus { color: var(--brand-800); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--ink-900); font-weight: 600; }

code {
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    letter-spacing: .3px;
}

::selection { background: var(--brand-100); color: var(--brand-800); }

/* thin, quiet scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfd7e6; border-radius: 10px; border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ----------------------------------------------------------- top header */

.header {
    background: var(--surface) !important;
    height: var(--header-h) !important;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
}

.header .header-left {
    width: var(--sidebar-w) !important;
    height: var(--header-h) !important;
    background: transparent !important;
    border-right: 1px solid var(--line);
    padding: 0 18px;
    display: flex;
    align-items: center;
    float: left;
}

.header .header-left .logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
    line-height: 1;
    padding: 0 !important;
}

.header .header-left .logo img {
    width: 34px; height: 34px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: var(--shadow-1);
}

.header .header-left .logo span {
    color: var(--ink-900) !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.header .user-menu { margin: 0; height: var(--header-h); display: flex; align-items: center; }
.header .user-menu > li { display: flex; align-items: center; }

.header .user-menu .nav-link,
.header .user-menu > li > a {
    color: var(--ink-700) !important;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header .user-menu > li > a:hover { background: var(--brand-50); }

/* the clock in the corner */
.header .user-menu #target-div p,
#target-div p {
    color: var(--ink-500) !important;
    margin: 0 14px 0 0 !important;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.header .user-img img,
.user-img .rounded-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid var(--line);
}

.header .status.online {
    background: var(--green-600);
    border: 2px solid #fff;
    width: 9px; height: 9px;
}

.mobile_btn {
    display: none;
    color: var(--ink-700) !important;
    font-size: 18px;
    padding: 0 16px;
    line-height: var(--header-h);
}

/* dropdown */
.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    padding: 6px;
    margin-top: 8px;
    min-width: 210px;
}

.dropdown-menu .dropdown-item {
    display: block;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: var(--ink-700);
    font-size: 13.5px;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

/* -------------------------------------------------------------- sidebar */

.sidebar {
    background: linear-gradient(180deg, var(--brand-900) 0%, var(--brand-800) 100%) !important;
    width: var(--sidebar-w) !important;
    top: var(--header-h) !important;
    bottom: 0;
    position: fixed;
    z-index: 1000;
    border-right: none;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}

.sidebar-inner { height: 100%; overflow-y: auto; overflow-x: hidden; }
.sidebar-inner::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-color: transparent; }

.sidebar-menu { padding: 14px 12px 30px 12px; }
.sidebar-menu ul { list-style: none; margin: 0; padding: 0; }
.sidebar-menu li { margin: 1px 0; }

.sidebar-menu li > a {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 9px 12px !important;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .74) !important;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    transition: background .15s ease, color .15s ease;
}

.sidebar-menu li > a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
}

.sidebar-menu li > a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: .85;
    flex: 0 0 18px;
}

.sidebar-menu li.active > a {
    background: var(--brand-600) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(32, 84, 159, .55);
}

.sidebar-menu li.active > a i { opacity: 1; }

/* the small grey caption that opens a group */
.sidebar-menu li.menu-title,
.sidebar-menu .menu-title {
    color: rgba(255, 255, 255, .40) !important;
    font-size: 10.5px !important;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 18px 12px 6px 12px !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none;
}

.sidebar-menu li.menu-title:first-child { padding-top: 4px !important; }

/* --------------------------------------------------------- page canvas */

.page-wrapper {
    margin-left: var(--sidebar-w);
    padding-top: var(--header-h);
    min-height: 100vh;
}

.page-wrapper > .content {
    padding: 24px 26px 40px 26px;
}

.page-title {
    font-size: 19px !important;
    font-weight: 650;
    color: var(--ink-900) !important;
    margin: 0 0 2px 0;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i { color: var(--brand-600); font-size: 17px; }

.page-title small,
.page-title .inv-doc-no {
    font-size: 12px;
    color: var(--ink-400);
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 20px;
}

/* --------------------------------------------------------------- cards */

.inv-card,
.card-box,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    padding: 20px;
    margin-bottom: 22px;
}

.inv-card-title {
    font-size: 13px !important;
    font-weight: 700;
    color: var(--ink-900) !important;
    text-transform: uppercase;
    letter-spacing: .7px;
    border: none !important;
    padding: 0 0 14px 0 !important;
    margin: 0 0 16px 0 !important;
    border-bottom: 1px solid var(--line-2) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------------- buttons */

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all .15s ease;
    box-shadow: none;
    line-height: 1.45;
}

.btn:active, .btn:focus { box-shadow: 0 0 0 3px var(--brand-100) !important; outline: none; }

.btn-primary {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.open > .dropdown-toggle.btn-primary {
    background: var(--brand-700) !important;
    border-color: var(--brand-700) !important;
    color: #fff !important;
}

.btn-default {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink-700);
}
.btn-default:hover, .btn-default:focus, .btn-default:active {
    background: var(--brand-50) !important;
    border-color: #cfdcf2 !important;
    color: var(--brand-700) !important;
}

.btn-success { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background: #19703f !important; border-color: #19703f !important; color: #fff !important;
}

.btn-danger { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    background: #a52f28 !important; border-color: #a52f28 !important; color: #fff !important;
}

.btn-info { background: var(--cyan-600); border-color: var(--cyan-600); color: #fff; }
.btn-info:hover, .btn-info:focus, .btn-info:active {
    background: #0b647d !important; border-color: #0b647d !important; color: #fff !important;
}

.btn-warning { background: var(--amber-600); border-color: var(--amber-600); color: #fff; }

.btn-rounded { border-radius: 22px; padding-left: 18px; padding-right: 18px; }

.btn-sm, .btn-xs { padding: 5px 11px; font-size: 12.5px; border-radius: 6px; }

.submit-btn {
    min-width: 150px;
    text-transform: none;   /* the old template shouted, the theme does not */
    font-size: 14px;
}

.btn i { margin-right: 6px; }
.btn i:only-child { margin-right: 0; }

/* the small buttons that live inside a table row */
.inv-btn-sm {
    padding: 4px 10px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    font-weight: 600;
}
.inv-btn-sm i { margin-right: 0; }

/* ---------------------------------------------------------------- forms */

label {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--ink-500);
    margin-bottom: 6px;
    font-style: normal !important;
}

.form-group { margin-bottom: 18px; }

.form-control {
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    color: var(--ink-900);
    background: var(--surface);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.form-control::placeholder { color: var(--ink-300); }
.form-control[readonly] { background: var(--line-2); color: var(--ink-500); }

select.form-control { padding-right: 30px; }
textarea.form-control { height: auto; }

.input-group-btn .btn { height: 40px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .form-control:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
.form-inline label { margin: 0 6px 0 2px; vertical-align: middle; }
.form-inline .btn { vertical-align: middle; }
.form-inline > * { margin-bottom: 6px; }

.text-danger { color: var(--red-600) !important; }
.text-muted { color: var(--ink-400) !important; }

/* --------------------------------------------------------------- tables */

.table {
    margin-bottom: 0;
    color: var(--ink-700);
    background: var(--surface);
}

.table > thead > tr > th {
    background: var(--brand-50);
    border-bottom: 1px solid var(--line) !important;
    border-top: none !important;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    padding: 12px 14px;
    vertical-align: middle;
    white-space: nowrap;
}

.table > tbody > tr > td {
    border-top: 1px solid var(--line-2) !important;
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 13.5px;
}

.table > tbody > tr:hover > td { background: var(--brand-50); }

.table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.table-striped > tbody > tr:nth-of-type(even) { background: #fbfcfe; }

.table-bordered, .table-bordered > tbody > tr > td, .table-bordered > thead > tr > th {
    border-color: var(--line) !important;
}

.table-responsive {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: auto;
    background: var(--surface);
}

.inv-card .table-responsive { box-shadow: none; }

/* the blue summary line at the bottom of a list */
.inv-total-row,
.inv-total-row td {
    background: var(--brand-800) !important;
    color: #fff !important;
    border-color: var(--brand-800) !important;
    font-weight: 700;
}
.inv-total-row:hover td { background: var(--brand-800) !important; }
.inv-total-row a { color: #fff !important; text-decoration: underline; }

/* numbers line up under each other */
.text-right { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- labels */

.label, .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.4;
}

.label-success, .badge-success { background: var(--green-100); color: var(--green-600); }
.label-danger,  .badge-danger  { background: var(--red-100);   color: var(--red-600); }
.label-warning, .badge-warning { background: var(--amber-100); color: var(--amber-600); }
.label-info,    .badge-info    { background: var(--cyan-100);  color: var(--cyan-600); }
.label-primary, .badge-primary { background: var(--brand-100); color: var(--brand-700); }
.label-default, .badge-default { background: var(--line-2);    color: var(--ink-500); }

/* --------------------------------------------------------------- alerts */

.alert {
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-600);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    background: var(--surface);
    color: var(--ink-700);
    box-shadow: var(--shadow-1);
}

.alert-danger  { border-left-color: var(--red-600);   background: var(--red-100); }
.alert-success { border-left-color: var(--green-600); background: var(--green-100); }
.alert-warning { border-left-color: var(--amber-600); background: var(--amber-100); }
.alert-info    { border-left-color: var(--cyan-600);  background: var(--cyan-100); }

/* --------------------------------------------------------------- modals */

.modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow-3);
    overflow: hidden;
}

.modal-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 22px;
    /* the markup puts the close button before the title, the way bootstrap 3
       expects, so the flex header that bootstrap 4 brings is turned off       */
    display: block;
}

.modal-header .close {
    float: right;
    margin: -2px 0 0 12px;
    padding: 0;
    line-height: 1;
    background: none;
    border: 0;
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.modal-title i { color: var(--brand-600); margin-right: 6px; }

.modal-body { padding: 22px; }

.modal-footer {
    background: #fafbfe;
    border-top: 1px solid var(--line);
    padding: 14px 22px;
}

.modal-backdrop.in { opacity: .45; }
.modal .close { font-size: 24px; opacity: .35; font-weight: 400; }
.modal .close:hover { opacity: .7; }

/* ------------------------------------------------------------ utilities */

.m-t-20 { margin-top: 20px !important; }
.m-b-20 { margin-bottom: 20px !important; }
.mb-0   { margin-bottom: 0 !important; }

.inv-hint {
    background: var(--brand-50);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-500);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--ink-500);
    font-size: 12.5px;
    line-height: 1.65;
}
.inv-hint b { color: var(--ink-900); }

/* ------------------------------------------------------------ login page */

.account-wrapper {
    background: var(--brand-900) !important;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(47, 106, 196, .35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(14, 124, 153, .30), transparent 45%),
        linear-gradient(140deg, #0d1d35 0%, #16325c 60%, #1b4079 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.account-page, .account-center { width: 100%; max-width: 420px; margin: 0 auto; float: none !important; }

.account-box {
    background: var(--surface);
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(4, 12, 26, .45);
    padding: 34px 30px 26px 30px;
}

.account-logo { text-align: center; margin-bottom: 26px; }
.account-logo img {
    width: 64px; height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(16, 35, 63, .18);
    margin-bottom: 14px;
}
.account-logo h1 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -.4px;
    color: var(--ink-900);
}
.account-logo p { color: var(--ink-400); font-size: 13px; margin: 0; }

.account-box .form-control { height: 46px; padding-left: 40px; }

/* the small icon sitting inside the field */
.account-field { position: relative; }
.account-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-300);
    font-size: 14px;
    z-index: 2;
}
.account-field .form-control:focus + .account-eye i,
.account-field .form-control:focus ~ i { color: var(--brand-500); }

.account-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-300);
    padding: 8px 10px;
    cursor: pointer;
}
.account-eye:hover { color: var(--brand-600); }

.account-alert {
    display: none;
    background: var(--red-100);
    color: var(--red-600);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.account-alert.show { display: block; }
.account-alert i { margin-right: 6px; }

.account-btn {
    width: 100%;
    height: 46px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    margin-top: 2px;
}

.account-foot {
    text-align: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    line-height: 2;
}
.account-foot span { display: block; }
.account-foot i { margin-right: 5px; opacity: .8; }


/* the name of the open page, next to the logo */
.header-page-name {
    float: left;
    height: var(--header-h);
    line-height: var(--header-h);
    padding: 0 22px;
    font-size: 15px;
    font-weight: 650;
    color: var(--ink-900);
    letter-spacing: -.2px;
}

.header .user-menu .user-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink-900);
}

.header .user-menu .user-link .fa-angle-down { color: var(--ink-300); font-size: 13px; }

.dropdown-head {
    padding: 10px 12px 12px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line-2);
}
.dropdown-head b { display: block; color: var(--ink-900); font-size: 13.5px; }
.dropdown-head span { color: var(--ink-400); font-size: 11.5px; }

.dropdown-menu .dropdown-item i {
    width: 17px;
    margin-right: 9px;
    color: var(--ink-300);
    text-align: center;
}
.dropdown-menu .dropdown-item:hover i { color: var(--brand-600); }

.dropdown-item-danger { color: var(--red-600) !important; }
.dropdown-item-danger:hover { background: var(--red-100) !important; color: var(--red-600) !important; }
.dropdown-item-danger i { color: var(--red-600) !important; }

.mobile-user-menu { display: none; }
.mobile-user-menu > a { display: block; padding: 0 16px; line-height: var(--header-h); color: var(--ink-500); font-size: 17px; }

@media (max-width: 767px) {
    .header .user-menu { display: none !important; }
    .mobile-user-menu { display: block; }
    .header-page-name { display: none; }
}

@media (max-width: 991px) {
    .header-page-name { padding-left: 6px; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 991px) {
    :root { --sidebar-w: 236px; }

    .mobile_btn { display: block; }

    .header .header-left { width: auto !important; border-right: none; padding-left: 54px; }

    /* the old template hid the menu with a negative margin, the theme slides
       it with "left" instead, so that margin is put back to zero            */
    .sidebar {
        margin-left: 0 !important;
        left: calc(-1 * var(--sidebar-w)) !important;
        transition: left .25s ease;
    }
    body.sidebar-open .sidebar { left: 0 !important; }

    .page-wrapper { margin-left: 0; }
    .page-wrapper > .content { padding: 18px 14px 34px 14px; }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: rgba(13, 29, 53, .45);
        z-index: 999;
    }
    body.sidebar-open .sidebar-overlay { display: block; }

    #target-div { display: none !important; }
}

@media (max-width: 575px) {
    .page-title { font-size: 17px !important; }
    .submit-btn { min-width: 0; width: 100%; margin-bottom: 8px; }
    .text-right.m-b-20 .btn { width: 100%; margin-bottom: 6px; }
}

/* --------------------------------------------------------------- print */

@media print {
    .header, .sidebar, .sidebar-overlay, .inv-noprint, .btn { display: none !important; }
    .page-wrapper { margin: 0 !important; padding: 0 !important; }
    .page-wrapper > .content { padding: 0 !important; }
    .inv-card { border: none; box-shadow: none; padding: 0; }
    body { background: #fff !important; }
}

/* =========================================================================
   Data tables : the search box, the page size, the counter and the pager
   ========================================================================= */

.dataTables_wrapper { position: relative; }

/* ---- the bar above the table ------------------------------------------ */

.dt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 0 14px 0;
}

.dt-top-left, .dt-top-right { display: flex; align-items: center; }

/* page size */
.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink-400);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.dataTables_length select {
    height: 36px;
    min-width: 74px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 26px 0 10px;
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 600;
    background: var(--surface);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%237c88a1' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    cursor: pointer;
}

.dataTables_length select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }

/* search */
.dataTables_filter { margin: 0; }
.dataTables_filter label { display: block; margin: 0; position: relative; }

.dataTables_filter label:before {
    content: "\f002";                       /* font awesome magnifier */
    font-family: FontAwesome;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-300);
    font-size: 13px;
    pointer-events: none;
}

.dataTables_filter input {
    height: 36px;
    width: 260px;
    max-width: 100%;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 12px 0 34px;
    font-size: 13.5px;
    color: var(--ink-900);
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease, width .2s ease;
}

.dataTables_filter input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); width: 300px; }
.dataTables_filter input::placeholder { color: var(--ink-300); }

/* ---- the table itself -------------------------------------------------- */

.dt-body { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.dt-body > table.table { margin: 0 !important; border: none; }

/* a table inside the new wrapper does not need its own frame twice */
.dataTables_wrapper .table-responsive { border: none; border-radius: 0; }

/* sorting handles */
table.dataTable thead th {
    position: relative;
    cursor: pointer;
    padding-right: 26px !important;
    background-image: none !important;      /* the library's own arrows */
    user-select: none;
}

table.dataTable thead th.no-sort,
table.dataTable thead th.sorting_disabled { cursor: default; padding-right: 14px !important; }

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    font-family: FontAwesome;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    opacity: .35;
}

table.dataTable thead th.sorting:after     { content: "\f0dc"; }
table.dataTable thead th.sorting_asc:after { content: "\f0de"; opacity: 1; color: var(--brand-600); }
table.dataTable thead th.sorting_desc:after{ content: "\f0dd"; opacity: 1; color: var(--brand-600); }

table.dataTable thead th.sorting:hover { background: var(--brand-100); }

table.dataTable tbody tr.odd,
table.dataTable tbody tr.even { background: transparent; }
table.dataTable.no-footer { border-bottom: none; }

/* the blue summary line stays under the table, it is never sorted or paged */
table.dataTable tfoot td,
table.dataTable tfoot th {
    background: var(--brand-800) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 13.5px;
}
table.dataTable tfoot .inv-total-row td { background: var(--brand-800) !important; }

/* ---- the bar under the table ------------------------------------------- */

.dt-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0 0 0;
}

.dataTables_info {
    padding: 0 !important;
    color: var(--ink-400);
    font-size: 12.5px;
    font-weight: 500;
}

/* the pager */
.dataTables_paginate {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dataTables_paginate .paginate_button {
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 10px !important;
    margin: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--surface) !important;
    color: var(--ink-700) !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
}

.dataTables_paginate .paginate_button:hover {
    background: var(--brand-50) !important;
    border-color: #cfdcf2 !important;
    color: var(--brand-700) !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: var(--brand-600) !important;
    border-color: var(--brand-600) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(32, 84, 159, .35);
}

.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover {
    background: var(--surface) !important;
    border-color: var(--line-2) !important;
    color: var(--ink-300) !important;
    cursor: default;
    box-shadow: none;
}

.dataTables_paginate .ellipsis { color: var(--ink-300); padding: 0 4px; }

/* the library likes to add its own colours, they are pushed away */
.dataTables_wrapper .dataTables_paginate .paginate_button { background-image: none !important; }

/* ---- small screens ----------------------------------------------------- */

@media (max-width: 767px) {
    .dt-top, .dt-foot { flex-direction: column; align-items: stretch; }
    .dataTables_filter input { width: 100%; }
    .dataTables_filter input:focus { width: 100%; }
    .dataTables_paginate { justify-content: center; flex-wrap: wrap; }
    .dataTables_info { text-align: center; }
}

@media print {
    .dt-top, .dt-foot { display: none !important; }
    .dt-body { border: none; overflow: visible; }
}

/* ---- room to breathe inside a list ------------------------------------- */

/* a row reads on one line, the frame scrolls sideways when it has to */
table.dataTable > thead > tr > th,
table.dataTable > tbody > tr > td,
table.dataTable > tfoot > tr > td { white-space: nowrap; }

/* a column that carries long text may break */
table.dataTable .wrap { white-space: normal; min-width: 180px; }

/* the buttons of a row stay side by side */
table.dataTable td:last-child { white-space: nowrap; }
table.dataTable td:last-child .btn,
table.dataTable td:last-child .inv-btn-sm { margin-left: 3px; display: inline-block; float: none; }
table.dataTable td:last-child .btn:first-child { margin-left: 0; }

/* ---- check boxes and radios ------------------------------------------- */

input[type="checkbox"], input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-600);
    cursor: pointer;
    vertical-align: middle;
}

.checkbox-inline, .radio-inline,
.form-check-inline .form-check-label {
    padding-left: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-right: 16px;
    font-weight: 600;
    color: var(--ink-700);
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"],
.radio-inline input[type="radio"],
.form-check-inline input {
    position: static !important;
    margin: 0 !important;
    margin-left: 0 !important;
}

.form-inline .checkbox-inline { margin-bottom: 0; }

.gender-select .gen-label { display: block; }

/* a wide list earns a little of its padding back */
table.dataTable > thead > tr > th { padding: 11px 10px; }
table.dataTable > tbody > tr > td { padding: 10px 10px; }
table.dataTable > tfoot > tr > td { padding: 11px 10px; }
table.dataTable td:last-child .inv-btn-sm { padding: 3px 9px !important; font-size: 11.5px !important; }
