/*
 * Vserve theme
 * Loaded after the original template styles and overrides them. Layout sizes
 * (60px header, 235px sidebar) are left exactly as the template sets them so
 * existing pages keep working; this file changes colour, type, spacing and states.
 */

:root {
    --vs-canvas: #f3f5f8;
    --vs-surface: #ffffff;
    --vs-surface-2: #f7f9fb;
    --vs-ink: #15202e;
    --vs-ink-2: #4a5568;
    --vs-muted: #6b7688;
    --vs-line: #e3e8ee;
    --vs-line-strong: #cfd6df;

    --vs-nav: #0f2233;
    --vs-nav-2: #16304a;
    --vs-nav-ink: #aebbcb;
    --vs-nav-ink-strong: #ffffff;

    --vs-accent: #1f7fb8;
    --vs-accent-hover: #18699a;
    --vs-accent-soft: #e7f2f9;
    --vs-accent-ring: rgba(31, 127, 184, 0.28);

    --vs-good: #0ca30c;
    --vs-good-text: #006300;
    --vs-good-soft: #e7f6e7;
    --vs-warning: #fab219;
    --vs-warning-soft: #fff5de;
    --vs-serious: #ec835a;
    --vs-serious-soft: #fdeee7;
    --vs-critical: #d03b3b;
    --vs-critical-soft: #fbeaea;

    /* chart categorical slots, validated in this order */
    --vs-slot-1: #2a78d6;
    --vs-slot-2: #eb6834;
    --vs-slot-3: #1baf7a;
    --vs-slot-4: #eda100;

    --vs-radius-lg: 14px;
    --vs-radius: 10px;
    --vs-radius-sm: 7px;
    --vs-shadow: 0 1px 2px rgba(15, 34, 51, 0.05), 0 4px 14px rgba(15, 34, 51, 0.05);
    --vs-shadow-pop: 0 12px 40px rgba(15, 34, 51, 0.18);
    --vs-font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --vs-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */

body.vs-theme,
body.vs-theme .page-content-wrapper,
body.vs-theme input,
body.vs-theme button,
body.vs-theme select,
body.vs-theme textarea,
body.vs-theme .btn,
body.vs-theme table,
body.vs-theme .mdl-button,
body.vs-theme .mdl-textfield__input,
body.vs-theme .mdl-textfield__label,
body.vs-theme h1, body.vs-theme h2, body.vs-theme h3, body.vs-theme h4, body.vs-theme h5, body.vs-theme h6 {
    font-family: var(--vs-font);
}

body.vs-theme {
    background: var(--vs-canvas);
    color: var(--vs-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.vs-theme a { color: var(--vs-accent); transition: color 0.15s var(--vs-ease); }
body.vs-theme a:hover { color: var(--vs-accent-hover); }

body.vs-theme :focus-visible {
    outline: 2px solid var(--vs-accent);
    outline-offset: 2px;
}

body.vs-theme ::selection { background: var(--vs-accent-soft); color: var(--vs-ink); }

body.vs-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
body.vs-theme ::-webkit-scrollbar-thumb { background: #c8d0da; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
body.vs-theme ::-webkit-scrollbar-thumb:hover { background-color: #aab5c2; }
body.vs-theme ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Header ---------- */

body.vs-theme .page-header.navbar {
    background: var(--vs-surface);
    border-bottom: 1px solid var(--vs-line);
    box-shadow: none;
}

body.vs-theme .page-header.navbar .page-logo {
    background: var(--vs-nav);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.vs-theme .page-header.navbar .page-logo > a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding-left: 22px;
    text-decoration: none;
}

body.vs-theme .page-header.navbar .page-logo .logo-icon { display: none; }

body.vs-theme .page-header.navbar .page-logo .logo-default {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    font-family: var(--vs-font);
}

body.vs-theme .page-header.navbar .page-logo .logo-default::before {
    content: "V";
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(140deg, #2b9ad6 0%, #1f7fb8 55%, #7c3b86 140%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.vs-theme .page-header.navbar .menu-toggler.sidebar-toggler {
    color: var(--vs-ink-2);
    border-radius: var(--vs-radius-sm);
    transition: background-color 0.15s var(--vs-ease);
}
body.vs-theme .page-header.navbar .menu-toggler.sidebar-toggler:hover { background: var(--vs-surface-2); }

body.vs-theme .page-header.navbar .top-menu .navbar-nav > li > a,
body.vs-theme .page-header.navbar .top-menu .navbar-nav > li > a > i {
    color: var(--vs-ink-2);
}

body.vs-theme .page-header.navbar .top-menu .navbar-nav > li > a {
    border-radius: var(--vs-radius-sm);
    transition: background-color 0.15s var(--vs-ease);
}
body.vs-theme .page-header.navbar .top-menu .navbar-nav > li > a:hover,
body.vs-theme .page-header.navbar .top-menu .navbar-nav > li.open > a { background: var(--vs-surface-2); }

body.vs-theme .page-header.navbar .top-menu .navbar-nav > li.dropdown-user .dropdown-toggle > img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--vs-surface), 0 0 0 3px var(--vs-line);
}

body.vs-theme .page-header.navbar .top-menu .navbar-nav > li.dropdown-user .dropdown-toggle > .username {
    color: var(--vs-ink);
    font-weight: 500;
}

body.vs-theme .page-header.navbar .top-menu .navbar-nav > li.dropdown .dropdown-toggle .badge {
    background: var(--vs-critical);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 2px var(--vs-surface);
}

body.vs-theme .dropdown-menu {
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow-pop);
    padding: 6px;
}
body.vs-theme .dropdown-menu:before,
body.vs-theme .dropdown-menu:after { display: none; }
body.vs-theme .dropdown-menu > li > a {
    border-radius: var(--vs-radius-sm);
    color: var(--vs-ink);
    padding: 8px 12px;
}
body.vs-theme .dropdown-menu > li > a:hover { background: var(--vs-surface-2); color: var(--vs-ink); }
body.vs-theme .dropdown-menu > li > a > i { color: var(--vs-muted); margin-right: 6px; }

/* Quick jump trigger in the header */
.vs-cmdk-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin: 12px 10px 0 0;
    padding: 0 10px 0 12px;
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-surface-2);
    color: var(--vs-muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s var(--vs-ease), background-color 0.15s var(--vs-ease);
}
.vs-cmdk-trigger:hover { border-color: var(--vs-line-strong); background: var(--vs-surface); color: var(--vs-ink-2); }
.vs-cmdk-trigger i { font-size: 16px; }
.vs-cmdk-trigger kbd {
    font-family: var(--vs-font);
    font-size: 11px;
    color: var(--vs-muted);
    background: var(--vs-surface);
    border: 1px solid var(--vs-line);
    border-radius: 5px;
    padding: 1px 6px;
    box-shadow: none;
}
@media (max-width: 991px) { .vs-cmdk-trigger span, .vs-cmdk-trigger kbd { display: none; } }

/* ---------- Sidebar ---------- */

body.vs-theme .sidemenu-container,
body.vs-theme.white-sidebar-color .sidemenu-container {
    background: var(--vs-nav);
    border-right: 0;
    box-shadow: none;
}

body.vs-theme .sidemenu-container .sidemenu { padding-bottom: 32px; }

body.vs-theme .sidemenu-container .sidemenu > li.sidebar-user-panel {
    margin: 4px 12px 10px;
    padding: 0;
}
body.vs-theme .sidemenu-container .user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--vs-radius);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
body.vs-theme .sidemenu-container .user-panel .image,
body.vs-theme .sidemenu-container .user-panel .info { float: none; padding: 0; position: static; }
body.vs-theme .sidemenu-container .user-panel .image img {
    width: 40px;
    height: 40px;
    max-width: none;
    border-radius: 11px;
    object-fit: cover;
    border: 0;
}
body.vs-theme .sidemenu-container .user-panel .info p {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
body.vs-theme .sidemenu-container .user-panel .info a {
    color: var(--vs-nav-ink);
    font-size: 12px;
    text-decoration: none;
}
body.vs-theme .sidemenu-container .user-panel .info a .user-online { color: #3ccf6b; font-size: 8px; vertical-align: middle; }

body.vs-theme .sidemenu-container .sidemenu > li.vs-nav-heading {
    padding: 18px 22px 6px;
    color: #7f90a5;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    list-style: none;
}

body.vs-theme .sidemenu-container .sidemenu > li.nav-item { margin: 1px 10px; }

body.vs-theme .sidemenu-container .sidemenu > li.nav-item > a,
body.vs-theme.white-sidebar-color .sidemenu-container .sidemenu > li.nav-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--vs-radius-sm);
    color: var(--vs-nav-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    background: transparent;
    transition: background-color 0.15s var(--vs-ease), color 0.15s var(--vs-ease);
}

body.vs-theme .sidemenu-container .sidemenu > li.nav-item > a > i,
body.vs-theme.white-sidebar-color .sidemenu-container .sidemenu > li.nav-item > a > i {
    color: #7f90a5;
    font-size: 19px;
    width: 20px;
    margin: 0;
    text-align: center;
    transition: color 0.15s var(--vs-ease);
}

body.vs-theme .sidemenu-container .sidemenu > li.nav-item > a:hover,
body.vs-theme.white-sidebar-color .sidemenu-container .sidemenu > li.nav-item > a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
body.vs-theme .sidemenu-container .sidemenu > li.nav-item > a:hover > i { color: #fff; }

body.vs-theme .sidemenu-container .sidemenu > li.nav-item.active > a,
body.vs-theme.white-sidebar-color .sidemenu-container .sidemenu > li.nav-item.active > a,
body.vs-theme.white-sidebar-color .sidemenu-container .sidemenu > li.nav-item.active.open > a {
    background: var(--vs-nav-2);
    color: #fff;
    box-shadow: inset 3px 0 0 #4fb3ea;
}
body.vs-theme .sidemenu-container .sidemenu > li.nav-item.active > a > i { color: #4fb3ea; }
body.vs-theme .sidemenu-container .sidemenu > li.nav-item > a .selected,
body.vs-theme .sidemenu-container .sidemenu > li.nav-item > a .arrow { display: none; }

/* Collapsed sidebar keeps icons only */
body.vs-theme.sidemenu-closed .sidemenu-container .sidemenu > li.vs-nav-heading,
body.vs-theme.sidemenu-closed .sidemenu-container .sidemenu > li.sidebar-user-panel { display: none; }
body.vs-theme.sidemenu-closed .sidemenu-container .sidemenu > li.nav-item { margin: 2px 6px; }
body.vs-theme.sidemenu-closed .sidemenu-container .sidemenu > li.nav-item > a { justify-content: center; padding: 10px 0; }

/* ---------- Content area ---------- */

body.vs-theme .page-content-wrapper .page-content,
body.vs-theme.page-content-white .page-content-wrapper .page-content {
    background: var(--vs-canvas);
    padding: 24px 28px 40px;
}

body.vs-theme .page-bar,
body.vs-theme.page-content-white .page-bar {
    background: transparent;
    border: 0;
    margin: 0 0 18px;
    padding: 0;
}
body.vs-theme .page-title-breadcrumb { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
body.vs-theme .page-title-breadcrumb::after { display: none; }
body.vs-theme .page-title-breadcrumb > .pull-left,
body.vs-theme .page-title-breadcrumb > .pull-right { float: none !important; }

body.vs-theme .page-title,
body.vs-theme.page-content-white .page-title {
    color: var(--vs-ink);
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
}

body.vs-theme .breadcrumb,
body.vs-theme .page-breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 13px;
}
body.vs-theme .page-breadcrumb > li,
body.vs-theme .page-breadcrumb > li > a,
body.vs-theme .page-breadcrumb > li > i { color: var(--vs-muted); }
body.vs-theme .page-breadcrumb > li > a:hover { color: var(--vs-accent); }

/* ---------- Cards ---------- */

body.vs-theme .card,
body.vs-theme .card-box {
    background: var(--vs-surface);
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius-lg);
    box-shadow: var(--vs-shadow);
}
body.vs-theme .card-box .card { border: 0; box-shadow: none; }

body.vs-theme .card-head {
    border-bottom: 1px solid var(--vs-line);
    padding: 6px 8px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.vs-theme .card-head header {
    flex: 1;
    text-align: left;
    color: var(--vs-ink);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 10px 12px;
}
body.vs-theme .card-head .tools a,
body.vs-theme .card-head .tools .btn-color { color: var(--vs-muted); }
body.vs-theme .card-body { padding: 20px; }

/* Tabs used on client/staff pages */
body.vs-theme .panel-heading.panel-heading-gray,
body.vs-theme .panel-heading-gray.custom-tab {
    background: transparent;
    border-bottom: 0;
    padding: 6px 16px 0;
}
body.vs-theme .panel.tab-border { border-radius: var(--vs-radius-lg); }
body.vs-theme .nav-tabs,
body.vs-theme .tabbable-line > .nav-tabs { border-bottom: 1px solid var(--vs-line); gap: 4px; }
body.vs-theme .tabbable-line > .nav-tabs > li > a,
body.vs-theme .nav-tabs > li > a,
body.vs-theme .nav-tabs .nav-link {
    border: 0;
    border-radius: var(--vs-radius-sm) var(--vs-radius-sm) 0 0;
    color: var(--vs-ink-2);
    font-weight: 500;
    padding: 10px 14px;
    transition: color 0.15s var(--vs-ease), background-color 0.15s var(--vs-ease);
}
body.vs-theme .tabbable-line > .nav-tabs > li > a:hover,
body.vs-theme .nav-tabs .nav-link:hover { color: var(--vs-ink); background: var(--vs-surface-2); }
body.vs-theme .tabbable-line > .nav-tabs > li.active > a,
body.vs-theme .tabbable-line > .nav-tabs > li > a.active,
body.vs-theme .nav-tabs .nav-link.active,
body.vs-theme .nav-tabs > li > a.active,
body.vs-theme .nav-tabs > li.active > a {
    color: var(--vs-accent);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--vs-accent);
}
body.vs-theme .tabbable-line > .nav-tabs > li.active,
body.vs-theme .tabbable-line > .nav-tabs > li.open,
body.vs-theme .tabbable-line > .nav-tabs > li:hover { border-bottom: 0; }

/* ---------- Buttons ---------- */

body.vs-theme .btn,
body.vs-theme .mdl-button {
    border-radius: var(--vs-radius-sm);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: background-color 0.15s var(--vs-ease), border-color 0.15s var(--vs-ease), color 0.15s var(--vs-ease), transform 0.1s var(--vs-ease), box-shadow 0.15s var(--vs-ease);
}
body.vs-theme .btn:active,
body.vs-theme .mdl-button:active { transform: translateY(1px); }
body.vs-theme .btn:focus-visible,
body.vs-theme .mdl-button:focus-visible { box-shadow: 0 0 0 3px var(--vs-accent-ring); outline: 0; }

body.vs-theme .mdl-button--raised,
body.vs-theme .mdl-button--raised.mdl-button--colored,
body.vs-theme .btn-primary,
body.vs-theme .btn-info,
body.vs-theme .btn-pink,
body.vs-theme .btn-color {
    background: var(--vs-accent);
    border-color: var(--vs-accent);
    color: #fff;
}
body.vs-theme .mdl-button--raised:hover,
body.vs-theme .btn-primary:hover,
body.vs-theme .btn-info:hover,
body.vs-theme .btn-pink:hover,
body.vs-theme .btn-color:hover {
    background: var(--vs-accent-hover);
    border-color: var(--vs-accent-hover);
    color: #fff;
}

/* .btn-color is also used for small icon links inside card tools */
body.vs-theme .tools .btn-color { background: transparent; border-color: transparent; color: var(--vs-muted); }

body.vs-theme .btn-default,
body.vs-theme .btn-secondary {
    background: var(--vs-surface);
    border: 1px solid var(--vs-line-strong);
    color: var(--vs-ink);
}
body.vs-theme .btn-default:hover,
body.vs-theme .btn-secondary:hover { background: var(--vs-surface-2); border-color: #b9c3cf; color: var(--vs-ink); }

body.vs-theme .btn-danger { background: var(--vs-critical); border-color: var(--vs-critical); color: #fff; }
body.vs-theme .btn-danger:hover { background: #b33030; border-color: #b33030; color: #fff; }
body.vs-theme .btn-success { background: #13843f; border-color: #13843f; color: #fff; }
body.vs-theme .btn-success:hover { background: #0f6f34; border-color: #0f6f34; color: #fff; }
body.vs-theme .btn-warning { background: var(--vs-warning); border-color: var(--vs-warning); color: #241a00; }

/* Profile save buttons use the template's red pill; they are saves, not deletes */
body.vs-theme .btn.btn-circle.red {
    background-color: var(--vs-accent) !important;
    border-color: var(--vs-accent) !important;
    color: #fff !important;
    border-radius: var(--vs-radius-sm) !important;
    padding: 8px 18px;
    font-size: 13.5px;
}
body.vs-theme .btn.btn-circle.red:hover { background-color: var(--vs-accent-hover) !important; border-color: var(--vs-accent-hover) !important; }
body.vs-theme .btn.deepPink-bgcolor { background: var(--vs-surface) !important; border: 1px solid var(--vs-line-strong) !important; color: var(--vs-ink) !important; }

/* Coloured top rules on cards are template decoration */
body.vs-theme .card[class*="card-topline"] { border-top: 1px solid var(--vs-line) !important; }
body.vs-theme .card[class*="card-topline"]::before { display: none; }
body.vs-theme .profile-usertitle-name { color: var(--vs-ink) !important; font-weight: 650; letter-spacing: -0.02em; }
body.vs-theme .profile-userpic img { border: 4px solid var(--vs-surface); box-shadow: 0 0 0 1px var(--vs-line), var(--vs-shadow); }

/* theme_style.css sets button colours with !important */
body.vs-theme .btn-primary,
body.vs-theme .btn-info,
body.vs-theme .btn-pink { background-color: var(--vs-accent) !important; border-color: var(--vs-accent) !important; color: #fff !important; }
body.vs-theme .btn-primary:hover,
body.vs-theme .btn-info:hover,
body.vs-theme .btn-pink:hover { background-color: var(--vs-accent-hover) !important; border-color: var(--vs-accent-hover) !important; }
body.vs-theme .btn-danger { background-color: var(--vs-critical) !important; border-color: var(--vs-critical) !important; color: #fff !important; }
body.vs-theme .btn-danger:hover { background-color: #b33030 !important; border-color: #b33030 !important; }

/* Edit / delete icon buttons in table rows: tinted until hovered, so long lists stay calm */
body.vs-theme .btn-xs,
body.vs-theme .btn-group > .btn.btn-xs { padding: 5px 8px; border-radius: 6px; }
body.vs-theme .table .btn-xs.btn-primary,
body.vs-theme .table .btn-xs.btn-info { background-color: var(--vs-accent-soft) !important; border-color: transparent !important; color: var(--vs-accent) !important; }
body.vs-theme .table .btn-xs.btn-danger { background-color: var(--vs-critical-soft) !important; border-color: transparent !important; color: var(--vs-critical) !important; }
body.vs-theme .table .btn-xs.btn-primary i,
body.vs-theme .table .btn-xs.btn-info i,
body.vs-theme .table .btn-xs.btn-danger i { color: inherit !important; }
body.vs-theme .table .btn-xs.btn-primary:hover,
body.vs-theme .table .btn-xs.btn-info:hover { background-color: var(--vs-accent) !important; color: #fff !important; }
body.vs-theme .table .btn-xs.btn-danger:hover { background-color: var(--vs-critical) !important; color: #fff !important; }

/* ---------- Forms ---------- */

body.vs-theme .form-control {
    border: 1px solid var(--vs-line-strong);
    border-radius: var(--vs-radius-sm);
    color: var(--vs-ink);
    box-shadow: none;
    transition: border-color 0.15s var(--vs-ease), box-shadow 0.15s var(--vs-ease);
}
body.vs-theme .form-control:hover { border-color: #b9c3cf; }
body.vs-theme .form-control:focus {
    border-color: var(--vs-accent);
    box-shadow: 0 0 0 3px var(--vs-accent-ring);
}
body.vs-theme .form-control::placeholder { color: #9aa4b2; }
body.vs-theme input.form-control,
body.vs-theme select.form-control { min-height: 40px; }
body.vs-theme select.form-control { padding-right: 32px; }
body.vs-theme .form-control[readonly],
body.vs-theme .form-control:disabled { background: var(--vs-surface-2); color: var(--vs-ink-2); }
body.vs-theme .form-group > label,
body.vs-theme form label { margin-bottom: 6px; }
body.vs-theme .text-danger { color: #b02a2a !important; font-size: 13px; }
body.vs-theme input[type="color"].form-control,
body.vs-theme input[type="color"] { padding: 5px; height: 40px; cursor: pointer; background: var(--vs-surface); }
body.vs-theme input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
body.vs-theme input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(15, 34, 51, 0.12); border-radius: 6px; }
body.vs-theme input[type="color"]::-moz-color-swatch { border: 1px solid rgba(15, 34, 51, 0.12); border-radius: 6px; }

body.vs-theme .mdl-textfield__input { border-bottom-color: var(--vs-line-strong); color: var(--vs-ink); }
body.vs-theme .mdl-textfield__label { color: var(--vs-muted); }
body.vs-theme .mdl-textfield__label:after { background-color: var(--vs-accent); }
body.vs-theme .mdl-textfield--floating-label.is-focused .mdl-textfield__label,
body.vs-theme .mdl-textfield--floating-label.is-dirty .mdl-textfield__label { color: var(--vs-accent); }

body.vs-theme .select2-container {
    border-color: var(--vs-line-strong);
    border-radius: var(--vs-radius-sm);
}
body.vs-theme .select2-dropdown { border-color: var(--vs-line); border-radius: var(--vs-radius-sm); box-shadow: var(--vs-shadow-pop); }
body.vs-theme .select2-results__option--highlighted[aria-selected],
body.vs-theme .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--vs-accent); }

/* ---------- Tables ---------- */

body.vs-theme .table {
    color: var(--vs-ink);
    font-variant-numeric: tabular-nums;
}
body.vs-theme .table > thead > tr > th,
body.vs-theme .table thead th {
    background: var(--vs-surface-2);
    color: var(--vs-ink-2);
    font-size: 12.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--vs-line);
    border-top: 0;
    white-space: nowrap;
}
body.vs-theme .table > tbody > tr > td,
body.vs-theme .table td {
    border-top: 1px solid var(--vs-line);
    vertical-align: middle;
    padding: 11px 14px;
}
body.vs-theme .table > thead > tr > th,
body.vs-theme .table thead th { padding: 11px 14px; }
body.vs-theme .table-bordered,
body.vs-theme .table-bordered > thead > tr > th,
body.vs-theme .table-bordered > tbody > tr > td,
body.vs-theme .table-bordered td,
body.vs-theme .table-bordered th { border-color: var(--vs-line); }
body.vs-theme .table-striped > tbody > tr:nth-of-type(odd),
body.vs-theme .table-striped tbody tr:nth-of-type(odd) { background-color: #fafbfc; }
body.vs-theme .table-hover > tbody > tr:hover,
body.vs-theme .table-hover tbody tr:hover { background-color: var(--vs-accent-soft); }
body.vs-theme .table-scrollable { border: 1px solid var(--vs-line); border-radius: var(--vs-radius); }

/* Shift rows keep their shift-type / weekend colour, softened to a tint with a solid strip */
body.vs-theme .table tr.vs-row-tinted[style*="--vs-row"] > td { background-color: color-mix(in srgb, var(--vs-row) 16%, #ffffff); }
body.vs-theme .table tr.vs-row-tinted[style*="--vs-row"] > td:first-child { box-shadow: inset 4px 0 0 var(--vs-row); }
body.vs-theme .table-hover tr.vs-row-tinted[style*="--vs-row"]:hover > td { background-color: color-mix(in srgb, var(--vs-row) 28%, #ffffff); }

/* DataTables controls */
body.vs-theme .dataTables_wrapper .dataTables_filter input,
body.vs-theme .dataTables_wrapper .dataTables_length select {
    height: 36px;
    border: 1px solid var(--vs-line-strong);
    border-radius: var(--vs-radius-sm);
    padding: 0 10px;
    background: var(--vs-surface);
    color: var(--vs-ink);
    transition: border-color 0.15s var(--vs-ease), box-shadow 0.15s var(--vs-ease);
}
body.vs-theme .dataTables_wrapper .dataTables_filter input:focus,
body.vs-theme .dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--vs-accent);
    box-shadow: 0 0 0 3px var(--vs-accent-ring);
    outline: 0;
}
body.vs-theme .dataTables_wrapper .dataTables_filter label,
body.vs-theme .dataTables_wrapper .dataTables_length label,
body.vs-theme .dataTables_wrapper .dataTables_info { color: var(--vs-muted); font-size: 13px; }

body.vs-theme .dt-buttons .dt-button,
body.vs-theme .dt-buttons .buttons-html5,
body.vs-theme .dt-buttons .buttons-print {
    background: var(--vs-surface);
    border: 1px solid var(--vs-line-strong);
    border-radius: var(--vs-radius-sm);
    color: var(--vs-ink);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    margin-right: 6px;
    box-shadow: none;
    transition: background-color 0.15s var(--vs-ease), border-color 0.15s var(--vs-ease);
}
body.vs-theme .dt-buttons .dt-button:hover { background: var(--vs-surface-2); border-color: #b9c3cf; }

body.vs-theme .dataTables_wrapper .pagination > li > a,
body.vs-theme .dataTables_wrapper .pagination .page-link,
body.vs-theme .dataTables_wrapper .paginate_button {
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius-sm) !important;
    margin: 0 2px;
    color: var(--vs-ink-2);
    background: var(--vs-surface);
}
body.vs-theme .dataTables_wrapper .pagination > .active > a,
body.vs-theme .dataTables_wrapper .pagination .page-item.active .page-link,
body.vs-theme .dataTables_wrapper .paginate_button.current {
    background: var(--vs-accent) !important;
    border-color: var(--vs-accent) !important;
    color: #fff !important;
}

/* ---------- Table pages ---------- */

/* Search / page size row and info / pagination row line up as two clean bars */
body.vs-theme .dataTables_wrapper > .row:first-child,
body.vs-theme .dataTables_wrapper > .row:last-child { align-items: center; margin: 0; padding: 4px 0 12px; }
body.vs-theme .dataTables_wrapper > .row:last-child { padding: 14px 0 2px; }
body.vs-theme .dataTables_wrapper .dataTables_filter input { min-width: 220px; margin-left: 8px; }
body.vs-theme .dataTables_wrapper .dataTables_length select { margin: 0 6px; padding-right: 26px; }

/* Wide tables scroll sideways inside their card instead of breaking the page */
body.vs-theme .card-body .table-responsive,
body.vs-theme .card-body .table-scrollable,
body.vs-theme .dataTables_wrapper .dataTables_scrollBody { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.vs-theme .table-scrollable > .table,
body.vs-theme .card-body .table { margin-bottom: 0; }

/* Column headers */
body.vs-theme table.dataTable thead th,
body.vs-theme table.dataTable thead td { border-bottom: 1px solid var(--vs-line); }
body.vs-theme table.dataTable thead .sorting,
body.vs-theme table.dataTable thead .sorting_asc,
body.vs-theme table.dataTable thead .sorting_desc { cursor: pointer; padding-right: 26px; }
body.vs-theme table.dataTable thead .sorting:before,
body.vs-theme table.dataTable thead .sorting:after,
body.vs-theme table.dataTable thead .sorting_asc:before,
body.vs-theme table.dataTable thead .sorting_asc:after,
body.vs-theme table.dataTable thead .sorting_desc:before,
body.vs-theme table.dataTable thead .sorting_desc:after { opacity: 0.25; color: var(--vs-muted); bottom: 0.9em; }
body.vs-theme table.dataTable thead .sorting_asc:before,
body.vs-theme table.dataTable thead .sorting_desc:after { opacity: 1; color: var(--vs-accent); }
body.vs-theme table.dataTable thead .sorting:hover { color: var(--vs-ink); }
body.vs-theme table.dataTable thead .sorting_asc,
body.vs-theme table.dataTable thead .sorting_desc { color: var(--vs-ink); }

/* Cells */
body.vs-theme .table td { color: var(--vs-ink); font-size: 14px; }
body.vs-theme .table td a:not(.btn) { font-weight: 500; }
body.vs-theme .table > tbody > tr { transition: background-color 0.12s var(--vs-ease); }
body.vs-theme table.dataTable tbody tr.selected,
body.vs-theme table.dataTable tbody tr.selected > td { background-color: var(--vs-accent-soft) !important; }
body.vs-theme .table td .btn + .btn,
body.vs-theme .table td .btn + form,
body.vs-theme .table td form + .btn { margin-left: 4px; }
body.vs-theme .table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--vs-accent); vertical-align: middle; }

/* Empty and loading states */
body.vs-theme table.dataTable td.dataTables_empty {
    padding: 40px 16px !important;
    text-align: center;
    color: var(--vs-muted);
    background: var(--vs-surface) !important;
}
body.vs-theme .dataTables_wrapper .dataTables_processing {
    top: 40%;
    left: 50%;
    width: auto;
    min-width: 0;
    margin: 0;
    transform: translate(-50%, -50%);
    padding: 10px 18px 10px 40px;
    border: 1px solid var(--vs-line);
    border-radius: 999px;
    background: var(--vs-surface);
    box-shadow: var(--vs-shadow-pop);
    color: var(--vs-ink-2);
    font-size: 13px;
    font-weight: 500;
    z-index: 5;
}
body.vs-theme .dataTables_wrapper .dataTables_processing::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid var(--vs-accent-soft);
    border-top-color: var(--vs-accent);
    border-radius: 50%;
    animation: vs-spin 0.7s linear infinite;
}
@keyframes vs-spin { to { transform: rotate(360deg); } }

/* Toolbars: "Add new" stays solid; sample sheets and exports become quieter outline buttons */
body.vs-theme a.btn[download],
body.vs-theme a.btn[href*="/export/"],
body.vs-theme a.btn[href*="dummysheets"] {
    background-color: var(--vs-surface) !important;
    border: 1px solid var(--vs-line-strong) !important;
    color: var(--vs-ink) !important;
}
body.vs-theme a.btn[download]:hover,
body.vs-theme a.btn[href*="/export/"]:hover,
body.vs-theme a.btn[href*="dummysheets"]:hover {
    background-color: var(--vs-surface-2) !important;
    border-color: var(--vs-accent) !important;
    color: var(--vs-accent) !important;
}
body.vs-theme .card-body > .row .btn,
body.vs-theme .card-body .btn-group > .btn { margin-bottom: 6px; }

/* Import file pickers that the template styles as a solid button */
body.vs-theme input[type="file"].btn {
    display: inline-flex;
    align-items: center;
    height: auto;
    min-height: 38px;
    padding: 4px 10px 4px 4px;
    background: var(--vs-surface) !important;
    border: 1px dashed var(--vs-line-strong) !important;
    color: var(--vs-ink-2) !important;
    font-size: 13px;
    cursor: pointer;
}
body.vs-theme input[type="file"].btn:hover { border-color: var(--vs-accent) !important; background: var(--vs-accent-soft) !important; }
body.vs-theme input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    background: var(--vs-accent-soft);
    color: var(--vs-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* Filter bars above tables (date range, client, staff) */
body.vs-theme .page-content > .row label,
body.vs-theme .page-content label { color: var(--vs-ink-2); font-weight: 500; font-size: 13.5px; }
body.vs-theme input[type="date"].form-control { min-height: 38px; }

/* ---------- Modals, alerts, badges ---------- */

body.vs-theme .modal-content {
    border: 0;
    border-radius: var(--vs-radius-lg);
    box-shadow: var(--vs-shadow-pop);
    overflow: hidden;
}
body.vs-theme .modal-dialog { margin-top: 8vh; }
body.vs-theme .modal-header { display: flex; align-items: center; border-bottom: 1px solid var(--vs-line); padding: 16px 20px; }
body.vs-theme .modal-header .modal-title { order: -1; margin: 0 auto 0 0; text-align: left; }
body.vs-theme .modal-header .close { margin: 0; padding: 4px 8px; opacity: 0.5; font-weight: 400; }
body.vs-theme .modal-header .close:hover { opacity: 0.9; }
body.vs-theme .modal-title { font-weight: 600; font-size: 17px !important; letter-spacing: -0.01em; color: var(--vs-ink); }
body.vs-theme .modal-body { padding: 20px; }
/* Forms inside modals sit in a card in the markup; drop the second frame */
body.vs-theme .modal-body .card,
body.vs-theme .modal-body .card-box { border: 0; box-shadow: none; border-radius: 0; margin: 0; }
body.vs-theme .modal-body .card-body { padding: 0; }
body.vs-theme .modal-footer { border-top: 1px solid var(--vs-line); }
body.vs-theme .modal-backdrop.show,
body.vs-theme .modal-backdrop.in { opacity: 0.45; background: #0b1724; }

body.vs-theme .alert { border-radius: var(--vs-radius); border: 1px solid transparent; }
body.vs-theme .alert-success { background: var(--vs-good-soft); border-color: #c6e8c6; color: #0b4f0b; }
body.vs-theme .alert-danger { background: var(--vs-critical-soft); border-color: #f2c9c9; color: #7f1f1f; }
body.vs-theme .alert-warning { background: var(--vs-warning-soft); border-color: #f5dea6; color: #5c4100; }
body.vs-theme .alert-info { background: var(--vs-accent-soft); border-color: #c8e1f1; color: #134d70; }

body.vs-theme .badge { border-radius: 6px; font-weight: 600; }

/* sweetalert */
body.vs-theme .swal-modal { border-radius: var(--vs-radius-lg); font-family: var(--vs-font); }
body.vs-theme .swal-button { border-radius: var(--vs-radius-sm); background: var(--vs-accent); font-weight: 500; }
body.vs-theme .swal-button:not([disabled]):hover { background: var(--vs-accent-hover); }
body.vs-theme .swal-button--cancel { background: var(--vs-surface-2); color: var(--vs-ink); }
body.vs-theme .swal-button--danger { background: var(--vs-critical); }

/* Settings shortcut */
body.vs-theme .quick-setting-main .control-sidebar-btn { background: var(--vs-nav); border-radius: 12px 0 0 12px; }

/* ---------- Page load progress ---------- */

.vs-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #4fb3ea;
    z-index: 10050;
    opacity: 0;
    pointer-events: none;
}
.vs-progress.is-loading {
    opacity: 1;
    width: 85%;
    transition: width 8s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.2s;
}

/* ---------- Quick jump (Ctrl+K) ---------- */

.vs-cmdk[hidden] { display: none; }
.vs-cmdk {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    background: rgba(11, 23, 36, 0.45);
    animation: vs-fade 0.12s ease-out;
}
.vs-cmdk-panel {
    width: min(560px, calc(100vw - 32px));
    background: var(--vs-surface);
    border-radius: var(--vs-radius-lg);
    box-shadow: var(--vs-shadow-pop);
    overflow: hidden;
    font-family: var(--vs-font);
    animation: vs-pop 0.16s var(--vs-ease);
}
.vs-cmdk-input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--vs-line); }
.vs-cmdk-input-wrap i { color: var(--vs-muted); font-size: 18px; }
.vs-cmdk-input {
    flex: 1;
    height: 52px;
    border: 0;
    outline: 0;
    font-size: 15px;
    color: var(--vs-ink);
    background: transparent;
}
.vs-cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; }
.vs-cmdk-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--vs-radius-sm);
    color: var(--vs-ink);
    text-decoration: none;
    font-size: 14px;
}
.vs-cmdk-list li a i { color: var(--vs-muted); font-size: 18px; width: 20px; text-align: center; }
.vs-cmdk-list li a small { margin-left: auto; color: var(--vs-muted); font-size: 12px; }
.vs-cmdk-list li.is-selected a { background: var(--vs-accent-soft); color: var(--vs-ink); }
.vs-cmdk-list li.is-selected a i { color: var(--vs-accent); }
.vs-cmdk-empty { padding: 18px; color: var(--vs-muted); font-size: 14px; }
.vs-cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--vs-line); color: var(--vs-muted); font-size: 12px; }
.vs-cmdk-foot kbd { font-family: var(--vs-font); font-size: 11px; background: var(--vs-surface-2); border: 1px solid var(--vs-line); border-radius: 5px; padding: 1px 5px; color: var(--vs-ink-2); box-shadow: none; }

@keyframes vs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vs-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Dashboard ---------- */

.vs-dash { font-variant-numeric: normal; }

.vs-dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}
.vs-dash-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--vs-ink);
}
.vs-dash-sub { margin: 0; color: var(--vs-muted); font-size: 14px; max-width: 70ch; }

.vs-segmented {
    display: inline-flex;
    padding: 3px;
    background: #e8ecf1;
    border-radius: 10px;
    gap: 2px;
    flex-wrap: wrap;
}
.vs-segmented a {
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--vs-ink-2);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s var(--vs-ease), color 0.15s var(--vs-ease);
}
body.vs-theme .vs-segmented a:hover { color: var(--vs-ink); background: rgba(255, 255, 255, 0.6); }
body.vs-theme .vs-segmented a.is-active { background: var(--vs-surface); color: var(--vs-ink); box-shadow: 0 1px 2px rgba(15, 34, 51, 0.12); }

.vs-kpis {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) 2.6fr;
    gap: 16px;
    margin-bottom: 16px;
}

.vs-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 0;
    border-radius: var(--vs-radius-lg);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(79, 179, 234, 0.20) 0%, rgba(79, 179, 234, 0) 55%),
        var(--vs-nav);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 34, 51, 0.22);
}
.vs-hero-label { margin: 0; color: #aebbcb; font-size: 14px; font-weight: 500; }
.vs-hero-value {
    margin: 6px 0 8px;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: -0.04em;
    color: #fff;
}
.vs-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; color: #c9d3df; font-size: 13px; }
.vs-hero .vs-change.is-good { color: #5fdc6d; background: rgba(12, 163, 12, 0.18); }
.vs-hero .vs-change.is-bad { color: #ff9a9a; background: rgba(208, 59, 59, 0.22); }
.vs-hero .vs-change.is-neutral { color: #c9d3df; background: rgba(255, 255, 255, 0.08); }
.vs-spark { margin: 14px -24px 0; }

.vs-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--vs-surface);
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius-lg);
    box-shadow: var(--vs-shadow);
    overflow: hidden;
}
.vs-tile { padding: 18px 22px; min-width: 0; }
.vs-tile:nth-child(odd) { border-right: 1px solid var(--vs-line); }
.vs-tile:nth-child(-n+2) { border-bottom: 1px solid var(--vs-line); }
.vs-tile-label { margin: 0; color: var(--vs-muted); font-size: 13px; font-weight: 500; }
.vs-tile-value { margin: 6px 0; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--vs-ink); white-space: nowrap; }
.vs-tile-value small { font-size: 13px; font-weight: 500; color: var(--vs-muted); letter-spacing: 0; }
.vs-tile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--vs-muted); font-size: 12.5px; }

.vs-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.vs-change i { font-size: 13px; }
.vs-change.is-good { color: var(--vs-good-text); background: var(--vs-good-soft); }
.vs-change.is-bad { color: #a32626; background: var(--vs-critical-soft); }
.vs-change.is-neutral { color: var(--vs-ink-2); background: #eef1f4; }

.vs-ops {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.vs-op {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--vs-surface);
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius);
}
.vs-op > i {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--vs-accent-soft);
    color: var(--vs-accent);
    font-size: 21px;
}
.vs-op-value { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; color: var(--vs-ink); }
.vs-op-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; color: var(--vs-muted); font-size: 12.5px; }
.vs-op-label .vs-change { padding: 1px 5px 1px 3px; font-size: 11px; }

.vs-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}
.vs-span-4 { grid-column: span 4; }
.vs-span-6 { grid-column: span 6; }
.vs-span-8 { grid-column: span 8; }
.vs-span-12 { grid-column: span 12; }

