
:root{--bg:#f6f7f8;--card:white;--ink:#17191c;--gray:#626973;--yellow:#f9cd37;--green:#16774e;--border:#dee1e4}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);font:15px system-ui,-apple-system,Segoe UI,sans-serif;margin:0}header{background:#141414;color:white;position:sticky;top:0;z-index:9}header>div{max-width:1100px;margin:auto;padding:15px 18px;display:flex;align-items:center;gap:12px;justify-content:space-between}.brand{font-size:22px;font-weight:900}.brand b{color:var(--yellow)}.subtitle{font-size:11px;color:#c7c9cc}.shell{max-width:1100px;margin:auto;padding:18px}.card{background:var(--card);border:1px solid var(--border);padding:20px;border-radius:17px;margin-bottom:14px;box-shadow:0 2px 12px #12121207}.wide{max-width:540px;margin:35px auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.muted{color:var(--gray)}.small{font-size:12px}h1,h2,h3{margin:0 0 10px}h1{font-size:24px}h2{font-size:19px}h3{font-size:16px}p{line-height:1.5}label{display:block;font-weight:650;margin:12px 0 5px}input,select,textarea{width:100%;font:inherit;padding:12px;border:1px solid #c8cbd1;background:white;border-radius:10px;color:#171717;outline-color:#ffcf36}input[type=number]{font-size:19px}.button,button{background:var(--yellow);color:#151515;border:0;border-radius:10px;padding:12px 16px;font:inherit;font-weight:750;cursor:pointer}.button:hover,button:hover{filter:brightness(.96)}button.secondary{background:#eef0f1;color:#222}button.dark{background:#171717;color:white}button.green{background:#18794e;color:white}button.red{background:#fee8e4;color:#972e21}button:disabled{opacity:.45;cursor:not-allowed}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.tabs button{background:#eceff1}.tabs button.active{background:#181818;color:white}.pill{font-size:12px;background:#f2f3f5;border-radius:99px;padding:5px 10px}.ok{color:#087c43}.warn{color:#a46700}.err{color:#af3029}.hide{display:none!important}.notice{border-left:4px solid var(--yellow);background:#fffbeb;padding:13px;border-radius:9px;margin:10px 0}.notice.ok{border-color:var(--green);background:#f0faf4}.notice.err{border-color:#bd3131;background:#fff1f1}.divider{border:0;border-top:1px solid var(--border);margin:18px 0}.progress{height:11px;background:#e8e9ed;border-radius:9px;overflow:hidden}.progress>div{background:var(--green);height:100%;transition:width .2s}.record{padding:12px;border:1px solid var(--border);border-radius:12px;margin:8px 0}.record b{font-size:15px}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:620px){.split{grid-template-columns:1fr}header>div{padding:10px 14px}.shell{padding:12px}.card{padding:16px}.wide{margin:15px auto}}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}td:last-child,th:last-child{text-align:right}.table-wrap{overflow:auto}.big-counter{font-size:25px;font-weight:900}.mono{font-family:ui-monospace,Consolas,monospace}.inlineform{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.inlineform>*{min-width:0}

.perm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:9px;margin-top:11px}
.perm-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--border);padding:12px;border-radius:11px;cursor:pointer;margin:0;font-weight:400;min-height:72px;background:#fff}
.perm-choice:has(input:checked){border-color:#e9ba11;background:#fffbea;box-shadow:inset 0 0 0 1px #ffdd68}
.perm-choice input,.check-label input{width:20px;height:20px;margin:1px 0 0;flex-shrink:0;accent-color:#c99b03;cursor:pointer}
.perm-choice b{font-size:14px;display:block}.perm-choice small{display:block;color:var(--gray);font-size:12px;line-height:1.4;margin-top:3px}
.perm-head{margin:20px 0 6px;font-weight:850;font-size:15px}.subhead{font-weight:700;margin-bottom:4px}
.role-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.role-card{padding:14px;text-align:left;background:#f4f5f7;border:2px solid #e2e4e7;border-radius:12px;font-size:14px}
.role-card.active{border-color:#d8a800;background:#fff5cc}.role-card small{display:block;font-weight:400;color:#5c5d60;line-height:1.4;margin-top:5px}
.scope-area{padding:15px;border:1px solid #e5e7eb;border-radius:12px;margin:12px 0}
.scope-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:7px;margin-top:10px}
.check-label{display:flex;gap:9px;align-items:center;margin:0;font-weight:500;background:#f6f7f8;border-radius:9px;padding:10px;cursor:pointer}
.scope-title{font-weight:850}.inline-action{margin-top:10px}.audit-item{border:1px solid #e5e7eb;border-radius:10px;padding:13px;margin:9px 0}
.audit-item details{margin-top:10px}.audit-item pre{white-space:pre-wrap;word-break:break-word;font-size:11px;max-height:230px;overflow:auto;background:#f5f6f8;padding:10px;border-radius:8px}
.tablenav{display:flex;gap:8px;flex-wrap:wrap}.flag{background:#e9f5ed;color:#14663d;border-radius:99px;font-size:12px;font-weight:750;padding:5px 10px;display:inline-block}.flag.master{background:#171717;color:#ffd54d}
#scopeSummary{line-height:1.55}
@media(max-width:620px){.perm-grid,.role-cards,.scope-choices{grid-template-columns:1fr}}

:root{--yellow:#ffc300;--ink:#0b0b0b;--bg:#f7f7f5}.brand-logo{width:180px;height:auto;display:block}header>div{padding:12px 18px}button,a.button{min-height:46px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #996c00;outline-offset:3px}.task-choice{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--border);padding:18px}.step-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--gray)}.count-value{font-size:26px;font-weight:850}.qty-field{min-width:0}.qty-control{display:flex;gap:8px;align-items:center}.qty-control input{min-width:0}.qty-control button{flex:0 0 46px;padding:10px}.sticky-actions{position:sticky;bottom:0;background:#fff;padding:14px 0;border-top:1px solid var(--border);z-index:2}.action-primary{width:100%;font-size:17px;padding:16px}.center{max-width:720px;margin:auto}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.summary-grid>div{background:#f6f6f4;padding:14px;border-radius:12px}.summary-grid b{display:block;font-size:25px}.record .err{font-weight:700}.muted-box{background:#f5f5f3;padding:12px;border-radius:10px}.empty{padding:24px 0}.notice{color:#544100}.notice.err{color:#932d25}.notice.ok{color:#116443}summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}a{color:#705000}dialog{border:1px solid var(--border);border-radius:16px;padding:24px;max-width:540px;width:calc(100% - 24px)}dialog::backdrop{background:#0008}.order-card{border:1px solid var(--border);padding:16px;border-radius:12px;margin:12px 0}.order-values{display:flex;gap:24px;flex-wrap:wrap;margin:14px 0}.order-values b{display:block;font-size:20px}.status-text{min-height:22px;margin:12px 0}.tabs button{font-size:14px}footer{padding-top:36px!important}#username{max-width:220px;word-break:break-word}#view{min-height:200px}@media(max-width:620px){.brand-logo{width:144px}header>div{align-items:center}.subtitle{font-size:9px}#username{display:none}.heading{align-items:flex-start}.summary-grid{gap:6px}.summary-grid>div{padding:10px}.summary-grid b{font-size:21px}.tabs{display:grid;grid-template-columns:1fr 1fr}.tabs button{padding:12px 8px}.record{padding:12px}.row>button{flex-grow:1}.sticky-actions{padding-bottom:max(14px,env(safe-area-inset-bottom))}h1{font-size:24px}.inlineform{grid-template-columns:1fr}.table-wrap button{white-space:nowrap}}

/* Compact count screens keep controls easy to tap. */
.count-compact{padding:14px 16px}
.count-compact h2,.count-compact h3{margin:0 0 8px}
.count-compact h3{margin-top:12px}
.count-compact .task-choice{padding:7px 10px;min-height:44px;margin:0 0 6px}
.count-compact .count-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px 12px;margin-bottom:8px;align-items:end}
.count-compact .count-fields label{margin:0 0 3px}
.count-compact .count-fields :is(input,select){margin:0;min-height:42px}
.count-compact .count-start button{justify-self:start}
.count-compact .sticky-actions{padding-block:8px}
.count-compact .divider{margin-block:9px}
.count-compact .summary-grid>div{padding:8px 10px}

.count-progress{margin:8px 0 12px}
.count-progress p{display:flex;justify-content:space-between;gap:8px;margin:0}
.count-progress progress{display:block;width:100%;height:12px;accent-color:var(--yellow);margin:5px 0}
.count-checklist{max-height:42vh;overflow:auto;padding:4px 2px;margin:8px 0}
.count-checklist button[aria-current=true]{border-color:#a67400}
.count-checklist button small{flex-shrink:0}
.count-reason{display:block;overflow-wrap:anywhere}

.count-checklist-edit{max-height:64vh}
.count-category{margin:0 0 10px}
.count-compact .count-category h3{margin:0 0 5px;padding:7px 9px;background:#f7e8a6;border-radius:6px;font-size:14px}
.inline-count-row{padding:7px 9px;margin-bottom:5px;border:1px solid var(--border);border-radius:8px}
.inline-count-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
.inline-count-heading small{font-size:11px;text-align:right}
.inline-count-heading .count-product-link{min-height:32px;padding:2px 0;background:transparent;text-align:left}
.inline-count-grid{display:flex;flex-wrap:wrap;align-items:end;gap:5px 9px;margin-top:4px}
.inline-count-field{flex:1 1 148px;min-width:0}
.inline-count-field label{margin:0 0 2px;font-size:11px;line-height:1.2}
.inline-count-field label small{font-size:10px;font-weight:400}
.inline-count-control{display:flex;align-items:stretch;gap:3px}
.inline-count-field :is(input,select),.inline-correction input{margin:0;padding:5px 7px;min-height:36px}
.inline-count-control input{width:0;flex:1;min-width:42px}
.inline-count-grid button{min-height:36px;padding:4px 8px}
.inline-count-control button{flex:0 0 31px}
.inline-count-message{display:block;color:#715600;font-size:11px}
.inline-count-message:not(:empty){margin-top:4px}
.inline-correction summary{font-size:11px;min-height:32px;padding:5px 0}
.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(max-width:620px){.inline-count-control button{flex-basis:36px}.inline-count-grid button,.inline-count-field :is(input,select){min-height:40px}}

.weight-check{margin:6px 0;color:#5d4800;font-size:13px}
.weight-check p{margin:4px 0}
.weight-check textarea{min-height:48px}
.weight-flag p{margin:5px 0}
.weight-photo{display:block;max-width:100%;max-height:420px;margin-top:8px;object-fit:contain}
.supplier-catalog-actions{flex-wrap:wrap;margin-top:10px}
.supplier-catalog-list{margin-top:20px}
.supplier-product{padding:12px 0;border-top:1px solid var(--border)}
.supplier-product-head,.supplier-presentation{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.supplier-product-head h4{margin:0 0 2px}
.supplier-product-head small,.supplier-presentation small{display:block}
.supplier-invoice-tag{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:12px;background:#faecb4;font-size:12px;font-weight:650}
.supplier-presentation{padding:6px 0}
.supplier-product button{min-height:36px;padding:6px 12px;font-size:13px}
.snapshot-meta small,.snapshot-line .heading small{display:block}
.snapshot-meta p{margin:4px 0}
.snapshot-line .row{flex-wrap:wrap}
#partialSendPane{scroll-margin-top:16px;margin-bottom:10px}
#partialSendPane .row{flex-wrap:wrap}
.inline-count-disclosure>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:7px;min-height:32px;padding:2px 0}
.inline-count-disclosure>summary::-webkit-details-marker{display:none}
.inline-count-disclosure>summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-inline:2px 4px}
.inline-count-disclosure[open]>summary::before{transform:rotate(45deg)}
.inline-count-disclosure>summary small{line-height:1.3}
.inline-count-disclosure>summary b{overflow-wrap:anywhere}
.inline-count-disclosure>summary small{max-width:min(55vw,19rem);overflow-wrap:anywhere}
.count-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr));gap:7px}
.count-history-record{padding:7px 9px;border:1px solid var(--border);border-radius:7px;min-width:0}
.count-history-complete{background:#e7f5e9;border-color:#a6ccb0;color:#174f2e}
.count-history-incomplete{background:#fff4cc;border-color:#dfc875;color:#5c4105}
.count-history-title{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 6px}
.count-history-title>b{font-size:.91rem;overflow-wrap:anywhere}
.count-history-state{font-size:.77rem;font-weight:700}
.count-history-record small{display:block;margin-top:2px;line-height:1.25}
.count-history-actions{margin-top:4px;flex-wrap:wrap;gap:4px}
.count-history-actions button{min-height:32px;padding:3px 8px;font-size:.79rem;background:#ffffffad;border:1px solid #0002}
.count-history{margin:12px 0}
.count-history>summary{cursor:pointer;font-weight:650;padding:6px 0}
.count-color-legend{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0 10px}
.count-color-legend span{padding:3px 7px;border:1px solid;border-radius:5px;font-weight:650}
.supervisor-index-site{margin:9px 0 12px}
.supervisor-index-site h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 9px;margin:0 0 5px;font-size:.95rem}
.supervisor-index-site h3 small{font-weight:500}
.review-summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 10px;align-items:center;padding:5px 0;border-bottom:1px solid var(--border)}
.review-summary-row small{display:block}
.review-summary-row button{min-height:34px;padding:3px 8px;font-size:.78rem}
.review-summary-row details{grid-column:1/-1;font-size:.8rem}
.purchase-table-wrap{overflow:auto;margin:8px 0}
.purchase-table{border-collapse:collapse;width:100%;text-align:left;font-size:.86rem}
.purchase-table th,.purchase-table td{padding:6px 5px;border-bottom:1px solid var(--border);vertical-align:top}
.purchase-table thead{background:#f7f3e5}
.purchase-table small{display:block;font-weight:400}
.purchase-table select,.purchase-table input{min-height:35px;padding:3px 5px;margin:0}
.purchase-table select{min-width:145px}
.purchase-quantity{display:flex;gap:4px;align-items:center}
.purchase-quantity input{width:68px}
@media(max-width:620px){.purchase-table thead{position:absolute;clip-path:inset(50%)}.purchase-table tbody,.purchase-table tr{display:block}.purchase-table tr{padding:7px;border:1px solid var(--border);border-radius:7px;margin:5px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-table tr.hide{display:none}.purchase-table th[scope=row],.purchase-table td:last-child{grid-column:1/-1}.purchase-table td,.purchase-table th{border:0;padding:3px}.purchase-table td:before{content:attr(data-label);display:block;color:#4b4b4b;font-size:.72rem}.purchase-table td:last-child select{width:100%}}
.count-history-sent{background:#e4f1fc;border-color:#8ab7d9;color:#174b70}
.purchase-category{margin:7px 0;border:1px solid var(--border);border-radius:8px;background:#fff}
.purchase-category>summary{cursor:pointer;padding:8px 10px;background:#f7f3e5;border-radius:7px}
.purchase-category>summary small{margin-inline-start:10px;color:#59554c}
.purchase-category .purchase-table-wrap{margin:0 5px 4px}
.purchase-table td[data-label="Incluir"]{width:1%;white-space:nowrap}
.purchase-pick{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.purchase-table .purchase-pick input{min-height:0;width:18px;height:18px;accent-color:#916500}
.purchase-pick span{font-size:.75rem}
.purchase-step-actions{gap:8px;flex-wrap:wrap;margin-top:12px}
.purchase-supplier-card{border:1px solid var(--border);border-radius:8px;padding:10px;margin:8px 0}
.purchase-supplier-card h4{margin:0 0 4px}
.purchase-supplier-card textarea{display:block;width:100%;resize:vertical;margin:4px 0 6px}
.purchase-supplier-card [role=status]{margin-inline-start:8px}
.dispatch-controls{align-items:end}
.dispatch-controls select{min-width:160px}
.dispatch-card-sent{border-color:#a9d5b8;background:#edf9f0;color:#164c30}
.dispatch-card-sent summary{cursor:pointer;padding:5px 0}
.dispatch-badge{display:inline-block;background:#d2efdb;color:#145233;border-radius:999px;padding:3px 9px;margin-inline-start:5px;font-size:12px;font-weight:750}
@media(max-width:620px){.purchase-table td[data-label="Proveedor"],.purchase-table td[data-label="Incluir"]{grid-column:1/-1;width:auto}.purchase-table td[data-label="Incluir"]:before{display:none}.purchase-pick{min-height:32px}}
.purchase-summary-lines{margin:4px 0;padding:0;list-style:none}
.purchase-summary-lines li{display:flex;justify-content:space-between;gap:8px;padding:3px 0;border-bottom:1px solid var(--border)}
.review-index-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.review-index-heading h2{margin:0}
.review-index-heading button{min-height:34px;padding:4px 9px;font-size:.8rem}
.review-inventory-context{margin:2px 0 6px}
.review-task-details{font-size:.82rem;margin:4px 0 8px}
.review-task-details summary{cursor:pointer}
.review-task-details ul{margin:4px 0;padding-inline-start:18px}
.review-verified{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:5px 0 8px;color:#174f2e;font-size:.85rem;font-weight:700}
.review-verified button{min-height:34px;padding:4px 9px;font-size:.8rem}
.purchase-missing-note{color:#a11d22;font-weight:650}
.purchase-manual-button{min-height:30px;padding:3px 6px;font-size:.75rem;white-space:nowrap}
.purchase-manual-notes{margin:4px 0 8px;padding-inline-start:18px;font-size:.8rem}
.history-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));margin-bottom:12px}
.history-table-wrap{overflow:auto;margin:8px 0}
.history-table{border-collapse:collapse;width:100%;text-align:left}
.history-table th,.history-table td{padding:8px 10px;border-bottom:1px solid var(--border)}
.history-table th{background:#f5f3e9;font-size:13px}
.history-table .history-qty{font-weight:700;white-space:nowrap}
.history-pages{margin-top:12px}
.global-site-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:8px}
.global-site-card{border:1px solid #e7d797;border-radius:9px;background:#fff9e6;padding:12px}
.global-site-card h3{margin:0}
.global-site-card p{margin:5px 0}
.global-site-card button{padding:8px 10px;font-size:12px}
.global-site-loaded{background:#edf9f0;border-color:#acd6ba}
.global-site-sent{background:#e9f3ff;border-color:#a8c7e7}
.global-progress{width:100%;height:9px;accent-color:#18794e;margin-bottom:14px}

/* Navigation follows Al Quadrado's payments system. */
:root{--sidebar-width:218px;--topbar-height:64px;--yellow:#ffc400;--bg:#f3f4f5;--border:#e0e3e7}
.topbar{background:#111519;border-bottom:1px solid #24292e}
.topbar>div{min-height:var(--topbar-height);max-width:1240px;padding:10px 24px;gap:12px}
.topbar-start{display:flex;align-items:center;gap:16px;min-width:0}
.topbar-location{color:#b4b9bf;font-size:11px;font-weight:600;letter-spacing:.035em}
.topbar-account{justify-content:flex-end;flex-wrap:nowrap;font-size:12px}
.topbar-account button{background:transparent;color:#f3f4f6;border:1px solid #44484c;min-height:38px;padding:7px 13px;font-size:12px;border-radius:6px}
.topbar-account button:hover{background:#2a2e31}
.nav-toggle{display:grid;place-items:center;background:transparent;color:#c8cdd2;width:44px;height:44px;min-height:44px;padding:10px;border-radius:6px;flex-shrink:0}
.nav-toggle svg,.sidebar-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.is-authenticated .login-brand{display:none}
.is-authenticated .topbar{margin-left:var(--sidebar-width)}
.is-authenticated .topbar>div{max-width:none}
.is-authenticated main.shell{max-width:none;margin-left:var(--sidebar-width);padding:24px 28px}
.is-authenticated .nav-toggle{display:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:#080909;color:#a5aaad;z-index:25;display:flex;flex-direction:column;border-right:1px solid #202326}
.sidebar-brand{padding:24px 22px 20px;border-bottom:1px solid #202326}
.sidebar-brand img{max-width:100%;height:auto;display:block;margin:0 auto}
.sidebar-brand span{display:block;text-align:center;color:#e2ba36;font-size:9px;letter-spacing:.09em;margin-top:9px}
.sidebar-nav{overflow:auto;overscroll-behavior:contain;padding:14px 10px;flex:1}
.sidebar-link{width:100%;display:flex;align-items:center;gap:12px;min-height:45px;padding:10px 12px;margin:3px 0;background:transparent;color:#a9afb5;border-radius:6px;border-left:3px solid transparent;text-align:left;font-size:12px;font-weight:500;line-height:1.35}
.sidebar-link:hover{background:#1a1c1e;color:#fff;filter:none}
.sidebar-link.active{background:#292517;color:#ffd23c;border-left-color:#ffc400;font-weight:700}
.sidebar-link.active svg{stroke:#ffc400}
.sidebar-footer{border-top:1px solid #202326;padding:15px 22px;display:flex;align-items:center;gap:10px;font-size:10px;color:#81878d}
.sidebar-footer b{color:#ffc400;font-size:20px}
.nav-scrim{display:none}
.account-heading{box-shadow:none;padding:0 0 18px;margin-bottom:22px;border:0;border-bottom:1px solid #dfe2e5;border-radius:0;background:transparent}
.account-heading h1{font-size:24px;margin-bottom:5px}
.account-heading .pill{background:#e8eaed;color:#5c646d}
#view>.card{box-shadow:0 2px 7px #12121204}
.card{border-radius:11px}
button,.button{border-radius:7px}
.is-authenticated footer.shell{max-width:none;padding-inline:0;padding-bottom:10px}
.is-authenticated #alerts:empty{display:none}
@media(min-width:1700px){.is-authenticated main.shell{padding-inline:40px}}
@media(max-width:900px){
 .is-authenticated .topbar{margin-left:0}
 .is-authenticated .topbar>div{padding:8px 12px}
 .is-authenticated .nav-toggle{display:grid}
 .is-authenticated main.shell{margin-left:0;padding:18px 16px}
 .sidebar{width:250px;max-width:calc(100vw - 58px);transform:translateX(-100%);visibility:hidden;transition:transform .18s ease,visibility .18s}
 .navigation-open .sidebar{transform:translateX(0);visibility:visible}
 .navigation-open .nav-scrim{display:block;position:fixed;inset:var(--topbar-height) 0 0;background:#0008;z-index:24;border:0;border-radius:0;padding:0;width:100%;height:calc(100dvh - var(--topbar-height))}
 .navigation-open{overflow:hidden}
 .topbar{z-index:26}
 .sidebar{top:var(--topbar-height)}
 .sidebar-brand{padding:18px 34px 14px}
 .sidebar-link{font-size:13px;min-height:46px}
 .account-heading{padding-bottom:14px;margin-bottom:16px}
 .topbar-location{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .topbar-account{gap:6px}
}
@media(max-width:480px){
 .topbar>div{padding:10px 14px}
 .topbar-account button{min-height:40px;padding:7px 10px}
 .topbar-start{gap:7px;flex:1}
 .topbar-location{max-width:calc(100vw - 130px)}
 .is-authenticated main.shell{padding:16px 10px}
 .account-heading h1{font-size:21px}
 .account-heading #userInfo{font-size:11px;overflow-wrap:anywhere}
 .account-heading .pill{font-size:10px;padding:4px 8px}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

.legacy-activation{display:none!important}

/* Shared dark palette for every operational screen, including native controls. */
:root{color-scheme:dark;--bg:#111519;--card:#1b2127;--ink:#edf0f3;--gray:#b0b8c2;--border:#3b454f;--yellow:#ffc400;--green:#78d9ac;--surface:#252d35;--field:#151b21;--positive-bg:#173b2c;--positive-border:#3a825d;--positive-ink:#a3e6bf;--warning-bg:#3b321b;--warning-border:#90752b;--warning-ink:#ffe29a;--negative-bg:#422428;--negative-ink:#ffb0b4;--info-bg:#1b3348;--info-ink:#acd9ff}
html{background:var(--bg);scrollbar-color:#667380 var(--field)}
body{background:var(--bg);color:var(--ink)}
.card,dialog{background:var(--card);color:var(--ink);border-color:var(--border);box-shadow:0 2px 12px #0002}
.record,.order-card,.scope-area,.audit-item,.purchase-supplier-card,.inline-count-row{border-color:var(--border)}
input,select,textarea{background:var(--field);color:var(--ink);border-color:#65717d;caret-color:var(--yellow)}
input::placeholder,textarea::placeholder{color:#a4aeb9;opacity:1}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
input:disabled,select:disabled,textarea:disabled{background:#242b32;color:#b9c1ca;opacity:.75}
input[type=checkbox],input[type=radio],.perm-choice input,.check-label input,.purchase-table .purchase-pick input{accent-color:var(--yellow)}
option,optgroup{background:var(--field);color:var(--ink)}
button,.button{background:var(--yellow);color:#171a1e}
button.secondary,button.dark,.tabs button{background:#303a44;color:var(--ink)}
.tabs button.active{background:#4b4020;color:#ffe29a}
button.green{background:#266b48;color:#f1fff6}
button.red{background:var(--negative-bg);color:var(--negative-ink)}
button:disabled{opacity:.5}
a{color:#ffdb70}
.pill,.account-heading .pill{background:var(--surface);color:#c6ced7}
.ok,.review-verified{color:var(--positive-ink)}
.warn{color:var(--warning-ink)}
.err,.purchase-missing-note{color:var(--negative-ink)}
.notice{background:var(--warning-bg);color:var(--warning-ink);border-left-color:var(--yellow)}
.notice.ok{background:var(--positive-bg);color:var(--positive-ink);border-color:var(--positive-border)}
.notice.err{background:var(--negative-bg);color:var(--negative-ink);border-color:#e76f78}
.progress{background:#434e59}.progress>div{background:var(--green)}
.count-progress progress{background:#434e59;border:0;border-radius:6px;overflow:hidden}
.count-progress progress::-webkit-progress-bar{background:#434e59}
.count-progress progress::-webkit-progress-value{background:var(--yellow)}
.count-progress progress::-moz-progress-bar{background:var(--yellow)}
.perm-choice,.task-choice,.purchase-category{background:var(--card);color:var(--ink)}
.perm-choice:has(input:checked){background:var(--warning-bg);border-color:var(--yellow);box-shadow:inset 0 0 0 1px var(--warning-border)}
.role-card{background:var(--surface);color:var(--ink);border-color:var(--border)}
.role-card.active{background:var(--warning-bg);border-color:var(--yellow)}
.role-card small,.purchase-category>summary small{color:var(--gray)}
.check-label,.summary-grid>div,.muted-box,.audit-item pre{background:var(--surface);color:var(--ink)}
.flag,.dispatch-badge{background:var(--positive-bg);color:var(--positive-ink)}
.flag.master{background:#101315;color:#ffdb70}
.sticky-actions{background:var(--card)}
.count-compact .count-category h3,.supplier-invoice-tag{background:var(--warning-bg);color:var(--warning-ink)}
.inline-count-message,.weight-check{color:var(--warning-ink)}
.count-checklist button[aria-current=true]{border-color:var(--yellow)}
.count-history-complete,.global-site-loaded,.dispatch-card-sent{background:var(--positive-bg);border-color:var(--positive-border);color:var(--positive-ink)}
.count-history-incomplete,.global-site-card{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-ink)}
.count-history-sent,.global-site-sent{background:var(--info-bg);border-color:#4b7c9e;color:var(--info-ink)}
.global-site-loaded{background:var(--positive-bg);border-color:var(--positive-border);color:var(--positive-ink)}
.count-history-actions button{background:#172127;color:var(--ink);border-color:#75818b}
.purchase-table thead,.purchase-category>summary,.history-table th{background:#2c333b;color:var(--ink)}
.purchase-table td:before{color:var(--gray)}
.account-heading{background:transparent;border-bottom-color:var(--border);box-shadow:none}
.topbar-account button{background:transparent;color:var(--ink)}
.sidebar-link{background:transparent;color:#b5bdc6}
.sidebar-link.active{background:#332d1c;color:#ffdb70}
.nav-toggle{background:transparent;color:#c8cdd2}
dialog::backdrop{background:#000b}
::selection{background:#ffc400;color:#15191e}
.advanced-assignments>summary{font-size:14px;color:#ffdb70}
.assignment-section{padding:12px 0;border-top:1px solid var(--border)}

.inline-count-heading .count-product-link{color:var(--ink)}
.mixed-pack-summary{color:var(--warning-ink);margin:6px 0}
.global-progress{accent-color:var(--green)}

.count-site-heading{font-size:18px;font-weight:800;color:var(--yellow);margin:0 0 7px}
