/* Palette and primary surfaces follow TTT/one-control/app/globals.css. */
:root{--navy:#082651;--navy-deep:#041b3a;--blue:#126bd8;--green:#20a66a;--orange:#f28c28;--purple:#7657df;--ink:#10213a;--muted:#718096;--line:#e3eaf2;--surface:#fff;--page:#f3f6fa;--shadow:0 12px 32px rgba(24,48,82,.07);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--page);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 78% -20%,rgba(35,112,207,.08),transparent 50%),var(--page);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}button{border:0}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.2}h2{font-size:17px;letter-spacing:-.3px}.icon{flex-shrink:0;vertical-align:middle}button .icon{pointer-events:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #126bd861;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:16px;background:var(--navy);color:white;padding:12px;z-index:999}.skip-link:focus{top:12px}
.header{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 clamp(20px,3.5vw,48px);background:white;border-bottom:1px solid var(--line);box-shadow:0 4px 20px rgba(15,45,80,.05);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:12px;font-weight:850;font-size:15px;color:var(--navy);min-width:160px;max-width:260px}.brand>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-symbol{position:relative;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#082651,#0d4b91);color:white;box-shadow:0 8px 20px rgba(8,38,81,.22);border:1px solid #ffffff40;flex-shrink:0}.brand-symbol::after{content:"";position:absolute;top:-3px;right:-2px;width:9px;height:9px;background:#56dfb2;border:2px solid white;border-radius:50%;box-shadow:0 0 8px #56dfb299}.brand-symbol>.icon{width:25px;height:25px}.brand-image{width:44px;height:44px;object-fit:contain}.navigation{display:flex;gap:5px;align-items:center;padding:6px;background:#f1f5fa;border:1px solid #dce6f1;border-radius:19px}.nav-item{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 16px;min-height:40px;white-space:nowrap;color:#637895;font-size:12px;font-weight:650;border:1px solid transparent;border-radius:13px;transition:background .18s,color .18s}.nav-item .icon{width:18px;height:18px}.nav-item:hover{background:#ffffffb3;color:var(--navy)}.nav-item.active{color:var(--blue);background:#edf5ff;border-color:#bad8ff;box-shadow:0 3px 12px #126bd814}.nav-item.active.in{color:#08794c;background:#edfdf4;border-color:#a6ebc6}.nav-item.active.out{color:#6745c9;background:#f5f0ff;border-color:#d9ccff}.nav-item.active.catalog{color:#0084a5;background:#ecfcff;border-color:#a4e9f5}.header-actions{display:flex;gap:10px;flex-shrink:0}.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 16px;font-size:12px;font-weight:750;border:1px solid #dae4ef;background:#fff;border-radius:12px;line-height:1.3;transition:background .16s,transform .16s,box-shadow .16s}.button:hover{background:#f0f5fb}.button:active,.icon-button:active{transform:translateY(1px)}.icon-button{padding:9px;width:40px;height:40px;color:#637895;flex-shrink:0}.icon-button:hover{background:#edf4fc;color:var(--blue)}.button .icon{width:17px;height:17px}.button.primary{background:linear-gradient(120deg,#126bd8,#0b51ad);color:white;border-color:transparent;box-shadow:0 7px 18px #126bd826}.button.primary:hover{background:#0952af;box-shadow:0 8px 22px #126bd838}.button.success{background:#0d9460;color:#fff;border-color:#0d9460}.button.success:hover{background:#087a4e}.button.violet{background:#7050d7;border-color:#7050d7;color:#fff}.button.violet:hover{background:#5a3eb8}.button.subtle{background:#ffffffb0;box-shadow:0 3px 10px #1a3b6710;color:#506b8d}.button.danger{background:#c64254;color:#fff;border-color:#c64254}.danger-ghost{color:#b94355;background:#fff6f7}.danger-ghost:hover{background:#ffe8eb;color:#a62e40}.text-button{display:inline-flex;gap:7px;align-items:center;background:none;color:var(--blue);font-size:12px;padding:9px;font-weight:650}.main{width:min(1440px,calc(100% - 64px));margin:24px auto 0;outline:none;min-height:calc(100vh - 96px)}
.hero{position:relative;overflow:hidden;border:1px solid #dde7f1;border-radius:25px;background:linear-gradient(135deg,#fff 10%,#eaf3fd 70%,#dcecff 100%);box-shadow:0 14px 38px rgba(19,56,96,.08);margin-bottom:24px}.hero-top{position:relative;min-height:242px;padding:30px 28px 20px;display:flex;align-items:center}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:9px;font-weight:800;letter-spacing:.13em;display:block;color:#6f87a5;margin-bottom:12px}.hero h1{font-size:clamp(38px,4.6vw,66px);font-weight:900;letter-spacing:-.055em;color:#102342;max-width:650px;overflow-wrap:anywhere;line-height:1.05}.hero-copy>p{color:#6e829e;font-size:13px;line-height:1.7;margin-top:14px;margin-bottom:16px}.hero-config{position:absolute;top:22px;right:22px;z-index:3;min-height:34px;padding:8px 12px;font-size:10px}.hero-config .icon{width:15px;height:15px}.hero-art{position:absolute;right:7%;top:30px;bottom:10px;width:38%;display:grid;place-items:center;pointer-events:none}.warehouse-mark{transform:rotate(-9deg);width:145px;height:145px;display:grid;place-items:center;color:#38679d;background:linear-gradient(145deg,#ffffffdf,#b7d3ef60);border:1px solid #ffffffb0;border-radius:35px;box-shadow:18px 22px 50px #4076af14,inset 0 1px 1px #fff}.warehouse-mark>.icon{width:88px;height:88px;stroke-width:1}.hero-art>span{position:absolute;font-size:clamp(40px,5vw,80px);font-weight:900;letter-spacing:-.055em;bottom:0;color:#123d6f0a;z-index:0}.hero-art>img{max-width:240px;max-height:160px;object-fit:contain}.hero-bottom{position:relative;z-index:2;padding:12px 24px 18px;background:#ffffff3d;border-top:1px solid #d9e7f380}.widget-caption{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}.widget-caption>span:first-child{font-size:9px;font-weight:800;letter-spacing:.08em;color:#7588a2}.month-picker{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce5ef;border-radius:10px;padding:6px 9px;background:#ffffffc9;color:#55708e;min-height:32px}.month-picker .icon{width:14px;height:14px}.month-picker input{width:150px;min-width:0;padding:0;border:0;outline-offset:6px;background:transparent;color:var(--navy);font-size:11px;font-weight:650}.auto-label{font-size:10px;color:#7388a4;margin-left:auto}.hero-widgets{display:grid;grid-template-columns:repeat(var(--widget-count,6),minmax(0,1fr));gap:8px}.product-widget{padding:8px 5px;background:transparent;border-radius:14px;text-align:left;display:flex;align-items:center;gap:10px;min-width:0}.product-widget:hover{background:#ffffffbf}.widget-ring{width:42px;height:42px;flex-shrink:0;border-radius:50%;border:4px solid #126bd8;border-right-color:#dbe6f2;display:grid;place-items:center;background:#fff;color:var(--blue)}.widget-ring>.icon{width:19px;height:19px}.widget-copy{min-width:0;display:block}.widget-name{display:block;color:#6f83a0;font-size:9px;font-weight:800;margin-bottom:4px;line-height:1.45;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:170px}.widget-copy strong{font-size:26px;font-weight:900;letter-spacing:-.05em;color:#102342;line-height:1}.widget-copy b{font-size:11px;color:var(--blue);margin-left:5px;font-weight:700}.product-widget.green .widget-ring{color:var(--green);border-color:var(--green);border-right-color:#dceee5}.product-widget.purple .widget-ring{color:var(--purple);border-color:var(--purple);border-right-color:#e6e0fa}.product-widget.cyan .widget-ring{color:#0891b2;border-color:#0891b2;border-right-color:#d9f2f7}.product-widget.coral .widget-ring{color:#ef5d6c;border-color:#ef5d6c;border-right-color:#f7dfe2}.product-widget.teal .widget-ring{color:#0d9488;border-color:#0d9488;border-right-color:#d7eeeb}.product-widget.green b{color:#208b60}.product-widget.purple b{color:var(--purple)}.product-widget.cyan b{color:#0891b2}.product-widget.coral b{color:#ef5d6c}.product-widget.teal b{color:#0d9488}.widget-empty{grid-column:1/-1;display:flex;align-items:center;gap:12px;min-height:62px;color:#6f83a0;font-size:12px}.widget-empty>.icon{color:#8daac9}.widget-empty button{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;color:var(--blue);background:none;margin-left:auto;white-space:nowrap}.widget-empty button>.icon{width:16px}
.panel{overflow:hidden;background:white;border:1px solid #dbe5ef;border-radius:22px;box-shadow:0 7px 24px rgba(25,49,79,.04);margin-bottom:24px}.panel-toolbar{display:flex;align-items:center;gap:16px;padding:15px 18px;min-height:68px;border-bottom:1px solid var(--line);flex-wrap:wrap}.tab-buttons{display:flex;align-items:center;gap:7px}.tab-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 12px;background:#f7f9fc;border:1px solid #dce5ef;border-radius:10px;font-size:10px;font-weight:750;white-space:nowrap;color:#6c809b}.tab-button>.icon{width:15px;height:15px}.tab-button:hover{background:#edf4fc;color:var(--navy)}.tab-button.selected{background:#eaf4ff;border-color:#b5d7ff;color:#0b5cab;box-shadow:0 3px 10px #126bd810}.tab-button.selected.in{color:#08794c;background:#ecfaf3;border-color:#bce7d1}.tab-button.selected.out{color:#6745c9;background:#f3efff;border-color:#d9ccff}.search-field{display:flex;align-items:center;gap:8px;min-height:36px;width:250px;max-width:100%;margin-left:auto;border:1px solid #dce5ef;border-radius:10px;padding:7px 10px;background:#fbfcfe;color:#8a9bb1}.search-field>.icon{width:15px;height:15px}.search-field:focus-within{border-color:#82b6f4;box-shadow:0 0 0 3px #126bd811}.search-field input{border:0;background:none;min-width:0;width:100%;font-size:11px;color:var(--ink);outline:0}.search-field input::placeholder{color:#8a9bb1}.record-total{font-size:9px;font-weight:750;color:#7a8da8;white-space:nowrap}.month-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:19px 20px;background:#f8fbfe;border:0;color:var(--navy);text-align:left;border-bottom:1px solid #e3eaf2}.month-toggle:hover{background:#f0f6fc}.month-heading{display:flex;align-items:center;gap:12px}.month-heading>strong{font-size:13px;text-transform:capitalize}.month-heading>.icon{color:#6c89ac;width:16px;height:16px;transition:transform .18s}.rotated{transform:rotate(90deg)}.pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;font-weight:750;border-radius:100px;padding:5px 9px;line-height:1.2;white-space:nowrap}.pill>.icon{width:12px;height:12px}.pill.neutral{color:#63809f;background:#edf3f9}.pill.green{color:#14805a;background:#eaf8f1}.pill.blue{color:#1a64ac;background:#eaf3ff}.pill.orange{color:#a56510;background:#fff3e3}.pill.purple{color:#6c4fc8;background:#f2edff}.month-heading>.pill{font-size:8px;padding:4px 7px}.month-toggle>.pill{font-size:9px}.pill-dot{padding:0 3px;color:#91a8c1}.movement-row{display:grid;grid-template-columns:86px 40px minmax(120px,1fr) minmax(90px,auto) 18px;align-items:center;gap:14px;width:100%;padding:16px 22px;color:var(--ink);background:white;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;min-height:77px}.movement-row:last-child{border-bottom:0}.movement-row:hover{background:#f9fbfd}.record-date{color:#6d83a1;font-size:10px;font-weight:700}.record-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;flex-shrink:0}.record-icon.green{color:#149269;background:#eaf8f1}.record-icon.purple{color:#7657df;background:#f1edff}.record-icon>.icon{width:18px;height:18px}.record-copy{min-width:0}.record-copy>strong,.record-copy>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-copy>strong{font-size:12px;font-weight:750}.record-copy>small{margin-top:5px;color:#7b899d;font-size:10px}.record-meta{text-align:right;white-space:nowrap}.record-meta>small{display:block;color:#8a97a9;font-size:8px}.record-meta>strong{display:block;margin-top:4px;font-size:13px}.record-meta strong>span{font-size:10px}.text-green{color:#178963}.text-purple{color:#7051ce}.row-arrow{color:#94a2b4;width:15px;height:15px}.month-empty{padding:22px;color:#7c8da2;font-size:12px}.panel-title{display:flex;align-items:center;gap:12px}.panel-title>.icon{width:20px;height:20px;color:#5382b4}.panel-title h2{font-size:15px;font-weight:650}.panel-title small{display:block;margin-top:5px;color:#8090a5;font-size:10px}.panel-footnote{display:flex;gap:8px;align-items:flex-start;padding:14px 20px;border-top:1px solid var(--line);background:#fbfdff;color:#7c8da2;font-size:10px;line-height:1.6}.panel-footnote>.icon{width:15px;height:15px;margin-top:1px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:310px;padding:36px 24px}.empty-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;color:#6e96c2;background:#f0f6fc;border:1px solid #e2ecf7;margin-bottom:19px}.empty-icon>.icon{width:28px;height:28px;stroke-width:1.4}.empty-state h2{font-size:18px;font-weight:700;letter-spacing:-.4px}.empty-state>p{color:#8190a4;max-width:400px;font-size:12px;line-height:1.8;margin-top:10px;margin-bottom:22px}.empty-state .text-button{margin-top:8px}
.section-banner{display:flex;align-items:center;gap:20px;padding:28px;border-radius:24px;min-height:140px;margin-bottom:24px;color:white;background:linear-gradient(120deg,#0c6dc5,#10478c);box-shadow:0 12px 32px #126bd814}.section-banner.green{background:linear-gradient(120deg,#119c69,#08734f)}.section-banner.purple{background:linear-gradient(120deg,#7855dd,#593dbb)}.section-banner.cyan{background:linear-gradient(120deg,#18637a,#11bbd6)}.section-banner .eyebrow{color:#ffffffb3;font-size:8px;margin-bottom:8px}.section-banner h1{font-size:30px;font-weight:850;letter-spacing:-.8px}.section-banner p{color:#ffffffb8;font-size:11px;margin-top:8px}.banner-icon{display:grid;place-items:center;width:54px;height:54px;background:#ffffff15;border:1px solid #ffffff6b;border-radius:50%;flex-shrink:0}.banner-icon>.icon{width:25px;height:25px}.banner-button{margin-left:auto;background:#fff;color:var(--navy);border:0;box-shadow:0 8px 24px #00000012}.banner-button:hover{background:#f3f8fc}.section-toolbar{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px;padding:0 3px}.section-kicker{color:#8195b0;font-size:9px;font-weight:800;letter-spacing:.08em}.stats{display:grid;gap:18px;margin-bottom:24px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{position:relative;display:flex;align-items:center;gap:14px;overflow:hidden;padding:22px;background:white;border:1px solid #dde6ef;border-radius:18px;min-height:112px;box-shadow:var(--shadow)}.stat-card::after{content:"";position:absolute;top:-24px;right:-20px;width:76px;height:76px;border-radius:50%;background:#ecf4ff}.stat-card.green::after{background:#edf8f2}.stat-card.purple::after{background:#f3efff}.stat-card.orange::after{background:#fff5ea}.stat-card.cyan::after{background:#eaf9fb}.stat-card p{color:#7c8da6;font-size:11px;margin-bottom:8px}.stat-card strong{font-size:24px;line-height:1.1;font-weight:800;letter-spacing:-.6px;color:var(--blue)}.stat-card.green strong{color:#15905e}.stat-card.purple strong{color:var(--purple)}.stat-card.orange strong{color:#e98b2a}.stat-card.cyan strong{color:#0796ae}.stat-card small{display:block;color:#8a99ac;font-size:10px;margin-top:8px}.stat-icon{width:38px;height:38px;border-radius:12px;background:#f0f5fb;color:#7d98b6;display:grid;place-items:center}.stat-icon>.icon{width:19px;height:19px}.muted{color:#8190a4}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-weight:700;color:#7d90a9;font-size:9px;background:#f8fbfe;padding:14px 22px;border-bottom:1px solid var(--line);letter-spacing:.02em}td{padding:17px 22px;border-bottom:1px solid var(--line);font-size:12px;color:#536b87}tbody tr:last-child td{border-bottom:0}td strong{color:#28435f;font-size:12px;font-weight:700}td:first-child{white-space:normal;min-width:220px;max-width:380px;overflow-wrap:anywhere}td small{display:block;font-size:10px;color:#91a0b1;margin-top:4px}.table-actions{white-space:nowrap;text-align:right}.table-actions button{width:30px;height:30px;min-height:30px;padding:6px;border:0;background:#f1f9fd;color:#2183a3;margin:0 2px;border-radius:9px}.table-actions button.danger-ghost{color:#c65c71;background:#fff3f6}.table-actions .icon{width:15px;height:15px}.align-right{text-align:right}tbody tr:hover{background:#fbfdff}
.comparison-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:2px 3px;margin:26px 0 20px}.comparison-toolbar p{font-size:11px;color:#8796aa;margin-top:6px}.comparison-months{display:flex;align-items:center;gap:10px}.comparison-months>.muted>.icon{width:16px;height:16px}.chart-panel{padding:24px}.chart-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:26px}.chart-heading h2{font-size:15px;margin-top:7px}.chart-legend{display:flex;gap:18px;font-size:10px;color:#748aa5}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{height:7px;width:7px;border-radius:2px;background:#126bd8}.chart-legend i.legend-prev{background:#b9cee8}.bar-chart{display:grid;grid-template-columns:1fr 1fr;gap:22px 50px}.bar-row{display:grid;grid-template-columns:145px 1fr;gap:20px;align-items:center}.bar-row>span{min-width:0}.bar-row strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-row small{display:block;font-size:9px;color:#8295ac;margin-top:4px}.bar-pair{min-width:0;padding-right:30px}.bar-pair>div{position:relative;height:10px;margin:5px 0;background:#f6f9fc;border-radius:3px}.bar{display:block;height:100%;border-radius:3px;background:#126bd8}.bar.previous{background:#b9cee8}.bar-pair b{position:absolute;left:calc(100% + 8px);top:-2px;color:#8293aa;font-size:9px;font-weight:600}.chart-note{font-size:10px;color:#8697ab;margin-top:25px}
.footer{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#8a9ab0;font-size:10px;padding:0 4px 25px;margin-top:24px}.footer>span{display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;border-radius:50%;background:#6ebb9b}.footer button{background:none;display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#7187a3;padding:5px}.footer button .icon{width:13px;height:13px}.notice{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:12px;padding:12px 16px;font-size:11px;margin-bottom:18px}.notice>span{display:flex;gap:8px;align-items:center}.notice .icon{width:16px;height:16px}.notice button{background:none;color:inherit;font-size:11px;display:flex;align-items:center;gap:8px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.demo-notice{background:#fff6e8;border:1px solid #f0dfbf;color:#8e6427}.error-notice{background:#fff0f2;border:1px solid #f2c9d0;color:#a64050}.error-notice>span{display:block}
dialog{width:min(510px,calc(100% - 32px));max-height:calc(100dvh - 48px);border:1px solid #dce6f0;border-radius:22px;padding:0;color:var(--ink);box-shadow:0 30px 100px #061d3d33;overflow-y:auto;overscroll-behavior:contain}dialog.wide{width:min(820px,calc(100% - 32px))}dialog::backdrop{background:rgba(8,28,55,.38);backdrop-filter:blur(4px)}body:has(dialog[open]){overflow:hidden}.modal-head{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:20px;font-weight:800;letter-spacing:-.5px}.modal-head p{font-size:11px;color:#8191a6;margin-top:7px}.modal-head .icon-button{border:0;background:#f5f8fb;width:34px;height:34px;min-height:34px}.modal-head .icon-button>.icon{width:17px}.modal-body{padding:22px 24px;display:grid;gap:19px}.modal-body label,.field-label{display:block;font-size:11px;font-weight:700;color:#59718e}.modal-body label>input:not([type=checkbox]):not([type=radio]),.modal-body label>select,.modal-body label>textarea{display:block;width:100%;padding:11px 12px;margin-top:8px;border:1px solid #dce5ef;border-radius:10px;outline-offset:2px;color:#203b5a;background:#fbfdff;font-size:12px;min-height:42px}.modal-body input::placeholder,.modal-body textarea::placeholder{color:#9aa9b9}.modal-body textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.required{color:#7a98bc;font-weight:400}.field-hint{font-size:10px;line-height:1.8;color:#8a99ac;font-weight:400}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:3px}.modal-actions.spread{justify-content:space-between}.form-error{font-size:12px;padding:12px;border-radius:10px;color:#a9374d;background:#fff0f3;border:1px solid #f4ccd5;line-height:1.7}.stock-hint{display:flex;align-items:center;gap:6px;color:#7c91aa;font-size:11px;background:#f3f8fd;border:1px solid #e1ecf8;border-radius:10px;padding:11px}.stock-hint>.icon{width:16px;height:16px;color:#5e8abb}.stock-hint strong{color:#315577}.mode-options{padding:0;border:0;margin:0}.mode-options legend{font-size:11px;font-weight:700;color:#59718e;margin-bottom:10px}.mode-options label{display:flex;align-items:center;gap:10px;border:1px solid #e1e8f0;border-radius:12px;padding:13px;margin-bottom:9px;cursor:pointer}.mode-options label:has(input:checked){border-color:#a9cdf8;background:#f3f8ff}.mode-options input,.product-checklist input,.checkbox-line input{accent-color:var(--blue);width:16px;height:16px;flex-shrink:0;margin:0}.mode-options strong{color:#344e6b;font-size:12px}.mode-options small{display:block;color:#8b9aab;font-weight:400;font-size:10px;margin-top:5px}.product-checklist{max-height:235px;overflow-y:auto;display:grid;gap:8px;margin-top:12px}.product-checklist>label{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2eaf2;border-radius:10px;color:#3d5b7b;font-size:12px;cursor:pointer}.product-checklist small{display:block;font-size:10px;color:#96a5b6;font-weight:400;margin-top:3px}.product-checklist>label:has(input:checked){background:#f3f8ff;border-color:#c5dbf5}.menu-body{gap:8px}.menu-row{display:flex;align-items:center;gap:13px;padding:14px 10px;width:100%;text-align:left;background:white;border-bottom:1px solid #eef2f6;border-radius:8px}.menu-row:hover{background:#f5f9fd}.menu-row>.icon{color:#6389b2;width:19px;height:19px}.menu-row>span{flex:1}.menu-row strong{font-size:12px;font-weight:700;color:#3a5676}.menu-row small{display:block;font-size:10px;color:#93a1b4;margin-top:5px}.menu-row>.icon:last-child{width:15px;color:#a6b4c4}.menu-body>.field-hint{padding:10px}.logo-preview{display:flex;justify-content:center;padding:18px;border:1px dashed #dae4ef;border-radius:12px;background:#f8fbfe}.logo-preview .brand-image{width:80px;height:80px}.checkbox-line{display:flex!important;align-items:center;gap:9px;font-weight:500!important;line-height:1.7}.confirm-copy{font-size:12px;color:#7187a2;line-height:1.9}.detail-product{display:flex;align-items:center;gap:13px}.detail-product h3{font-size:15px;overflow-wrap:anywhere}.detail-product p{font-size:10px;color:#91a2b8;margin-top:6px}.detail-product>strong{margin-left:auto;white-space:nowrap;font-size:23px;color:var(--navy)}.detail-product strong small{font-size:11px;color:#8d9fb4}.details{margin:0}.details>div{padding:13px 0;border-top:1px solid var(--line)}dt{font-size:10px;color:#8b9db4}dd{margin:6px 0 0;font-size:12px;color:#3c5879;white-space:pre-wrap;overflow-wrap:anywhere}.detail-month{font-size:12px;color:#7187a2}.compact-records .movement-row{grid-template-columns:80px 34px minmax(80px,1fr) auto 15px;font-size:10px;padding:14px 20px;gap:10px}.compact-records .record-date{font-size:9px}.compact-records .record-copy>strong{font-size:11px}#toast{position:fixed;z-index:100;bottom:28px;left:50%;transform:translateX(-50%);padding:14px 22px;background:#102d50;color:#fff;border:1px solid #ffffff22;border-radius:13px;font-size:12px;box-shadow:0 10px 40px #08265130;max-width:calc(100% - 40px);text-align:center}
@media(min-width:1700px){.main{margin-top:24px}.hero-top{min-height:265px}.hero-bottom{padding-bottom:23px}.hero h1{font-size:72px}}
@media(max-width:1200px){.header{gap:12px;padding:0 24px}.brand{min-width:125px;max-width:180px;font-size:13px}.navigation{gap:2px}.nav-item{padding:9px 12px;gap:6px}.main{width:calc(100% - 48px)}.hero-widgets{grid-template-columns:repeat(3,minmax(0,1fr))}.product-widget{padding:9px}.hero-art{right:8%}.bar-row{grid-template-columns:120px 1fr;gap:14px}.stat-card{padding:20px}.hero-top{min-height:250px}.bar-chart{gap:24px}}
@media(max-width:900px){.header{height:auto;min-height:70px;flex-wrap:wrap;gap:12px;padding:12px 22px 0}.brand{max-width:calc(100% - 180px)}.navigation{order:3;width:100%;justify-content:center;margin-bottom:10px;border-radius:14px;padding:4px}.nav-item{flex:1;padding:9px 12px}.main{margin-top:20px}.hero h1{max-width:420px;font-size:46px}.hero-art{right:5%;width:35%}.warehouse-mark{width:118px;height:118px;border-radius:30px}.warehouse-mark>.icon{width:72px;height:72px}.hero-config{top:16px;right:16px}.hero-top{padding:52px 24px 22px}.hero-copy>p{font-size:12px}.hero-art>span{font-size:43px}.bar-chart{grid-template-columns:1fr}.bar-row{grid-template-columns:170px 1fr}.stats{gap:12px}.stat-card{padding:18px 15px;gap:10px}.stat-icon{display:none}.stat-card strong{font-size:21px}.panel-toolbar{gap:12px}.record-total{display:none}.search-field{width:215px}.comparison-toolbar{align-items:flex-start;flex-direction:column}.chart-heading{align-items:flex-start;flex-direction:column}.header-actions .button{min-height:40px}.section-banner h1{font-size:27px}}
@media(max-width:600px){.header{padding:10px 14px 0;gap:10px}.brand-symbol,.brand-image{width:38px;height:38px;border-radius:12px}.brand-symbol>.icon{width:22px;height:22px}.brand{font-size:12px;gap:9px}.header-actions{gap:7px}.header-actions .button{padding:8px 11px;font-size:11px;min-height:36px;border-radius:10px}.header-actions .icon-button{width:36px;height:36px;min-height:36px}.navigation{gap:1px;border-radius:12px;margin-bottom:9px;overflow-x:auto}.nav-item{padding:8px 6px;gap:5px;font-size:10px;border-radius:9px;min-height:34px}.nav-item .icon{width:14px;height:14px}.main{width:calc(100% - 28px);margin-top:14px}.hero{border-radius:20px;margin-bottom:16px}.hero-top{padding:61px 20px 22px;min-height:256px;align-items:flex-start}.hero h1{font-size:37px;max-width:250px}.eyebrow{font-size:7px;letter-spacing:.1em;margin-bottom:10px}.hero-copy>p{font-size:11px;max-width:200px;margin-top:12px;margin-bottom:15px}.hero-copy>.pill{font-size:8px;white-space:normal;line-height:1.6}.hero-art{top:75px;bottom:70px;right:2%;width:31%;opacity:.5}.warehouse-mark{width:83px;height:83px;border-radius:23px}.warehouse-mark>.icon{width:52px;height:52px}.hero-art>span{display:none}.hero-art>img{max-width:100%;max-height:100px}.hero-config{top:15px;right:15px;font-size:9px;padding:7px 10px;min-height:30px}.hero-config>.icon{width:13px;height:13px}.hero-bottom{padding:12px 14px 15px}.widget-caption{gap:7px;margin-bottom:8px}.widget-caption>span:first-child{font-size:8px}.auto-label{width:100%;margin:0;font-size:9px}.widget-caption .month-picker{margin-left:auto}.month-picker{min-height:30px;padding:5px 7px;gap:5px}.month-picker input{width:130px;font-size:10px}.hero-widgets{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.product-widget{gap:8px;padding:10px 3px}.widget-ring{width:35px;height:35px;border-width:3px}.widget-ring>.icon{width:17px;height:17px}.widget-copy strong{font-size:23px}.widget-name{font-size:8px;max-width:110px}.widget-copy b{font-size:9px}.widget-empty{flex-wrap:wrap;gap:8px;font-size:11px;padding:7px 1px;line-height:1.7}.widget-empty>span{flex:1}.widget-empty button{margin-left:27px;width:100%;font-size:10px;padding:4px 0}.widget-empty>.icon{width:18px}.panel{border-radius:17px;margin-bottom:16px}.panel-toolbar{padding:12px;gap:10px;align-items:stretch}.tab-buttons{gap:5px}.tab-button{font-size:9px;padding:7px 9px;gap:5px;min-height:34px;border-radius:9px}.tab-button>.icon{width:13px;height:13px}.search-field{width:100%;margin:0;min-height:34px}.month-toggle{padding:15px 12px}.month-heading{gap:7px}.month-heading>strong{font-size:11px}.month-heading>.icon{width:13px;height:13px}.month-heading>.pill{font-size:6px;padding:4px 6px}.month-toggle>.pill{font-size:7px;padding:5px 7px}.movement-row{grid-template-columns:30px minmax(80px,1fr) auto 12px;gap:9px;padding:14px 12px;position:relative;min-height:79px}.record-date{grid-column:2/4;font-size:8px;grid-row:1;margin-bottom:0}.record-icon{grid-column:1;grid-row:1/3;width:30px;height:32px;border-radius:10px}.record-icon>.icon{width:16px;height:16px}.record-copy{grid-column:2;grid-row:2}.record-copy>strong{font-size:11px}.record-copy>small{font-size:9px;margin-top:3px}.record-meta{grid-column:3;grid-row:2}.record-meta>small{font-size:7px}.record-meta>strong{font-size:12px;margin-top:3px}.record-meta strong>span{font-size:9px}.row-arrow{grid-column:4;grid-row:1/3;width:12px}.empty-state{min-height:300px;padding:28px 20px}.empty-state h2{font-size:16px}.empty-state>p{font-size:11px}.empty-state .button{font-size:11px}.empty-icon{width:54px;height:54px;border-radius:18px}.footer{align-items:flex-start;font-size:8px;gap:8px;padding-bottom:18px;margin-top:18px}.footer button{font-size:8px;white-space:nowrap;padding:0}.footer button>.icon{width:12px}.footer>span{gap:5px;line-height:1.6}.status-dot{flex-shrink:0;width:5px;height:5px}.section-banner{padding:23px 18px;gap:13px;flex-wrap:wrap;min-height:160px;border-radius:20px;margin-bottom:16px}.section-banner h1{font-size:25px}.section-banner p{font-size:10px}.section-banner .eyebrow{font-size:7px}.banner-icon{width:42px;height:42px}.banner-icon>.icon{width:20px;height:20px}.banner-button{margin-left:55px;min-height:35px;font-size:10px;padding:9px 12px}.section-toolbar{margin:18px 0 12px}.section-kicker{font-size:8px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat-card{padding:16px 10px;min-height:100px;align-items:flex-start;border-radius:13px}.stat-card::after{width:50px;height:50px;top:-22px;right:-20px}.stat-card p{font-size:8px;min-height:24px;line-height:1.5;margin-bottom:8px}.stat-card strong{font-size:19px;overflow-wrap:anywhere;letter-spacing:-.5px}.stat-card small{font-size:8px;margin-top:7px}.stats{margin-bottom:16px}.panel-title{gap:10px}.panel-title h2{font-size:13px}.panel-title small{font-size:9px}.panel-title>.icon{width:18px;height:18px}.panel-footnote{padding:13px;font-size:9px}th{padding:13px 15px;font-size:8px}td{padding:15px;font-size:11px}td strong{font-size:11px}td:first-child{min-width:180px}.comparison-toolbar{gap:13px;margin:20px 0 16px}.comparison-toolbar p{font-size:10px;line-height:1.7}.comparison-months{gap:5px;width:100%;justify-content:space-between}.comparison-months .month-picker{max-width:calc(50% - 13px)}.comparison-months .month-picker input{width:122px;font-size:10px}.comparison-months .month-picker>.icon{display:none}.comparison-months>.muted .icon{width:14px}.chart-panel{padding:19px 16px}.chart-heading h2{font-size:14px}.chart-heading{gap:15px;margin-bottom:20px}.chart-legend{font-size:9px;gap:16px}.bar-row{grid-template-columns:105px 1fr;gap:12px}.bar-row strong{font-size:10px}.bar-row small{font-size:8px}.bar-chart{gap:18px}.chart-note{font-size:9px;line-height:1.7;margin-top:20px}.notice{padding:10px;font-size:10px;align-items:flex-start}.notice>span{flex-wrap:wrap;gap:6px}.notice>span>span{width:100%;font-size:9px}.notice button{font-size:9px;gap:4px}.notice button>.icon{width:12px}.error-notice{flex-wrap:wrap}.error-notice>span{flex:1;min-width:200px}.modal-head{padding:19px 18px}.modal-head h2{font-size:18px}.modal-head p{font-size:10px;line-height:1.7}.modal-body{padding:20px 18px;gap:16px}.modal-body label{font-size:10px}.form-grid{gap:12px}.modal-body label>input:not([type=checkbox]):not([type=radio]),.modal-body label>select,.modal-body label>textarea{font-size:16px;padding:10px;min-height:44px}.modal-actions>.button{font-size:11px;padding:10px 13px}.detail-product{gap:10px;flex-wrap:wrap}.detail-product h3{font-size:13px;max-width:200px}.detail-product>strong{font-size:21px}.compact-records .movement-row{grid-template-columns:30px minmax(80px,1fr) auto 12px;gap:8px;padding:12px}.compact-records .record-date{font-size:8px}#toast{font-size:11px;padding:12px 16px;bottom:18px;width:max-content;max-width:calc(100% - 28px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* Stock overview shares the catalog's surfaces and typography. */
.table-actions .stock-issue{width:auto;height:auto;min-height:32px;padding:7px 10px;gap:6px;display:inline-flex;white-space:nowrap;background:#eef5ff;color:#126bd8;border:1px solid #d5e5f9;font-size:10px}
.table-actions .stock-issue:hover{background:#deecff}
.stock-panel td:nth-child(3)>strong{font-size:15px;color:var(--navy)}
.stock-panel td:nth-child(3)>strong>span{font-size:11px}
@media(max-width:600px){.navigation{justify-content:flex-start}.nav-item{flex:1 0 auto;padding-inline:5px}.stock-panel td:nth-child(3)>strong{font-size:13px}}
html{overflow-x:clip}
@media(max-width:600px){
  .stock-panel table{table-layout:fixed;white-space:normal}
  .stock-panel th,.stock-panel td{padding:14px 10px}
  .stock-panel th:nth-child(2),.stock-panel td:nth-child(2),.stock-panel th:nth-child(4),.stock-panel td:nth-child(4){display:none}
  .stock-panel th:first-child,.stock-panel td:first-child{width:50%;min-width:0;max-width:none}
  .stock-panel th:nth-child(3),.stock-panel td:nth-child(3){width:34%}
  .stock-panel td:nth-child(3){white-space:nowrap}
  .stock-panel th:last-child,.stock-panel td:last-child{width:16%;padding-inline:6px}
  .stock-panel .table-actions .stock-issue{width:30px;min-height:30px;padding:6px}
  .stock-panel .stock-issue>span{display:none}
}
.hero-art>img{mix-blend-mode:multiply}
@media(max-width:600px){.hero-art{opacity:1}}

.document-card{border-bottom:1px solid var(--line)}
.document-card:last-child{border-bottom:0}
.document-toggle{border-bottom:0}
.record-copy>.record-recipient{display:inline-block;max-width:100%;margin-top:4px;padding:2px 6px;border:1px solid #d9ccff;border-radius:5px;background:#f3efff;color:#51359d;font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.record-recipient>span{font-size:9px;font-weight:500}
.record-recipient>b{font-weight:750}
.document-toggle[aria-expanded="true"]{background:#f5f9fd}
.document-body{padding:4px 22px 18px 122px;background:#fbfdff;border-top:1px solid #edf2f8}
.document-lines{display:grid}
.document-line{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e9eff6;font-size:12px}
.document-line:last-child{border-bottom:0}
.line-number{color:#9aadc2;font-size:10px}
.document-line>div{min-width:0}
.document-line>div>strong{display:block;overflow-wrap:anywhere;color:#355473;font-size:12px}
.document-line>div>small{display:block;margin-top:4px;color:#90a1b4;font-size:10px}
.document-line>strong{white-space:nowrap}
.document-line>strong>small{font-size:10px}
.document-note{white-space:pre-wrap;overflow-wrap:anywhere;color:#8091a6;font-size:11px;padding:10px 0 0;line-height:1.7}
.document-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:14px}
.document-actions .button{font-size:10px;min-height:32px;padding:7px 10px}
.document-actions .icon{width:14px;height:14px}
.modal-document{padding:8px 24px 22px}
.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.editor-heading>.button{font-size:10px;min-height:32px;padding:7px 10px}
.document-editor>.field-hint{margin-top:10px}
.document-form-line{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 145px 34px;gap:10px 14px;padding:15px 0;border-bottom:1px solid var(--line);align-items:start}
.document-form-line>.icon-button{align-self:start;margin-top:24px;min-height:34px;width:34px;height:34px}
.document-form-line>label{position:relative}
.document-form-line>label:nth-child(2)>input{padding-right:42px!important}
.document-form-line .line-unit{position:absolute;right:11px;bottom:13px;font-size:10px;color:#8ca2ba;pointer-events:none}
.line-stock-hint{grid-column:1/-1}
.line-stock-hint .stock-hint{display:inline-flex;padding:0;border:0;background:none;font-size:10px}
@media(max-width:600px){
.document-body{padding:3px 14px 15px 22px}
.document-line{grid-template-columns:16px minmax(0,1fr) auto;gap:8px;font-size:11px}
.document-line>div>strong{font-size:11px}
.document-actions{flex-wrap:wrap}
.document-actions>.button{font-size:9px;padding:7px 9px}
.document-form-line{grid-template-columns:minmax(0,1fr) 34px;gap:10px}
.document-form-line>label:first-child{grid-column:1}
.document-form-line>label:nth-child(2){grid-column:1}
.document-form-line>.icon-button{grid-column:2;grid-row:1;margin-top:24px}
.line-stock-hint{grid-column:1/-1}
.document-form-line .line-unit{bottom:15px}
.editor-heading>.button{font-size:9px;padding:7px}
.modal-document{padding:5px 18px 18px}
}

.document-picker-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}
.picker-catalog{min-width:0;border:1px solid #dfe8f2;border-radius:14px;overflow:hidden;background:#fff}
.picker-search{display:flex!important;gap:8px;align-items:center;padding:10px 12px;background:#f8fbfe;border-bottom:1px solid var(--line)}
.picker-search>.icon{width:16px;height:16px;color:#8ca3bd}
.modal-body .picker-search>input{min-width:0!important;min-height:28px!important;border:0!important;background:transparent!important;margin:0!important;padding:0!important;font-size:11px!important}
.picker-product-list{max-height:300px;overflow-y:auto}
.picker-product{display:flex;gap:10px;align-items:center;width:100%;text-align:left;padding:12px;background:#fff;border-bottom:1px solid #edf2f7;min-height:66px}
.picker-product:last-child{border-bottom:0}
.picker-product:hover{background:#f6faff}
.picker-product.chosen{background:#edf5ff;box-shadow:inset 3px 0 #126bd8}
.picker-product.added{opacity:1;background:#f5faf7;cursor:default}
.picker-product-icon{display:grid;place-items:center;width:28px;height:28px;background:#f0f6fd;border-radius:9px;color:#5e8cb8;flex-shrink:0}
.picker-product.added .picker-product-icon{color:#20916a;background:#e6f5ed}
.picker-product-icon>.icon{width:15px;height:15px}
.picker-product-copy{min-width:0;flex:1}
.picker-product-copy strong{display:block;font-size:11px;color:#3b5878;overflow-wrap:anywhere;line-height:1.5}
.picker-product-copy small{display:block;margin-top:3px;font-size:9px;color:#93a3b6}
.picker-product-stock{text-align:right;font-size:10px;color:#345c86;white-space:nowrap}
.picker-product-stock b{font-size:10px;font-weight:700}
.picker-product-stock small{display:block;color:#97a8ba;font-size:8px;margin-top:3px}
.picker-product.added .picker-product-stock{color:#27865f}
.picker-list-empty{font-size:11px;line-height:1.8;color:#8698af;padding:25px 16px;text-align:center}
.picker-selection{min-width:0;background:#f5f9fe;border:1px solid #dfe9f5;border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:stretch;gap:13px}
.picker-selection h3{font-size:15px;line-height:1.5;overflow-wrap:anywhere;color:#345675}
.picker-selection .stock-hint{padding:9px 10px;font-size:10px;background:#fff}
.picker-selection>.button{font-size:11px;min-height:38px}
.picker-selection>.text-button{justify-content:center;padding:0;font-size:10px}
.picker-selection .section-kicker{font-size:8px}
.picker-selection.unselected{align-items:center;justify-content:center;text-align:center;gap:12px;min-height:220px}
.picker-selection.unselected>.icon{width:35px;height:35px;color:#8aabc9}
.picker-selection.unselected h3{font-size:13px}
.picker-selection.unselected p{font-size:11px;color:#8b9eb4;line-height:1.8;max-width:230px}
.document-basket{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.document-basket .editor-heading{margin-bottom:0}
.document-basket>.field-hint{margin-top:13px}
.basket-empty{padding:22px 0;color:#8c9eb3;font-size:11px;line-height:1.7}
.basket-product{align-self:center;min-width:0}
.basket-product>strong{display:block;font-size:12px;color:#3b5878;overflow-wrap:anywhere}
.basket-product>small{display:block;font-size:10px;color:#96a6b7;margin-top:5px}
.basket-line{padding:13px 0}
@media(max-width:600px){
.document-picker-grid{grid-template-columns:1fr;gap:12px}
.picker-product-list{max-height:210px}
.picker-product{padding:10px;min-height:58px;gap:8px}
.picker-product-copy strong{font-size:11px}
.picker-selection{padding:15px}
.picker-selection.unselected{min-height:130px}
.picker-selection.unselected>.icon{width:25px;height:25px}
.modal-body .picker-search>input{font-size:16px!important}
.document-form-line.basket-line{grid-template-columns:minmax(0,1fr) 34px}
.basket-line>.basket-product{grid-column:1;grid-row:1}
.basket-line>label:nth-child(2){grid-column:1;grid-row:2}
.basket-line>.icon-button{grid-row:1;margin-top:0}
}

.receipt-entry{display:grid;gap:15px;padding:20px;background:#f5fbf8;border:1px solid #dceee4;border-radius:15px}
.receipt-entry-heading>p{font-size:11px;line-height:1.8;color:#7b958b;margin-top:7px}
.receipt-entry>button{justify-self:start;min-height:38px}
.receipt-entry input[readonly],.receipt-entry select:disabled{background:#edf3ef!important;color:#7b8d85!important}

@media(max-width:600px){
.receipt-entry{padding:15px;gap:13px}
.receipt-entry .form-grid{grid-template-columns:1fr}
}
/* Working dashboard — approved reference, consolidated 28 October 2026. */
:root{--navy:#10233e;--blue:#086be8;--ink:#122541;--muted:#536781;--line:#e1e7f0;--page:#fbfcfe;--surface:#fff;--shadow:0 2px 8px #112b4804;font-family:"Segoe UI",Arial,sans-serif;font-synthesis:weight;-webkit-font-smoothing:antialiased}
body{background:var(--page);font-family:"Segoe UI",Arial,sans-serif;font-size:.875rem;color:var(--ink)}
.header{position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:28px;width:200px;height:100dvh;padding:18px 8px;background:linear-gradient(150deg,#0b1b31,#102c47);border:0;overflow-y:auto;overscroll-behavior:contain}
.brand{min-width:0;max-width:none;padding:0 10px;gap:12px;font-size:21px;line-height:1.2;font-weight:700;color:#fff;letter-spacing:-.015em}.brand-image{width:40px;height:40px;object-fit:contain;border-radius:8px;background:#fff;padding:3px;flex-shrink:0}.brand small{display:block;margin-top:5px;font-size:12px;font-weight:400;color:#bdcad9;letter-spacing:0}
.navigation{display:flex;flex-direction:column;justify-content:flex-start;gap:8px;width:100%;margin:0;padding:0;background:none;border:0;border-radius:0}.nav-item{display:flex;align-items:center;justify-content:flex-start;gap:18px;min-height:44px;padding:10px 18px;border:1px solid transparent;border-radius:6px;background:none;color:#c9d5e3;font-size:14px;font-weight:400;box-shadow:none}.nav-item .icon{width:23px;height:23px;stroke-width:1.65}.nav-item.active{background:#1477ed;border-color:#3189f3;color:#fff;font-weight:600;box-shadow:0 3px 10px #006af51a}.sidebar-bottom{display:grid;gap:8px;margin-top:auto;padding:18px 12px 0;border-top:1px solid #ffffff14}.sidebar-bottom button{display:flex;align-items:center;gap:18px;min-height:40px;padding:8px 4px;text-align:start;color:#c5d2e0;background:none;font-size:13px}.sidebar-bottom .icon{width:21px;height:21px}
.main{width:auto;max-width:none;min-height:100dvh;margin:0 0 0 200px;padding:18px 22px 0}.dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;min-height:47px}.dashboard-head h1{margin:0 0 2px;font-size:30px;font-weight:700;line-height:1.15;letter-spacing:-.025em}.dashboard-head p{margin:0;font-size:14px;color:var(--muted);line-height:1.5}.dashboard-tools{display:flex;align-items:center;gap:14px;flex-shrink:0}.month-picker{min-height:40px;padding:8px 11px;border:1px solid #d7e1ed;border-radius:6px;background:#fff;gap:10px}.month-picker>.icon{color:var(--blue);width:18px;height:18px}.month-picker input{width:164px;font-size:14px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.dashboard-tools .icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:#fff}.workspace-menu{display:flex;align-items:center;gap:10px;padding:0 0 0 14px;min-height:40px;border-inline-start:1px solid var(--line);background:none;font-size:12px;color:var(--ink)}.workspace-menu>.icon{width:14px;height:14px;margin-inline-start:8px}.workspace-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#536781;background:#e9eef5}.workspace-avatar .icon{width:20px;height:20px}
.dashboard-widgets{display:grid;grid-template-columns:repeat(var(--widget-count,4),minmax(0,1fr));gap:16px;margin-bottom:16px}.dashboard-widgets:has(>.dashboard-widget:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-widget{position:relative;min-width:0;min-height:140px;padding:16px 18px;text-align:start;border:1px solid var(--line);border-radius:6px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink)}.dashboard-widget>small{display:block;font-size:12px;color:var(--muted);line-height:1.5}.widget-content{position:relative;display:flex;align-items:center;gap:12px;min-width:0;margin-top:12px;min-height:70px}.product-visual{display:grid;place-items:center;flex-shrink:0;width:76px;height:70px;color:#8a9db5}.product-visual>.icon{width:40px;height:40px;stroke-width:1.2}.product-visual.cable,.product-visual.screw,.product-visual.silicone,.product-visual.profile{background-image:url('/assets/product-sheet.png');background-size:200% 200%;height:76px;mix-blend-mode:multiply}.product-visual.cable{background-position:0 0}.product-visual.screw{background-position:100% 0}.product-visual.silicone{background-position:0 100%}.product-visual.profile{background-position:100% 100%}.widget-data{flex:1;min-width:0;align-self:center;padding-bottom:2px}.widget-data h2{margin:0 0 8px;font-size:14px;font-weight:600;line-height:1.35;letter-spacing:0;overflow-wrap:anywhere}.widget-data>strong{display:block;font-size:34px;font-weight:700;line-height:1.15;letter-spacing:-.025em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.widget-data strong small{font-size:16px;font-weight:600;letter-spacing:0;white-space:nowrap}.mini-bars{display:flex;align-items:flex-end;justify-content:flex-end;gap:3px;align-self:flex-end;flex-shrink:0;width:44px;height:48px;margin-bottom:2px}.mini-bars i{display:block;width:6px;background:linear-gradient(#91bcfa,#e6f0fe);min-height:1px}.tone-1 .mini-bars i{background:linear-gradient(#a4dfc7,#e8f7f0)}.tone-2 .mini-bars i{background:linear-gradient(#bfb0fa,#efeaff)}.tone-3 .mini-bars i{background:linear-gradient(#f8c99e,#fff0e3)}.widget-placeholder{min-height:140px;border-style:dashed;box-shadow:none}.widget-placeholder .widget-data h2{color:var(--muted);font-weight:400;font-size:13px}.widget-placeholder .widget-data>strong{color:#8193aa;font-weight:400}.widget-placeholder .product-visual{width:42px;height:50px}.widget-placeholder .product-visual .icon{width:30px;height:30px}.widget-placeholder .widget-content{margin-top:10px;min-height:48px;gap:12px}.placeholder-add{margin-inline-start:auto;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;color:#627894;flex-shrink:0}.placeholder-add .icon{width:14px;height:14px}.placeholder-hint{display:block;margin-top:8px;font-size:11px;line-height:1.4;color:var(--muted)}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.quick-actions>button{display:flex;align-items:center;gap:20px;min-height:88px;padding:18px 20px;border:1px solid transparent;border-radius:8px;text-align:start;background:#e5f0ff;color:#075bc2}.quick-actions>button:nth-child(2){background:#e5f6ef;color:#008552}.action-circle{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;font-size:32px;font-weight:400;line-height:1;background:#0b74f4;color:#fff;box-shadow:inset 0 1px 0 #ffffff40}.action-circle>.icon{width:25px;height:25px;stroke-width:1.7}.quick-actions>button:nth-child(2) .action-circle{background:#0c9b68}.quick-actions strong{display:block;font-size:20px;font-weight:600;line-height:1.2}.quick-actions small{display:block;margin-top:5px;font-size:13px;font-weight:400;line-height:1.5;color:#263d58}.quick-actions>button>.icon{margin-inline-start:auto;width:21px;height:21px}
.panel{border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);background:#fff}.history-panel{overflow:hidden}.journal-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 16px 10px 20px}.journal-title{display:flex;align-items:center;gap:12px;min-width:0}.journal-title>.icon{color:var(--blue);width:20px;height:20px}.journal-title h2{font-size:18px;font-weight:600;letter-spacing:-.015em;white-space:nowrap}.journal-count{font-size:12px;color:var(--muted);white-space:nowrap;margin-inline-start:4px}.history-panel .search-field{position:static;display:flex;align-items:center;gap:9px;min-height:38px;width:min(370px,40%);margin:0;padding:8px 11px;border:1px solid #dce4ef;border-radius:6px;background:#fff}.search-field input{font-size:12px;color:var(--ink)}.search-field input::placeholder{color:#62738b}.search-field>.icon{width:17px;height:17px;color:#596f8a}.history-panel .panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:0 14px;border-bottom:1px solid var(--line)}.history-panel .tab-buttons{gap:6px}.history-panel .tab-button{min-height:42px;padding:10px 18px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#30435d;font-size:13px;font-weight:400;box-shadow:none}.history-panel .tab-button>.icon{display:none}.history-panel .tab-button.selected{color:#0864d2;border-bottom-color:#1674f4;background:none;font-weight:600;box-shadow:none}.journal-help{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.journal-help .icon{width:13px;height:13px}.journal-columns,.document-toggle{display:grid;grid-template-columns:134px 108px 92px minmax(100px,1.7fr) minmax(150px,1.25fr) minmax(100px,1fr) 16px;gap:12px;align-items:center}.journal-columns{min-height:38px;padding:10px 20px;background:#f0f3f8;font-size:11px;font-weight:600;color:#324660}.month-toggle{display:flex;justify-content:flex-start;min-height:43px;padding:11px 17px;background:#fff}.month-heading{gap:12px;min-width:0}.month-heading strong{font-size:14px;font-weight:600;text-transform:capitalize;color:var(--ink)}.month-heading>.icon{width:14px;height:14px;color:#536b88}.month-heading>.pill{display:none}.month-toggle>.pill{margin-inline-start:10px;padding:0;background:none;color:var(--muted);font-size:12px;font-weight:400}.document-toggle{width:100%;min-height:40px;padding:8px 20px;border:0;background:#fff;text-align:start;color:#1c304d;font-size:12px;line-height:1.5}.doc-number,.record-date{font-variant-numeric:tabular-nums;font-size:12px;font-weight:400;color:#253c5d}.doc-type{justify-self:start;padding:3px 10px;border-radius:5px;font-size:11px;line-height:1.5;white-space:nowrap}.doc-type.in{background:#dff5eb;color:#006e4c}.doc-type.out{background:#ffead8;color:#a84400}.doc-summary,.doc-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.doc-note{font-size:11px;color:#50617c}.record-recipient{display:flex;align-items:center;gap:5px;justify-self:start;max-width:100%;padding:3px 8px;border:0;border-radius:14px;background:#f0eaff;color:#5022bf;font-size:10px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.record-recipient b{font-weight:600}.record-recipient.in{background:#e2edff;color:#0951b0}.record-recipient>.icon{width:13px;height:13px;flex-shrink:0}.doc-more{display:grid;place-items:center;color:#68809d}.doc-more>.icon{width:14px;height:14px}.document-toggle[aria-expanded=true]{background:#f3f7fc}.document-toggle[aria-expanded=true] .doc-more{transform:rotate(180deg)}.document-body{padding:12px 24px 18px 40px;border-top:1px solid #e5edf5;background:#f8fafd}.document-context{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 0 12px;font-size:12px}.document-context>span{color:var(--muted)}.document-context>strong{font-weight:600;overflow-wrap:anywhere}.document-lines .document-line>div>strong{font-size:13px;color:#263c58}.document-lines .document-line>div>small{color:#5b6f88;font-size:11px}.document-note{color:#3a506c;font-size:12px}.document-note>span{display:block;margin-bottom:4px;color:var(--muted);font-size:11px}.document-actions .button{font-size:12px;min-height:36px}.history-panel .empty-state{min-height:290px;padding:30px 20px}.empty-state h2{font-size:18px;font-weight:600}.empty-state>p{max-width:440px;font-size:13px;color:var(--muted);line-height:1.6}.empty-state .button{font-size:13px;border-radius:7px;font-weight:600}.empty-state .text-button{font-size:12px}.history-panel:not(:has(.document-card)) .journal-columns{display:none}.footer{display:flex;justify-content:space-between;gap:16px;margin:18px 0 0;padding:0 0 20px;font-size:11px;color:#62748a}.footer button{font-size:11px;color:#526b89}.status-dot{background:#33896b}.notice{font-size:12px;border-radius:8px;margin-bottom:20px}.notice>span>span{font-size:12px}.notice button{font-size:12px}.button,.icon-button{border-radius:7px}.button{font-weight:600}.button.primary{background:#0868db;border-color:#0868db;box-shadow:0 2px 4px #0b5bbc14}.modal-head h2{font-weight:600}.modal-body label,.field-label{font-size:12px}.modal-body .field-hint{font-size:11px;color:#5b6f88}.modal-head p{font-size:12px;color:#5b6f88}.picker-product-list{scrollbar-width:thin}.main:focus-visible{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #005ac6;outline-offset:3px}.header button:focus-visible,.header a:focus-visible{outline-color:#a5d0ff;outline-offset:1px}
@media(hover:hover){.nav-item:not(.active):hover,.sidebar-bottom button:hover{background:#ffffff0b;color:#fff}.dashboard-widget:hover{border-color:#a8c9ef;background:#fafdff}.quick-actions>button:hover{border-color:#b4d1f4;background:#dcecff}.quick-actions>button:nth-child(2):hover{border-color:#a9dcca;background:#dbf2e8}.document-toggle:hover{background:#f7faff}.month-toggle:hover{background:#f8fafd}.workspace-menu:hover{color:var(--blue)}}
@media(min-width:761px) and (max-width:1300px){.dashboard-widgets{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-widgets:has(>.dashboard-widget:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-menu{display:none}.journal-count,.journal-help{display:none}.journal-columns,.document-toggle{grid-template-columns:116px 90px 75px minmax(90px,1fr) minmax(130px,1fr) 16px;gap:10px}.journal-columns>span:nth-child(6),.doc-note{display:none}.journal-title h2{font-size:17px}}
@media(min-width:1301px){.dashboard-widget{padding-inline:16px}.widget-content{gap:10px}.mini-bars{width:36px;gap:3px}.mini-bars i{width:5px}.product-visual{width:70px}.widget-data h2{font-size:14px}.widget-data>strong{font-size:34px}}
@media(max-width:760px){.header{position:relative;inset:auto;width:100%;height:auto;padding:14px 12px 12px;gap:16px;overflow:visible}.brand{font-size:20px;padding:0 2px;gap:11px}.brand-image{width:36px;height:36px}.brand small{font-size:11px;margin-top:3px}.sidebar-bottom{position:absolute;inset:14px 12px auto auto;margin:0;padding:0;border:0}.sidebar-bottom button{min-height:36px;width:36px;padding:7px;gap:0;border:1px solid #ffffff20;border-radius:6px}.sidebar-bottom button>span,.sidebar-bottom button+button{display:none}.navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0}.nav-item{justify-content:center;gap:7px;min-height:36px;padding:7px 5px;font-size:12px;border-radius:5px}.nav-item .icon{width:17px;height:17px}.main{margin:0;padding:18px 12px 0;width:100%;min-height:calc(100dvh - 160px)}.dashboard-head{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:16px;min-height:0}.dashboard-head h1{font-size:26px}.dashboard-head p{font-size:12px;line-height:1.5}.dashboard-tools{justify-content:space-between;gap:10px}.workspace-menu{display:none}.dashboard-tools .month-picker{flex:1;max-width:240px}.month-picker input{width:100%;font-size:16px;min-width:0}.dashboard-tools .icon-button{min-width:40px;min-height:40px}.dashboard-widgets,.dashboard-widgets:has(>.dashboard-widget:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.dashboard-widget{padding:12px;min-height:134px}.dashboard-widget>small{font-size:11px}.widget-content{gap:8px;margin-top:10px;min-height:66px}.product-visual,.product-visual.cable,.product-visual.screw,.product-visual.silicone,.product-visual.profile{width:42px;height:52px}.product-visual>.icon{width:30px;height:30px}.widget-data h2{font-size:12px;line-height:1.4;margin-bottom:7px}.widget-data>strong{font-size:27px}.widget-data strong small{font-size:12px}.mini-bars{display:none}.widget-placeholder .product-visual{width:28px}.widget-placeholder .product-visual .icon{width:24px;height:24px}.widget-placeholder .widget-data h2{font-size:12px}.placeholder-add{display:none}.placeholder-hint{font-size:10px}.quick-actions{gap:8px;margin-bottom:16px}.quick-actions>button{align-items:flex-start;gap:10px;min-height:100px;padding:14px 10px;border-radius:7px}.action-circle{width:30px;height:30px;font-size:25px}.action-circle>.icon{width:20px;height:20px}.quick-actions strong{font-size:17px;margin-top:4px}.quick-actions small{font-size:11px;line-height:1.5;margin-top:6px}.quick-actions>button>.icon{display:none}.journal-heading{flex-wrap:wrap;gap:14px;padding:16px 12px 10px}.journal-title{gap:8px;width:100%;flex-wrap:wrap}.journal-title h2{font-size:17px;white-space:normal}.journal-count{font-size:11px;margin-inline-start:auto}.history-panel .search-field{width:100%;min-height:40px;padding:8px 10px}.search-field input{font-size:16px;min-width:0}.history-panel .panel-toolbar{padding:0 8px;min-height:42px}.history-panel .tab-buttons{width:100%;gap:0}.history-panel .tab-button{flex:1;min-height:42px;padding:11px 7px;font-size:12px;white-space:nowrap}.journal-help,.journal-columns{display:none}.month-toggle{padding:12px;min-height:44px}.month-heading{gap:8px}.month-heading strong{font-size:13px}.month-toggle>.pill{font-size:11px;margin-inline-start:auto}.document-toggle{grid-template-columns:minmax(0,1fr) auto 14px;gap:8px;padding:12px;min-height:102px}.doc-number{grid-column:1;grid-row:1;font-size:12px}.record-date{grid-column:2;grid-row:1;font-size:11px}.doc-type{grid-column:2;grid-row:2;font-size:10px;padding:3px 8px}.doc-summary{grid-column:1;grid-row:2;font-size:12px}.record-recipient{grid-column:1/3;grid-row:3;font-size:10px;max-width:100%}.doc-more{grid-column:3;grid-row:1/4}.doc-note{display:none}.document-body{padding:12px}.document-context{font-size:12px}.document-line{gap:8px}.document-lines .document-line>div>strong{font-size:12px}.document-actions{justify-content:flex-start;flex-wrap:wrap;gap:8px}.document-actions .button{font-size:11px;min-height:38px}.history-panel .empty-state{min-height:280px;padding:28px 18px}.empty-state h2{font-size:17px}.empty-state>p{font-size:12px}.footer{font-size:10px;gap:10px;align-items:flex-start;padding-bottom:18px}.footer button{font-size:10px;white-space:nowrap}.notice{font-size:11px;padding:12px;line-height:1.5}.notice>span>span{font-size:11px}.notice button{font-size:11px;min-height:28px}.modal-body input:not([type=checkbox]):not([type=radio]),.modal-body select,.modal-body textarea{font-size:16px!important}.dashboard-widgets:has(.widget-placeholder){margin-bottom:12px}}
@media(max-width:360px){.dashboard-widget{padding:10px}.widget-content{gap:6px}.product-visual,.product-visual.cable,.product-visual.screw,.product-visual.silicone,.product-visual.profile{width:30px;height:42px}.widget-data>strong{font-size:24px}.widget-data h2{font-size:11px}.dashboard-widget>small{font-size:10px}.quick-actions>button{gap:7px;padding:12px 8px}.quick-actions strong{font-size:15px}.quick-actions small{font-size:10px}.action-circle{width:26px;height:26px}.journal-count{width:100%;margin-inline-start:28px}.footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.doc-more,.button:active,.icon-button:active{transform:none!important}}
@media(forced-colors:active){.dashboard-widget,.nav-item,.quick-actions>button,.record-recipient{border:1px solid CanvasText}.nav-item.active{outline:2px solid Highlight}.header button:focus-visible,.header a:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible{outline-color:Highlight}}
/* Keep the sidebar links on the same alignment edge at every size. */
.navigation{align-items:stretch}.nav-item{width:100%}.dashboard-widgets:has(.widget-placeholder){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:761px) and (max-width:1300px){.dashboard-widgets:has(.widget-placeholder){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1100px){.journal-heading{flex-wrap:wrap;gap:12px;padding:16px}.history-panel .search-field{width:100%}.journal-columns{display:none}.document-toggle{grid-template-columns:minmax(0,1fr) 90px 70px 16px;gap:8px;padding:12px 16px}.doc-number{grid-column:1;grid-row:1}.record-date{grid-column:2;grid-row:1}.doc-type{grid-column:3;grid-row:1}.doc-more{grid-column:4;grid-row:1/4}.doc-summary{grid-column:1/4;grid-row:2}.record-recipient{grid-column:1/4;grid-row:3}.doc-note{display:none}.dashboard-head p{font-size:13px}.dashboard-tools{gap:8px}.dashboard-tools .month-picker input{width:135px}.main{padding-inline:18px}}
@media(max-width:760px){.dashboard-widgets:has(.widget-placeholder){grid-template-columns:repeat(2,minmax(0,1fr))}.navigation{align-items:stretch}.nav-item{min-width:0}.journal-count{color:#526780}}
/* Reset the former horizontal header's responsive ordering. */
.header{flex-wrap:nowrap}.navigation{order:0}.sidebar-bottom{order:0}.nav-item.active{background:#0b6cde;border-color:#2983ef}.header .brand{max-width:none}
/* Shared type and section system — 28 October 2026. Inter 4.1, SIL OFL. */
@font-face{font-family:Inter;src:url('/assets/fonts/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{--font-ui:Inter,"Segoe UI",Arial,sans-serif;font-family:var(--font-ui);font-synthesis:none;font-optical-sizing:auto;--text-body:.875rem;--text-caption:.75rem;--text-heading:1.875rem}
body,button,input,select,textarea{font-family:var(--font-ui)}body{font-size:var(--text-body);font-synthesis:none}h1,h2,h3{font-weight:600}button,input,select,textarea{letter-spacing:0}.dashboard-head h1{font-weight:650}.brand{font-weight:650}.nav-item{font-size:.8125rem}.navigation .nav-item.active{color:#fff;background:#0b6cde;border:1px solid #2983ef;box-shadow:0 3px 10px #006af51a}.widget-data>strong{font-weight:650}.dashboard-widget>small,.placeholder-hint{font-size:.75rem}.doc-number,.record-date,.doc-summary{font-size:.75rem}.doc-note{font-size:.75rem}.journal-title h2{font-weight:600}.button,.tab-button{font-weight:500}.search-field input{font-size:.8125rem}
.section-banner{display:flex;align-items:center;gap:14px;min-height:64px;margin:0 0 24px;padding:0;border:0;border-radius:0;background:none!important;box-shadow:none;color:var(--ink);overflow:visible}.section-banner::before,.section-banner::after{display:none}.section-banner h1{margin:0 0 4px;font-size:var(--text-heading);font-weight:650;line-height:1.2;letter-spacing:-.025em;color:var(--ink)}.section-banner p{margin:0;color:var(--muted);font-size:.875rem;line-height:1.5}.banner-icon{display:none}.section-banner>div{min-width:0}.section-banner .banner-button{margin-inline-start:auto;flex-shrink:0;min-height:40px;padding:10px 16px;border:1px solid #0868db;border-radius:7px;background:#0868db;color:white;font-size:.8125rem;box-shadow:0 2px 4px #0b5bbc14}.section-banner.green .banner-button{background:#087f57;border-color:#087f57}.section-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 14px}.section-kicker{font-size:.75rem;font-weight:500;letter-spacing:0;color:var(--muted)}
.stats,.stats.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{display:flex;align-items:center;gap:16px;min-height:110px;padding:20px;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:var(--shadow);overflow:visible}.stat-card::after,.stat-card::before{display:none}.stat-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:0;border-radius:8px;background:#f0f5fc;color:#52749e}.stat-icon>.icon{width:21px;height:21px}.stat-card>div{min-width:0}.stat-card p{margin:0 0 8px;font-size:.75rem;line-height:1.5;font-weight:400;color:var(--muted)}.stat-card strong{display:block;font-size:1.65rem;font-weight:600;line-height:1.25;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-card small{display:block;margin-top:6px;font-size:.75rem;color:var(--muted);line-height:1.5}.stat-card.green .stat-icon{background:#e8f7f0;color:#087b55}.stat-card.purple .stat-icon{background:#f0edfc;color:#6546bc}
.panel{border-radius:8px;box-shadow:var(--shadow)}.panel-toolbar{display:flex;align-items:center;gap:16px;padding:18px 20px;min-height:74px;flex-wrap:wrap}.panel-title{gap:10px}.panel-title>.icon{color:var(--blue);width:21px;height:21px}.panel-title h2{font-size:1rem;font-weight:600;line-height:1.3;letter-spacing:-.015em}.panel-title small{display:block;margin-top:4px;font-size:.75rem;font-weight:400;line-height:1.5;color:var(--muted)}.panel-toolbar .search-field{min-height:38px;padding:8px 11px;width:min(320px,100%);margin-inline-start:auto;border:1px solid #dce4ef;border-radius:6px;background:white}.panel-toolbar .search-field input{font-size:.8125rem}.record-total{font-size:.75rem;color:var(--muted);font-weight:400;white-space:nowrap}.panel-footnote{display:flex;align-items:flex-start;gap:8px;padding:14px 20px;font-size:.75rem;line-height:1.6;color:var(--muted);background:#fbfcfe;border-top:1px solid var(--line)}.panel-footnote>.icon{width:16px;height:16px;margin-top:2px;flex-shrink:0}.history-panel .panel-toolbar:has(.panel-title){display:none}
.table-scroll{overflow-x:auto;overscroll-behavior-inline:contain}table{width:100%;border-collapse:collapse;white-space:normal}th{padding:12px 20px;font-size:.75rem;line-height:1.5;font-weight:500;color:#455a76;background:#f0f3f8;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 20px;font-size:.8125rem;line-height:1.5;color:#29415e;border-bottom:1px solid #e9eef5}td:first-child{min-width:160px}td strong{font-size:.8125rem;font-weight:500;color:var(--ink);overflow-wrap:anywhere}td small{display:block;font-size:.75rem;line-height:1.5;color:var(--muted);margin-top:4px}td.align-right{font-variant-numeric:tabular-nums}.stock-panel td:nth-child(3)>strong{font-size:1rem;font-weight:600}.stock-panel td:nth-child(3)>strong>span{font-size:.8125rem;font-weight:400}.pill{font-size:.6875rem;font-weight:500;border-radius:5px;line-height:1.4}.table-actions button{min-width:34px;min-height:34px;border-radius:6px}.table-actions .stock-issue{min-height:34px;font-size:.75rem;border-radius:6px;background:#edf4ff;color:#145eb7}.tab-buttons{gap:6px}.tab-button{font-size:.75rem;min-height:36px;padding:8px 12px;border-radius:6px}
.comparison-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}.comparison-toolbar p{font-size:.8125rem;color:var(--muted);line-height:1.6;margin-top:5px}.comparison-months{display:flex;align-items:center;gap:10px;flex-shrink:0}.comparison-months .month-picker{margin:0;max-width:none}.comparison-months .month-picker input{font-size:.8125rem;width:150px}.chart-panel{padding:22px;margin-bottom:22px}.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.chart-heading h2{font-size:1rem;font-weight:600;margin-top:6px}.chart-legend{display:flex;gap:18px;font-size:.75rem;color:var(--muted)}.chart-legend>span{display:flex;align-items:center;gap:7px}.bar-chart{gap:20px}.bar-row{grid-template-columns:160px minmax(0,1fr);gap:20px}.bar-row strong{font-size:.8125rem;font-weight:500;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}.bar-row small{font-size:.75rem;color:var(--muted)}.bar-pair{gap:8px}.bar-pair b{font-size:.75rem;font-weight:500;font-variant-numeric:tabular-nums}.bar{border-radius:3px}.chart-note{margin-top:20px;font-size:.75rem;line-height:1.6;color:var(--muted)}
.modal-head{padding:20px 24px}.modal-head h2{font-size:1.25rem;font-weight:600;letter-spacing:-.02em}.modal-head p{font-size:.75rem;line-height:1.6}.modal-body{gap:18px}.modal-body label,.field-label{font-size:.75rem;font-weight:500;color:#445c78}.modal-body label>input:not([type=checkbox]):not([type=radio]),.modal-body label>select,.modal-body label>textarea{font-size:.875rem;border-radius:6px;background:#fff;min-height:42px}.modal-actions .button{font-size:.8125rem;min-height:40px}.form-error{font-size:.8125rem}.picker-catalog{border-radius:7px}.picker-product{padding:14px;min-height:72px}.picker-product strong,.picker-product-name{font-size:.8125rem!important;font-weight:500}.picker-product small{font-size:.75rem!important}.picker-search{border-radius:0}.receipt-entry-form,.document-editor{border-radius:8px}.menu-row strong{font-size:.8125rem;font-weight:500}.menu-row small{font-size:.75rem;line-height:1.5}.field-hint{font-size:.75rem;line-height:1.6}.empty-state h2{font-weight:600}
@media(hover:hover){.section-banner .banner-button:hover{background:#075bbf;border-color:#075bbf}.section-banner.green .banner-button:hover{background:#066c49;border-color:#066c49}tbody tr:hover{background:#f8fbff}}
@media(max-width:1200px){.comparison-toolbar{align-items:flex-start;flex-direction:column}.comparison-months{align-self:flex-start}.stat-card{padding:18px;gap:12px}.stat-card strong{font-size:1.4rem}}
@media(max-width:760px){.section-banner{min-height:0;flex-wrap:wrap;gap:16px;padding:0;margin-bottom:20px}.section-banner h1{font-size:1.625rem}.section-banner p{font-size:.8125rem}.section-banner .banner-button{margin:0;min-height:40px;font-size:.8125rem;padding:10px 14px}.stats,.stats.three{grid-template-columns:1fr;gap:8px;margin-bottom:18px}.stat-card{padding:14px 16px;min-height:76px;gap:14px;border-radius:7px}.stat-icon{display:grid;width:36px;height:36px}.stat-card>div{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;flex:1}.stat-card p{min-height:0;margin:0;font-size:.75rem;flex:1;line-height:1.5}.stat-card strong{font-size:1.25rem;letter-spacing:-.015em}.stat-card small{width:100%;margin:0;font-size:.6875rem}.section-toolbar{margin:0 0 12px;gap:10px}.section-toolbar .month-picker{max-width:190px}.section-kicker{font-size:.6875rem}.panel-toolbar{padding:16px 12px;gap:14px;min-height:0}.panel-title h2{font-size:1rem}.panel-title small{font-size:.75rem}.panel-toolbar .search-field{width:100%;min-height:40px;margin:0}.panel-toolbar .search-field input,.search-field input{font-size:16px}.record-total{font-size:.75rem;margin-inline-start:auto}.panel-footnote{padding:12px;font-size:.6875rem;line-height:1.6}.tab-buttons{flex-wrap:wrap}.tab-button{font-size:.75rem;min-height:36px;padding:8px 10px}.table-scroll table{min-width:520px}th{padding:12px;font-size:.6875rem}td{padding:14px 12px;font-size:.75rem}td strong{font-size:.75rem}td small{font-size:.6875rem}td:first-child{min-width:140px}.stock-panel .table-scroll table{min-width:0}.stock-panel th:first-child,.stock-panel td:first-child{width:51%}.stock-panel th:nth-child(3),.stock-panel td:nth-child(3){width:34%}.stock-panel th:last-child,.stock-panel td:last-child{width:15%}.stock-panel td:nth-child(3)>strong{font-size:.875rem}.comparison-toolbar{margin-bottom:16px;gap:14px}.comparison-toolbar p{font-size:.75rem}.comparison-months{width:100%;gap:8px;display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr)}.comparison-months .month-picker{width:100%;max-width:none;min-width:0;padding:9px 6px;gap:0}.comparison-months .month-picker input{width:100%;min-width:0;font-size:16px}.comparison-months .month-picker>.icon{display:none}.comparison-months>.muted .icon{width:14px;height:14px}.chart-panel{padding:18px 12px;margin-bottom:18px}.chart-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:20px}.chart-heading h2{font-size:1rem}.chart-legend{font-size:.6875rem;gap:12px;flex-wrap:wrap}.bar-chart{grid-template-columns:1fr;gap:20px}.bar-row{grid-template-columns:100px minmax(0,1fr);gap:12px}.bar-row strong{font-size:.75rem}.bar-row small,.bar-pair b{font-size:.6875rem}.chart-note{font-size:.6875rem;line-height:1.6}.modal-head{padding:18px}.modal-head h2{font-size:1.125rem}.modal-body{padding:18px;gap:16px}.modal-body label>input:not([type=checkbox]):not([type=radio]),.modal-body label>select,.modal-body label>textarea{font-size:16px}.modal-actions .button{font-size:.75rem;min-height:40px}.dashboard-widget>small{font-size:.6875rem}.placeholder-hint{font-size:.625rem}.nav-item{font-size:.75rem}}
/* Neutral values; color remains on the category icons and status labels. */
.stats .stat-card strong{color:var(--ink);font-weight:600}.table-scroll:focus-visible{outline:2px solid #0868db;outline-offset:-2px}
@media(max-width:760px){.table-scroll:not(.stock-panel .table-scroll)::before{content:'Таблица прокручивается по горизонтали';display:block;padding:10px 12px;color:var(--muted);background:#fbfcfe;font-size:.6875rem;line-height:1.5;border-bottom:1px solid var(--line)}}
/* Shared form actions and readable chart labels at narrow widths. */
.bar-row strong{display:block;white-space:normal;overflow:visible;text-overflow:clip;max-width:none}.button.violet{background:#087f57;border-color:#087f57;color:#fff;box-shadow:0 2px 4px #075a4114}dialog{border-radius:12px}.modal-head{position:sticky;top:0;z-index:3;background:#fff}.modal-actions{position:sticky;bottom:0;z-index:2;background:#fff;padding-block:16px;margin-bottom:-18px}.modal-body>label>input::placeholder,.modal-body>label>textarea::placeholder{font-weight:400;color:#6b7f99}
@media(hover:hover){.button.violet:hover{background:#066c49;border-color:#066c49}}
@media(max-width:760px){.bar-row strong{font-size:.75rem;line-height:1.5}.modal-actions{margin-bottom:-18px;padding-block:14px}.modal-body .picker-search>input{font-size:16px!important}}
/* Final surfaces and restrained motion. All movement is opt-in. */
:root{--ease-ui:cubic-bezier(0.2,0,0,1);--shadow-float:0 4px 12px #183b6410,0 1px 2px #183b6408}
.panel,.dashboard-widget,.stat-card{box-shadow:0 1px 3px #14345504}.dashboard-widget{isolation:isolate}.panel-toolbar,.journal-heading{background:#fff}.dashboard-tools .icon-button{box-shadow:0 1px 2px #0f2d4b04}.workspace-menu{border-radius:0}.workspace-avatar{background:#e9eff8;color:#4f6c92}.search-field:focus-within,.month-picker:focus-within{border-color:#6c9fe8;box-shadow:0 0 0 3px #1668da0d}.search-field input:focus-visible,.month-picker input:focus-visible{outline-offset:4px}.button:disabled{box-shadow:none;cursor:not-allowed}.button:not(:disabled):active,.icon-button:not(:disabled):active{transform:none}.button.violet:disabled,.button.primary:disabled{background:#e4ebf5;border-color:#d8e1ee;color:#6a7e98;opacity:1}.quick-actions>button{box-shadow:inset 0 1px 0 #ffffff60}.quick-actions>button>span:nth-child(2){min-width:0}.quick-actions small{max-width:42ch}.stat-card .stat-icon{border:1px solid #e5edf8}.stat-card.green .stat-icon{border-color:#d8ede2}.stat-card.purple .stat-icon{border-color:#e4ddf7}.journal-count{padding:3px 7px;background:#f1f5fa;border-radius:5px;font-size:11px;color:#4d627f}.journal-help{font-size:11px}.document-toggle[aria-expanded=true]{box-shadow:inset 3px 0 #2376e0}.document-body{background:#f8fafd}.document-actions{border-top:1px solid #e2eaf4;margin-top:8px;padding-top:14px}.document-line>strong{font-variant-numeric:tabular-nums}.document-context{padding-bottom:14px}.document-context strong{color:#273e5c}.doc-more{border-radius:4px}.record-recipient{padding:3px 7px}.history-panel .empty-icon{background:#f2f7fe;border:1px solid #e1ebf8;color:#6e91bc;box-shadow:none}.picker-selected,.receipt-entry{box-shadow:none}.picker-product.chosen{background:#edf4ff;box-shadow:inset 3px 0 #176cda}.picker-product.added{background:#f3faf6}.picker-product.added .picker-product-icon{background:#e0f1e7;color:#25764f}.document-draft-empty{border-radius:7px}.modal-head .icon-button{border:1px solid #e6edf6;background:#f8fafd;border-radius:7px}.modal-actions{box-shadow:0 -5px 10px #172f4a03}.modal-actions .button{min-width:90px}.modal-body input,.modal-body textarea,.modal-body select{font-weight:400}.modal-body input::placeholder,.modal-body textarea::placeholder{color:#72839b;font-weight:400}.picker-product-list,.product-checklist{scrollbar-width:thin;scrollbar-color:#c9d6e7 transparent}dialog{box-shadow:0 24px 64px #0c254733,0 4px 12px #0c254718;scrollbar-width:thin;scrollbar-color:#c9d6e7 transparent}dialog::backdrop{background:#10243c55;backdrop-filter:blur(3px)}#toast{bottom:24px;padding:13px 18px;border-radius:9px;font-size:12px;font-weight:500;line-height:1.5;background:#12304f;box-shadow:var(--shadow-float);border:1px solid #294866;max-width:min(520px,calc(100% - 32px))}.footer{border-top:1px solid #e7ecf4;padding-top:16px;margin-top:24px}.footer .status-dot{width:5px;height:5px;box-shadow:none}.footer>span{line-height:1.5}.footer button{min-height:24px}.chart-legend i{width:7px;height:7px;border-radius:2px}.bar-pair>div{border-radius:3px}.section-toolbar .section-kicker,.comparison-toolbar .section-kicker,.chart-heading .section-kicker{text-transform:none;letter-spacing:0}
@media(hover:hover){.dashboard-widget:hover{background:#fff;border-color:#a9c8ee;box-shadow:var(--shadow-float)}.button.primary:hover{background:#075dc5;border-color:#075dc5}.quick-actions>button:hover>.icon{color:#004caa}.quick-actions>button:nth-child(2):hover>.icon{color:#00683f}.workspace-menu:hover .workspace-avatar{background:#dce9fb;color:#145ebc}.sidebar-bottom button:hover{border-radius:6px}.table-actions .stock-issue:hover{background:#dfeeff}.document-toggle:hover .doc-more{background:#edf3fb;color:#285f9f}}
@media(prefers-reduced-motion:no-preference){
 .button,.icon-button{transition:background-color 150ms ease-out,border-color 150ms ease-out,box-shadow 150ms ease-out,scale 150ms ease-out}
 .button:not(:disabled):active,.icon-button:not(:disabled):active{scale:.96}
 .nav-item,.tab-button,.document-toggle,.month-toggle,.picker-product{transition:background-color 120ms ease-out}
 .dashboard-widget{transition:border-color 150ms ease-out,box-shadow 150ms ease-out}
 .search-field,.month-picker{transition:border-color 150ms ease-out,box-shadow 150ms ease-out}
 .quick-actions>button{transition:background-color 150ms ease-out,border-color 150ms ease-out}
 .quick-actions>button>.icon{transition:translate 150ms ease-out}
 .quick-actions>button .action-circle{transition:scale 150ms ease-out}
 .quick-actions>button:active .action-circle{scale:.96}
 .workspace-avatar{transition:background-color 150ms ease-out,color 150ms ease-out}
 dialog{opacity:0;transform:translateY(-12px);filter:blur(4px);transition:opacity 150ms var(--ease-ui),transform 150ms var(--ease-ui),filter 150ms var(--ease-ui),display 150ms allow-discrete,overlay 150ms allow-discrete}
 dialog[open]{opacity:1;transform:none;filter:blur(0);transition-duration:300ms}
 dialog:not([open]){pointer-events:none}
 dialog::backdrop{opacity:0;transition:opacity 150ms ease-out,display 150ms allow-discrete,overlay 150ms allow-discrete}
 dialog[open]::backdrop{opacity:1}
 @starting-style{dialog[open]{opacity:0;transform:translateY(12px);filter:blur(4px)}dialog[open]::backdrop{opacity:0}}
 #toast{transition:opacity 150ms var(--ease-ui),translate 150ms var(--ease-ui),display 150ms allow-discrete}
 #toast:not([hidden]){opacity:1;translate:0 0}
 #toast[hidden]{opacity:0;translate:0 -12px}
 @starting-style{#toast:not([hidden]){opacity:0;translate:0 12px}}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.quick-actions>button:hover>.icon{translate:3px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}dialog,dialog[open]{opacity:1;transform:none;filter:none}.button,.icon-button,.action-circle{scale:1!important}#toast{translate:none!important}}
@media(max-width:760px){.journal-count{font-size:10px;padding:3px 6px}.footer{margin-top:20px;padding-top:14px}.document-actions .button{min-width:0}.modal-actions .button{min-width:0}.modal-actions{gap:8px}.modal-head{border-bottom-color:#e5ebf4}#toast{bottom:max(16px,env(safe-area-inset-bottom));font-size:12px;width:calc(100% - 32px);max-width:480px}.record-recipient{max-width:100%}.quick-actions small{font-size:11px}}
@media(forced-colors:active){.panel,.dashboard-widget,.stat-card,.action-circle,.workspace-avatar,.journal-count{border:1px solid CanvasText}.search-field:focus-within,.month-picker:focus-within{outline:1px solid Highlight}.document-toggle[aria-expanded=true]{border-inline-start:3px solid Highlight}}
@media(max-width:760px){.panel-footnote{background:#fafcfe}}
@media(hover:none){.dashboard-widget:hover{background:var(--surface);border-color:var(--line);box-shadow:0 1px 3px #14345504}.button.primary:hover{background:#0868db;border-color:#0868db}.button.violet:hover{background:#087f57;border-color:#087f57}.document-toggle:hover{background:#fff}.document-toggle[aria-expanded=true]:hover{background:#f3f7fc}.month-toggle:hover{background:#fff}.navigation .nav-item:not(.active):hover{background:transparent;color:#c9d5e3}.picker-product:hover{background:#fff}.picker-product.chosen:hover{background:#edf4ff}.picker-product.added:hover{background:#f3faf6}}
/* One movement journal: explicit inclusive dates, independent of widget month. */
.journal-dates{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:14px 20px;border-bottom:1px solid var(--line);background:#fafcfe}.period-label{font-size:12px;line-height:1.5;color:var(--muted)}.date-fields{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.date-fields label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.date-fields input{min-width:0;width:150px;min-height:36px;padding:7px 9px;border:1px solid #d7e1ed;border-radius:6px;background:white;color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums}.date-fields .button{min-height:36px;font-size:12px;padding:8px 12px}.date-fields .text-button{min-height:36px;font-size:12px;padding:8px}.date-apply{color:#075cc5;background:#edf4ff;border-color:#c5daf7}.date-filter-error{width:100%;font-size:12px;line-height:1.5;color:#a12c40;padding:9px 12px;border:1px solid #eccbd2;border-radius:6px;background:#fff4f6}.date-fields input[aria-invalid=true]{border-color:#ac3b50}
@media(max-width:760px){.navigation{grid-template-columns:repeat(4,minmax(0,1fr))}.nav-item{gap:5px;font-size:11px;padding-inline:3px}.nav-item .icon{width:16px;height:16px}.journal-dates{padding:12px;gap:12px}.period-label{font-size:11px}.date-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:10px}.date-fields input{width:100%;font-size:16px;min-height:40px;padding:8px 6px}.date-fields label{font-size:11px}.date-fields .button,.date-fields .text-button{min-height:38px;font-size:12px}.date-filter-error{font-size:12px}}
/* Authentication and owner workspace share the dashboard's type and surfaces. */
.auth-shell{display:grid;place-items:center;min-height:100dvh;padding:32px 16px;background:radial-gradient(ellipse at top,#edf4ff,#f8fafd 65%)}.auth-card{width:min(460px,100%);padding:32px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 40px #1639590a}.auth-card>img{width:100px;height:85px;object-fit:contain;display:block;margin-bottom:24px}.auth-kicker{font-size:10px;letter-spacing:.12em;color:#6380a4}.auth-card h1{font-size:25px;line-height:1.25;margin:9px 0 12px;letter-spacing:-.025em}.auth-card>p{font-size:13px;line-height:1.6;color:var(--muted)}.auth-card .modal-body{padding:24px 0 0;gap:18px}.auth-card .button{min-height:44px;font-size:14px}.auth-card>a{display:block;margin-top:20px;font-size:13px;color:#1268c5}.admin-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}.admin-tabs .tab-button{border:1px solid var(--line);background:#fff;font-size:13px;padding:10px 16px}.admin-tabs .tab-button.selected{color:#075cc5;border-color:#bed5f3;background:#edf4ff}.admin-content{min-height:250px}.admin-user-list{display:grid}.admin-user{display:flex;align-items:center;gap:16px;padding:18px 20px;border-top:1px solid var(--line)}.admin-user>div{min-width:0;flex:1}.admin-user strong{display:block;font-size:14px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.admin-user small{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.admin-user .pill{display:inline-block;margin-top:7px;font-size:10px}.admin-user>.button{flex-shrink:0;font-size:12px}.admin-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;flex-shrink:0;background:#edf3fc;color:#3c6a9d;font-size:17px;font-weight:500}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;border:1px solid var(--line);padding:18px;border-radius:8px;margin:0}.permission-grid legend{font-size:12px;color:#445c78;padding:0 6px}.permission-grid label{display:flex;gap:9px;align-items:flex-start;font-weight:400;line-height:1.5!important}.permission-grid input{width:17px;height:17px;margin:1px 0 0;accent-color:#0868db;flex-shrink:0}.report-panel .modal-body{padding:22px}.report-period{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.report-panel .modal-body>.button{justify-self:start;min-width:160px}.report-panel input,.report-panel select{width:100%;min-width:0}.migration-panel{padding:20px;margin-top:20px}.migration-panel h2{font-size:16px}.migration-panel p{font-size:13px;line-height:1.6;color:var(--muted);margin:10px 0 16px}.admin-user .button.danger-ghost{border:1px solid #efd5dc}
@media(max-width:760px){.auth-shell{padding:20px 12px}.auth-card{padding:24px 20px;border-radius:10px}.auth-card h1{font-size:23px}.auth-card .modal-body input{font-size:16px!important}.navigation:has(a[href="#admin"]){grid-template-columns:repeat(3,minmax(0,1fr))}.permission-grid{grid-template-columns:1fr;padding:14px;gap:12px}.admin-tabs{gap:5px}.admin-tabs .tab-button{flex:1;padding:10px 8px;font-size:12px}.admin-user{padding:16px 12px;gap:10px;flex-wrap:wrap}.admin-user strong{font-size:13px}.admin-user small{font-size:12px}.admin-user>.button{margin-inline-start:auto;min-height:36px}.admin-avatar{width:32px;height:32px;font-size:14px}.report-period{grid-template-columns:1fr;gap:14px}.report-panel .modal-body{padding:18px 12px}.report-panel .form-grid{grid-template-columns:1fr}.report-panel input,.report-panel select{font-size:16px!important}.report-panel .modal-body>.button{width:100%}.migration-panel{padding:16px}}



.footer-actions{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}.document-actions{flex-wrap:wrap}
@media(max-width:600px){.footer-actions{gap:12px}.document-actions>.button{width:100%}}

#toast button{margin-inline-start:12px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:6px;padding:6px 10px;font:inherit;cursor:pointer}

.language-bar{display:flex;justify-content:flex-end;margin-bottom:14px}.language-switch{display:inline-flex;border:1px solid #dbe5ef;border-radius:8px;padding:3px;background:#fff;gap:3px}.language-switch button{border:0;background:transparent;color:#53657d;border-radius:5px;padding:7px 11px;min-height:34px;font:600 12px/1.3 Inter,sans-serif;cursor:pointer}.language-switch button[aria-pressed=true]{background:#0877ee;color:#fff}.language-switch button:focus-visible{outline:2px solid #075cb8;outline-offset:2px}
html[lang=en] .quick-actions strong{font-size:20px}html[lang=en] .dashboard-tools{flex-wrap:wrap}html[lang=en] .tab-button{white-space:normal}html[lang=en] .modal-actions{flex-wrap:wrap}
@media(max-width:600px){.language-bar{margin-bottom:10px}html[lang=en] .quick-actions strong{font-size:16px}html[lang=en] .journal-columns{font-size:10px}}.language-bar{min-height:40px}

.month-picker{position:relative}.month-picker .localized-month{position:absolute;inset-inline-start:38px;inset-inline-end:32px;top:50%;transform:translateY(-50%);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600;color:var(--ink);background:#fff}.month-picker input[type=month]{color:transparent;caret-color:transparent}.month-picker input[type=month]::-webkit-datetime-edit{opacity:0}.brand small{white-space:normal;line-height:1.4}html[lang=en] .dashboard-head .month-picker input{width:150px}
@media(max-width:600px){.comparison-months .month-picker .localized-month{inset-inline-start:8px;font-size:12px}}

label:has(>.localized-date-input){position:relative}.localized-date-text{position:absolute;inset-inline-start:12px;inset-inline-end:36px;bottom:11px;pointer-events:none;font-size:13px;font-weight:400;line-height:20px;color:#203b5a;background:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.localized-date-input:not(:focus){color:transparent!important}.localized-date-input:not(:focus)::-webkit-datetime-edit{opacity:0}.localized-date-input:focus+.localized-date-text{visibility:hidden}

/* Owner review: fixed brand and a simpler stock table. */
.header .brand-image{width:52px;height:46px;object-fit:contain;flex-shrink:0;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;filter:none}.header .brand{gap:10px}.header .brand small{font-size:11px;white-space:normal;line-height:1.35}.stock-panel .table-scroll table{min-width:0;width:100%;table-layout:fixed}.stock-panel td:first-child strong{overflow-wrap:anywhere}.stock-panel th:first-child{width:35%}.stock-panel th:nth-child(2){width:20%}.stock-panel th:nth-child(3){width:27%}.stock-panel th:nth-child(4){width:18%}
@media(max-width:760px){.header .brand-image{width:48px;height:42px}.stock-panel th:first-child,.stock-panel td:first-child{width:62%;min-width:0}.stock-panel th:nth-child(3),.stock-panel td:nth-child(3){width:38%}.stock-panel th:nth-child(2),.stock-panel td:nth-child(2),.stock-panel th:nth-child(4),.stock-panel td:nth-child(4){display:none}}

.auth-shell{position:relative}.auth-language{position:absolute;top:20px;inset-inline-end:24px}.auth-card{margin-top:50px}.admin-user{flex-wrap:wrap}.admin-user>div{min-width:0;overflow-wrap:anywhere}.report-period{flex-wrap:wrap}

/* One global settings control beside the language switch. */
.language-bar{align-items:center;gap:10px}.workspace-settings{width:40px;height:40px;flex-shrink:0;border:1px solid #dbe5ef;border-radius:8px;background:#fff;color:#53657d}.workspace-settings .icon{width:19px;height:19px}.footer{justify-content:flex-end}
@media(hover:hover){.workspace-settings:hover{background:#edf4ff;border-color:#bed6f7;color:#075dc5}}

/* Selected concept 10: restrained brand line and a light diagonal signature. */
.workspace-bar{position:relative;isolation:isolate;min-height:58px;padding:8px 12px;gap:12px;margin-bottom:20px;border:1px solid #dce8f5;border-radius:8px;background:linear-gradient(100deg,#f0f6ff,#fff);overflow:hidden}.workspace-bar::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:190px;top:-40px;width:250px;height:150px;opacity:.14;background:repeating-linear-gradient(135deg,transparent 0,transparent 17px,#589ce4 18px,#589ce4 19px,transparent 20px);mask-image:linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent)}.workspace-identity{flex:1;min-width:0;color:#30547a}.workspace-identity>div{font-size:14px;line-height:1.4;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-identity strong{font-weight:650}.workspace-identity>div>span{font-weight:400;color:#7899be}.workspace-identity small{display:block;margin-top:3px;color:#7188a4;font-size:10px;line-height:1.4}.workspace-date{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#607c9c;font-size:11px}.workspace-date .icon{width:15px;height:15px}.workspace-date>span::first-letter{text-transform:uppercase}.workspace-profile{display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;margin-left:4px;border:1px solid #dce6f4;border-radius:50%;background:#e7effb;color:#2b66ac;font-size:12px;font-weight:600}.workspace-profile .icon{width:18px;height:18px}.workspace-bar .language-switch{flex-shrink:0}.workspace-bar .language-switch button{min-height:30px;padding:6px 9px;font-size:11px}.workspace-bar .workspace-settings{width:36px;height:36px;min-height:36px}
@media(max-width:1100px) and (min-width:761px){.workspace-bar{gap:9px}.workspace-identity>div{font-size:12px}.workspace-date{font-size:10px;gap:6px}}
@media(max-width:600px){.workspace-bar{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;gap:10px 9px;padding:12px;margin-bottom:18px}.workspace-identity{grid-column:1/3;grid-row:1}.workspace-identity>div{font-size:14px}.workspace-profile{grid-column:3;grid-row:1;margin:0;justify-self:center}.workspace-date{grid-column:1;grid-row:2;font-size:10px;gap:6px}.workspace-bar .language-switch{grid-column:2;grid-row:2;justify-self:end}.workspace-bar .workspace-settings{grid-column:3;grid-row:2}.workspace-bar::before{right:30px;top:-45px;opacity:.12}.workspace-bar .language-switch button{min-height:28px}}

.admin-user-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-left:auto}.delete-user-identity{display:grid;gap:5px;padding:13px 15px;border:1px solid var(--line);border-radius:7px;background:#f8fafd;overflow-wrap:anywhere}.delete-user-identity span{font-size:12px;color:var(--muted)}.button.danger{background:#c93549;border:1px solid #c93549;color:#fff}.button.danger:disabled{opacity:.55}.button.danger:focus-visible{outline:2px solid #8c1f30;outline-offset:3px}
@media(hover:hover){.button.danger:not(:disabled):hover{background:#b5263a;border-color:#b5263a}}

/* Page headings live in the shared brand strip; operation controls stay below. */
.workspace-identity h1{margin:0;font-size:20px;font-weight:650;line-height:1.25;letter-spacing:-.5px;color:#183858}.workspace-identity p{margin:4px 0 0;font-size:11px;line-height:1.45;color:#6a819d;overflow-wrap:anywhere}.workspace-bar{min-height:66px}.page-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:18px;min-height:0}.dashboard-head.page-actions{flex-direction:row}.dashboard-head.page-actions .dashboard-tools{margin-left:auto}.page-actions .banner-button{margin:0}.dashboard-widgets:has(.widget-placeholder){grid-template-columns:repeat(var(--widget-count,4),minmax(0,1fr))}.dashboard-widgets:has(>.dashboard-widget:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:761px) and (max-width:1300px){.dashboard-widgets:has(.widget-placeholder),.dashboard-widgets:has(>.dashboard-widget:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-widgets:has(.widget-placeholder),.dashboard-widgets:has(>.dashboard-widget:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-identity h1{font-size:19px}.workspace-identity p{font-size:10px}.page-actions{margin-bottom:14px}.dashboard-head.page-actions .dashboard-tools{width:100%;margin:0}}
.stock-product-name{display:flex;align-items:center;gap:8px}.stock-product-name strong{min-width:0}.stock-product-name .icon-button{flex-shrink:0}

.stock-panel .stock-product-size{white-space:normal;overflow-wrap:anywhere}.stock-product-size em{font-style:italic}

.stock-panel th{padding:10px 16px}.stock-panel td{padding:8px 16px}.stock-panel th:first-child{width:43%}.stock-panel th:nth-child(2){width:17%}.stock-panel th:nth-child(3){width:24%}.stock-panel th:nth-child(4){width:16%}.stock-product-name{gap:6px}.stock-product-name .icon-button{width:28px;height:28px;min-height:28px;padding:5px;border-color:transparent;background:transparent}.stock-product-name .icon-button .icon{width:16px;height:16px}.stock-panel .stock-product-details{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:2px;line-height:1.4;overflow-wrap:anywhere}.stock-product-details>*{min-width:0;max-width:100%}.stock-product-size{font-style:italic}
@media(max-width:760px){.stock-panel th,.stock-panel td{padding:8px 10px}.stock-panel th:first-child{width:66%}.stock-panel th:nth-child(3){width:34%}.stock-product-name .icon-button{width:32px;height:32px;min-height:32px}}

.stock-name-edit{display:block;min-width:0;max-width:100%;border:0;background:transparent;padding:4px 0;margin:-4px 0;font:inherit;font-weight:500;color:var(--ink);text-align:start;line-height:inherit;overflow-wrap:anywhere;cursor:pointer;border-radius:2px}.stock-name-edit:hover,.stock-name-edit:focus-visible{text-decoration:underline;text-underline-offset:3px}.stock-name-edit:focus-visible{outline:2px solid #1677ed;outline-offset:3px}

.history-panel .document-body{padding:10px 16px 12px}.document-body .document-context{padding:0 0 5px;gap:8px}.document-body .document-line{padding:7px 0;gap:8px;grid-template-columns:16px minmax(0,1fr) auto}.document-body .document-line>div>small{margin-top:2px}.document-body .document-note{padding-top:6px;line-height:1.5}.document-body .document-actions{justify-content:flex-end;gap:6px;margin-top:6px;padding-top:8px}.document-actions>.icon-button{width:32px;height:32px;min-height:32px;padding:7px;border-radius:5px;box-shadow:none}.document-actions>.icon-button>.icon{width:16px;height:16px}@media(max-width:760px){.history-panel .document-body{padding:8px 12px 10px}.document-actions>.icon-button{width:36px;height:36px;min-height:36px}}

/* Match the expanded partner label to the badge in the journal row. */
.document-body .document-context {
  display: inline-flex;
  box-sizing: border-box;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f0eaff;
  color: #5022bf;
}

.document-card:has(> .document-toggle .doc-type.in) .document-context {
  background: #e2edff;
  color: #0951b0;
}

.document-body .document-context > span,
.document-body .document-context > strong {
  color: inherit;
}

.order-archive .panel-toolbar {
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
}
.order-upload {
  display: grid;
  gap: 5px;
  max-width: 100%;
  font-weight: 600;
}
.order-upload input { width: 100%; font: inherit; font-weight: 400; }
.order-upload input::file-selector-button {
  margin-inline-end: 8px;
  padding: 7px 10px;
  border: 1px solid #c7d8ed;
  border-radius: 6px;
  background: #edf4ff;
  color: #0951b0;
  font: inherit;
}
.order-archive summary {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.order-archive summary time { margin-inline-start: 12px; color: var(--muted); font-size: 12px; }
.order-archive details[open] > summary { background: #edf4ff; }
.order-archive-empty, .order-file-content { padding: 12px 16px 16px; }
.order-sheet + .order-sheet { margin-top: 18px; }
.order-sheet h2 { margin: 0 0 7px; font-size: 13px; }
.order-sheet-scroll { overflow: auto; max-height: 450px; }
.order-sheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-sheet td { min-width: 55px; padding: 6px 9px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.order-sheet tr:nth-child(even) { background: #f5f8fc; }

.history-panel .document-body { container-type: inline-size; }
.document-body .document-line {
  padding-block: 5px;
  font-size: 11px;
  border-bottom: 1px solid #e9eff6;
}
.document-body .document-line > div > strong { font-size: 11px; }
.document-body .document-line > div > small { font-size: 10px; }

@container (min-width: 640px) {
  .document-lines:has(> .document-column + .document-column) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .document-column + .document-column {
    border-inline-start: 1px solid #dce5f0;
    padding-inline-start: 16px;
  }
}

.order-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#order-file-form .order-sheet input { min-width: 90px; }

.stock-report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stock-print-report { display: none; }

@media print {
  @page stock-balances { margin: 0; }
  body:has(> .stock-print-report) { display: block; margin: 0; background: white; color: black; }
  body:has(> .stock-print-report) > :not(.stock-print-report) { display: none !important; }
  .stock-print-report { page: stock-balances; display: block; padding: 8mm 10mm; font: 10pt/1.35 sans-serif; }
  .stock-print-report h1 { font-size: 16pt; margin-bottom: 4pt; }
  .stock-print-report table { width: 100%; border-collapse: collapse; margin-top: 12pt; }
  .stock-print-report thead { display: table-header-group; }
  .stock-print-report tr { break-inside: avoid; }
  .stock-print-report :is(th, td) { padding: 5pt; border: 1px solid #aaa; color: black; overflow-wrap: anywhere; }
  .stock-print-report :is(th, td):last-child { text-align: right; }
}