.vs-panel {
    min-width: 0;
    padding: 20px 22px;
    background: var(--vs-surface);
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius-lg);
    box-shadow: var(--vs-shadow);
}
.vs-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vs-panel-title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--vs-ink); }
.vs-panel-sub { margin: 3px 0 0; color: var(--vs-muted); font-size: 13px; max-width: 62ch; }

body.vs-theme .vs-link {
    flex: none;
    color: var(--vs-accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
body.vs-theme .vs-link:hover { color: var(--vs-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.vs-chart { margin: 0 -8px; min-height: 300px; }

.vs-table-toggle { margin-top: 8px; }
.vs-table-toggle summary { cursor: pointer; color: var(--vs-accent); font-size: 13px; font-weight: 500; width: max-content; }
.vs-table-toggle[open] summary { margin-bottom: 10px; }

.vs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.vs-table th { padding: 8px 10px; color: var(--vs-muted); font-weight: 500; font-size: 12.5px; text-align: left; border-bottom: 1px solid var(--vs-line); white-space: nowrap; }
.vs-table td { padding: 10px; border-bottom: 1px solid var(--vs-line); color: var(--vs-ink); vertical-align: middle; }
.vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table .num { text-align: right; }
.vs-table-wrap { overflow-x: auto; margin: 0 -10px; }

.vs-slot-1 { background: var(--vs-slot-1); }
.vs-slot-2 { background: var(--vs-slot-2); }
.vs-slot-3 { background: var(--vs-slot-3); }
.vs-slot-4 { background: var(--vs-slot-4); }

.vs-stack { display: flex; gap: 2px; height: 14px; margin: 6px 0 18px; }
.vs-stack-seg { min-width: 4px; flex-basis: 0; }
.vs-stack-seg:first-child { border-radius: 4px 0 0 4px; }
.vs-stack-seg:last-child { border-radius: 0 4px 4px 0; }
.vs-stack-seg:only-child { border-radius: 4px; }

.vs-legend-list { list-style: none; margin: 0; padding: 0; }
.vs-legend-list li {
    display: grid;
    grid-template-columns: 12px 1fr auto 44px;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--vs-line);
    font-size: 13.5px;
}
.vs-legend-list li:last-child { border-bottom: 0; }
.vs-key { width: 10px; height: 10px; border-radius: 3px; }
.vs-legend-name { color: var(--vs-ink); }
.vs-legend-value { color: var(--vs-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.vs-legend-share { color: var(--vs-muted); text-align: right; font-variant-numeric: tabular-nums; }

.vs-bar-row {
    display: grid;
    grid-template-columns: minmax(110px, 1.1fr) 2fr 64px 72px;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: 13.5px;
}
.vs-bar-row--compact { grid-template-columns: minmax(110px, 1.2fr) 1.4fr 64px; }
.vs-bar-name { color: var(--vs-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-bar-name small { color: var(--vs-muted); font-size: 12px; margin-left: 4px; }
.vs-bar-track { position: relative; height: 12px; }
.vs-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; max-width: 100%; }
.vs-bar-value { color: var(--vs-ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.vs-bar-extra { color: var(--vs-muted); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }

.vs-attention { list-style: none; margin: 0; padding: 0; }
.vs-attention li {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--vs-line);
    font-size: 14px;
    color: var(--vs-ink-2);
}
.vs-attention li:last-child { border-bottom: 0; }
.vs-attention li strong { color: var(--vs-ink); font-weight: 650; }
.vs-attention li > i { font-size: 20px; }
.vs-attention .vs-status-critical > i { color: var(--vs-critical); }
.vs-attention .vs-status-serious > i { color: var(--vs-serious); }
.vs-attention .vs-status-warning > i { color: #d99400; }

.vs-empty { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--vs-muted); font-size: 14px; }
.vs-empty i { color: var(--vs-good); font-size: 20px; }

.vs-budget-client { font-weight: 500; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-meter {
    position: relative;
    width: 160px;
    height: 8px;
    border-radius: 4px;
    background: #dcebf5;
}
.vs-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--vs-accent); }
.vs-meter-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--vs-ink); border-radius: 1px; box-shadow: 0 0 0 1.5px var(--vs-surface); }
.vs-meter.vs-status-info { background: #e3eef6; }
.vs-meter.vs-status-info .vs-meter-fill { background: #79b4dc; }
.vs-meter.vs-status-warning { background: #fdedc4; }
.vs-meter.vs-status-warning .vs-meter-fill { background: var(--vs-warning); }
.vs-meter.vs-status-serious { background: #f9dacd; }
.vs-meter.vs-status-serious .vs-meter-fill { background: var(--vs-serious); }
.vs-meter.vs-status-critical { background: #f4c9c9; }
.vs-meter.vs-status-critical .vs-meter-fill { background: var(--vs-critical); }
.vs-meter-caption { display: block; margin-top: 5px; color: var(--vs-muted); font-size: 12px; }

.vs-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 7px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--vs-ink);
    white-space: nowrap;
}
.vs-status i { font-size: 15px; }
.vs-status.vs-status-good { background: var(--vs-good-soft); }
.vs-status.vs-status-good i { color: var(--vs-good); }
.vs-status.vs-status-info { background: var(--vs-accent-soft); }
.vs-status.vs-status-info i { color: var(--vs-accent); }
.vs-status.vs-status-warning { background: var(--vs-warning-soft); }
.vs-status.vs-status-warning i { color: #d99400; }
.vs-status.vs-status-serious { background: var(--vs-serious-soft); }
.vs-status.vs-status-serious i { color: #d4632f; }
.vs-status.vs-status-critical { background: var(--vs-critical-soft); }
.vs-status.vs-status-critical i { color: var(--vs-critical); }

.vs-dash-foot { margin-top: 18px; color: var(--vs-muted); font-size: 12.5px; }

/* Numbered how-to steps (Claude access page) */
.vs-steps { margin: 0; padding: 0; list-style: none; counter-reset: vs-step; }
.vs-steps li { position: relative; padding: 0 0 14px 36px; color: var(--vs-ink-2); font-size: 14px; line-height: 1.5; counter-increment: vs-step; }
.vs-steps li::before {
    content: counter(vs-step);
    position: absolute; left: 0; top: 0;
    width: 24px; height: 24px; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--vs-accent-soft); color: var(--vs-accent);
    font-size: 12.5px; font-weight: 700;
}
.vs-steps li strong { color: var(--vs-ink); font-weight: 600; }
body.vs-theme .vs-panel code { background: var(--vs-surface-2); border: 1px solid var(--vs-line); border-radius: 5px; padding: 1px 6px; color: var(--vs-ink); font-size: 12.5px; word-break: break-all; }

/* ApexCharts */
.vs-dash .apexcharts-tooltip.apexcharts-theme-light {
    border: 1px solid var(--vs-line);
    border-radius: var(--vs-radius-sm);
    box-shadow: var(--vs-shadow-pop);
    font-family: var(--vs-font);
}
.vs-dash .apexcharts-tooltip-title { background: var(--vs-surface-2) !important; border-bottom-color: var(--vs-line) !important; font-weight: 600; }
.vs-dash .apexcharts-tooltip-text-y-value { font-variant-numeric: tabular-nums; }

/* theme_style.css sets h1–h6 sizes with !important, so the dashboard scale has to as well */
body.vs-theme .vs-dash .vs-dash-title { font-size: 28px !important; line-height: 1.15; font-weight: 650; }
body.vs-theme .vs-panel .vs-panel-title { font-size: 16px !important; line-height: 1.35; font-weight: 600; }
body.vs-theme .vs-panel p { line-height: 1.5; }
body.vs-theme .vs-dash .vs-hero-label { font-size: 14px !important; line-height: 1.4; font-weight: 500; }
body.vs-theme .vs-dash .vs-tile-label { font-size: 13px !important; line-height: 1.4; font-weight: 500; }
body.vs-theme .vs-dash p { line-height: 1.45; }
body.vs-theme .vs-segmented a { color: var(--vs-ink-2); }
body.vs-theme .sidemenu-container .user-panel .info a .txtOnline { color: var(--vs-nav-ink); }

@media (max-width: 1399px) {
    .vs-kpis { grid-template-columns: 1fr; }
    .vs-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
    .vs-span-4, .vs-span-6, .vs-span-8 { grid-column: span 12; }
}
@media (max-width: 767px) {
    body.vs-theme .page-content-wrapper .page-content { padding: 16px; }
    .vs-dash-title { font-size: 23px; }
    .vs-hero-value { font-size: 38px; }
    .vs-tiles { grid-template-columns: 1fr; }
    .vs-tile:nth-child(odd) { border-right: 0; }
    .vs-tile { border-bottom: 1px solid var(--vs-line); }
    .vs-tile:last-child { border-bottom: 0; }
    .vs-ops { grid-template-columns: 1fr; }
    .vs-bar-row { grid-template-columns: minmax(90px, 1fr) 1fr 56px; }
    .vs-bar-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .vs-cmdk, .vs-cmdk-panel { animation: none; }
    .vs-progress.is-loading { transition: none; }
    body.vs-theme * { transition-duration: 0s !important; }
}
