@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/dm-sans-latin.woff2') format('woff2');
}

:root {
    --ink: #102b43;
    --ink-soft: #52697c;
    --muted: #7b8f9f;
    --line: #d8e1e9;
    --line-strong: #c5d1dc;
    --surface: #ffffff;
    --canvas: #edf2f6;
    --deep: #0b2d4b;
    --deep-soft: #174f78;
    --red: #b0192e;
    --red-dark: #8f1022;
    --red-light: #f9e9ec;
    --gold: #a9863f;
    --gold-light: #f7f1e4;
    --blue: #1e6d9f;
    --blue-light: #e5f0f7;
    --coral: #c04454;
    --coral-light: #fae9ea;
    --yellow: #a8823e;
    --yellow-light: #f8f2e5;
    --green: #b0192e;
    --green-light: #f9e9ec;
    --shadow: 0 8px 24px rgba(13, 46, 73, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 16px; height: 16px; stroke-width: 1.8; }
.is-hidden { display: none !important; }
.eyebrow { margin: 0 0 10px; color: var(--red); font: 700 10px/1.2 'DM Sans', sans-serif; letter-spacing: 1.5px; }

/* Login */
.login-screen { min-height: 100vh; padding: 32px 5.5vw 22px; display: flex; flex-direction: column; color: #fff; background: #0b2d4b url('../assets/soe-digital-infrastructure.jpg') center / cover no-repeat; overflow: hidden; position: relative; }
.login-screen::before { content: ''; position: absolute; inset: 0; background: rgba(7, 29, 49, .58); pointer-events: none; }
.login-screen::after { content: ''; width: 6px; position: absolute; inset: 0 auto 0 0; background: var(--red); }
.login-brand, .brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.brand-logo { display: block; height: auto; }
.brand-logo-login { width: 228px; }
.brand-logo-sidebar { width: 176px; }
.brand-collapse-mark { display: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border: 1px solid rgba(255,255,255,.72); color: #fff; font-weight: 800; font-size: 17px; transform: rotate(45deg); }
.brand-mark span { transform: rotate(-45deg); }
.brand-mark-large { width: 42px; height: 42px; flex-basis: 42px; border-color: #d5b473; font-size: 20px; }
.login-layout { width: min(1280px, 100%); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 8vw; align-items: center; padding: 6vh 0; position: relative; z-index: 1; }
.login-intro { max-width: 680px; }
.login-intro .eyebrow { color: #d5b473; }
.login-intro h1 { margin: 0 0 25px; font-size: clamp(40px, 4.2vw, 56px); line-height: 1.2; letter-spacing: 0; font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.login-intro h1 em { color: #f1d99e; font-style: normal; }
.intro-copy { max-width: 500px; color: #d5e0ea; font-size: 15px; line-height: 1.9; }
.intro-points { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 40px; color: #edf3f8; font-size: 12px; }
.dot { width: 7px; height: 7px; display: inline-block; margin: 0 7px 1px 0; border-radius: 50%; }
.dot-green { background: #d5b473; }.dot-coral { background: #d46469; }.dot-yellow { background: #7ea8cd; }
.login-card { padding: 40px; border-top: 5px solid var(--red); color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(3,18,32,.3); backdrop-filter: blur(14px); }
.login-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.login-card .eyebrow { margin-bottom: 8px; }
.login-card h2 { margin: 0; font-size: 24px; letter-spacing: 0; }
.login-mini-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--red); background: var(--red-light); }
.field-label { display: block; margin: 18px 0 8px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.input-with-icon { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); background: #fafbfc; color: #8a97a4; }
.input-with-icon:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(155,28,36,.09); }
.input-with-icon input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.login-button { width: 100%; height: 48px; justify-content: center; margin-top: 30px; }
.totp-code-input input { text-align: center; font: 700 21px 'DM Sans', monospace; letter-spacing: 8px; }
.totp-back { margin: 15px auto 0; color: var(--deep-soft); }
.login-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.form-alert { display: flex; gap: 8px; align-items: center; padding: 10px; font-size: 12px; }.form-alert.error { color: #b0192e; background: #fbecee; }
.login-footer { display: flex; justify-content: space-between; color: #b8c8d6; font: 11px 'DM Sans', sans-serif; position: relative; z-index: 1; }

/* Shell and navigation */
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 256px; flex: 0 0 256px; min-height: 100vh; display: flex; flex-direction: column; padding: 22px 15px 16px; color: #d7e1ea; background: var(--deep); border-top: 4px solid var(--red); border-right: 1px solid #09243c; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 13px 23px; }
.sidebar .brand { gap: 10px; min-width: 0; }
.sidebar-collapse, .more-button, .topbar .icon-button { display: grid; place-items: center; border: 0; color: #8fa4b7; background: transparent; }
.sidebar-collapse:hover, .more-button:hover { color: #fff; }.sidebar-collapse svg { width: 17px; }
.workspace-switcher { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 4px 24px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.055); }
.workspace-avatar { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; color: #fff; font: 700 12px 'DM Sans',sans-serif; background: var(--red); }
.workspace-switcher div:nth-child(2) { min-width: 0; flex: 1; }.workspace-switcher strong, .workspace-switcher span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.workspace-switcher strong { color: #fff; font-size: 11px; }.workspace-switcher span { margin-top: 2px; color: #8fa4b7; font-size: 10px; }.workspace-switcher > svg { width: 14px; }
.nav-title { padding: 0 13px; margin: 0 0 8px; color: #8298aa; font: 700 10px 'DM Sans', sans-serif; letter-spacing: 1px; }.nav-title-spaced { margin-top: 27px; }
.nav-item { width: 100%; height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; color: #b5c4d1; background: transparent; text-align: left; font-size: 13px; font-weight: 500; }
.nav-item svg { width: 17px; height: 17px; }.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }.nav-item.is-active { color: #fff; background: var(--red); box-shadow: inset 3px 0 0 #e0c57b; }
.nav-badge { min-width: 18px; height: 18px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; color: #0b2d4b; background: #e2c988; font: 700 10px 'DM Sans',sans-serif; }
.nav-new { margin-left: auto; padding: 3px 5px; color: #ecd493; border: 1px solid rgba(236,212,147,.35); font: 700 8px 'DM Sans',sans-serif; letter-spacing: .8px; }
.sidebar-bottom { margin-top: auto; }.user-mini { display: flex; align-items: center; gap: 10px; padding: 16px 9px 3px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }.avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; color: #fff; background: var(--red); font-size: 12px; }.user-mini > div:nth-child(2) { min-width: 0; flex: 1; }.user-mini strong, .user-mini span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.user-mini strong { color: #fff; font-size: 11px; }.user-mini span { margin-top: 2px; color: #8399ac; font-size: 9px; }.user-mini button { margin-left: auto; border: 0; color: #8fa4b7; background: transparent; }.user-mini button:hover { color: #fff; }
.sidebar.is-collapsed { width: 72px; flex-basis: 72px; padding-left: 9px; padding-right: 9px; }.sidebar.is-collapsed .sidebar-top { flex-direction: column; justify-content: center; gap: 10px; padding-left: 5px; padding-right: 5px; }.sidebar.is-collapsed .brand-logo-sidebar, .sidebar.is-collapsed .workspace-switcher > div:nth-child(2), .sidebar.is-collapsed .workspace-switcher > svg, .sidebar.is-collapsed .nav-title, .sidebar.is-collapsed .nav-item span, .sidebar.is-collapsed .nav-badge, .sidebar.is-collapsed .user-mini > div:nth-child(2), .sidebar.is-collapsed .user-mini button { display: none; }.sidebar.is-collapsed .brand-collapse-mark { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; border: 1px solid #d6b667; font-weight: 800; }.sidebar.is-collapsed .workspace-switcher, .sidebar.is-collapsed .nav-item, .sidebar.is-collapsed .user-mini { justify-content: center; padding-left: 0; padding-right: 0; }

/* Topbar and content */
.main-content { min-width: 0; flex: 1; }.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 4%; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 2px 12px rgba(13,46,73,.04); }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }.breadcrumbs svg { width: 13px; }.breadcrumbs strong { color: var(--ink); font-weight: 600; }.topbar-actions { display: flex; align-items: center; gap: 20px; }
.global-search { width: 265px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); color: #8996a3; background: #f8f9fa; }.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }.global-search kbd { padding: 2px 4px; color: #8b97a3; border: 1px solid #dbe1e7; background: #fff; font: 10px 'DM Sans',sans-serif; }
.notification-button { position: relative; }.notification-button span { position: absolute; width: 6px; height: 6px; top: 0; right: 0; border: 1px solid #fff; border-radius: 50%; background: var(--red); }.topbar-date { display: flex; gap: 7px; align-items: center; color: var(--muted); font: 11px 'DM Sans',sans-serif; }.topbar-date svg { width: 14px; }.mobile-header { display: none; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 700; }.mobile-header .icon-button { padding: 0; }
.page-wrap { max-width: 1530px; padding: 36px 4% 44px; margin: auto; }.view { display: none; animation: fade-in .22s ease; }.view.is-active { display: block; } @keyframes fade-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; padding-bottom: 17px; border-bottom: 2px solid #d7dee5; position: relative; }.page-heading::after { content: ''; width: 58px; height: 2px; position: absolute; left: 0; bottom: -2px; background: var(--red); }.page-heading h1 { margin: 0 0 8px; color: var(--ink); font-size: 28px; letter-spacing: 0; line-height: 1.2; }.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }.heading-wave { color: var(--gold); font-size: 18px; vertical-align: 3px; }.heading-actions { display: flex; gap: 9px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 600; transition: .18s ease; }.button svg { width: 15px; }.button-primary { color: #fff; background: var(--red); }.button-primary:hover { background: var(--red-dark); box-shadow: 0 5px 13px rgba(126,21,28,.18); }.button-ghost { color: var(--ink-soft); border-color: var(--line-strong); background: #fff; }.button-ghost:hover { border-color: var(--deep-soft); color: var(--deep); background: #f6f8fa; }.button-light { color: var(--deep); border-color: rgba(255,255,255,.35); background: #fff; }.button-light:hover { color: var(--red); }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--red); background: transparent; font-size: 11px; font-weight: 600; }.text-button svg { width: 13px; }.text-button:hover { color: var(--red-dark); }.icon-button { width: 30px; height: 30px; border: 1px solid transparent; color: var(--ink-soft); background: transparent; }.icon-button:hover { border-color: var(--line); background: #fff; }

/* Dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }.metric-card { min-height: 142px; padding: 18px 20px 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--surface); box-shadow: var(--shadow); }.metric-card:nth-child(2) { border-top-color: var(--red); }.metric-card:nth-child(3) { border-top-color: var(--gold); }.metric-card:nth-child(4) { border-top-color: #66788a; }.metric-card-main { color: #fff; border-color: var(--deep); border-top-color: #d4b36c; background: var(--deep); }.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }.metric-card-main .metric-top { color: #b5c5d3; }.metric-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--red); background: var(--red-light); }.metric-icon svg { width: 15px; }.metric-icon.soft-coral { color: var(--red); background: var(--red-light); }.metric-icon.soft-yellow { color: var(--gold); background: var(--gold-light); }.metric-icon.soft-blue { color: var(--blue); background: var(--blue-light); }.metric-value { display: block; margin: 15px 0 13px; font: 700 23px 'DM Sans', 'Noto Sans SC', sans-serif; letter-spacing: 0; }.metric-foot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.trend { font: 600 10px 'DM Sans',sans-serif; }.trend-up { color: var(--red); }.metric-card-main .trend-up { color: #f0d393; }.trend-down { color: var(--blue); }.metric-spark { height: 22px; flex: 1; display: flex; align-items: flex-end; justify-content: flex-end; gap: 2px; margin-left: 7px; }.metric-spark i { width: 7px; background: currentColor; opacity: .28; }.metric-spark i:nth-child(1) { height: 8px; }.metric-spark i:nth-child(2) { height: 11px; }.metric-spark i:nth-child(3) { height: 9px; }.metric-spark i:nth-child(4) { height: 15px; }.metric-spark i:nth-child(5) { height: 13px; }.metric-spark i:nth-child(6) { height: 18px; }.metric-spark i:nth-child(7) { height: 21px; opacity: .75; }.spark-green { color: #d8b86f; }.spark-coral { color: var(--red); }.spark-yellow { color: var(--gold); }.spark-blue { color: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .85fr); gap: 18px; margin-bottom: 18px; }.panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 0; }.panel-heading h2, .section-heading h2 { margin: 0 0 5px; color: var(--ink); font-size: 15px; letter-spacing: 0; }.panel-heading h2 { padding-left: 9px; border-left: 3px solid var(--red); }.panel-heading p, .section-heading p { margin: 0; color: var(--muted); font-size: 11px; }.panel-tools { display: flex; align-items: center; gap: 16px; }.legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; }.legend-dot.green { background: var(--red); }.legend-dot.coral { background: var(--blue); }.panel-tools select, .panel-heading select, .filter-group select { min-height: 31px; padding: 6px 23px 6px 8px; border: 1px solid var(--line-strong); color: var(--ink-soft); outline: 0; background: #fff; font-size: 10px; }
.chart-wrap { height: 216px; position: relative; padding: 20px 22px 0 52px; }.chart-wrap canvas { width: 100%; height: 100%; display: block; }.chart-y-labels { position: absolute; top: 18px; bottom: 0; left: 23px; display: flex; flex-direction: column; justify-content: space-between; color: #9ca8b3; font: 9px 'DM Sans',sans-serif; }.chart-x-labels { display: flex; justify-content: space-between; padding: 7px 23px 18px 53px; color: #929faa; font: 9px 'DM Sans',sans-serif; }
.goal-panel { padding-bottom: 18px; }.goal-panel .panel-heading { padding-bottom: 2px; }.goal-ring { width: 148px; height: 148px; display: grid; place-items: center; margin: 19px auto 12px; border-radius: 50%; background: conic-gradient(var(--red) 0deg 280deg, #e7ebef 280deg 360deg); transform: rotate(-35deg); }.goal-ring::before { content: ''; width: 116px; height: 116px; position: absolute; border-radius: 50%; background: #fff; }.goal-ring > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; transform: rotate(35deg); }.goal-ring strong { font: 700 31px 'DM Sans', sans-serif; letter-spacing: 0; }.goal-ring strong small { font-size: 16px; }.goal-ring span { margin-top: 3px; color: var(--muted); font-size: 10px; }.goal-summary { display: flex; justify-content: space-evenly; padding: 2px 22px 17px; border-bottom: 1px solid var(--line); }.goal-summary div + div { padding-left: 27px; border-left: 1px solid var(--line); }.goal-summary span, .goal-summary strong { display: block; }.goal-summary span { color: var(--muted); font-size: 10px; }.goal-summary strong { margin-top: 5px; font: 600 13px 'DM Sans',sans-serif; }.goal-message { display: flex; align-items: flex-start; gap: 8px; padding: 15px 23px 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }.goal-message svg { width: 14px; flex: 0 0 14px; color: var(--gold); }.goal-message b { color: var(--red); font-weight: 600; }
.lower-grid { grid-template-columns: 1fr 1fr; }.funnel-list { padding: 23px; }.funnel-row { display: grid; grid-template-columns: 68px 1fr 80px; align-items: center; gap: 10px; margin-bottom: 18px; }.funnel-row:last-child { margin-bottom: 0; }.funnel-label { color: var(--ink-soft); font-size: 10px; }.funnel-bar { height: 7px; background: #edf0f3; }.funnel-bar i { height: 100%; display: block; background: var(--red); }.funnel-row:nth-child(2) .funnel-bar i { background: #b8494f; }.funnel-row:nth-child(3) .funnel-bar i { background: #c87b7f; }.funnel-row:nth-child(4) .funnel-bar i { background: #deb0b2; }.funnel-number { color: var(--ink); text-align: right; font: 600 11px 'DM Sans',sans-serif; }.funnel-number small { color: var(--muted); font-weight: 400; }.skeleton-line { height: 14px; margin-bottom: 17px; background: linear-gradient(90deg,#edf0f3 25%,#f8f9fa 50%,#edf0f3 75%); background-size: 200% 100%; animation: skeleton 1.4s infinite; } @keyframes skeleton { to { background-position: -200% 0; } }
.activity-list { padding: 19px 23px 20px; }.activity-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 11px; position: relative; padding-bottom: 17px; }.activity-item:last-child { padding-bottom: 0; }.activity-item:not(:last-child)::before { content: ''; width: 1px; position: absolute; top: 10px; bottom: 0; left: 4px; background: #e1e6eb; }.activity-dot { width: 9px; height: 9px; position: relative; z-index: 1; margin-top: 2px; border: 2px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px #cf7b80; }.activity-dot.coral { background: var(--blue); box-shadow: 0 0 0 1px #8cacc8; }.activity-dot.yellow { background: var(--gold); box-shadow: 0 0 0 1px #d6be8b; }.activity-dot.neutral { background: #8997a4; box-shadow: 0 0 0 1px #c8d0d7; }.activity-copy strong, .activity-copy span { display: block; }.activity-copy strong { color: var(--ink); font-size: 10px; }.activity-copy span { margin-top: 3px; color: var(--muted); font-size: 9px; }.activity-time { color: #9aa5af; font-size: 9px; }
.table-panel { margin-top: 18px; overflow: hidden; }.table-scroll { overflow-x: auto; }.table-panel table { width: 100%; border-collapse: collapse; white-space: nowrap; }.table-panel th, .table-panel td { padding: 13px 22px; text-align: left; border-top: 1px solid var(--line); }.table-panel th { color: #657585; background: #f4f6f8; font-size: 10px; font-weight: 600; }.table-panel td { color: var(--ink-soft); font-size: 10px; }.table-panel tbody tr:hover { background: #fafbfc; }.order-no { color: var(--deep-soft); font: 600 10px 'DM Sans',sans-serif; }.customer-cell strong, .customer-cell span { display: block; }.customer-cell strong { color: var(--ink); font-size: 10px; }.customer-cell span { margin-top: 3px; color: var(--muted); font-size: 9px; }.amount-cell { color: var(--ink); font: 600 11px 'DM Sans',sans-serif; }
.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; color: #516171; background: #edf0f3; font-size: 9px; }.status-success { color: #7f1720; background: var(--red-light); }.status-warning { color: #84631f; background: var(--gold-light); }.status-blue { color: #28597f; background: var(--blue-light); }.status-coral { color: #8e3036; background: var(--coral-light); }

/* Sales, customers and finance */
.sales-overview { display: grid; grid-template-columns: minmax(280px,1fr) 1.6fr; gap: 30px; align-items: center; padding: 28px 31px; margin-bottom: 33px; color: #e8eff5; border-left: 5px solid var(--red); background: var(--deep); }.section-kicker { display: block; margin-bottom: 9px; color: #d9bd7b; font: 700 10px 'DM Sans',sans-serif; letter-spacing: 1px; }.sales-overview-copy strong { display: block; color: #fff; font: 700 28px 'DM Sans',sans-serif; letter-spacing: 0; }.sales-overview-copy strong small { color: #9fb1c1; font: 400 10px 'Noto Sans SC'; letter-spacing: 0; }.progress-track { height: 6px; margin: 18px 0 9px; background: #2b4a66; }.progress-track i { height: 100%; display: block; background: #d7b86f; }.progress-caption { color: #a8bac9; font-size: 10px; }.progress-caption b { color: #edf3f7; font: 600 11px 'DM Sans'; }.progress-caption em { float: right; color: #e0c47d; font-style: normal; }.sales-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid rgba(255,255,255,.14); }.sales-mini-stats > div { min-height: 65px; padding-left: 28px; border-right: 1px solid rgba(255,255,255,.14); }.sales-mini-stats > div:last-child { border-right: 0; }.sales-mini-stats span, .sales-mini-stats strong, .sales-mini-stats small { display: block; }.sales-mini-stats span { color: #a2b3c2; font-size: 10px; }.sales-mini-stats strong { margin: 10px 0 8px; color: #fff; font: 700 24px 'DM Sans'; }.sales-mini-stats strong small { display: inline; color: #fff; font-size: 11px; }.sales-mini-stats small { font-size: 10px; }.sales-mini-stats .trend-up { color: #e0c47d; }.sales-mini-stats .trend-down { color: #b9d2e6; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 14px; }.filter-group { display: flex; align-items: center; gap: 9px; }.table-search { width: 225px; height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #8f9ca8; border: 1px solid var(--line-strong); background: #fff; }.table-search input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 10px; }.flush-panel { margin-top: 0; }.flush-panel .panel-heading { padding: 17px 23px; }.flush-panel table th { border-top: 0; }
.admin-export-heading { margin-top: 28px; }.table-subline { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.customer-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 35px; }.customer-stats > div { min-height: 108px; padding: 17px 20px; border: 1px solid var(--line); border-left: 3px solid var(--blue); background: #fff; box-shadow: var(--shadow); }.customer-stats > div:nth-child(2) { border-left-color: var(--red); }.customer-stats > div:nth-child(3) { border-left-color: var(--gold); }.customer-stats > div:nth-child(4) { border-left-color: #66788a; }.customer-stats span, .customer-stats strong, .customer-stats small { display: block; }.customer-stats span { color: var(--muted); font-size: 10px; }.customer-stats strong { margin: 10px 0 5px; font: 700 22px 'DM Sans'; }.customer-stats strong small { display: inline; font-size: 12px; }.customer-stats small { color: var(--muted); font-size: 10px; }
.finance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 32px; }.finance-card { min-height: 136px; padding: 21px 24px; border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; box-shadow: var(--shadow); }.expense-card { border-top-color: var(--blue); }.finance-card-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }.finance-card-head svg { width: 17px; color: var(--red); }.expense-card .finance-card-head svg { color: var(--blue); }.balance-card .finance-card-head svg { color: #e0c47d; }.finance-card > strong { display: block; margin: 14px 0 7px; color: var(--ink); font: 700 24px 'DM Sans'; }.finance-card > small { color: var(--muted); font-size: 10px; }.finance-card > small b { margin-left: 3px; color: var(--red); font-weight: 600; }.expense-card > small b { color: var(--blue); }.balance-card { color: #fff; border-color: var(--deep); border-top-color: #d5b473; background: var(--deep); }.balance-card .finance-card-head, .balance-card > small { color: #b0c0ce; }.balance-card > strong { color: #fff; }
.finance-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,.75fr); gap: 18px; }.finance-side-panel { min-height: 350px; }.expense-breakdown { padding: 27px 23px 22px; }.breakdown-row { margin-bottom: 23px; }.breakdown-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--ink-soft); font-size: 10px; }.breakdown-row b { color: var(--ink); font: 600 11px 'DM Sans'; }.breakdown-row span { display: flex; align-items: center; gap: 7px; }.breakdown-dot { width: 7px; height: 7px; border-radius: 50%; }.breakdown-dot.green { background: var(--red); }.breakdown-dot.blue { background: var(--blue); }.breakdown-dot.yellow { background: var(--gold); }.breakdown-track { height: 6px; background: #edf0f3; }.breakdown-track i { height: 100%; display: block; }.finance-tip { display: flex; gap: 10px; padding: 18px 23px; border-top: 1px solid var(--line); color: var(--ink-soft); }.finance-tip svg { width: 16px; flex: 0 0 16px; color: var(--gold); }.finance-tip p { margin: 0; font-size: 10px; line-height: 1.7; }.finance-tip strong { color: var(--red); }

/* Product, delivery and settings */
.employee-hero { min-height: 290px; display: flex; align-items: center; justify-content: space-between; padding: 33px 50px; margin-bottom: 35px; overflow: hidden; color: #edf3f8; border-left: 5px solid var(--red); background: var(--deep); position: relative; }.employee-hero::after { content: ''; width: 420px; height: 420px; position: absolute; right: 150px; top: -160px; border: 1px solid rgba(216,187,120,.16); border-radius: 50%; box-shadow: 0 0 0 35px rgba(216,187,120,.035), 0 0 0 75px rgba(216,187,120,.025), 0 0 0 115px rgba(216,187,120,.02); }.employee-hero h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.35; letter-spacing: 0; }.employee-hero h2 em { color: #e3c77f; font-style: normal; }.employee-hero p { margin: 0 0 22px; color: #aebdca; font-size: 11px; }.employee-orbit { width: 340px; height: 230px; position: relative; z-index: 1; margin-right: 25px; }.orbit-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(218,191,126,.28); border-radius: 50%; transform: translate(-50%,-50%); }.ring-one { width: 165px; height: 165px; }.ring-two { width: 275px; height: 275px; border-color: rgba(218,191,126,.13); }.orbit-core { width: 60px; height: 60px; display: grid; place-items: center; position: absolute; left: 50%; top: 50%; color: #fff; background: var(--red); transform: translate(-50%,-50%); }.orbit-core svg { width: 28px; height: 28px; }.orbit-chip { display: flex; align-items: center; gap: 5px; position: absolute; padding: 8px 11px; color: #eef3f7; border: 1px solid rgba(218,191,126,.34); background: rgba(21,48,73,.9); font-size: 10px; }.orbit-chip svg { width: 13px; color: #e2c77f; }.chip-one { top: 24px; left: 38px; }.chip-two { right: -5px; top: 105px; }.chip-three { left: 27px; bottom: 12px; }.live-state { display: flex; align-items: center; gap: 7px; color: var(--blue); font-size: 10px; }.live-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); }
.employee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.employee-card { min-height: 175px; padding: 19px; border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; transition: transform .18s,box-shadow .18s; }.employee-card:nth-child(2) { border-top-color: var(--blue); }.employee-card:nth-child(3) { border-top-color: var(--gold); }.employee-card:nth-child(4) { border-top-color: #66788a; }.employee-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }.employee-card-top { display: flex; justify-content: space-between; align-items: flex-start; }.employee-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--red); background: var(--red-light); }.employee-card:nth-child(2) .employee-icon { color: var(--blue); background: var(--blue-light); }.employee-card:nth-child(3) .employee-icon { color: var(--gold); background: var(--gold-light); }.employee-card:nth-child(4) .employee-icon { color: #56697a; background: #edf0f3; }.employee-icon svg { width: 20px; }.employee-state { color: var(--blue); font: 600 9px 'DM Sans'; }.employee-state i { width: 5px; height: 5px; display: inline-block; margin-right: 3px; border-radius: 50%; background: currentColor; }.employee-card h3 { margin: 19px 0 5px; font-size: 13px; }.employee-card p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }.employee-card-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.employee-card-foot b { color: var(--ink-soft); font-weight: 500; }.employee-card-foot svg { width: 12px; vertical-align: -3px; }.product-price { color: var(--ink); font: 600 12px 'DM Sans',sans-serif; }.product-price small { margin-left: 2px; color: var(--muted); font: 400 9px 'Noto Sans SC',sans-serif; }
.empty-view { min-height: 540px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 22px; color: var(--red); background: var(--red-light); }.empty-icon svg { width: 29px; height: 29px; }.empty-view h1 { margin: 0 0 12px; font-size: 29px; letter-spacing: 0; }.empty-view > p:not(.eyebrow) { max-width: 350px; margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }.settings-card { padding: 25px; border-top: 3px solid var(--deep-soft); }.settings-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 17px; color: var(--deep-soft); background: var(--blue-light); }.settings-icon.coral-icon { color: var(--red); background: var(--red-light); }.settings-card h2 { margin: 0 0 7px; font-size: 15px; }.settings-card > p { margin: 0 0 21px; color: var(--muted); font-size: 11px; }.settings-card dl { margin: 0 0 21px; border-top: 1px solid var(--line); }.settings-card dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }.settings-card dt { color: var(--muted); font-size: 10px; }.settings-card dd { margin: 0; color: var(--ink-soft); font-size: 10px; }.app-footer { display: flex; gap: 21px; justify-content: center; padding: 0 4% 22px; color: #929da8; font: 10px 'DM Sans','Noto Sans SC',sans-serif; }
.delivery-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 35px; }.delivery-stats article { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 18px 19px; border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; box-shadow: var(--shadow); }.delivery-stats article:nth-child(2) { border-top-color: var(--blue); }.delivery-stats article:nth-child(3) { border-top-color: var(--gold); }.delivery-stats article:nth-child(4) { border-top-color: #66788a; }.delivery-stat-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 37px; color: var(--red); background: var(--red-light); }.delivery-stat-icon.green-icon { color: var(--blue); background: var(--blue-light); }.delivery-stat-icon.yellow-icon { color: var(--gold); background: var(--gold-light); }.delivery-stat-icon.blue-icon { color: #56697a; background: #edf0f3; }.delivery-stat-icon svg { width: 18px; height: 18px; }.delivery-stats span, .delivery-stats strong, .delivery-stats small { display: block; }.delivery-stats span { color: var(--muted); font-size: 10px; }.delivery-stats strong { margin: 4px 0 2px; color: var(--ink); font: 700 21px 'DM Sans',sans-serif; }.delivery-stats small { color: #98a3ad; font-size: 9px; }.delivery-progress { width: 105px; display: flex; align-items: center; gap: 7px; }.delivery-progress > div { width: 72px; height: 5px; overflow: hidden; background: #e7ebef; }.delivery-progress i { height: 100%; display: block; background: var(--red); }.delivery-progress span { width: 28px; color: var(--ink-soft); font: 600 9px 'DM Sans',sans-serif; }

/* Administration and TOTP */
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; max-width: 720px; margin-bottom: 35px; }
.admin-stats article { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 18px 19px; border: 1px solid var(--line); border-top: 3px solid var(--deep-soft); background: #fff; box-shadow: var(--shadow); }
.admin-stats article:nth-child(2) { border-top-color: var(--red); }
.admin-stats span, .admin-stats strong, .admin-stats small { display: block; }
.admin-stats span { color: var(--muted); font-size: 10px; }
.admin-stats strong { margin: 4px 0 2px; color: var(--ink); font: 700 21px 'DM Sans', sans-serif; }
.admin-stats small { color: #98a3ad; font-size: 9px; }
.admin-account-cell { display: flex; align-items: center; gap: 9px; }
.admin-account-cell > span { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--deep-soft); font-size: 11px; font-weight: 700; }
.admin-account-cell strong { color: var(--ink); font: 600 11px 'DM Sans', 'Noto Sans SC', sans-serif; }
.admin-account-actions { display: flex; align-items: center; gap: 7px; }
.admin-edit-action, .admin-totp-action { min-height: 32px; padding: 0 10px; font-size: 10px; }
.admin-edit-action { min-width: 66px; }
.admin-totp-action { min-width: 106px; }
.permission-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 35px; }.permission-group { padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--deep-soft); background: #fff; box-shadow: var(--shadow); }.permission-group:nth-child(2) { border-top-color: var(--red); }.permission-group:nth-child(3) { border-top-color: var(--gold); }.permission-group:nth-child(4) { border-top-color: var(--blue); }.permission-group-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }.permission-group-head h3 { margin: 0 0 4px; color: var(--ink); font-size: 15px; }.permission-group-head span { color: var(--muted); font-size: 10px; }.permission-group-head svg { width: 22px; color: var(--deep-soft); }.permission-module-list { padding: 8px 0 14px; }.permission-module-list fieldset { padding: 10px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); }.permission-module-list fieldset:last-child { border-bottom: 0; }.permission-module-list legend { padding: 0; margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 600; }.permission-module-list fieldset > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }.permission-check { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 10px; cursor: pointer; }.permission-check input { width: 14px; height: 14px; accent-color: var(--red); }.permission-save { width: 100%; justify-content: center; }.permission-loading { grid-column: 1 / -1; padding: 30px; color: var(--muted); text-align: center; border: 1px solid var(--line); background: #fff; }
.modal-field input[readonly] { color: var(--muted); background: #f1f4f6; cursor: not-allowed; }
.modal-backdrop.is-totp { z-index: 26; }
.modal-backdrop.is-totp .modal { width: min(720px, 100%); }
.totp-setup { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 27px; align-items: start; }
.totp-qr-wrap { width: 280px; height: 280px; padding: 8px; border: 1px solid var(--line-strong); background: #fff; }
.totp-qr { width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: pixelated; }
.totp-setup-copy h3 { margin: 2px 0 13px; color: var(--ink); font-size: 15px; }
.totp-setup-copy h3 small { color: var(--muted); font: 500 10px 'DM Sans', sans-serif; }
.totp-setup-copy ol { margin: 0 0 16px; padding-left: 18px; color: var(--ink-soft); font-size: 11px; line-height: 1.9; }
.totp-manual-secret { padding: 10px 11px; margin-bottom: 14px; border-left: 3px solid var(--gold); background: var(--gold-light); }
.totp-manual-secret span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.totp-secret-code { display: block; overflow-wrap: anywhere; color: var(--deep); font: 700 11px/1.5 'DM Sans', monospace; }
.totp-confirm-code { text-align: center; font: 700 18px 'DM Sans', monospace !important; letter-spacing: 7px; }
.totp-expiry { display: flex; align-items: center; gap: 6px; margin: -5px 0 0; color: var(--muted); font-size: 9px; }
.totp-expiry svg { width: 12px; }

/* Security watermark */
.security-watermark { position: fixed; inset: 0; z-index: 25; display: flex; flex-wrap: wrap; align-content: flex-start; overflow: hidden; padding: 52px 0; pointer-events: none; user-select: none; }
.security-watermark span { width: 33.333%; height: 168px; display: flex; align-items: center; justify-content: center; padding: 0 18px; color: rgba(11,45,75,.08); font-size: 11px; font-weight: 600; white-space: nowrap; transform: rotate(-18deg); transform-origin: center; }

/* Modal and feedback */
.modal-backdrop { display: none; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 20; padding: 20px; background: rgba(14,34,53,.53); backdrop-filter: blur(3px); }.modal-backdrop.is-open { display: flex; }.modal { width: min(470px,100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 27px; border-top: 4px solid var(--red); background: #fff; box-shadow: 0 24px 80px rgba(4,20,35,.28); animation: modal-in .2s ease; } @keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }.modal-head { display: flex; justify-content: space-between; margin-bottom: 24px; }.modal-head h2 { margin: 0; font-size: 20px; }.modal-close { padding: 0; color: var(--muted); }.modal-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }.modal-field { margin-bottom: 15px; }.modal-field.full { grid-column: 1 / -1; }.modal-field label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }.modal-field input, .modal-field select, .modal-field textarea { width: 100%; min-height: 40px; padding: 0 10px; outline: 0; border: 1px solid var(--line-strong); color: var(--ink); background: #fafbfc; font-size: 12px; }.modal-field textarea { height: 65px; padding-top: 10px; resize: vertical; }.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(155,28,36,.09); }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.toast { display: flex; align-items: center; gap: 8px; position: fixed; right: 26px; bottom: 26px; z-index: 30; padding: 12px 16px; color: #fff; border-left: 4px solid #d7b86f; background: var(--deep); box-shadow: 0 8px 25px rgba(14,34,53,.22); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s ease; font-size: 12px; }.toast.is-visible { opacity: 1; transform: none; }.toast svg { color: #e3c77f; }.toast.toast-error { border-left-color: #f0a2a6; background: var(--red-dark); }.toast.toast-error svg { color: #ffd7d9; }
.inline-status { min-height: 25px; padding: 4px 20px 4px 7px; border: 0; color: var(--ink-soft); background: #edf0f3; font-size: 10px; outline: 0; }.inline-status.status-success { color: #7f1720; background: var(--red-light); }.inline-status.status-warning { color: #84631f; background: var(--gold-light); }.inline-status.status-blue { color: #28597f; background: var(--blue-light); }.inline-status.status-coral { color: #8e3036; background: var(--coral-light); }.empty-table { height: 100px; color: var(--muted); text-align: center; }.income-amount { color: var(--red); }.expense-amount { color: var(--blue); }.empty-modal-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 170px; color: var(--muted); font-size: 12px; }.empty-modal-copy .empty-icon { margin-bottom: 12px; }

@media (max-width: 1180px) {
    .metric-grid, .delivery-stats { grid-template-columns: repeat(2,1fr); }
    .employee-grid { grid-template-columns: repeat(2,1fr); }
    .page-wrap { padding-left: 3%; padding-right: 3%; }
    .topbar { padding: 0 3%; }
    .login-layout { gap: 7vw; }
}
@media (max-width: 850px) {
    .sidebar { width: 226px; flex-basis: 226px; }
    .topbar-date { display: none; }
    .global-search { width: 200px; }
    .sales-overview { grid-template-columns: 1fr; gap: 25px; }
    .sales-mini-stats { border-left: 0; }
    .sales-mini-stats > div { padding-left: 0; }
    .finance-layout, .dashboard-grid { grid-template-columns: 1fr; }
    .employee-hero { padding: 30px; }
    .employee-orbit { transform: scale(.8); margin-right: -20px; }
}
@media (max-width: 680px) {
    .security-watermark { padding-top: 36px; }
    .security-watermark span { width: 100%; height: 145px; padding: 0 14px; color: rgba(11,45,75,.09); font-size: 10px; font-weight: 600; }
    .login-screen { padding: 23px 20px 17px; background-position: 58% center; }
    .login-layout { grid-template-columns: 1fr; gap: 30px; padding: 6vh 0 5vh; }
    .login-intro h1 { font-size: 30px; line-height: 1.28; }
    .intro-copy { font-size: 13px; line-height: 1.75; }
    .intro-points { margin-top: 23px; gap: 9px; flex-direction: column; }
    .login-card { padding: 25px; }
    .login-footer { gap: 12px; font-size: 9px; }
    .sidebar { width: 252px; position: fixed; z-index: 15; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 30px rgba(0,0,0,.18); }
    .sidebar.is-open { transform: translateX(0); }
    .main-content { width: 100%; }
    .topbar { height: 63px; padding: 0 18px; }
    .breadcrumbs { display: none; }
    .mobile-header { display: flex; }
    .topbar-actions { gap: 10px; }
    .global-search { width: 32px; height: 32px; padding: 0; border-color: transparent; background: transparent; }
    .global-search input, .global-search kbd { display: none; }.global-search svg { margin: auto; }
    .page-wrap { padding: 27px 18px 35px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 24px; }
    .page-heading h1 { font-size: 25px; }
    .heading-actions { width: 100%; }.heading-actions .button { flex: 1; min-width: 0; padding-left: 9px; padding-right: 9px; }
    .metric-grid, .customer-stats, .finance-cards, .employee-grid, .settings-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .delivery-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
    .permission-group-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 129px; padding: 15px 13px; }.metric-value { font-size: 19px; }.metric-spark { display: none; }
    .panel-heading { padding-left: 15px; padding-right: 15px; }.panel-tools .legend { display: none; }
    .chart-wrap { padding-left: 42px; padding-right: 12px; }.chart-y-labels { left: 12px; }.chart-x-labels { padding-left: 42px; padding-right: 12px; }
    .goal-summary { padding-left: 10px; padding-right: 10px; }.goal-summary div + div { padding-left: 13px; }
    .lower-grid { gap: 9px; }.funnel-list, .activity-list { padding-left: 15px; padding-right: 15px; }.activity-time { display: none; }
    .section-heading { align-items: flex-start; flex-direction: column; }.filter-group { width: 100%; }.table-search { flex: 1; min-width: 0; }.filter-group select { flex: 1; min-width: 0; }
    .sales-overview { padding: 24px 20px; margin-bottom: 28px; }.sales-mini-stats > div { min-height: 55px; }.sales-mini-stats strong { font-size: 20px; }
    .employee-hero { min-height: 350px; padding: 25px 20px; align-items: flex-start; }.employee-hero h2 { font-size: 23px; }.employee-orbit { position: absolute; right: -54px; bottom: -35px; transform: scale(.7); }.employee-hero::after { right: -110px; }
    .delivery-stats article { min-width: 0; padding: 14px 12px; gap: 10px; }.delivery-stats small { white-space: normal; }
    .app-footer { flex-wrap: wrap; gap: 8px 14px; font-size: 9px; }.modal-field-grid { grid-template-columns: 1fr; }.modal-field.full { grid-column: auto; }.toast { right: 18px; bottom: 18px; left: 18px; justify-content: center; }
    .modal-backdrop.is-totp { padding: 10px; }
    .modal-backdrop.is-totp .modal { max-height: calc(100vh - 20px); padding: 21px; }
    .totp-setup { grid-template-columns: 1fr; gap: 18px; }
    .totp-qr-wrap { width: min(250px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; }
}
@media (max-width: 430px) {
    .metric-grid, .customer-stats, .finance-cards, .employee-grid, .settings-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 118px; }
    .login-intro h1 { font-size: 27px; }
    .login-card { padding: 22px; }
    .admin-stats { grid-template-columns: 1fr; }
}
