:root {
    --rad: 6px;
    --sidebar-w: 240px;
    --sidebar-mini: 68px;
    --topbar-h: 56px;
    --ease: .18s cubic-bezier(.4, 0, .2, 1);
}

html[data-theme="dark"] {
    --bg:        #0b0d11;
    --panel:     #14181f;
    --panel-2:   #1a1f29;
    --panel-3:   #212838;
    --sidebar:   #07090c;
    --sidebar-2: #10141b;
    --topbar:    #10141b;
    --border:    #242c3a;
    --border-2:  #2e3747;
    --text:      #c4ccd9;
    --text-dim:  #7a8697;
    --head:      #eaf0f8;
    --accent:    #ffc21a;
    --accent-2:  #ffd75e;
    --accent-ink:#13161c;
    --accent-soft: rgba(255,194,26,.12);
    --success:   #2ecc9a;
    --success-soft: rgba(46,204,154,.14);
    --danger:    #ff5c5c;
    --danger-soft: rgba(255,92,92,.14);
    --warning:   #ffb020;
    --warning-soft: rgba(255,176,32,.14);
    --info:      #4aa8ff;
    --info-soft: rgba(74,168,255,.14);
    --muted-soft: rgba(255,255,255,.07);
    --shadow:    0 10px 30px rgba(0,0,0,.55);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --input-bg:  #0f1319;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg:        #eef0f4;
    --panel:     #ffffff;
    --panel-2:   #f6f7fa;
    --panel-3:   #eceef3;
    --sidebar:   #11141a;
    --sidebar-2: #181c24;
    --topbar:    #ffffff;
    --border:    #e1e5ec;
    --border-2:  #d3d9e3;
    --text:      #55606f;
    --text-dim:  #8e99a8;
    --head:      #232a35;
    --accent:    #e0a200;
    --accent-2:  #c98f00;
    --accent-ink:#1a1a1a;
    --accent-soft: rgba(224,162,0,.13);
    --success:   #18a97f;
    --success-soft: rgba(24,169,127,.12);
    --danger:    #d94c4c;
    --danger-soft: rgba(217,76,76,.12);
    --warning:   #d79100;
    --warning-soft: rgba(215,145,0,.13);
    --info:      #2d7fd3;
    --info-soft: rgba(45,127,211,.12);
    --muted-soft: rgba(0,0,0,.05);
    --shadow:    0 10px 30px rgba(20,28,45,.16);
    --shadow-sm: 0 1px 2px rgba(20,28,45,.06);
    --input-bg:  #ffffff;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4, h5 { font-weight: 600; color: var(--head); margin: 0 0 10px; }
img, svg { max-width: 100%; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container-wrap { min-height: 100%; }

.left_col {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: var(--sidebar-w);
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 60;
    transition: width var(--ease), transform var(--ease);
}
.sidebar-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }

.right_col {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex; flex-direction: column;
    transition: margin-left var(--ease);
}
.main-body { padding: 4px 20px 24px; flex: 1; min-width: 0; }

#sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    opacity: 0; pointer-events: none; transition: opacity var(--ease); z-index: 55;
    backdrop-filter: blur(2px);
}

body.nav-mini .left_col { width: var(--sidebar-mini); }
body.nav-mini .right_col { margin-left: var(--sidebar-mini); }
body.nav-mini .hide-mini,
body.nav-mini .nav-section > h3,
body.nav-mini .profile_info .who,
body.nav-mini .sidebar-footer { display: none; }
body.nav-mini .site_title { justify-content: center; }
body.nav-mini .profile_info { justify-content: center; padding: 14px 0; }
body.nav-mini .nav.side-menu > li > a { justify-content: center; padding: 14px 0; gap: 0; }
body.nav-mini .nav.side-menu > li > a .label { display: none; }
body.nav-mini .nav.side-menu .badge-nav {
    position: absolute; top: 7px; right: 12px; margin: 0;
}
body.nav-mini .nav.side-menu > li { position: relative; }

