@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes panelEnter{0%{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes contentFadeSlide{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.animate-in{animation:fadeInUp .5s ease forwards}.card,.kpi-card,.list-item,.dashboard-row{animation:fadeInUp .4s ease forwards}:root{--bg: #f0f4f8;--surface: rgba(255, 255, 255, .75);--surface-solid: #ffffff;--text: #1a1f2e;--muted: #64748b;--accent: #0ea5e9;--accent-dark: #0284c7;--accent-glow: rgba(14, 165, 233, .25);--control-bg: #f6fbff;--control-bg-strong: #edf7ff;--control-border: rgba(59, 130, 246, .22);--ghost-bg: linear-gradient(135deg, #e9f5ff 0%, #dff6f3 100%);--ghost-bg-hover: linear-gradient(135deg, #d6efff 0%, #cef1ec 100%);--success: #10b981;--success-soft: #d1fae5;--danger: #ef4444;--danger-soft: #fee2e2;--warning: #f59e0b;--warning-soft: #fef3c7;--purple: #8b5cf6;--purple-soft: #ede9fe;--line: rgba(100, 116, 139, .15);--shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);--shadow: 0 8px 32px rgba(0, 0, 0, .1);--shadow-lg: 0 20px 50px rgba(0, 0, 0, .15);--radius: 16px;--radius-sm: 10px;--radius-lg: 24px;--ease-out: cubic-bezier(.2, .8, .2, 1);--ease-soft: cubic-bezier(.4, 0, .2, 1)}*{box-sizing:border-box}body{margin:0;color:var(--text);font-family:Manrope,sans-serif;background:radial-gradient(600px 400px at 0% 0%,rgba(14,165,233,.12),transparent 50%),radial-gradient(500px 350px at 100% 100%,rgba(139,92,246,.1),transparent 50%),radial-gradient(400px 300px at 50% 50%,rgba(16,185,129,.08),transparent 60%),linear-gradient(180deg,#f8fafc 0%,var(--bg) 100%);min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent;touch-action:manipulation}html{scroll-behavior:smooth}h1,h2{margin:0;font-family:Space Grotesk,sans-serif;letter-spacing:-.03em}.auth-shell,.app-shell{width:min(1240px,calc(100% - 1.25rem));margin:1.1rem auto 2rem}.app-shell.app-shell-edge{width:100%;margin:0;padding:0}.auth-shell{min-height:100vh;display:grid;place-items:center}.auth-card,.card,.kpi-card{background:var(--surface);border:1px solid rgba(255,255,255,.6);border-radius:var(--radius);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);transition:transform .16s var(--ease-soft),box-shadow .22s var(--ease-out),border-color .18s var(--ease-soft)}.card:hover,.kpi-card:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}.auth-card{width:min(460px,100%);padding:1.2rem}.eyebrow{margin:0;font-size:.74rem;text-transform:uppercase;letter-spacing:.11em;color:var(--muted);font-weight:700}.muted{margin:.3rem 0 0;color:var(--muted)}.error{margin:.7rem 0;color:var(--danger);font-weight:600}.topbar{display:flex;justify-content:space-between;gap:1rem;align-items:center}.topbar-main-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.85rem}.topbar-main-row .topbar-left>div{min-width:0}.app-shell-edge .topbar{position:sticky;top:0;z-index:40;margin:0;padding:.65rem 1rem;background:#ffffffd9;border-bottom:1px solid rgba(255,255,255,.5);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:var(--shadow-sm)}.topbar-left{display:flex;align-items:center;gap:.65rem;min-width:0}.topbar-actions{justify-content:flex-end;align-items:center}.mobile-topbar-tools{display:flex;align-items:center;gap:.45rem;margin-left:auto}.mobile-utility-menu{display:grid;gap:.42rem;position:fixed;top:calc(env(safe-area-inset-top) + .7rem);right:max(.75rem,env(safe-area-inset-right));width:min(18rem,calc(100vw - 1.5rem));max-height:calc(100dvh - 1.5rem);overflow:visible;z-index:122;padding:.6rem;border-radius:18px;border:1px solid rgba(191,219,254,.75);background:#fffffff7;box-shadow:0 18px 40px #0f172a1f;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.mobile-utility-action,.mobile-utility-user,.mobile-utility-status{width:100%;justify-content:center;text-align:center;min-height:42px}.mobile-utility-wrap{position:relative}.mobile-utility-menu .notifications-panel{position:fixed;top:calc(env(safe-area-inset-top) + 4.2rem);right:max(.75rem,env(safe-area-inset-right));width:min(30rem,calc(100vw - 1.5rem));max-height:min(72dvh,32rem);z-index:126}.mobile-utility-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a33;border:0;border-radius:0;z-index:120;padding:0;margin:0}.mobile-sales-disclosure{margin-top:.45rem;border:1px solid rgba(191,219,254,.72);border-radius:14px;background:#fffffff0;overflow:hidden}.mobile-sales-disclosure summary{list-style:none;cursor:pointer;padding:.72rem .84rem;font-weight:800;color:#184a72;display:flex;align-items:center;justify-content:space-between}.mobile-sales-disclosure summary::-webkit-details-marker{display:none}.mobile-sales-disclosure[open] summary{border-bottom:1px solid rgba(191,219,254,.48);background:#ecf8ffc7}.mobile-draft-list{display:none}.customer-summary-tile--compact{padding:0}.customer-summary-compact-head{list-style:none;cursor:pointer;padding:.76rem .84rem;display:flex;align-items:center;justify-content:space-between;gap:.65rem}.customer-summary-compact-head::-webkit-details-marker{display:none}.customer-summary-compact-main{font-weight:800;color:#173c61}.customer-summary-compact-body{padding:0 .84rem .84rem}.icon-toggle{width:38px;height:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:1px solid rgba(14,165,233,.18);background:linear-gradient(135deg,#fff,#e8f5ff);color:var(--text);font-size:1rem;padding:0;box-shadow:0 4px 12px #0ea5e91f;transition:background-color .16s var(--ease-soft),border-color .16s var(--ease-soft),transform .2s var(--ease-soft),box-shadow .18s var(--ease-soft)}.icon-toggle:hover{background:linear-gradient(135deg,#f7fcff,#d8f0ff);border-color:var(--accent);transform:rotate(12deg);box-shadow:0 10px 20px #0ea5e92e}.icon-toggle svg{width:17px;height:17px}.app-layout{margin-top:.85rem;display:grid;grid-template-columns:250px minmax(0,1fr);gap:.55rem;align-items:start}.app-shell-edge .app-layout{margin-top:0;min-height:calc(100vh - 64px);gap:0}.sidebar-menu{position:sticky;top:.7rem;background:var(--surface);color:var(--text);border:1px solid rgba(255,255,255,.5);border-radius:var(--radius);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:.55rem .55rem .75rem;min-height:calc(100vh - 2rem);max-height:calc(100vh - .85rem);overflow-y:auto;transition:width .24s var(--ease-soft),padding .2s var(--ease-soft),box-shadow .22s var(--ease-soft)}.app-shell-edge .sidebar-menu{top:0;border-radius:0;border-left:0;min-height:calc(100vh - 64px);max-height:calc(100vh - 64px);padding-top:.7rem}.sidebar-brand{display:flex;align-items:center;gap:.5rem;padding:.2rem .25rem .55rem;border-bottom:1px solid var(--line)}.brand-mark{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);border:none;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.78rem;color:#fff;box-shadow:0 4px 15px var(--accent-glow)}.brand-text{font-weight:700;letter-spacing:.01em;font-size:.92rem;color:var(--text)}.sidebar-list{display:grid;gap:0;margin-top:.55rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.sidebar-item{width:100%;display:flex;gap:.5rem;align-items:center;justify-content:flex-start;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:var(--radius-sm);color:var(--text);font-weight:500;padding:.52rem .2rem;transition:background-color .16s var(--ease-soft),color .16s var(--ease-soft),transform .18s var(--ease-soft)}.sidebar-item:hover{background:var(--accent-glow);transform:translate(2px)}.sidebar-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar-icon svg{width:18px;height:18px}.sidebar-item:last-child{border-bottom:0}.sidebar-item.active{background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);color:#fff;box-shadow:0 4px 15px var(--accent-glow)}.content-area{min-width:0;padding:0;scroll-behavior:smooth}.app-shell-edge .content-area{padding:.7rem}.app-layout.sidebar-collapsed{grid-template-columns:84px minmax(0,1fr)}.sidebar-menu.collapsed .brand-text{display:none}.sidebar-menu.collapsed .sidebar-item{justify-content:center;padding:.48rem 0}.sidebar-menu.collapsed .sidebar-item span:last-child{display:none}.actions{display:inline-flex;gap:.45rem;align-items:center}.actions button{width:auto}.actions button.small{padding:.5rem .85rem;font-size:.85rem;border-radius:var(--radius-sm)}.actions button.small:hover{transform:scale(1.05)}.actions.report-section-tabs{display:flex;width:100%;gap:.4rem}.notifications-wrap{position:relative}.notifications-panel{position:absolute;right:0;top:2.4rem;width:min(30rem,90vw);z-index:85;background:#f9fbfa;border:1px solid #c9d9d3;border-radius:.75rem;box-shadow:0 12px 28px #1428221f;max-height:22rem;overflow-y:auto;padding:.35rem;animation:panelEnter .18s var(--ease-out);transform-origin:top right}.notifications-panel-floating{position:fixed;top:calc(env(safe-area-inset-top) + 4.2rem);right:max(.75rem,env(safe-area-inset-right));width:min(30rem,calc(100vw - 1.5rem));max-height:min(72dvh,32rem);z-index:126}.ui-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:140;display:grid;place-items:center;padding:.7rem;background:#0c141e6b;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.ui-dialog-card{width:min(560px,calc(100vw - 1.2rem));max-height:calc(100vh - 1.2rem);overflow-y:auto;background:linear-gradient(135deg,#fffffff7,#f8fafcf2);border:1px solid rgba(255,255,255,.8);border-radius:18px;box-shadow:var(--shadow-lg);padding:.95rem;animation:panelEnter .2s var(--ease-out)}.ui-dialog-head h3{margin:0;font-size:1.2rem;letter-spacing:-.02em;color:var(--text)}.ui-dialog-message{margin:.4rem 0 .2rem;color:var(--muted);font-size:.9rem}.ui-dialog-form{margin-top:.5rem}.ui-dialog-actions{width:100%;justify-content:flex-end;gap:.55rem;margin-top:.35rem}.ui-dialog-actions .ghost,.ui-dialog-actions .ui-dialog-btn-danger,.ui-dialog-actions button[type=submit]{width:auto;min-width:112px}.ui-dialog-btn-danger{background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff}.ui-dialog-btn-danger:hover:not(:disabled){box-shadow:0 8px 24px #b91c1c47}.notification-actions{justify-content:flex-start;flex-wrap:wrap;row-gap:.35rem;margin-bottom:.3rem}.notification-actions-spacer{flex:1 1 auto}.notification-item{width:100%;text-align:left;border-left:3px solid transparent}.notification-item-unread{border-left-color:#0f7a66}.notification-repeat-chip{margin-left:.4rem;padding:.08rem .38rem;border-radius:999px;border:1px solid #b9daf4;background:#eef7ff;color:#155a86;font-size:.74rem;font-weight:700}.notification-panel-note{margin:.35rem .5rem .5rem}.notification-backdrop{display:none}.status{display:inline-flex;align-items:center;border-radius:999px;padding:.46rem .75rem;border:1px solid rgba(14,165,233,.2);background:var(--accent-glow);font-size:.86rem;font-weight:600}.status.login-pill{border-color:#1d211f29;background:#fffffff2;color:#2a2d2b}.user-chip{gap:.45rem}.user-avatar{width:32px;height:32px;border-radius:var(--radius-sm);background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);color:#fff;font-size:.75rem;font-weight:800;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 8px var(--accent-glow)}.user-avatar svg{width:14px;height:14px}.menu-row{margin-top:.85rem;display:flex;justify-content:flex-end}.menu-label{display:grid;gap:.25rem;font-size:.82rem;color:var(--muted);width:min(360px,100%)}.menu-label select{background:#fff}.menu-label{justify-items:start}.page-grid{margin-top:.9rem;display:grid;gap:.8rem;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.page-flow{animation:contentFadeSlide .2s var(--ease-out)}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.55rem}.kpi-grid .kpi-card{background:linear-gradient(135deg,#fffffff2,#f8fafcd9);border:1px solid rgba(255,255,255,.7);transition:transform .18s var(--ease-soft),box-shadow .22s var(--ease-out),border-color .18s var(--ease-soft)}.kpi-grid .kpi-card:hover{transform:translateY(-1px) scale(1.01);box-shadow:var(--shadow-lg);border-color:var(--accent-glow)}.kpi-card{padding:1.1rem;background:linear-gradient(135deg,#ffffffe6,#ffffffb3);position:relative;overflow:hidden;min-height:100px}.kpi-card:before{content:"";position:absolute;top:0;left:0;width:5px;height:100%;background:linear-gradient(180deg,var(--accent),var(--accent-dark));border-radius:5px 0 0 5px}.kpi-card:after{content:"";position:absolute;top:-50%;right:-50%;width:100%;height:100%;background:radial-gradient(circle,var(--accent-glow) 0%,transparent 70%);opacity:.5;pointer-events:none}.kpi-label{margin:0;color:var(--muted);font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.kpi-value{margin:.35rem 0 0;font-size:1.5rem;font-weight:800;background:linear-gradient(135deg,var(--text) 0%,var(--accent-dark) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.card{padding:.95rem;grid-column:1 / -1}.card.card-wide{grid-column:1 / -1}.dashboard-hero{grid-column:1 / -1;display:grid;grid-template-columns:1.8fr 1fr;gap:.8rem;align-items:stretch;padding:1.25rem;border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,.6);box-shadow:var(--shadow-lg);background:radial-gradient(400px 300px at 100% 0%,rgba(14,165,233,.2) 0%,transparent 50%),radial-gradient(300px 250px at 0% 100%,rgba(139,92,246,.15) 0%,transparent 50%),linear-gradient(135deg,#fffffff2,#f8fafce6);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.dashboard-hero h2{font-size:clamp(1.35rem,2.3vw,2rem);background:linear-gradient(135deg,var(--text) 0%,var(--accent-dark) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.dashboard-hero .muted{max-width:64ch}.dashboard-hero-stat{display:grid;align-content:center;justify-items:start;gap:.35rem;border-radius:var(--radius-lg);border:1px solid rgba(14,165,233,.2);background:linear-gradient(135deg,#fffffff2,#0ea5e914);padding:1rem 1.2rem;box-shadow:inset 0 1px #fffc,0 4px 20px var(--accent-glow)}.dashboard-hero-stat span{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.dashboard-hero-stat strong{font-size:clamp(1.15rem,2vw,1.6rem);line-height:1.2}.dashboard-metrics{grid-column:1 / -1;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.55rem}.dashboard-metrics .kpi-card{background:linear-gradient(135deg,#fffffff2,#f8fafcd9);border:1px solid rgba(255,255,255,.8);transition:transform .18s var(--ease-soft),box-shadow .22s var(--ease-out),border-color .18s var(--ease-soft)}.dashboard-metrics .kpi-card:hover{transform:translateY(-1px) scale(1.01);box-shadow:var(--shadow-lg);border-color:var(--accent-glow)}.dashboard-panel{min-height:0}.dashboard-panel h2{font-size:1.15rem;margin-bottom:.35rem;color:var(--text);font-weight:700}.dashboard-panel{background:linear-gradient(135deg,#fffffff2,#f8fafce6);transition:transform .18s var(--ease-soft),box-shadow .22s var(--ease-out)}.dashboard-panel:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}.dashboard-panel .chart-card{border:0;box-shadow:none;padding:0;background:transparent}.dashboard-report-grid{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.dashboard-report-grid>.card{background:linear-gradient(135deg,#fffffff2,#f8fafce6);border:1px solid rgba(255,255,255,.7);transition:transform .18s var(--ease-soft),box-shadow .22s var(--ease-out),border-color .18s var(--ease-soft)}.dashboard-report-grid>.card:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg);border-color:var(--accent-glow)}.dashboard-report-grid>.card{grid-column:auto}.dashboard-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:.45rem;flex-wrap:wrap;padding-bottom:.5rem;border-bottom:1px solid var(--line);margin-bottom:.75rem}.dashboard-panel-head .muted{margin:0;font-size:.78rem}.dashboard-title-pill{display:inline-flex;align-items:center;border-radius:999px;border:1px solid rgba(14,165,233,.3);background:linear-gradient(135deg,var(--accent-glow) 0%,rgba(14,165,233,.15) 100%);color:var(--accent-dark);font-size:.64rem;letter-spacing:.09em;text-transform:uppercase;font-weight:800;padding:.2rem .5rem;margin-right:.35rem;vertical-align:middle;box-shadow:0 2px 8px var(--accent-glow)}.dashboard-title-pill.alt{border-color:#2d67b357;background:#2d67b31f;color:#285fa9}.dashboard-title-pill.risk{border-color:#a93c2457;background:#a93c241f;color:#9f3b22}.dashboard-list{margin-top:.6rem;display:grid;gap:.5rem}.dashboard-row{width:100%;border:1px solid rgba(255,255,255,.8);border-radius:var(--radius);background:linear-gradient(135deg,#fffffff2,#f8fafce6);color:inherit;font-weight:400;padding:.65rem .7rem;display:grid;grid-template-columns:30px 1fr auto;gap:.55rem;align-items:center;transition:all .2s ease}.dashboard-row:hover{transform:translateY(-3px) scale(1.01);box-shadow:var(--shadow-lg);border-color:var(--accent-glow)}.dashboard-row:hover .dashboard-mini span{height:8px}.dashboard-row.alt{border-color:#2d67b342;background:linear-gradient(135deg,#fff,#f2f7ff)}.dashboard-row.risk{border-color:#a93c2447;background:linear-gradient(135deg,#fff,#fff4ef)}.dashboard-row:hover{transform:translateY(-1px);filter:none}.dashboard-row-rank{width:32px;height:32px;border-radius:var(--radius-sm);display:grid;place-items:center;border:1px solid rgba(14,165,233,.3);font-size:.78rem;font-weight:800;background:linear-gradient(135deg,var(--accent-glow) 0%,rgba(255,255,255,.95) 100%);color:var(--accent-dark);box-shadow:0 2px 6px var(--accent-glow)}.dashboard-row-main{min-width:0;display:grid;gap:.3rem}.dashboard-row-meta{display:flex;align-items:center;justify-content:space-between;gap:.45rem}.dashboard-chip{display:inline-flex;border-radius:999px;border:1px solid rgba(14,165,233,.3);background:linear-gradient(135deg,var(--accent-glow) 0%,rgba(14,165,233,.1) 100%);color:var(--accent-dark);padding:.15rem .42rem;font-size:.66rem;font-weight:700;box-shadow:0 1px 4px var(--accent-glow)}.dashboard-chip.alt{border-color:#2d67b347;background:#2d67b31a;color:#2d64b1}.dashboard-chip.risk{border-color:#a93c244d;background:#a93c241c;color:#973922}.dashboard-chip.cool{opacity:.72}.dashboard-chip.warm{opacity:.9}.dashboard-chip.hot{opacity:1}.dashboard-mini{display:inline-grid;grid-auto-flow:column;gap:.2rem;align-items:end}.dashboard-mini span{display:block;height:4px;border-radius:4px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);box-shadow:0 1px 4px var(--accent-glow);transition:height .3s ease}.dashboard-mini.alt span{background:linear-gradient(145deg,#3d7ed8,#2f66b3)}.dashboard-mini.risk span{background:linear-gradient(145deg,#cc5333,#a93c24)}.dashboard-row-top{display:flex;justify-content:space-between;gap:.45rem;align-items:baseline}.dashboard-row-top strong{font-size:.87rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-row-top span{color:var(--muted);font-size:.8rem;font-weight:700}.dashboard-track{height:10px;border-radius:999px;overflow:hidden;background:linear-gradient(135deg,#e8efec,#d1d9e6);box-shadow:inset 0 1px 3px #0000001a}.dashboard-fill{display:block;height:100%;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);border-radius:999px;box-shadow:0 2px 8px var(--accent-glow);transition:width .5s ease}.dashboard-fill.alt{background:linear-gradient(145deg,#3d7ed8,#2f66b3)}.dashboard-fill.risk{background:linear-gradient(145deg,#cc5333,#a93c24)}.dashboard-row-amount{font-size:.82rem;font-weight:800;white-space:nowrap}.stacked-form,.form-row{display:grid;gap:.52rem}.form-row{grid-template-columns:repeat(6,minmax(0,1fr)) auto}.form-row.short{grid-template-columns:repeat(3,minmax(0,1fr))}.incentive-grid{grid-template-columns:1fr 1fr 1.3fr;align-items:start}.incentive-filter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.incentive-redeem-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.incentive-redeem-form .total-box,.incentive-redeem-form button{grid-column:1 / -1}label{display:grid;gap:.2rem;font-size:.84rem;color:var(--muted)}.inline-input-button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem;align-items:center}.inline-input-button button{width:auto;min-width:96px}input,select,textarea,button{width:100%;border-radius:var(--radius-sm);border:1.5px solid var(--line);padding:.65rem .75rem;min-height:44px;font:inherit;transition:border-color .15s var(--ease-soft),box-shadow .15s var(--ease-soft),background-color .15s var(--ease-soft),transform .12s var(--ease-soft)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-glow)}input,select,textarea{border-color:var(--control-border);background:var(--control-bg);box-shadow:inset 0 1px #fffc}input:hover,select:hover,textarea:hover{background:var(--control-bg-strong);border-color:#0ea5e952}.quick-search{border-color:#0f7a6659;background:#f7fffc}.alarm-input{border-color:#b91c1c99;box-shadow:0 0 0 3px #f8717129;background:#fff5f5}select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding-right:2.4rem;background-image:linear-gradient(135deg,transparent 50%,#0f172a 50%),linear-gradient(45deg,#0f172a 50%,transparent 50%),linear-gradient(135deg,#f6fbff,#edf7ff);background-position:calc(100% - 18px) calc(50% - 2px),calc(100% - 12px) calc(50% - 2px),0 0;background-size:6px 6px,6px 6px,100% 100%;background-repeat:no-repeat}textarea{resize:vertical;line-height:1.45;min-height:88px}.ref-mini{width:100%;justify-self:start;text-align:center;padding-left:.35rem;padding-right:.35rem}.ref-book{max-width:86px}.ref-page{max-width:120px}.ref-pair{display:inline-flex;align-items:center;gap:.4rem;width:auto}button{border:0;cursor:pointer;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);color:#fff;font-weight:700;box-shadow:0 8px 18px #0ea5e92e;transition:transform .14s var(--ease-soft),box-shadow .18s var(--ease-out),filter .12s var(--ease-soft),border-color .12s var(--ease-soft);position:relative;overflow:hidden}button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}button:hover:not(:disabled):before{left:100%}button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 25px var(--accent-glow)}button:disabled{opacity:.5;cursor:not-allowed;transform:none}.ghost{background:var(--ghost-bg);color:#11475f;border:1.5px solid rgba(14,165,233,.28);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 16px #0ea5e91f}.ghost:hover{background:var(--ghost-bg-hover);border-color:var(--accent-dark);transform:translateY(-.5px);box-shadow:0 10px 18px #0ea5e929}.list{margin-top:.62rem;display:grid;gap:.46rem}.list-item{border:1px solid rgba(255,255,255,.7);border-radius:var(--radius-sm);padding:.7rem .8rem;background:linear-gradient(135deg,#fffffff2,#f8fafcd9);transition:background-color .16s var(--ease-soft),border-color .16s var(--ease-soft),transform .16s var(--ease-soft),box-shadow .2s var(--ease-out)}.list-item:hover{transform:translate(2px);box-shadow:var(--shadow-sm);border-color:var(--accent-glow)}.list-item.overdue{border-color:#ef44444d;background:var(--danger-soft)}.list-item.settled{border-color:#10b9814d;background:var(--success-soft)}.list-item.risk{border-color:#92212159;background:#ffe4e4f2}.list-item.alarm-lock-banner{margin-top:.45rem}.list-primary{font-weight:700}.list-secondary{margin-top:.15rem;color:var(--muted);font-size:.86rem}.list-secondary.pos{color:var(--success);font-weight:700}.list-secondary.neg{color:var(--danger);font-weight:700}.balance-formula-card{border:1px solid rgba(14,165,233,.28);background:#f0f9ff;border-radius:12px;padding:.58rem .7rem}.balance-formula-title{font-weight:800;color:#0c4a6e;margin-bottom:.25rem}.balance-formula-line{color:#334155;font-size:.9rem;line-height:1.45}.balance-formula-final{margin-top:.16rem;font-weight:700;color:#0f172a;font-size:.9rem;line-height:1.45}.alarm-inline{margin-top:.32rem;padding:.3rem .42rem;border-radius:9px;border:1px solid rgba(185,28,28,.28);background:#fff4f4;color:#9f1239;font-size:.74rem;line-height:1.35}.ledger-row{display:flex;justify-content:space-between;gap:.6rem;align-items:center}.ledger-left{min-width:0}.ledger-amount{font-weight:800;min-width:140px;text-align:right}.ledger-amount.pos{color:var(--success);font-weight:700}.ledger-amount.neg{color:var(--danger);font-weight:700}.status-tag{margin-left:.45rem;display:inline-flex;align-items:center;border-radius:999px;padding:.08rem .42rem;font-size:.72rem;border:1px solid var(--line);background:#fff}.status-tag.settled{border-color:#10b98159;color:var(--success)}.status-tag.overdue{border-color:#ef444459;color:var(--danger)}.status-tag.risk{border-color:#92212173;color:#8f1f1f}.bar-list{margin-top:.6rem;display:grid;gap:.45rem}.bar-row{display:grid;grid-template-columns:1fr 2fr auto;gap:.45rem;align-items:center}.bar-row.clickable{width:100%;border:1px solid var(--line);background:#fff;color:inherit;font-weight:400;padding:.42rem .52rem;position:relative}.bar-row.clickable:hover{transform:none;filter:none;background:#f9fbfa}.bar-row.clickable:after{content:attr(data-tooltip);position:absolute;left:.5rem;top:-2rem;background:#1f2a25;color:#fff;font-size:.72rem;padding:.2rem .38rem;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s ease}.bar-row.clickable:hover:after{opacity:1}.bar-label{font-size:.86rem;color:var(--muted)}.bar-track{height:12px;border-radius:999px;background:linear-gradient(135deg,#e9efec,#d8dde2);overflow:hidden;box-shadow:inset 0 1px 3px #0000001a}.bar-fill{display:block;height:100%;background:linear-gradient(145deg,var(--accent),#0b6756)}.bar-fill.alt{background:linear-gradient(145deg,#3d7ed8,#2f66b3)}.bar-fill.risk{background:linear-gradient(145deg,#cc5333,#a93c24)}.bar-value{font-size:.82rem;font-weight:700}.filter-grid{margin-top:.65rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.52rem;background:linear-gradient(135deg,#ffffffe6,#f8fafccc);padding:1rem;border-radius:var(--radius);border:1px solid rgba(255,255,255,.6)}.ledger-actions{margin-top:.65rem;flex-wrap:wrap}.report-grid{margin-top:.75rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.purchase-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:.85rem;align-items:start}.sales-desk-page,.purchase-desk-page{--desk-border: #e4ebf5;--desk-shadow: 0 18px 38px rgba(15, 23, 42, .05)}.ai-workspace-page{grid-column:1 / -1;width:100%}.sales-desk-page>h2,.purchase-desk-page>h2{margin-bottom:.2rem}.erp-tile,.purchase-panel{border-radius:22px;border:1px solid var(--desk-border);box-shadow:var(--desk-shadow);background:linear-gradient(135deg,#fff,#fbfdff);overflow:hidden}.erp-tile--queue,.purchase-panel-create,.purchase-panel-submit,.purchase-panel-receive{background:linear-gradient(135deg,#f8fcf8,#f2f9f4 45%,#edf7ef)}.purchase-panel{padding:1.1rem 1.15rem}.purchase-panel:hover{transform:translateY(-1px)}.purchase-panel-intro,.purchase-panel-slabs{grid-column:1 / -1}.purchase-panel .stacked-form{gap:.58rem}.purchase-panel .table-wrap{margin-top:.55rem;border:1px solid var(--line);border-radius:12px;background:#fff}.purchase-panel .report-table th,.purchase-panel .report-table td{padding:.5rem;font-size:.82rem;vertical-align:top}.purchase-panel .actions{margin-top:.45rem;flex-wrap:wrap}.purchase-panel-slabs .table-wrap{max-height:420px}.report-grid .card{background:linear-gradient(135deg,#fffffff2,#f8fafce6);transition:transform .18s var(--ease-soft),box-shadow .22s var(--ease-out)}.report-grid .card:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}.report-charts{margin-top:.75rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.report-charts .card{background:linear-gradient(135deg,#fffffff2,#f8fafce6);transition:transform .18s var(--ease-soft),box-shadow .22s var(--ease-out)}.report-charts .card:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}.chart-card{background:linear-gradient(135deg,#fffffff2,#f8fafce6);border:1px solid rgba(255,255,255,.7);border-radius:var(--radius-sm);padding:.75rem;box-shadow:var(--shadow-sm);transition:transform .18s var(--ease-soft),box-shadow .22s var(--ease-out),border-color .16s var(--ease-soft)}.chart-card:hover{box-shadow:var(--shadow);transform:translateY(-1px)}.chart-title{margin:0;font-weight:700}.chart-header{display:flex;justify-content:space-between;gap:.4rem;align-items:center}.chart-desc{margin:.16rem 0 .5rem;color:var(--muted);font-size:.82rem}.opening-setup-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:.85rem;align-items:stretch}.opening-setup-grid .chart-card{display:flex;flex-direction:column;gap:.5rem;min-width:0}.opening-setup-form{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.72rem;align-items:end}.opening-setup-field{display:grid;gap:.32rem;min-width:0;grid-column:span 4}.opening-setup-form .opening-setup-field:first-of-type{grid-column:span 5}.opening-setup-form .opening-setup-field:nth-of-type(2){grid-column:span 3}.opening-setup-form .opening-setup-field:nth-of-type(3){grid-column:span 4}.opening-setup-field>span{font-size:.78rem;font-weight:700;color:var(--muted);letter-spacing:.01em}.opening-setup-submit{grid-column:1 / -1;width:100%;justify-self:stretch;min-width:0;min-height:44px;white-space:normal;line-height:1.2}.opening-setup-backup-actions{width:100%;display:flex;flex-wrap:wrap;gap:.55rem}.opening-setup-backup-actions .ghost{width:auto;min-width:220px}.backup-manager{display:grid;gap:.55rem}.backup-manager.compact{gap:.45rem}.backup-manager-actions{margin-top:.1rem}.backup-manager-form{margin-top:0}.backup-manager-note{margin:0}.backup-import-manager{gap:.7rem}.backup-import-preview,.backup-import-result{display:grid;gap:.7rem;padding-top:.2rem}.backup-import-summary{display:flex;flex-wrap:wrap;gap:.45rem}.backup-import-module-list{display:grid;gap:.6rem}.backup-import-module-card{display:grid;gap:.45rem;padding:.8rem .9rem;border-radius:16px;border:1px solid #dfe9f5;background:linear-gradient(135deg,#fff,#fbfdff);box-shadow:0 10px 20px #0f172a0a;cursor:pointer}.backup-import-module-card.active{border-color:#9fd2ff;background:linear-gradient(135deg,#f7fbff,#edf8ff);box-shadow:0 12px 24px #2563eb14}.backup-import-module-card.disabled{opacity:.58;cursor:not-allowed}.backup-import-module-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.7rem;align-items:start}.backup-import-module-check{padding-top:.1rem}.backup-import-chips{margin-top:0}.backup-import-notes .list-item,.backup-import-result-list .list-item{border-radius:14px}.backup-file-chip{display:inline-flex;align-items:center;padding:.18rem .55rem;border-radius:999px;background:#0f7a6614;border:1px solid rgba(15,122,102,.14);font-size:.74rem;font-weight:600}.opening-setup-restore-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,220px);gap:.72rem;align-items:end;margin-top:.15rem}.opening-setup-restore-form input[type=file]{min-width:0}.opening-setup-restore-form button{width:100%}.opening-setup-form button:hover:not(:disabled),.opening-setup-restore-form button:hover:not(:disabled),.opening-setup-backup-actions button:hover:not(:disabled){transform:none}.chart-bars{display:grid;gap:.35rem}.chart-bar-row{display:grid;grid-template-columns:1.2fr 2fr auto;gap:.42rem;align-items:center}.chart-bar-row.clickable{width:100%;border:1px solid var(--line);background:#fff;color:var(--text);font-weight:400;padding:.35rem .45rem;cursor:pointer}.chart-bar-row.clickable:hover{transform:none;filter:none;background:#f9fbfa}.chart-bar-label{font-size:.8rem;color:var(--muted)}.chart-bar-track{height:9px;border-radius:999px;overflow:hidden;background:#e9efec}.chart-bar-fill{display:block;height:100%;background:linear-gradient(145deg,var(--accent),#0b6756)}.chart-bar-value{font-size:.78rem;font-weight:700}.chart-line{width:100%;height:230px;border:1px solid var(--line);border-radius:10px;background:#f9fbfa}.chart-hover-box{margin-top:.35rem;border:1px solid rgba(15,122,102,.22);border-radius:10px;background:#f4fbf8;padding:.36rem .48rem;font-size:.8rem}.chart-legend{margin-top:.4rem;display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;font-size:.78rem;color:var(--muted)}.legend-btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:.16rem .35rem;border-radius:8px;cursor:pointer;width:auto;display:inline-flex;align-items:center;gap:.25rem}.legend-btn.compact{font-size:.77rem;justify-self:start}.legend-btn.active{border-color:#0f7a6673;background:#eef8f5}.legend-btn.off{opacity:.45}.legend-select{border-radius:8px;border:1px solid var(--line);padding:.2rem .35rem;background:#fff;color:var(--text)}.chart-legend.stack{display:grid;justify-items:start;gap:.4rem}.dot{width:9px;height:9px;border-radius:999px;display:inline-block}.dot.green{background:#0f7a66}.dot.orange{background:#c74}.chart-legend-total{margin-left:auto;color:var(--text);font-weight:700}.chart-doughnut-wrap{display:grid;grid-template-columns:190px 1fr;gap:.7rem;align-items:center}.chart-doughnut{width:190px;height:190px;display:grid;place-items:center}.chart-doughnut-svg{width:190px;height:190px}.chart-doughnut-center{width:95px;height:95px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center;font-size:.74rem;border:1px solid rgba(15,122,102,.18)}.chart-doughnut-center strong{font-size:.78rem}.chart-doughnut-center small{color:var(--muted);font-size:.7rem}.stacked-track{display:flex;width:100%;min-height:18px;border-radius:999px;overflow:hidden;border:1px solid var(--line);background:#e9efec}.stacked-segment{min-height:18px;border-radius:0;border:0;padding:0}.stacked-segment:hover{transform:none;filter:brightness(1.08)}.actions.compact{gap:.25rem}button.small{padding:.32rem .45rem;font-size:.72rem}.table-wrap{margin-top:.45rem;overflow:auto;-webkit-overflow-scrolling:touch}.sidebar-backdrop{display:none}.report-table{width:100%;border-collapse:collapse;background:#fff}.report-table th,.report-table td{border:1px solid var(--line);padding:.4rem;font-size:.8rem;text-align:left}.report-table th{background:#f4f7f6}.report-table .report-total-row td{font-weight:800;border-top:2px solid #141414;border-bottom:2px solid #141414;background:#fff}.mobile-report-section,.mobile-report-list{margin-top:.55rem;display:grid;gap:.55rem}.mobile-report-card{display:grid;gap:.55rem;padding:.82rem .88rem;border-radius:16px;border:1px solid #dfe9f5;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 10px 24px #0f172a0a}.mobile-report-card--total{background:linear-gradient(135deg,#f7fbff,#eef8ff);border-color:#cfe3fb}.mobile-report-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:.65rem;flex-wrap:wrap}.mobile-report-card-head strong{color:#10233b}.mobile-report-card-head span{color:#567187;font-size:.82rem;font-weight:700}.mobile-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .75rem}.mobile-report-grid>div,.mobile-report-input{display:grid;gap:.16rem;min-width:0}.mobile-report-label{font-size:.72rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#6b7f99}.mobile-report-grid strong,.mobile-report-input strong{color:#17324f;word-break:break-word}.mobile-report-note{color:#567187;line-height:1.45;word-break:break-word}.mobile-report-empty{color:#6b7f99;line-height:1.45}.mobile-disclosure{overflow:hidden}.mobile-disclosure-summary{list-style:none;cursor:pointer;font-weight:800;color:#17324f}.mobile-disclosure-summary::-webkit-details-marker{display:none}.mobile-disclosure-body{display:grid;gap:.35rem;margin-top:.5rem}.qty-flow-visual{min-width:170px;display:grid;gap:.18rem}.qty-flow-track{display:flex;width:100%;height:12px;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#edf1f3}.qty-flow-segment{min-width:1px;display:block}.qty-flow-labels{font-size:.7rem;color:var(--muted);white-space:nowrap}.matrix{margin-top:.65rem;display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr .9fr;border:1px solid var(--line);border-radius:12px;overflow:hidden}.matrix-head,.matrix-cell{padding:.5rem .65rem;border-bottom:1px solid var(--line);border-right:1px solid var(--line);background:#fff}.matrix-head{font-weight:700;background:#f5f7f6}.matrix-cell.alarm-blocked{background:#fff6f6;border-color:#b91c1c40}.alarm-blocked-row td{background:#fff8f8}.sale-line-stack{margin-top:.65rem;display:grid;gap:.65rem}.sale-line-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:.6rem;display:grid;gap:.45rem}.sale-line-card.alarm-blocked{border-color:#b91c1c59;background:#fff7f7}.sale-line-card-head{display:flex;justify-content:space-between;gap:.5rem;align-items:baseline}.sale-line-card-head strong{font-size:.92rem}.sale-line-card-head span{font-weight:800;color:#0f172a}.draft-builder{display:grid;gap:.95rem;margin-top:.75rem}.draft-builder-card{border:1px solid #e6edf6;border-radius:22px;background:#fff;padding:1.1rem 1.15rem;box-shadow:0 18px 40px #0f172a0d}.draft-builder-card.alarm-blocked{border-color:#b91c1c40;background:#fff8f8}.draft-builder-card--accent{background:linear-gradient(135deg,#fff,#f8fbff 48%,#f4fbf8)}.draft-builder-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;flex-wrap:wrap}.draft-builder-head .list-primary{color:#10233b;font-size:1.06rem}.draft-builder-chip-row{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.8rem}.draft-builder-chip-row--summary{margin-top:.45rem}.draft-builder-summary{margin-top:.8rem;padding:.78rem .9rem;border-radius:16px;border:1px solid #d7e7db;background:linear-gradient(135deg,#f9fdfa,#eff8f2);box-shadow:0 10px 22px #0f172a0a}.draft-builder-summary--ready{border-color:#cfe1d4;background:linear-gradient(135deg,#f7fcf7,#edf8f0)}.draft-builder-summary--alert{border-color:#b91c1c2e;background:linear-gradient(135deg,#fff8f8,#fff1f1)}.draft-builder-summary-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.draft-builder-summary-title{font-size:.92rem;font-weight:800;color:#17324f}.draft-builder-summary-state{display:inline-flex;align-items:center;min-height:28px;padding:.22rem .65rem;border-radius:999px;background:#1665341f;border:1px solid rgba(22,101,52,.14);color:#166534;font-size:.76rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.draft-builder-summary--alert .draft-builder-summary-state{background:#b91c1c1c;border-color:#b91c1c29;color:#b91c1c}.draft-builder-chip{display:inline-flex;align-items:center;min-height:28px;padding:.22rem .7rem;border-radius:999px;background:#fffc;border:1px solid #d4e5d8;color:#204566;font-size:.78rem;font-weight:700}.draft-builder-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem;margin-top:.95rem}.draft-builder-grid label{display:grid;gap:.36rem;font-weight:600;color:#243b53}.draft-builder-grid label:nth-child(1),.draft-builder-grid label:nth-child(2){grid-column:span 2}.draft-builder-grid label:nth-child(5){grid-column:span 1}.matrix>:nth-child(6n){border-right:0}.total-box{display:inline-flex;align-items:center;border-radius:14px;border:1px solid #d8e7f7;padding:.62rem .82rem;background:linear-gradient(135deg,#f7fbff,#eef7ff);font-weight:700;color:#133454}.draft-builder-actions{align-items:center}.draft-builder-stats{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;justify-content:flex-end}.erp-header-strip,.erp-post-strip{margin-top:.75rem;padding:.9rem;border-radius:18px;border:1px solid #e6edf6;background:linear-gradient(135deg,#fbfdff,#f4f9ff);box-shadow:0 12px 26px #0f172a0a}.sale-header-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:.85rem;align-items:stretch;margin-top:.75rem}.sale-header-form{margin-top:0}.customer-summary-tile{border-radius:18px;border:1px solid #d9e6db;background:linear-gradient(135deg,#f7fcf7,#eef8f1);box-shadow:0 12px 26px #0f172a0d;padding:.9rem 1rem;display:grid;gap:.7rem}.customer-summary-tile--locked{border-color:#b9d7c0;background:linear-gradient(135deg,#eef9f0,#e2f4e7);box-shadow:0 14px 28px #10653414}.customer-summary-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.customer-summary-title{font-size:1rem;font-weight:800;color:#10233b}.customer-summary-state{display:inline-flex;align-items:center;padding:.26rem .6rem;border-radius:999px;background:#1665341f;border:1px solid rgba(22,101,52,.14);color:#166534;font-size:.75rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.customer-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem 1rem}.customer-summary-item{display:grid;gap:.18rem}.customer-summary-label{font-size:.78rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#6b7f99}.customer-summary-value{font-weight:700;color:#17324f;word-break:break-word}.customer-summary-empty{color:#5f728d;line-height:1.45}.customer-lock-notice{display:grid;gap:.22rem;padding:.78rem .95rem;border-radius:16px;border:1px solid #cfe1d4;background:linear-gradient(135deg,#f6fbf7,#edf7ef);box-shadow:0 10px 22px #0f172a0a}.customer-lock-notice-title{font-size:.9rem;font-weight:800;color:#17324f}.customer-lock-notice-text{color:#567187;line-height:1.45}.customer-editor-grid{gap:.85rem;align-items:end}.customer-editor-grid--wide{grid-column:span 2}.customer-editor-actions{align-items:center;flex-wrap:wrap}.checkbox-inline{display:inline-flex;align-items:center;gap:.55rem;font-weight:600;color:#243b53}.hold-queue{gap:.7rem}.erp-tile-head,.hold-queue-card-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.erp-tile-state,.hold-queue-card-state{display:inline-flex;align-items:center;min-height:28px;padding:.22rem .65rem;border-radius:999px;background:#1665341f;border:1px solid rgba(22,101,52,.14);color:#166534;font-size:.76rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.hold-queue-card{border-radius:18px;border:1px solid #d6e6da;background:linear-gradient(135deg,#fff,#f4fbf6);box-shadow:0 12px 26px #0f172a0d}.hold-queue-card:hover{transform:translateY(-1px)}.sales-desk-page .list-item,.purchase-desk-page .list-item{border-radius:18px}.sales-desk-page .draft-builder{gap:.8rem}.sales-desk-page .draft-builder-card{padding:.85rem}.sales-desk-page .draft-builder-card .table-wrap{max-height:320px;overflow:auto}.sales-desk-page .list-item>.list-primary,.purchase-desk-page .list-item>.list-primary{color:#10233b}.sales-desk-page .quick-search,.purchase-desk-page .quick-search{background:linear-gradient(135deg,#fbfffe,#f3fffb)}.ai-workspace-page .draft-builder{gap:.85rem;width:100%}.ai-studio-hero{position:relative;overflow:hidden}.ai-studio-hero:after{content:"";position:absolute;inset:auto -80px -120px auto;width:260px;height:260px;border-radius:999px;background:radial-gradient(circle,#3b82f61a,#3b82f600 72%);pointer-events:none}.ai-studio-grid{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:.85rem;align-items:start;width:100%}.ai-studio-grid--chat{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}.ai-studio-grid--dev{grid-template-columns:minmax(320px,392px) minmax(680px,1fr)}.ai-studio-grid--chat-wide{grid-template-columns:minmax(300px,380px) minmax(720px,1fr)}.ai-studio-sidebar,.ai-studio-main{min-width:0}.ai-studio-sidebar{display:grid;gap:.95rem;align-content:start}.ai-studio-main{display:grid;align-content:start;gap:.9rem;width:100%;min-width:0}.ai-studio-control-group{display:grid;gap:.55rem;padding-top:.1rem}.ai-studio-section-label{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:#6b7f99}.ai-studio-option-list,.ai-shortcut-list{display:grid;gap:.45rem}.ai-studio-option{display:flex;align-items:center;gap:.55rem;padding:.68rem .8rem;border-radius:14px;border:1px solid #dfe9f5;background:linear-gradient(135deg,#fff,#f8fbff);color:#17324f;cursor:pointer;transition:border-color .14s ease,box-shadow .16s ease,transform .14s ease}.ai-studio-option:hover{transform:translateY(-1px);box-shadow:0 10px 20px #0f172a0d}.ai-studio-option.active{border-color:#9fd2ff;background:linear-gradient(135deg,#f7fbff,#edf8ff);box-shadow:0 10px 24px #2563eb14}.ai-studio-option input{margin:0}.ai-shortcut-btn{width:100%;justify-content:flex-start;text-align:left;min-height:42px;white-space:normal;line-height:1.35}.ai-message-feed{display:grid;gap:.55rem;max-height:320px;overflow:auto}.ai-message-feed.compact{max-height:260px}.ai-message-card{display:grid;gap:.18rem;padding:.65rem .75rem;border-radius:14px;border:1px solid #e6edf6;background:#fff}.ai-message-role{font-size:.68rem;font-weight:800;opacity:.6;text-transform:uppercase;letter-spacing:.04em}.ai-message-text,.ai-summary-text{font-size:.86rem;white-space:pre-wrap;word-break:break-word;color:#17324f;line-height:1.5}.ai-pending-panel,.ai-diff-stack,.ai-chat-shell{display:grid;gap:.85rem}.ai-review-summary{display:grid;gap:.7rem;padding:.9rem 1rem;border-radius:18px;border:1px solid #dfe9f5;background:linear-gradient(135deg,#fbfdff,#f4fbff)}.ai-review-metrics{display:flex;flex-wrap:wrap;gap:.45rem}.ai-diff-card{border:1px solid #dfe9f5;border-radius:16px;overflow:hidden;background:#fff}.ai-diff-head{padding:.65rem .85rem;background:linear-gradient(135deg,#f9fbff,#f2f8ff);border-bottom:1px solid #dfe9f5;color:#10233b;display:grid;gap:.45rem}.ai-diff-head-main{display:flex;justify-content:space-between;gap:.75rem;align-items:baseline;flex-wrap:wrap}.ai-diff-head-main strong{font-size:.92rem}.ai-diff-head-main span{color:#4f6784;font-size:.8rem}.ai-diff-head-meta{display:flex;flex-wrap:wrap;gap:.42rem}.ai-diff-meta-chip{display:inline-flex;align-items:center;min-height:24px;padding:.18rem .55rem;border-radius:999px;background:#fff;border:1px solid #d9e6f5;color:#36516d;font-size:.72rem;font-weight:700}.ai-diff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ai-diff-pane{padding:.8rem .9rem}.ai-diff-pane.remove{background:linear-gradient(180deg,#dc35450d,#fff8f9f2);border-right:1px solid #dfe9f5}.ai-diff-pane.add{background:linear-gradient(180deg,#1987540d,#f8fffbf5)}.ai-diff-label{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;opacity:.6;margin-bottom:.25rem}.ai-diff-pane pre{margin:0;white-space:pre-wrap;word-break:break-word;font-size:.79rem;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.ai-studio-actions{flex-wrap:wrap}.ai-composer{display:grid;gap:.55rem;width:100%}.ai-composer--inline{grid-template-columns:minmax(0,1fr) auto;align-items:end}.ai-composer-textarea{width:100%;min-height:118px;resize:vertical;font-family:inherit;font-size:.87rem;padding:.8rem .9rem;border-radius:16px;border:1px solid #dfe9f5;background:linear-gradient(135deg,#fbfdff,#fff);box-sizing:border-box}.ai-composer--inline .ai-composer-textarea{min-height:96px}.ai-chat-feed{flex:1;min-height:420px;max-height:520px;padding:.65rem;border:1px solid #dfe9f5;border-radius:18px;background:linear-gradient(180deg,#fbfdff,#f6fbff)}.ai-workspace-page .draft-builder-card{width:100%;min-width:0}.ai-chat-empty{margin:auto;text-align:center;opacity:.55;font-size:.85rem}.ai-chat-empty-icon{width:58px;height:58px;border-radius:999px;margin:0 auto .5rem;display:grid;place-items:center;font-weight:800;color:#0f4f7a;background:linear-gradient(135deg,#e8f4ff,#d7efff);border:1px solid #c9e4fb}.ai-chat-row{display:flex;flex-direction:column}.ai-chat-row.user{align-items:flex-end}.ai-chat-row.assistant{align-items:flex-start}.ai-chat-bubble{max-width:84%;padding:.7rem .92rem;border-radius:18px;font-size:.86rem;white-space:pre-wrap;word-break:break-word;box-shadow:0 8px 18px #0f172a0d}.ai-chat-bubble.user{border-radius:18px 18px 6px;background:linear-gradient(135deg,#1f8fe5,#1572c9);color:#fff}.ai-chat-bubble.assistant{border-radius:18px 18px 18px 6px;background:#fff;border:1px solid #dfe9f5;color:#17324f}.ai-chat-bubble.loading{opacity:.7}.ai-chat-role{font-size:.68rem;opacity:.5;margin-top:.18rem;padding:0 .2rem}.invoice-desk-page{display:grid;gap:.75rem}.document-desk-shell{border-radius:22px;border:1px solid #e6edf6;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 18px 40px #0f172a0d;padding:1rem 1.05rem}.document-desk-head{display:flex;justify-content:space-between;gap:.9rem;align-items:flex-start;flex-wrap:wrap}.document-desk-filters{background:linear-gradient(135deg,#fbfdff,#f6fbff);border:1px solid #e6edf6;border-radius:18px;padding:.8rem}.document-desk-results{gap:.65rem}.document-desk-card{border-radius:18px;border:1px solid #dfe9f5;background:linear-gradient(135deg,#fff,#fbfdff);box-shadow:0 12px 26px #0f172a0a}.approval-desk-shell{border-radius:22px;border-color:#dfe9f5;background:linear-gradient(135deg,#fff,#f9fcff)}.approval-request-card{border-radius:18px;border:1px solid #dfe9f5;background:linear-gradient(135deg,#fff,#fbfdff);box-shadow:0 12px 26px #0f172a0a}.approval-request-chips{margin-top:.45rem;margin-bottom:.2rem}.approval-table-wrap{border:1px solid #e6edf6;border-radius:14px;overflow:auto;background:#fff}.purchase-inline-review{border-radius:16px;box-shadow:0 10px 20px #0f172a0a}.purchase-history-list{gap:.65rem}.purchase-history-card{border-radius:16px;box-shadow:0 10px 20px #0f172a0a}@media(max-width:960px){.app-shell,.auth-shell{width:min(100%,calc(100% - .8rem));margin:.6rem auto 1rem}.card,.kpi-card,.chart-card,.document-desk-shell,.purchase-panel,.draft-builder-card,.list-item{border-radius:18px}.card{padding:.82rem}.dashboard-hero,.document-desk-shell,.purchase-panel,.draft-builder-card,.erp-header-strip,.erp-post-strip{padding:.88rem}.actions{flex-wrap:wrap}.actions>button,.actions>.ghost,.actions>.status,.actions>a{flex:1 1 180px}.sale-header-grid{grid-template-columns:1fr}.customer-summary-tile{order:-1}.purchase-grid,.sale-header-grid,.customer-summary-grid,.ai-studio-grid,.ai-studio-grid--chat,.ai-diff-grid,.ai-composer--inline{grid-template-columns:1fr}.document-desk-head{flex-direction:column}.draft-builder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-builder-grid label:nth-child(1),.draft-builder-grid label:nth-child(2),.draft-builder-grid label:nth-child(5){grid-column:span 2}}@media(max-width:640px){html,body{font-size:15px}.app-shell-edge .content-area{padding-top:.6rem}.sales-desk-page,.purchase-desk-page,.invoice-desk-page,.ai-workspace-page{gap:.65rem}.draft-builder-card{padding:.8rem}.erp-header-strip,.erp-post-strip,.purchase-panel{padding:.82rem}.draft-builder-grid{grid-template-columns:1fr}.draft-builder-grid label:nth-child(1),.draft-builder-grid label:nth-child(2),.draft-builder-grid label:nth-child(5){grid-column:span 1}.customer-editor-grid--wide{grid-column:span 1}.topbar-left .eyebrow{font-size:.66rem}.topbar-left h1{line-height:1.05}.status,.status.login-pill{min-height:42px}.ref-pair{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ref-book,.ref-page{max-width:none}.customer-summary-grid{grid-template-columns:1fr;gap:.55rem}.draft-builder-head,.draft-builder-stats,.erp-tile-head,.hold-queue-card-head,.document-desk-head,.dashboard-panel-head,.chart-header{flex-direction:column;align-items:stretch}.draft-builder-stats>.status,.draft-builder-stats>.total-box,.draft-builder-head>.total-box,.chart-header>*{width:100%;justify-content:center}.draft-builder-chip-row,.backup-import-summary,.ai-review-metrics,.chart-legend{gap:.35rem}.draft-builder-chip,.dashboard-chip,.draft-builder-summary-state,.erp-tile-state,.hold-queue-card-state{width:100%;justify-content:center;text-align:center}.hold-queue-card,.customer-summary-tile,.customer-lock-notice{padding:.82rem}.dashboard-row{padding:.58rem .62rem;border-radius:14px}.dashboard-row-top{flex-direction:column;align-items:flex-start}.dashboard-row-top strong,.dashboard-row-top span,.list-primary,.list-secondary{white-space:normal}}@media(max-width:1020px){.app-shell-edge .topbar{position:sticky;top:0;z-index:80;padding-left:max(.75rem,env(safe-area-inset-left));padding-right:max(.75rem,env(safe-area-inset-right))}.topbar-left{min-width:0}.topbar-left>div{min-width:0}.topbar-left h1{font-size:clamp(1.25rem,4vw,1.7rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-layout,.app-layout.sidebar-collapsed{grid-template-columns:1fr}.app-shell-edge .app-layout{min-height:calc(100dvh - 64px)}.content-area,.app-shell-edge .content-area{padding-left:max(.7rem,env(safe-area-inset-left));padding-right:max(.7rem,env(safe-area-inset-right));padding-bottom:calc(1.1rem + env(safe-area-inset-bottom))}.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100dvh;background:#11182761;border:0;border-radius:0;z-index:100;padding:0;margin:0;cursor:pointer}.sidebar-menu{position:fixed;top:0;left:0;bottom:0;width:min(84vw,320px);max-width:320px;height:100dvh;min-height:100dvh;max-height:100dvh;border-radius:0;border-left:0;border-top:0;border-bottom:0;z-index:110;transform:translate(0);transition:transform .25s ease;background:#fffffff7;border-right:1px solid rgba(226,232,240,.92);box-shadow:0 24px 60px #0f172a2e;padding-top:max(.7rem,env(safe-area-inset-top));padding-bottom:calc(4.8rem + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;visibility:visible;pointer-events:auto}.sidebar-menu.collapsed{transform:translate(calc(-100% - 1rem));visibility:hidden;pointer-events:none}.sidebar-list{grid-template-columns:1fr}.sidebar-menu.collapsed .brand-text{display:inline}.sidebar-menu.collapsed .sidebar-item{justify-content:flex-start;padding:.48rem .2rem}.sidebar-menu.collapsed .sidebar-item span:last-child{display:inline}.menu-row{justify-content:stretch}.menu-label{width:100%}.form-row,.form-row.short{grid-template-columns:repeat(2,minmax(0,1fr))}.form-row button{grid-column:span 2}.opening-setup-form{grid-template-columns:repeat(12,minmax(0,1fr))}.opening-setup-form .opening-setup-field{grid-column:span 6}.opening-setup-form .opening-setup-submit{grid-column:1 / -1}.opening-setup-restore-form{grid-template-columns:1fr}.page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero,.dashboard-report-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.matrix{grid-template-columns:minmax(190px,2fr) repeat(4,minmax(120px,1fr)) minmax(105px,.9fr);overflow-x:auto;overflow-y:hidden}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid,.report-charts,.incentive-grid,.incentive-filter-row,.incentive-redeem-form{grid-template-columns:1fr}.report-table{min-width:680px}}@media(max-width:720px){body{background:radial-gradient(420px 260px at 0% 0%,rgba(14,165,233,.11),transparent 52%),radial-gradient(320px 220px at 100% 100%,rgba(16,185,129,.08),transparent 55%),linear-gradient(180deg,#f8fbff,#eff4f8)}.topbar{flex-direction:column;align-items:stretch;gap:.38rem}.topbar-main-row{align-items:flex-start;gap:.55rem}.topbar-left{width:100%;align-items:flex-start;gap:.5rem;flex:1 1 auto;min-width:0}.topbar-left>div{min-width:0}.icon-toggle{width:40px;height:40px;min-height:40px;flex-shrink:0}.actions{width:100%;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:.4rem;padding-bottom:.2rem;scroll-snap-type:x proximity}.actions>*{flex:0 0 auto;scroll-snap-align:start}.topbar-actions{display:flex;flex-wrap:nowrap;align-items:stretch;gap:.38rem;overflow-x:auto;overflow-y:hidden;padding-bottom:.1rem;-webkit-overflow-scrolling:touch}.topbar>.topbar-actions{display:none}.mobile-topbar-tools{display:flex;flex:0 0 auto}.mobile-utility-toggle{width:40px;height:40px;min-height:40px}.mobile-utility-menu{display:grid;gap:.42rem;position:fixed;top:calc(env(safe-area-inset-top) + .7rem);right:max(.55rem,env(safe-area-inset-right));width:min(16.75rem,calc(100vw - 1.1rem));max-height:calc(100dvh - 1.4rem);overflow-y:auto;z-index:122;padding:.55rem;border-radius:18px;border:1px solid rgba(191,219,254,.75);background:#fffffff5;box-shadow:0 18px 40px #0f172a1f;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.mobile-utility-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a33;border:0;border-radius:0;z-index:120;padding:0;margin:0}.mobile-utility-action,.mobile-utility-user,.mobile-utility-status{width:100%;justify-content:center;text-align:center}.mobile-utility-user,.mobile-utility-status{min-height:40px}.mobile-utility-wrap{position:relative}.topbar-actions>*,.topbar-actions .notifications-wrap,.topbar-actions .notifications-wrap>button,.topbar-actions>button,.topbar-actions>.status{width:auto;min-width:max-content;flex:0 0 auto}.topbar-user-chip,.topbar-sync-chip{justify-content:center;white-space:nowrap;text-align:center;min-height:40px;padding:.42rem .65rem;font-size:.78rem}.topbar-actions .ghost,.topbar-actions .status.login-pill,.topbar-actions .status{justify-content:center;text-align:center;min-height:40px;padding:.42rem .65rem;font-size:.78rem}.topbar-actions .notifications-wrap{position:relative}.actions.report-section-tabs{flex-wrap:wrap;overflow:visible}.notifications-wrap{position:static}.notifications-panel{position:fixed;top:calc(env(safe-area-inset-top) + 4.2rem);left:max(.55rem,env(safe-area-inset-left));right:max(.55rem,env(safe-area-inset-right));width:auto;max-height:min(70dvh,30rem);z-index:86;padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}.backup-manager-actions .ghost,.opening-setup-backup-actions .ghost{width:100%;min-width:0}.notification-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;border:0;border-radius:0;background:#1118274d;z-index:84;padding:0;margin:0}.status,.status.login-pill{max-width:calc(100vw - 1.5rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-left .eyebrow{font-size:.62rem;letter-spacing:.08em}.topbar-left h1{font-size:1.05rem;line-height:1.02}.topbar-left .muted{margin-top:.18rem;font-size:.72rem;line-height:1.3}.form-row,.form-row.short,.form-row button,.page-grid{grid-template-columns:1fr;grid-column:auto}.form-row,.form-row.short,.stacked-form,.filter-grid,.incentive-filter-row,.incentive-redeem-form,.opening-setup-form,.opening-setup-restore-form,.customer-editor-grid,.draft-builder-grid{gap:.65rem}.opening-setup-form{grid-template-columns:1fr}.opening-setup-form .opening-setup-field,.opening-setup-submit{grid-column:auto}.opening-setup-restore-form{grid-template-columns:1fr}.page-grid{margin-top:.55rem}.kpi-grid,.dashboard-metrics,.dashboard-report-grid{grid-template-columns:1fr}.dashboard-row{grid-template-columns:28px 1fr}.incentive-grid,.incentive-filter-row,.incentive-redeem-form{grid-template-columns:1fr}.dashboard-row-meta{flex-wrap:wrap}.dashboard-row-amount{grid-column:2;justify-self:start}.matrix{grid-template-columns:minmax(170px,2fr) repeat(4,minmax(118px,1fr)) minmax(100px,.9fr)}.matrix-head,.matrix-cell{padding:.45rem .5rem;font-size:.84rem;white-space:nowrap}.filter-grid,.report-grid,.report-charts,.chart-doughnut-wrap{grid-template-columns:1fr}.chart-doughnut,.chart-doughnut-svg{width:150px;height:150px}.chart-doughnut-center{width:84px;height:84px}.chart-line{height:180px}input,select,button{min-height:44px;font-size:16px;border-radius:13px}textarea{min-height:92px;font-size:16px;border-radius:13px}label{gap:.28rem;font-size:.76rem}.mobile-sticky{position:sticky;bottom:calc(env(safe-area-inset-bottom) + .25rem);z-index:22;background:#f8fbfff7;padding:.6rem;border-radius:16px;border:1px solid #dbe7f4;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 12px 24px #0f172a14}.mobile-sticky .total-box,.mobile-sticky button,.mobile-sticky .status{width:100%;justify-content:center}.erp-header-strip,.erp-post-strip,.purchase-panel,.day-close-page>.list-item,.incentives-page .chart-card,.marketing-page .list-item,.draft-builder-card,.document-desk-shell,.ai-message-card,.approval-request-card,.document-desk-card{border-radius:18px}.table-wrap{margin-top:.35rem;border:1px solid var(--line);border-radius:10px;background:#fff;overflow-x:auto;scroll-snap-type:x proximity}.report-table th,.report-table td{font-size:.72rem;padding:.3rem .34rem}.report-table{min-width:640px}.mobile-report-grid{grid-template-columns:1fr;gap:.45rem}.day-close-page .kpi-grid,.incentives-page .kpi-grid,.marketing-page .dashboard-metrics{gap:.5rem}.report-table th{position:sticky;top:0;z-index:1}.sales-desk-page .draft-builder-card .table-wrap,.purchase-desk-page .draft-builder-card .table-wrap,.purchase-panel .table-wrap,.approval-table-wrap{border-radius:14px}.ai-studio-grid,.ai-studio-grid--chat,.ai-diff-grid,.ai-composer--inline,.chart-doughnut-wrap,.document-desk-head,.dashboard-hero,.dashboard-report-grid{grid-template-columns:1fr}.ai-chat-feed{min-height:300px;max-height:60dvh}.ai-chat-bubble{max-width:100%}.dashboard-hero-stat,.total-box,.status,.dashboard-title-pill{width:100%;justify-content:center;text-align:center}.draft-builder-stats>.status,.draft-builder-stats>.total-box,.draft-builder-head>.total-box,.chart-header>*{width:auto;justify-content:center}.draft-builder-chip,.dashboard-chip,.draft-builder-summary-state,.erp-tile-state,.hold-queue-card-state{width:auto;justify-content:center;text-align:center;flex:0 0 auto}.draft-builder-chip-row,.chart-legend,.backup-import-summary,.ai-review-metrics{justify-content:flex-start;flex-wrap:wrap}.customer-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.customer-summary-item{min-width:0}.customer-summary-value{word-break:break-word}.erp-tile--mobile-compact .list-secondary{font-size:.72rem}.hold-queue-actions{display:grid;grid-template-columns:1fr 1fr;gap:.42rem}.hold-queue-actions>button:last-child:nth-child(odd){grid-column:1 / -1}.hold-queue-actions>button{width:100%}.customer-lock-notice{padding:.65rem .75rem}.customer-lock-notice-title{font-size:.78rem}.customer-lock-notice-text{font-size:.72rem;line-height:1.35}.mobile-draft-list{display:grid;gap:.42rem}.purchase-desk-page .purchase-panel,.day-close-page>.list-item,.incentives-page .chart-card,.marketing-page .list-item{padding:.8rem}.mobile-draft-card{padding:.68rem .74rem}.draft-builder-card .table-wrap{display:none}.draft-builder-head{gap:.42rem}.draft-builder-grid{gap:.52rem}.draft-builder-chip-row--summary .draft-builder-chip{padding:.34rem .56rem;font-size:.72rem}.balance-formula-disclosure .balance-formula-card{margin:0;border:0;box-shadow:none;background:transparent;padding:.75rem .84rem .84rem}.sales-desk-page>h2,.purchase-desk-page>h2,.invoice-desk-page>h2,.card>h2{font-size:.92rem;line-height:1.16}.sales-desk-page>.muted,.purchase-desk-page>.muted,.invoice-desk-page>.muted,.card>.muted,.draft-builder-card>.muted,.purchase-panel>.muted,.erp-header-strip .muted,.erp-post-strip .muted{font-size:.72rem;line-height:1.32}.list-primary{font-size:.8rem}.list-secondary{font-size:.72rem}.draft-builder-head .list-primary,.customer-summary-title,.draft-builder-summary-title,.balance-formula-title,.customer-lock-notice-title{font-size:.82rem}.balance-formula-line,.balance-formula-final,.customer-summary-value,.customer-lock-notice-text{font-size:.74rem}.ledger-row{flex-direction:column;align-items:flex-start}.ledger-amount{min-width:auto;text-align:left}}@media(max-width:540px){.app-shell-edge .topbar{padding:.48rem max(.55rem,env(safe-area-inset-left)) .48rem max(.55rem,env(safe-area-inset-right))}.sidebar-menu{width:min(82vw,300px);min-height:100dvh;max-height:100dvh;padding-top:max(.55rem,env(safe-area-inset-top));padding-bottom:calc(5rem + env(safe-area-inset-bottom))}.app-shell-edge .content-area{padding-left:max(.55rem,env(safe-area-inset-left));padding-right:max(.55rem,env(safe-area-inset-right));padding-bottom:calc(1.5rem + env(safe-area-inset-bottom))}.card,.kpi-card,.chart-card,.document-desk-shell,.purchase-panel,.draft-builder-card,.list-item,.customer-summary-tile,.customer-lock-notice{padding:.76rem;border-radius:16px}.dashboard-hero,.erp-header-strip,.erp-post-strip{padding:.76rem}.topbar-left{gap:.5rem}.topbar-main-row{gap:.45rem}.topbar-actions{gap:.32rem}.topbar-user-chip,.topbar-sync-chip{min-height:38px}.topbar-left h1{font-size:.98rem}.topbar-left .muted{font-size:.68rem;line-height:1.24}.topbar-actions .ghost,.topbar-actions .status.login-pill,.topbar-actions .status{min-height:38px;padding:.36rem .56rem;font-size:.72rem;border-radius:12px}.mobile-utility-menu{gap:.34rem;padding:.42rem;border-radius:14px;width:min(15.5rem,calc(100vw - 1rem))}.customer-summary-grid,.hold-queue-actions{grid-template-columns:1fr}.sidebar-brand{padding-bottom:.42rem}.brand-mark{width:30px;height:30px;border-radius:10px;font-size:.7rem}.brand-text{font-size:.82rem}.sidebar-list{margin-top:.42rem;padding-bottom:5rem}.sidebar-item{min-height:42px;padding-top:.48rem;padding-bottom:.48rem;border-radius:12px;font-size:.8rem}.kpi-value{font-size:1.12rem}.user-avatar{width:24px;height:24px}.draft-builder-summary,.document-desk-filters,.notifications-panel,.ui-dialog-card{border-radius:14px}.notifications-panel{top:calc(env(safe-area-inset-top) + 3.8rem);max-height:min(72dvh,32rem)}.chart-doughnut,.chart-doughnut-svg{width:132px;height:132px}.chart-doughnut-center{width:74px;height:74px}.dashboard-row-rank{width:28px;height:28px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}}
