body { background: #f5f5f9; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: min(100%, 450px); }
.vms-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; color: #344050; line-height: 1.3; }
.vms-brand strong { font-size: 1.05rem; }
.vms-brand div > span { display: block; font-size: .78rem; color: #516174; margin-top: .2rem; }
.vms-county-logo { display: block; width: 145px; max-width: 100%; height: auto; }
.vms-layout { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.vms-sidebar { padding: 1.5rem 1rem; box-shadow: 0 0 .5rem #4359711a; }
.vms-sidebar .vms-brand { margin-bottom: 2rem; }
.vms-nav { display: grid; gap: .3rem; }
.vms-nav a { display: flex; align-items: center; gap: .8rem; color: #566a7f; padding: .72rem .9rem; border-radius: .4rem; }
.vms-nav a:hover, .vms-nav a[aria-current] { color: #4548c7; background: #e9e9ff; }
.vms-nav a[aria-current] { font-weight: 600; }
.vms-nav i { font-size: 1.2rem; }
.vms-main { padding: 1.5rem clamp(1rem, 3vw, 2.5rem); width: 100%; max-width: 1560px; margin-inline: auto; }
.vms-toolbar { display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding: .85rem 1.15rem; }
.vms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; }
.stat-card { color: #566a7f; }
.stat-card:hover { color: #4548c7; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: .45rem; font-size: 1.2rem; }
.vms-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.table td { overflow-wrap: anywhere; }
@media (max-width: 850px) {
    .vms-layout { display: block; }
    .vms-sidebar .vms-brand { margin-bottom: 1rem; }
    .vms-nav { display: flex; flex-wrap: wrap; }
    .vms-nav a { padding: .5rem .65rem; }
}


.vms-menu-toggle { display: none; }
@media (max-width: 850px) {
    .vms-sidebar { position: relative; }
    .vms-sidebar .vms-brand { min-height: 42px; margin-bottom: 0; padding-right: 47px; }
    .vms-menu-toggle:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 1.5rem 1rem auto auto;
        padding: 0;
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
    .vms-sidebar .vms-nav { margin-top: .75rem; }
    .vms-menu-toggle:not([hidden])[aria-expanded="false"] + .vms-nav { display: none; }
}

.table-responsive > .dt-container { padding: 0 1.25rem 1rem; }
.dt-container .dt-layout-row { gap: .75rem; }
.dt-container .dt-search input { max-width: 100%; }
.dt-container table.table { width: 100% !important; }
@media (max-width: 575px) {
    .dt-container .dt-length,
    .dt-container .dt-search { text-align: left; }
}
.auth-card .vms-brand { align-items: center; text-align: center; }
.auth-card .vms-county-logo { width: 175px; }