:root {
    --green:#174f3e; --green-active:#286952; --ink:#20362e; --muted:#6c796f;
    --line:#dfe5dc; --cream:#f7f7f0; --soft:#e9f1e8; --amber:#856322;
    --amber-bg:#f7eedb; --red:#a54637; --nav-height:72px; --portal-width:560px;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ink); background:#edf0e9; font-synthesis:none; line-height:1.45; color-scheme:light;
}
* {box-sizing:border-box}
body {margin:0;font-size:16px}
button,input,select,textarea {font:inherit;color:inherit}
button,a,input,select,summary,textarea {-webkit-tap-highlight-color:transparent}
button {cursor:pointer}
a {color:var(--green);text-decoration:none}
button:disabled {cursor:default;opacity:.5}
input,select,textarea {min-width:0;max-width:100%;font-size:16px}
input,textarea {scroll-margin-block:100px 180px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid #79a28b;outline-offset:2px}
svg {width:22px;height:22px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}
[hidden] {display:none!important}
.sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portal {max-width:var(--portal-width);min-height:100vh;min-height:100dvh;margin:0 auto;padding:0 16px 24px;background:var(--cream)}
.has-nav {padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 24px)}
.portal.with-action {padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 110px)}
.header {height:52px;margin:0 -16px 16px;padding:0 16px;border-bottom:1px solid #e7eade;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand-link {display:flex;align-items:center;min-height:44px}
.brand {direction:ltr}
.brand strong {font-size:22px;line-height:1;font-weight:800;letter-spacing:-1px;color:var(--green);white-space:nowrap}
.brand-dot {color:#e59735}
.profile-menu {position:relative;z-index:35}
.profile-toggle {width:44px;height:44px;display:grid;place-items:center;list-style:none;cursor:pointer;border-radius:12px}
.profile-toggle::-webkit-details-marker {display:none}
.profile-toggle svg {width:30px;height:30px;padding:5px;border:1px solid #dae3d3;border-radius:50%;background:#edf2e7}
.profile-panel {position:absolute;inset-inline-end:0;top:46px;width:220px;max-width:calc(100vw - 32px);border:1px solid var(--line);background:white;box-shadow:0 7px 24px #203c2318;border-radius:12px;padding:10px}
.profile-name {margin:3px 4px 10px;font-size:13px;font-weight:650;overflow-wrap:anywhere}
.profile-panel button {width:100%;text-align:start;justify-content:flex-start}
.profile-panel .logout {min-height:44px;padding:8px;background:none;border:0;border-top:1px solid var(--line);font-size:14px;color:var(--green)}
.profile-panel .small {font-size:12px;margin:5px}
h1 {font-size:23px;line-height:1.2;letter-spacing:-.5px;margin:0 0 16px;font-weight:750;overflow-wrap:anywhere}
h2 {font-size:16px;line-height:1.3;margin:0;font-weight:700;overflow-wrap:anywhere}
p {overflow-wrap:anywhere}
.title-row {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px}
.title-row h1 {margin:0}
.muted,.intro {color:var(--muted)}
.small {font-size:12px}
.intro {font-size:14px;line-height:1.5;margin:8px 0 22px}
.intro.compact {margin:0 0 16px;font-size:14px}
.primary,.secondary {display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;width:100%;padding:11px 14px;border:1px solid transparent;border-radius:10px;background:var(--green);color:white;font-size:16px;font-weight:700;line-height:1.3;text-align:center;text-decoration:none}
.primary:hover {background:#123f31}
.secondary {background:white;border-color:var(--line);color:var(--green)}
.secondary:hover {background:#f1f5ed}
.text-button {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 4px;border:0;background:transparent;color:var(--green);font-size:13px;font-weight:600;line-height:1.3}
.icon-button {display:grid;place-items:center;width:44px;height:44px;border:0;background:none;border-radius:9px;flex:none}
.back-link {display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;color:var(--muted);margin:-12px 0 4px}
.back-link>span {font-size:27px;line-height:1}
[dir=rtl] .back-link>span {transform:rotate(180deg)}
.notice {font-size:13px;line-height:1.5;padding:12px;border-radius:9px;background:#ecf1e8;color:#536849;margin:10px 0 14px;border:1px solid #dce5d6}
.notice.error {color:#934334;background:#fbede7;border-color:#f0d5c9}
.notice.success {color:#22623c;background:#eaf3e6;border-color:#cce1c5}
#offline-banner {margin:0 -16px;border-radius:0;padding:10px 16px}
.empty {padding:38px 12px;text-align:center;color:var(--muted);font-size:14px}
.bottom-nav {position:fixed;z-index:25;inset-inline:0;bottom:0;max-width:var(--portal-width);margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding:6px 8px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
.collector-nav {grid-template-columns:repeat(5,minmax(0,1fr))}
.bottom-nav a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;border-radius:9px;color:#78867a;font-size:11px;font-weight:550;text-align:center;line-height:1.2}
.bottom-nav a.selected {background:#eef4e9;color:var(--green);font-weight:750}
.bottom-nav svg {width:22px;height:22px}
.bottom-nav .create-link svg {stroke-width:2.2}
.login-panel {max-width:410px;margin:38px auto 0}
.login-panel h1 {font-size:26px;margin-bottom:8px}
.login-form {display:flex;flex-direction:column;gap:7px;margin-top:26px}
.login-form label {font-size:14px;font-weight:650;margin-top:12px}
.login-form>input,.pin-field {height:50px;border:1px solid #d5dfd0;border-radius:9px;background:white}
.login-form>input {width:100%;padding:11px 12px}
.pin-field {display:flex;align-items:center;direction:ltr}
.pin-field input {width:100%;height:100%;border:0;background:none;padding:11px 12px;letter-spacing:4px;border-radius:9px}
.pin-toggle {border:0;background:none;display:grid;place-items:center;min-width:44px;height:44px}
.login-form>.primary {margin-top:20px}
.install-area {text-align:center;margin-top:30px}
.search {display:flex;align-items:center;gap:8px;min-height:44px;border:1px solid #d8e1d3;border-radius:10px;background:#fff;padding:0 11px;margin:0 0 14px}
.search>svg {width:19px;height:19px;color:#778775}
.search input {width:100%;height:44px;padding:0;border:0;background:none;font-size:16px}
.search button {align-self:stretch;min-width:44px;border:0;background:none;color:var(--green);font-size:12px;font-weight:600;padding:4px}
.search:focus-within {border-color:#729983;box-shadow:0 0 0 2px #73998416}
.search input:focus {outline:none}
.product-list {display:grid;gap:10px}
.product-card {padding:11px 12px 0;border:1px solid var(--line);background:#fff;border-radius:12px}
.product-card.edited {border-color:#57916a}
.product-top {display:flex;align-items:center;gap:9px}
.product-photo {width:48px;height:48px;object-fit:cover;background:#f0f3e9;border-radius:9px;flex:none}
.product-top h2 {flex:1;min-width:0;font-size:16px;line-height:1.25}
.availability-toggle {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:48px;min-height:48px;cursor:pointer;flex:none}
.availability-toggle input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.switch {display:block;width:41px;height:24px;border-radius:15px;padding:3px;background:#d0d9ce}
.switch:after {content:"";display:block;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}
.availability-toggle input:checked+.switch {background:var(--green-active)}
.availability-toggle input:checked+.switch:after {transform:translateX(17px)}
[dir=rtl] .availability-toggle input:checked+.switch:after {transform:translateX(-17px)}
.availability-toggle input:focus-visible+.switch {outline:3px solid #79a28b;outline-offset:3px}
.availability-toggle.locked {cursor:default}
.availability-toggle input:disabled {cursor:default}
.availability-toggle input:disabled+.switch {opacity:.55}
.switch-status {font-size:12px;line-height:1.15;color:var(--muted);white-space:nowrap}
.availability-status {margin-top:2px;font-size:12px;color:var(--muted)}
.availability-status>summary {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;cursor:pointer;list-style:none}
.availability-status>summary::-webkit-details-marker {display:none}
.availability-details-link {color:var(--green);font-size:15px}
.availability-facts {padding:3px 0 8px;line-height:1.55}
.availability-facts p {margin:4px 0}
.availability-current-rule {border-inline-start:2px solid #dfd0af;margin-top:8px;padding-inline-start:9px}
.availability-editor select {width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #dae2d5;border-radius:8px;background:#fdfefb;font-size:16px}
.availability-editor label {display:block;font-size:12px;font-weight:600;margin:10px 0 5px}
.availability-inputs {margin:4px 0 6px}
body:not(.js-enabled) .product-card:has(.availability-toggle input:checked) .availability-inputs {display:none}
body:not(.js-enabled) .product-card:has(input[name^="initial_available_"][value="0"]) .availability-inputs {display:none}
.product-inputs,.two-col {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.product-inputs {margin-top:10px;align-items:end}
.product-inputs:last-child {margin-bottom:12px}
.price-row,.quantity-row {min-width:0}
.price-row>label,.quantity-row>label {display:block;font-size:12px;font-weight:600;color:#667461;margin-bottom:6px;line-height:1.25}
.price-field {display:flex;align-items:center;min-height:44px;min-width:0;overflow:hidden;border:1px solid #dae2d5;border-radius:8px;background:#fdfefb}
.price-field input {width:100%;min-width:0;height:42px;padding:0 9px;font-size:16px;font-weight:650;border:0;background:transparent;font-variant-numeric:tabular-nums}
.price-field input::placeholder {font-size:12px;font-weight:400;color:#7a8776}
.price-field input:focus {outline:0}
.price-field:focus-within {border-color:#6b9580;box-shadow:0 0 0 2px #71948015}
.price-field>span {white-space:nowrap;padding:0 8px 0 2px;color:var(--muted);font-size:12px}
.history {font-size:12px;color:#74816f;border-top:1px solid #edf0e6;margin-top:10px}
.history summary {min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:4px;cursor:pointer;list-style:none;padding:5px 0}
.history summary::-webkit-details-marker {display:none}
.history-inline {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;flex:1;line-height:1.35}
.history summary>svg {width:15px;height:15px;flex:none}
.history[open] summary>svg {transform:rotate(180deg)}
.history-detail {border-top:1px solid #edf0e6;padding:8px 0 10px;line-height:1.5}
.history-detail p {margin:3px 0}
.save-bar,.operation-actionbar,.creation-actionbar {position:fixed;z-index:20;inset-inline:0;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom));width:100%;max-width:var(--portal-width);margin:0 auto;background:#fff;border-top:1px solid var(--line);padding:10px 16px 12px}
.save-bar #pending-count {display:block;font-size:12px;color:var(--muted);margin-bottom:7px;text-align:center}
.save-bar #pending-count:empty {display:none}
.operation-actions-space,.creation-actions-space {height:90px}
.ready-form .operation-actionbar {position:static;margin:12px 0;border:0;padding:0}
.js-enabled .ready-form .operation-actionbar {position:fixed;margin:0 auto;border-top:1px solid var(--line);padding:10px 16px 12px}
#load-sentinel {text-align:center;padding-top:12px}
#load-status {margin:8px 0}
.pagination {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;font-size:13px}
.pagination a {padding:10px 0;min-height:44px}
.pagination span {margin:auto;color:var(--muted)}
.stack-form {display:flex;flex-direction:column;gap:0}
.field {margin-bottom:16px;min-width:0}
.field>label,.optional-section>label {display:block;font-size:13px;font-weight:650;margin-bottom:7px}
.field>input,.field>select,.optional-section textarea {display:block;width:100%;height:46px;border:1px solid #d6e0d1;border-radius:9px;background:white;padding:9px 11px;font-size:16px}
.optional-section textarea {height:auto;min-height:92px;resize:vertical}
.photo-picker {display:flex;align-items:center;gap:12px;min-height:122px;margin-bottom:20px;padding:14px;border:1px dashed #b6c9af;border-radius:12px;background:#edf3e7}
.photo-picker>img {width:72px;height:72px;object-fit:cover;border-radius:9px;flex:none}
.photo-choices {flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;gap:0}
.photo-choices .secondary {background:white;font-size:13px;min-height:44px;padding:8px}
.photo-choices .secondary svg {width:19px;height:19px}
.photo-choices .text-button {font-size:12px}
.photo-button {position:relative;overflow:hidden;cursor:pointer}
.photo-button input {position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;max-width:100%}
.photo-button:focus-within {outline:3px solid #79a28b;outline-offset:2px}
.proof-picker {margin:12px 0;font-size:13px;background:#fff}
.section-title {font-size:13px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.section-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:22px 0 10px}
.section-heading h2 {font-size:16px}
.section-heading .text-button {margin:-8px 0}
.summary-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.summary-card {display:flex;flex-direction:column;gap:5px;min-height:103px;padding:15px 14px;background:white;border:1px solid var(--line);border-radius:12px;color:var(--ink)}
.summary-card.urgent {background:#f5eddc;border-color:#e9dfc9}
.summary-card strong {font-size:30px;font-weight:750;line-height:1.15;letter-spacing:-1px}
.summary-card span {font-size:13px;color:var(--muted)}
.summary-link {display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 2px;font-size:13px}
.summary-link strong {margin-inline-start:auto}
.summary-link>span:last-child {font-size:22px;color:var(--muted)}
.scan-link {margin:16px 0;font-size:14px;background:#e5eee0;color:var(--green)}
.dashboard-operations {border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}
.dashboard-operation {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 12px;border-bottom:1px solid var(--line)}
.dashboard-operation:last-child {border-bottom:0}
.dashboard-operation>div {display:flex;flex-direction:column;gap:5px;min-width:0}
.dashboard-operation strong {font-size:15px;overflow-wrap:anywhere}
.dashboard-operation .small {font-size:12px;line-height:1.4}
.activity-section {margin-top:22px}
.filter-chips {display:flex;gap:6px;overflow-x:auto;padding:0 0 4px;margin-bottom:10px;scrollbar-width:thin}
.filter-chips a {display:flex;align-items:center;justify-content:center;flex:1;white-space:nowrap;min-height:44px;padding:8px 9px;font-size:12px;border:1px solid var(--line);background:#fff;border-radius:8px;color:var(--muted)}
.filter-chips a.selected {background:var(--green);border-color:var(--green);color:white}
.activity-card {background:#eaf0e4;border-radius:12px;padding:14px}
.activity-card>div,.stock-summary>div {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;padding:6px 0}
.activity-card strong {font-size:22px;line-height:1.2}
.stock-summary {margin-top:14px;border-top:1px solid var(--line);padding-top:8px;color:var(--muted)}
.stock-summary strong {color:var(--ink);font-size:16px}
.segmented {display:flex;gap:4px;padding:4px;background:#e8ede1;border-radius:9px;margin:0 0 10px}
.segmented a {display:flex;flex:1;align-items:center;justify-content:center;gap:5px;min-height:44px;border-radius:6px;color:var(--muted);font-size:12px;font-weight:600;text-align:center;padding:7px 4px}
.segmented a.selected {background:#fff;color:var(--green);box-shadow:0 1px 3px #183a1910}
.segmented b {font-size:12px;font-weight:650}
.operation-search {margin:0 0 12px;font-size:13px;color:var(--green)}
.operation-search>summary {min-height:44px;cursor:pointer;display:flex;align-items:center;justify-content:flex-end;list-style:none}
.operation-search>summary::-webkit-details-marker {display:none}
.operation-search .search {margin:2px 0 0}
.operation-list {display:grid;gap:10px}
.operation-card {padding:13px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink)}
.operation-heading {display:flex;align-items:center;justify-content:space-between;gap:8px}
.operation-heading>strong {font-size:16px;line-height:1.25;overflow-wrap:anywhere;min-width:0}
.operation-card p {margin:7px 0}
.badge {display:inline-flex;align-items:center;justify-content:center;max-width:160px;padding:6px 8px;font-size:12px;font-weight:650;line-height:1.2;border-radius:6px;background:#edf1e7;color:#60735d;flex:none}
.state-new,.state-partial {color:var(--amber);background:var(--amber-bg)}
.state-ready,.state-collected,.state-delivered {color:var(--green);background:#e7f1e2}
.state-cancelled {color:var(--red);background:#faeae4}
.operation-card-products {display:flex;align-items:center;gap:9px;padding-top:10px;margin-top:11px;border-top:1px solid #edf0e6}
.operation-card-products>span {font-size:12px;line-height:1.4;flex:1;color:var(--muted)}
.operation-card-products>span:last-child {font-size:22px;flex:none}
.thumb-stack {display:flex;flex:none}
.thumb-stack img {width:32px;height:32px;object-fit:cover;border-radius:8px;border:2px solid white;background:#f0f3e9;margin-inline-start:-7px}
.thumb-stack img:first-child {margin-inline-start:0}
.delivery-date {font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 15px}
.delivery-date.overdue {color:#886b38}
.operation-title {margin-bottom:10px}
.operation-title h1 {font-size:23px}
.supplier-details {border:1px solid var(--line);border-radius:12px;padding:13px;background:white;margin:14px 0}
.supplier-details>strong {font-size:16px}
.supplier-details p {font-size:12px;color:var(--muted);margin:5px 0}
.supplier-details>a {display:inline-flex;align-items:center;min-height:44px;font-size:13px;margin-top:4px}
.supplier-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.supplier-actions a {min-height:44px;display:flex;align-items:center;justify-content:center;background:#f1f5eb;border-radius:8px;font-size:13px}
.shop-empty {margin:0 0 16px;font-size:14px;line-height:1.5}
.collector-portal .title-row {margin-bottom:18px}
.collector-portal .bottom-nav a {font-size:10px;gap:5px;padding-inline:1px}
.collector-search {margin-bottom:16px;background:#fff;min-height:48px;border-color:#dce4dc;border-radius:13px}
.collector-search input {min-width:0;height:48px;font-size:15px}
.collector-search.is-live-search:not(.search-failed)>button {display:none}
.live-search-status {margin:0 0 12px}
.collector-portal .segmented {padding:4px;gap:3px;border-radius:12px;background:#e9eee7;margin-bottom:14px}
.collector-portal .segmented a {flex-direction:column;gap:4px;min-height:59px;padding:7px 2px;border-radius:9px;font-size:12px}
.collector-portal .segmented b {display:grid;place-items:center;min-width:23px;min-height:20px;padding:1px 5px;border-radius:6px;font-size:12px;background:#dce6d9;color:#385d48}
.collector-portal .segmented a.selected {box-shadow:0 1px 4px #213a1b12}
.collector-portal .segmented a.selected b {background:var(--green);color:#fff}
.shop-list {display:grid;gap:13px}
.shop-card {display:block;background:white;border:1px solid var(--line);border-radius:17px;padding:17px 15px 0;color:var(--ink);box-shadow:0 2px 8px #1d382404}
.shop-card.priority-attention {border-color:#ecd5cc}
.shop-card.priority-collect {border-color:#cfe1d4}
.shop-card-heading {display:flex;align-items:center;gap:13px;padding-bottom:15px}
.shop-card-heading>div {flex:1;min-width:0}
.shop-card h2 {font-size:17px;line-height:1.25;margin:0 0 5px}
.shop-card-heading p {font-size:12px;color:var(--muted);margin:0 0 7px;line-height:1.5}
.card-chevron {font-size:25px;color:#859485;flex:none}
[dir=rtl] .card-chevron,[dir=rtl] .collection-cta>span,[dir=rtl] .shop-history-link>span:last-child,[dir=rtl] .shop-scope-link>span:last-child {transform:rotate(180deg)}
.shop-marker {width:51px;height:60px;flex:none;position:relative;color:var(--green)}
.shop-marker>svg {display:block;width:100%;height:100%;stroke-width:1.8}
.shop-marker .marker-fill {fill:#e3f0e8;stroke:#c6dfd0}
.shop-marker .marker-store {stroke:currentColor;stroke-width:2;fill:none}
.shop-marker>b {position:absolute;top:-3px;inset-inline-end:-5px;min-width:23px;height:23px;border-radius:50%;padding:1px 5px;border:2px solid white;background:var(--green);font-size:11px;color:white;display:grid;place-items:center;line-height:1;font-variant-numeric:tabular-nums}
.priority-attention {color:#9f4639}
.priority-collect {color:#216642}
.priority-prepare {color:#926317}
.priority-idle {color:#798279}
.shop-card,.collector-operation-card {color:var(--ink)}
.shop-marker.priority-attention .marker-fill {fill:#fbebe5;stroke:#efd2c7}
.shop-marker.priority-attention>b {background:#ae5042}
.shop-marker.priority-prepare .marker-fill {fill:#fff1d3;stroke:#efdfb9}
.shop-marker.priority-prepare>b {background:#ad7c21}
.shop-marker.priority-idle .marker-fill {fill:#eef1ed;stroke:#dde4dc}
.shop-status {display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650;line-height:1.4}
.shop-status svg {width:14px;height:14px;stroke-width:2}
.shop-status:not(.priority-attention)::before {content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.shop-counts {display:flex;flex-wrap:wrap;align-items:center;gap:9px 13px;border-top:1px solid #edf0e9;padding:11px 0 13px}
.shop-counts>span {display:flex;align-items:center;gap:5px;font-size:12px}
.shop-counts b {font-size:14px;font-weight:750;line-height:1}
.shop-detail-contact {margin:0 0 23px}
.shop-title {display:flex;align-items:center;gap:14px}
.shop-title>div {min-width:0;flex:1}
.shop-title h1 {font-size:23px;margin:0 0 6px;line-height:1.2}
.shop-title p {font-size:13px;color:var(--muted);margin:0 0 8px;line-height:1.5}
.shop-detail-contact .supplier-actions {margin-top:17px}
.shop-detail-contact .supplier-actions a {gap:7px;background:#fff;border:1px solid var(--line);border-radius:10px;font-size:13px;font-weight:650;min-height:45px}
.shop-detail-contact .supplier-actions svg {width:17px;height:17px}
.shop-operation-section {margin:19px 0}
.shop-operation-section .section-heading {margin:0 0 11px}
.shop-operation-section h2 {display:flex;align-items:center;gap:8px;font-size:16px}
.section-count {font-size:12px;border-radius:7px;background:#e5eee4;min-width:25px;padding:3px 6px;text-align:center}
.section-count.priority-prepare {background:#f8ecd2}
.shop-section-empty {font-size:13px;color:var(--muted);padding:17px;margin:0;background:#f0f3ed;border-radius:12px}
.shop-history-link,.shop-scope-link {display:flex;align-items:center;gap:9px;min-height:48px;font-size:14px;font-weight:600}
.shop-history-link {border-top:1px solid var(--line);padding-top:10px;margin-top:24px}
.shop-history-link svg,.shop-scope-link svg {width:19px;height:19px}
.shop-history-link b {margin-inline-start:auto;color:var(--muted);font-size:13px}
.shop-history-link>span:last-child,.shop-scope-link>span:last-child {font-size:24px;font-weight:400}
.shop-scope-link {margin:-5px 0 14px;padding:9px 12px;background:#eaf0e6;border-radius:10px}
.shop-scope-link>span:first-of-type {flex:1;overflow-wrap:anywhere}
.stores-link {margin:-4px 0 16px;padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:11px}
.collector-operation-card {border-radius:15px;padding:15px;background:#fff;box-shadow:0 2px 7px #223d2003}
.collector-operation-card.priority-attention {border-color:#ead4ca}
.collector-operation-card .operation-heading {align-items:flex-start;gap:9px}
.collector-operation-card .operation-heading>div {flex:1;min-width:0}
.collector-operation-card .operation-heading strong {font-size:16px;font-weight:750;overflow-wrap:anywhere}
.operation-store {display:block;color:var(--muted);font-size:12px;line-height:1.35;margin-top:4px}
.collector-operation-card .badge {max-width:46%;font-size:11px;line-height:1.25;text-align:center;padding:6px 8px;border-radius:7px}
.collector-operation-card .state-partial {background:#e7f1e2;color:var(--green)}
.collector-operation-card .state-new,.collector-operation-card .state-confirmed {color:var(--amber);background:var(--amber-bg)}
.collection-products {display:flex;align-items:center;gap:11px;margin:15px 0 12px}
.collection-products>div:last-child {min-width:0;flex:1}
.collection-products .thumb-stack img {width:40px;height:40px;border-radius:10px;margin-inline-start:-11px}
.collection-products .thumb-stack img:first-child {margin-inline-start:0}
.collection-products strong {font-size:12px;font-weight:650}
.collection-products p {font-size:12px;color:var(--muted);line-height:1.4;margin:3px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.collector-operation-card .collection-attention {display:flex;align-items:center;gap:6px;padding:8px 9px;background:#fbede7;color:#9c483b;border-radius:8px;font-size:12px;font-weight:550;margin:0 0 10px}
.collection-attention svg {width:15px;height:15px}
.collection-card-footer {display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf0e9;padding-top:10px}
.collection-card-footer>bdi {color:var(--muted);font-size:11px}
.collection-cta {display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:12px;font-weight:650;color:var(--green);margin-inline-start:auto;min-height:32px;text-align:end}
.collection-cta.can-collect {background:#e9f2e7;padding:5px 10px;border-radius:8px}
.collection-cta>span {font-size:21px;font-weight:450;line-height:1}
.collector-empty {text-align:center;padding:30px 15px;background:#fff;border:1px solid var(--line);border-radius:15px;margin:6px 0 18px}
.collector-empty>svg {width:42px;height:42px;padding:8px;background:#eef3ea;border-radius:12px;color:#70806d;margin-bottom:10px}
.collector-empty h2 {font-size:16px;line-height:1.45;margin:0 0 7px}
.collector-empty p {font-size:13px;color:var(--muted);margin:0 0 8px}
.collector-empty .text-button {font-size:13px;min-height:44px}
.order-scope {font-size:13px;line-height:1.45;color:var(--muted);margin:-8px 0 16px}
.collector-portal .order-groups a {flex-direction:row;gap:9px;min-height:46px;font-size:13px}
.collector-order-list {display:grid;gap:13px}
.collector-order-card {display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px;color:var(--ink);box-shadow:0 2px 8px #1d382404}
.order-card-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.order-card-heading>strong {font-size:17px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.order-card-heading .badge {max-width:52%;text-align:center;font-size:11px}
.order-status-ready,.order-status-partial,.order-status-collected {color:var(--green);background:#e7f1e2}
.order-status-preparing,.order-status-incomplete {color:var(--amber);background:var(--amber-bg)}
.order-status-cancelled {color:#68756a;background:#edf0e9}
.order-card-meta {display:flex;align-items:center;justify-content:space-between;gap:9px;color:var(--muted);font-size:12px;margin:8px 0 14px}
.order-progress>div {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#516858;margin-bottom:7px}
.order-progress strong {font-size:16px;color:var(--green);font-weight:750}
.order-progress progress {display:block;width:100%;height:6px;appearance:none;border:0;border-radius:10px;overflow:hidden;background:#eaf0e7;color:#3c8056;accent-color:#3c8056}
.order-progress progress::-webkit-progress-bar {background:#eaf0e7;border-radius:10px}
.order-progress progress::-webkit-progress-value {background:#3c8056;border-radius:10px}
.order-progress progress::-moz-progress-bar {background:#3c8056;border-radius:10px}
.order-cancelled-count {display:block;font-size:12px;color:var(--muted);margin-top:9px}
.order-states {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:12px;margin-top:13px}
.order-states>span {display:inline-flex;align-items:center;gap:5px}
.order-states b {font-weight:750;font-size:13px}
.order-attention {display:flex;align-items:center;gap:6px;font-size:12px;color:#9c483b;margin:11px 0 0}
.order-attention svg {width:15px;height:15px}
.order-card-action {display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #edf0e9;margin-top:13px;padding-top:10px;color:var(--green);font-size:12px;font-weight:650;min-height:37px}
.order-card-action>span:last-child {font-size:22px;font-weight:450;line-height:1}
.order-detail-summary {background:#eaf1e6;border:1px solid #dce7d6;border-radius:13px;padding:13px 14px;margin:0 0 20px}
.order-detail-summary .order-card-meta {margin:0 0 10px;color:#60705f}
.order-detail-summary .order-progress progress,.order-detail-summary .order-progress progress::-webkit-progress-bar {background:#d6e4ce}
.order-stores {display:grid;gap:18px}
.order-shop {border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden}
.order-shop-heading {display:flex;align-items:center;gap:10px;padding:15px 12px;border-bottom:1px solid #e9eee5;background:#fbfcf8}
.order-shop-heading .shop-marker {width:39px;height:45px}
.order-shop-heading .shop-marker>b {width:20px;min-width:20px;height:20px;font-size:10px;inset-inline-end:-4px}
.order-shop-heading>div {min-width:0;flex:1}
.order-shop-heading h2 {font-size:15px;line-height:1.3}
.order-shop-heading>.badge {max-width:38%;font-size:10px;padding:6px;text-align:center}
.order-shop-link {display:inline-flex;align-items:center;min-height:32px;font-size:12px;margin:0 0 -6px;text-decoration:underline;text-underline-offset:2px}
.order-operation {padding:0 13px 13px}
.order-operation+.order-operation {border-top:1px solid var(--line)}
.order-operation-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px;font-size:12px;color:var(--muted)}
.order-product {padding:14px 0;border-bottom:1px solid #edf0e9}
.order-product-title {display:flex;align-items:center;gap:10px}
.order-product-title img {width:40px;height:40px;flex:none;border-radius:9px;object-fit:cover;background:#f0f3e9}
.order-product-title h3 {font-size:14px;font-weight:650;line-height:1.35;margin:0;overflow-wrap:anywhere;min-width:0}
.order-product-quantities {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:11px 0 0}
.order-product-quantities>div {padding:7px 4px;background:#f4f6f0;border-radius:7px;text-align:center;min-width:0}
.order-product-quantities dt {font-size:10px;line-height:1.3;color:var(--muted);margin-bottom:4px;overflow-wrap:anywhere}
.order-product-quantities dd {font-size:13px;font-weight:650;line-height:1.35;margin:0;overflow-wrap:anywhere}
.order-product-shortage {margin:9px 0 0;color:#9c483b;font-size:12px;line-height:1.4}
.order-operation-action {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:9px 11px;margin-top:12px;border-radius:9px;background:#f0f4ec;font-size:13px;font-weight:650;color:var(--green)}
.order-operation-action.collect {background:var(--green);color:#fff}
.order-operation-action>span:last-child {font-size:23px;font-weight:400;line-height:1}
[dir=rtl] .order-card-action>span:last-child,[dir=rtl] .order-operation-action>span:last-child {transform:rotate(180deg)}
.operation-lines {display:grid;gap:11px;margin:14px 0}
.operation-line {padding:12px;background:white;border:1px solid var(--line);border-radius:12px}
.line-title {display:flex;align-items:center;gap:10px}
.line-title>img {width:48px;height:48px;border-radius:9px;background:#f0f3e9;object-fit:cover;flex:none}
.line-title>div {min-width:0;flex:1}
.line-title h2 {font-size:16px;line-height:1.25}
.line-quantity {font-size:12px;color:var(--muted);margin:5px 0 0}
.line-quantity strong {font-weight:600;color:#586b50}
.operation-line>.quantity-row {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.operation-line>.quantity-row>label {margin:0;font-size:12px;flex:1}
.quantity-entry {width:45%;min-width:112px;max-width:168px;flex:none}
.quantity-entry .unavailable-button {font-size:12px;color:var(--red);width:100%;padding:7px 0}
.quantity-summary {display:flex;flex-wrap:wrap;gap:12px 20px;margin:12px 0 0;border-top:1px solid #edf0e6;padding-top:9px}
.quantity-summary>div {display:flex;align-items:center;gap:5px;font-size:12px}
.quantity-summary dt {color:var(--muted)}
.quantity-summary dd {margin:0;font-weight:650}
.shortage {font-size:12px;line-height:1.45;color:var(--amber);background:#f8efde;padding:9px;border-radius:7px;margin:10px 0 0}
.optional-section {margin:12px 0;color:var(--muted);font-size:13px}
.optional-section>summary {min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--green)}
.optional-section>label {font-size:12px;margin-top:8px}
.optional-section textarea {background:#fff}
.optional-section[open] {padding:0 12px 12px;background:#fff;border:1px solid var(--line);border-radius:10px}
.operation-details {font-size:12px;color:var(--muted);margin:18px 0;border-top:1px solid var(--line)}
.operation-details summary {min-height:44px;display:flex;align-items:center;font-size:13px;cursor:pointer;font-weight:600}
.operation-details p {margin:4px 0 9px}
.qr-panel {display:flex;align-items:center;flex-direction:column;text-align:center;background:white;border:1px solid var(--line);border-radius:14px;padding:17px 14px;margin:14px 0 18px}
.qr-panel h2 {font-size:18px;margin-bottom:6px;color:var(--green)}
.qr-panel img {width:220px;max-width:100%;height:auto;image-rendering:pixelated}
.qr-panel strong {font-size:15px;letter-spacing:.06em}
.qr-panel p {font-size:12px;color:var(--muted);margin:8px 0 0}
.receipt-success {text-align:center;margin:20px 0}
.receipt-success>span {display:grid;place-items:center;width:52px;height:52px;background:#e2efdc;border-radius:50%;margin:0 auto 10px;font-size:28px;color:var(--green)}
.receipt-success h2 {font-size:21px}
.receipts {margin:20px 0}
.receipts>h2 {font-size:16px;margin-bottom:10px}
.receipt {border:1px solid var(--line);border-radius:10px;background:white;padding:0 12px;font-size:13px;margin:9px 0}
.receipt summary {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;min-height:48px;cursor:pointer;font-size:12px;padding:8px 0}
.receipt summary>span {font-weight:650}
.receipt p {margin:8px 0;line-height:1.5}
.receipt>img {display:block;width:100%;max-width:320px;height:auto;border-radius:8px;margin:12px auto}
.scanner-panel {margin-top:16px}
.scanner-panel>.primary {margin-bottom:14px}
.camera-view {height:min(75vw,340px);min-height:230px;background:#203b2b;border-radius:14px;position:relative;overflow:hidden;margin-bottom:12px}
#scan-video {width:100%;height:100%;object-fit:cover;display:block}
.scanner-guide {position:absolute;width:65%;height:65%;inset:0;margin:auto;border:3px solid #e2ecd6;border-radius:16px;pointer-events:none}
#scan-stop {margin:8px 0 15px}
.manual-reference {border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 12px;margin-top:18px}
.manual-reference>summary {min-height:48px;display:flex;align-items:center;font-size:13px;font-weight:600;cursor:pointer}
.lookup-form {padding:0 0 12px}
.lookup-form>div {display:flex;align-items:center;gap:7px}
.lookup-form input {width:100%;min-width:0;height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:16px}
.lookup-form button {width:auto;min-width:44px;min-height:44px;padding:8px 10px;font-size:12px;flex:none}
.keyboard-open .bottom-nav {display:none}
.keyboard-open .save-bar,.keyboard-open .operation-actionbar,.keyboard-open .creation-actionbar,.keyboard-open.js-enabled .ready-form .operation-actionbar {position:static;inset:auto;width:100%;padding:12px 0;border:0;background:transparent;margin:10px 0}
.keyboard-open .portal,.keyboard-open .portal.with-action {padding-bottom:24px}
.keyboard-open .operation-actions-space,.keyboard-open .creation-actions-space {display:none}
@media(max-width:350px) {
    .portal {padding-inline:12px}
    .header {margin-inline:-12px;padding-inline:12px}
    .product-card {padding-inline:10px}
    .product-top {gap:7px}
    .product-inputs {gap:8px}
    .price-field input {padding-inline:7px}
    .price-field>span {font-size:12px;padding-inline-end:5px}
    .badge {max-width:120px}
    .photo-picker {gap:9px;padding:10px}
    .photo-picker>img {width:60px;height:60px}
    .operation-card {padding:12px}
    .shop-card {padding:14px 11px 0}
    .shop-card-heading {gap:10px}
    .shop-card h2 {font-size:16px}
    .shop-marker {width:45px;height:53px}
    .shop-title {gap:10px}
    .shop-title h1 {font-size:21px}
    .shop-counts {gap:9px 11px}
    .shop-counts>span {font-size:11px}
    .collector-portal .segmented a {font-size:11px}
    .collector-operation-card .badge {font-size:10px;padding:6px}
    .collection-products {gap:9px}
    .collector-order-card {padding:13px}
    .order-shop-heading {gap:8px;padding-inline:10px}
    .order-shop-heading .shop-marker {width:34px;height:41px}
    .order-shop-heading h2 {font-size:14px}
    .order-shop-heading>.badge {font-size:10px;max-width:35%;padding:5px}
    .order-operation {padding-inline:10px}
    .order-product-quantities dd {font-size:12px}
    .order-product-quantities dt {font-size:10px}
    .order-card-heading>strong {font-size:16px}
}
@media(min-width:640px) {
    .portal {min-height:calc(100vh - 36px);margin:18px auto 0;border:1px solid var(--line);border-radius:16px 16px 0 0}
    .header {border-radius:16px 16px 0 0}
    .bottom-nav {border-inline:1px solid var(--line)}
    .save-bar,.operation-actionbar,.creation-actionbar {border-inline:1px solid var(--line)}
    .login-panel {margin-top:52px}
}
@media(prefers-reduced-motion:reduce) {.switch:after {transition:none}}

.customer-task-link,.timing-dashboard-link {display:flex;align-items:center;gap:12px;border-radius:16px;padding:16px;background:#fff0dc;color:#795012;margin:0 0 18px;border:1px solid #f0dfc6}
.customer-task-link>span:nth-child(2) {flex:1;min-width:0}.customer-task-link strong {display:block;font-size:16px}.customer-task-link small {display:block;margin-top:4px;font-size:13px;font-weight:400}
.customer-task-link>b {font-size:22px}.customer-task-link>span:last-child,.timing-dashboard-link>span:last-child {font-size:25px}.task-icon svg {width:25px;height:25px}
.contact-list {display:grid;gap:14px}.contact-card {display:block;color:var(--ink);background:white;border:1px solid var(--line);border-radius:18px;padding:16px}
.contact-card-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.contact-card-heading>strong {font-size:19px}.contact-card-heading .badge {max-width:60%;font-size:12px;text-align:center}
.contact-card h3 {font-size:17px;margin:15px 0 6px}.contact-card p {font-size:14px;margin:6px 0;color:var(--muted)}
.contact-card-action {display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid var(--line);margin-top:14px;padding-top:11px;min-height:42px;font-size:14px;font-weight:650;color:var(--green)}
.contact-card-action>span:last-child {font-size:24px}.badge.contact-state-new,.badge.contact-state-review {background:#ffe8ea;color:var(--red)}
.badge.contact-state-waiting,.badge.contact-state-proposed,.badge.contact-state-ack {background:#fff0d8;color:#995900}.badge.contact-state-resolved {background:#e5f3e3;color:#246640}.badge.contact-state-cancelled {background:#edf0ed;color:var(--muted)}
.customer-operation-issues {margin:22px 0}.customer-operation-issues .section-heading h2 {font-size:20px}
.contact-source,.contact-panel {padding:18px;background:#fff;border:1px solid var(--line);border-radius:18px;margin:0 0 18px}
.contact-source h2,.contact-panel h2 {font-size:20px;line-height:1.35;margin-bottom:14px}.contact-source p,.contact-panel p {font-size:14px;line-height:1.5}
.contact-quantities {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.contact-quantities>div {border-radius:12px;background:#f1f6ef;padding:12px}.contact-quantities dt {font-size:13px;color:var(--muted)}.contact-quantities dd {margin:4px 0 0;font-size:21px;font-weight:700}
.contact-form {margin-top:16px}.contact-form textarea {width:100%;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:16px;resize:vertical}
.contact-form>.secondary,.contact-form>.primary {margin-top:16px}.contact-form>label {display:block;font-size:14px;margin:14px 0 7px}
.choice-fieldset {min-width:0;border:0;padding:0;margin:12px 0 18px}.choice-fieldset legend {font-size:15px;font-weight:650;margin-bottom:11px;padding:0}
.radio-choice,.accept-choice {display:flex;align-items:center;gap:10px;min-height:49px;padding:10px 11px;margin-bottom:8px;border:1px solid var(--line);border-radius:12px;font-size:15px;cursor:pointer}.radio-choice:has(input:checked),.replacement-option:has(input:checked) {background:#edf7e9;border-color:#76a67d}
.radio-choice input,.accept-choice input,.replacement-option>input {width:20px;height:20px;flex:none;accent-color:var(--green);margin:0}
.contact-form>.accept-choice {display:flex;align-items:flex-start;font-size:15px;line-height:1.5;margin-top:18px}.accept-choice>input {margin-top:2px}
.change-before,.change-after {padding:13px;border-radius:12px;background:#f5f5f3;margin-top:10px}.change-after {background:#edf7e9}.change-before>span,.change-after>span {display:block;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:5px}.change-before>strong,.change-after>strong {display:block;font-size:17px}.change-before>p,.change-after>p {margin:5px 0}
.proposal-total {display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px}.proposal-total strong {font-size:19px;color:var(--green)}
.replacement-search {margin-top:15px}.replacement-search>button {font-size:13px;border:0;background:none;min-height:44px;color:var(--green)}
.replacement-options {max-height:410px;overflow-y:auto;overscroll-behavior:contain}.replacement-option {display:flex;align-items:center;gap:10px;padding:12px 9px;border:1px solid var(--line);border-radius:12px;margin:9px 0;cursor:pointer}.replacement-option>img {width:48px;height:48px;object-fit:cover;border-radius:9px;flex:none}.replacement-option>span {display:block;min-width:0;flex:1}.replacement-option strong {display:block;font-size:15px;overflow-wrap:anywhere}.replacement-option small,.replacement-option bdi {display:block;font-size:12px;color:var(--muted);margin-top:3px}
.report-shortage-link {display:flex;align-items:center;gap:7px;min-height:44px;margin:10px 0 0;font-size:14px;color:var(--red);font-weight:550}.report-shortage-link svg {width:19px;height:19px}
.store-ack {padding:13px 0;border-top:1px solid var(--line)}.store-ack strong,.store-ack span,.store-ack bdi {display:block}.store-ack strong {font-size:16px}.store-ack span {font-size:14px;margin-top:4px;color:var(--green)}.store-ack bdi {font-size:12px;color:var(--muted);margin-top:4px}
.contact-events {list-style:none;padding:0;margin:0}.contact-events li {padding:14px 0;border-top:1px solid var(--line)}.contact-events strong {font-size:14px}.contact-events p {margin:5px 0}.contact-events small {font-size:12px;color:var(--muted)}
.operation-timing {margin:17px 0}.timing-badge {display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:9px;font-size:13px;font-weight:650;background:#fff0d8;color:#995900;margin:7px 0}.timing-badge svg {width:17px;height:17px}.timing-badge.timing-late,.timing-badge.timing-critical {color:var(--red);background:#ffeaec}.timing-dashboard-link {color:var(--red);background:#ffeaec;border-color:#f6d3d7}.timing-dashboard-link strong {font-size:16px;flex:1}
.arrival-form {margin:10px 0}.arrival-recorded {font-size:14px;color:var(--green);background:#e6f3e1;padding:11px 13px;border-radius:12px}
.timing-details {border:1px solid var(--line);border-radius:14px;padding:0 13px;background:#fff;margin:10px 0}.timing-stages {list-style:none;padding:0;margin:0}.timing-stage {padding:13px 0;border-top:1px solid var(--line)}.timing-stage>div {display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.timing-stage strong {font-size:14px}.timing-stage>div>span {font-size:12px;color:var(--muted)}.timing-stage p {margin:7px 0 0;font-size:12px}.timing-stage.timing-late strong,.timing-stage.timing-critical strong {color:var(--red)}
[dir=rtl] .contact-card-action>span:last-child,[dir=rtl] .customer-task-link>span:last-child,[dir=rtl] .timing-dashboard-link>span:last-child {transform:rotate(180deg)}
@media(max-width:350px) {.contact-panel,.contact-source,.contact-card {padding:14px}.contact-card-heading {flex-wrap:wrap}.contact-card-heading .badge {max-width:100%}.replacement-option {gap:7px;padding-inline:7px}.replacement-option>img {width:42px;height:42px}.customer-task-link {padding:14px;gap:9px}.customer-task-link strong {font-size:15px}.contact-quantities dd {font-size:19px}}
.contact-card .callback-due {font-size:14px;font-weight:650;color:var(--red);margin:10px 0}
.order-preview-products {display:flex;align-items:center;gap:7px;margin:15px 0 10px;flex-wrap:wrap}.order-preview-products img {width:54px;height:54px;object-fit:cover;border-radius:11px;background:#f3f6f0}.order-preview-products>span {font-size:13px;color:var(--muted);margin-inline-start:3px}
.contact-call-result {margin-top:12px}.contact-call-result>summary {min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:650;color:var(--green);cursor:pointer}.contact-call-result>summary::after {content:'+';font-size:22px}.contact-call-result[open]>summary::after {content:'−'}.contact-call-result .contact-form {margin-top:3px}.contact-call-result legend {display:none}
/* Keep notes as comfortable to enter as quantities on every mobile workflow. */
.contact-form textarea,.shortage-form textarea {display:block;width:100%;box-sizing:border-box;min-height:96px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:16px;line-height:1.5;resize:vertical}

/* DailyFresh: mobile work surfaces and one visible next action. */
:root {--green:#005744;--green-active:#08745a;--ink:#143f35;--muted:#586b63;--line:#dce7e0;--cream:#f3f7f3;--soft:#e5f3e8;--amber:#9a5200;--amber-bg:#fff0d9;--red:#b82234;--nav-height:72px}
body {background:#edf3ee;font-size:15px}
.portal {padding-inline:14px}
.header {height:64px;margin:0 -14px 8px;padding:0 14px;background:#fff;border-bottom:1px solid #e5ece7}
.brand strong {font-size:27px;letter-spacing:-1.1px}.brand-dot {color:#ed8a20}
.profile-toggle svg {width:34px;height:34px;padding:5px;background:#f2f7f1;border:1px solid #c8dacf}
h1 {font-size:24px;line-height:1.2;margin-bottom:12px;font-weight:750}h2 {font-size:18px}.small {font-size:13px}
.title-row,.collector-portal .title-row {margin-bottom:10px;min-height:34px}
.back-link {min-height:44px;margin:-8px 0 0;font-size:14px;font-weight:650;color:var(--green);gap:7px}
.intro,.intro.compact {font-size:14px;margin:0 0 12px}.notice {font-size:14px;margin:8px 0;padding:10px 12px}
.primary,.secondary {min-height:48px;border-radius:12px}.text-button {font-size:14px;min-height:44px}
.bottom-nav {box-shadow:0 -3px 14px #163f2510;padding-top:5px;border-radius:16px 16px 0 0}
.bottom-nav a {font-size:11px;border-radius:12px;color:#51665d}.bottom-nav a.selected {background:#e2f1e2;color:var(--green)}
.bottom-nav svg {width:24px;height:24px}.collector-portal .bottom-nav a {font-size:10px}
.search,.collector-search {min-height:44px;margin:0 0 10px;border-radius:12px;background:#fff}
.search input,.collector-search input {height:44px;font-size:16px}
.collector-portal .segmented,.segmented {padding:3px;gap:3px;margin-bottom:10px;border-radius:12px;background:#e5ede4}
.collector-portal .segmented a,.segmented a {min-width:0;flex-basis:0;min-height:44px;flex-direction:row;flex-wrap:wrap;font-size:13px;gap:6px;border-radius:9px}
.collector-portal .segmented b {min-height:20px;min-width:21px;padding:0 4px;font-size:12px}
.badge {padding:5px 7px;border-radius:8px;font-size:12px;max-width:48%;line-height:1.25;font-weight:700}
.state-ready,.state-collected,.state-delivered,.order-status-ready,.order-status-collected {background:#e1f2e4;color:#1b6334}
.state-confirmed,.state-new,.order-status-preparing {background:var(--amber-bg);color:var(--amber)}
.notice.error,.collection-attention,.order-attention {color:var(--red)}.notice.error {background:#fff0f0;border-color:#f0cbd0}
.shop-list,.operation-list,.collector-order-list,.order-stores {gap:10px}
.operation-card,.collector-order-card,.contact-card,.order-shop,.product-card {border-radius:15px;background:#fff;box-shadow:0 2px 5px #193d2305}
.operation-card,.collector-order-card {padding:12px}
.operation-heading>strong,.collector-operation-card .operation-heading strong,.order-card-heading>strong {font-size:18px;line-height:1.25}
.operation-store {font-size:13px;margin-top:3px}.operation-heading {gap:7px;align-items:flex-start}
.collection-products {display:flex;align-items:center;gap:10px;margin:10px 0 6px}
.collection-products .thumb-stack,.operation-card-products .thumb-stack {gap:5px;flex:none}
.collection-products .thumb-stack img,.operation-card-products .thumb-stack img {width:52px;height:52px;object-fit:cover;border-radius:10px;border:0;margin:0}
.collection-products strong {font-size:14px;color:var(--ink);font-weight:600}.collection-products p {display:none}
.operation-card-products {margin-top:8px;padding-top:8px;gap:9px}.operation-card-products>span {font-size:13px}
.collector-operation-card .collection-attention {padding:7px 9px;margin:8px 0;font-size:13px;background:#fff0ef;border-radius:9px;color:var(--red)}
.collection-card-footer {padding:0;margin-top:6px;min-height:44px;border-top:1px solid #edf2ec}
.collection-card-footer>bdi {font-size:12px}.collection-cta,.collection-cta.can-collect {min-height:44px;padding:0;background:transparent;font-size:14px;gap:8px}.collection-cta>span {font-size:25px}
.order-preview-products {margin:10px 0 6px;gap:6px}.order-preview-products img {width:52px;height:52px;border-radius:10px}.order-preview-products>span {font-size:13px}
.order-card-meta {font-size:13px;margin:6px 0}.order-progress {margin-top:8px}.order-progress>div {font-size:13px}.order-progress progress {height:6px}
.order-states {margin:7px 0;gap:10px}.order-states>span {font-size:12px}.order-card-action {min-height:44px;padding-top:7px;font-size:14px;margin-top:7px}
.order-detail-summary {padding:10px 12px;background:#e6f2e3;border:1px solid #d6e8d4;border-radius:12px;margin:0 0 10px}
.order-detail-summary .order-card-meta {margin:0 0 4px}.order-detail-summary .order-progress {margin-top:0}
.order-shop-heading {padding:10px 12px;gap:8px;background:#fff;align-items:center}
.order-shop-heading h2 {font-size:16px}.order-shop-heading .shop-marker {width:35px;height:41px}
.order-shop-link {min-height:32px;display:inline-flex;align-items:center;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.order-shop-heading>.badge {font-size:11px;max-width:35%;margin:0}
.order-operation {padding:8px 12px 10px}.order-product {padding:8px 0}.order-product-title {gap:10px}.order-product-title img {width:52px;height:52px;border-radius:10px}.order-product-title h3 {font-size:15px;line-height:1.3}
.order-product-quantities {display:flex;flex-wrap:wrap;gap:4px 12px;margin:8px 0 0}
.order-product-quantities>div {display:flex;gap:5px;align-items:baseline;padding:0;background:none;border-radius:0}
.order-product-quantities dt {font-size:12px;color:var(--muted)}.order-product-quantities dd {font-size:13px;font-weight:650;margin:0}
.order-product-shortage {font-size:13px;margin:6px 0}.order-operation-action {min-height:44px;padding:8px 10px;margin-top:8px;font-size:14px;border-radius:10px}
.shop-card {padding:12px 12px 0;border-radius:16px;background:#fff}.shop-card h2 {font-size:18px}.shop-card-heading {gap:10px}.shop-card-heading p {font-size:13px;margin:4px 0}.shop-status {font-size:12px}
.shop-marker {width:46px;height:53px}.shop-marker.priority-attention .marker-fill {fill:#ffebeb;stroke:#eeafb8}.shop-marker.priority-attention>b {background:var(--red)}
.shop-counts {padding:10px 0;gap:8px 12px}.shop-counts>span {font-size:12px}.shop-counts b {font-size:15px}
.shop-title {align-items:flex-start;gap:10px}.shop-title h1 {font-size:23px;line-height:1.15;margin-bottom:4px}.shop-title p {font-size:13px;line-height:1.3;margin:0 0 4px}.shop-detail-contact .shop-status {display:none}
.shop-detail-contact .supplier-actions {margin-top:8px;gap:8px}.supplier-actions a {min-height:44px;border:0;background:#deefd9;border-radius:10px;font-size:14px;font-weight:650;gap:8px}
.shop-detail-contact .supplier-actions svg {width:20px;height:20px}
.shop-operation-section {margin:14px 0}.shop-operation-section .section-heading {margin:0 0 8px}.shop-operation-section h2 {font-size:20px;gap:7px}
.section-count {font-size:14px;background:none!important;padding:0;min-width:0;color:inherit}.section-count:before {content:'·';margin-inline-end:7px}
.shop-alert {display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;margin:8px 0;background:#ffeded;border-radius:10px;color:var(--red);font-size:14px;font-weight:650}.shop-alert svg {width:19px;height:19px}
.shop-alert+.timing-badge {margin:0 0 4px;padding:4px 8px;font-size:12px}.shop-section-empty {font-size:14px;padding:14px;border-radius:12px}.shop-history-link {font-size:14px;min-height:44px}
.operation-title {margin-bottom:8px}.operation-title h1 {font-size:24px}
.operation-lines {gap:10px}.operation-line {padding:12px;border-radius:14px}.line-title {gap:10px}.line-title>img {width:56px;height:56px;border-radius:11px}.line-title h2 {font-size:17px;line-height:1.3}.line-quantity {font-size:14px;margin:5px 0 0}
.operation-line>.quantity-row {margin-top:10px}.operation-line>.quantity-row>label {font-size:14px}.quantity-entry .price-field input {font-size:18px}.quantity-summary {margin:8px 0;padding-top:8px}.quantity-summary>div {font-size:13px}.report-shortage-link {margin-top:4px;font-size:13px;min-height:44px}
.js-enabled .operation-form[data-state=confirmed] .quantity-editor:not(.is-editing) {display:none}.edit-quantity {padding:5px 0}.quantity-summary:empty {display:none}
.supplier-details.compact-supplier {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:7px 10px;border-radius:12px;background:#fff;min-height:60px}.compact-supplier>strong {font-size:16px;line-height:1.3}.compact-supplier .supplier-actions {display:flex;gap:5px;margin:0}.compact-supplier .supplier-actions a {width:44px;flex:none}
.delivery-date {margin:4px 0 8px;font-size:13px}.optional-section {margin:8px 0}.optional-section>summary,.operation-details>summary {min-height:44px;font-size:14px}
.qr-panel {margin:12px 0;padding:14px;background:#fff;border-radius:14px}.qr-panel img {width:180px;height:180px}.qr-panel h2 {font-size:18px}.qr-panel p {font-size:13px}
.preparation-summary {padding:8px 10px;margin:7px 0 10px;border-radius:10px;background:#fff4e5;border-inline-start:3px solid #d68a22;color:#7f4f0d;font-size:13px}
.prep-heading {display:flex;align-items:center;gap:6px;min-height:22px}.prep-heading svg {width:17px;height:17px}.prep-heading strong {font-size:13px;flex:1}.prep-heading>bdi {font-size:15px;font-weight:750;white-space:nowrap}
.prep-facts {display:flex;gap:3px 12px;flex-wrap:wrap;margin-top:3px;font-size:12px}.prep-facts:empty {display:none}.prep-ready {background:#ebf6e9;border-color:#4b9a5f;color:#216138}.prep-late {border-color:var(--red);background:#fff0ef;color:var(--red)}.prep-awaiting_confirmation,.prep-unmeasured {background:#f1f5f0;border-color:#bdcfc1;color:var(--muted)}
.operation-timing {margin:10px 0}.timing-details {margin:8px 0;border-radius:12px;padding:0 10px}.timing-badge {font-size:12px;margin:4px 0;padding:5px 7px;border-radius:8px}.arrival-form {margin:8px 0}.arrival-form .secondary {font-size:14px}.arrival-recorded,.store-wait {font-size:13px;margin:7px 0;padding:8px 10px;border-radius:10px;background:#e9f4e5}
.customer-task-link,.timing-dashboard-link {padding:9px 11px;border-radius:12px;gap:9px;margin:0 0 9px;min-height:48px}.customer-task-link strong,.timing-dashboard-link strong {font-size:14px}.customer-task-link>b {font-size:19px}.task-icon svg {width:21px;height:21px}
.contact-list {gap:10px}.contact-card {padding:12px}.contact-card-heading>strong {font-size:18px}.contact-card-heading .badge {font-size:11px}.contact-card h3 {font-size:16px;margin:8px 0 4px}.contact-card p {font-size:13px;margin:4px 0}.contact-card-action {margin-top:8px;padding-top:6px;min-height:44px;font-size:14px}
.contact-source,.contact-panel {padding:12px;border-radius:14px;margin:0 0 10px}.contact-source h2,.contact-panel h2 {font-size:18px;margin-bottom:9px}.contact-source p,.contact-panel p {font-size:14px}.contact-source .line-title h2 {font-size:17px;margin-bottom:4px}
.contact-quantities {gap:8px}.contact-quantities>div {padding:8px;border-radius:9px}.contact-quantities dt {font-size:12px}.contact-quantities dd {font-size:18px;margin-top:3px}
.contact-form {margin-top:10px}.contact-form>label {font-size:14px;margin:10px 0 5px}.contact-form>.secondary,.contact-form>.primary {margin-top:10px}
.choice-fieldset {margin:2px 0 12px}.choice-fieldset legend {font-size:14px;margin-bottom:7px}.radio-choice,.accept-choice {min-height:44px;margin-bottom:6px;padding:8px 10px;font-size:14px;border-radius:10px}
.field {margin-bottom:12px}.field>label {font-size:14px;margin-bottom:6px}.field-hint {font-size:12px!important;margin:5px 0 0;color:var(--muted)}
.shortage-form textarea,.contact-form textarea {min-height:76px;padding:10px;line-height:1.4;border-radius:10px}.shortage-form input[readonly] {background:#edf2ec;color:#5b6e60}
.shortage-submit {position:sticky;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);box-shadow:0 0 0 7px #fff;z-index:10}
.change-before,.change-after {padding:10px;margin-top:8px;border-radius:10px}.change-before>strong,.change-after>strong {font-size:16px}.proposal-total {padding-top:8px}.proposal-total strong {font-size:18px}
.replacement-search {margin:8px 0}.replacement-options {max-height:340px}.replacement-option {padding:8px;gap:9px;border-radius:10px;margin:6px 0}.replacement-option>img {width:48px;height:48px}.replacement-option strong {font-size:14px}.replacement-option small,.replacement-option bdi {font-size:12px}
.contact-call-result>summary {font-size:14px}.contact-events li {padding:10px 0}.store-ack {padding:9px 0}.form-feedback {margin:0 0 12px!important;white-space:normal}
.product-card {padding:12px}.product-photo {width:56px;height:56px;border-radius:11px}.product-top h2 {font-size:16px}.product-inputs {margin-top:9px}.product-inputs label {font-size:12px}.availability-status>summary {min-height:44px}
.photo-picker {min-height:105px;margin-bottom:14px;padding:12px;background:#e9f3e3;border-radius:14px}.photo-picker>img {width:72px;height:72px}.photo-choices .secondary {font-size:14px}.photo-choices .text-button {font-size:13px}
.section-title {font-size:14px;margin:10px 0 8px;letter-spacing:.03em}.section-heading {margin:16px 0 8px}.section-heading h2 {font-size:18px}.summary-card {min-height:82px;padding:11px 12px;border-radius:13px}.summary-card strong {font-size:28px}.summary-card span {font-size:13px}.summary-link {min-height:44px;font-size:14px;padding:8px 0}.scan-link {margin:10px 0;min-height:44px}.dashboard-operation {padding:11px 12px}.dashboard-operation strong {font-size:16px}.dashboard-operation .small {font-size:12px}
.activity-section {margin-top:16px}.activity-card {padding:10px 12px}.collector-empty {padding:28px 14px;margin:8px 0}.collector-empty h2 {font-size:18px}.collector-empty p {font-size:14px}.scanner-panel {margin-top:12px}.manual-reference {margin-top:12px;border-radius:12px}
.keyboard-open .shortage-submit {position:static;box-shadow:none}.keyboard-open .header {position:static}
@media(max-width:350px) {
 .portal {padding-inline:12px}.header {height:64px;margin-inline:-12px;padding-inline:12px}.brand strong {font-size:25px}h1 {font-size:22px}.badge {font-size:11px}
 .shop-title h1 {font-size:21px}.shop-card h2 {font-size:17px}.shop-marker {width:42px;height:49px}.shop-counts {gap:7px}.shop-counts>span {font-size:12px}
 .order-shop-heading {gap:6px;flex-wrap:nowrap;padding:9px}.order-shop-heading h2 {font-size:15px}.order-shop-heading>div {min-width:0}.order-shop-heading>.badge {font-size:10px;max-width:35%;margin:0}.order-shop-heading .shop-marker {width:30px;height:37px}
 .order-operation {padding-inline:10px}.order-product-title h3 {font-size:15px}.collection-products .thumb-stack img {width:46px;height:46px}.collection-products {gap:8px}.contact-card-heading {flex-wrap:nowrap}.contact-card-heading .badge {max-width:54%}.contact-panel,.contact-source,.contact-card {padding:11px}
 .contact-quantities dd {font-size:17px}.line-title h2 {font-size:16px}.line-title>img {width:52px;height:52px}.compact-supplier>strong {font-size:15px}
}
.conflict-current {padding:12px;margin:0 0 12px;border:1px solid #dfc899;border-radius:12px;background:#fff9eb;font-size:14px}.conflict-current>strong {display:block;margin-bottom:8px}.conflict-current p {margin:8px 0}.conflict-current .contact-source {padding:8px;background:transparent}
.order-shop-link {min-height:44px}#customer-followup {scroll-margin-top:12px}
.shop-alert>b {margin-inline-start:auto;font-size:23px;line-height:1}