.navbar-brand-box {
    height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--sidebar-2); flex: none;
}
.site_title { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; overflow: hidden; }
.site_title .logo {
    width: 32px; height: 32px; flex: none; border-radius: 9px;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    display: grid; place-items: center; font-size: 17px; color: var(--accent-ink);
    box-shadow: 0 0 14px rgba(255,194,26,.35);
}
.site_title .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-close {
    display: none; background: none; border: 0; color: #8793a5; font-size: 22px; cursor: pointer;
    line-height: 1; padding: 2px 6px; border-radius: 6px;
}
.sidebar-close:hover { background: rgba(255,255,255,.08); color: #fff; }

.profile_info {
    padding: 14px; display: flex; gap: 11px; align-items: center;
    border-bottom: 1px solid var(--border); background: var(--sidebar-2);
}
.profile_info .avatar {
    width: 38px; height: 38px; flex: none; border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    display: grid; place-items: center; color: var(--accent-ink); font-weight: 800; font-size: 15px;
}
.profile_info .who { min-width: 0; }
.profile_info span { color: #8793a5; font-size: 11px; display: block; }
.profile_info h2 { color: #f0f3f8; font-size: 13px; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-section { padding: 6px 0 2px; }
.nav-section > h3 {
    color: #6d788a; text-transform: uppercase; font-size: 10px; letter-spacing: 1px;
    padding: 12px 16px 6px; margin: 0; font-weight: 700;
}
.nav.side-menu { list-style: none; margin: 0; padding: 0 8px; }
.nav.side-menu > li { margin-bottom: 2px; }
.nav.side-menu > li > a {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px;
    color: #adb7c6; font-weight: 500; border-radius: var(--rad); position: relative;
    transition: background var(--ease), color var(--ease);
}
.nav.side-menu > li > a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav.side-menu > li.active > a { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 2px 12px rgba(255,194,26,.28); }
.nav.side-menu > li.active > a .icon { opacity: 1; }
.nav.side-menu .icon { width: 20px; flex: none; text-align: center; font-size: 14px; opacity: .85; }
.nav.side-menu .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav.side-menu .badge-nav {
    margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 9px; min-width: 18px; text-align: center;
}
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border); color: #5f6a7b; font-size: 10.5px; flex: none; }

.top_nav {
    position: sticky; top: 0; z-index: 40;
    background: var(--topbar); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.nav_menu { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 0 16px; min-height: var(--topbar-h); }
.nav_left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav_title { font-size: 15px; color: var(--head); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav_right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.icon-btn {
    background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
    width: 34px; height: 34px; border-radius: var(--rad); cursor: pointer;
    display: grid; place-items: center; font-size: 15px; flex: none; transition: var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
#hamburger { display: none; }

.pill {
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 20px;
    padding: 5px 12px; font-size: 11.5px; color: var(--text-dim); white-space: nowrap;
}
.pill b { color: var(--head); }
.pill-accent { border-color: var(--accent); color: var(--accent); }

.page-title { display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 0 12px; flex-wrap: wrap; gap: 12px; }
.page-title h3 { font-size: 21px; color: var(--head); margin: 0 0 2px; font-weight: 700; letter-spacing: -.2px; }
.page-title .sub { font-size: 12px; color: var(--text-dim); }

.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col { padding: 0 8px; margin-bottom: 16px; min-width: 0; }
.col-3 { width: 25%; } .col-4 { width: 33.3333%; } .col-6 { width: 50%; }
.col-8 { width: 66.6666%; } .col-9 { width: 75%; } .col-12 { width: 100%; }

.x_panel {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--rad);
    padding: 14px 16px; box-shadow: var(--shadow-sm); height: 100%;
}
.x_title {
    border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.x_title h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--head); display: flex; align-items: center; gap: 8px; }
.x_title small { color: var(--text-dim); font-weight: 400; font-size: 11px; }
.x_content { padding-bottom: 2px; }

.tile_stats {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--rad);
    padding: 15px 16px; position: relative; overflow: hidden; height: 100%;
    transition: transform var(--ease), border-color var(--ease);
}
.tile_stats:hover { transform: translateY(-2px); border-color: var(--border-2); }
.tile_stats::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .9; }
.tile_stats::after { content: ""; position: absolute; right: -24px; top: -24px; width: 86px; height: 86px; border-radius: 50%; background: var(--accent-soft); }
.tile_stats .icon { font-size: 18px; opacity: .95; }
.tile_stats .count { font-size: 24px; font-weight: 700; color: var(--head); line-height: 1.2; margin: 6px 0 2px; letter-spacing: -.4px; word-break: break-word; }
.tile_stats .label { text-transform: uppercase; font-size: 10.5px; letter-spacing: .6px; color: var(--text-dim); font-weight: 600; }
.tile_stats .delta { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.tile_stats.green::before { background: var(--success); } .tile_stats.green::after { background: var(--success-soft); }
.tile_stats.blue::before  { background: var(--info); }    .tile_stats.blue::after  { background: var(--info-soft); }
.tile_stats.orange::before{ background: var(--warning); } .tile_stats.orange::after{ background: var(--warning-soft); }
.tile_stats.red::before   { background: var(--danger); }  .tile_stats.red::after   { background: var(--danger-soft); }
.tile_stats.purple::before{ background: #a06bff; }        .tile_stats.purple::after{ background: rgba(160,107,255,.13); }

.btn {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    padding: 7px 13px; border-radius: var(--rad); border: 1px solid transparent;
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
    background: var(--panel-3); color: var(--text); line-height: 1.4; white-space: nowrap;
    transition: filter var(--ease), transform var(--ease), border-color var(--ease);
}
.btn:hover { filter: brightness(1.12); }
html[data-theme="light"] .btn:hover { filter: brightness(.96); }
.btn:active { transform: translateY(1px); }
.btn-success { background: var(--success); color: #06231a; }
.btn-primary { background: var(--info); color: #04172b; }
.btn-danger  { background: var(--danger); color: #2a0808; }
.btn-warning { background: var(--warning); color: #241700; }
.btn-dark    { background: var(--accent); color: var(--accent-ink); }
.btn-ghost   { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-xs { padding: 4px 9px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.seg { display: inline-flex; background: var(--panel-3); border: 1px solid var(--border); border-radius: var(--rad); padding: 2px; gap: 2px; }
.seg button {
    background: none; border: 0; color: var(--text-dim); font-family: inherit; font-size: 11.5px; font-weight: 600;
    padding: 5px 12px; border-radius: 4px; cursor: pointer; transition: var(--ease); white-space: nowrap;
}
.seg button:hover { color: var(--head); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

.form-group { margin-bottom: 13px; }
label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 5px; text-transform: none; }
.form-control, select, textarea,
input[type=text], input[type=number], input[type=password], input[type=search], input[type=email] {
    width: 100%; padding: 9px 11px; border: 1px solid var(--border-2); border-radius: var(--rad);
    background: var(--input-bg); color: var(--head); font-size: 13px; font-family: inherit;
    transition: border-color var(--ease), box-shadow var(--ease);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: .7; }
textarea { min-height: 95px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.help-text { font-size: 11px; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 170px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; color: var(--text); font-weight: 500; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.table-wrap::-webkit-scrollbar { height: 7px; }
.swipe-hint { display: none; font-size: 10.5px; color: var(--text-dim); margin-top: 6px; }
@media (max-width: 760px) { .swipe-hint { display: block; } }
table.table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
table.table th {
    text-align: left; padding: 10px; border-bottom: 1px solid var(--border-2);
    color: var(--text-dim); font-weight: 700; text-transform: uppercase; font-size: 10.5px;
    letter-spacing: .5px; white-space: nowrap; background: var(--panel-2); position: sticky; top: 0;
}
table.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: var(--panel-2); }
table.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.muted { color: var(--text-dim); }
.empty-state { text-align: center; padding: 36px 10px; color: var(--text-dim); }
.empty-state .big { font-size: 34px; display: block; margin-bottom: 8px; opacity: .45; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 700; letter-spacing: .2px; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-muted   { background: var(--muted-soft);   color: var(--text-dim); }

.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.65); display: none;
    align-items: flex-start; justify-content: center; z-index: 120; padding: 30px 14px; overflow-y: auto;
    backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--panel); border: 1px solid var(--border-2); border-radius: 10px; width: 100%; max-width: 580px;
    box-shadow: var(--shadow); animation: pop .16s ease-out; margin: auto 0;
}
@keyframes pop { from { transform: translateY(-10px) scale(.99); opacity: 0; } }
.modal-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-header h4 { margin: 0; font-size: 15px; color: var(--head); }
.modal-header .close { cursor: pointer; font-size: 24px; color: var(--text-dim); line-height: 1; background: none; border: 0; padding: 0 4px; border-radius: 5px; }
.modal-header .close:hover { color: var(--danger); background: var(--danger-soft); }
.modal-body { padding: 16px 18px; max-height: 68vh; overflow-y: auto; }
.modal-footer { padding: 13px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast {
    background: var(--panel); color: var(--head); padding: 11px 15px; border-radius: var(--rad); font-size: 12.5px;
    box-shadow: var(--shadow); border: 1px solid var(--border-2); border-left: 3px solid var(--success);
    animation: slide .2s ease-out; max-width: 340px;
}
.toast.error { border-left-color: var(--danger); }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }

#login-view {
    position: fixed; inset: 0; z-index: 300; padding: 20px; overflow-y: auto;
    display: grid; place-items: center;
    background:
        radial-gradient(900px 420px at 50% -8%, rgba(255,194,26,.13), transparent 60%),
        var(--bg);
}
.login-card {
    background: var(--panel); border: 1px solid var(--border-2); border-radius: 12px; padding: 30px 26px;
    width: 100%; max-width: 380px; box-shadow: var(--shadow);
}
.login-card h1 { text-align: center; font-size: 20px; margin-bottom: 4px; color: var(--head); }
.login-card p.sub { text-align: center; color: var(--text-dim); margin: 0 0 22px; font-size: 12px; }
.login-logo {
    width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 16px;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    display: grid; place-items: center; font-size: 28px; color: var(--accent-ink);
    box-shadow: 0 0 26px rgba(255,194,26,.35);
}
.login-sep { text-align: center; margin: 16px 0 8px; color: var(--text-dim); font-size: 11px; }
code { background: var(--panel-3); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; }

.chart-box { position: relative; width: 100%; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.chart-svg .bar { fill: var(--accent); transition: fill var(--ease), opacity var(--ease); cursor: pointer; }
.chart-svg .bar:hover { fill: var(--accent-2); }
.chart-svg .grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-svg .axis-text { fill: var(--text-dim); font-size: 10px; font-family: inherit; }
.chart-svg .axis-base { stroke: var(--border-2); stroke-width: 1; }
.chart-legend { display: flex; gap: 16px; font-size: 11px; color: var(--text-dim); margin-top: 10px; flex-wrap: wrap; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart-sum { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-sum .item .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); font-weight: 600; }
.chart-sum .item .v { font-size: 17px; font-weight: 700; color: var(--head); }

.flex { display: flex; } .items-center { align-items: center; } .gap { gap: 8px; }
.between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; } .ml-auto { margin-left: auto; }
.text-right { text-align: right; } .nowrap { white-space: nowrap; }
.footer { padding: 16px 20px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 11.5px; background: var(--panel); }
.progress { height: 7px; background: var(--panel-3); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.save-bar { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent 60%), var(--panel); }
.scroll-box { max-height: 320px; overflow-y: auto; }
.chat-log { display: flex; flex-direction: column; gap: 9px; }
.chat-msg { padding: 9px 12px; border-radius: 10px; max-width: 86%; font-size: 12.5px; }
.chat-msg.user { background: var(--panel-3); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-msg.admin { background: var(--accent-soft); align-self: flex-end; border-bottom-right-radius: 2px; color: var(--head); }
.chat-msg .when { display: block; font-size: 10px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 1280px) {
    .col-3 { width: 50%; }
}
@media (max-width: 1100px) {
    .col-4, .col-6, .col-8, .col-9 { width: 100%; }
}
@media (max-width: 1024px) {
    
    .left_col { transform: translateX(-100%); box-shadow: none; width: 270px; }
    body.nav-open .left_col { transform: none; box-shadow: var(--shadow); }
    body.nav-open #sidebar-overlay { opacity: 1; pointer-events: auto; }
    .right_col { margin-left: 0 !important; }
    body.nav-mini .left_col { width: 270px; }
    .sidebar-close { display: block; }
    #hamburger { display: grid; }
    #collapse-btn { display: none; }
    body { overflow-x: hidden; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 760px) {
    table.table { min-width: 680px; }
    table.table td { white-space: nowrap; }
    .main-body { padding: 2px 12px 20px; }
    .nav_menu { padding: 8px 12px; gap: 8px; }
    .nav_right { gap: 6px; }
    .nav_right .pill { padding: 4px 9px; font-size: 11px; }
    .col-3 { width: 100%; }
    .page-title { padding: 14px 0 10px; }
    .page-title h3 { font-size: 18px; }
    .x_panel { padding: 12px 13px; }
    .modal-backdrop { padding: 12px; }
    .modal-body { max-height: 62vh; }
    .tile_stats .count { font-size: 19px; }
    .tile_stats { padding: 12px 13px; }
    .tile_stats::after { width: 60px; height: 60px; right: -18px; top: -18px; }
    .col-3 { width: 50%; }
    .col { margin-bottom: 12px; }
    .row { margin: 0 -5px; }
    .col { padding: 0 5px; }
    .footer { padding: 14px 12px; font-size: 11px; }
}
@media (max-width: 360px) {
    .col-3 { width: 100%; }
}
@media (max-width: 560px) {
    .nav_right .pill-hide-sm { display: none; }
    .btn { padding: 7px 11px; }
    .chart-sum { gap: 14px; }
    .seg button { padding: 5px 9px; font-size: 11px; }
}
@media print {
    .left_col, .top_nav, .footer, #toasts { display: none !important; }
    .right_col { margin-left: 0 !important; }
}
