:root{--bg:#f7f8fa;--paper:#fff;--ink:#202c29;--muted:#84908b;--line:#e9edeb;--green:#275d4e;--green-dark:#174738;--soft:#eff5f1;--shadow:0 6px 24px #20372b05;font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{transition:background .18s,color .18s,box-shadow .18s,transform .18s}button:disabled{cursor:wait;opacity:.5}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #8abb9f;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:31px;letter-spacing:-1.1px;line-height:1.35;font-weight:650}h2{font-size:17px;font-weight:650;letter-spacing:-.35px}h3{font-size:15px;font-weight:600}small{font-size:12px;color:var(--muted)}.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 20px 14px;z-index:20}.brand{display:flex;align-items:center;font-size:35px;font-weight:750;letter-spacing:-1.8px;margin:0 12px 34px}.brand-dot{color:#609d7b}.brand-mark{position:relative;width:32px;height:37px;font-size:0;margin-right:10px}.brand-mark:before,.brand-mark:after{content:'';position:absolute;width:18px;height:28px;border:6px solid var(--green);border-radius:20px;transform:rotate(35deg);top:4px;left:0}.brand-mark:after{left:11px;border-color:#99bca1}.workspace{border:1px solid var(--line);border-radius:10px;padding:12px 10px;display:flex;align-items:center;gap:9px;margin-bottom:30px}.workspace-avatar{width:32px;height:34px;border-radius:8px;display:grid;place-items:center;background:#ecf1e9;color:#56765e;font-size:13px;font-weight:650}.workspace b{display:block;font-size:12px;font-weight:600}.workspace small{display:block;font-size:10px;margin-top:5px;white-space:nowrap}.workspace-chevron{margin-left:auto;color:var(--muted)}.workspace-chevron .icon{width:13px}.nav-label{font-size:10px;letter-spacing:1.25px;color:#9aa39f;margin:0 14px 12px;font-weight:600}nav{display:grid;gap:5px}.nav-item{background:none;border:0;padding:13px 14px;border-radius:7px;display:flex;align-items:center;gap:12px;width:100%;text-align:left;color:#78827f;font-size:13px;font-weight:500}.nav-item:hover{background:#f5f7f5;color:var(--green)}.nav-item.selected{background:#eaf2ed;color:var(--green);font-weight:650}.nav-item small{margin-left:auto;background:#dce9df;color:var(--green);min-width:21px;padding:2px 5px;border-radius:4px;text-align:center;font-size:10px}.sidebar-assistant{margin:44px 1px 20px;padding:20px 16px 15px;background:linear-gradient(135deg,#f0f5ee,#f5f7f0);border-radius:10px;position:relative;overflow:hidden}.sidebar-assistant:after{content:'';width:100px;height:100px;border:1px solid #dae5d6;border-radius:50%;position:absolute;right:-65px;top:16px;box-shadow:0 0 0 14px #e7eee155,0 0 0 30px #e7eee133}.assistant-orb{background:#dfeadf;color:var(--green);width:33px;height:33px;border-radius:10px;display:grid;place-items:center;margin-bottom:14px}.sidebar-assistant h3{font-size:13px;margin-bottom:8px}.sidebar-assistant p{font-size:11px;line-height:1.7;color:#849081}.sidebar-chat{padding:0!important;margin-top:17px;font-size:11px!important;flex-direction:row-reverse;color:var(--green);border:0!important;background:none;justify-content:space-between;width:100%}.sidebar-chat .icon{width:15px}.sidebar-bottom{margin-top:auto}.profile{display:flex;align-items:center;gap:11px;width:100%;border:0;border-top:1px solid var(--line);background:none;text-align:left;margin-top:16px;padding:18px 8px 3px}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#f0e5d6;color:#9b7b50;font-weight:650;font-size:13px}.avatar.small{width:29px;height:29px;font-size:11px}.profile b{font-size:12px}.profile small{display:block;font-size:10px;margin-top:3px}.online-dot{width:6px;height:6px;border-radius:50%;background:#639777;margin-left:auto}.main-shell{margin-left:244px}.topbar{height:78px;background:#ffffffb3;border-bottom:1px solid var(--line);padding:0 39px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:11px;color:#929b97;display:flex;gap:15px}.breadcrumb b{font-weight:500;color:#56645d}.topbar-right{display:flex;align-items:center;gap:23px;font-size:11px;color:#87918b}.local-pill{display:flex;align-items:center;gap:7px}.local-pill i{width:5px;height:5px;background:#6c957b;border-radius:50%}.date{border-left:1px solid var(--line);padding-left:22px}main{max-width:1570px;margin:auto;padding:36px 39px 22px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.6px;color:#84958a;display:block;margin-bottom:9px}.page-heading p{margin-top:8px;color:#89938e;font-size:12px}.greeting{color:#aabf85;font-size:32px;display:inline-block;margin-left:6px;font-weight:400}.heading-actions{display:flex;gap:9px}.btn{border:1px solid transparent;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;font-size:11px;font-weight:600;white-space:nowrap;min-height:37px}.btn .icon{width:15px;height:15px}.primary{background:var(--green);color:#fff;border-color:var(--green);box-shadow:0 2px 3px #173c2310}.primary:hover{background:var(--green-dark);transform:translateY(-1px)}.secondary{background:#fff;border-color:#dfe5e1;color:#58655e}.secondary:hover{background:#f3f6f3;border-color:#bccdc1}.text-button{border:0;background:none;color:var(--green);font-size:11px;display:inline-flex;align-items:center;gap:7px;font-weight:550;padding:4px 0}.text-button .icon{width:14px;height:14px}.text-button:hover{text-decoration:underline}.onboarding{background:#f0f4e9;border:1px solid #e4eadc;border-radius:9px;display:flex;align-items:center;gap:14px;padding:17px 20px;margin-bottom:25px}.onboarding-icon{height:35px;width:35px;display:grid;place-items:center;border-radius:50%;background:#e2ead7;color:#6c8659}.onboarding strong{font-size:12px;font-weight:600;color:#526546}.onboarding p{font-size:10px;line-height:1.7;color:#89917e;margin-top:5px}.onboarding .text-button{margin-left:auto;color:#63774d;white-space:nowrap;font-size:10px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:19px 20px 18px;box-shadow:var(--shadow);min-height:139px}.stat-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#85918a;font-weight:500}.stat-label>span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#f6f8f6;color:#8b9b8d}.stat-label .icon{width:16px;height:16px}.stat>strong{display:block;font-size:29px;letter-spacing:-.7px;font-weight:600;margin:9px 0 10px;font-variant-numeric:tabular-nums}.stat>strong small{font-weight:400;margin-left:6px;font-size:11px;letter-spacing:0}.stat p{font-size:10px;color:#98a09a}.stat.accent{background:#f1f6f1;border-color:#dce8dd}.stat.accent>strong{color:#376a4e}.stat.accent .stat-label>span{background:#e4eee4;color:#6e9a79}.panel{background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:23px 23px 20px;gap:15px}.section-heading p{font-size:11px;color:#929b95;margin-top:6px}.count{font-size:10px;background:#f3f5f2;color:#8b958c;padding:3px 7px;border:1px solid #e8ede6;border-radius:5px;vertical-align:middle;margin-left:6px}.table-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 23px;padding-bottom:18px;gap:14px}.tabs{display:flex;padding:3px;background:#f4f6f4;border-radius:6px;gap:2px}.tabs button{border:0;background:none;color:#909991;padding:7px 10px;font-size:10px;border-radius:4px;white-space:nowrap}.tabs button.active{background:white;color:#365a45;box-shadow:0 1px 4px #1c332214;font-weight:600}.search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;padding:7px 10px;max-width:220px;color:#a7afa9}.search .icon{height:14px;width:14px}.search input{border:0;outline:none;min-width:0;width:100%;background:transparent;font-size:10px;color:var(--ink)}.search input::placeholder{color:#a0aaa2}.table-scroll{overflow-x:auto;min-height:80px}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:9px;font-weight:500;letter-spacing:.15px;color:#99a19a;padding:12px 16px;background:#fafbf9;border-top:1px solid #f0f2ef;border-bottom:1px solid #f0f2ef}th:first-child,td:first-child{padding-left:23px}th:last-child,td:last-child{padding-right:23px}td{padding:17px 16px;font-size:11px;border-bottom:1px solid #f0f2ee;color:#617066}td strong,td b{font-weight:550;color:#38473d}td small{font-size:9px;color:#a0a79f}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdfefd}.product-name{display:flex;align-items:center;gap:13px;border:0;background:none;padding:0;text-align:left}.product-name b{font-size:11px;display:block;margin-bottom:7px}.product-name small{display:block;font-size:9px;color:#a0a79f;letter-spacing:.4px}.product-art{width:53px;height:53px;flex-shrink:0;display:grid;place-items:center;border-radius:8px;background:#f1f4ed;overflow:hidden}.product-art svg{width:100%;height:100%}.product-art.rack{background:#f8f4ed}.product-art.mat{background:#f3f1eb}.product-art.large{width:88px;height:88px;border-radius:15px}.badges{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.badge{padding:5px 8px;border-radius:5px;font-size:9px;font-weight:500;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;background:#f1f4ef;color:#6e8366}.badge i{width:4px;height:4px;background:currentColor;border-radius:50%}.badge.neutral{background:#f5f3ee;color:#a49677}.badge.transit{background:#edf3f9;color:#6888aa}.badge.ready{background:#fff6e6;color:#b19352}.badge.fba{background:#e8f5eb;color:#488c60}.badge.incoming{background:#f3eef8;color:#927aab}.icon-button{background:none;border:0;padding:6px;color:#a3ada5;display:inline-flex;align-items:center;justify-content:center;border-radius:5px}.icon-button .icon{height:16px;width:16px}.icon-button:hover{background:#edf3ee;color:var(--green)}.table-footer{padding:15px 23px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#a0a89f;font-size:9px}.table-footer span:last-child{display:flex;gap:6px;align-items:center}.table-footer .icon{height:12px;width:12px}.cost-wrap{position:relative;cursor:help;display:inline-flex;align-items:center;gap:6px;padding:6px 0}.cost-wrap>.icon{height:12px;width:12px;color:#bbc2bb}.cost-tip{display:none;position:absolute;z-index:40;bottom:100%;right:-30px;background:#203e30;color:#f2f7f1;box-shadow:0 8px 25px #16332024;border-radius:8px;padding:15px;min-width:240px;white-space:normal;font-size:11px}.cost-wrap:hover .cost-tip,.cost-wrap:focus .cost-tip{display:block}.cost-tip>b{display:block;color:white;margin-bottom:12px}.cost-tip span{display:flex;justify-content:space-between;gap:20px;margin-top:8px;font-size:10px}.cost-tip strong{color:#fff;font-size:10px}.tip-total{border-top:1px solid #ffffff30;padding-top:9px}.bottom-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-top:23px}.bottom-grid .section-heading{padding-bottom:15px}.bottom-grid h2{font-size:14px}.bottom-grid .section-heading p{font-size:10px}.bottom-grid .text-button{font-size:9px}.flow{display:grid;grid-template-columns:repeat(4,1fr);padding:15px 20px 24px;gap:8px}.flow-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.flow-step:not(:last-child):after{content:'';position:absolute;top:20px;left:calc(50% + 29px);width:calc(100% - 50px);border-top:1px dashed #dfe7dd}.flow-icon{border:1px solid #e7ede4;background:#f3f7f0;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#8da17d;position:relative;z-index:1}.flow-icon.transit{background:#eef4f8;color:#84a0b1;border-color:#e6edf2}.flow-icon.fba{background:#eef6ee;color:#7caa83}.flow-icon .icon{width:18px;height:18px}.flow-step b{font-size:20px;font-weight:500;line-height:1.3}.flow-step b small{font-size:9px;font-weight:400;margin-left:4px;color:#a2aaa0}.flow-step>span:last-child{font-size:9px;color:#899581}.muted-note{padding:12px 22px;background:#fcfdfb;border-top:1px solid #f0f3ee;font-size:9px;color:#a0ab99;border-radius:0 0 10px 10px;display:flex;align-items:center;gap:7px}.muted-note .icon{width:12px;height:12px}.empty-activity{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 12px 25px}.empty-activity>span{background:#f5f7f2;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;color:#91a783;margin-bottom:10px}.empty-activity b{font-size:11px;font-weight:500;color:#7b8b73}.empty-activity p{font-size:10px;line-height:1.8;color:#a3ac9b;margin-top:6px}.activity-row{display:flex;align-items:flex-start;gap:10px;padding:10px 23px}.activity-row:last-child{padding-bottom:20px}.activity-icon{border-radius:50%;width:27px;height:27px;display:grid;place-items:center;background:var(--soft);color:#89a184;flex-shrink:0}.activity-icon .icon{width:13px;height:13px}.activity-row p{font-size:11px;line-height:1.65;color:#63725f;margin-bottom:3px}.activity-row small{font-size:9px;color:#a3ac9c}.footnote{display:flex;align-items:center;gap:5px;font-size:9px;color:#a7afa4;margin-top:22px}.footnote .icon{width:12px;height:12px}.footnote>span{margin-left:auto}.floating-assistant{position:fixed;bottom:23px;right:25px;background:var(--green);color:#fff;border:1px solid #43755c;width:44px;height:44px;border-radius:14px;box-shadow:0 5px 15px #20453226;z-index:25}.floating-assistant:hover{transform:translateY(-3px)}.empty{text-align:center;padding:45px!important;color:#9aa594;white-space:normal}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:24px;padding:25px}.summary-strip>div{padding:0 20px;border-right:1px solid var(--line)}.summary-strip>div:last-child{border:0}.summary-strip small{display:block;font-size:11px;margin-bottom:10px}.summary-strip strong{font-size:26px;font-weight:600}.block{display:block;max-width:300px;white-space:normal;margin-top:7px;line-height:1.7}.page-note{font-size:11px;color:#8b9788;line-height:1.8;margin-top:16px}.shipment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.shipment-card{padding:22px}.shipment-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.shipment-title h3{font-size:13px;line-height:1.6;margin-bottom:4px}.stock-lines{margin:20px 0}.stock-lines>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;font-size:11px;color:#8c9988;border-bottom:1px solid var(--line)}.stock-lines b{font-weight:500;color:#5d6c58}.tracking{font-size:10px;color:#98a18f;line-height:1.8;overflow-wrap:anywhere;margin-bottom:15px}.tracking b{font-weight:500}.shipment-card>.text-button{margin-top:12px;display:flex}.explanation{margin-top:24px;display:flex;align-items:flex-start;gap:12px;background:#eff3ec;border-radius:9px;padding:20px;font-size:12px;color:#6b7c60}.explanation .icon{margin-top:2px}.explanation p{line-height:1.9;font-size:11px;margin-top:6px;color:#8b9880}.report-total{padding:24px;display:flex;justify-content:space-between;align-items:center;background:#f7faf4;border-top:1px solid var(--line);font-size:12px;color:#607456}.report-total small{display:block;margin-top:6px;font-size:10px}.report-total strong{font-size:20px}.positive{color:#46815c}.negative{color:#b7635d}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px}.settings-card{padding:25px}.settings-card h2{margin-bottom:12px}.settings-card p{font-size:12px;line-height:1.9;color:#84917d;margin-bottom:18px}.settings-card .page-note{font-size:10px;margin-bottom:0}.modal-backdrop,.chat-backdrop{position:fixed;inset:0;background:#192c2340;backdrop-filter:blur(4px);z-index:80;display:flex;align-items:center;justify-content:center;padding:25px;animation:fade .18s ease}.modal{background:white;padding:34px;border-radius:17px;width:490px;max-width:100%;max-height:90dvh;overflow-y:auto;position:relative;box-shadow:0 20px 80px #122d2333;animation:rise .22s ease}.modal.wide{width:730px}.modal-close{position:absolute;top:17px;right:17px}.modal>h2{font-size:23px;padding-right:20px;margin-bottom:12px}.modal>p{font-size:12px;color:#899581;line-height:1.8;margin-bottom:20px}.modal-title{display:flex;align-items:center;gap:20px;margin-bottom:22px;padding-right:15px}.modal-title h2{font-size:21px;line-height:1.4}.modal-title p{font-size:11px;color:#98a08e;margin-top:7px}.modal-symbol{width:50px;height:50px;display:grid;place-items:center;background:var(--soft);border-radius:12px;color:var(--green)}.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);padding:17px;background:#f5f8f2;border-radius:9px;gap:10px}.detail-summary small{font-size:10px;display:block;margin-bottom:6px}.detail-summary b{font-size:19px;font-weight:550}.detail-badges{margin:15px 0 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}form label,.settings-card label{font-size:11px;font-weight:500;display:flex;flex-direction:column;gap:8px;margin-bottom:17px;color:#72806a}form input,form select,.settings-card select{width:100%;height:41px;background:#fff;border:1px solid #dfe6d9;border-radius:7px;padding:9px 11px;color:#42533b;font-size:12px;min-width:0}input:read-only{background:#f7f9f4;color:#9ba692}input::placeholder{color:#b0b8a8}.form-hint{font-size:10px;line-height:1.9;color:#9ba690;margin:0 0 15px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;flex-wrap:wrap}.form-error{font-size:12px;color:#b45a4e;line-height:1.7}.cost-detail{margin-top:25px;padding-top:22px;border-top:1px solid var(--line)}.cost-detail h3{font-size:13px;margin-bottom:15px}.cost-detail>div{display:flex;gap:20px;padding:9px 0;border-bottom:1px solid #f1f3ed;font-size:11px}.cost-detail b{margin-left:auto;font-weight:500}.cost-detail small{min-width:85px;text-align:right;font-size:10px}.cost-detail>p{color:#a0ac97;font-size:11px}.chat-backdrop{padding:0;justify-content:flex-end}.chat-panel{height:100dvh;width:450px;max-width:100%;background:#fafcf8;box-shadow:-15px 0 55px #15332318;display:flex;flex-direction:column;animation:slide .25s ease}.chat-heading{display:flex;align-items:center;gap:12px;padding:24px;border-bottom:1px solid #e5ecdf;background:white}.chat-heading .assistant-orb{margin:0;width:37px;height:37px}.chat-heading h2{font-size:16px}.chat-heading small{font-size:10px;display:block;margin-top:5px}.chat-heading>.icon-button{margin-left:auto}.chat-messages{flex:1;overflow-y:auto;padding:25px}.chat-welcome{text-align:center;padding:23px 0 28px}.spark-large{height:58px;width:58px;display:grid;place-items:center;background:#edf4e6;color:#81a36c;border-radius:19px;margin:0 auto 21px}.spark-large .icon{width:29px;height:29px}.chat-welcome h3{font-size:24px;line-height:1.4;letter-spacing:-.7px;color:#47673b;font-weight:550}.chat-welcome p{font-size:11px;color:#96a389;line-height:1.9;margin:13px 0 23px}.chat-examples{display:flex;flex-direction:column;gap:8px}.chat-examples button{display:flex;align-items:center;gap:10px;background:white;border:1px solid #e3eada;padding:12px;border-radius:8px;color:#7f9470;font-size:11px;text-align:left}.chat-examples .icon{height:14px;width:14px}.chat-examples button:hover{background:#f1f6ec}.message{margin:14px 0;padding:15px;border-radius:11px;background:white;border:1px solid #e8eddf;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.message small{display:block;font-size:9px;font-weight:600;margin-bottom:5px;color:#92a183}.message.user{background:#e9f0e2;margin-left:33px;border-color:#e0e9d6;color:#49653b}.message.assistant{margin-right:15px}.confirmation{background:#fff;border:1px solid #b8d0a6;border-radius:11px;padding:18px}.confirmation>small{font-size:9px;letter-spacing:1px;color:#8ca678}.confirmation p{font-size:12px;line-height:1.8;margin:12px 0 17px;color:#637c52}.confirmation>div{display:flex;gap:8px;justify-content:flex-end}.chat-bottom{padding:20px;border-top:1px solid #e7eddf;background:#fff}.chat-bottom form{position:relative}.chat-bottom textarea{border:1px solid #dbe5d0;border-radius:10px;resize:none;padding:14px 53px 14px 14px;line-height:1.7;width:100%;font-size:12px;background:#fbfcf9;color:#526845}.send-button{position:absolute;right:9px;bottom:12px;border:0;color:#fff;background:var(--green);border-radius:7px;width:32px;height:32px}.send-button .icon{width:16px;height:16px}.chat-bottom>small{font-size:8px;color:#a1ae96;text-align:center;display:block;margin-top:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,25px);background:#244b39;color:#fff;font-size:12px;padding:14px 24px;border-radius:9px;z-index:120;opacity:0;pointer-events:none;transition:.22s;box-shadow:0 5px 30px #1a321926;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.boot{padding:15vh 25px;text-align:center;color:var(--green)}@keyframes fade{from{opacity:0}to{opacity:1}}@keyframes rise{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes slide{from{transform:translateX(40px);opacity:0}to{transform:translateX(0);opacity:1}}
@media(min-width:1600px){:root{font-size:15px}.sidebar{width:260px}.main-shell{margin-left:260px}main{padding:44px 50px}.topbar{padding:0 50px}.product-name b{font-size:13px}td{padding-top:22px;padding-bottom:22px;font-size:12px}.stat{min-height:155px}.stat-label{font-size:12px}.stat>strong{margin-top:15px}.section-heading{padding:26px}.onboarding{padding:20px}.onboarding p{font-size:11px}.sidebar-assistant{margin-top:65px}.bottom-grid{margin-top:28px}.flow{padding:26px 20px 30px}}
@media(max-width:1200px){.sidebar{width:210px;padding-left:15px;padding-right:15px}.main-shell{margin-left:210px}.topbar{padding:0 25px}main{padding:28px 25px}.stats{gap:11px}.stat{padding:16px}.stat>strong{font-size:24px}.stat-label{font-size:10px}.stat p{font-size:9px}.workspace{padding:10px 7px;gap:7px}.workspace small{font-size:9px}.workspace-avatar{width:28px}.workspace-chevron{display:none}.brand{margin-left:9px}.shipment-grid,.settings-grid{grid-template-columns:repeat(2,1fr)}.page-heading h1{font-size:27px}.onboarding .text-button{font-size:9px}td{padding-left:11px;padding-right:11px}.product-name{gap:8px}.product-name b{font-size:10px}.product-art{width:44px;height:44px}.date{display:none}.bottom-grid{grid-template-columns:1.2fr 1fr}}
@media(max-width:950px){.sidebar{width:76px;padding:24px 12px}.brand{font-size:0;margin:0 7px 30px}.brand-mark{margin:0;width:30px}.workspace,.nav-label,.sidebar-assistant,.profile span:not(.avatar){display:none}.nav-item{padding:13px;justify-content:center;gap:0;font-size:0}.nav-item span,.nav-item small{display:none}.nav-item .icon{width:20px;height:20px}.sidebar-bottom>.nav-item{font-size:0}.profile{justify-content:center;padding:15px 0}.main-shell{margin-left:76px}.bottom-grid{grid-template-columns:1fr}.heading-actions .btn{font-size:10px;padding:9px 11px}.onboarding{gap:12px}.onboarding-icon{flex-shrink:0}.onboarding p{font-size:10px}.flow{padding-top:20px}.empty-activity{padding-top:5px}}
@media(max-width:680px){.sidebar{width:100%;height:60px;top:auto;bottom:0;flex-direction:row;padding:6px 10px;border-top:1px solid var(--line);border-right:0;z-index:35}.sidebar .brand,.sidebar-bottom{display:none}.sidebar nav{display:flex;width:100%;justify-content:space-between;gap:5px}.nav-item{padding:9px 13px;width:auto;flex:1}.main-shell{margin-left:0}.topbar{height:58px;padding:0 19px}.breadcrumb{font-size:10px;gap:8px}.topbar-right{gap:10px}.local-pill{font-size:8px}.avatar.small{width:25px;height:25px}main{padding:25px 17px 85px}.page-heading{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:21px}.page-heading h1{font-size:27px}.page-heading p{font-size:11px}.eyebrow{font-size:8px}.heading-actions{width:100%}.heading-actions .btn{flex:1}.onboarding{position:relative;padding:15px;align-items:flex-start;flex-wrap:wrap}.onboarding>div{flex:1;min-width:180px}.onboarding strong{font-size:11px}.onboarding p{font-size:10px}.onboarding .text-button{margin-left:48px;font-size:10px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.stat{min-height:130px;padding:14px}.stat-label{font-size:10px}.stat-label>span{width:23px;height:23px}.stat>strong{font-size:25px;margin:12px 0}.stat p{line-height:1.6;font-size:9px}.section-heading{padding:19px 16px}.section-heading h2{font-size:15px}.section-heading p{font-size:10px}.section-heading .btn{padding:8px 10px;font-size:10px;min-height:32px}.table-toolbar{margin:0 15px;flex-direction:column;align-items:stretch;gap:12px}.tabs{justify-content:space-between}.tabs button{font-size:9px;padding:7px 8px}.search{max-width:none}.search input{font-size:11px}.table-scroll{padding-bottom:4px}th:first-child,td:first-child{padding-left:16px}.table-footer{padding:13px 16px;font-size:9px}.table-footer span:last-child{display:none}.product-name b{font-size:11px}.flow{padding:15px 10px 23px;gap:4px}.flow-step>span:last-child{font-size:8px}.flow-step b{font-size:20px}.flow-step b small{font-size:8px}.flow-icon{width:34px;height:34px}.flow-step:not(:last-child):after{top:17px;left:calc(50% + 24px);width:calc(100% - 44px)}.footnote{font-size:8px}.footnote>span{display:none}.floating-assistant{right:18px;bottom:77px;width:42px;height:42px}.shipment-grid,.settings-grid{grid-template-columns:1fr}.summary-strip{padding:15px;gap:12px}.summary-strip>div{padding:0 8px}.summary-strip small{font-size:9px;line-height:1.6}.summary-strip strong{font-size:18px}.report-total{padding:20px;flex-direction:column;align-items:flex-start;gap:15px}.modal-backdrop{padding:12px}.modal{padding:26px 20px;max-height:94dvh;border-radius:13px}.modal.wide{padding:26px 20px}.modal-title{gap:12px;padding-right:12px}.modal-title h2{font-size:17px}.product-art.large{width:62px;height:62px}.modal-title .eyebrow{font-size:7px}.detail-summary{padding:13px;gap:7px}.detail-summary small{font-size:8px}.detail-summary b{font-size:16px}.form-grid{gap:0 12px}.modal-actions .btn{font-size:10px;padding:9px 12px}.form-grid label{font-size:10px}.chat-panel{width:100%}.chat-heading{padding:20px}.chat-welcome{padding-top:10px}.chat-messages{padding:20px}.chat-bottom>small{font-size:8px}#toast{bottom:80px}.date{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sidebar-assistant{flex-shrink:0}.brand{flex-shrink:0}.sidebar{overflow-y:auto}.table-scroll{padding-top:0}.stat p,.section-heading p,.page-heading p,.onboarding p,.table-footer,.page-note,.form-hint{color:#74806f}.stat-label{color:#667562}.stat p,.section-heading p,.tabs button,.search input,.onboarding p,.table-footer,.flow-step>span:last-child,.muted-note{font-size:11px}.product-name b,td{font-size:12px}.product-name small,td small,th{font-size:10px}.badge{font-size:10px}.table-scroll th{color:#76816f}.flow-step>span:last-child{color:#718366}.empty-activity p{color:#849178}.empty-activity b{font-size:12px}.sidebar-assistant p{color:#6d7d61}.cost-tip{bottom:auto;top:100%}.cost-wrap .cost-tip{pointer-events:none}.table-scroll{padding-bottom:8px}.search input::placeholder{color:#829077}.stat p{line-height:1.6}.settings-card .page-note,.chat-bottom>small{color:#7e8e70}.page-note{overflow-wrap:anywhere}@media(max-height:800px) and (min-width:951px){.sidebar-assistant{display:none}.sidebar .brand{margin-bottom:25px}}@media(max-width:680px){.tabs button,.table-footer{font-size:10px}.flow-step>span:last-child{font-size:9px}.stat-label{font-size:11px}.stat p{font-size:10px}.sidebar{overflow:visible}.footnote{font-size:10px}}

/* Keep cost breakdowns visible above scrollable tables. */
.cost-wrap .cost-tip{position:fixed;top:0;left:0;right:auto;width:260px;max-width:calc(100vw - 24px);z-index:70}
.family-row td{background:#f3f7f1;padding-top:17px;padding-bottom:17px}.family-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.family-heading b{font-size:13px;white-space:normal;line-height:1.6}.family-heading small{display:block;margin-top:6px;font-size:10px;color:#73826a}.family-actions{display:flex;gap:15px;align-items:center}.family-actions .btn{font-size:10px;padding:7px 11px;min-height:31px}.variant-name{padding-left:14px}.variant-product-title{max-width:230px;overflow:hidden;text-overflow:ellipsis;margin-top:5px;font-size:9px!important}.product-art img{width:100%;height:100%;object-fit:contain;background:white}.image-unavailable{font-size:9px;color:#819276;white-space:normal;text-align:center;padding:4px}.catalog-section{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.catalog-section h3{font-size:13px;margin-bottom:16px;color:#4f6847}.optional{font-size:10px;font-weight:400;color:#96a08e;margin-left:8px}.family-summary{display:flex;justify-content:space-between;gap:14px;background:#f5f8f1;border-radius:8px;padding:15px;margin-bottom:12px}.family-summary b{font-size:12px}.family-summary small{display:block;font-size:10px;margin-top:6px}.amazon-link-row{display:flex;align-items:flex-end;gap:10px;margin-bottom:15px}.amazon-link-row label{flex:1;min-width:0;margin-bottom:0}.amazon-link-row .btn{height:41px}.amazon-preview{border:1px solid #d5e2ca;padding:18px;border-radius:10px;background:#f9fcf6;margin-bottom:15px;font-size:12px}.amazon-preview-heading{display:flex;justify-content:space-between;gap:15px;margin-bottom:15px}.amazon-preview-heading span{font-size:10px;color:#829574}.amazon-preview>img{width:85px;height:85px;object-fit:contain;float:right;margin:0 0 15px 15px}.amazon-preview>p{line-height:1.7;margin-bottom:7px}.amazon-preview ul{clear:both;padding-left:18px;font-size:11px;line-height:1.8;color:#8a7950}.amazon-preview li+li{margin-top:5px}.import-choices{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:15px}.import-choices label{display:flex;flex-direction:row;align-items:center;gap:7px;margin-bottom:0;font-size:11px}.import-choices input{width:15px;height:15px;accent-color:var(--green)}#amazon-result{font-size:12px;color:#687f59;line-height:1.8}.import-success{padding:12px;background:#edf6e7;border-radius:7px;margin-bottom:12px}.form-grid[hidden]{display:none}.family-heading .text-button{font-size:10px}.modal-title h2{overflow-wrap:anywhere}.family-heading>div:first-child{min-width:150px}.catalog-section .form-hint{line-height:1.8}.family-row td{border-bottom:1px solid #e3ebdd}@media(max-width:680px){.family-actions{gap:8px;flex-direction:column;align-items:flex-end}.family-heading{gap:12px}.family-heading b{font-size:12px}.family-heading small{font-size:9px}.amazon-link-row{flex-direction:column;align-items:stretch}.amazon-link-row .btn{align-self:flex-end}.catalog-section .form-grid{grid-template-columns:1fr}.amazon-preview-heading{flex-direction:column;gap:5px}.family-summary{align-items:flex-start}.family-summary b{line-height:1.7}.variant-product-title{max-width:190px}.import-choices{flex-direction:column}}
.empty-variant-action{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border:1px solid #eadfd1;background:#fcfaf5;border-radius:8px;margin:15px 0}.empty-variant-action p{font-size:11px;color:#8a775d}@media(max-width:680px){.empty-variant-action{align-items:flex-start;flex-direction:column}}
.shared-settings{background:#f5f8f1;border:1px solid #e0e9d8;border-radius:9px;padding:16px;margin-bottom:18px}.shared-settings .import-choices{margin:0 0 14px}.shared-settings .form-hint{margin:12px 0 0}.shared-settings select{font-size:11px}#shared-result{font-size:11px;color:#356c47;line-height:1.7;margin-top:10px}

/* Period report and printable document */
.report-actions{display:flex;gap:10px;flex-wrap:wrap}
.report-filters{padding:20px;display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:24px}
.report-filters label{min-width:155px}.report-filters>div{display:flex;gap:6px;flex-wrap:wrap}.report-filters .form-error{width:100%;margin:0}
.report-title{margin:24px 0}.report-title h2{font-size:26px;margin:10px 0}.report-title p{margin-bottom:5px}
.report-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.report-totals section{padding:22px}.report-totals strong{font-size:27px}.report-totals p{margin:0 0 10px}
.report-section{margin-top:22px;padding:22px}.report-section h2{font-size:18px}.report-section h2 small{font-weight:400;color:var(--muted)}
.report-table{width:100%;border-collapse:collapse}.report-table td,.report-table th{padding:14px 10px;text-align:left;vertical-align:top;border-bottom:1px solid #e4e9e2}.report-table th{font-size:12px}.report-table small{display:block;overflow-wrap:anywhere}.report-table td:nth-child(3){max-width:320px;overflow-wrap:anywhere}.report-table td:nth-child(4){white-space:nowrap}
.report-subtotal{text-align:right;margin:18px 0 0}.report-category{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #e4e9e2;padding:10px 0}.report-warning{background:#fff6df;border:1px solid #e8d9ac;border-radius:12px;padding:16px;line-height:1.6}
@media(max-width:700px){.report-totals{grid-template-columns:1fr}.report-section{padding:12px}.report-filters{align-items:stretch}.report-actions{margin-bottom:14px}}
@media print{
 @page{size:A4;margin:14mm}
 body{background:white!important;color:#182c25!important;font-size:10pt}
 .sidebar,.topbar,.floating-assistant,#modal-root,#chat-root,#toast,.no-print{display:none!important}
 .main-shell{margin:0!important;width:100%!important}main{padding:0!important;max-width:none!important}
 body:has(#period-document) .page-note{font-size:9pt}
 .report-title{margin:0 0 16px}.report-totals{gap:10px}.report-totals section{padding:12px}.report-totals strong{font-size:18pt}
 .report-section{box-shadow:none;border:0;padding:0;margin-top:20px;overflow:visible}.table-scroll{overflow:visible!important}
 .report-table{table-layout:fixed;font-size:9pt}.report-table th:nth-child(1){width:14%}.report-table th:nth-child(2){width:29%}.report-table th:nth-child(3){width:38%}.report-table th:nth-child(4){width:19%}
 .report-table td,.report-table th{padding:7px 4px;overflow-wrap:anywhere}.report-table td:nth-child(4){white-space:normal}
 thead{display:table-header-group}tr{break-inside:avoid}h2{break-after:avoid}.report-totals,.report-warning,.report-category{break-inside:avoid}
}
.modal-title .title-copy{min-width:0;flex:1}
.header-switch{display:flex;margin:0 36px 0 auto;flex-direction:row;align-items:center;gap:8px;font-size:12px;font-weight:650;color:var(--ink);white-space:nowrap}
.header-switch .switch input{width:44px;height:26px;padding:0}
.switch{position:relative;width:44px;height:26px;flex:none}
.switch input{appearance:none;width:44px;height:26px;margin:0;border:0;border-radius:99px;background:#d5ddd8;cursor:pointer}
.switch input+span{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;pointer-events:none;transition:transform .18s}
.switch input:checked{background:var(--green)}
.switch input:checked+span{transform:translateX(18px)}
.variant-only[hidden]{display:none}
.single-product-row .product-name{padding-left:0}
.ledger-scroll{overflow-x:auto;overflow-y:auto;max-height:calc(100vh - 280px);scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#6d8476 #e4ebe6}
.ledger-scroll table{border-collapse:separate;border-spacing:0}
.ledger-scroll thead th{position:sticky;top:0;z-index:2}
.ledger-scroll::-webkit-scrollbar{height:14px;width:14px}.ledger-scroll::-webkit-scrollbar:horizontal{display:none;height:0}
.ledger-scroll::-webkit-scrollbar-track{background:#e4ebe6}
.ledger-scroll::-webkit-scrollbar-thumb{background:#6d8476;border-radius:8px;border:3px solid #e4ebe6}
.ledger-scroll::-webkit-scrollbar-corner{background:#e4ebe6}
td.row-actions{vertical-align:middle}.expense-row-actions{display:flex;align-items:center;gap:14px;white-space:nowrap}
.expense-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:0 20px 18px}
.expense-toolbar label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:550}
.expense-toolbar select,.expense-toolbar input{min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:12px}
.expense-toolbar .expense-search-label{flex:1 1 245px;min-width:220px}
.expense-toolbar label:not(.expense-search-label){flex:0 1 auto}
.expense-toolbar .text-button{min-height:40px;padding:8px 4px}
@media(max-width:680px){.expense-toolbar{margin:0 15px;padding:0 0 16px;align-items:stretch}.expense-toolbar label,.expense-toolbar .expense-search-label{flex:1 1 100%;min-width:0}.expense-toolbar select,.expense-toolbar input{width:100%;min-height:44px}.expense-toolbar .text-button{align-self:flex-start}}
.discard-confirm{position:fixed;inset:0;z-index:90;background:#192c2366;display:flex;align-items:center;justify-content:center;padding:25px}
.discard-confirm section{background:#fff;width:min(420px,100%);border-radius:17px;padding:28px;box-shadow:0 20px 80px #122d2333}
.discard-confirm h2{font-size:20px;margin-bottom:8px}
.discard-confirm p{font-size:13px;line-height:1.6;color:#5c6b64}
a.ups-track{text-decoration:none;width:fit-content;margin-top:12px}
.shipment-card a.ups-track{width:100%;margin:0 0 10px}

.auth-screen{position:fixed;inset:0;z-index:10000;background:#f3f6ef;display:grid;place-items:center;padding:24px;overflow:auto}.auth-card{width:min(100%,440px);padding:36px}.auth-card h1{font-size:32px;margin:14px 0}.auth-card p{line-height:1.6}.auth-card form{margin:24px 0}.auth-card label{display:grid;gap:8px}.auth-card input{width:100%;padding:14px;border:1px solid #c5d4c8;border-radius:10px}.auth-card small{color:#697b70}

#profit-scenario fieldset{border:0;border-top:1px solid #e3e9e4;margin:0 0 18px;padding:12px 0 0;min-width:0}
#profit-scenario legend{font-size:14px;font-weight:700;padding-right:10px}
#profit-scenario label{display:grid;gap:5px;font-size:12px;color:#46564b;align-content:end}
#profit-scenario input{width:100%;min-width:0;height:40px;border:1px solid #bdcbc1;border-radius:8px;padding:0 12px;background:white;color:#20382a;font:inherit;font-size:15px}
#profit-scenario input:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.scenario-result{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;background:#eff5ef;color:#314e39;padding:16px;border-radius:10px;font-size:13px}
.scenario-result strong{display:block;font-size:18px;margin-top:4px;font-variant-numeric:tabular-nums}
@media(max-width:540px){#profit-scenario .form-grid{grid-template-columns:1fr}.scenario-result{flex-direction:column}}

.prospect-fields{border:0;margin:0;padding:0;min-width:0}
.prospect-extra{border-top:1px solid #dfe7df;padding:12px 0}
.prospect-extra summary{cursor:pointer;font-size:13px;font-weight:600}
.prospect-extra[open] summary{margin-bottom:12px}
.prospect-summary:not(:empty){display:block;white-space:pre-line;background:#eff5ef;color:#314e39;border-radius:10px;padding:14px;line-height:1.8;font-size:13px}
.products-panel .tabs{flex-wrap:wrap}

.shipment-tools{margin-top:24px;border:1px solid #d7e4db;border-radius:12px;background:#f3f7f3;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.shipment-tools h2{font-size:16px;margin-top:4px}
.shipment-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shipment-actions button:disabled{opacity:.46;cursor:default}
.shipment-action-menu{position:relative}
.shipment-action-menu>summary{list-style:none;cursor:pointer;gap:8px}
.shipment-action-menu>summary::-webkit-details-marker{display:none}
.shipment-action-menu>summary .count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;margin-left:0;padding:0 5px;line-height:1}
.shipment-action-menu>summary:after{content:'⌄';font-size:14px;line-height:1;margin-left:0}
.shipment-action-menu[open]>summary:after{content:'⌃'}
.shipment-action-menu-items{position:absolute;right:0;top:calc(100% + 7px);z-index:45;display:grid;gap:6px;min-width:220px;padding:9px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #20372b1a}
.shipment-action-menu-items .btn{width:100%;justify-content:flex-start;text-align:left;white-space:normal}
.shipment-action-menu-items .btn:disabled{cursor:not-allowed}
.bulk-row-list{display:grid;gap:12px;margin:18px 0}
.bulk-fba-row,.bulk-move-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(220px,1.2fr);align-items:center;gap:14px;padding:13px;border:1px solid var(--line);border-radius:9px}
.bulk-move-row{grid-template-columns:minmax(130px,1fr) minmax(90px,.55fr) minmax(140px,.85fr) minmax(140px,.85fr)}
.bulk-product{min-width:0;display:grid;gap:4px}
.bulk-product b{font-size:13px;overflow-wrap:anywhere}
.bulk-product .expense-product-sku{font-size:13px;font-weight:650}
.bulk-row-list label{display:grid;gap:6px;margin:0;font-size:10px}
.bulk-row-list input,.bulk-row-list select{width:100%;min-width:0;height:38px;border:1px solid var(--line);border-radius:6px;padding:7px;background:var(--paper);color:var(--ink);font-size:11px}
@media(max-width:700px){.bulk-fba-row,.bulk-move-row{grid-template-columns:1fr 1fr}.bulk-product{grid-column:1/-1}}
.shipment-card.is-selected{border-color:#547956;box-shadow:inset 0 0 0 1px #547956}
.shipment-card-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.shipment-card .shipment-title{margin-bottom:10px}
.shipment-card .shipment-title h3{overflow-wrap:anywhere;word-break:break-word}
.shipment-card .badges{flex-direction:row;flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:0}
.shipment-card-topline .shipment-pick{margin:0}
.shipment-card-topline .text-button{margin:0;padding:7px 0;white-space:nowrap}
.shipment-stock-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:8px 0 0}
.shipment-stock-details>summary{cursor:pointer;list-style:none;padding:8px 0;font-size:10px;color:var(--muted)}
.shipment-stock-details>summary::-webkit-details-marker{display:none}
.shipment-stock-details>summary:after{content:'＋';float:right;color:var(--green)}
.shipment-stock-details[open]>summary:after{content:'−'}
.shipment-stock-details .stock-lines{margin:0 0 10px}
.shipment-stock-details .tracking{margin:8px 0;font-size:10px}
.shipment-detail-line{margin:8px 0;font-size:10px;color:var(--muted)}
.shipment-detail-line b{color:var(--ink);font-weight:500;overflow-wrap:anywhere}
.shipment-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.shipment-card-actions .btn{flex:1;justify-content:center;white-space:nowrap}
.shipment-track-active{display:flex;width:100%;justify-content:center;margin-top:9px}
.shipment-track-missing{margin-top:8px}
.shipment-pick{border:1px solid #cddace;color:#31543d;background:#fff;border-radius:20px;font-size:12px;padding:5px 12px;margin-bottom:14px;cursor:pointer}
.shipment-pick[aria-pressed=true]{background:#325d45;color:white;border-color:#325d45}

.theme-toggle{display:inline-flex;align-items:center;gap:5px;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:4px 9px;font-size:11px;color:var(--ink)}
.theme-toggle span:first-child{font-size:18px;line-height:1}
.freight-caption{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.freight-caption label{margin:0}
.freight-help{position:relative}
.freight-help summary{display:grid;place-items:center;list-style:none;width:19px;height:19px;border:1px solid var(--muted);border-radius:50%;font:bold 12px Georgia,serif;color:var(--green);cursor:pointer}
.freight-help summary::-webkit-details-marker{display:none}
.freight-help summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.freight-help div{position:absolute;z-index:5;top:100%;left:clamp(-140px,-10vw,-60px);width:min(270px,72vw);padding:12px;border-radius:8px;background:var(--ink);color:var(--paper);font-size:12px;line-height:1.55;box-shadow:0 6px 18px #0003}
.freight-help:not([open]):is(:hover,:focus-within)::details-content{content-visibility:visible}
.freight-field input{width:100%}
@media screen{
:root[data-theme=dark]{color-scheme:dark;--bg:#141619;--paper:#202327;--ink:#f1f3f5;--muted:#b7bcc3;--line:#40454c;--green:#9ed8b3;--green-dark:#c1ebcc;--soft:#2c3036;--shadow:none}
[data-theme=dark] :is(.sidebar,.topbar,.panel,.modal,.stat,.chat-panel,.chat-heading,.chat-bottom,.message,.secondary,.chat-examples button,.discard-confirm section,.auth-card){background:var(--paper);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.auth-screen,.tabs,.family-row td,th,.chat-bottom textarea,form input,form select,.settings-card select,#profit-scenario input){background:var(--bg);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.nav-item.selected,.tabs button.active,.secondary:hover,.nav-item:hover,tbody tr:hover,.workspace-avatar,.sidebar-assistant,.onboarding,.family-summary,.amazon-preview,.shared-settings,.shipment-tools,.scenario-result,.prospect-summary,.report-total,.detail-summary,.explanation,.summary-strip,.message.user,.confirmation,.muted-note,.chat-examples button:hover,:where(.badge:not(.sold,.returned,.payment)),.flow-icon,.avatar,.count,.empty-variant-action,.import-success,.report-warning,.shipment-pick){background:var(--soft);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.text-button,.positive,.brand-dot){color:var(--green)}
[data-theme=dark] :is(.negative,.form-error){color:#ffaba8}
[data-theme=dark] :is(.nav-item,form label,.settings-card label,.form-hint,:where(.badge:not(.sold,.returned,.payment)),.stock-lines,.tracking,.page-note,.modal>p,.section-heading p,.page-heading p,.chat-welcome p,.table-footer,.shipment-title small,#profit-scenario label){color:var(--muted)}
[data-theme=dark] :is(.primary,.send-button,.shipment-pick[aria-pressed=true]){background:#315d48;color:#f2fff5}
[data-theme=dark] .stat.accent{background:var(--paper);border-color:var(--line)}
[data-theme=dark] :is(.stat>strong,.stat.accent>strong,.catalog-section h3,.flow-step b,.report-total strong){color:var(--ink)}
[data-theme=dark] :is(.stat-label,.stat p,.stat>strong small,.eyebrow,.table-scroll th,.flow-step>span:last-child,.empty-activity p,.sidebar-assistant p,.settings-card .page-note,.chat-bottom>small,.auth-card small,.onboarding p,.detail-summary small){color:var(--muted)}
[data-theme=dark] :is(.stat-label>span,.stat.accent .stat-label>span){background:var(--soft);color:var(--muted)}[data-theme=dark] .shipment-card.is-selected{border-color:var(--green)}
[data-theme=dark] .freight-help div{background:#dbeddf;color:#16271c}
}
@media(max-width:600px){.theme-toggle span:last-child{display:none}}

@media screen {
  /* Keep text on every dark surface on the same neutral contrast scale. */
  [data-theme=dark] :is(td,td b,td strong,.product-name,.breadcrumb b,.stock-lines b,.onboarding strong,.empty-activity b,.chat-welcome h3,.confirmation p,.discard-confirm p,.activity-row p){color:var(--ink)}
  [data-theme=dark] :is(td small,.family-heading small,.product-name small,.nav-label,.breadcrumb,.topbar-right,.tabs button,.footnote,.empty,.stock-lines>div,.tracking,.explanation p,.settings-card p,.modal-title p,.cost-detail>p,.message small,.confirmation>small,.flow-step b small,.activity-row small,.optional,.image-unavailable,.amazon-preview-heading span,.amazon-preview ul,.empty-variant-action p,#amazon-result,#shared-result){color:var(--muted)}
  [data-theme=dark] :is(.tabs button.active,.icon-button:hover){color:var(--ink);background:var(--soft)}
  [data-theme=dark] :is(.assistant-orb,.onboarding-icon,.empty-activity>span,.activity-icon,.spark-large,.modal-symbol,input:read-only){color:var(--ink);background:var(--soft)}
  [data-theme=dark] :is(.sidebar-chat,.floating-assistant){color:#15221b;background:var(--green)}
  [data-theme=dark] :is(.positive,.positive b,.positive strong){color:var(--green)}
  [data-theme=dark] :is(.negative,.negative b,.negative strong){color:#ffaba8}
  [data-theme=dark] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
  [data-theme=dark] td{border-color:var(--line)}
}

@media screen {
  [data-theme=dark] .sidebar .nav-item{color:var(--ink)}
  [data-theme=dark] .sidebar .nav-item small{background:#384048;color:#f3f5f7;font-weight:650}
  [data-theme=dark] .sidebar-assistant::after{display:none}
  [data-theme=dark] .sidebar-assistant{background:var(--paper);border:1px solid var(--line)}
  [data-theme=dark] .sidebar-assistant .sidebar-chat{background:var(--soft);color:var(--ink)}
}

@media screen {
  #period-filter{display:grid;gap:18px;padding:clamp(16px,2vw,24px);color:var(--ink)}
  #period-filter .period-filter-head,.report-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
  .period-presets{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:9px;background:var(--bg)}
  .period-preset{background:transparent;border:1px solid transparent;border-radius:6px;padding:6px 10px;font-size:12px;color:var(--ink)}
  .period-preset[aria-pressed=true]{background:var(--paper);border-color:var(--line);font-weight:650}
  #period-filter .period-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:12px}
  #period-filter label{min-width:0;margin:0}
  #period-filter input,#period-filter [type=submit]{height:41px;min-width:0}
  #period-filter .form-error:empty{display:none}
  .report-title{align-items:end;margin:28px 0 16px}
  .report-title h2{margin:6px 0;font-size:clamp(20px,2vw,26px)}
  .report-title p,.report-title small,.report-totals p{color:#55615a}
  [data-theme=dark] :is(.report-title p,.report-title small,.report-totals p){color:var(--muted)}
  .report-totals{gap:12px}
  .report-totals section{min-width:0;border-top:3px solid var(--line);padding:16px 20px}
  .report-totals section:last-child{border-top-color:var(--green);background:var(--soft)}
  .report-totals strong{font-size:clamp(21px,2vw,30px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .report-section{padding:0;overflow:hidden}
  .report-section h2,.report-section>p{padding:15px 20px;margin:0}
  .report-section h2{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
  .report-section h2 small{white-space:nowrap}
  .report-table{min-width:640px;table-layout:fixed;white-space:normal}
  .report-table :is(th,td){vertical-align:middle;padding:12px;border-color:var(--line)}
  .report-table :is(td,th):first-child{padding-left:20px;width:17%}
  .report-table :is(td,th):nth-child(2){width:25%;overflow-wrap:anywhere}
  .report-table :is(td,th):nth-child(4){width:17%;text-align:right;font-variant-numeric:tabular-nums}
  .report-table :is(td,th):last-child:not([colspan]){width:18%;text-align:right;padding-right:20px}
  .report-table td[colspan]{color:var(--muted)}
  .report-subtotal,.report-category{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-variant-numeric:tabular-nums}
  .report-subtotal{background:var(--soft)}
  .report-category{border-color:var(--line)}
}
@media screen and (max-width:640px){
  .report-actions{margin:0}
  #period-filter .period-dates{grid-template-columns:repeat(2,minmax(0,1fr))}
  #period-filter [type=submit]{grid-column:1/-1}
  .report-title{align-items:start;flex-direction:column;gap:4px}
  .report-totals section{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
  .report-totals p{margin:0}
}

.report-total-top{margin-bottom:20px}
.products-panel .shipment-tools{margin:0 20px 16px}
[data-theme=dark] .report-total-top{background:var(--soft);color:var(--muted)}

/* Comfortable screen density; printed reports keep their existing layout. */
@media screen {
  :root{--muted:#65736d;--line:#e4e9e6;--shadow:0 4px 20px #20372b04}
  :root[data-theme=dark]{--ink:#e3e7e5;--muted:#aab4ae;--line:#353d39;--bg:#181d1b;--paper:#202623;--soft:#29322d}
  body{line-height:1.55}
  h1,h2,h3{line-height:1.4;text-wrap:balance}
  h1{letter-spacing:-.7px}
  small{line-height:1.55}
  .panel,.stat{border-radius:14px}
  .page-heading{margin-bottom:30px}
  .page-heading p,.section-heading p{font-size:13px;line-height:1.65;max-width:68ch}
  .eyebrow{font-size:10px;letter-spacing:1.15px;color:var(--muted)}
  .section-heading{padding-top:24px;padding-bottom:22px}
  .btn{font-size:12px;min-height:40px;border-radius:9px}
  .text-button{font-size:12px;line-height:1.5}
  .tabs{padding:4px;gap:4px;border-radius:9px}
  .tabs button{font-size:12px;padding:8px 12px;border-radius:6px}
  .search{flex:0 0 240px;width:240px;max-width:100%;min-height:42px;padding:10px 12px;border-radius:9px;background:var(--paper);color:var(--muted)}
  .search .icon{flex-shrink:0}
  .search:focus-within{border-color:var(--green);box-shadow:0 0 0 2px var(--soft)}
  .search input{padding:0;font-size:13px;line-height:1.5}
  .search input::placeholder{color:var(--muted);opacity:1}
  .stat{padding:22px;min-height:150px}
  .stat-label{font-size:12px;color:var(--muted);gap:10px}
  .stat p{font-size:12px;color:var(--muted);line-height:1.65}
  .stat>strong{margin:12px 0;font-weight:600}
  .onboarding{padding:20px;gap:16px;border-radius:12px}
  .onboarding strong{font-size:13px}
  .onboarding p{font-size:12px;line-height:1.7;max-width:72ch}
  .table-scroll th{font-size:11px;color:var(--muted);font-weight:600;padding-top:15px;padding-bottom:15px}
  td{font-size:13px;line-height:1.65;padding-top:20px;padding-bottom:20px;vertical-align:middle;border-color:var(--line);font-variant-numeric:tabular-nums}
  td small,.product-name small{font-size:11px;line-height:1.6;color:var(--muted);letter-spacing:0}
  .product-name b{font-size:13px;line-height:1.5;margin-bottom:5px}
  .product-name>div:last-child{white-space:normal;min-width:140px;max-width:300px;overflow-wrap:anywhere}
  .variant-product-title{font-size:11px!important;line-height:1.6}
  .family-heading b{font-size:14px;line-height:1.6}
  .family-heading small{font-size:11px;color:var(--muted)}
  .family-actions{gap:12px;flex-wrap:wrap;justify-content:flex-end}
  .family-actions .btn,.family-heading .text-button{font-size:11px}
  .badge{font-size:11px;padding:5px 9px;border-radius:6px}
  .block{max-width:48ch;line-height:1.7;margin-top:6px}
  .table-footer{font-size:11px;line-height:1.6;gap:16px}
  .activity-row{padding-top:14px;padding-bottom:14px;gap:12px}
  .activity-row p{font-size:13px;line-height:1.7}
  .activity-row small{font-size:11px;color:var(--muted)}
  .page-note,.form-hint,.catalog-section .form-hint,.explanation p,.settings-card p{font-size:13px;line-height:1.75;color:var(--muted);max-width:70ch}
  .explanation{padding:22px;gap:16px;border-radius:12px}
  .explanation p+p{margin-top:12px}
  .muted-note,.footnote,.settings-card .page-note{font-size:12px;line-height:1.65;color:var(--muted)}
  .shipment-title small,.tracking,.stock-lines>div{font-size:12px;line-height:1.7}
  .settings-card{padding:28px}
  .settings-card p{margin-bottom:22px}
  .modal{width:540px;padding:32px;border-radius:18px}
  .modal.wide{width:780px}
  .modal>p,.modal-title p{font-size:13px;line-height:1.75;color:var(--muted)}
  .modal-title{margin-bottom:24px}
  form label,.settings-card label,.form-grid label{font-size:13px;line-height:1.5;gap:9px;margin-bottom:20px;color:var(--muted)}
  form input,form select,.settings-card select{height:44px;font-size:14px;border-radius:9px}
  .form-grid{column-gap:22px}
  .catalog-section{margin-top:26px;padding-top:24px}
  .catalog-section h3,.cost-detail h3{font-size:15px;margin-bottom:18px}
  .form-hint{margin-bottom:20px}
  .form-hint:empty{display:none}
  .shared-settings{padding:20px;border-radius:12px}
  .shared-settings select{font-size:13px}
  .detail-summary{padding:20px;gap:16px;border-radius:12px}
  .detail-summary small,.summary-strip small{font-size:12px;line-height:1.6}
  .cost-detail>div{font-size:13px;padding:13px 0;line-height:1.65}
  .cost-detail small,.cost-detail>p{font-size:12px;line-height:1.7}
  .modal form>details{padding:16px 0;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
  .modal form>details summary{cursor:pointer;color:var(--ink);font-weight:500}
  .modal form>details p{margin-top:12px;line-height:1.75;overflow-wrap:anywhere}
  .report-table :is(th,td){padding-top:17px;padding-bottom:17px;line-height:1.7}
  .report-table small{margin-top:5px;font-size:12px}
  .report-warning{font-size:13px;line-height:1.75;padding:20px}
  .message{font-size:14px;line-height:1.8;padding:18px;margin:18px 0}
  .message p+p{margin-top:12px}
  .chat-examples{gap:10px}
  .chat-examples button{font-size:12px;line-height:1.6}
}
@media screen and (max-width:680px){
  .page-heading p,.section-heading p{font-size:12px}
  .stat{padding:16px;min-height:144px}
  .stat-label,.stat p{font-size:11px}
  .stat>strong{font-size:clamp(20px,5.4vw,25px);overflow-wrap:anywhere}
  .heading-actions{flex-wrap:wrap}
  .heading-actions .btn,.section-heading .btn,.modal-actions .btn{font-size:12px;min-height:40px}
  .search{flex:auto;width:100%;max-width:none}
  .tabs{flex-wrap:wrap;justify-content:flex-start}
  .tabs button{font-size:11px;padding:8px 10px}
  .section-heading{padding:20px 16px;flex-wrap:wrap}
  .modal,.modal.wide{padding:28px 20px}
  .modal .form-grid{grid-template-columns:1fr}
  .modal input:not([type=checkbox]):not([type=radio]),.modal select,.chat-bottom textarea{font-size:16px}
  .modal .switch input{font-size:inherit}
  .detail-summary{padding:16px;gap:12px;grid-template-columns:1fr}
  .detail-summary small{margin-bottom:3px}
  .cost-detail>div{flex-wrap:wrap;gap:8px 14px}
  .summary-strip{padding:18px 12px;gap:8px}
  .summary-strip small{font-size:11px}
  .muted-note{padding:14px 16px;align-items:flex-start}
  .settings-card{padding:24px}
}

.batch-list{display:grid;gap:24px}.batch-card{overflow:hidden}.batch-card .summary-strip{margin:0 24px 20px}.batch-card td b{overflow-wrap:anywhere}
.batch-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;white-space:nowrap}
@media(min-width:681px){.modal #purchase-batch-form .form-grid>label{display:grid;grid-template-rows:minmax(3em,auto) auto;align-content:start}}
.batch-preview{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:18px;margin-top:20px;overflow-wrap:anywhere}
.batch-preview strong{display:block;font-size:20px;margin:8px 0}.batch-preview p{font-size:13px;line-height:1.6}
[data-new-purchase][hidden]{display:none}
@media(max-width:680px){.batch-card .section-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}}
.family-product-summary{display:flex;align-items:center;gap:16px}
.family-product-summary>.product-art{flex-shrink:0}
.family-product-summary>div{min-width:0}

.family-actions{gap:20px;flex-shrink:0}
.family-actions .text-button,.family-select{min-height:36px;font-size:12px;line-height:1.4;border-radius:3px}
.family-toggle{color:var(--green)}
.family-actions .family-menu-trigger{color:var(--muted);border-left:1px solid var(--line);padding-left:20px}
.family-select{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;color:var(--muted);font-weight:500}
.selection-mark{width:15px;height:15px;border:1px solid var(--muted);border-radius:2px;display:grid;place-items:center}
.selection-mark .icon{width:12px;height:12px;visibility:hidden}
.family-select[aria-pressed=true]{color:var(--green)}
.family-select[aria-pressed=true] .selection-mark{background:var(--green);border-color:var(--green);color:var(--bg)}
.family-select[aria-pressed=true] .icon{visibility:visible}
.catalog-action-menu{position:fixed;inset:auto;margin:0;padding:6px;width:210px;max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);box-shadow:0 8px 24px #0002}
.catalog-action-menu button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:3px;background:transparent;color:var(--ink);font:inherit;font-size:12px;text-align:left;white-space:nowrap}
.catalog-action-menu button:hover{background:var(--soft);color:var(--green)}
.catalog-action-menu .icon{width:15px;height:15px}
@media(max-width:680px){.family-actions{gap:8px;align-items:flex-end}.family-actions .family-menu-trigger{border-left:0;padding-left:0}}

.family-row>td{vertical-align:middle}.family-row>td:first-child{min-width:290px;white-space:normal}.family-row>td small{font-size:11px;color:var(--muted);line-height:1.5}.family-row>td .block{margin-top:5px}.family-product-summary>div>b{display:block;line-height:1.5}.family-product-summary>div>small{display:block;margin-top:5px}.family-product-summary .family-toggle{margin-top:8px;font-size:11px}.family-row .family-actions{gap:12px;flex-wrap:nowrap}.family-row>td:not(:first-child){font-variant-numeric:tabular-nums}

/* Inline calculation help: hover, keyboard focus and touch focus. */
.profit-help{display:inline-block;position:relative;vertical-align:middle;margin-left:6px;text-align:left}
.profit-info-button{border:0;background:transparent;color:var(--muted);cursor:help;font:inherit;padding:4px 6px;min-width:28px;min-height:28px}
.profit-info-button:focus-visible{outline:2px solid currentColor;border-radius:5px}
.profit-help-content{display:none;position:absolute;z-index:100;left:0;top:100%;width:340px;max-width:80vw;padding:16px;background:#203f32;color:#fff;border-radius:10px;box-shadow:0 8px 28px #0003;font-size:12px;font-weight:400;line-height:1.55;white-space:normal}
.profit-help-content span,.profit-help-content strong,.profit-help-content b{display:block;margin:5px 0;color:inherit;font-size:inherit}
.profit-help:hover>.profit-help-content,.profit-help:focus-within>.profit-help-content{display:block}
@media(max-width:700px){.profit-help-content{position:fixed;left:5vw;top:auto;bottom:20px;width:90vw;max-width:90vw;max-height:70vh;overflow:auto}}

@media(min-width:701px){.profit-help-content{position:fixed;max-height:calc(100vh - 24px);overflow:auto;top:80px}}
:root .sales-totals small{display:block;margin-top:8px;color:var(--muted);line-height:1.5}
.invoice-details{line-height:1.65;overflow-wrap:anywhere;padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}
.invoice-details p+p{margin-top:12px}
.sales-upload-fields{display:grid;gap:16px;margin:20px 0 12px}
.sales-upload-fields label,.sales-filter-label{display:grid;gap:8px;font-size:13px}
.sales-upload-fields input,.sales-upload-fields select,.sales-filter-label select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}
.sales-totals section{display:block}
.sales-totals strong{display:block;white-space:nowrap;overflow-wrap:normal}
.sales-totals p{margin-bottom:10px}
#sales-preview{margin-top:20px}
#sales-preview select{min-width:190px;max-width:330px}
#sales-import-form .table-scroll{max-height:50vh;overflow:auto}
.sales-totals{margin-bottom:24px}
.invoice-item{margin:20px 0;padding-top:16px;border-top:1px solid var(--line)}
.invoice-download{display:inline-flex;margin-top:8px;min-height:34px;padding:7px 10px;font-size:12px}
.invoice-import-card{margin-top:18px;padding:16px}
.invoice-import-card p{overflow-wrap:anywhere}
.invoice-import-warning{padding:12px;border:1px solid #d8a245;border-radius:8px;background:color-mix(in srgb,#d8a245 10%,var(--paper))}
.invoice-import-warning label{display:flex;align-items:flex-start;gap:8px;margin-top:10px}
.invoice-import-warning input{margin-top:3px}
.invoice-item h3{margin-bottom:8px}
.invoice-line{margin:14px 0;border:1px solid var(--line);border-radius:8px;padding:12px}
.invoice-line h4{margin:0 0 10px;font-size:14px}
.invoice-line dl{margin:0}
.invoice-line dl>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--line)}
.invoice-line dl>div:last-child{border-bottom:0}
.invoice-line dt{min-width:0}
.invoice-line dd{margin:0;white-space:nowrap;font-weight:600}
.invoice-line .invoice-net{color:var(--green);font-weight:600}
@media(max-width:480px){.invoice-line dl>div{flex-direction:column;gap:4px}.invoice-line dd{align-self:flex-start}}
.sales-shipping-switch{display:inline-flex;align-items:center;gap:8px;padding:8px;border:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer;white-space:nowrap}
.sales-switch-track{position:relative;display:inline-block;width:38px;height:22px;border-radius:20px;background:var(--muted);direction:ltr}
.sales-switch-track span{position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .18s ease}
.sales-shipping-switch[aria-checked="true"] .sales-switch-track{background:var(--green)}
.sales-shipping-switch[aria-checked="true"] .sales-switch-track span{transform:translateX(16px)}
@media(prefers-reduced-motion:reduce){.sales-switch-track span{transition:none}}

.sales-profit-details > summary {
  padding: 14px 18px;
  cursor: pointer;
}
.sales-profit-details > summary > span {
  display: inline-block;
  margin-inline-start: 12px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .sales-profit-details > summary > span {
    display: block;
    margin: 4px 0 0;
  }
}

.expense-product-preview{position:relative;display:inline-flex;align-items:center;min-height:22px}
.expense-product-sku{cursor:help;border-bottom:1px dotted var(--muted);font-variant-numeric:tabular-nums}
.expense-product-preview:focus-visible{outline:2px solid #8abb9f;outline-offset:3px;border-radius:2px}
.expense-product-tooltip{position:fixed;left:-10000px;top:-10000px;z-index:120;display:flex;align-items:center;gap:12px;width:280px;max-width:calc(100vw - 24px);padding:12px;background:#203f32;color:#fff;border-radius:9px;box-shadow:0 8px 28px #0003;white-space:normal;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .14s ease}
.expense-product-preview.is-open .expense-product-tooltip{visibility:visible;opacity:1}
.expense-product-tooltip .product-art{width:64px;height:64px;background:#fff;flex:0 0 64px}
.expense-product-tooltip>b{font-size:12px;line-height:1.5;color:#fff}

/* Profit commission mode and direct cost editing. */
.profit-mode{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:16px 20px}.profit-mode b,.profit-mode small{display:block}.profit-mode b{font-size:13px}.profit-mode small{margin-top:4px;color:var(--muted);font-size:11px}.switch{position:relative;flex:0 0 48px;width:48px;height:28px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--line);cursor:pointer;transition:background .15s,border-color .15s}.switch span{display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}.switch.is-on{background:var(--green);border-color:var(--green)}.switch.is-on span{transform:translateX(20px)}.switch:focus-visible{outline:2px solid var(--green);outline-offset:3px}.profit-sku-stack{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:125px}.profit-sku-stack>small{font-size:10px;color:var(--muted)}.profit-sku-stack .expense-product-preview{font-weight:600}.profit-detail-link{font-size:10px}.cost-detail-actions{display:flex;gap:10px;margin-left:auto}.cost-detail-actions .btn{font-size:10px;padding:4px 6px}.cost-detail>div{align-items:center}.cost-detail>div>b{margin-left:0}.cost-detail>div>small{margin-left:auto}@media(max-width:680px){.profit-mode{padding:13px}.profit-mode small{max-width:250px}.profit-sku-stack{min-width:115px}.cost-detail-actions{width:100%;justify-content:flex-end}.cost-detail>div>small{margin-left:auto}}
.overview-stats .stat{min-width:0}
.overview-stats .stat-label{margin:0;gap:8px}
.overview-stats .stat>strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stock-breakdown{display:grid;gap:6px;margin:12px 0 0}
.stock-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;color:var(--muted);font-size:12px}
.stock-breakdown dd{margin:0;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.dashboard-controls{display:grid;gap:6px;margin-top:10px}
.dashboard-controls :is(input,select),.activity-filter input{box-sizing:border-box;width:100%;min-width:0;min-height:33px;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--ink);padding:5px 8px;font:inherit;font-size:12px}
.dashboard-dates{display:grid;gap:6px}
.overview-stats .text-button{margin-top:8px;padding-inline:0;white-space:normal;text-align:left}
.missing-info{display:inline-grid;place-items:center;margin-inline-start:5px;min-width:15px;height:15px;border-radius:50%;background:#f8e6e3;color:#a23d36;font-weight:800}
.badge.sold{background:#cdebd6;color:#285640}
.badge.returned{background:#f4d0cc;color:#8b302c;text-decoration:none}
.badge.returned:hover{text-decoration:underline}
.badge.payment{background:#f7eee0;color:#795729}
[data-theme=dark] .badge.sold{background:#29533b;color:#d8f5df}
[data-theme=dark] .badge.returned{background:#673633;color:#ffd7d2}
[data-theme=dark] .missing-info{background:#4a2e2c;color:#f1bab4}
[data-theme=dark] .badge.payment{background:#493b29;color:#e5c79c}
.badges:has(.returned){flex-wrap:wrap}
tr[id^="return-"]:is(:focus,:target)>td{background:var(--soft)}
.catalog-profit-mode{display:flex;justify-content:flex-end;padding:2px 18px 8px}
.catalog-profit-mode .sales-shipping-switch{font-size:12px}
.expense-target{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}
.expense-target small{color:var(--muted)}
.batch-product-search{display:grid;gap:5px}
.batch-product-search .form-hint{margin:0}
.batch-search-results{display:grid;max-height:170px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.batch-search-results[hidden]{display:none}
.batch-search-results button{display:grid;gap:4px;border:0;background:transparent;color:var(--ink);padding:8px 10px;text-align:left;font:inherit}
.batch-search-results button+button{border-top:1px solid var(--line)}
.batch-search-results button:is(:hover,:focus-visible){background:var(--soft)}
.batch-search-results small{color:var(--muted)}
.batch-search-results p{padding:8px 10px}
.activity-filter{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:0 23px 10px}
.activity-filter label{display:grid;gap:5px;flex:1 1 125px;margin:0;font-size:11px;color:var(--muted)}
.activity-filter :is(button,input){min-height:38px}
.activity-filter .form-error:empty{display:none}
.activity-filter .form-error:not(:empty){flex-basis:100%}
.activity-list{max-height:400px;overflow:auto}
.bottom-grid{align-items:start}
.bottom-grid>*{min-width:0}
@media(max-width:640px){
  .catalog-profit-mode{padding-inline:10px}
  .activity-filter{padding-inline:14px}
}
[data-batch-base-sku][hidden]{display:none!important}
.product-code{overflow-wrap:anywhere}
