*{box-sizing:border-box}body{font-family:var(--app-font)!important}.app{display:block!important;min-height:100vh}.sidebar{width:260px;height:100vh;position:fixed!important;inset:0 auto 0 0;z-index:100;display:flex;flex-direction:column;overflow:hidden;background:#0f1d33}.sidebar nav{overflow-y:auto;overflow-x:hidden;flex:1;padding-bottom:18px}.sidebar a{display:flex;align-items:center;gap:12px}.sidebar a b{width:20px;text-align:center;flex:0 0 20px}.sidebar a span{min-width:0}.sidebar a.active,.sidebar a.nav-priority.active{background:linear-gradient(135deg,#08a77d,#168fe7)!important;color:#fff!important;box-shadow:0 10px 24px rgba(20,142,214,.25)}.sidebar a:not(.active):hover{background:rgba(255,255,255,.08)}.sidebar .logout{margin:8px 16px 18px;padding:13px 16px;border-radius:12px;color:#d8e4f3;background:rgba(255,255,255,.05)}.sidebar-logo{width:42px;height:42px;border-radius:13px;object-fit:contain;background:#fff;padding:4px}.main{margin-left:260px!important;width:calc(100% - 260px)!important;min-width:0;min-height:100vh;padding:28px 34px;display:flex;flex-direction:column}.dash-shell{width:100%;max-width:none;min-width:0}.dash-hero,.dash-kpis,.dash-workspace,.dash-lower-grid{width:100%;min-width:0}.page-header-v18{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 22px;padding:22px 26px;border-radius:20px;background:linear-gradient(135deg,#10213b,#17385b);color:#fff;box-shadow:0 14px 35px rgba(16,33,59,.14)}.page-header-v18 h1{margin:3px 0 5px;font-size:30px;color:#fff}.page-header-v18 p{margin:0;color:#bfd0e5}.page-kicker{font-size:11px;letter-spacing:.16em;color:#67e4c2;font-weight:800}.page-tabs-v18{display:flex;gap:8px;flex-wrap:wrap}.page-tabs-v18 a{padding:10px 14px;border-radius:10px;background:rgba(255,255,255,.1);color:#e8f2ff;text-decoration:none;font-weight:700}.page-tabs-v18 a.active,.page-tabs-v18 a:hover{background:linear-gradient(135deg,#08a77d,#168fe7);color:#fff}.app-footer{margin-top:auto}.users-layout.single{display:block}.user-toolbar{display:flex;justify-content:flex-end;margin-bottom:16px}.user-actions details{min-width:180px}.product-detail strong,.table-wrap td,.stock-stats strong{font-variant-numeric:tabular-nums}.direct-pdf{background:#0b8bdc!important}.toolbar a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.modal-backdrop.open{backdrop-filter:blur(4px)}
@media(max-width:980px){.sidebar{width:80px;padding:20px 10px}.main{margin-left:80px!important;width:calc(100% - 80px)!important;padding:22px}.sidebar-brand>div:last-child,.sidebar nav span,.nav-label,.sidebar small{display:none}.sidebar-brand{justify-content:center}.sidebar nav a,.logout{justify-content:center}.page-header-v18{align-items:flex-start;flex-direction:column}.page-tabs-v18{width:100%}}
@media(max-width:680px){.app{display:block!important}.sidebar{position:static!important;width:100%;height:auto;flex-direction:row;overflow-x:auto;align-items:center;padding:10px}.sidebar-brand,.logout{display:none}.sidebar nav{display:flex;overflow-x:auto;overflow-y:hidden;padding:0}.sidebar nav a{white-space:nowrap}.main{margin-left:0!important;width:100%!important;padding:16px}.page-header-v18{padding:18px}.dash-kpis{grid-template-columns:1fr 1fr!important}}

/* v18.2 professional footer */
.app-footer-pro{margin-top:28px;padding:14px 18px;border:1px solid #dfe7f0;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(16,33,59,.06);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#607087;font-size:12px}
.footer-brand{display:flex;align-items:center;gap:10px}.footer-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#08a77d,#168fe7);color:#fff;font-weight:900;font-size:11px}.footer-brand strong{display:block;color:#172033;font-size:13px}.footer-brand small{display:block;margin-top:2px;color:#8a97a9}.footer-credit{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.footer-divider{width:1px;height:16px;background:#d9e2ec}.footer-credit a{color:#087fd3;font-weight:800;text-decoration:none}.footer-phone{padding:6px 9px;border-radius:8px;background:#eff7ff}.footer-credit a:hover{text-decoration:underline}
@media(max-width:760px){.app-footer-pro{align-items:flex-start;flex-direction:column}.footer-credit{justify-content:flex-start}.footer-divider{display:none}}

/* v18.3 final polish */
html,body{min-height:100%}.app{min-height:100dvh}.main{min-height:100dvh}.main>.app-footer-pro{margin-top:auto}
.page-header-pos{align-items:center}.page-header-pos .page-heading-copy{min-width:0}.page-pos-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.page-clock,.page-operator{min-width:145px;padding:10px 14px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08)}.page-clock strong,.page-operator strong{display:block;color:#fff;font-size:15px}.page-clock span,.page-operator span{display:block;margin-top:2px;color:#bcd0e6;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.page-status-pill{padding:10px 14px;border-radius:999px;background:#e7f8f1;color:#00845f;font-size:12px;font-weight:800;white-space:nowrap}
.issue-workspace{margin-top:0}.issue-command-bar-pro{display:none!important}
.auth-links{margin-top:16px;text-align:center}.auth-links a{color:#087fd3;font-weight:800;text-decoration:none}.auth-links a:hover{text-decoration:underline}.recovery-note{margin:0 0 14px;color:#69788e;font-size:13px}.auth-card .btn.secondary{margin-top:8px}
.settings-recovery{margin-top:26px;padding-top:22px;border-top:1px solid #e3eaf2}.settings-recovery h3{margin:0 0 6px}.settings-recovery p{margin:0 0 16px;color:#708096}.recovery-status{display:inline-flex;margin-bottom:14px;padding:7px 10px;border-radius:999px;background:#eef5fb;color:#47617f;font-size:12px;font-weight:800}
@media(max-width:1050px){.page-header-pos{align-items:flex-start;flex-direction:column}.page-pos-meta{width:100%;justify-content:flex-start}}
@media(max-width:680px){.page-pos-meta{display:grid;grid-template-columns:1fr 1fr}.page-status-pill{grid-column:1/-1;text-align:center}.page-clock,.page-operator{min-width:0}}
.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.backup-actions,.tool-actions{display:flex;gap:12px;flex-wrap:wrap}.danger-zone{border-color:#fecaca}.danger-zone h2{color:#991b1b}.inline-form{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:end}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;box-shadow:0 8px 28px rgba(15,23,42,.05)}.metric-card span{display:block;color:#64748b;font-size:13px;font-weight:700;margin-bottom:8px}.metric-card strong{font-size:28px;color:#0f172a}.metric-card .small-value{font-size:18px}.badge.danger{background:#fee2e2;color:#991b1b}.badge.success{background:#dcfce7;color:#166534}@media(max-width:900px){.tool-grid,.metric-grid{grid-template-columns:1fr 1fr}.inline-form{grid-template-columns:1fr}}@media(max-width:600px){.tool-grid,.metric-grid{grid-template-columns:1fr}}
.alert.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.backup-reminder{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.backup-reminder a{font-weight:800;color:#92400e}
