:root{
  --nav:#142638;--nav2:#1c3547;--ink:#233647;--muted:#7b8a99;--line:#e5ebf0;
  --bg:#f3f6fa;--white:#fff;--accent:#119b83;--accent-dark:#0b7f6b;--accent-soft:#e7f5f0;
  --amber:#d69a37;--red:#d35454;--radius:14px;--shadow:0 4px 24px #223b501f;
}
*{box-sizing:border-box}
html{font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--ink);scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;background:var(--bg);font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:3px solid #56bba66b;outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.55}
[hidden]{display:none!important}
::selection{background:#c7eee3;color:#153c37}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}
.app-shell{height:100vh;min-height:100vh;display:flex;overflow:hidden}
.sidebar{width:252px;flex:none;background:var(--nav);color:#dce6ed;display:flex;flex-direction:column;padding:28px 18px 20px;position:relative;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#344b5c transparent;z-index:60}
.brand,.auth-brand{display:flex;align-items:center;gap:12px;color:#fff;font-size:21px;font-weight:750;letter-spacing:.5px}
.brand{padding:0 10px;margin-bottom:36px;flex:none}
.brand-mark{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:13px;background:#19ac90;color:#fff;box-shadow:0 5px 15px #0b1e2d22}
.brand-mark .icon{width:29px;height:29px;stroke-width:1.6}
.brand small,.auth-brand small{display:block;font-size:8px;font-weight:600;letter-spacing:2px;margin-top:3px;color:#8da6b6}
.nav-label{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:600;letter-spacing:1px;color:#6f8a9d;margin:0 13px 12px;flex:none}
.nav-label>span{font-size:8px;letter-spacing:1.5px;color:#4e6a80}
.sidebar nav{display:grid;gap:5px;margin-bottom:24px;flex:none}
.sidebar .nav-item{position:relative;display:flex;align-items:center;gap:13px;min-height:45px;padding:11px 14px;border:1px solid transparent;border-radius:10px;color:#9eb3c3;font-size:13px;font-weight:500;transition:background .16s,color .16s,border-color .16s}
.nav-icon{width:21px;height:21px;color:#7f9aaf;stroke-width:1.65}
.sidebar .nav-item:hover{color:#f1f7fa;background:#ffffff08}
.sidebar .nav-item:hover .nav-icon{color:#c0d4df}
.sidebar .nav-item.active{color:#e9fff8;background:#17483f;border-color:#28756255;font-weight:650}
.sidebar .nav-item.active .nav-icon{color:#62d9b8}
.nav-indicator{width:5px;height:5px;border-radius:50%;background:#64dfb6;margin-left:auto;box-shadow:0 0 9px #64dfb62a}
.system-nav-label{margin-top:3px}
.side-footer{display:flex;align-items:center;gap:11px;border-top:1px solid #ffffff0e;margin-top:auto;padding:19px 10px 0;flex:none}
.avatar{width:37px;height:37px;flex:none;border-radius:11px;background:#29485b;color:#cbe6ec;display:grid;place-items:center;font-size:15px;font-weight:700}
.avatar .icon{width:22px;height:22px;stroke-width:1.65}
.side-footer strong,.side-footer small{display:block}
.side-footer strong{font-size:12px;font-weight:650;color:#d3e2eb}
.side-footer small{font-size:10px;margin-top:3px;color:#718fa3}
.account-status{width:6px;height:6px;flex:none;border-radius:50%;background:#5ac79f;margin-left:auto}
.main-shell{flex:1;min-width:0;height:100vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aebdc7 transparent}
.topbar{position:sticky;top:0;z-index:40;height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 34px;background:#fff;border-bottom:1px solid #e6ecf1}
.topbar-location{display:flex;align-items:center;gap:16px;min-width:0}
.breadcrumb-home{display:grid;place-items:center;color:#8b9ba9}
.breadcrumb-home .icon{width:18px;height:18px}
.breadcrumb{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden}
.breadcrumb-link,.breadcrumb-current{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:7px;overflow:hidden;text-overflow:ellipsis}
.breadcrumb-link{color:#547286;border:1px solid transparent;transition:background .16s,color .16s,border-color .16s}
.breadcrumb-link:hover{color:var(--accent-dark);background:#eaf6f3;border-color:#cce8df}
.breadcrumb-root,.breadcrumb-group{font-weight:600}
.breadcrumb-group{color:#708796;background:#f7fafb;border-color:#e6edf0}
.breadcrumb-current{color:#2f5064;font-weight:650;background:#f0f5f7;border:1px solid #e0e9ed}
.breadcrumb-separator{color:#b8c5cd;margin:0 1px;padding:0}
.top-right{display:flex;align-items:center;gap:23px;flex:none;color:#7c8d9b;font-size:12px}
.top-date{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}
.top-date .icon{width:16px;height:16px;color:#9babba}
.top-user{display:inline-flex;align-items:center;gap:9px;color:#445b6a;font-weight:600}
.top-avatar{display:grid;place-items:center;width:31px;height:31px;background:#edf5f2;color:#29957e;border:1px solid #dcece6;border-radius:50%;font-style:normal;font-size:12px}
.top-avatar .icon{width:18px;height:18px;stroke-width:1.7}
.nav-toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid #e4ebef;border-radius:8px;background:#fff;color:#527080}
.nav-backdrop{position:fixed;inset:0;border:0;padding:0;background:#132d446b;z-index:55;opacity:1;transition:opacity .2s ease;touch-action:none}
.content{padding:34px 34px 62px;max-width:1680px;margin:auto}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:27px}
.page-heading h1{font-size:28px;line-height:1.3;letter-spacing:.3px;font-weight:750;margin:0 0 9px;color:#1d3445}
.page-heading p{font-size:12px;color:#82909d;margin:0;line-height:1.7}
.eyebrow{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:2px;font-weight:700;color:#449c8b;margin-bottom:9px}
.eyebrow:before{content:"";display:block;width:4px;height:4px;border-radius:1px;background:#34ab90}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.actions form{margin:0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:41px;padding:10px 16px;border:1px solid transparent;border-radius:9px;font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}
.button .icon{width:16px;height:16px;stroke-width:1.9}
.button.primary{color:#fff;background:var(--accent);box-shadow:0 4px 10px #109d801c}
.button.primary:hover{background:var(--accent-dark);box-shadow:0 5px 12px #109d802b;transform:translateY(-1px)}
.button.secondary{color:#526c7c;background:#fff;border-color:#dce5ec;box-shadow:0 1px 2px #17314205}
.button.secondary:hover{background:#f7fbfa;border-color:#a6c7be;color:#217d69}
.button.wide{width:100%}
.panel{background:#fff;border:1px solid #d5e2e8;border-radius:var(--radius);margin-bottom:20px;box-shadow:0 5px 18px #1c3d530b;overflow:hidden}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 24px;border-bottom:1px solid #edf1f4}
.panel-head h2,.form-panel h2,.action-panel h2{font-size:14px;font-weight:700;line-height:1.5;margin:0;color:#2c4252}
.panel-head p{font-size:11px;color:#96a3ae;margin:5px 0 0}
.panel-title{display:flex;align-items:center;gap:10px}
.panel-title>.icon{color:#6c9e95;width:19px;height:19px}
.panel-head .text-link{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px}
.panel-head .text-link .icon{width:14px;height:14px}
.two-col{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}
.text-link,.text-button{font-size:12px;color:#108b75;font-weight:600}
.text-button{background:transparent;border:0;padding:3px}
.danger-text{color:#c53b3b}
.text-link:hover,.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.table-wrap{width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#cddbe2 transparent}
.table-scroll-hint{padding:10px 16px 0;color:#8198a6;font-size:10px;text-align:right}
table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
th{text-align:left;background:#27485b;color:#e8f2f6;font-size:13px;font-weight:700;white-space:nowrap;letter-spacing:.2px}
th,td{padding:16px 20px;border-bottom:1px solid #edf1f5;vertical-align:middle}
thead th{border-bottom:3px solid #22a88e}
td{color:#637b8b;line-height:1.65}
td small{font-size:10.5px;color:#94a1ac}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f9fcfb}
.strong,td.strong{font-weight:650;color:#3b5667}
.strong-link{font-weight:700;color:#218d7b}
.strong-link:hover{text-decoration:underline;text-underline-offset:3px}
.mono{font-family:Consolas,"Microsoft YaHei",monospace;font-size:11px;color:#798c9a}
.empty{text-align:center!important;padding:48px 20px!important;color:#9aa9b5!important}
.badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 10px;border-radius:6px;font-size:10px;font-weight:650;line-height:1.4;white-space:nowrap;background:#eef3f6;color:#77909d}
.badge.pending{background:#fff5df;color:#b28b3a}
.badge.approved{background:#eaf2ff;color:#6289be}
.badge.fulfilled{background:#e7f6ed;color:#3b9d71}
.badge.rejected{background:#fcefeb;color:#c67668}
.badge.neutral{background:#eff4f6;color:#78909d}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 23px;border-bottom:1px solid #eaf0f4}
.search-form,.filter-form{display:flex;align-items:center;gap:9px}
.search-form input:not([type=hidden]){width:280px;padding-left:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a5b4' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center}
.result-count{font-size:11px;color:#9aa9b5;white-space:nowrap}
.subnav{display:flex;gap:8px;border:0;margin-bottom:18px;padding:0}
.subnav a{font-size:12px;font-weight:600;color:#8a9aa7;padding:9px 15px;border-radius:8px}
.subnav a.active{color:#118d76;background:#e5f2ed}
input,select,textarea{width:100%;min-height:44px;border:1px solid #b9ccd6;border-radius:8px;background:#fff;padding:10px 12px;color:#29495b;outline:none;font-size:12px;font-weight:500;transition:border-color .16s,box-shadow .16s}
input::placeholder,textarea::placeholder{color:#a4b0bb}
input:hover,select:hover,textarea:hover{border-color:#8fb3c0}
input:focus,select:focus,textarea:focus{border-color:#1eaa8d;box-shadow:0 0 0 3px #13a48422}
input[readonly]{background:#f6f9fa}
input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:var(--accent)}
input[type=hidden]{display:none}
input[type=file]{font-size:11px}
select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23758998' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}
textarea{resize:vertical;line-height:1.7}
label{display:block;color:#496879;font-size:12px;font-weight:650}
label input,label select,label textarea{margin-top:8px;font-weight:400}
label .required-mark{display:inline-block;margin-left:4px;color:#d63f47;font-size:18px;font-weight:800;line-height:1;vertical-align:-2px}
.attachment-fieldset{margin:0;padding:16px 18px 18px;border:1px solid #d7e5e9;border-radius:10px;background:#f8fbfb}
.attachment-fieldset legend{padding:0 7px;color:#2d5664;font-size:12px;font-weight:750}
.attachment-fieldset .checkbox-label{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:#365c6a}
.attachment-fieldset .checkbox-label input{margin:0}
.attachment-fieldset label+label{margin-top:14px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px}
.form-grid .full{grid-column:1/-1}
.form-panel{padding:25px}
.form-panel h2{margin-bottom:22px}
.form-panel>.panel-head{padding:0 0 19px;margin-bottom:22px}
.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px}
.stack-form{display:grid;gap:19px}
.info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.info-grid.compact{margin:0}
.info-card{padding:19px 20px;border:1px solid #d5e2e8;background:#fff;border-radius:11px;min-width:0;box-shadow:0 2px 9px #1c3d5307}
.compact .info-card{background:#f7fafb;border-color:#dce7ec}
.info-card span,.info-card strong{display:block}
.info-card span{font-size:11px;font-weight:400;color:#96a4b0;margin-bottom:9px}
.info-card strong{font-size:13px;font-weight:650;color:#415e70;overflow-wrap:anywhere}
.modal{width:min(700px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:26px 28px 28px;border:1px solid #fff;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 90px #142c4560;overflow:auto}
.modal::backdrop{background:#17314780;backdrop-filter:blur(3px)}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}
.modal-head h2{margin:0;font-size:19px;color:#274454}
.close-button{display:grid;place-items:center;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:#f3f6f8;color:#90a0ac;font-size:23px;line-height:1}
.close-button .icon{width:16px;height:16px}
.close-button:hover{background:#eaf0f3;color:#526e80}
.small-modal{width:min(450px,calc(100vw - 32px))}
.account-modal{width:min(460px,calc(100vw - 32px))}
.account-form{gap:17px;grid-template-columns:1fr!important}
.account-modal .form-grid{grid-template-columns:1fr!important}
.account-modal .form-actions{grid-column:1}
#addUser{width:min(460px,calc(100vw - 32px))}
#addUser form{grid-template-columns:1fr!important}
#addUser .form-actions{grid-column:1}
.stock-number{font-weight:700;color:#208f75}
.stock-number.low{color:#cb8c33}
.positive{font-weight:650;color:#229e7b}
.negative{font-weight:650;color:#cc6c62}
.item-table select{min-width:250px}
.item-table input{min-width:105px}
.action-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px}
.action-panel p{margin:7px 0 0;color:#8b9da9;font-size:12px}
.note{font-size:12px;margin:17px 0 0;color:#7c94a2;line-height:1.8}
.table-actions{display:flex;align-items:center;gap:15px;white-space:nowrap}
.table-actions form{margin:0}
.narrow{max-width:580px}
.flash{border-radius:9px;padding:13px 17px;margin-bottom:20px;font-size:12px;font-weight:500}
.flash.success{background:#e9f6ef;border:1px solid #cbe8d8;color:#31845e}
.flash.error{background:#fff0ed;border:1px solid #f2d2c9;color:#be6956}
.attention-list{padding:8px 20px 18px}
.attention-item{display:flex;align-items:flex-start;gap:11px;padding:14px 3px;border-bottom:1px solid #eef2f5}
.attention-item:last-child{border:0}
.attention-item strong,.attention-item small{display:block}
.attention-item strong{font-size:12px;margin-bottom:4px;color:#496576}
.attention-item small{font-size:11px;color:#94a6b1}
.dot{width:6px;height:6px;border-radius:50%;margin-top:6px;flex:none}
.dot.amber{background:var(--amber)}.dot.red{background:var(--red)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
.stats-grid,.quick-actions{width:100%;min-width:0}
.stat-card{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:166px;background:#fff;border:1px solid #d4e1e7;border-radius:14px;padding:22px 24px;box-shadow:0 5px 18px #2340520b;transition:transform .16s,border-color .16s}
.stat-card,.quick-action{min-width:0}
.stat-card:hover{transform:translateY(-3px);border-color:#b8d9cf}
.stat-top{margin-bottom:15px;padding-right:74px}
.stat-label{font-size:13px;font-weight:750;color:#3b5567}
.stat-icon{position:absolute;right:22px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:72px;height:72px;border-radius:18px;background:#e9f5f0;color:#279e80}
.stat-icon .icon{width:38px;height:38px;stroke-width:1.6}
.stat-card.blue .stat-icon{background:#edf3fd;color:#7298cc}
.stat-card.purple .stat-icon{background:#f2effb;color:#a292c5}
.stat-card.warning .stat-icon{background:#fff5e3;color:#d4ab5c}
.stat-bottom{padding-right:74px}
.stat-value{display:flex;align-items:baseline;gap:7px}
.stat-value strong{font-size:36px;font-weight:800;line-height:1.1;letter-spacing:-.7px;color:#203b4c;font-variant-numeric:tabular-nums}
.stat-value>span{font-size:11px;font-weight:650;color:#6c8290}
.stat-note{display:block;margin-top:9px;font-size:11px;font-weight:600;line-height:1.4;color:#637b89}
.stat-arrow{display:none}
.quick-panel{margin-bottom:23px}
.quick-heading{font-size:12px;color:#758a99;font-weight:650;margin-bottom:12px;display:flex;align-items:center;gap:7px}
.quick-heading:before{content:"";width:3px;height:12px;background:#39ac91;border-radius:2px}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.quick-action{display:flex;align-items:center;gap:13px;min-height:88px;padding:16px 18px;background:#fff;border:1px solid #d4e1e7;border-radius:11px;box-shadow:0 3px 12px #23405208;transition:border-color .16s,background .16s}
.quick-action:hover{background:#f9fcfb;border-color:#b9d9ce}
.quick-icon{order:2;display:grid;place-items:center;width:54px;height:54px;margin-left:auto;border-radius:14px;background:#eaf5f2;color:#2e9d85;flex:none}
.quick-icon .icon{width:31px;height:31px;stroke-width:1.6}
.quick-action>div{order:1;min-width:0}
.quick-action strong{display:block;font-size:13px;font-weight:750;color:#345267}
.quick-action small{display:block;font-size:11px;font-weight:550;color:#6f8794;margin-top:4px;line-height:1.4}
.quick-action>.icon{display:none}
.dashboard-grid{display:grid;grid-template-columns:1.16fr 1fr;gap:21px;align-items:start}
.dashboard-grid>.panel{margin:0;min-height:335px}
.dashboard-grid table th,.dashboard-grid table td{padding:16px 21px}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:220px;text-align:center;padding:30px 20px;color:#a6b3be}
.empty-state .empty-icon{display:grid;place-items:center;width:60px;height:60px;background:#f2f7f7;border:1px solid #e5eeee;border-radius:19px;margin-bottom:3px;color:#acc6c0}
.empty-state .empty-icon .icon{width:29px;height:29px;stroke-width:1.3}
.empty-state strong{font-size:12px;color:#879eaa;font-weight:600}
.empty-state p{font-size:11px;margin:0;color:#a5b3be}
.empty-state .text-link{font-size:11px;margin-top:5px}
.dashboard-footnote{display:flex;align-items:center;gap:7px;margin-top:22px;font-size:10px;color:#a4b2bc}
.dashboard-footnote .icon{width:13px;height:13px;color:#8fb6a6}
.report-group{margin-bottom:31px}
.report-group-heading{display:flex;align-items:baseline;gap:15px;margin:0 0 14px}
.report-group-heading h2{margin:0;font-size:15px;font-weight:750;color:#26465a}
.report-group-heading p{margin:0;font-size:11px;color:#8195a2}
.report-summary-heading{margin-top:36px}
.report-export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.report-export-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:158px;padding:21px 22px;border:1px solid #d4e1e7;border-radius:13px;background:#fff;box-shadow:0 5px 18px #2340520a;transition:border-color .16s,transform .16s,box-shadow .16s}
.report-export-card:hover{border-color:#abd7c9;box-shadow:0 7px 20px #23405210;transform:translateY(-2px)}
.report-export-card h3{margin:0 65px 8px 0;font-size:14px;font-weight:750;color:#2c4b60}
.report-export-card p{margin:0 65px 19px 0;font-size:11px;line-height:1.55;color:#6d8491}
.report-export-icon{position:absolute;right:20px;top:19px;display:grid;place-items:center;width:52px;height:52px;border-radius:13px;background:#eaf5f2;color:#2b9f82}
.report-export-icon .icon{width:29px;height:29px;stroke-width:1.6}
.report-export-action{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:auto;color:#0d9279;font-size:11px;font-weight:750}
.report-export-action .icon{width:15px;height:15px}
.report-export-form .report-export-action{padding:0;border:0;background:transparent}
.report-export-form .report-export-action:hover{text-decoration:underline}
.report-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 17px}
.report-date-fields label{font-size:10px}
.report-date-fields input{min-height:36px;margin-top:5px;padding:7px 8px;font-size:11px}
.auth-wrap{min-height:100vh;padding:55px 40px;display:grid;place-items:center;background:radial-gradient(ellipse at 10% 10%,#1f4e51 0,transparent 48%),#142b3d}
.auth-layout{width:min(1080px,100%);display:grid;grid-template-columns:1fr 420px;align-items:center;gap:100px}
.auth-story{color:#d6e6ec}
.auth-story .auth-brand{margin-bottom:65px}
.auth-story .auth-brand small{color:#83aaa9}
.auth-kicker{color:#5dc7ad;font-size:10px;letter-spacing:3px;font-weight:600;margin-bottom:19px}
.auth-story h2{font-size:38px;font-weight:650;line-height:1.55;letter-spacing:1px;color:#f4f9fa;margin:0 0 20px}
.auth-story>p{font-size:13px;line-height:1.9;color:#86a6b5;max-width:360px;margin:0 0 32px}
.auth-features{display:flex;gap:24px;margin-top:38px}
.auth-features span{display:flex;align-items:center;gap:8px;font-size:11px;color:#88aaaF}
.auth-features .icon{width:18px;height:18px;color:#62bda6}
.auth-panel{width:100%;background:#fff;border:1px solid #ffffffa3;border-radius:22px;padding:38px 36px 29px;box-shadow:0 25px 70px #061b2a40}
.auth-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#e9f6f1;color:#2da78a;margin-bottom:23px}
.auth-icon .icon{width:23px;height:23px}
.auth-panel h1{font-size:25px;font-weight:700;color:#2b4858;margin:0 0 8px}
.auth-panel .muted{color:#98a6b1;font-size:12px;line-height:1.7;margin:0 0 28px}
.auth-panel input{min-height:45px}
.auth-panel .stack-form{gap:20px}
.auth-panel .button{min-height:45px;margin-top:6px}
.auth-foot{margin-top:29px;border-top:1px solid #edf1f4;padding-top:21px;text-align:center;font-size:10px;color:#a8b4bd}
.error-page{text-align:center;padding:85px 15px}
.error-symbol{display:grid;place-items:center;width:65px;height:65px;margin:auto;background:#e5f3ec;color:#389d7c;border-radius:20px;font-size:30px}
.error-page h1{font-size:25px;margin:22px 0 10px}
.error-page p{color:#92a5b2;margin-bottom:25px}
@media(min-width:1700px){.content{padding-top:42px}.page-heading{margin-bottom:30px}.dashboard-grid>.panel{min-height:365px}}
@media(max-width:1200px){.sidebar{width:226px;padding-left:13px;padding-right:13px}.brand{padding:0 9px;font-size:19px}.brand-mark{width:39px;height:39px}.nav-label>span{display:none}.content{padding:28px}.topbar{padding:0 28px}.stats-grid{gap:12px}.stat-card{padding:17px}.quick-action{padding:13px;gap:9px}.quick-action small{display:none}.dashboard-grid{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-layout{gap:60px}}
@media(max-width:900px){.sidebar{position:fixed;left:0;top:0;bottom:0;width:252px;height:100dvh;transform:translateX(-100%);transition:transform .2s}.nav-open .sidebar{transform:translateX(0)}.nav-open{overflow:hidden}.nav-toggle{display:flex}.topbar{height:65px;padding:0 22px}.topbar-location{gap:12px}.breadcrumb-home{display:none}.content{padding:26px 22px 48px}.auth-layout{grid-template-columns:1fr 390px;gap:35px}.auth-story h2{font-size:30px}.auth-story>p{font-size:12px}.auth-features{gap:15px;flex-wrap:wrap}.auth-wrap{padding:35px}.auth-panel{padding:32px 28px}.nav-label>span{display:block}}
@media(max-width:650px){.content{padding:23px 16px 40px}.topbar{padding:0 16px;height:60px}.top-right{gap:10px}.top-date{display:none}.breadcrumb{font-size:11px}.breadcrumb span{margin:0 7px}.page-heading{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:23px}.page-heading h1{font-size:25px}.page-heading>.actions,.page-heading>.button{align-self:stretch}.page-heading .actions .button{flex:1}.eyebrow{font-size:8px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stat-card{padding:15px}.stat-top{margin-bottom:13px}.stat-icon{width:30px;height:30px;border-radius:9px}.stat-icon .icon{width:18px;height:18px}.stat-label{font-size:11px}.stat-value strong{font-size:28px}.stat-note{font-size:9px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-action{padding:12px}.dashboard-grid{gap:17px}.panel{border-radius:12px;margin-bottom:17px}.panel-head{padding:18px}.panel-head h2{font-size:13px}.panel-head p{font-size:10px}.panel-title{gap:8px}.panel-title>.icon{width:17px;height:17px}.form-panel{padding:21px 18px}.form-grid,.info-grid{grid-template-columns:1fr;gap:17px}.info-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.info-card{padding:16px}.info-card strong{font-size:12px}.toolbar{padding:16px;align-items:stretch;flex-direction:column}.search-form{width:100%}.search-form input:not([type=hidden]){width:100%;min-width:0}.search-form .button{flex:none}.filter-form{flex-wrap:wrap}.action-panel{align-items:flex-start;flex-direction:column;padding:20px}.modal{padding:23px 20px}.modal-head h2{font-size:18px}th,td{padding:14px 16px}.auth-wrap{padding:25px 18px}.auth-layout{grid-template-columns:1fr;gap:28px;max-width:420px}.auth-story .auth-brand{margin:0}.auth-story h2,.auth-story>p,.auth-kicker,.auth-features{display:none}.auth-panel{padding:30px 26px;border-radius:18px}.auth-story .auth-brand{justify-content:center}.empty-state{min-height:200px}}
@media(max-width:1200px){.stat-card{min-height:168px;padding:18px}.stat-top,.stat-bottom{padding-right:62px}.stat-icon{right:17px;width:58px;height:58px}.stat-icon .icon{width:32px;height:32px}.stat-label{font-size:12px}.stat-note{font-size:10.5px}.quick-action{min-height:76px}.quick-icon{width:44px;height:44px}.quick-icon .icon{width:26px;height:26px}}
@media(max-width:900px){.stats-grid,.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{min-height:152px}.stat-top,.stat-bottom{padding-right:74px}.stat-icon{width:68px;height:68px}.stat-icon .icon{width:36px;height:36px}}
@media(max-width:650px){.stat-card{min-height:156px;padding:16px}.stat-top{margin-bottom:13px;padding-right:51px}.stat-bottom{padding-right:51px}.stat-icon{right:13px;width:49px;height:49px;border-radius:13px}.stat-icon .icon{width:28px;height:28px}.stat-label{font-size:11.5px}.stat-value strong{font-size:31px}.stat-note{font-size:9.7px}.quick-action{min-height:73px;padding:11px 12px}.quick-icon{width:44px;height:44px}.quick-icon .icon{width:26px;height:26px}.quick-action strong{font-size:11.8px}}
@media(max-width:1200px){.report-export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.report-export-grid{grid-template-columns:1fr}.report-group-heading{display:block}.report-group-heading p{margin-top:4px}.report-export-card{min-height:145px}.report-export-form{min-height:220px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Mobile navigation follows a drawer pattern: the page stays in place, while the
   menu slides above it and a clear backdrop owns the close interaction. */
@media(max-width:900px){
  .main-shell{width:100%;min-width:0}
  .sidebar{
    width:min(252px,84vw);
    padding-top:max(24px,env(safe-area-inset-top));
    padding-bottom:max(18px,env(safe-area-inset-bottom));
    box-shadow:16px 0 44px #071d2d42;
    overscroll-behavior:contain;
    touch-action:pan-y;
    will-change:transform;
  }
  .nav-backdrop{opacity:0;pointer-events:none;transition:opacity .2s ease}
  .nav-open .nav-backdrop{opacity:1;pointer-events:auto}
  .nav-open{overflow:hidden;overscroll-behavior:none}
  .topbar-location{flex:1;min-width:0}
  .breadcrumb{min-width:0;max-width:calc(100vw - 118px)}
}

@media(max-width:650px){
  .auth-wrap{display:flex;align-items:center;justify-content:center;overflow-x:hidden;padding-left:0;padding-right:0}
  .nav-toggle{width:38px;height:38px;border-radius:10px;background:#fff;border-color:#d9e5ea;box-shadow:0 2px 7px #21435210}
  .topbar{gap:10px}
  .top-right{min-width:0}
  .sidebar{padding-left:14px;padding-right:14px}
  .brand{padding-left:8px;padding-right:8px;margin-bottom:29px}
  .sidebar .nav-item{min-height:48px;padding:12px 13px}
  .nav-label{margin-left:11px;margin-right:11px}
  .side-footer{padding-left:8px;padding-right:8px}
  .auth-wrap{min-height:100dvh;padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom))}
  .auth-layout{display:block;width:100vw;max-width:100vw;min-width:0;flex:0 1 auto}
  .auth-story{width:100%;min-width:0;max-width:100%;padding-left:16px;padding-right:16px}
  .auth-panel{width:auto;min-width:0;max-width:none;margin:28px 16px 0;box-shadow:0 18px 48px #061b2a38}
  .sidebar:focus{outline:none}
}

@media(max-width:360px){
  .content{padding-left:12px;padding-right:12px}
  .topbar{padding-left:12px;padding-right:12px}
  .breadcrumb{max-width:calc(100vw - 102px)}
  .auth-panel{padding-left:20px;padding-right:20px}
}

@media(prefers-reduced-motion:reduce){
  .sidebar,.nav-backdrop{transition:none!important}
}
