@charset "UTF-8";
/* Operational interface: visual language inherited from the reviewed prototype. */
:root{--forest:#153f36;--forest-dark:#10362e;--green:#287663;--green-light:#e9f2ec;--mint:#c9e7cd;--gold:#cfad69;--paper:#f7f8f4;--surface:#fff;--ink:#213830;--muted:#6c7973;--line:#e5e9e2;--amber:#91601c;--amber-light:#fbf1df;--red:#ad4642;--red-light:#fbeceb;--radius:16px;--shadow:0 3px 12px rgba(28,55,42,.025);--space:8px;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #85b894;outline-offset:3px}svg{display:block}button svg{width:18px;height:18px;flex-shrink:0}.skip-link{position:fixed;left:16px;top:-70px;padding:12px;background:white;z-index:100}.skip-link:focus{top:16px}.app-shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;padding:32px 18px 18px;background:var(--forest);color:#c4d6cf;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:10px;align-items:center;margin:0 10px 43px;color:white;font-size:24px;letter-spacing:-.7px;line-height:1.1}.brand strong{font-weight:650}.brand small{display:block;font-size:8px;font-weight:600;color:#b4cec1;letter-spacing:1.8px;margin-top:9px}.brand-mark{color:var(--gold);width:34px;height:38px}.brand-mark svg{width:34px;height:34px}.workspace-label{font-size:9px;letter-spacing:1.8px;margin:0 14px 14px;color:#9dbbb0;font-weight:650}.sidebar nav{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:9px;font-size:13px;font-weight:500;transition:background .15s}.nav-link svg{width:18px;height:18px;opacity:.85}.nav-link:hover{background:#ffffff0d;color:white}.nav-link.active{background:#dcebdc;color:#184b39;font-weight:650}.nav-link.active svg{opacity:1}.nav-link.active:after{content:"";width:5px;height:5px;border-radius:100%;background:#427b50;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:30px}.sidebar-note{margin:0 9px 26px;padding:19px 15px 18px;border:1px solid #ffffff19;border-radius:12px;background:linear-gradient(130deg,#ffffff08,transparent)}.spark{display:block;font-size:24px;line-height:1;color:#d9c590;margin-bottom:13px}.sidebar-note strong{font-size:15px;line-height:1.5;font-weight:550;color:#e3eee6}.sidebar-note p{margin:10px 0 0;font-size:11px;color:#adc7b9;line-height:1.6}.profile{padding:18px 8px 0;border-top:1px solid #ffffff17;display:flex;gap:9px;align-items:center}.avatar{display:inline-flex;align-items:center;justify-content:center;background:#e9eee4;color:#285746;border-radius:50%;width:36px;height:36px;flex-shrink:0;font-size:11px;font-weight:700}.profile strong{font-size:11px;font-weight:550;display:block;color:#e4ece6}.profile small{font-size:10px;display:block;margin-top:2px;color:#a2bdaf}.avatar-small{width:32px;height:32px}.workspace{grid-column:2;min-width:0}.topbar{height:86px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;background:#ffffffb5;border-bottom:1px solid var(--line);gap:20px}.company-control{display:flex;align-items:center;gap:12px}.top-company-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:white}.top-company-icon svg{width:19px;height:19px;color:#567b64}.company-control label{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:600;display:block;margin-bottom:2px}.company-control select{padding:0 24px 0 0;max-width:280px;border:0;background:transparent;font-size:13px;font-weight:650;color:var(--ink);cursor:pointer}.topbar-actions{display:flex;align-items:center;gap:19px}.local-indicator{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.local-indicator i{width:5px;height:5px;border-radius:50%;background:#518b61}.icon-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;color:var(--muted)}.icon-button:hover{background:var(--green-light);color:var(--forest)}.demo-banner{min-height:33px;display:flex;align-items:center;justify-content:center;gap:9px;background:#f0f2e9;border-bottom:1px solid #e5e9db;font-size:10px;color:#71806a;padding:7px 20px}.demo-banner strong{font-weight:650;color:#566d53}.demo-dot{width:5px;height:5px;background:#929f70;border-radius:50%;flex-shrink:0}main{padding:31px 38px 38px;max-width:1660px;margin:auto;min-height:calc(100vh - 173px);outline:none}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:26px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:650;color:#7a877d;margin-bottom:9px;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:620;margin-bottom:10px}h2{font-size:16px;line-height:1.3;letter-spacing:-.25px;font-weight:630;margin-bottom:6px}h3{font-size:14px;line-height:1.4;font-weight:650;margin-bottom:6px}.page-head p{margin:0;color:var(--muted);font-size:12px}.head-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;min-height:40px;border-radius:9px;border:1px solid var(--line);font-size:12px;font-weight:600;background:white;white-space:nowrap;transition:background .15s,box-shadow .15s}.button:hover{background:#f5f8f2;box-shadow:0 2px 6px #203a2410}.button-primary{background:var(--forest);border-color:var(--forest);color:white}.button-primary:hover{background:#235447}.button-soft{background:#ecf2e7;border-color:#ecf2e7;color:#3d6547}.button-danger{color:var(--red);border-color:#e5c5c2}.button-small{padding:7px 11px;min-height:33px;font-size:11px}.button-text{border:0;background:transparent;color:var(--green);padding:5px 0;font-size:11px;box-shadow:none!important}.button-full{width:100%}.segmented{display:inline-flex;background:#ecefe8;padding:3px;border-radius:8px;gap:1px}.segmented button{border:0;background:transparent;color:#72816f;padding:6px 10px;font-size:10px;font-weight:550;border-radius:6px}.segmented button.active{background:white;color:var(--forest);box-shadow:0 1px 3px #00000008}.overview-context{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;font-size:11px;color:var(--muted)}.overview-context span{display:flex;align-items:center;gap:6px}.overview-context svg{width:13px;height:13px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.metric{background:white;border:1px solid var(--line);padding:18px 19px 16px;border-radius:var(--radius);box-shadow:var(--shadow)}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:17px;color:var(--muted);font-size:11px;font-weight:500}.metric-icon{display:grid;place-items:center;width:28px;height:28px;background:#f2f5ee;color:#678465;border-radius:8px}.metric-icon svg{width:15px;height:15px}.metric-value{font-size:27px;line-height:1.25;letter-spacing:-.85px;font-weight:610;font-variant-numeric:tabular-nums;white-space:nowrap}.metric-unit{font-size:17px;letter-spacing:-.4px}.metric-bottom{display:flex;align-items:center;gap:5px;margin-top:10px;font-size:10px;color:#7c877c;line-height:1.3}.metric-bottom .up{color:#4e7950;font-weight:550}.metric-highlight{background:#eaf1e6;border-color:#dce7d5}.metric-highlight .metric-icon{background:#d9e6d0;color:#416346}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:21px;margin-bottom:21px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-padding{padding:22px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:21px 22px 0}.panel-head p{font-size:10px;color:var(--muted);margin:0}.panel-head .tag{margin-top:2px}.chart-legend{display:flex;gap:15px;align-items:center;font-size:10px;color:var(--muted);padding:20px 22px 4px}.chart-legend span{display:inline-flex;align-items:center;gap:6px}.legend-dot{width:6px;height:6px;border-radius:50%;background:#477b5a}.legend-dot.soft{background:#c4d5bc}.chart-wrap{padding:0 13px 12px 13px}.revenue-chart{width:100%;height:207px;overflow:visible}.revenue-chart text{font:10px var(--font);fill:#85907f}.chart-line{fill:none;stroke:#568263;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-footer{margin:0 22px;padding:15px 0 18px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:15px}.chart-footer strong{font-size:13px;color:#425b43;font-weight:600;margin-right:4px}.attention-panel{background:#f1f3e9;border-color:#e7ebdd}.attention-heading{display:flex;align-items:center;gap:10px}.attention-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#e5ead5;color:#6f7c45}.attention-icon svg{width:17px;height:17px}.attention-heading h2{margin-bottom:3px}.attention-heading p{font-size:10px;color:#7d886e;margin:0}.attention-list{margin:18px 0}.attention-item{display:flex;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid #e0e5d5}.attention-item:last-child{border-bottom:0}.product-tile{width:37px;height:39px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#e9edf0;color:#697780}.product-tile svg{width:23px;height:23px;stroke-width:1.5}.tile-sand{background:#f4ede0;color:#9c835e}.tile-sage{background:#eaf0e4;color:#698356}.tile-lilac{background:#efedf5;color:#827698}.tile-blue{background:#e8eef2;color:#698797}.tile-rose{background:#f5ece9;color:#ae8073}.item-info{min-width:0;flex:1}.item-info strong{display:block;font-size:11px;font-weight:590;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-info small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.stock-number{font-size:10px;font-weight:550;color:#9b7637;white-space:nowrap;background:#f7f0df;padding:3px 6px;border-radius:5px}.attention-foot{font-size:10px;color:#7e896f;margin:13px 0 0;line-height:1.6}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;font-weight:650;letter-spacing:.65px;text-transform:uppercase;color:#8b9387;background:#fbfcf9;padding:12px 22px;border-bottom:1px solid var(--line)}td{padding:15px 22px;border-bottom:1px solid #eff1eb;font-size:11px;vertical-align:middle}tr:last-child td{border-bottom:0}td strong{font-weight:590}td small{color:var(--muted);display:block;font-size:9px;margin-top:3px}td .button-text{font-size:11px}.align-right{text-align:right}.amount{font-variant-numeric:tabular-nums;font-weight:550}.table-title{margin-bottom:18px}.table-cell-product{display:flex;gap:10px;align-items:center}.tag{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:550;line-height:1.4;padding:4px 7px;border-radius:5px;background:#edf4e9;color:#63834f;white-space:nowrap}.tag-dot{width:4px;height:4px;border-radius:50%;background:currentColor}.tag-amber{background:var(--amber-light);color:var(--amber)}.tag-neutral{background:#eff1ed;color:#758171}.tag-blue{background:#edf2f7;color:#5a7d9c}.tag-red{background:var(--red-light);color:var(--red)}.panel-bottom{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.quick-panel{background:var(--forest);color:#edf6ec;padding:22px;display:flex;flex-direction:column}.quick-panel .eyebrow{color:#acc8b4}.quick-panel h2{font-size:22px;letter-spacing:-.7px;line-height:1.3;margin:0 0 12px;font-weight:500}.quick-panel p{font-size:11px;color:#bfd1c3;line-height:1.7;margin-bottom:23px}.quick-actions{display:grid;gap:8px;margin-top:auto}.quick-action{display:flex;align-items:center;gap:10px;padding:13px;border-radius:8px;border:1px solid #ffffff1c;background:#ffffff07;color:#ebf5e9;font-size:11px;font-weight:550;text-align:left}.quick-action:hover{background:#ffffff13}.quick-action svg{width:16px;height:16px;color:#c4d4bb}.quick-action .arrow{margin-left:auto;width:14px}.workspace-footer{padding:15px 38px 20px;display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#8a9687}.footer-separator{margin:0 8px;color:#b9c4b2}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.search-wrap{position:relative;min-width:210px;max-width:410px;flex:1}.search-wrap svg{position:absolute;top:50%;left:13px;width:16px;height:16px;transform:translateY(-50%);color:#899581;pointer-events:none}.search-wrap input{padding:11px 13px 11px 38px;width:100%;background:white;border:1px solid var(--line);border-radius:9px;font-size:11px;color:var(--ink)}input::placeholder{color:#929d8b}.count-label{font-size:11px;color:var(--muted)}.empty{padding:42px 24px;text-align:center;color:var(--muted);font-size:12px}.empty svg{margin:0 auto 15px;width:30px;height:30px;color:#9cac92}.empty strong{font-size:15px;color:var(--ink);display:block;margin-bottom:7px}.empty p{margin:0;line-height:1.7}.split-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.notice{display:flex;gap:11px;background:#f0f3eb;border:1px solid #e0e7d8;border-radius:10px;padding:15px 17px;margin-bottom:20px;font-size:11px;color:#687c5c;line-height:1.7}.notice svg{width:18px;height:18px;flex-shrink:0;margin-top:2px}.notice strong{font-weight:650}.notice p{margin:0}.warning{background:#fbf4e9;border-color:#f0e5d0;color:#95793f}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:22px}.tabs button{font-size:12px;border:0;padding:0 0 13px;background:transparent;color:var(--muted);font-weight:550;border-bottom:2px solid transparent}.tabs button.active{color:var(--forest);border-bottom-color:var(--green)}.product-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:22px}.mini-metric{display:flex;gap:13px;align-items:center;padding:19px;background:white;border:1px solid var(--line);border-radius:12px}.mini-metric .metric-icon{width:38px;height:38px}.mini-metric .metric-icon svg{width:19px;height:19px}.mini-metric small{font-size:10px;color:var(--muted);display:block}.mini-metric strong{font-size:20px;letter-spacing:-.5px;font-weight:600;display:block}.client-name{display:flex;align-items:center;gap:10px}.client-name .avatar{width:33px;height:33px;font-size:10px}.client-link{background:none;border:0;padding:0;text-align:left;cursor:pointer}.client-link:hover{text-decoration:underline}.page-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.info-card{padding:24px}.info-card p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 20px}.info-card-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:var(--green-light);color:var(--green);margin-bottom:22px}.info-card-icon svg{width:23px;height:23px}.info-card .button{margin-top:10px}.feature-list{display:grid;gap:11px;font-size:12px;color:#61765c}.feature-list span{display:flex;align-items:center;gap:8px}.feature-list svg{width:14px;height:14px;color:#739e68}.module-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.module-row:last-child{border:0}.module-row p{font-size:11px;color:var(--muted);margin:4px 0 0}.module-row strong{font-size:12px;font-weight:600}.section-gap{margin-top:23px}.branch-card{padding:22px;display:flex;align-items:flex-start;gap:15px}.branch-card .info-card-icon{margin-bottom:0}.branch-card h3{margin:0 0 5px}.branch-card p{font-size:11px;color:var(--muted);margin-bottom:12px}.branch-card .tag{margin-left:auto}.report-chart{display:grid;gap:18px;padding:23px}.ranking-row{display:grid;grid-template-columns:27px minmax(100px,1fr) 100px;gap:12px;align-items:center}.ranking-position{font-size:12px;color:#9ca68f}.ranking-label{font-size:11px;display:flex;justify-content:space-between;margin-bottom:7px}.bar-track{height:6px;background:#eff2e9;border-radius:4px;overflow:hidden}.bar-fill{height:100%;background:#709574;border-radius:4px}.ranking-amount{font-size:11px;font-weight:550;text-align:right}.stat-explanation{font-size:10px;color:var(--muted);line-height:1.8;margin:15px 0 0}.profile-select{border:1px solid var(--line);padding:9px 12px;border-radius:8px;background:white;color:var(--ink);font-size:12px;max-width:100%}.fields-preview{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.fields-preview .tag{padding:6px 9px}.timeline{display:grid;gap:0;margin:23px 0 6px}.timeline-step{display:flex;gap:13px;padding-bottom:23px;position:relative}.timeline-step:before{content:"";width:1px;background:var(--line);position:absolute;left:14px;top:30px;bottom:1px}.timeline-step:last-child:before{display:none}.step-number{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:var(--green-light);color:var(--green);font-weight:650;font-size:11px;flex-shrink:0}.timeline-step p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.7}.timeline-step strong{font-size:13px}.toast{position:fixed;left:calc(50% + 80px);bottom:25px;transform:translate(-50%,30px);border-radius:11px;background:var(--forest);color:white;padding:14px 20px;box-shadow:0 8px 35px #10372d25;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:19px;padding:0;max-width:620px;width:calc(100% - 36px);max-height:calc(100dvh - 48px);color:var(--ink);box-shadow:0 24px 80px #07271930;overflow:auto}dialog::backdrop{background:#102e2859;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:25px 27px 19px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:20px;margin:0 0 6px;letter-spacing:-.5px}.modal-head p{font-size:11px;color:var(--muted);margin:0}.modal-body{padding:23px 27px 27px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600}.field-wide{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #dae1d6;border-radius:8px;padding:10px 11px;background:white;color:var(--ink);font-size:12px;font-weight:400;min-height:39px}.field small{font-size:10px;color:var(--muted);font-weight:400}.field textarea{resize:vertical;min-height:70px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:22px 0 0}.form-error{display:none;color:var(--red);font-size:12px;padding:10px 12px;background:var(--red-light);border-radius:8px;margin:0 0 15px}.form-error.visible{display:block}.sale-modal{max-width:1060px}.sale-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr)}.sale-catalog{padding:22px;border-right:1px solid var(--line)}.sale-catalog .search-wrap{max-width:none;margin-bottom:17px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:477px;overflow:auto;padding:2px 3px 4px}.catalog-card{background:white;border:1px solid var(--line);border-radius:10px;padding:12px;text-align:left;display:grid;grid-template-columns:35px minmax(0,1fr);gap:10px;align-items:start}.catalog-card:hover:not(:disabled){border-color:#96b496;background:#f8fbf4}.catalog-card strong{font-size:11px;line-height:1.5;display:block;font-weight:600}.catalog-card small{font-size:9px;display:block;color:var(--muted);margin-top:4px}.catalog-card .catalog-price{font-size:12px;color:var(--forest);font-weight:600;margin-top:8px}.catalog-card .product-tile{width:32px;height:36px}.catalog-card .product-tile svg{width:20px;height:20px}.sale-cart{padding:22px;background:#f8faf5;display:flex;flex-direction:column}.cart-label{font-size:11px;font-weight:650;display:flex;justify-content:space-between;align-items:center;margin:18px 0 8px}.cart-items{max-height:232px;overflow:auto;min-height:130px}.cart-row{padding:13px 0;border-bottom:1px solid var(--line)}.cart-row-title{display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:600;align-items:center}.cart-row-info{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-size:10px;color:var(--muted)}.quantity-control{display:flex;border:1px solid #dce3d5;border-radius:6px;overflow:hidden;background:white}.quantity-control button{width:26px;height:27px;background:transparent;border:0;display:grid;place-items:center}.quantity-control button svg{width:11px;height:11px}.quantity-control input{width:37px;text-align:center;border:0;border-right:1px solid var(--line);border-left:1px solid var(--line);font-size:11px;background:white;-moz-appearance:textfield}.quantity-control input::-webkit-inner-spin-button{-webkit-appearance:none}.cart-total{padding:16px 0 15px;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;margin-top:auto}.cart-total strong{font-size:24px;letter-spacing:-.7px}.payment-options{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:7px 0 16px}.payment-options label{border:1px solid var(--line);border-radius:7px;padding:8px 2px;background:white;text-align:center;cursor:pointer;position:relative;font-size:9px;font-weight:550;display:flex;align-items:center;justify-content:center;gap:3px}.payment-options input{accent-color:var(--green);width:11px;height:11px;margin:0}.payment-options label:has(input:checked){background:var(--green-light);border-color:#91b38f;color:var(--forest)}.payment-heading{font-size:10px;font-weight:600;color:var(--muted)}.cart-disclaimer{font-size:9px;color:var(--muted);text-align:center;line-height:1.7;margin:10px 0 0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:23px}.detail-item small{font-size:10px;color:var(--muted);display:block;margin-bottom:4px}.detail-item strong{font-size:13px;font-weight:600}.receipt-line{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.receipt-total{font-size:18px;font-weight:600}.result-callout{background:var(--green-light);border:1px solid #d4e5ce;border-radius:10px;padding:18px;text-align:center;margin-bottom:20px}.result-callout svg{color:var(--green);width:28px;height:28px;margin:0 auto 9px}.result-callout strong{display:block;font-size:16px}.result-callout small{display:block;color:var(--muted);margin-top:5px;font-size:11px}.muted{color:var(--muted)}.small{font-size:11px}.nowrap{white-space:nowrap}.stock-actions{display:flex;gap:6px;align-items:center}.hide-small{display:initial}.report-summary{margin-bottom:22px}.date-input{max-width:180px}.inline-link{font-size:11px;color:var(--green);border:0;background:transparent;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.dashboard-grid{grid-template-columns:minmax(0,2fr) minmax(315px,1fr)}main{padding-top:40px}.revenue-chart{height:225px}.metric{padding:22px}.metric-value{font-size:30px}.metric-top{font-size:12px}}
@media(max-width:1200px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{width:205px;padding:27px 13px 15px}.brand{font-size:22px;margin-left:8px}.brand-mark{width:29px}.brand-mark svg{width:29px}.nav-link{font-size:12px;padding:11px 12px;gap:10px}.topbar{padding:0 26px}main{padding:27px 25px 30px}.workspace-footer{padding-left:25px;padding-right:25px}.metric-grid{gap:11px}.metric{padding:15px}.metric-value{font-size:22px}.metric-top{font-size:10px;gap:0}.metric-top .metric-icon{width:24px;height:24px}.metric-bottom{font-size:9px}.dashboard-grid{gap:15px;grid-template-columns:minmax(0,1.65fr) minmax(265px,1fr)}th,td{padding-left:16px;padding-right:16px}.panel-head{padding:19px 18px 0}.panel-padding{padding:19px}.chart-footer{margin:0 18px}h1{font-size:27px}.head-actions{gap:7px}.head-actions .button{font-size:11px;padding:10px 12px}.topbar-actions{gap:12px}}
@media(max-width:980px){.local-indicator{display:none}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:27px}.metric-top{font-size:11px;margin-bottom:12px}.metric-bottom{font-size:10px}.dashboard-grid{grid-template-columns:1fr}.attention-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0}.attention-item{border-bottom:0;padding:8px 0;align-items:flex-start;flex-wrap:wrap;gap:7px}.attention-item .item-info{min-width:95px}.stock-number{margin-left:44px}.attention-panel .button-full{width:auto}.attention-foot{display:inline-block;margin-left:12px;max-width:260px;vertical-align:middle}.quick-panel{display:none}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.page-head p{max-width:370px}.page-head .head-actions{flex-direction:column;align-items:stretch}.head-actions .button{min-height:34px}.product-summary{gap:10px}.mini-metric{padding:14px;gap:8px}.mini-metric strong{font-size:18px}.mini-metric .metric-icon{width:28px;height:28px}.page-cards{grid-template-columns:1fr}.sale-layout{grid-template-columns:minmax(0,1fr) minmax(285px,1fr)}.catalog-grid{grid-template-columns:1fr}.chart-wrap{padding-right:25px}.workspace-footer span:first-child{max-width:330px}.ranking-row{grid-template-columns:25px minmax(90px,1fr) 80px}}
@media(max-width:700px){.app-shell{display:block}.sidebar{position:static;width:100%;padding:18px 18px 0;display:block}.brand{font-size:23px;margin:0 0 22px;gap:8px}.brand small{font-size:7px;margin-top:7px}.sidebar-bottom,.workspace-label{display:none}.sidebar nav{display:flex;overflow:auto;gap:4px;padding-bottom:12px}.nav-link{font-size:11px;padding:9px 11px;flex-shrink:0;gap:7px}.nav-link svg{width:15px;height:15px}.nav-link.active:after{display:none}.workspace{width:100%}.topbar{padding:0 19px;height:73px;gap:10px}.topbar-actions{gap:8px}.company-control{gap:8px}.company-control select{font-size:12px;max-width:210px}.top-company-icon{width:31px;height:31px}.demo-banner{font-size:9px;justify-content:flex-start;gap:7px;flex-wrap:wrap;padding:8px 19px;line-height:1.5}.demo-banner span:last-child{display:none}main{padding:23px 18px 25px;min-height:calc(100vh - 260px)}.page-head{gap:12px;margin-bottom:23px;align-items:flex-start}.page-head h1{font-size:24px;max-width:230px}.page-head p{font-size:11px;max-width:235px}.eyebrow{font-size:8px;letter-spacing:1.4px}.head-actions .button{padding:9px 11px;font-size:10px}.head-actions .button svg{width:14px;height:14px}.head-actions .secondary-head{display:none}.metric-grid{gap:10px;margin-bottom:18px}.metric{padding:15px 13px;border-radius:12px}.metric-value{font-size:22px}.metric-top{font-size:10px;margin-bottom:12px}.metric-icon{width:23px;height:23px}.metric-bottom{font-size:9px;line-height:1.5;min-height:27px;margin-top:7px}.overview-context{font-size:10px}.segmented button{padding:5px 8px;font-size:9px}.panel{border-radius:13px}.panel-head{padding:18px 17px 0}h2{font-size:15px}.chart-legend{padding:15px 18px 4px}.revenue-chart{height:185px}.chart-wrap{padding:0 10px 8px 4px}.chart-footer{font-size:9px;margin:0 17px;padding-top:12px}.chart-footer strong{font-size:11px}.attention-list{grid-template-columns:1fr;gap:0;margin:12px 0}.attention-item{border-bottom:1px solid #e0e5d5;flex-wrap:nowrap;align-items:center;padding:10px 0}.stock-number{margin:0}.attention-foot{display:block;max-width:none;margin:12px 0 0}.attention-panel .button-full{width:100%}.dashboard-grid{gap:17px;margin-bottom:17px}.product-summary{grid-template-columns:1fr;margin-bottom:18px;gap:8px}.mini-metric{padding:12px 15px;gap:12px;justify-content:flex-start}.mini-metric>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:1}.mini-metric small{font-size:11px}.mini-metric strong{font-size:17px}.toolbar{flex-wrap:wrap;gap:10px}.toolbar .search-wrap{max-width:none;min-width:160px}.toolbar>.count-label{display:none}.toolbar .button{font-size:10px;padding:10px}.workspace-footer{padding:15px 19px;font-size:8px;align-items:flex-end}.workspace-footer span:first-child{max-width:210px}.toast{left:50%;font-size:11px;bottom:18px;width:max-content;max-width:calc(100vw - 35px)}th{font-size:8px;padding:11px 14px}td{padding:13px 14px;font-size:11px}.hide-small{display:none}.notice{font-size:10px;padding:12px;gap:8px}.tabs{gap:18px}.tabs button{font-size:11px}.branch-card{padding:18px;gap:10px}.branch-card .tag{font-size:8px}.branch-card .info-card-icon{width:34px;height:34px}.info-card{padding:22px}.panel-bottom{padding:13px 17px}.sale-layout{display:flex;flex-direction:column}.sale-catalog{padding:15px;border-right:0;border-bottom:1px solid var(--line)}.sale-cart{padding:17px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:190px;gap:8px}.catalog-card{padding:9px;grid-template-columns:1fr;gap:7px}.catalog-card .product-tile{display:none}.catalog-card small{font-size:8px}.catalog-card strong{font-size:10px}.catalog-card .catalog-price{margin-top:4px;font-size:11px}.sale-catalog .search-wrap{margin-bottom:10px}.sale-cart .cart-items{max-height:190px;min-height:85px}.modal-head{padding:19px 18px 16px}.modal-head h2{font-size:18px}.modal-body{padding:19px 18px}.form-grid{gap:14px}.field-wide-mobile{grid-column:1/-1}.cart-label{margin-top:12px}.modal-actions{padding-top:19px}dialog{width:calc(100% - 22px);max-height:calc(100dvh - 22px);border-radius:14px}.module-row{gap:13px}.module-row p{font-size:10px}.module-row strong{font-size:11px}.report-chart{padding:18px}.date-input{max-width:155px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* More readable operational controls, loading states and authentication. */
.button{font-size:13px;min-height:44px}.button-small{font-size:12px;min-height:40px}.icon-button{min-width:44px;min-height:44px}.nav-link{font-size:14px;min-height:46px}.company-control label{font-size:10px}.company-control select{font-size:14px;max-width:380px;min-height:30px}.page-head p{font-size:14px}.eyebrow{font-size:10px}.metric-top{font-size:12px}.metric-bottom{font-size:12px;min-height:34px}.metric-value{font-size:26px}.panel-head p{font-size:12px}.chart-footer{font-size:11px}.notice{font-size:13px}.tag{font-size:11px}.table-scroll{overflow-x:auto}th{font-size:11px;color:#68796a}td{font-size:13px}td small{font-size:11px}td .button-text{font-size:13px}.wrap-cell{white-space:normal;min-width:160px;max-width:300px}.search-wrap input{font-size:14px;min-height:44px}.field{font-size:13px}.field input,.field select,.field textarea{font-size:15px;min-height:44px}.field small{font-size:12px;line-height:1.5}.optional{font-size:11px;font-weight:400;color:var(--muted)}.modal-head p{font-size:13px}.payment-options label{font-size:12px;min-height:44px}.payment-options input{width:14px;height:14px}.payment-fieldset{padding:0;border:0;margin:0;min-width:0}.payment-heading{font-size:12px}.cart-disclaimer{font-size:11px}.cart-row-title{font-size:13px}.cart-row-info{font-size:12px}.quantity-control button{width:38px;height:40px}.quantity-control input{width:43px;font-size:14px}.quantity-control button svg{width:15px;height:15px}.catalog-card strong{font-size:13px}.catalog-card small{font-size:11px}.catalog-card .catalog-price{font-size:14px}.cart-label{font-size:13px}.cart-total{font-size:14px}.sale-error{margin:14px 22px 0}.sale-catalog>.search-wrap{display:block}.sale-cart .empty{padding:22px 6px}.due-field{margin-bottom:15px}.due-field[hidden]{display:none}.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}.operational-banner{font-size:12px;justify-content:flex-start;padding-left:38px}.overdue{color:var(--amber)}.linked-company{margin-bottom:25px}.linked-company h2{display:flex;align-items:center;gap:10px}.linked-company h2 svg{width:18px;height:18px}.roadmap-panel{margin-top:23px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.module-card{display:flex;gap:13px;padding:18px;border-radius:12px;border:1px solid var(--line);background:#fbfcf9}.module-card .metric-icon{flex-shrink:0}.module-card h3{font-size:14px}.module-card p{font-size:12px;color:var(--muted);margin:7px 0 12px}.loading-view{display:flex;align-items:center;justify-content:center;gap:15px;color:var(--muted);padding:70px 25px;font-size:14px}.loader{height:20px;width:20px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:loading 1s linear infinite}@keyframes loading{to{transform:rotate(360deg)}}.profile strong{font-size:12px}.profile small{font-size:11px}.detail-item small{font-size:12px}.receipt-line{font-size:14px}.small{font-size:13px}.count-label{font-size:12px}.info-card p{font-size:14px}.feature-list{font-size:13px}
.login-screen{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,1fr);padding:0;max-width:none;min-height:100dvh}.login-story{background:var(--forest);padding:48px 55px 30px;color:#ebf3eb;display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh}.login-brand{margin:0;font-size:30px}.login-brand small{font-size:9px}.login-story-copy{max-width:485px;padding:50px 0}.login-story .eyebrow{color:#acc7b7;letter-spacing:1.9px;margin-bottom:24px}.login-story h1{font-size:45px;font-weight:500;line-height:1.22;letter-spacing:-1.5px;margin-bottom:23px;max-width:480px}.login-story p{font-size:16px;line-height:1.8;color:#bfd4c6;max-width:410px}.login-story>small{font-size:12px;color:#a4bfaf}.login-features{display:grid;gap:14px;margin-top:32px}.login-features span{display:flex;gap:12px;align-items:center;font-size:13px;color:#d6e6d7}.login-features svg{width:19px;height:19px;color:#d3bf88}.login-content{padding:44px;display:flex;align-items:center;justify-content:center;background:#f7f8f4}.login-card{width:100%;max-width:400px}.login-card>.tag{font-size:10px;letter-spacing:.8px}.login-card h2{font-size:28px;font-weight:600;margin-top:20px;line-height:1.3;letter-spacing:-.6px}.login-card>p{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:26px}.login-card form{display:grid;gap:18px}.login-card form>.button{margin-top:4px}.login-card form>.form-error{margin:0}.example-login{padding:20px;background:#eff3e8;border:1px solid #e1e8d9;border-radius:12px;margin:28px 0 20px}.example-login>strong{font-size:13px}.example-login p{font-size:12px;line-height:1.6;color:#657660;margin:8px 0 14px}.example-buttons{display:flex;flex-wrap:wrap;gap:8px}.example-login details{margin-top:13px;font-size:12px;color:#526849}.example-login summary{cursor:pointer}.example-login code{font-size:12px;word-break:break-all}.login-footnote{font-size:11px;color:var(--muted);line-height:1.6;display:flex;gap:8px;align-items:flex-start}.login-footnote svg{width:14px;height:14px;margin-top:2px;flex-shrink:0}
@media(max-width:1200px){.login-story{padding:40px}.login-story h1{font-size:38px}.metric-value{font-size:24px}.metric-bottom{font-size:11px}.nav-link{font-size:13px}.operational-banner{padding-left:26px}}
@media(max-width:980px){.login-screen{grid-template-columns:minmax(0,.9fr) minmax(370px,1fr)}.login-story{padding:32px}.login-story h1{font-size:32px}.login-story p{font-size:14px}.login-content{padding:30px}.metric-value{font-size:26px}.company-control select{max-width:280px}.metric-bottom{font-size:12px}.catalog-grid{max-height:390px}}
@media(max-width:700px){.login-screen{display:block}.login-story{min-height:auto;padding:27px}.login-brand{font-size:25px}.login-story-copy{padding:28px 0 0}.login-story .eyebrow,.login-features,.login-story>small{display:none}.login-story h1{font-size:28px;letter-spacing:-.8px;margin-bottom:12px}.login-story p{font-size:13px;margin-bottom:0}.login-content{padding:28px 22px}.login-card h2{font-size:25px}.company-control select{font-size:13px;max-width:calc(100vw - 165px)}.topbar{padding:0 17px}.top-company-icon{display:none}.topbar .button{font-size:12px;padding:8px 10px;min-height:42px}.operational-banner{padding:10px 18px;font-size:11px}.operational-banner span:last-child{display:block;flex-basis:100%}.nav-link{font-size:13px;min-height:43px}.page-head{flex-wrap:wrap}.page-head h1{max-width:none;font-size:26px}.page-head p{max-width:none;font-size:13px}.page-head .head-actions{flex-direction:row}.head-actions .button{font-size:13px;min-height:43px}.eyebrow{font-size:10px}.metric-grid{gap:11px}.metric{padding:16px 13px}.metric-top{font-size:12px}.metric-value{font-size:21px}.metric-bottom{font-size:11px;min-height:48px}.metric-icon{width:26px;height:26px}.overview-context{flex-wrap:wrap;gap:12px;font-size:12px}.segmented button{font-size:12px;min-height:38px}.notice{font-size:12px}.chart-footer{font-size:11px;flex-wrap:wrap}.chart-footer strong{font-size:13px}th{font-size:10px}td{font-size:13px}.tabs{gap:15px;overflow:auto}.tabs button{font-size:13px;white-space:nowrap;min-height:40px}.modal-head p{font-size:12px}.form-grid{grid-template-columns:1fr}.modal-actions .button{flex:1}.catalog-grid{max-height:215px}.catalog-card strong{font-size:12px}.catalog-card small{font-size:10px}.catalog-card .catalog-price{font-size:13px}.sale-cart .cart-items{max-height:none;min-height:85px}.cart-items .cart-row-title{font-size:13px}.cart-disclaimer{font-size:11px}.sale-error{margin:12px 15px 0}.module-grid{grid-template-columns:1fr}.finance-metrics{grid-template-columns:1fr}.linked-company h2{font-size:15px;flex-wrap:wrap}.workspace-footer{font-size:10px;gap:12px;flex-wrap:wrap}.workspace-footer span:first-child{max-width:none}.toast{font-size:13px}.login-footnote{font-size:12px}}
@media(prefers-reduced-motion:reduce){.loader{animation:none}}
.quantity-control button{width:44px;height:44px}.quantity-control input{width:44px}.topbar .button,.nav-link{min-height:44px}
.field-caption{display:flex;align-items:baseline;gap:7px}.field-caption label{font-weight:600}.field[hidden]{display:none}
@media(max-width:680px){.sidebar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:6px;padding-bottom:16px}.nav-link{min-width:0;white-space:normal;padding:8px 7px;font-size:12px;line-height:1.35;min-height:48px;gap:6px;align-items:center}.nav-link svg{width:16px;height:16px;flex:0 0 16px}}

/* Complete customer records keep a short starting path and reveal optional detail. */
.customer-modal{max-width:780px}
.customer-modal .modal-head{position:sticky;top:0;background:var(--surface);z-index:2;border-bottom:1px solid var(--line)}
.customer-modal .modal-actions{position:sticky;bottom:0;margin:0 -27px -27px;padding:18px 27px;background:var(--surface);border-top:1px solid var(--line);z-index:1}
.customer-form-intro{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;background:#f0f5ed;border:1px solid #e1eadd;border-radius:11px;margin-bottom:22px}
.customer-form-intro svg{width:20px;height:20px;flex-shrink:0;margin-top:1px;color:var(--green)}
.customer-form-intro p{font-size:13px;line-height:1.6;margin:0;color:#4d6553}
.customer-identity{padding-bottom:12px}
.customer-kind-status{font-size:12px;color:var(--green);margin:10px 0 0;min-height:18px}
.customer-form-section{border:1px solid var(--line);border-radius:12px;margin:0 0 14px;background:#fff}
.customer-form-section>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:64px;padding:15px 17px;cursor:pointer;list-style:none;touch-action:manipulation}
.customer-form-section>summary::-webkit-details-marker{display:none}
.customer-form-section>summary:focus-visible{outline:3px solid #85b894;outline-offset:3px;border-radius:12px}
.customer-form-section>summary strong{display:block;font-size:14px;font-weight:650}
.customer-form-section>summary small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:3px}
.section-chevron{display:block;width:8px;height:8px;flex:0 0 8px;border-right:2px solid #78917e;border-bottom:2px solid #78917e;transform:rotate(45deg);margin-right:3px;transition:transform .15s}
.customer-form-section[open]>summary .section-chevron{transform:rotate(225deg)}
.customer-form-section[open]>summary{border-bottom:1px solid var(--line)}
.customer-section-content{padding:17px}
.kind-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.kind-fields[hidden]{display:none}
.postal-code-row{display:flex;align-items:flex-start;gap:12px}
.postal-code-row>.field{flex:1;max-width:280px}
.postal-code-row>.button{margin-top:26px;min-height:44px}
.postal-code-status{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 15px;min-height:19px}
.postal-code-status[data-state=success]{color:var(--green)}
.postal-code-status[data-state=warning]{color:var(--amber)}
.contact-editor{border:1px solid #dce5d7;border-radius:11px;padding:14px;margin:0 0 16px;min-width:0;background:#fbfcf9}
.contact-editor legend{font-size:13px;font-weight:650;padding:0 7px;color:#415d49}
.contact-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.contact-editor-head p{font-size:12px;margin:0;color:var(--muted)}
.contact-remove{color:var(--red)}
.contact-remove svg{width:18px;height:18px}
.contact-limit{display:block;margin-top:11px;font-size:12px;color:var(--muted)}
.customer-name-link{font-size:14px;text-align:left;max-width:280px;white-space:normal;line-height:1.4;min-height:44px;padding:0}
.customer-name-link:hover{text-decoration:underline;text-underline-offset:3px}
.customer-directory .stock-actions{flex-wrap:wrap;max-width:225px}
.customer-directory .client-name{align-items:center;gap:11px}
.customer-directory td{white-space:normal;vertical-align:middle;max-width:310px;overflow-wrap:anywhere}
.customer-profile-head{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.customer-profile-head>.avatar{width:62px;height:62px;font-size:18px;background:#e6eedf}
.customer-profile-head h3{font-size:23px;font-weight:620;line-height:1.35;margin:8px 0 0;overflow-wrap:anywhere}
.customer-profile-head p{font-size:14px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}
.customer-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.customer-detail-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.customer-detail-section{padding:18px 0;border-top:1px solid var(--line);min-width:0}
.customer-detail-section>h3{font-size:14px;font-weight:650;margin-bottom:16px}
.customer-detail-section .detail-grid{margin-bottom:0;gap:15px}
.customer-detail-section .detail-item strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}
.customer-detail-section .small{margin-bottom:0;font-size:13px;line-height:1.7}
.customer-contact-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.customer-contact-card{background:#f8faf5;border:1px solid var(--line);border-radius:11px;padding:16px;min-width:0}
.customer-contact-card>strong{font-size:14px;overflow-wrap:anywhere}
.customer-contact-card>p{font-size:12px;color:var(--muted);margin:5px 0 13px}
.customer-contact-card .detail-grid{grid-template-columns:1fr;margin-top:13px}
.customer-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:0}
@media(max-width:700px){.customer-modal .modal-actions{margin:0 -18px -19px;padding:15px 18px;bottom:0}.customer-form-section>summary{padding:14px;min-height:66px}.customer-section-content{padding:15px}.kind-fields{grid-template-columns:1fr;gap:14px}.postal-code-row{gap:9px}.postal-code-row>.field{min-width:0;max-width:none}.postal-code-row>.button{padding:10px;min-width:105px;font-size:12px}.postal-code-row>.button svg{width:16px;height:16px}.customer-detail-columns,.customer-contact-cards{grid-template-columns:1fr;gap:0}.customer-contact-cards{gap:12px}.customer-profile-head{gap:12px;align-items:flex-start}.customer-profile-head>.avatar{width:50px;height:50px;font-size:15px}.customer-profile-head h3{font-size:20px}.customer-detail-section .detail-grid{grid-template-columns:1fr}.customer-profile-actions>.button{flex:1;min-width:130px}.customer-directory table{min-width:590px}}

/* One catalogue for goods and services, with explicit stock and store pricing. */
.product-modal{max-width:780px}
.product-modal .modal-head{position:sticky;top:0;background:var(--surface);z-index:2}
.product-modal .modal-actions{position:sticky;bottom:0;margin:0 -27px -27px;padding:18px 27px;background:var(--surface);border-top:1px solid var(--line);z-index:1}
.product-form-intro{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;background:#f0f5ed;border:1px solid #e1eadd;border-radius:11px;margin-bottom:22px}
.product-form-intro svg{width:20px;height:20px;flex-shrink:0;margin-top:1px;color:var(--green)}
.product-form-intro p{font-size:13px;line-height:1.6;margin:0;color:#4d6553}
.product-basic-fields{margin-bottom:22px}
.product-stock-toggle{display:flex;align-items:flex-start;gap:12px;cursor:pointer;min-height:44px;padding:7px 0}
.product-stock-toggle input{width:19px;height:19px;flex:0 0 19px;margin:2px 0 0;accent-color:var(--green)}
.product-stock-toggle strong{display:block;font-size:14px;font-weight:600}
.product-stock-toggle small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px;line-height:1.5}
.product-stock-toggle:has(input:disabled){color:var(--muted)}
.product-stock-status{font-size:13px;line-height:1.6;color:var(--muted);margin:9px 0 18px}
#product-stock-fields[hidden]{display:none}
.product-current-stock{border:1px solid var(--line);border-radius:9px;padding:13px 15px;background:#f8faf5;min-width:0}
.product-current-stock small{display:block;font-size:12px;color:var(--muted)}
.product-current-stock strong{display:block;font-size:21px;margin-top:6px}
.product-current-stock p{font-size:12px;color:var(--muted);line-height:1.6;margin:7px 0 0}
.product-fixed-identity{padding:15px;background:#f5f8f0;border-radius:10px;border:1px solid var(--line);min-width:0}
.product-fixed-identity strong{display:block;font-size:17px;overflow-wrap:anywhere}
.product-fixed-identity small{font-size:12px;color:var(--muted);display:block;margin-top:6px}
.product-fixed-identity p{font-size:13px;color:var(--muted);line-height:1.6;margin:12px 0 0}
.product-structure-note{font-size:12px;line-height:1.6;margin:18px 0 0}
.product-name-link{font-size:14px;text-align:left;max-width:280px;white-space:normal;line-height:1.5;min-height:44px;padding:0}
.product-name-link:hover{text-decoration:underline;text-underline-offset:3px}
.product-directory .stock-actions{flex-wrap:wrap;max-width:225px;min-width:145px}
.product-directory .table-cell-product{min-width:240px}
.product-profile-head{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.product-profile-head>.product-tile{width:66px;height:70px;flex:0 0 66px;border-radius:16px}
.product-profile-head>.product-tile svg{width:32px;height:32px}
.product-profile-head h3{font-size:23px;font-weight:620;line-height:1.35;margin:8px 0 0;overflow-wrap:anywhere}
.product-profile-head p{font-size:14px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}
.product-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.product-detail-modal .detail-item strong{white-space:normal;overflow-wrap:anywhere}
.product-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:18px 0 0}
.cart-unit{font-size:11px;margin:0 8px;flex:1}
.receipt-item{min-width:0;overflow-wrap:anywhere}
.receipt-item>small{display:block;font-size:12px;line-height:1.6;margin-top:5px}
.receipt-item-description{color:var(--muted);white-space:pre-wrap}
.receipt-line>strong{flex-shrink:0}
.catalog-card .catalog-price small{font-size:10px;margin-top:2px;font-weight:400}
@media(max-width:700px){.product-modal .modal-actions{margin:0 -18px -19px;padding:15px 18px;bottom:0}.product-profile-head{gap:12px;align-items:flex-start}.product-profile-head>.product-tile{width:48px;height:52px;flex-basis:48px}.product-profile-head>.product-tile svg{width:26px;height:26px}.product-profile-head h3{font-size:20px}.product-profile-actions>.button{flex:1;min-width:130px}.product-detail-modal .detail-grid{grid-template-columns:1fr}.product-directory table{min-width:850px}.cart-row-info{gap:0}.cart-unit{font-size:10px;margin:0 6px}.product-fixed-identity strong{font-size:16px}}

/* Store availability is configured separately from the shared catalogue. */
.catalog-store-context{border:1px solid #e1eadd;background:#f1f5ed;border-radius:11px;padding:15px 17px;margin-bottom:17px}
.catalog-store-context>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:#415f4b}
.catalog-store-context svg{width:18px;height:18px;flex:0 0 18px}
.catalog-store-context strong{overflow-wrap:anywhere}
.catalog-store-context p{font-size:12px;line-height:1.6;margin:7px 0 0;color:var(--muted)}
.catalog-status-filters{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.catalog-status-filters button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:13px;color:var(--muted)}
.catalog-status-filters button.active{border-color:#8ab49a;background:var(--green-light);color:var(--forest);font-weight:600}
.catalog-status-filters button>span{display:grid;place-items:center;min-width:24px;padding:1px 5px;border-radius:5px;background:#f0f2ec;font-size:11px;font-variant-numeric:tabular-nums}
.catalog-status-filters button.active>span{background:#d9e9dd}
.product-store-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid var(--line);padding:12px 15px;border-radius:9px;background:#f8faf5;margin-bottom:17px}
.product-store-status>span:first-child{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;min-width:0;overflow-wrap:anywhere}
.product-store-status svg{width:18px;height:18px;flex:0 0 18px}
.availability-store-label{display:flex;align-items:center;gap:9px;margin:20px 0 12px;font-size:14px;color:var(--green)}
.availability-store-label svg{width:19px;height:19px;flex:0 0 19px}
.availability-store-label strong{overflow-wrap:anywhere}
.availability-explanation{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 22px}
.availability-impact{padding:14px 16px;border:1px solid #e1eadd;border-radius:10px;background:#f4f8ef;margin:21px 0;font-size:13px;line-height:1.7;color:#526e58}
.availability-refresh{background:var(--amber-light);border:1px solid #eadbc1;border-radius:10px;padding:15px 17px;margin-bottom:20px}
.availability-refresh[hidden]{display:none}
.availability-refresh p{font-size:13px;color:#775628;line-height:1.7;margin:0 0 13px}
.availability-refresh .button{background:white;color:#775628}
@media(max-width:700px){.catalog-store-context{padding:13px 14px}.catalog-status-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.catalog-status-filters button{padding:9px 7px;gap:5px;font-size:12px;line-height:1.4}.catalog-status-filters button>span{font-size:10px;min-width:20px;padding:1px 4px}.product-store-status{padding:11px 13px;gap:9px}.product-store-status>span:first-child{font-size:12px}.availability-impact,.availability-refresh{padding:13px 14px}.availability-refresh .button{width:100%}}

/* Physical stock positions and a traceable, paged history share the product card. */
.stock-position-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.stock-position{padding:15px 16px;border:1px solid var(--line);border-radius:11px;background:#f8faf5;min-width:0}
.stock-position-head{display:flex;justify-content:space-between;align-items:flex-start;gap:9px;margin-bottom:10px}
.stock-position-head strong{font-size:14px;overflow-wrap:anywhere}
.stock-position small{display:block;font-size:12px;color:var(--muted);line-height:1.5}
.stock-position .position-quantity{display:block;font-size:22px;font-weight:600;margin-top:7px;font-variant-numeric:tabular-nums}
.stock-position-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.stock-history-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:18px 0}
.stock-history-controls>.field{flex:1;max-width:330px}
.stock-history-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f1f5ed;border:1px solid #e0e9d9;border-radius:10px;padding:15px;margin-bottom:15px}
.stock-history-context small{display:block;font-size:12px;color:var(--muted);line-height:1.5}
.stock-history-context strong{display:block;font-size:20px;margin-top:5px;font-variant-numeric:tabular-nums}
.stock-history-description{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 17px}
.stock-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:17px 0 0}
.stock-history-pagination .small{font-size:12px;margin:0}
.stock-history-table td{vertical-align:top}
.stock-history-table .wrap-cell{min-width:190px}
.stock-history-table .receipt-item-description{max-width:240px}
.stock-history-error{margin:14px 0}
.stock-location-intro{margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.7}
.sale-location-control{margin-bottom:16px;padding:13px 15px;background:#f0f5ed;border:1px solid #e0e8d9;border-radius:10px}
.sale-location-control .field{margin:0}
.sale-location-control .field small{font-size:11px}
.sale-location-control[hidden]{display:none}
.cart-stock-message{display:block;margin-top:8px;font-size:11px;line-height:1.6;color:var(--amber)}
.cart-row[data-stock-invalid=true]{background:#fff8ed;border-radius:7px;padding:12px 7px}
.physical-transfer-hint{padding:13px 15px;margin:15px 0 0;background:#f1f5ed;border:1px solid var(--line);border-radius:9px;font-size:13px;color:var(--muted);line-height:1.7}
.linked-position-list{display:flex;gap:7px;flex-wrap:wrap;min-width:180px;max-width:350px;margin-top:7px}
.linked-position-list>span{font-size:11px;padding:4px 7px;background:#f1f5ec;border-radius:5px;color:#536c58;white-space:normal;overflow-wrap:anywhere}
.stock-location-directory{margin:0 0 18px;border:1px solid var(--line);border-radius:10px;padding:0 15px;background:#fff}
.stock-location-directory>summary{padding:12px 0;min-height:44px;cursor:pointer;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.stock-location-directory>summary .tag{margin-left:7px}
.stock-location-directory .linked-position-list{max-width:none;margin:3px 0 12px}
.stock-location-directory>p{line-height:1.6;margin:0 0 14px}
.stock-history-table{max-width:100%;overflow:hidden}
.stock-history-table .table-scroll{max-width:100%;overflow-x:auto}
.cart-row[data-stock-invalid=false] .cart-stock-message{color:var(--muted)}
.sale-location-control .button{min-height:44px;margin-top:7px}
.stock-position-actions>.button{min-height:44px}
/* A product remains simple until its family needs distinct sellable variations. */
.variant-attributes{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px;max-width:100%}
.variant-attributes>span{display:inline-flex;gap:5px;align-items:baseline;background:#eef3e9;border:1px solid #dfe7d8;border-radius:5px;padding:3px 6px;color:#486049;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.variant-attributes>span>small{display:inline!important;margin:0!important;font-size:10px!important;color:#6d7c67!important}
.variant-family-context{padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#f7faf2;margin-bottom:19px}
.variant-family-context>small{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.variant-family-context>strong{display:block;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.variant-family-context>p{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 0}
.variant-family-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.variant-family-head h3{margin:0}
.variant-family-table table{min-width:610px}
.variant-family-table .stock-actions{min-width:125px;flex-wrap:wrap}
.variant-family-table td:first-child{min-width:170px;max-width:270px}
.variant-current{box-shadow:inset 3px 0 0 var(--green)}
.variant-attribute-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:10px;align-items:end;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px}
.variant-attribute-row>.field{margin:0;min-width:0}
.variant-attribute-row>.icon-button{min-width:44px;min-height:44px;margin-bottom:1px}
.variant-attribute-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
.variant-attribute-actions>.button{min-height:44px}
.attribute-create-panel{margin-top:18px;border:1px solid var(--line);border-radius:9px;padding:0 14px;background:#fafbf7}
.attribute-create-panel>summary{min-height:44px;padding:13px 0;font-size:13px;font-weight:600;line-height:1.5;cursor:pointer}
.attribute-create-panel .form-grid{margin-top:12px}
.attribute-create-panel .button{margin:10px 0 14px;min-height:44px}
.attribute-create-status{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 13px}
.attribute-create-status[data-error=true]{color:#9b3c35}
.variant-fixed-characteristics{margin:12px 0 16px}
.variant-fixed-characteristics>p{font-size:12px;color:var(--muted);line-height:1.7}
.variant-template-help{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0 0}
.variant-legacy-note{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:7px}
.catalog-card .variant-attributes{margin:7px 0 5px}
.catalog-card .variant-attributes>span{font-size:10px}
.cart-row-title .variant-attributes{margin:4px 0 0}
.cart-row-title .variant-attributes>span{font-size:10px}
@media(max-width:700px){.variant-attribute-row{grid-template-columns:minmax(0,1fr) 44px;gap:9px}.variant-attribute-row>.field:first-child{grid-column:1/-1}.variant-attribute-row>.field:nth-child(2){grid-column:1}.variant-family-context{padding:12px 14px}.variant-family-head>.button{width:100%}.variant-family-table table{min-width:590px}.variant-attribute-actions>.button{flex:1}.attribute-create-panel{padding:0 12px}}
@media(max-width:700px){.stock-position-grid{grid-template-columns:1fr}.stock-history-controls{align-items:stretch;flex-direction:column}.stock-history-controls>.field{max-width:none}.stock-history-controls>.button{width:100%}.stock-history-context{gap:10px;padding:13px}.stock-history-context strong{font-size:18px}.stock-history-pagination{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stock-history-pagination .small{grid-column:1/-1}.stock-history-pagination .button{padding:10px 8px;font-size:12px}.stock-position-actions>.button{flex:1}.sale-location-control{padding:11px 12px}.linked-position-list{max-width:280px}}

/* Receiving goods connects a supplier, physical quantities and the purchase obligation. */
.service-directory{min-width:0;max-width:100%;overflow:hidden}
.service-directory .table-scroll{max-width:100%;overflow-x:auto}
.service-directory td:first-child{min-width:185px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.service-directory td:nth-child(3){min-width:180px;max-width:250px;white-space:normal;overflow-wrap:anywhere}
.service-directory td:last-child{white-space:nowrap}
.service-progress{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0;margin:24px 0}
.service-progress>li{min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:#fafbf7;color:var(--muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.service-progress>li.current{background:#e5efde;border-color:#91b28a;color:#315638;font-weight:700}
.service-progress>li.passed{color:#4e7056;background:#f1f6ec}
.service-text{border-top:1px solid var(--line);padding-top:17px;margin:20px 0}
.service-text>h3{font-size:14px;line-height:1.6;margin:0 0 8px}
.service-text>p{font-size:13px;line-height:1.7;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.service-history{list-style:none;padding:0;margin:12px 0 0;border-left:2px solid #dce7d5}
.service-history>li{position:relative;margin-left:17px;padding:0 0 19px;overflow-wrap:anywhere}
.service-history>li:before{position:absolute;content:"";width:9px;height:9px;border-radius:50%;background:#7a9b75;left:-22.5px;top:5px}
.service-history>li:last-child{padding-bottom:0}
.service-history>li>strong{display:block;font-size:13px;font-weight:600}
.service-history>li>small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:4px}
.service-history>li>p{color:var(--muted);font-size:12px;line-height:1.7;white-space:pre-wrap;margin:7px 0 0}
.service-modal .customer-form-section{min-width:0}
.service-modal .customer-section-content{min-width:0}
.service-modal select{max-width:100%;text-overflow:ellipsis}
.service-modal #service-equipment-status{line-height:1.7;overflow-wrap:anywhere}
.service-modal #service-equipment-reload{margin:0 0 6px}
.service-item-editor [data-service-unit],.service-item-editor [data-service-warning]{line-height:1.7;overflow-wrap:anywhere;margin:9px 0 14px}
.service-item-editor [data-service-warning]:empty{display:none}
.service-modal .detail-item{min-width:0;overflow-wrap:anywhere}
.service-modal .customer-detail-section>h3{line-height:1.6}
@media(max-width:700px){.service-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:19px 0}.service-progress>li{padding:9px 11px;font-size:11px}.service-modal .purchase-intro{padding:13px 14px}.service-modal .purchase-item-editor{padding:13px}.service-modal .customer-section-content{padding:14px}.service-actions>.button{font-size:11px}.service-modal #service-equipment-reload{width:100%}.service-history>li{margin-left:14px}.service-history>li:before{left:-19.5px}}

.quote-modal{max-width:820px;width:min(820px,calc(100vw - 40px))}
.quote-modal .modal-head{position:sticky;top:0;background:var(--surface);z-index:2;border-bottom:1px solid var(--line)}
.quote-modal .modal-head h2{overflow-wrap:anywhere}
.quote-detail-modal .detail-item>strong,.quote-detail-modal .detail-item>span{display:block;overflow-wrap:anywhere}
.quote-detail-modal .detail-item>span{margin-top:4px;color:var(--muted);font-size:12px}
.quote-modal .modal-actions{position:sticky;bottom:0;margin:0 -27px -27px;padding:16px 27px;background:var(--surface);border-top:1px solid var(--line);z-index:1;flex-wrap:wrap}
.quote-modal .button,.quote-modal .icon-button,.quote-modal select,.quote-modal input:not([type=radio]){min-height:44px}
.quote-directory{min-width:0;max-width:100%;overflow:hidden}
.quote-directory .table-scroll{max-width:100%;overflow-x:auto}
.quote-directory td:first-child{min-width:185px;max-width:300px;overflow-wrap:anywhere}
.quote-directory td:last-child{white-space:nowrap}
.quote-receipt-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:22px}
.quote-receipt-head>strong{font-size:26px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.quote-detail-modal .receipt-line{gap:16px;min-width:0}
.quote-detail-modal .receipt-item{min-width:0;overflow-wrap:anywhere}
.quote-detail-modal .receipt-item>small{display:block;font-size:12px;line-height:1.7;color:var(--muted)}
.quote-detail-modal .receipt-line>strong{flex-shrink:0;font-variant-numeric:tabular-nums}
.quote-notes{border-top:1px solid var(--line);padding-top:18px;margin:20px 0}
.quote-notes h3{font-size:14px;margin:0 0 8px}
.quote-notes p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:13px;line-height:1.7;margin:0}
.quote-fixed-price{border:1px solid var(--line);border-radius:9px;background:white;padding:12px 14px;min-width:0}
.quote-fixed-price>small{font-size:12px;color:var(--muted);display:block}
.quote-fixed-price>strong{display:block;font-size:20px;color:var(--forest);margin:5px 0;overflow-wrap:anywhere}
.quote-fixed-price>p{font-size:11px;color:var(--muted);line-height:1.6;margin:0}
.quote-item-editor [data-quote-unit],.quote-item-editor [data-quote-price-warning]{line-height:1.7;margin:10px 0 14px;overflow-wrap:anywhere}
.quote-item-editor [data-quote-price-warning]:empty{display:none}
.quote-conflict{border:1px solid #dec79c;border-radius:10px;background:#fff9ed;padding:15px;margin-bottom:20px}
.quote-conflict[hidden]{display:none}
.quote-conflict p{font-size:13px;line-height:1.7;color:#795c2b;margin:0 0 12px}
.quote-price-review{border:1px solid #dce7d5;border-radius:10px;background:#f5f8f0;padding:16px;margin:19px 0}
.quote-price-review h3{font-size:14px;margin:0 0 8px}
.quote-price-review>p{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 13px}
.quote-price-review>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:10px 0;border-top:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.quote-price-review>div>small{grid-column:1/-1;color:var(--muted)}
.quote-stock-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:10px 0;border-top:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.quote-stock-line>small{grid-column:1/-1;color:var(--muted)}
.quote-modal .payment-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.quote-modal .payment-options>label{min-height:44px;justify-content:center;padding:10px 8px}
.quote-actions>.button{font-size:12px;min-width:0}
@media(max-width:700px){.quote-modal{width:calc(100% - 22px)}.quote-modal .modal-actions{margin:0 -18px -19px;padding:14px 18px;gap:8px}.quote-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quote-actions>.button{width:100%;padding:10px 8px;font-size:12px;line-height:1.5;white-space:normal}.quote-detail-modal .detail-grid{grid-template-columns:1fr}.quote-detail-modal .receipt-line{flex-wrap:wrap;gap:10px}.quote-detail-modal .receipt-line>strong{margin-left:auto}.quote-receipt-head>strong{font-size:24px}.quote-modal .payment-options{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-price-review>div,.quote-stock-line{grid-template-columns:1fr}.quote-price-review>div>strong,.quote-stock-line>strong{font-size:12px}.quote-modal .purchase-item-editor{padding:13px}.quote-modal .purchase-review{padding:14px;font-size:13px;align-items:center}.quote-modal .purchase-review>strong{font-size:21px;max-width:180px}.quote-conflict>.button{width:100%}}

.purchase-modal{max-width:820px;width:min(820px,calc(100vw - 40px))}
.purchase-modal .modal-head{position:sticky;top:0;background:var(--surface);z-index:2;border-bottom:1px solid var(--line)}
.purchase-modal .modal-actions{position:sticky;bottom:0;margin:0 -27px -27px;padding:18px 27px;background:var(--surface);border-top:1px solid var(--line);z-index:1}
.purchase-intro{display:flex;align-items:flex-start;gap:12px;padding:15px 17px;background:#f0f5ed;border:1px solid #e1eadd;border-radius:11px;margin-bottom:23px}
.purchase-intro svg{width:21px;height:21px;flex:0 0 21px;margin-top:2px;color:var(--green)}
.purchase-intro p{font-size:13px;line-height:1.7;margin:0;color:#4d6553}
.purchase-items-section{margin:26px 0}
.purchase-items-section .variant-family-head h3{font-size:17px}
.purchase-item-editor{min-width:0;border:1px solid var(--line);border-radius:11px;padding:16px;margin:16px 0;background:#fbfcf8}
.purchase-item-editor legend{font-size:12px;font-weight:600;padding:0 8px;color:#56705b}
.purchase-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;font-size:13px;font-weight:600;color:var(--green)}
.purchase-item-head>span{overflow-wrap:anywhere;min-width:0}
.purchase-item-editor .field{min-width:0}
.purchase-item-editor .field>select{width:100%;max-width:100%;text-overflow:ellipsis}
.purchase-item-editor>[data-purchase-unit]{font-size:12px;line-height:1.6;margin:0 0 15px}
.purchase-item-editor .field-wide{grid-column:1/-1}
.purchase-review{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 14px;border:1px solid #dce7d5;border-radius:11px;background:#f0f5e9;padding:16px 18px;margin:23px 0;font-size:14px;color:var(--forest)}
.purchase-review>strong{font-size:23px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.purchase-review>p{grid-column:1/-1;font-size:12px;line-height:1.6;margin:0;color:#61735f}
.purchase-confirmation{font-size:12px;color:var(--muted);line-height:1.7;margin:16px 0 24px}
.purchase-directory{min-width:0;max-width:100%;overflow:hidden}
.purchase-directory .table-scroll{max-width:100%;overflow-x:auto}
.purchase-directory table{min-width:770px}
.purchase-directory td:first-child{min-width:205px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.purchase-directory td:nth-child(3){min-width:150px;max-width:230px;white-space:normal;overflow-wrap:anywhere}
.supplier-directory .stock-actions{flex-wrap:wrap;min-width:135px}
.supplier-products{max-width:100%;min-width:0;overflow:hidden}
.supplier-products .table-scroll{max-width:100%;overflow-x:auto}
.supplier-products table{min-width:560px}
.supplier-products td{white-space:normal;overflow-wrap:anywhere}
.supplier-products td:first-child{min-width:230px;max-width:300px}
.supplier-products td:nth-child(2){min-width:150px;max-width:210px}
.purchase-receipt-head{margin:0 0 23px}
.purchase-receipt-head h3{font-size:23px;line-height:1.4;overflow-wrap:anywhere;margin:13px 0 5px}
.purchase-receipt-head p{font-size:13px;color:var(--muted);line-height:1.6;margin:0}
.purchase-detail-modal .receipt-line{font-size:14px;padding:16px 0}
.purchase-detail-modal .detail-item strong{overflow-wrap:anywhere;white-space:normal}
.purchase-detail-modal .receipt-line>strong{font-size:15px;font-variant-numeric:tabular-nums}
@media(max-width:700px){.purchase-modal{width:calc(100% - 22px)}.purchase-modal .modal-actions{margin:0 -18px -19px;padding:15px 18px;bottom:0}.purchase-modal .modal-actions>.button{min-width:0;padding-left:10px;padding-right:10px;font-size:12px}.purchase-item-editor{padding:13px}.purchase-items-section .variant-family-head{gap:10px}.purchase-intro{padding:13px 14px}.purchase-review{padding:14px;font-size:13px;align-items:center}.purchase-review>strong{font-size:21px;max-width:180px}.purchase-receipt-head h3{font-size:20px}.purchase-detail-modal .detail-grid{grid-template-columns:1fr}.purchase-detail-modal .receipt-line{flex-wrap:wrap;gap:10px}.purchase-detail-modal .receipt-line>strong{margin-left:auto}.supplier-detail-modal .variant-family-head>.button{width:100%}}

/* Group identification stays separate from each person's store access. */
.company-directory{margin-top:23px;min-width:0;max-width:100%}
.company-directory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:23px}
.company-directory-head>div{min-width:0}
.company-directory-head h2{font-size:19px;line-height:1.4;margin:0 0 8px}
.company-directory-head p{font-size:13px;line-height:1.7;color:var(--muted);margin:0;overflow-wrap:anywhere}
.company-directory-head>.button{flex-shrink:0;min-height:44px}
.company-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.company-profile-card{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fbfcf8}
.company-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.company-card-head>.info-card-icon{flex-shrink:0;margin:0;width:39px;height:39px}
.company-card-head>.info-card-icon svg{width:20px;height:20px}
.company-name-link{font-size:18px;line-height:1.45;text-align:left;white-space:normal;min-height:44px;max-width:100%;padding:0;overflow-wrap:anywhere}
.company-name-link:hover{text-decoration:underline;text-underline-offset:3px}
.company-profile-card>p{font-size:13px;color:var(--muted);line-height:1.6;margin:5px 0 0;overflow-wrap:anywhere}
.company-profile-card>.company-card-code{font-size:12px;letter-spacing:.2px}
.company-card-meta{display:grid;gap:11px;margin:20px 0}
.company-card-meta>div{min-width:0}
.company-card-meta dt{font-size:11px;color:var(--muted);margin:0 0 4px}
.company-card-meta dd{font-size:13px;line-height:1.6;margin:0;color:#425c49;overflow-wrap:anywhere}
.company-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:1px}
.company-card-actions>.button{min-height:44px;min-width:0;white-space:normal;text-align:center}
.company-directory-note{line-height:1.7;margin:19px 0 0;overflow-wrap:anywhere}
.company-users-pending{margin-top:23px;min-width:0}
.company-users-pending h2{font-size:18px;line-height:1.5;margin-bottom:10px}
.company-users-pending p{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:15px}
.company-modal .field,.company-modal .form-grid{min-width:0}
.company-modal .field>select{max-width:100%;text-overflow:ellipsis}
.company-modal .customer-kind-status{margin:10px 0 20px;line-height:1.6}
.company-modal .modal-actions>.button{min-width:0;white-space:normal;text-align:center}
.company-create-preview{padding:17px 19px;background:#f0f5e9;border:1px solid #dce7d5;border-radius:11px;margin:24px 0;color:#48614c;overflow-wrap:anywhere}
.company-create-preview h3{font-size:15px;line-height:1.6;margin:0 0 10px;color:var(--forest)}
.company-create-preview p,.company-create-preview li{font-size:13px;line-height:1.7}
.company-create-preview p{margin:10px 0 0}
.company-create-preview ul{padding-left:20px;margin:12px 0 0}
.company-create-preview li+li{margin-top:6px}
.company-edit-explanation{font-size:13px;line-height:1.7;color:var(--muted);margin:21px 0 25px;overflow-wrap:anywhere}
.company-conflict{background:var(--amber-light);border:1px solid #eadbc1;border-radius:10px;padding:15px 17px;margin:21px 0;color:#775628}
.company-conflict[hidden]{display:none}
.company-conflict p{font-size:13px;line-height:1.7;margin:0 0 13px}
.company-conflict>.button{background:#fff;color:#775628;min-height:44px;white-space:normal}
.company-detail-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:23px}
.company-detail-head>.info-card-icon{flex:0 0 54px;width:54px;height:54px;margin:0}
.company-detail-head>.info-card-icon svg{width:27px;height:27px}
.company-detail-head>div{min-width:0}
.company-detail-head h3{font-size:23px;font-weight:620;line-height:1.4;margin:10px 0 5px;overflow-wrap:anywhere}
.company-detail-head p{font-size:13px;line-height:1.6;color:var(--muted);margin:0;overflow-wrap:anywhere}
@media(max-width:700px){
  .company-directory-head{flex-direction:column;gap:14px;margin-bottom:18px}
  .company-directory-head>.button{width:100%}
  .company-directory-head h2{font-size:17px}
  .company-profile-grid{grid-template-columns:1fr;gap:13px}
  .company-profile-card{padding:16px}
  .company-name-link{font-size:17px}
  .company-card-actions>.button{flex:1;padding-left:10px;padding-right:10px;font-size:12px}
  .company-modal .modal-actions>.button{font-size:12px;padding-left:10px;padding-right:10px}
  .company-create-preview{padding:15px}
  .company-conflict{padding:14px}
  .company-conflict>.button{width:100%}
  .company-detail-head{gap:12px}
  .company-detail-head>.info-card-icon{width:45px;height:45px;flex-basis:45px}
  .company-detail-head>.info-card-icon svg{width:23px;height:23px}
  .company-detail-head h3{font-size:20px}
  .company-detail-modal .detail-grid{grid-template-columns:1fr}
}

/* Each person receives only the stores and roles explicitly selected. */
.team-directory{margin-top:23px;min-width:0;max-width:100%}
.team-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.team-profile-card{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fbfcf8}
.team-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.team-card-head>.avatar{flex-shrink:0;width:42px;height:42px;background:#e6eedf}
.team-name-link{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:17px;line-height:1.5;text-align:left;white-space:normal;min-height:44px;max-width:100%;padding:0;overflow-wrap:anywhere}
.team-name-link:hover>strong{text-decoration:underline;text-underline-offset:3px}
.team-name-link>strong{min-width:0}
.team-profile-card>p{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.team-profile-card>.team-email{margin:4px 0}
.team-profile-card>.team-group-role{font-size:13px;font-weight:600;color:#45604c;margin:4px 0 16px}
.team-access-summary{display:grid;gap:8px;margin:0 0 15px;min-width:0}
.team-access-summary>span{display:block;font-size:12px;line-height:1.6;padding:8px 10px;border:1px solid #e0e7d9;background:#f1f5ed;border-radius:7px;overflow-wrap:anywhere}
.team-access-summary>span>small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.team-access-summary>p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}
.team-profile-card>.team-default-company{margin:0 0 17px}
.team-modal .field,.team-modal .form-grid{min-width:0}
.team-modal .field>select{max-width:100%;text-overflow:ellipsis}
.team-modal .modal-actions>.button{min-width:0;white-space:normal;text-align:center}
.team-fixed-email{padding:15px 16px;border:1px solid var(--line);border-radius:10px;background:#f8faf5;margin-bottom:12px;min-width:0}
.team-fixed-email>small{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.team-fixed-email>strong{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.team-fixed-email>p{font-size:12px;color:var(--muted);line-height:1.7;margin:7px 0 0}
.team-own-access{font-size:13px;color:#506855;line-height:1.7;margin:0}
.team-own-access p{font-size:12px;line-height:1.7;color:var(--muted);margin:6px 0 0}
.team-access-editors{display:grid;gap:14px;min-width:0}
.team-access-editor{min-width:0;border:1px solid #dce5d5;border-radius:11px;background:#fafcf7;padding:14px 15px 16px;margin:0}
.team-access-editor>legend{font-size:14px;font-weight:600;color:#415d49;padding:0 7px;line-height:1.6;max-width:100%;overflow-wrap:anywhere}
.team-store-code{font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere;margin:1px 0 16px}
.team-access-editor .form-grid{align-items:start}
.team-access-editor .field{margin-bottom:0}
.team-access-role[hidden]{display:none}
.team-access-help{font-size:12px;color:#5c725c;line-height:1.7;margin:13px 0 0}
.team-access-detail-list{display:grid;gap:10px}
.team-access-detail{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:#f8faf5;min-width:0}
.team-access-detail>div{min-width:0}
.team-access-detail strong{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.team-access-detail p{font-size:12px;line-height:1.6;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}
.team-access-detail small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.team-access-detail>.tag{flex-shrink:0}
.team-change-impact{padding:14px 16px;background:var(--amber-light);border:1px solid #eadbc1;border-radius:10px;font-size:13px;color:#775628;line-height:1.7;margin:20px 0}
.team-change-impact[hidden]{display:none}
.team-operation-note{font-size:12px;line-height:1.7;color:var(--muted);margin:22px 0 25px}
.team-detail-modal .customer-profile-head>div{min-width:0}
.team-detail-modal .customer-profile-head>.avatar{flex-shrink:0}
@media(max-width:700px){
  .team-profile-grid{grid-template-columns:1fr;gap:13px}
  .team-profile-card{padding:16px}
  .team-profile-card .company-card-actions>.button{flex:1;padding-left:10px;padding-right:10px;font-size:12px}
  .team-modal .modal-actions>.button{font-size:12px;padding-left:10px;padding-right:10px}
  .team-access-editor{padding:13px}
  .team-access-detail{padding:12px;gap:8px;flex-wrap:wrap}
  .team-access-detail>div{flex:1;min-width:150px}
  .team-change-impact{padding:13px 14px}
  .team-detail-modal .detail-grid{grid-template-columns:1fr}
}

.xml-directory,.xml-source-items{min-width:0;max-width:100%;overflow:hidden}
.xml-directory .table-scroll,.xml-source-items .table-scroll{max-width:100%;overflow-x:auto}
.xml-directory table{min-width:830px}
.xml-directory td:first-child{min-width:245px;max-width:310px;white-space:normal;overflow-wrap:anywhere}
.xml-directory .button{min-height:44px}
.xml-row-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:175px;max-width:215px}
.xml-source-items{margin:23px 0}
.xml-source-items table{min-width:660px}
.xml-source-items td:first-child{min-width:240px;max-width:300px;white-space:normal;overflow-wrap:anywhere}
.xml-modal .modal-body,.xml-modal .detail-item,.xml-mapping,.xml-upload-intro{min-width:0}
.xml-modal .detail-item strong{display:block;overflow-wrap:anywhere}
.xml-modal .modal-actions>.button{min-width:0;white-space:normal;text-align:center;line-height:1.5}
.xml-upload-intro{margin:20px 0;font-size:13px;color:var(--muted);line-height:1.7}
.xml-upload-intro p:last-child{margin-bottom:0}
.xml-modal textarea[name=xml]{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.7;max-width:100%;min-height:190px;resize:vertical}
.xml-modal input[type=file]{padding:10px;width:100%;min-width:0;max-width:100%;overflow:hidden;font-size:12px;color:var(--muted)}
.xml-modal input[type=file]::file-selector-button{font:inherit;min-height:44px;padding:9px 12px;background:var(--green-light);border:1px solid #d4e5d5;border-radius:7px;color:var(--forest);margin-right:10px;cursor:pointer}
.xml-document-key{padding:14px 16px;margin:20px 0;border:1px solid var(--line);border-radius:10px;background:#f8faf5;min-width:0}
.xml-document-key small{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.xml-document-key strong{display:block;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.7;letter-spacing:.2px;font-weight:600}
.xml-adjustments{padding:16px;border:1px solid #ebdabb;background:#fff9ef;border-radius:10px;margin:20px 0;color:#795c2b}
.xml-adjustments h3,.xml-blockers h3{font-size:14px;margin:0 0 10px}
.xml-adjustments>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #eee2cc;font-size:12px}
.xml-adjustments>div>strong{flex-shrink:0;font-variant-numeric:tabular-nums}
.xml-adjustments>p,.xml-blockers>p{font-size:12px;line-height:1.7;margin:12px 0 0;overflow-wrap:anywhere}
.xml-blockers{padding:16px;border:1px solid #e5c5c2;border-radius:10px;background:#fff6f4;color:#90463e;margin:20px 0}
.xml-blockers>ul{padding-left:20px;margin:0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.xml-blockers li+li{margin-top:7px}
.xml-source-line{background:white;border:1px solid var(--line);border-radius:9px;padding:14px;margin:0 0 18px;min-width:0;overflow-wrap:anywhere}
.xml-source-line>strong{display:block;font-size:14px;line-height:1.5;margin:0 0 4px}
.xml-source-line>small{display:block;font-size:11px;color:var(--muted);line-height:1.6}
.xml-source-line>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.xml-source-line>div>span{font-size:12px;color:var(--muted);line-height:1.6;min-width:0}
.xml-source-line>div strong{display:block;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.xml-mapping [data-xml-unit]{line-height:1.7;margin:12px 0 17px;overflow-wrap:anywhere}
.xml-line-check{font-size:12px;line-height:1.7;margin:4px 0 0;overflow-wrap:anywhere;color:var(--muted)}
.xml-line-check[data-valid=true]{color:#28724d}
.xml-line-check[data-valid=false]{color:#a3463b}
.xml-unit-confirmation{display:flex;align-items:center;gap:12px;border:1px solid #d6e4d1;border-radius:10px;background:#f4f8ef;padding:14px 16px;min-height:64px;cursor:pointer;margin:23px 0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.xml-modal .xml-unit-confirmation>input{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;accent-color:var(--green)}
.xml-unit-confirmation>span{min-width:0}
.xml-receipt-modal .modal-actions{flex-wrap:wrap}
.xml-receipt-modal .modal-actions>.button{min-height:44px;min-width:0;white-space:normal;line-height:1.5;text-align:center}
@media(max-width:700px){
  .xml-modal .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .xml-modal .modal-actions>.button{width:100%;font-size:12px;padding:10px 8px}
  .xml-modal .detail-grid{grid-template-columns:1fr;gap:14px}
  .xml-upload-intro{font-size:12px}
  .xml-source-line{padding:12px}
  .xml-source-line>div{grid-template-columns:1fr;gap:8px}
  .xml-document-key,.xml-adjustments,.xml-blockers{padding:13px}
  .xml-document-key strong{font-size:12px}
  .xml-unit-confirmation{padding:13px;font-size:12px}
  .xml-receipt-modal .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .xml-receipt-modal .modal-actions>.button{width:100%;font-size:12px;padding:10px 8px}
}

.payable-directory{min-width:0;max-width:100%;overflow:hidden}
.payable-directory .table-scroll{max-width:100%;overflow-x:auto}
.payable-directory table{min-width:910px}
.payable-directory td:first-child{min-width:230px;max-width:300px;white-space:normal;overflow-wrap:anywhere}
.payable-directory .button{min-height:44px}
.payable-modal .modal-body,.payable-modal .detail-item,.payable-modal .field{min-width:0}
.payable-modal .modal-head h2,.payable-modal .modal-head p,.payable-modal .detail-item strong{overflow-wrap:anywhere}
.payable-modal .detail-item strong{display:block}
.payable-modal .modal-actions>.button{min-width:0;white-space:normal;text-align:center;line-height:1.5}
.payable-modal .modal-actions{display:flex;flex-wrap:wrap;gap:10px}
.payable-profile-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 18px;align-items:center;margin:22px 0;min-width:0}
.payable-profile-head>.tag{justify-self:start;grid-row:1/3}
.payable-profile-head>strong{font-size:28px;color:var(--forest);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.payable-profile-head>small{grid-column:2;font-size:12px;color:var(--muted);text-align:right}
.payable-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}
.payable-amounts>div{padding:15px 17px;background:#f7faf3;border:1px solid var(--line);border-radius:10px;min-width:0}
.payable-amounts small{display:block;color:var(--muted);font-size:12px;line-height:1.7}
.payable-amounts strong{display:block;font-size:20px;color:var(--forest);margin-top:4px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.payable-fixed-amount{padding:19px;background:#f0f5e9;border:1px solid #dce7d5;border-radius:11px;margin:22px 0;min-width:0}
.payable-fixed-amount>small{display:block;font-size:13px;color:var(--muted)}
.payable-fixed-amount>strong{display:block;font-size:29px;line-height:1.5;color:var(--forest);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:4px 0}
.payable-fixed-amount>p{font-size:12px;line-height:1.7;color:var(--muted);margin:7px 0 0;overflow-wrap:anywhere}
.payable-blockers{padding:16px;border:1px solid #ebdabb;border-radius:10px;background:#fff9ef;color:#795c2b;margin:23px 0}
.payable-blockers h3{font-size:14px;margin:0 0 9px}
.payable-blockers ul{font-size:13px;line-height:1.7;margin:0;padding-left:20px;overflow-wrap:anywhere}
.payable-blockers>p{font-size:12px;margin:12px 0 0;line-height:1.7}
.payable-operation-note{line-height:1.7;overflow-wrap:anywhere;margin:22px 0 25px}
.supplier-payment-history{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:14px}
.supplier-payment-history>li{padding:16px;border:1px solid var(--line);border-radius:11px;background:#fbfcf8;min-width:0;overflow-wrap:anywhere}
.supplier-payment-history-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-bottom:10px;align-items:start;font-size:14px}
.supplier-payment-history-head>strong:last-child{font-variant-numeric:tabular-nums}
.supplier-payment-history>li>small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:3px}
.supplier-payment-history>li>p{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0 0}
.supplier-payment-history-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.supplier-payment-history-actions>.button{min-width:0;white-space:normal;text-align:center;line-height:1.5}
.supplier-payment-receipt-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:24px 0;min-width:0}
.supplier-payment-receipt-head>strong{font-size:28px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0;color:var(--forest)}
.payable-linked-receipt .modal-actions{flex-wrap:wrap}
.payable-linked-receipt .modal-actions>.button{min-height:44px;min-width:0;white-space:normal;line-height:1.5;text-align:center}
@media(max-width:700px){
  .payable-modal .modal-actions,.payable-linked-receipt .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .payable-modal .modal-actions>.button,.payable-linked-receipt .modal-actions>.button{width:100%;font-size:12px;padding:10px 8px}
  .payable-modal .detail-grid{grid-template-columns:1fr;gap:14px}
  .payable-profile-head{gap:0 10px}
  .payable-profile-head>strong,.supplier-payment-receipt-head>strong{font-size:24px}
  .payable-amounts{grid-template-columns:1fr;gap:10px}
  .payable-amounts>div,.payable-fixed-amount{padding:14px}
  .payable-fixed-amount>strong{font-size:25px}
  .payable-blockers{padding:13px}
  .supplier-payment-history>li{padding:13px}
  .supplier-payment-history-head{grid-template-columns:1fr;gap:5px;font-size:13px}
  .supplier-payment-history-actions>.button{flex:1;padding:10px;font-size:12px}
}

/* A12: carteira gerencial do cliente e uso integral no PDV. */
.customer-credit-modal .modal-body,.customer-credit-modal .detail-item,.customer-credit-modal .field{min-width:0}
.customer-credit-modal .modal-head p,.customer-credit-modal .detail-item strong{overflow-wrap:anywhere}
.customer-credit-modal .detail-item strong{display:block}
.customer-credit-modal .modal-actions>.button{min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.customer-credit-card{border:1px solid #d9e4d3;border-radius:13px;background:#f4f8ef;padding:20px;margin:20px 0;min-width:0}
.customer-credit-balance{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:15px;min-width:0}
.customer-credit-balance>div{min-width:0;flex:1 1 210px}
.customer-credit-balance small,.customer-credit-observed>small{display:block;font-size:12px;line-height:1.7;color:var(--muted)}
.customer-credit-balance strong{display:block;font-size:27px;line-height:1.4;color:var(--forest);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:5px}
.customer-credit-balance>.tag{white-space:normal;max-width:100%}
.customer-credit-card>p{margin:13px 0 0;color:var(--muted);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.customer-credit-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px;min-width:0}
.customer-credit-actions>.button{min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.customer-credit-unavailable{margin-top:15px}
.customer-credit-observed{padding:19px;background:#f0f5e9;border:1px solid #dce7d5;border-radius:11px;margin:22px 0;min-width:0}
.customer-credit-observed>strong{display:block;font-size:26px;line-height:1.5;color:var(--forest);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:4px 0}
.customer-credit-observed>p{font-size:13px;line-height:1.7;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}
.customer-credit-history{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:13px}
.customer-credit-history>li{padding:16px;border:1px solid var(--line);border-radius:11px;background:#fbfcf8;min-width:0;overflow-wrap:anywhere}
.customer-credit-history-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-bottom:10px;align-items:start;font-size:14px}
.customer-credit-history-head>strong:last-child{font-variant-numeric:tabular-nums}
.customer-credit-history>li>small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:3px}
.customer-credit-history>li>p{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0 0}
.customer-credit-history-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;min-width:0}
.customer-credit-history-actions>.button{min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.customer-credit-record-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:24px 0;min-width:0}
.customer-credit-record-head>.tag{white-space:normal;max-width:100%}
.customer-credit-record-head>strong{font-size:28px;color:var(--forest);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.customer-credit-sale-note{margin:22px 0}
.sale-modal .modal-head{position:sticky;top:0;background:var(--surface);z-index:2}
.sale-modal .payment-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sale-modal .payment-options label{min-width:0;min-height:44px;white-space:normal;padding:10px 7px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sale-modal .payment-options label:last-child:nth-child(odd){grid-column:1/-1}
.sale-credit-panel{border:1px solid #d9e4d3;border-radius:11px;padding:15px;background:#fff;margin:0 0 18px;min-width:0}
.sale-credit-panel[hidden],.sale-credit-panel [hidden]{display:none}
.sale-credit-panel h3{font-size:14px;margin:0 0 9px}
.sale-credit-status{font-size:13px;line-height:1.7;margin:0 0 12px;overflow-wrap:anywhere}
.sale-credit-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.sale-credit-amounts small{display:block;font-size:11px;line-height:1.7;color:var(--muted)}
.sale-credit-amounts strong{display:block;font-size:18px;font-variant-numeric:tabular-nums;color:var(--forest);overflow-wrap:anywhere;margin-top:4px}
.sale-credit-conflict{padding:12px;background:#fff9ef;border:1px solid #ebdabb;border-radius:8px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.sale-credit-panel>.button{width:100%;min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.sale-credit-panel>.small{font-size:12px;margin:12px 0 0;line-height:1.7}
.sale-modal #finish-sale{position:sticky;bottom:0;z-index:1;min-height:48px;flex-shrink:0}
.receivable-directory .button{min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.receivable-modal .supplier-payment-receipt-head>.tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.receivable-modal .supplier-payment-receipt-head>strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.receivable-modal .payable-profile-head>.tag{max-width:100%;white-space:normal}
.receivable-modal .detail-item strong{overflow-wrap:anywhere}
.receivable-sale-link{margin:18px 0 22px}
.receivable-sale-link>.button{min-height:44px;max-width:100%;white-space:normal;line-height:1.5;text-align:center}
@media(max-width:700px){
  .customer-credit-modal .detail-grid{grid-template-columns:1fr;gap:14px}
  .customer-credit-modal .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .customer-credit-modal .modal-actions>.button{width:100%;font-size:12px;padding:10px 8px}
  .customer-credit-card,.customer-credit-observed{padding:15px}
  .customer-credit-balance strong,.customer-credit-observed>strong,.customer-credit-record-head>strong{font-size:24px}
  .customer-credit-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .customer-credit-actions>.button{width:100%;font-size:13px;padding:11px 10px}
  .customer-credit-history>li{padding:13px}
  .customer-credit-history-head{grid-template-columns:1fr;gap:5px;font-size:13px}
  .customer-credit-history-actions>.button{flex:1 1 130px;padding:10px;font-size:12px}
  .sale-credit-panel{padding:13px}
  .sale-credit-amounts{grid-template-columns:1fr;gap:9px}
  .sale-credit-amounts strong{font-size:19px}
  .receivable-modal .modal-actions>.button{line-height:1.5}
  .receivable-payment-history .supplier-payment-history-actions>.button{flex:1 1 130px}
  .receivable-sale-link>.button{width:100%}
}

/* A14: inventário por local, contagens conscientes e revisão de diferenças. */
.inventory-directory td:first-child{min-width:220px;max-width:330px;white-space:normal;overflow-wrap:anywhere}
.inventory-directory .button{min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.inventory-modal{max-width:960px}
.inventory-modal .modal-body,.inventory-modal .field,.inventory-modal .detail-item{min-width:0}
.inventory-modal .modal-head p,.inventory-modal .detail-item strong{overflow-wrap:anywhere}
.inventory-modal .modal-actions>.button{min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.inventory-profile-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:23px 0 10px;min-width:0}
.inventory-profile-head>div{min-width:0;flex:1 1 240px}
.inventory-profile-head h3{font-size:21px;color:var(--forest);margin:0;overflow-wrap:anywhere}
.inventory-profile-head p{font-size:13px;color:var(--muted);margin:7px 0 0;overflow-wrap:anywhere}
.inventory-profile-head>.tag{white-space:normal;max-width:100%}
.inventory-lines{display:grid;gap:17px;margin:23px 0;min-width:0}
.inventory-line{padding:20px;border:1px solid var(--line);border-radius:12px;background:#fbfcf8;min-width:0}
.inventory-line-head{display:flex;gap:15px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;min-width:0}
.inventory-line-head>div{min-width:0;flex:1 1 240px}
.inventory-line-head h3{font-size:15px;margin:0;overflow-wrap:anywhere}
.inventory-line-head p{margin:6px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.inventory-line-head>.tag{white-space:normal;max-width:100%}
.inventory-line .variant-attributes{margin-top:10px}
.inventory-quantities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:19px 0}
.inventory-quantities>div{min-width:0;padding:12px;background:white;border:1px solid var(--line);border-radius:8px}
.inventory-quantities small,.inventory-saved-count small{display:block;color:var(--muted);font-size:12px;line-height:1.7}
.inventory-quantities strong,.inventory-saved-count strong{display:block;font-size:18px;color:var(--forest);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:4px}
.inventory-line .field{max-width:420px}
.inventory-line-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:14px 0 0;overflow-wrap:anywhere}
.inventory-line>.button{margin-top:16px;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.inventory-save-status{padding:13px 15px;border:1px solid #dce7d5;background:#f4f8ef;border-radius:9px;font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin:19px 0}
.inventory-modal .inventory-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.inventory-product-picker{margin:25px 0 0;min-width:0}
.inventory-product-picker h3{font-size:15px;margin:0 0 13px}
.inventory-product-picker>.search-wrap{max-width:none;width:100%}
#inventory-product-options{display:grid;gap:10px;margin:14px 0;min-width:0}
.inventory-product-choice{display:flex;gap:13px;align-items:flex-start;min-height:72px;padding:15px;border:1px solid var(--line);border-radius:11px;background:#fbfcf8;cursor:pointer;min-width:0}
.inventory-product-choice:has(input:checked){border-color:#8bab84;background:#f1f6eb}
.inventory-product-choice:has(input:disabled){opacity:.65;cursor:not-allowed}
.inventory-modal .inventory-product-choice>input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:1px 0 0;accent-color:var(--forest);flex-shrink:0}
.inventory-product-choice>span{min-width:0;display:block}
.inventory-product-choice strong{font-size:14px;display:block;overflow-wrap:anywhere}
.inventory-product-choice small{font-size:12px;color:var(--muted);display:block;line-height:1.7;overflow-wrap:anywhere;margin-top:4px}
.inventory-history{padding:15px 17px;background:#fbfcf8;border:1px solid var(--line);border-radius:11px;margin:23px 0}
.inventory-history>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center;font-size:14px}
.inventory-events{list-style:none;padding:0;margin:14px 0;display:grid;gap:12px}
.inventory-events>li{border-top:1px solid var(--line);padding-top:13px;min-width:0;overflow-wrap:anywhere}
.inventory-events>li>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
.inventory-events>li>div>span{font-size:12px;color:var(--muted)}
.inventory-events small,.inventory-events p{font-size:12px;color:var(--muted);line-height:1.7;display:block;margin:7px 0 0}
.inventory-confirm-review{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#f5f8ef}
.inventory-confirm-review h3{font-size:15px;margin:0 0 15px}
.inventory-confirm-review>p{font-size:13px;line-height:1.7;margin:0;overflow-wrap:anywhere}
.inventory-confirm-review ul{list-style:none;padding:0;margin:0;display:grid;gap:13px}
.inventory-confirm-review li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;font-size:13px;min-width:0;overflow-wrap:anywhere}
.inventory-confirm-review li>b{font-variant-numeric:tabular-nums;color:var(--forest)}
.inventory-retained{padding:16px;border:1px solid #e8d3af;border-radius:10px;background:#fff9ef;margin:23px 0;min-width:0}
.inventory-retained h3{font-size:14px;margin:0 0 10px}
.inventory-retained p{font-size:13px;line-height:1.7;margin:0;overflow-wrap:anywhere}
.inventory-retained ul{list-style:none;padding:0;margin:13px 0 0;display:grid;gap:10px}
.inventory-retained li{display:flex;justify-content:space-between;gap:12px;font-size:13px;overflow-wrap:anywhere;min-width:0}
@media(max-width:700px){
  .inventory-modal{width:calc(100% - 22px)}
  .inventory-modal .inventory-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .inventory-modal .modal-actions>.button{font-size:12px;padding:10px 8px;width:100%}
  .inventory-profile-head h3{font-size:19px}
  .inventory-line,.inventory-confirm-review{padding:14px}
  .inventory-line-head h3{font-size:14px}
  .inventory-quantities{grid-template-columns:1fr;gap:9px}
  .inventory-quantities>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px}
  .inventory-quantities strong{margin:0;font-size:17px;text-align:right}
  .inventory-quantities small{max-width:150px}
  .inventory-product-choice{padding:13px;gap:11px}
  .inventory-product-choice strong{font-size:13px}
  .inventory-history{padding:12px 14px}
  .inventory-confirm-review li{grid-template-columns:1fr;gap:5px;padding-bottom:10px;border-bottom:1px solid var(--line)}
  .inventory-retained li{flex-direction:column;gap:5px}
}

/* A15: remanejamento na mesma empresa, com os dois saldos conferidos. */
.product-page-head{flex-wrap:wrap}
.product-page-head>.head-actions{flex-wrap:wrap;flex:0 1 auto;max-width:100%}
.product-page-head>.head-actions .button{min-height:44px;white-space:normal;text-align:center;line-height:1.5;max-width:100%}
.product-page-head+.tabs{max-width:100%;overflow-x:auto}
.product-page-head+.tabs button{min-height:44px;flex-shrink:0;white-space:nowrap}
.relocation-directory{min-width:0;max-width:100%;overflow:hidden}
.relocation-directory .table-scroll{max-width:100%;overflow-x:auto}
.relocation-directory td:first-child{min-width:200px;max-width:330px;white-space:normal;overflow-wrap:anywhere}
.relocation-directory td:nth-child(2){min-width:160px;max-width:240px;white-space:normal;overflow-wrap:anywhere}
.relocation-directory .button{min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.relocation-modal{max-width:860px}
.relocation-modal .modal-body,.relocation-modal .field,.relocation-modal .detail-item{min-width:0}
.relocation-modal .modal-head p,.relocation-modal .detail-item strong{overflow-wrap:anywhere}
.relocation-modal .modal-actions>.button{min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.relocation-modal .quote-conflict .button{white-space:normal;text-align:center;line-height:1.5;min-height:44px}
.relocation-modal .head-actions,.relocation-modal .form-grid{min-width:0}
.relocation-profile-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin:23px 0 15px;min-width:0}
.relocation-profile-head>div{min-width:0;flex:1 1 220px}
.relocation-profile-head h3{font-size:21px;color:var(--forest);margin:0;overflow-wrap:anywhere}
.relocation-profile-head p{font-size:13px;color:var(--muted);margin:7px 0 0;overflow-wrap:anywhere}
.relocation-profile-head>.tag{white-space:normal;max-width:100%}
.relocation-review{margin:22px 0 0;padding:20px;border:1px solid var(--line);border-radius:12px;background:#f6f9f1;min-width:0}
.relocation-review>h3{font-size:15px;color:var(--forest);margin:0 0 15px}
.relocation-review>p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.relocation-product-label{display:grid;gap:6px;min-width:0;margin:0 0 12px}
.relocation-product-label strong{font-size:14px;color:var(--forest);overflow-wrap:anywhere}
.relocation-product-label span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.relocation-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0;min-width:0}
.relocation-position{padding:17px;border:1px solid var(--line);border-radius:10px;background:white;min-width:0}
.relocation-position-label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:9px}
.relocation-position h3{font-size:15px;color:var(--forest);overflow-wrap:anywhere;margin:0 0 14px;line-height:1.5}
.relocation-position dl{margin:0;display:grid;gap:11px}
.relocation-position dl>div{display:flex;justify-content:space-between;align-items:flex-start;gap:9px;min-width:0}
.relocation-position dt{font-size:12px;line-height:1.7;color:var(--muted)}
.relocation-position dd{font-size:18px;font-variant-numeric:tabular-nums;color:var(--forest);font-weight:600;text-align:right;overflow-wrap:anywhere;margin:0;min-width:0}
.relocation-position>.button{width:100%;margin-top:18px;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.relocation-blocked{color:#8b4a24;font-weight:500}
.relocation-reread{padding:13px 15px;border:1px solid #cdddba;border-radius:9px;background:#f1f7ea;margin:0 0 20px;color:var(--forest);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:700px){
  .relocation-modal{width:calc(100% - 22px)}
  .relocation-modal .modal-actions>.button{width:100%;font-size:12px;padding:10px 8px}
  .relocation-modal .quote-conflict .button{width:100%;font-size:12px;padding:10px 8px}
  .relocation-review{padding:14px}
  .relocation-preview{grid-template-columns:1fr;gap:11px}
  .relocation-position{padding:14px}
  .relocation-position dd{font-size:17px}
  .relocation-profile-head h3{font-size:19px}
}

/* A16: identificação, situação e principal dos locais físicos. */
.location-summary-button{min-height:44px;white-space:normal;text-align:center;line-height:1.5;max-width:100%}
.managed-location-directory{min-width:0;max-width:100%;overflow:hidden}
.managed-location-directory .table-scroll{max-width:100%;overflow-x:auto}
.managed-location-directory td:first-child{min-width:180px;max-width:310px;white-space:normal;overflow-wrap:anywhere}
.managed-location-directory .client-link{min-height:44px;white-space:normal}
.managed-location-directory .stock-actions{max-width:230px}
.managed-location-directory .button{min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.managed-location-tags{display:flex;gap:7px;flex-wrap:wrap;min-width:0}
.managed-location-tags>.tag{max-width:100%;white-space:normal}
.managed-location-modal{max-width:860px}
.managed-location-modal .modal-body,.managed-location-modal .field,.managed-location-modal .detail-item{min-width:0}
.managed-location-modal .modal-head p,.managed-location-modal .detail-item strong{overflow-wrap:anywhere}
.managed-location-modal .modal-actions>.button{min-width:0;min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.managed-location-modal .quote-conflict .button{white-space:normal;text-align:center;line-height:1.5;min-height:44px}
.managed-location-profile-head{display:flex;gap:14px;align-items:flex-start;margin:22px 0;min-width:0}
.managed-location-profile-head>div{min-width:0;flex:1}
.managed-location-profile-head h3{font-size:21px;color:var(--forest);margin:0 0 10px;overflow-wrap:anywhere}
.managed-location-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 25px;min-width:0}
.managed-location-actions>.button{min-height:44px;max-width:100%;white-space:normal;text-align:center;line-height:1.5}
.managed-location-observed{padding:17px 18px;border:1px solid var(--line);border-radius:10px;background:#f5f8ef;display:grid;gap:9px;margin:0 0 22px;min-width:0}
.managed-location-observed>strong{font-size:12px;color:var(--muted);font-weight:600}
.managed-location-observed>span{font-size:18px;color:var(--forest);font-weight:600;overflow-wrap:anywhere}
.managed-location-observed>small{font-size:12px;color:var(--muted)}
.managed-location-active-control{display:flex;gap:13px;align-items:flex-start;padding:17px;border:1px solid var(--line);border-radius:10px;background:#fbfcf8;cursor:pointer;min-height:64px;margin:22px 0 12px;min-width:0}
.managed-location-modal .managed-location-active-control>input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--forest);flex-shrink:0;margin:2px 0 0}
.managed-location-active-control:has(input:checked){background:#f2f7ec;border-color:#c6d8bc}
.managed-location-active-control>span{min-width:0}
.managed-location-active-control strong{display:block;font-size:14px;overflow-wrap:anywhere}
.managed-location-active-control small{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.7;overflow-wrap:anywhere}
.managed-location-restrictions{padding:15px 17px;border:1px solid #ead3b1;border-radius:10px;background:#fff8ed;margin:20px 0;font-size:13px;line-height:1.7;min-width:0;overflow-wrap:anywhere}
.managed-location-restrictions>strong{font-size:13px;color:#82532b}
.managed-location-restrictions ul{margin:8px 0 0;padding-left:18px}
.managed-location-form-status{padding:13px 15px;border:1px solid #dce7d5;background:#f4f8ef;border-radius:9px;font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin:21px 0}
.managed-location-blocked{color:#8b4a24;background:#fff8ed;border-color:#ead3b1}
.managed-location-reread{padding:13px 15px;border:1px solid #cdddba;border-radius:9px;background:#f1f7ea;margin:0 0 20px;color:var(--forest);font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.managed-location-primary-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0 0 24px;min-width:0}
.managed-location-primary-preview>div{padding:18px;border:1px solid var(--line);border-radius:10px;background:#f5f8ef;min-width:0}
.managed-location-primary-preview small{display:block;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.7px}
.managed-location-primary-preview strong{display:block;font-size:18px;color:var(--forest);overflow-wrap:anywhere;margin:10px 0;line-height:1.5}
.managed-location-primary-preview span{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.managed-location-history{margin:25px 0 0;min-width:0}
.managed-location-history>h3{font-size:15px;color:var(--forest);margin:0 0 11px}
.managed-location-events{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:15px;min-width:0}
.managed-location-events>li{padding:17px;border:1px solid var(--line);border-radius:10px;background:#fbfcf8;min-width:0}
.managed-location-event-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;min-width:0}
.managed-location-event-head strong{font-size:13px;color:var(--forest);overflow-wrap:anywhere}
.managed-location-event-head span{font-size:12px;color:var(--muted)}
.managed-location-events>li>p{font-size:12px;color:var(--muted);line-height:1.7;margin:10px 0 14px;overflow-wrap:anywhere}
.managed-location-snapshots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;min-width:0}
.managed-location-snapshots>div{padding:13px;background:white;border:1px solid var(--line);border-radius:8px;display:grid;gap:6px;min-width:0}
.managed-location-snapshots small{font-size:11px;color:var(--muted);line-height:1.6}
.managed-location-snapshots strong{font-size:13px;overflow-wrap:anywhere}
.managed-location-snapshots span{font-size:12px;color:var(--muted);overflow-wrap:anywhere;line-height:1.7}
.managed-location-retained{padding:17px;border:1px solid #ead3b1;border-radius:10px;background:#fff8ed;margin:22px 0;min-width:0}
.managed-location-retained h3{font-size:14px;margin:0 0 12px}
.managed-location-retained>p{font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin:0 0 13px}
@media(max-width:700px){
  .managed-location-modal{width:calc(100% - 22px)}
  .managed-location-modal .modal-actions>.button{width:100%;font-size:12px;padding:10px 8px}
  .managed-location-modal .quote-conflict .button{width:100%;font-size:12px;padding:10px 8px}
  .managed-location-actions{display:grid;grid-template-columns:1fr;width:100%;gap:9px}
  .managed-location-actions>.button{width:100%;font-size:12px;padding:10px 8px}
  .managed-location-primary-preview,.managed-location-snapshots{grid-template-columns:1fr;gap:10px}
  .managed-location-profile-head h3{font-size:19px}
  .managed-location-observed,.managed-location-events>li,.managed-location-primary-preview>div{padding:14px}
  .managed-location-retained{padding:14px}
}

/* A17: cadastros financeiros e opções monetárias observadas. */
.finance-registry-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 23px}
.finance-registry-switch button{min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.finance-registry-switch button.active{background:var(--green-light);border-color:var(--forest);color:var(--forest);font-weight:700}
.finance-registry-directory{min-width:0}
.finance-registry-directory td:first-child{min-width:180px}
.finance-registry-directory .client-link{text-align:left;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.finance-registry-tags{display:flex;flex-wrap:wrap;gap:6px}
.finance-registry-actions{display:flex;flex-wrap:wrap;gap:7px;min-width:140px}
.finance-registry-actions .button{min-height:44px;white-space:normal;text-align:center;line-height:1.5}
.finance-registry-profile-head{margin:22px 0;min-width:0}
.finance-registry-profile-head h3{font-size:23px;line-height:1.4;margin:12px 0 7px;overflow-wrap:anywhere}
.finance-registry-profile-head p{font-size:13px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.finance-registry-observed{display:grid;gap:8px;padding:17px;border:1px solid var(--line);border-radius:10px;background:var(--paper);margin:0 0 20px;min-width:0}
.finance-registry-observed strong{font-size:16px;overflow-wrap:anywhere}
.finance-registry-observed span,.finance-registry-observed small{font-size:12px;color:var(--muted);overflow-wrap:anywhere;line-height:1.7}
.finance-registry-active-control{display:flex;align-items:flex-start;gap:12px;padding:14px 0;min-height:44px;cursor:pointer}
.finance-registry-active-control input[type=checkbox]{width:20px;min-height:20px;height:20px;flex-shrink:0;margin:3px 0}
.finance-registry-active-control strong{font-size:14px;line-height:1.7;display:block}
.finance-registry-active-control small{font-size:12px;line-height:1.7;display:block;color:var(--muted);overflow-wrap:anywhere}
.finance-registry-restrictions,.finance-registry-retained{padding:16px;border:1px solid #ead3b1;border-radius:10px;background:#fff8ed;margin:20px 0;min-width:0}
.finance-registry-restrictions strong,.finance-registry-retained h3{font-size:14px;line-height:1.7}
.finance-registry-restrictions ul{padding-left:20px;margin:8px 0 0}
.finance-registry-restrictions li,.finance-registry-retained p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.finance-registry-reread{font-size:13px;line-height:1.7;padding:15px;background:#eff6ea;border:1px solid #d4e3cb;border-radius:9px;margin:0 0 20px;overflow-wrap:anywhere}
.finance-registry-events{list-style:none;margin:18px 0;padding:0;display:grid;gap:13px}
.finance-registry-events>li{padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0}
.finance-registry-event-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;line-height:1.7}
.finance-registry-event-head strong{font-size:13px;overflow-wrap:anywhere}
.finance-registry-event-head span,.finance-registry-events>li>p{font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.finance-registry-snapshots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.finance-registry-snapshots>div{display:grid;gap:7px;padding:12px;background:var(--paper);border-radius:8px;min-width:0;align-content:start}
.finance-registry-snapshots strong{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.finance-registry-snapshots span,.finance-registry-snapshots small{font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.finance-registry-modal .form-grid,.finance-registry-modal .field{min-width:0}
.finance-registry-modal input[name=code]{text-transform:uppercase}
.sale-payment-selection{padding:15px;border:1px solid #dbe5d6;border-radius:10px;background:#f8fbf6;margin:0 0 18px;min-width:0}
.sale-payment-selection[hidden],.sale-payment-selection [hidden]{display:none}
.sale-payment-selection .form-grid{gap:15px}
.sale-payment-selection .field{min-width:0;margin:0}
.sale-payment-selection select{width:100%;min-width:0;min-height:44px}
.sale-payment-selection .field>span{font-size:12px;line-height:1.7}
.sale-payment-selection .field>small{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.sale-payment-status{margin:13px 0 0;line-height:1.7;overflow-wrap:anywhere}
.sale-payment-status.sale-payment-blocked{color:#8a612b}
.sale-payment-refresh{margin:13px 0 0;padding:12px;background:#fff8ed;border:1px solid #ead3b1;border-radius:8px;min-width:0}
.sale-payment-refresh p{font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin:0 0 10px}
.sale-payment-refresh .button{min-height:44px;white-space:normal;text-align:center;line-height:1.5;max-width:100%}
.sale-modal .sale-payment-refresh .button{width:100%;font-size:12px;padding:10px 8px}
@media(max-width:700px){
  .finance-registry-modal{width:calc(100% - 22px)}
  .finance-registry-modal .modal-actions>.button,.finance-registry-modal .quote-conflict .button{width:100%;font-size:12px;padding:10px 8px;min-height:44px;white-space:normal}
  .finance-registry-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .finance-registry-switch button{font-size:12px;padding:10px 8px;line-height:1.5}
  .finance-registry-snapshots{grid-template-columns:1fr}
  .finance-registry-profile-head h3{font-size:19px}
  .finance-registry-observed,.finance-registry-events>li,.finance-registry-restrictions,.finance-registry-retained{padding:14px}
  .sale-payment-selection{padding:13px}
  .sale-payment-refresh .button{width:100%;font-size:12px;padding:10px 8px}
}
.customer-edit-revision{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0}
.customer-edit-revision>span{font-size:12px;font-weight:650;white-space:nowrap}.customer-edit-revision>p{font-size:12px;line-height:1.6;margin:0;flex:1;min-width:160px}
.customer-profile-conflict,.customer-save-uncertain,.customer-comparison{margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.customer-profile-conflict[hidden],.customer-save-uncertain[hidden]{display:none}.customer-profile-conflict>p,.customer-save-uncertain>p,.customer-comparison>p{font-size:13px;line-height:1.7;margin:0 0 12px;overflow-wrap:anywhere}
.customer-profile-conflict .button{min-height:44px;white-space:normal}.customer-comparison>h3{font-size:16px;margin:0 0 12px}.customer-comparison-fields{display:grid;gap:14px;margin-top:14px}
.customer-comparison-field{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0}.customer-comparison-field>h4{font-size:14px;margin:0 0 12px}
.customer-comparison-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.customer-comparison-values>div{min-width:0}.customer-comparison-values small{font-size:11px;color:var(--muted)}.customer-comparison-values p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;margin:6px 0}
.customer-conflict-choice{display:flex;align-items:center;gap:11px;min-height:44px;font-size:13px;line-height:1.6;margin-top:12px;cursor:pointer}.customer-conflict-choice input{width:20px;height:20px;flex:0 0 20px;accent-color:var(--green)}
.customer-comparison-field>.button{min-height:44px;white-space:normal}.customer-comparison-status{line-height:1.7;overflow-wrap:anywhere}
.customer-revision-events{list-style:none;padding:0;margin:0;display:grid;gap:13px}.customer-revision-events>li{padding:13px;border:1px solid var(--line);border-radius:10px;min-width:0}.customer-revision-events>li>div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-revision-events strong{font-size:13px}.customer-revision-events p{font-size:12px;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}
.customer-process-history{max-width:100%;overflow:auto}.customer-process-history table{min-width:600px}.customer-process-history .button{min-height:44px;white-space:nowrap}.customer-process-history+ .small,.customer-revision-events+ .small{margin-top:13px}
@media(max-width:700px){.customer-comparison-values{grid-template-columns:1fr;gap:8px}.customer-comparison-field{padding:12px}.customer-profile-conflict,.customer-save-uncertain,.customer-comparison{padding:14px}.customer-profile-conflict .button,.customer-comparison-field>.button{width:100%}.customer-edit-revision{gap:7px}.customer-conflict-choice{align-items:flex-start;padding:10px 0}.customer-conflict-choice input{margin-top:3px}}

/* A19: selection and physical label preview; the print canvas owns its CSS. */
.product-labels-modal{width:min(1050px,calc(100% - 44px))}
.product-labels-modal .modal-body,.product-labels-modal .field{min-width:0}
.labels-choice{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:12px 0;font-size:13px;line-height:1.65;cursor:pointer;min-width:0}
.product-labels-modal .labels-choice[hidden]{display:none}
.labels-choice input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:2px 0;accent-color:var(--green)}
.labels-choice>span{min-width:0;overflow-wrap:anywhere}.labels-choice strong,.labels-choice small{display:block}.labels-choice small{font-size:11px;color:var(--muted)}
.label-selection-list{max-height:390px;overflow:auto;margin:18px 0;border:1px solid var(--line);border-radius:10px}
.label-selection-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:18px;padding:9px 15px;border-bottom:1px solid var(--line);min-width:0}.label-selection-row:last-child{border:0}.label-selection-row[hidden]{display:none}
.label-quantity .field{margin:0}.label-quantity input{min-height:44px;width:100%;min-width:0}
.labels-selection-status,.labels-plan-status{font-size:13px;line-height:1.7;overflow-wrap:anywhere;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:9px}
.label-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.label-layout-grid input,.label-layout-grid select{min-width:0;width:100%;min-height:44px}
.label-preview-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:18px 0;font-size:12px}.label-preview-navigation .button{min-height:44px;white-space:normal}
.label-preview-stage{padding:8px;min-width:0;max-width:100%;overflow:auto;background:#e7ebe5;border:1px solid var(--line);border-radius:8px}
#label-preview-page{min-width:0;max-width:100%;margin:0 auto}#label-preview-page>.product-label-page{box-shadow:0 1px 6px #0002}
.labels-snapshot-changed{padding:15px;margin:18px 0;background:#fff8ed;border:1px solid #ead3b1;border-radius:10px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.labels-snapshot-changed[hidden],#labels-summary-choice[hidden]{display:none}
.labels-snapshot-changed .button,.label-output-actions .button{min-height:44px;white-space:normal;line-height:1.5}
.label-output-actions{flex-wrap:wrap}.label-output-actions .button{flex:1}
.product-label-content-probe{position:fixed!important;left:-100000px!important;top:0!important;visibility:hidden!important;pointer-events:none!important;transform:none!important;z-index:-1!important}
@media(max-width:700px){
  .product-labels-modal{width:calc(100% - 22px)}.label-selection-row{grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 12px}.label-quantity{max-width:190px;margin-left:32px}
  .label-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.label-layout-grid .field{margin:0}.label-preview-navigation{justify-content:center}.label-preview-navigation>span{order:-1;width:100%;text-align:center}
  .label-output-actions{display:grid;grid-template-columns:minmax(0,1fr)}.label-output-actions .button,.labels-snapshot-changed .button{width:100%;font-size:12px;padding:10px 8px}
}

/* A20: scope revisions and conscious comparison retain the existing palette. */
.product-edit-revision>span{white-space:normal;overflow-wrap:anywhere;min-width:0}
.product-modal .product-comparison,.product-modal .field,.product-modal .form-grid{min-width:0}
.product-revision-events .tag{white-space:normal;overflow-wrap:anywhere;line-height:1.6;max-width:100%}
.product-revision-events small{overflow-wrap:anywhere}
.product-administration-modal .modal-actions,.product-availability-modal .modal-actions{flex-wrap:wrap}
.product-administration-modal .modal-actions>.button,.product-availability-modal .modal-actions>.button{min-height:44px;white-space:normal;line-height:1.5}
@media(max-width:700px){
  .product-administration-modal .modal-actions>.button,.product-availability-modal .modal-actions>.button{flex:1;min-width:0;padding:11px 10px;font-size:12px}
  .product-edit-revision>p{min-width:0;flex-basis:100%}
}

/* A21: receipt controls retain the palette; the print document owns its mm CSS. */
.sale-receipt-modal{width:min(620px,calc(100% - 44px))}
.sale-receipt-modal .modal-body,.sale-receipt-modal .field{min-width:0}
.sale-receipt-preview-stage{padding:8px;border:1px solid var(--line);border-radius:8px;background:#e7ebe5;max-width:100%;min-width:0;overflow:auto}
#sale-receipt-preview-paper{margin:0 auto;min-width:0}#sale-receipt-preview-paper>.sale-receipt-paper{box-shadow:0 1px 6px #0002}
.sale-receipt-content-probe{position:fixed!important;left:-100000px!important;top:0!important;visibility:hidden!important;pointer-events:none!important;transform:none!important;z-index:-1!important}
.receipt-output-status{margin:15px 0;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.7;overflow-wrap:anywhere;background:var(--paper)}
.sale-receipt-output-actions,.sale-detail-actions{flex-wrap:wrap}.sale-receipt-output-actions>.button,.sale-detail-actions>.button{min-height:44px;white-space:normal;line-height:1.5;flex:1}
.sale-receipt-changed{padding:15px;margin:18px 0;background:#fff8ed;border:1px solid #ead3b1;border-radius:10px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.sale-receipt-changed[hidden]{display:none}.sale-receipt-changed .button{min-height:44px;white-space:normal}
.sale-price-review{border:1px solid var(--line);border-radius:9px;padding:12px;margin:12px 0;min-width:0}.sale-price-review p,.sale-price-review li{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.sale-price-review ul{padding-left:18px;margin:10px 0}.sale-price-review .button{min-height:44px;white-space:normal;line-height:1.5}
.sale-price-acknowledgement{display:flex;align-items:flex-start;gap:10px;padding:12px 0 0;min-height:44px;font-size:12px;line-height:1.7;cursor:pointer}.sale-price-acknowledgement[hidden]{display:none}.sale-price-acknowledgement input{width:20px;height:20px;min-height:20px;margin:2px 0;flex:0 0 20px;accent-color:var(--green)}.sale-price-acknowledgement span{min-width:0;overflow-wrap:anywhere}
.sale-result-uncertain{padding:15px;margin:18px;background:#fff8ed;border:1px solid #ead3b1;border-radius:10px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.sale-result-uncertain[hidden]{display:none}.sale-result-uncertain .button{min-height:44px;white-space:normal;line-height:1.5}
@media(max-width:700px){.sale-receipt-modal{width:calc(100% - 22px)}.sale-receipt-output-actions{display:grid;grid-template-columns:minmax(0,1fr)}.sale-receipt-output-actions>.button,.sale-receipt-changed .button{width:100%;font-size:12px;padding:10px 8px}.sale-detail-actions>.button{font-size:12px;padding:10px;min-width:0}.sale-price-review{padding:10px}}

/* A22: document/work controls. Physical outputs use their own white/black mm CSS. */
.os-document-modal{width:min(1100px,calc(100% - 44px))}
.os-document-modal .modal-body,.os-document-modal .field,.service-work-modal .modal-body{min-width:0}
.os-document-layout{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.os-document-layout input,.os-document-layout select,.os-document-modal select{min-width:0;width:100%;min-height:44px}
.os-document-preview-stage{padding:8px;border:1px solid var(--line);border-radius:8px;background:#e7ebe5;max-width:100%;min-width:0;max-height:65vh;overflow:auto}
#os-document-preview-paper{margin:0 auto;min-width:0}
#os-document-preview-paper>.os-document-a4,#os-document-preview-paper>.os-document-label{box-shadow:0 1px 6px #0002}
.os-document-content-probe{position:fixed!important;left:-100000px!important;top:0!important;visibility:hidden!important;pointer-events:none!important;transform:none!important;z-index:-1!important}
.os-document-changed,.service-work-observed,.service-work-conflict,.service-work-uncertain{padding:15px;margin:18px 0;border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:0}
.os-document-changed,.service-work-conflict,.service-work-uncertain{background:#fff8ed;border-color:#ead3b1}
.os-document-changed[hidden],.service-work-conflict[hidden],.service-work-uncertain[hidden]{display:none}
.os-document-changed p,.service-work-observed p,.service-work-conflict p,.service-work-uncertain p{font-size:13px;line-height:1.7;margin:0 0 12px;overflow-wrap:anywhere}
.service-work-observed strong{font-size:13px;display:block;margin:0 0 9px;overflow-wrap:anywhere}
.service-work-entries p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.os-document-output-actions{flex-wrap:wrap}.os-document-output-actions>.button{flex:1}
.os-document-output-actions .button,.os-document-changed .button,.service-work-modal .button,.service-actions .button{min-height:44px;white-space:normal;line-height:1.5;min-width:0}
@media(max-width:700px){
  .os-document-modal,.service-work-modal{width:calc(100% - 22px)}
  .os-document-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .os-document-output-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .os-document-output-actions>.button,.os-document-changed .button,.service-work-modal .modal-actions>.button,.service-work-conflict>.button{width:100%;font-size:12px;padding:10px 8px}
  .service-work-uncertain .modal-actions{display:grid;grid-template-columns:minmax(0,1fr)}
}

/* A23: one conscious physical count, without editable cost or financial balance. */
.stock-adjustment-modal{width:min(650px,calc(100% - 32px))}
.stock-adjustment-modal .modal-body,.stock-adjustment-modal .field{min-width:0}
.stock-adjustment-modal .button,.stock-adjustment-modal .icon-button,.stock-adjustment-modal input,.stock-adjustment-modal select{min-height:44px}
.stock-adjustment-observed{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--green-light);overflow-wrap:anywhere}
.stock-adjustment-observed>span,.stock-adjustment-observed>small{display:block;color:var(--muted)}
.stock-adjustment-observed>strong{display:block;font-size:25px;margin:3px 0}
.stock-adjustment-observed>p{font-size:13px;margin:10px 0 0}
.stock-adjustment-preview{padding:14px;border:1px solid var(--line);border-radius:10px;line-height:1.7;overflow-wrap:anywhere}
.stock-adjustment-conflict,.stock-adjustment-uncertain{padding:16px;margin:18px 0;border:1px solid var(--line);border-radius:12px;background:var(--amber-light);overflow-wrap:anywhere}
.stock-adjustment-modal [hidden]{display:none}
.stock-adjustment-conflict>p,.stock-adjustment-uncertain>p{margin:0 0 12px}
.stock-adjustment-conflict dl{display:grid;gap:8px;margin:12px 0 16px}
.stock-adjustment-conflict dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px}
.stock-adjustment-conflict dt{color:var(--muted)}
.stock-adjustment-conflict dd{margin:0;text-align:right}
.stock-adjustment-conflict .labels-choice{margin-top:15px;align-items:center;min-height:44px}
.stock-adjustment-modal .labels-choice input{min-height:20px;width:20px;flex-shrink:0}
.stock-adjustment-receipt-head>h3{font-size:20px;margin:12px 0 4px;overflow-wrap:anywhere}
.stock-adjustment-receipt-head>p{color:var(--muted);margin:0 0 16px;overflow-wrap:anywhere}
.stock-adjustment-receipt-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.stock-adjustment-receipt-balances>div{padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0;overflow-wrap:anywhere}
.stock-adjustment-receipt-balances span{display:block;font-size:12px;color:var(--muted)}
.stock-adjustment-receipt-balances strong{display:block;font-size:20px;margin-top:5px}
.stock-adjustment-modal .detail-grid>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){
  .stock-adjustment-modal{width:calc(100% - 22px)}
  .stock-adjustment-modal .modal-actions{position:sticky;bottom:-19px;margin:18px -18px -19px;padding:14px 18px;background:var(--paper);border-top:1px solid var(--line);z-index:1}
  .stock-adjustment-modal .modal-actions>.button{flex:1;white-space:normal}
  .stock-adjustment-conflict dl>div{display:block}.stock-adjustment-conflict dd{text-align:left;margin-top:3px}
  .stock-adjustment-conflict>.button{width:100%;white-space:normal}
  .stock-adjustment-receipt-balances{grid-template-columns:minmax(0,1fr)}
  .stock-adjustment-uncertain .modal-actions{display:grid;grid-template-columns:minmax(0,1fr);margin:0;padding:0;background:transparent;border:0;position:static}
}
/* A24: authorized commercial results and historical amounts; existing palette. */
.financial-results-view{min-width:0}
.financial-results-filters{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:24px 0}
.financial-results-filters .segmented{display:flex;flex-wrap:wrap;min-width:0;max-width:100%}
.financial-results-filters button,.financial-results-range button,.financial-results-pagination button,.financial-results-error button{min-height:44px;min-width:44px;white-space:normal}
.financial-results-range{margin:0 0 24px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}
.financial-results-range[hidden]{display:none}
.financial-results-range .form-grid{margin-bottom:15px}
.financial-results-range input{min-height:44px;max-width:100%;min-width:0}
.financial-results-period{margin:24px 0 20px;min-width:0}
.financial-results-period h2{font-size:18px;line-height:1.6;overflow-wrap:anywhere}
.financial-results-period p,.financial-results-policy{font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.financial-results-metrics{margin:20px 0}
.financial-results-metrics .metric-value{overflow-wrap:anywhere;line-height:1.35}
.financial-results-revenue-only{grid-template-columns:repeat(2,minmax(0,1fr))}
.financial-results-policy{margin:20px 0}
.financial-results-directory{min-width:0}
.financial-results-directory .client-link{min-height:44px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.financial-results-directory .button{min-height:44px}
.financial-results-unknown{white-space:normal;font-size:13px}
.financial-results-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:20px 0}
.financial-results-pagination span{font-size:13px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.financial-results-error{margin:24px 0;min-width:0}
.sale-historical-line{flex-wrap:wrap;gap:10px}
.sale-historical-line .receipt-item{min-width:0;flex:1 1 200px}
.sale-historical-line>strong{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.sale-line-cost{color:var(--ink);font-size:12px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:700px){.financial-results-filters{align-items:stretch}.financial-results-filters .segmented{width:100%}.financial-results-filters .segmented button{flex:1 1 80px}.financial-results-metrics,.financial-results-revenue-only{grid-template-columns:1fr}.financial-results-range{padding:16px}.financial-results-pagination{justify-content:flex-start}.financial-results-pagination span{flex-basis:100%;order:3}}
/* A25: conscious transfer between companies, without changing the palette. */
.stock-transfer-modal{width:min(700px,calc(100% - 32px))}
.stock-transfer-modal .modal-body,.stock-transfer-modal .field{min-width:0}
.stock-transfer-modal .button,.stock-transfer-modal .icon-button,.stock-transfer-modal input,.stock-transfer-modal select{min-height:44px;min-width:44px}
.stock-transfer-modal [hidden]{display:none}
.stock-transfer-modal .labels-choice{align-items:center;min-height:44px;line-height:1.6}
.stock-transfer-modal .labels-choice input{width:20px;min-width:20px;min-height:20px;flex-shrink:0}
.stock-transfer-observed,.stock-transfer-receipt-balances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stock-transfer-observed>div,.stock-transfer-receipt-balances>div{padding:15px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--surface);overflow-wrap:anywhere}
.stock-transfer-observed span,.stock-transfer-observed small,.stock-transfer-receipt-balances small{display:block;color:var(--muted);font-size:12px;line-height:1.7}
.stock-transfer-observed strong,.stock-transfer-receipt-balances strong{display:block;font-size:23px;margin:5px 0;line-height:1.4}
.stock-transfer-observed p,.stock-transfer-receipt-balances h3{font-size:13px;line-height:1.7;margin:8px 0 0}
.stock-transfer-preview,.stock-transfer-conflict,.stock-transfer-uncertain{padding:16px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere;line-height:1.7}
.stock-transfer-preview{background:var(--green-light)}
.stock-transfer-preview>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.stock-transfer-conflict,.stock-transfer-uncertain{background:var(--amber-light);margin:18px 0}
.stock-transfer-conflict p,.stock-transfer-uncertain p{margin:0 0 12px;font-size:13px}
.stock-transfer-conflict h4{margin:12px 0 5px;font-size:14px}
.stock-transfer-movement-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.stock-transfer-receipt-balances{margin:18px 0}
.stock-transfer-modal .detail-grid>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){
 .stock-transfer-modal{width:calc(100% - 22px)}
 .stock-transfer-observed,.stock-transfer-receipt-balances,.stock-transfer-preview>div{grid-template-columns:minmax(0,1fr)}
 .stock-transfer-modal .modal-actions{position:sticky;bottom:-19px;margin:18px -18px -19px;padding:14px 18px;background:var(--paper);border-top:1px solid var(--line);z-index:1}
 .stock-transfer-modal .modal-actions>.button{flex:1;white-space:normal}
 .stock-transfer-reload,.stock-transfer-movement-actions>.button{width:100%;white-space:normal}
 .stock-transfer-uncertain .modal-actions{display:grid;grid-template-columns:minmax(0,1fr);margin:0;padding:0;background:transparent;border:0;position:static}
}
/* A26: preserved count units and immutable operation recovery. */
.stock-ledger-uncertain,.stock-ledger-unit-blocked{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--amber-light);margin:16px 0;line-height:1.7;overflow-wrap:anywhere}
.stock-ledger-uncertain[hidden]{display:none}
.stock-ledger-uncertain p{margin:0 0 12px;font-size:13px}
.stock-ledger-ack{display:flex;gap:12px;align-items:center;min-height:44px;margin:18px 0;line-height:1.7;cursor:pointer;overflow-wrap:anywhere}
.stock-ledger-ack input{width:20px;min-width:20px;min-height:20px;flex-shrink:0}
.stock-ledger-cost{display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:14px 0;min-width:0;overflow-wrap:anywhere}
.stock-ledger-cost>strong{font-size:13px}.stock-ledger-cost>span{font-size:18px}.stock-ledger-cost>small{color:var(--muted);font-size:12px;line-height:1.7}
.inventory-modal .button,.relocation-modal .button,.inventory-modal .icon-button,.relocation-modal .icon-button{min-height:44px;min-width:44px}
@media(max-width:700px){.inventory-modal .stock-ledger-uncertain .modal-actions,.relocation-modal .stock-ledger-uncertain .modal-actions{display:grid;grid-template-columns:minmax(0,1fr);position:static;margin:0;padding:0;border:0;background:transparent}.stock-ledger-cost>span{font-size:16px}}
/* A27: current physical stock valuation, using the existing palette. */
.finance-consultation-tabs{flex-wrap:wrap;gap:8px 22px}
.finance-consultation-tabs button{min-height:44px;min-width:44px;white-space:normal}
.stock-valuation-view,.stock-valuation-filters,.stock-valuation-directory,.stock-valuation-units{min-width:0;max-width:100%}
.stock-valuation-filters{margin:24px 0;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.stock-valuation-filters input,.stock-valuation-filters select{min-width:0;max-width:100%;min-height:44px}
.stock-valuation-filter-actions,.stock-valuation-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}
.stock-valuation-filter-actions button,.stock-valuation-pagination button,.stock-valuation-error button{min-width:44px;min-height:44px;white-space:normal;max-width:100%}
.stock-valuation-scope{margin:24px 0 20px;min-width:0;overflow-wrap:anywhere}
.stock-valuation-scope h2{font-size:18px;line-height:1.6}
.stock-valuation-scope p,.stock-valuation-policy{font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.stock-valuation-metrics{margin:20px 0}
.stock-valuation-metrics .metric{min-width:0}
.stock-valuation-metrics .metric-value{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.stock-valuation-metrics .metric-bottom{overflow-wrap:anywhere}
.stock-valuation-policy{margin:20px 0}
.stock-valuation-directory table,.stock-valuation-units table{table-layout:fixed;white-space:normal}
.stock-valuation-directory th,.stock-valuation-directory td,.stock-valuation-units th,.stock-valuation-units td{padding:14px 12px;overflow-wrap:anywhere}
.stock-valuation-directory th:nth-child(1){width:25%}.stock-valuation-directory th:nth-child(2){width:16%}.stock-valuation-directory th:nth-child(3){width:14%}.stock-valuation-directory th:nth-child(4){width:20%}.stock-valuation-directory th:nth-child(5){width:25%}
.stock-valuation-directory .tag{white-space:normal;margin-top:6px}
.stock-valuation-directory td small{line-height:1.6}
.stock-valuation-units{margin-top:24px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.stock-valuation-units>summary{min-height:44px;cursor:pointer;line-height:1.7;overflow-wrap:anywhere;padding:10px 0;font-weight:600}
.stock-valuation-units>p{margin:12px 0 16px}
.stock-valuation-pagination{justify-content:space-between;margin:20px 0}
.stock-valuation-pagination span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.stock-valuation-error{margin:24px 0;min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){.stock-valuation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.stock-valuation-filters{padding:16px}.stock-valuation-metrics{grid-template-columns:minmax(0,1fr)}.stock-valuation-filter-actions{align-items:stretch}.stock-valuation-filter-actions button{flex:1 1 150px}.stock-valuation-directory table{min-width:650px}.stock-valuation-units table{min-width:420px}.stock-valuation-pagination{justify-content:flex-start}.stock-valuation-pagination span{flex-basis:100%;order:3}}
/* A28: product sales history, retaining the existing palette. */
.product-results-view,.product-results-filters,.product-results-directory,.product-results-units{min-width:0;max-width:100%}
.product-results-filters{margin:24px 0;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.product-results-period-controls{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.product-results-period-controls .segmented{display:flex;flex-wrap:wrap;max-width:100%;min-width:0}
.product-results-period-controls button,.product-results-filter-actions button,.product-results-pagination button,.product-results-error button{min-width:44px;min-height:44px;white-space:normal;max-width:100%}
.product-results-filters input{min-width:0;max-width:100%;min-height:44px}
.product-results-range{margin-top:18px;min-width:0}
.product-results-range[hidden]{display:none}
.product-results-filter-actions,.product-results-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px}
.product-results-scope{margin:24px 0 20px;min-width:0;overflow-wrap:anywhere}
.product-results-scope h2{font-size:18px;line-height:1.6}
.product-results-scope p,.product-results-policy{font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.product-results-metrics{margin:20px 0}
.product-results-metrics .metric{min-width:0}
.product-results-metrics .metric-value{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.product-results-metrics .metric-bottom{overflow-wrap:anywhere}
.product-results-revenue-only{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-results-policy{margin:20px 0}
.product-results-directory .table-scroll,.product-results-units .table-scroll{min-width:0;max-width:100%;overflow-x:auto}
.product-results-directory table,.product-results-units table{width:100%;table-layout:auto;white-space:normal}
.product-results-directory table{min-width:1100px}.product-results-directory-revenue table{min-width:700px}.product-results-units table{min-width:760px}
.product-results-directory th,.product-results-directory td,.product-results-units th,.product-results-units td{padding:14px 12px;overflow-wrap:normal;word-break:normal}
.product-results-directory th,.product-results-units th,.product-results-directory td.amount,.product-results-units td.amount{white-space:nowrap}
.product-results-directory th:first-child,.product-results-directory td:first-child{width:280px;min-width:240px}
.product-results-directory td:first-child>strong,.product-results-directory td:first-child>small{display:block;max-width:320px;white-space:normal;overflow-wrap:anywhere}
.product-results-directory td small{line-height:1.6}
.product-results-directory .tag{white-space:normal;margin-top:6px}
.product-results-units{margin-top:24px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.product-results-units>summary{min-height:44px;cursor:pointer;line-height:1.7;overflow-wrap:anywhere;padding:10px 0;font-weight:600}
.product-results-units>p{margin:12px 0 16px}
.product-results-returned-summary{font-size:13px;line-height:1.8;color:var(--muted);margin:20px 0;overflow-wrap:anywhere}
.product-results-pagination{justify-content:space-between;margin:20px 0}
.product-results-pagination span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.product-results-error{margin:24px 0;min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){.product-results-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.product-results-filters{padding:16px}.product-results-metrics{grid-template-columns:minmax(0,1fr)}.product-results-period-controls .segmented{width:100%}.product-results-period-controls .segmented button{flex:1 1 80px}.product-results-filter-actions button{flex:1 1 150px}.product-results-directory table{min-width:1100px}.product-results-directory-revenue table{min-width:700px}.product-results-units table{min-width:760px}.product-results-pagination{justify-content:flex-start}.product-results-pagination span{flex-basis:100%;order:3}}

/* A69: authenticated appearance. Screen-only tokens never enter print/PDF styles. */
@media screen {
  :root {
    --forest:#202020;--forest-dark:#101010;--green:#765612;--green-light:#f5eedc;
    --mint:#e9ddb8;--gold:#e4bf63;--paper:#faf9f6;--surface:#fff;--surface-alt:#f2f0ea;
    --ink:#25221c;--muted:#665f53;--line:#d6d0c4;--amber:#805617;--amber-light:#fff2d7;
    --red:#a72b27;--red-light:#fff0ee;--success:#21633a;--success-light:#eaf5ed;
    --focus:#8a6415;--appearance-shadow-color:#00000016;--shadow:0 3px 14px #00000008;
    --accent:#dfba58;--accent-hover:#edcd79;--on-accent:#211906;--sidebar:#101010;
  }
  :root[data-theme="dark"] {
    --forest:#f3ead6;--forest-dark:#e9ddb8;--green:#e4bf63;--green-light:#332d1d;
    --mint:#4b3d1a;--gold:#e4bf63;--paper:#141414;--surface:#202020;--surface-alt:#2b2925;
    --ink:#f6f2e9;--muted:#c5bdaf;--line:#59534a;--amber:#f2cb7a;--amber-light:#3b2c10;
    --red:#ffb7af;--red-light:#40221f;--success:#b2e1bd;--success-light:#1d3425;
    --focus:#f3cb70;--appearance-shadow-color:#00000055;--shadow:0 3px 14px #00000030;
  }
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--line)}
  .skip-link{background:var(--surface)}
  .sidebar{color:var(--muted)}
  .brand{color:var(--ink)}
  .brand small{color:var(--muted)}
  .workspace-label{color:var(--muted)}
  .nav-link:hover{background:var(--line);color:var(--ink)}
  .nav-link.active{background:var(--surface-alt);color:var(--ink)}
  .nav-link.active:after{background:var(--green)}
  .sidebar-note{border:1px solid var(--line);background:linear-gradient(130deg,var(--line),transparent)}
  .spark{color:var(--amber)}
  .sidebar-note strong{color:var(--muted)}
  .sidebar-note p{color:var(--muted)}
  .profile{border-top:1px solid var(--line)}
  .avatar{background:var(--surface-alt);color:var(--ink)}
  .profile strong{color:var(--muted)}
  .profile small{color:var(--muted)}
  .topbar{background:var(--surface)}
  .top-company-icon{background:var(--surface)}
  .top-company-icon svg{color:var(--muted)}
  .local-indicator i{background:var(--green)}
  .demo-banner{background:var(--surface-alt);border-bottom:1px solid var(--line);color:var(--muted)}
  .demo-banner strong{color:var(--muted)}
  .demo-dot{background:var(--green)}
  .eyebrow{color:var(--muted)}
  .button{background:var(--surface)}
  .button:hover{background:var(--surface-alt);box-shadow:0 2px 6px var(--appearance-shadow-color)}
  .button-primary{color:var(--ink)}
  .button-primary:hover{background:var(--green)}
  .button-soft{background:var(--surface-alt);border-color:var(--line);color:var(--muted)}
  .button-danger{border-color:var(--line)}
  .segmented{background:var(--surface-alt)}
  .segmented button{color:var(--muted)}
  .segmented button.active{background:var(--surface);box-shadow:0 1px 3px var(--appearance-shadow-color)}
  .metric{background:var(--surface)}
  .metric-icon{background:var(--surface-alt);color:var(--muted)}
  .metric-bottom{color:var(--muted)}
  .metric-bottom .up{color:var(--muted)}
  .metric-highlight{background:var(--surface-alt);border-color:var(--line)}
  .metric-highlight .metric-icon{background:var(--surface-alt);color:var(--muted)}
  .legend-dot{background:var(--green)}
  .legend-dot.soft{background:var(--surface-alt)}
  .revenue-chart text{fill:var(--green)}
  .chart-line{stroke:var(--green)}
  .chart-footer strong{color:var(--ink)}
  .attention-panel{background:var(--surface-alt);border-color:var(--line)}
  .attention-icon{background:var(--surface-alt);color:var(--muted)}
  .attention-heading p{color:var(--muted)}
  .attention-item{border-bottom:1px solid var(--line)}
  .product-tile{background:var(--surface-alt);color:var(--muted)}
  .tile-sand{background:var(--surface-alt);color:var(--amber)}
  .tile-sage{background:var(--surface-alt);color:var(--muted)}
  .tile-lilac{background:var(--surface-alt);color:var(--muted)}
  .tile-blue{background:var(--surface-alt);color:var(--muted)}
  .tile-rose{background:var(--surface-alt);color:var(--red)}
  .stock-number{color:var(--amber);background:var(--surface-alt)}
  .attention-foot{color:var(--muted)}
  th{color:var(--muted);background:var(--surface-alt)}
  td{border-bottom:1px solid var(--line)}
  .tag{background:var(--surface-alt);color:var(--muted)}
  .tag-neutral{background:var(--surface-alt);color:var(--muted)}
  .tag-blue{background:var(--surface-alt);color:var(--muted)}
  .quick-panel{color:var(--muted)}
  .quick-panel .eyebrow{color:var(--muted)}
  .quick-panel p{color:var(--muted)}
  .quick-action{border:1px solid var(--line);background:var(--line);color:var(--muted)}
  .quick-action:hover{background:var(--line)}
  .quick-action svg{color:var(--muted)}
  .workspace-footer{color:var(--muted)}
  .footer-separator{color:var(--muted)}
  .search-wrap svg{color:var(--muted)}
  .search-wrap input{background:var(--surface)}
  input::placeholder{color:var(--muted)}
  .empty svg{color:var(--muted)}
  .notice{background:var(--surface-alt);border:1px solid var(--line);color:var(--muted)}
  .warning{background:var(--surface-alt);border-color:var(--line);color:var(--amber)}
  .mini-metric{background:var(--surface)}
  .feature-list{color:var(--muted)}
  .feature-list svg{color:var(--muted)}
  .ranking-position{color:var(--muted)}
  .bar-track{background:var(--surface-alt)}
  .bar-fill{background:var(--green)}
  .profile-select{background:var(--surface)}
  .toast{color:var(--ink);box-shadow:0 8px 35px var(--appearance-shadow-color)}
  dialog{box-shadow:0 24px 80px var(--appearance-shadow-color)}
  dialog::backdrop{background:var(--line)}
  .field input,.field select,.field textarea{border:1px solid var(--line);background:var(--surface)}
  .catalog-card{background:var(--surface)}
  .catalog-card:hover:not(:disabled){border-color:var(--line);background:var(--surface-alt)}
  .sale-cart{background:var(--surface-alt)}
  .quantity-control{border:1px solid var(--line);background:var(--surface)}
  .quantity-control input{background:var(--surface)}
  .payment-options label{background:var(--surface)}
  .payment-options label:has(input:checked){border-color:var(--line)}
  .result-callout{border:1px solid var(--line)}
  .attention-item{border-bottom:1px solid var(--line)}
  th{color:var(--muted)}
  .module-card{background:var(--surface-alt)}
  .login-story{color:var(--muted)}
  .login-story .eyebrow{color:var(--muted)}
  .login-story p{color:var(--muted)}
  .login-story>small{color:var(--muted)}
  .login-features span{color:var(--muted)}
  .login-features svg{color:var(--amber)}
  .login-content{background:var(--surface-alt)}
  .example-login{background:var(--surface-alt);border:1px solid var(--line)}
  .example-login p{color:var(--muted)}
  .example-login details{color:var(--muted)}
  .customer-form-intro{background:var(--surface-alt);border:1px solid var(--line)}
  .customer-form-intro p{color:var(--muted)}
  .customer-form-section{background:var(--surface)}
  .customer-form-section>summary:focus-visible{outline:3px solid var(--line)}
  .section-chevron{border-right:2px solid var(--line);border-bottom:2px solid var(--line)}
  .contact-editor{border:1px solid var(--line);background:var(--surface-alt)}
  .contact-editor legend{color:var(--ink)}
  .customer-profile-head>.avatar{background:var(--surface-alt)}
  .customer-contact-card{background:var(--surface-alt)}
  .product-form-intro{background:var(--surface-alt);border:1px solid var(--line)}
  .product-form-intro p{color:var(--muted)}
  .product-current-stock{background:var(--surface-alt)}
  .product-fixed-identity{background:var(--surface-alt)}
  /* Store availability is configured separately from the shared catalogue. */
.catalog-store-context{border:1px solid var(--line);background:var(--surface-alt)}
  .catalog-store-context>span{color:var(--muted)}
  .catalog-status-filters button{background:var(--surface)}
  .catalog-status-filters button.active{border-color:var(--line)}
  .catalog-status-filters button>span{background:var(--surface-alt)}
  .catalog-status-filters button.active>span{background:var(--surface-alt)}
  .product-store-status{background:var(--surface-alt)}
  .availability-impact{border:1px solid var(--line);background:var(--surface-alt);color:var(--muted)}
  .availability-refresh{border:1px solid var(--line)}
  .availability-refresh p{color:var(--amber)}
  .availability-refresh .button{background:var(--surface);color:var(--amber)}
  .stock-position{background:var(--surface-alt)}
  .stock-history-context{background:var(--surface-alt);border:1px solid var(--line)}
  .sale-location-control{background:var(--surface-alt);border:1px solid var(--line)}
  .cart-row[data-stock-invalid=true]{background:var(--surface-alt)}
  .physical-transfer-hint{background:var(--surface-alt)}
  .linked-position-list>span{background:var(--surface-alt);color:var(--muted)}
  .stock-location-directory{background:var(--surface)}
  .variant-attributes>span{background:var(--surface-alt);border:1px solid var(--line);color:var(--muted)}
  .variant-attributes>span>small{color:var(--muted)!important}
  .variant-family-context{background:var(--surface-alt)}
  .attribute-create-panel{background:var(--surface-alt)}
  .attribute-create-status[data-error=true]{color:var(--red)}
  .service-progress>li{background:var(--surface-alt)}
  .service-progress>li.current{background:var(--surface-alt);border-color:var(--line);color:var(--ink)}
  .service-progress>li.passed{color:var(--muted);background:var(--surface-alt)}
  .service-history{border-left:2px solid var(--line)}
  .service-history>li:before{background:var(--green)}
  .quote-fixed-price{background:var(--surface)}
  .quote-conflict{border:1px solid var(--line);background:var(--surface-alt)}
  .quote-conflict p{color:var(--amber)}
  .quote-price-review{border:1px solid var(--line);background:var(--surface-alt)}
  .purchase-intro{background:var(--surface-alt);border:1px solid var(--line)}
  .purchase-intro p{color:var(--muted)}
  .purchase-item-editor{background:var(--surface-alt)}
  .purchase-item-editor legend{color:var(--muted)}
  .purchase-review{border:1px solid var(--line);background:var(--surface-alt)}
  .purchase-review>p{color:var(--muted)}
  .company-profile-card{background:var(--surface-alt)}
  .company-card-meta dd{color:var(--ink)}
  .company-create-preview{background:var(--surface-alt);border:1px solid var(--line);color:var(--muted)}
  .company-conflict{border:1px solid var(--line);color:var(--amber)}
  .company-conflict>.button{background:var(--surface);color:var(--amber)}
  .team-profile-card{background:var(--surface-alt)}
  .team-card-head>.avatar{background:var(--surface-alt)}
  .team-profile-card>.team-group-role{color:var(--muted)}
  .team-access-summary>span{border:1px solid var(--line);background:var(--surface-alt)}
  .team-fixed-email{background:var(--surface-alt)}
  .team-own-access{color:var(--muted)}
  .team-access-editor{border:1px solid var(--line);background:var(--surface-alt)}
  .team-access-editor>legend{color:var(--ink)}
  .team-access-help{color:var(--muted)}
  .team-access-detail{background:var(--surface-alt)}
  .team-change-impact{border:1px solid var(--line);color:var(--amber)}
  .xml-modal input[type=file]::file-selector-button{border:1px solid var(--line)}
  .xml-document-key{background:var(--surface-alt)}
  .xml-adjustments{border:1px solid var(--line);background:var(--surface-alt);color:var(--amber)}
  .xml-adjustments>div{border-top:1px solid var(--line)}
  .xml-blockers{border:1px solid var(--line);background:var(--surface-alt);color:var(--red)}
  .xml-source-line{background:var(--surface)}
  .xml-line-check[data-valid=true]{color:var(--muted)}
  .xml-line-check[data-valid=false]{color:var(--red)}
  .xml-unit-confirmation{border:1px solid var(--line);background:var(--surface-alt)}
  .payable-amounts>div{background:var(--surface-alt)}
  .payable-fixed-amount{background:var(--surface-alt);border:1px solid var(--line)}
  .payable-blockers{border:1px solid var(--line);background:var(--surface-alt);color:var(--amber)}
  .supplier-payment-history>li{background:var(--surface-alt)}
  .customer-credit-card{border:1px solid var(--line);background:var(--surface-alt)}
  .customer-credit-observed{background:var(--surface-alt);border:1px solid var(--line)}
  .customer-credit-history>li{background:var(--surface-alt)}
  .sale-credit-panel{border:1px solid var(--line);background:var(--surface)}
  .sale-credit-conflict{background:var(--surface-alt);border:1px solid var(--line)}
  .inventory-line{background:var(--surface-alt)}
  .inventory-quantities>div{background:var(--surface)}
  .inventory-save-status{border:1px solid var(--line);background:var(--surface-alt)}
  .inventory-product-choice{background:var(--surface-alt)}
  .inventory-product-choice:has(input:checked){border-color:var(--line);background:var(--surface-alt)}
  .inventory-history{background:var(--surface-alt)}
  .inventory-confirm-review{background:var(--surface-alt)}
  .inventory-retained{border:1px solid var(--line);background:var(--surface-alt)}
  .relocation-review{background:var(--surface-alt)}
  .relocation-position{background:var(--surface)}
  .relocation-blocked{color:var(--red)}
  .relocation-reread{border:1px solid var(--line);background:var(--surface-alt)}
  .managed-location-observed{background:var(--surface-alt)}
  .managed-location-active-control{background:var(--surface-alt)}
  .managed-location-active-control:has(input:checked){background:var(--surface-alt);border-color:var(--line)}
  .managed-location-restrictions{border:1px solid var(--line);background:var(--surface-alt)}
  .managed-location-restrictions>strong{color:var(--amber)}
  .managed-location-form-status{border:1px solid var(--line);background:var(--surface-alt)}
  .managed-location-blocked{color:var(--red);background:var(--surface-alt);border-color:var(--line)}
  .managed-location-reread{border:1px solid var(--line);background:var(--surface-alt)}
  .managed-location-primary-preview>div{background:var(--surface-alt)}
  .managed-location-events>li{background:var(--surface-alt)}
  .managed-location-snapshots>div{background:var(--surface)}
  .managed-location-retained{border:1px solid var(--line);background:var(--surface-alt)}
  .finance-registry-restrictions,.finance-registry-retained{border:1px solid var(--line);background:var(--surface-alt)}
  .finance-registry-reread{background:var(--surface-alt);border:1px solid var(--line)}
  .sale-payment-selection{border:1px solid var(--line);background:var(--surface-alt)}
  .sale-payment-status.sale-payment-blocked{color:var(--amber)}
  .sale-payment-refresh{background:var(--surface-alt);border:1px solid var(--line)}
  .label-preview-stage{background:var(--surface-alt)}
  #label-preview-page>.product-label-page{box-shadow:0 1px 6px var(--appearance-shadow-color)}
  .labels-snapshot-changed{background:var(--surface-alt);border:1px solid var(--line)}
  .sale-receipt-preview-stage{background:var(--surface-alt)}
  #sale-receipt-preview-paper>.sale-receipt-paper{box-shadow:0 1px 6px var(--appearance-shadow-color)}
  .sale-receipt-changed{background:var(--surface-alt);border:1px solid var(--line)}
  .sale-result-uncertain{background:var(--surface-alt);border:1px solid var(--line)}
  .os-document-preview-stage{background:var(--surface-alt)}
  #os-document-preview-paper>.os-document-a4,#os-document-preview-paper>.os-document-label{box-shadow:0 1px 6px var(--appearance-shadow-color)}
  .os-document-changed,.service-work-conflict,.service-work-uncertain{background:var(--surface-alt);border-color:var(--line)}
  body,dialog{background:var(--paper);color:var(--ink)}
  dialog,.topbar,.panel,.metric,.info-card,.branch-card,.customer-form-section,.customer-detail-section{background:var(--surface)}
  .sidebar,.login-story{background:var(--sidebar);color:#ded8cc}
  .brand,.login-story .brand,.profile strong,.sidebar-note strong,.login-story h1{color:#fff9ec}
  .brand-mark,.spark{color:var(--gold)}
  .brand small,.workspace-label,.profile small,.sidebar-note p,.login-story p,.login-story>small,.login-story .eyebrow,.login-features{color:#c8bdab}
  .sidebar-note{background:#1b1a17;border-color:#4a4130}
  .profile{border-color:#4a4130}
  .sidebar .avatar{background:#eadbb5;color:#231b0c}
  .nav-link:hover{background:#29251b;color:#fff9ec}
  .nav-link.active{background:#f0d480;color:#211906}
  .nav-link.active:after{background:#211906}
  .button{background:var(--surface);color:var(--ink);border-color:var(--line)}
  .button:hover:not(:disabled){background:var(--surface-alt);border-color:var(--green)}
  .button-primary{background:var(--accent);color:var(--on-accent);border-color:#b5933f}
  .button-primary:hover:not(:disabled){background:var(--accent-hover);color:var(--on-accent);border-color:#b5933f}
  .button-soft{background:var(--green-light);color:var(--green);border-color:var(--line)}
  .button-danger{color:var(--red);border-color:var(--red)}
  .button-text,.inline-link{color:var(--green);background:transparent}
  .button-text:hover:not(:disabled),.inline-link:hover{color:var(--ink);background:transparent;text-decoration:underline}
  .button:disabled{opacity:.65}
  .field input,.field select,.field textarea,.profile-select,.search-wrap,.quantity-control,.quantity-control input,.payment-options label{background:var(--surface);color:var(--ink);border-color:var(--line)}
  input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
  select option{background:var(--surface);color:var(--ink)}
  input[type="checkbox"],input[type="radio"]{accent-color:var(--green)}
  .modal-actions,.sale-cart,.customer-contact-card,.purchase-item-editor,.xml-mapping{background:var(--surface-alt)}
  .segmented button.active,.tabs button.active{color:var(--green)}
  .tag-green,.result-callout{background:var(--success-light);color:var(--success);border-color:var(--success)}
  .result-callout svg{color:var(--success)}
  .result-callout small{color:var(--muted)}
  .tag-amber{background:var(--amber-light);color:var(--amber)}
  .form-error,.tag-red{background:var(--red-light);color:var(--red)}
  .notice{background:var(--amber-light);border-color:var(--line);color:var(--ink)}
  .notice svg{color:var(--amber)}
  .toast{background:#171717;color:#fff5db;border:1px solid #a0833e}
  .revenue-chart line{stroke:var(--line)}
  .revenue-chart path:not(.chart-line){fill:var(--green-light)}
  .revenue-chart .chart-line{stroke:var(--green)}
  .revenue-chart circle{fill:var(--green)}
  .revenue-chart text{fill:var(--muted)}
  .bar-fill{background:var(--green)}
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
  .sidebar a:focus-visible,.login-story a:focus-visible{outline-color:#f3cb70}
  .appearance-modal{max-width:640px}
  .appearance-preview{margin:24px 0 16px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
  .appearance-preview-heading,.appearance-preview-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .appearance-preview-heading{justify-content:flex-start;margin-bottom:16px}
  .appearance-preview-heading .tag{margin-left:auto}
  .appearance-preview-row{padding:14px 0;border-top:1px solid var(--line)}
  .appearance-preview p{margin:16px 0 0}
  .appearance-actions{flex-wrap:wrap}
  .appearance-actions .button{white-space:normal;min-height:44px}
  .appearance-conflict,.appearance-uncertain,.appearance-conflict-field{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--amber-light);margin:20px 0}
  .appearance-ack{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:12px}
  .appearance-ack input{width:20px;height:20px;flex-shrink:0}
  :root[data-density="compact"] .workspace #main .metric{padding:14px 16px}
  :root[data-density="compact"] .workspace #main .metric-grid{gap:12px;margin-bottom:18px}
  :root[data-density="compact"] .workspace #main .panel-padding{padding:16px}
  :root[data-density="compact"] .workspace #main .panel-head{padding-top:16px}
  :root[data-density="compact"] .workspace #main th,:root[data-density="compact"] .workspace #main td{padding-top:10px;padding-bottom:10px}
  :root[data-density="compact"] .workspace #main .product-summary{gap:10px;margin-bottom:18px}
  :root[data-density="compact"] .workspace #main .branch-card{padding:16px}
  @media(max-width:980px){
    .topbar{height:auto;min-height:88px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
    .company-control{flex:1 1 180px;min-width:0}
    .topbar-actions{margin-left:auto;flex-wrap:wrap;gap:8px}
  }
  @media(max-width:700px){
    .topbar{height:auto;min-height:88px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
    .company-control{flex:1 1 180px;min-width:0}
    .company-control select{max-width:calc(100vw - 60px)}
    .topbar-actions{margin-left:auto;flex-wrap:wrap;gap:8px}
    .topbar-actions .local-indicator{display:none}
    .appearance-actions .button{flex:1 1 150px}
  }
}

/* A89 knowledge area: bounded reading width and usable, theme-inherited controls.
   The host removes this class before changing area; print documents are separate. */
.knowledge-area{max-width:1240px;margin-inline:auto}
.knowledge-area .section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.knowledge-area .section-header h2{margin:0;font-size:28px;letter-spacing:-.6px}
.knowledge-area .section-header p,.knowledge-area small{color:var(--muted)}
.knowledge-area button{min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-weight:600;line-height:1.35}
.knowledge-area button:hover:not(:disabled){border-color:var(--gold)}
.knowledge-area button.primary,.knowledge-area button[type=submit]{background:var(--gold);border-color:var(--gold);color:#171717}
.knowledge-area .toolbar,.knowledge-area nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-block:18px}
.knowledge-area form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-block:18px}
.knowledge-area label{display:grid;align-content:start;gap:7px;font-weight:550;min-width:0}
.knowledge-area input:not([type=checkbox]),.knowledge-area select,.knowledge-area textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);min-width:0}
.knowledge-area textarea{resize:vertical;line-height:1.65}
.knowledge-area textarea[name=body]{min-height:320px}
.knowledge-area label:has(>textarea),.knowledge-area fieldset,.knowledge-area form>p{grid-column:1/-1}
.knowledge-area fieldset{min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;gap:10px}
.knowledge-area fieldset label:has(input[type=checkbox]){display:flex;align-items:center;gap:9px;font-weight:400}
.knowledge-area input[type=checkbox]{width:18px;height:18px;accent-color:var(--gold);flex:0 0 auto}
.knowledge-area .knowledge-list{display:grid;gap:12px;list-style:none;padding:0;margin-block:20px}
.knowledge-area .knowledge-list>li,.knowledge-area>section,.knowledge-area>article{padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);margin-block:14px}
.knowledge-area .knowledge-list h3{margin:0 0 6px;font-size:17px}
.knowledge-area .knowledge-list h3 button{text-align:left;padding:0;border:0;min-height:30px;background:transparent;font-size:inherit}
.knowledge-area .knowledge-list p{margin:5px 0 9px;overflow-wrap:anywhere}
.knowledge-area .knowledge-content{max-width:84ch;line-height:1.8;margin-block:20px}
.knowledge-area .notice{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.knowledge-area table{width:100%;border-collapse:collapse}
.knowledge-area td,.knowledge-area th{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}
.knowledge-area nav span{color:var(--muted);padding:6px}
@media(max-width:720px){.knowledge-area form{grid-template-columns:minmax(0,1fr);padding:16px}.knowledge-area .section-header h2{font-size:24px}.knowledge-area .knowledge-list>li,.knowledge-area>section,.knowledge-area>article{padding:16px}.knowledge-area button{max-width:100%;overflow-wrap:anywhere}.knowledge-area table{display:block;overflow-x:auto}}

/* Existing document boards share the application's controls and touch targets. */
:is([data-service-board-host],[data-quote-board-host]){min-width:0}
:is([data-service-board-host],[data-quote-board-host]) .section-header{margin-block:24px 18px}
:is([data-service-board-host],[data-quote-board-host]) .section-header h2{margin:0;font-size:23px;letter-spacing:-.4px}
:is([data-service-board-host],[data-quote-board-host]) label{display:grid;gap:7px;min-width:0;font-size:14px;font-weight:600}
:is([data-service-board-host],[data-quote-board-host]) form{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
:is([data-service-board-host],[data-quote-board-host]) :is(input,select){min-width:0;max-width:100%;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}
:is([data-service-board-host],[data-quote-board-host]) section>label{max-width:340px;margin-block:18px 10px}
:is([data-service-board-host],[data-quote-board-host]) button{min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-weight:600;line-height:1.35;cursor:pointer;overflow-wrap:anywhere}
:is([data-service-board-host],[data-quote-board-host]) button:hover:not(:disabled){border-color:var(--gold)}
:is([data-service-board-host],[data-quote-board-host]) button:is(.primary,[type=submit],[aria-pressed=true]){background:var(--gold);border-color:var(--gold);color:#171717}
:is([data-service-board-host],[data-quote-board-host]) button:disabled{cursor:default;opacity:.5}
:is([data-service-board-host],[data-quote-board-host]) :is(button,input,select):focus-visible{outline:3px solid var(--gold);outline-offset:3px}
:is([data-service-board-host],[data-quote-board-host]) section>p{color:var(--muted);font-size:14px;line-height:1.6}
:is([data-service-board-host],[data-quote-board-host]) li.card h4{margin:0 0 12px}
:is([data-service-board-host],[data-quote-board-host]) li.card h4 button{padding:4px 0;border:0;background:transparent;text-align:left;font-size:17px}
:is([data-service-board-host],[data-quote-board-host]) li.card p{margin:8px 0;line-height:1.5}
:is([data-service-board-host],[data-quote-board-host]) li.card small{display:block;color:var(--muted);line-height:1.5}
:is([data-service-board-host],[data-quote-board-host]) nav{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-block:20px}
@media(max-width:720px){:is([data-service-board-host],[data-quote-board-host]) form{padding:14px}:is([data-service-board-host],[data-quote-board-host]) button{max-width:100%}:is([data-service-board-host],[data-quote-board-host]) form label{flex-basis:100%!important}}
