body.commerce-active main>section:not(.commerce-screen){display:none!important}body.commerce-active .commerce-screen{display:block!important}.commerce-screen{--c-accent:var(--max-primary-strong,#244a9d);max-width:1450px;margin:auto;color:var(--ink,#243047);padding-bottom:40px}.commerce-top,.commerce-heading,.commerce-panel>header,.commerce-heading-actions,.commerce-dialog header,.commerce-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.commerce-top{margin-bottom:26px;color:var(--muted);font-size:13px}.commerce-top img{width:18px}.commerce-heading h1{font-size:38px;margin:8px 0}.commerce-heading p{margin:0;color:var(--muted);font-size:17px}.commerce-eyebrow{letter-spacing:.12em;color:var(--c-accent);font-size:11px;font-weight:700}.commerce-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line,#e2e5eb);border-radius:12px;background:var(--card,#fff);padding:11px 15px;font:inherit;cursor:pointer;margin:3px;min-height:43px}.commerce-button img{width:19px}.commerce-button.primary{background:var(--max-primary-strong,#244a9d);color:#fff;border-color:var(--max-primary-strong,#244a9d)}.commerce-button:hover{filter:brightness(.97)}.commerce-demo{font-size:12px;color:var(--muted);margin:21px 0}.commerce-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.commerce-metrics article{border:1px solid var(--line,#eee);border-radius:19px;padding:22px;background:linear-gradient(120deg,var(--ui-soft),var(--ui-panel))}.commerce-metrics article:nth-child(2){background:linear-gradient(120deg,var(--ui-soft),var(--ui-panel))}.commerce-metrics article:nth-child(3){background:linear-gradient(120deg,var(--ui-soft),var(--ui-panel))}.commerce-metrics span{display:block;color:var(--ui-muted);font-size:14px}.commerce-metrics strong{font-size:29px;display:block;margin-top:12px;font-weight:700}.commerce-flow{border-inline-start:3px solid var(--max-primary-strong,#244a9d);padding:16px 20px;background:var(--ui-soft);border-radius:10px;margin:24px 0;font-size:16px;font-weight:600}.commerce-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.commerce-card{display:flex;align-items:center;gap:17px;text-align:start;background:linear-gradient(120deg,var(--ui-soft),var(--ui-panel));border:1px solid var(--ui-line);border-radius:20px;padding:26px 22px;min-height:136px;box-shadow:0 5px 20px #43213706;transition:.16s}.commerce-card:nth-child(2n){background:linear-gradient(120deg,var(--ui-soft),var(--ui-panel));border-color:var(--ui-line)}.commerce-card:nth-child(3n){background:linear-gradient(120deg,var(--ui-soft),var(--ui-panel));border-color:var(--ui-line)}.commerce-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #43213712}.commerce-card>img:first-child{width:32px;height:32px;opacity:.8}.commerce-card>img:last-child{width:17px;margin-inline-start:auto}.commerce-card b{display:block;font-size:19px;line-height:1.5}.commerce-card small{display:block;color:var(--ui-muted);margin-top:5px;font-size:12px}.commerce-cards.compact{gap:9px;margin-bottom:25px}.commerce-cards.compact .commerce-card{min-height:76px;padding:14px;border-radius:13px}.commerce-cards.compact b{font-size:14px}.commerce-cards.compact small{font-size:10px}.commerce-cards.compact img:first-child{width:23px}.commerce-card.selected{border:2px solid var(--max-primary-strong,#244a9d)}.commerce-note{display:flex;align-items:center;gap:13px;margin:22px 0;padding:18px 22px;border:1px solid var(--line,#eee);border-radius:15px;color:var(--muted);background:var(--card,#fff)}.commerce-note img{width:25px}.commerce-note p{margin:0;line-height:1.8}.commerce-panel{background:var(--card,#fff);border:1px solid var(--line,#e5e7eb);border-radius:20px;overflow:hidden}.commerce-panel>header{padding:20px 23px;border-bottom:1px solid var(--line,#eee)}.commerce-panel h2{font-size:21px;margin:0}.commerce-table-wrap{overflow-x:auto}.commerce-table{border-collapse:collapse;width:100%;text-align:start;white-space:nowrap}.commerce-table th{text-align:start;font-size:12px;background:var(--ui-soft);color:var(--ui-muted);padding:15px 19px}.commerce-table td{padding:17px 19px;border-bottom:1px solid var(--line,#eee);font-size:14px}.commerce-table small{display:block;color:var(--muted);margin-top:5px}.commerce-empty{text-align:center;padding:55px 20px;white-space:normal;color:var(--muted)}.commerce-empty img{width:40px;height:40px;opacity:.45}.commerce-empty h3{font-size:18px;color:var(--ink)}.commerce-status{border-radius:30px;padding:7px 12px;background:var(--ui-soft);color:var(--max-primary-strong,#244a9d);font-size:12px}.commerce-dialog{width:min(1000px,96vw);max-height:92dvh;border:1px solid var(--line,#eee);border-radius:23px;padding:25px;background:var(--card,#fff);color:var(--ink,#243047);box-shadow:0 30px 100px #20132240;overflow:auto}.commerce-dialog::backdrop{background:#20132270;backdrop-filter:blur(4px)}.commerce-dialog header h2{margin:7px 0;font-size:24px}.commerce-dialog header span{font-size:11px;color:var(--muted)}.commerce-close{width:38px;height:38px;border:0;border-radius:50%;font-size:23px;background:var(--ui-soft)}.commerce-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.commerce-form{margin-top:25px}.commerce-form label{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;font-size:13px;font-weight:600}.commerce-form input,.commerce-form select{background:var(--card,#fff);color:inherit;border:1px solid var(--line,#dfe2e9);border-radius:10px;min-height:44px;padding:10px 12px;font:inherit;width:100%;box-sizing:border-box}.commerce-form input:focus,.commerce-form select:focus{outline:2px solid #c5a8bb}.commerce-form .commerce-check{flex-direction:row;align-items:center;padding:12px;background:var(--ui-soft);border-radius:10px}.commerce-check input{width:20px;min-height:20px}.commerce-dialog footer{justify-content:flex-end;margin-top:22px;position:sticky;bottom:-25px;background:var(--card,#fff);padding:15px 0}.commerce-error{color:#b42341;font-size:13px;min-height:18px}.commerce-product-results{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.commerce-product-results button{background:var(--ui-soft);color:inherit;border:1px solid var(--ui-line);border-radius:10px;padding:11px;text-align:start}.commerce-product-results small{display:block;color:var(--ui-muted);font-size:10px;margin-top:5px}.commerce-line{display:grid;grid-template-columns:1.5fr repeat(5,minmax(75px,1fr)) 24px;gap:9px;align-items:center;border-bottom:1px solid var(--line,#eee);padding:12px 0}.commerce-line label{margin:0;font-size:10px}.commerce-line b{font-size:12px}.commerce-line>button{border:0;background:transparent;font-size:20px;color:var(--ui-ink)}.commerce-total{text-align:end;font-size:28px;font-weight:700;margin:20px}.commerce-print-brand{display:flex;align-items:center;gap:22px;border-bottom:3px solid var(--max-primary-strong,#244a9d);padding-bottom:22px;margin-bottom:22px}.commerce-print-brand>strong{font-size:40px;color:var(--max-primary-strong,#244a9d);letter-spacing:.12em}.commerce-print-brand h2{margin:0 0 6px}.commerce-print-brand p{margin:5px 0}.commerce-print-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.commerce-print-totals{margin-inline-start:auto;width:300px;padding:15px;background:#f1f5fc}.commerce-print-totals p{display:flex;justify-content:space-between}.commerce-print-totals p:last-child{border-top:1px solid #dcc7d4;padding-top:15px;font-size:20px}[dir=rtl] .commerce-card>img:last-child,[dir=rtl] .commerce-top img{transform:rotate(180deg)}
html[data-theme=dark] .commerce-screen,body.dark .commerce-screen{--card:#201e29}body.dark .commerce-card,body.dark .commerce-metrics article{background:#25212d;border-color:#443849;color:#f4eef5}body.dark .commerce-flow,body.dark .commerce-table th,body.dark .commerce-form .commerce-check{background:#302636;color:var(--ui-muted)}
@media(max-width:900px){.commerce-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-heading{align-items:flex-start}.commerce-heading h1{font-size:30px}.commerce-heading-actions{flex-wrap:wrap;justify-content:flex-end}.commerce-line{grid-template-columns:1fr 1fr 1fr}.commerce-line b{grid-column:1/-1}.commerce-metrics strong{font-size:23px}}
@media(max-width:600px){.commerce-heading{display:block}.commerce-heading-actions{justify-content:flex-start;margin-top:15px}.commerce-metrics{gap:8px}.commerce-metrics article{padding:14px 10px}.commerce-metrics strong{font-size:18px}.commerce-metrics span{font-size:11px}.commerce-card{padding:18px 13px;min-height:110px;gap:10px}.commerce-card b{font-size:16px}.commerce-card small{font-size:10px}.commerce-card>img:first-child{width:24px}.commerce-fields{grid-template-columns:1fr}.commerce-dialog{padding:18px}.commerce-dialog footer{bottom:-18px}.commerce-panel>header{align-items:flex-start;flex-direction:column}.commerce-cards.compact .commerce-card{padding:10px}.commerce-cards.compact small{display:none}.commerce-print-parties{grid-template-columns:1fr}.commerce-top{font-size:11px}.commerce-top .commerce-button{font-size:11px}}
@media print{body>*{display:none!important}body>.commerce-dialog[open]{display:block!important;position:absolute;inset:0;width:100%;max-width:none;max-height:none;margin:0;border:0;padding:12mm;box-shadow:none;overflow:visible;background:white;color:#202330}.commerce-dialog footer{display:none!important}.commerce-dialog::backdrop{background:white}.commerce-print .commerce-table-wrap{overflow:visible}.commerce-print .commerce-table{white-space:normal}.commerce-print .commerce-table td,.commerce-print .commerce-table th{padding:10px 7px}body:has(.commerce-dialog[open]){background:#fff}.commerce-print{font-size:12px}.commerce-print-brand{break-inside:avoid}@page{size:A4;margin:8mm}}

.commerce-business-logo{max-width:100px;max-height:85px;object-fit:contain}.commerce-dialog [data-logo-status]{color:var(--ui-ink);font-size:12px}.commerce-dialog button:disabled{opacity:.5;cursor:wait}.ref-secondary-row{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:900px){.ref-secondary-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.ref-secondary-row{grid-template-columns:1fr}}
/* Stable section controls: selection never changes layout or the position of other tabs. */
html{scrollbar-gutter:stable}.commerce-screen{font-family:inherit}.commerce-top .commerce-button.inventory-return,.workspace-back.inventory-return{background:var(--ui-soft);color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:14px;min-height:46px;padding:11px 18px;font-size:15px;font-weight:700;box-shadow:0 4px 12px #203c7010;margin:0}.commerce-heading h1{font-size:34px;font-weight:750;letter-spacing:-.03em;line-height:1.4}.commerce-cards{margin-bottom:24px;gap:12px}.commerce-card,.commerce-cards.compact .commerce-card{height:100px;min-height:100px;padding:18px 20px;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-panel);transform:none;transition:background .2s,box-shadow .2s,border-color .2s}.commerce-card:nth-child(n){background:var(--ui-panel);border-color:var(--ui-line)}.commerce-card:hover{transform:none;background:var(--ui-soft);border-color:var(--ui-line);box-shadow:0 5px 18px #294d9110}.commerce-card.selected{border:1px solid #a8bfe9;background:var(--ui-tint);box-shadow:inset 0 0 0 1px #a8bfe9,0 6px 20px #315fc710}.commerce-card b,.commerce-cards.compact b{font-size:16px;font-weight:700;line-height:1.55}.commerce-card small,.commerce-cards.compact small{font-size:11px;font-weight:400;line-height:1.4;margin-top:4px;color:var(--ui-muted)}.commerce-card>img:first-child,.commerce-cards.compact .commerce-card>img:first-child{width:26px;height:26px}.commerce-panel{animation:commerce-reveal .24s ease-out}.commerce-panel h2{font-size:20px;font-weight:700}.commerce-catalog-switch{display:flex;gap:6px;padding:5px;border:1px solid var(--ui-line);background:var(--ui-soft);border-radius:14px;margin-top:8px}.commerce-catalog-switch button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;background:transparent;padding:12px;font:inherit;font-weight:650;transition:background .2s,box-shadow .2s}.commerce-catalog-switch img{width:21px}.commerce-catalog-switch button[aria-pressed=true]{background:var(--ui-tint);border-color:var(--ui-accent);color:var(--ui-accent);box-shadow:0 3px 10px #1e407012}.commerce-catalog-note{color:var(--ui-muted);font-size:12px;line-height:1.8}.commerce-line small{display:block;color:var(--ui-muted);font-size:10px;font-weight:400;margin-top:4px}.commerce-proof-upload{padding:18px;border:1px dashed #a9bddf;background:var(--ui-soft);border-radius:14px}.commerce-proof-upload img{width:25px}.commerce-proof-upload input{border:0;background:transparent;padding:5px}.commerce-print{font-family:inherit}.commerce-print .commerce-table td{white-space:normal}.commerce-print .commerce-table th{white-space:normal}
@keyframes commerce-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.commerce-card,.commerce-cards.compact .commerce-card{height:95px;min-height:95px;padding:12px;gap:10px}.commerce-card b{font-size:14px}.commerce-card small{font-size:10px}.commerce-card>img:first-child{width:22px;height:22px}.commerce-catalog-switch button{font-size:12px;padding:10px 6px}.commerce-heading h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){.commerce-panel{animation:none}.commerce-card,.commerce-catalog-switch button{transition:none}}
