.simple-section{margin:12px 0;background:#fff;border:1px solid #dce5f3;border-radius:16px;overflow:hidden}
.simple-section>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;cursor:pointer;list-style:none;min-height:76px;color:#183b70}
.simple-section>summary::-webkit-details-marker{display:none}.simple-section>summary b{display:block;font-size:17px;line-height:1.4}.simple-section>summary small{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:#60718c}.simple-section>summary>.icon{width:18px;flex-shrink:0;transition:transform .15s}.simple-section[open]>summary>.icon{transform:rotate(90deg)}.simple-section[open]>summary{border-bottom:1px solid #e3eaf5;background:#f8faff}.simple-section>summary:focus-visible{outline:3px solid #90ade8;outline-offset:-4px}
.simple-section-body{padding:16px}.simple-section-body .easy-task{min-height:88px;padding:16px;box-shadow:none;border-radius:12px}.simple-section-body .easy-task b{font-size:15px}.simple-section-body .easy-task-icon{width:38px;height:38px;border-radius:10px}.simple-section-body .easy-task:first-child .easy-task-icon{background:#edf3ff}
.team-more{grid-column:1/-1;margin:4px 0 0;border-top:1px solid #e0e7f2}.team-more>summary{padding:14px 4px;cursor:pointer;color:#516786;font-size:13px;min-height:44px}.team-more-body{display:grid;gap:8px;padding:0 0 4px}.team-more .team-section-link{min-height:56px}
.simple-source-help{font-size:13px;color:#546887;line-height:1.6;background:#f1f5fd;padding:12px;border-radius:10px;margin:0}
.simple-load-more{font-size:13px;line-height:1.6;color:#60718c;margin:10px 0}
.worker-assigned{margin:24px 0}.worker-assigned>.section-heading{margin:0 0 8px;gap:12px}.worker-assigned>.section-heading h2{font-size:20px}.worker-assigned>.easy-help{margin:0 0 14px}
.worker-assigned-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px}
.worker-assigned-card{min-width:0;border:1px solid #dce5f3;border-radius:16px;background:#fff;padding:18px}
.worker-assigned-card h3{font-size:16px;margin:0 0 16px;line-height:1.5;overflow-wrap:anywhere}.worker-assigned-card dl{display:grid;gap:12px;margin:0}.worker-assigned-card dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.worker-assigned-card dt{font-size:13px;color:#60718c}.worker-assigned-card dd{margin:0;font-size:16px;font-weight:700;text-align:right;overflow-wrap:anywhere}.worker-assigned-card dd small{display:block;font-size:11px;font-weight:400}
.worker-load-summary dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.worker-load-summary dl>div{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;border-radius:10px;background:#f6f8fd}.worker-load-summary dl>div:nth-child(2){background:#edf3ff}.worker-load-summary dd{text-align:left;font-size:17px;color:#163fa6}.worker-stock-help{margin:10px 0 0;color:#60718c;font-size:12px;line-height:1.6}
@media(max-width:640px){.worker-assigned{margin:20px 0}.worker-assigned>.section-heading h2{font-size:18px}.worker-assigned-grid{grid-template-columns:minmax(0,1fr);gap:12px}.worker-assigned-card{padding:16px}.worker-load-summary dt{font-size:12px}.worker-load-summary dd{font-size:16px}}
/* Home: full-width sections share one grid and consistent spacing. */
.home-overview>.easy-intro{margin:8px 0 24px}.home-overview>.easy-intro h1{font-size:28px}.home-overview>.easy-intro p{margin-top:6px}
.home-dashboard{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.home-dashboard>*{min-width:0}
.home-actions .easy-group{margin:0}.home-actions .easy-group h2,.home-dashboard .home-result-heading h2{font-size:20px;margin:0}.home-actions .easy-group h2{margin-bottom:16px}
.sj-ui .home-actions .easy-tasks:has(>.easy-task:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.sj-ui .home-actions .easy-tasks>.easy-task{display:grid;grid-template-columns:40px minmax(0,1fr) 16px;min-height:112px;height:100%;padding:20px;gap:12px;grid-column:auto;border-radius:16px;box-shadow:none}
.home-actions .easy-task>span:nth-child(2){min-width:0}.home-actions .easy-task-icon{width:40px;height:40px;border-radius:12px}.home-actions .easy-task b{font-size:15px;line-height:1.45}.home-actions .easy-task small{font-size:12px;line-height:1.6;margin-top:5px}
.home-actions .home-extra{background:#fff;border:1px solid #d9e2f2;border-radius:12px;margin:16px 0 0;padding:0;box-shadow:none}.home-actions .home-extra>summary{padding:14px 20px;min-height:48px;font-size:14px}.home-actions .home-extra[open]{padding-bottom:12px}.sj-ui .home-actions .home-extra>.easy-task{min-height:72px;width:calc(100% - 32px);margin:8px 16px;box-shadow:none}
.home-dashboard .home-result{margin:0;padding:24px;border-radius:16px}.home-dashboard .home-result-heading{margin-bottom:16px}.home-dashboard .home-result-heading>span{display:none}
.home-dashboard .home-result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-dashboard .home-result-metrics>div{background:#f6f8fd;border:1px solid #e0e7f2;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:8px;min-width:0}.home-dashboard .home-result-metrics strong{margin:0;font-size:24px;line-height:1.3;overflow-wrap:anywhere}.home-dashboard .home-result-metrics small{font-size:14px}
.home-dashboard .home-result-net{margin:16px 0 0;padding:18px;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}.home-dashboard .home-result-net>strong{font-size:28px}.home-dashboard .home-result-net.is-pending>strong{font-size:22px}
@media(min-width:641px){.home-dashboard .home-result-net{grid-template-columns:minmax(0,3fr) minmax(180px,2fr) minmax(0,1fr)}.home-dashboard .home-result-net>strong{grid-column:2;grid-row:1/3;justify-self:center;align-self:center;text-align:center;max-width:100%}.home-dashboard .home-result-net>p{grid-column:1;grid-row:2}}
.home-dashboard .home-result-balances{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px;padding-top:20px}.home-dashboard .home-result-balances>div{display:flex;flex-direction:column;justify-content:flex-start;gap:8px;min-width:0;padding:18px;border:1px solid #d9e3f4;border-radius:12px;background:#f6f8fd;overflow-wrap:anywhere}.home-dashboard .home-result-balances b{font-size:20px}
.home-history{margin-top:24px;min-width:0}.home-history .inventory-history{margin-top:0}.home-history .inventory-history-controls{align-items:end;gap:16px;margin-bottom:16px}.home-history .inventory-filters{gap:8px;flex-wrap:wrap}.sj-ui .home-history .inventory-filters .solid-btn{padding:10px 14px;min-height:44px;font-size:13px}.home-history .empty{padding:24px 16px;min-height:0}.home-history .inventory-product{max-width:230px}
@media(min-width:641px) and (max-width:1100px){.sj-ui .home-actions .easy-tasks>.easy-task{grid-template-columns:1fr;align-content:start}.home-actions .easy-task>.icon:last-child{display:none}}
@media(max-width:640px){.home-overview>.easy-intro{margin-bottom:20px}.home-overview>.easy-intro h1{font-size:25px}.home-dashboard{gap:20px}.home-actions .easy-group h2,.home-dashboard .home-result-heading h2{font-size:18px}
.sj-ui .home-actions .easy-tasks:has(>.easy-task:nth-child(3):last-child){grid-template-columns:minmax(0,1fr);gap:10px}.sj-ui .home-actions .easy-tasks>.easy-task{min-height:76px;padding:16px;grid-template-columns:40px minmax(0,1fr) 16px}.home-actions .easy-task small{display:none}.home-actions .home-extra{margin-top:10px}
.home-dashboard .home-result{padding:16px}.home-dashboard .home-result-metrics{grid-template-columns:minmax(0,1fr);gap:10px}.home-dashboard .home-result-metrics>div{flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px;padding:12px}.home-dashboard .home-result-metrics strong{font-size:20px;white-space:nowrap}.home-dashboard .home-result-net{padding:14px;gap:8px}.home-dashboard .home-result-net>span{font-size:13px}.home-dashboard .home-result-net>strong{font-size:22px}.home-dashboard .home-result-net.is-pending>strong{font-size:17px}.home-dashboard .home-result-balances{gap:12px}.home-dashboard .home-result-balances span{font-size:12px}.home-dashboard .home-result-balances b{font-size:18px}
.home-history{margin-top:20px}.home-history .inventory-history-controls{display:flex;flex-direction:column;align-items:stretch;gap:12px}.home-history .inventory-product{max-width:none;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}.home-history .inventory-product select{min-width:0}.home-history .inventory-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-history .inventory-filters>button:last-child:nth-child(odd){grid-column:1/-1}.sj-ui .home-history .inventory-filters .solid-btn{flex:1 1 auto;padding:9px;font-size:12px}}
@media(max-width:640px){.simple-section>summary{padding:16px}.simple-section-body{padding:12px}.simple-section-body.easy-tasks{grid-template-columns:minmax(0,1fr)}.easy-mode .heading{flex-wrap:wrap;gap:14px}.easy-mode .heading>div:first-child{flex:1 1 100%;min-width:0}.easy-mode .heading>button{max-width:100%}.easy-task{min-height:88px;padding:16px;gap:12px}.easy-task b{font-size:16px}.easy-task small{font-size:13px}.easy-task-icon{width:40px;height:40px}.team-overview-grid{grid-template-columns:minmax(0,1fr)}}

.pending-record-details{margin:12px 0}.pending-record-details .label-value{gap:12px;align-items:start}.pending-record-details dt,.pending-record-details dd{min-width:0;overflow-wrap:anywhere}.pending-record-details dd{margin:0;text-align:right;font-weight:600}
.home-result-net.is-gain>strong,.business-profit.is-gain>strong{color:#187044}
.home-result-net.is-loss>strong,.business-profit.is-loss>strong{color:#b42318}
.home-result-net.is-zero>strong,.business-profit.is-zero>strong{color:#536684}
.business-profit.is-pending>strong{color:#805b00}

.home-seller-results{margin-top:20px}.home-seller-results>h3{font-size:16px;margin:0 0 12px}
.home-seller-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px;align-items:start}
.home-seller-result{min-width:0;background:#edf3ff;border:1px solid #d4e1ff;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:12px}
.home-seller-result>h4{font-size:16px;line-height:1.5;margin:0;overflow-wrap:break-word}
.home-seller-result>strong{font-size:25px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.home-seller-result>small{font-size:12px;line-height:1.5;color:#60718c}
.home-seller-result.is-gain>strong,.home-business-total.is-gain>strong{color:#187044}
.home-seller-result.is-loss>strong,.home-business-total.is-loss>strong{color:#b42318}
.home-seller-result.is-zero>strong,.home-business-total.is-zero>strong{color:#536684}
.home-seller-result.is-pending>strong,.home-business-total.is-pending>strong{color:#805b00;font-size:18px}
.home-seller-note{font-size:12px;line-height:1.6;color:#60718c;margin:10px 0 0}
.seller-profit-label{font-size:12px;font-weight:600;color:#435c7d;margin-bottom:-6px}
.home-seller-result dl{margin:0;display:grid;gap:8px;font-size:12px}
.home-seller-result dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;min-width:0}
.home-seller-result dt{color:#536684;line-height:1.5;flex:1 1 120px}
.home-seller-result dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.seller-sales-metrics{padding:14px 0;border-top:1px solid #d4e1ff;border-bottom:1px solid #d4e1ff}
.seller-sales-metrics dd{font-size:15px;color:#173b83}
.seller-calculation summary,.seller-sales-detail summary{cursor:pointer;font-size:12px;font-weight:600;line-height:1.5;padding:6px 0;color:#173b83}
.seller-calculation dl,.seller-sales-detail dl{margin-top:10px}
.seller-calculation dl>div:last-child{border-top:1px solid #cbdafa;padding-top:10px;font-size:13px}
.seller-sales-detail{border-top:1px solid #d4e1ff;padding-top:6px}
.seller-sales-detail p{font-size:12px;line-height:1.6;color:#60718c;margin:8px 0 0}
.seller-product-result{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0;font-size:12px}
.seller-product-result>span{min-width:0;flex:1 1 120px}.seller-product-result b,.seller-product-result small{display:block;line-height:1.5}.seller-product-result small{color:#60718c;margin-top:3px}.seller-product-result>strong{font-variant-numeric:tabular-nums}
.home-business-total{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 16px;margin-top:18px;padding-top:18px;border-top:1px solid #dce5f3}
.home-business-total>span{font-size:15px;font-weight:600}.home-business-total>strong{font-size:22px;font-variant-numeric:tabular-nums}
.home-business-total>p{grid-column:1/-1;font-size:12px;line-height:1.6;color:#60718c;margin:0}
@media(max-width:640px){.home-seller-grid{grid-template-columns:minmax(0,1fr);gap:12px}.home-seller-result{padding:16px;gap:10px}.home-seller-result>strong{font-size:24px}.home-seller-result>h4{font-size:15px}.home-seller-result.is-pending>strong{font-size:18px}.home-business-total{grid-template-columns:minmax(0,1fr)}.home-business-total>strong{font-size:20px}}

/* Short transitions keep controls responsive without animating live data refreshes. */
:root{--sj-motion-fast:160ms;--sj-motion-panel:240ms;--sj-motion-ease:cubic-bezier(.2,.75,.25,1)}
.sj-ui :is(button,a,summary){transition:background-color var(--sj-motion-fast) ease,border-color var(--sj-motion-fast) ease,color var(--sj-motion-fast) ease,box-shadow var(--sj-motion-fast) ease,transform var(--sj-motion-fast) var(--sj-motion-ease)!important}
.sj-ui button:active:not(:disabled){transform:scale(.985)}
.sj-ui :is(input,select,textarea){transition:border-color var(--sj-motion-fast) ease,box-shadow var(--sj-motion-fast) ease,background-color var(--sj-motion-fast) ease!important}
.sj-ui details>summary>.icon{transition:transform var(--sj-motion-panel) var(--sj-motion-ease)!important}
@supports selector(details::details-content){
 .sj-ui details::details-content{opacity:0;transition:opacity var(--sj-motion-panel) ease,content-visibility var(--sj-motion-panel) allow-discrete}
 .sj-ui details[open]::details-content{opacity:1}
 @supports(interpolate-size:allow-keywords){
  .sj-ui details{interpolate-size:allow-keywords}
  .sj-ui details::details-content{height:0;overflow:clip;transition:height var(--sj-motion-panel) var(--sj-motion-ease),opacity var(--sj-motion-panel) ease,content-visibility var(--sj-motion-panel) allow-discrete}
  .sj-ui details[open]::details-content{height:auto}
 }
}
@supports(transition-behavior:allow-discrete){
 .sj-ui dialog{opacity:0;translate:0 6px;transition:opacity 180ms ease,translate 180ms var(--sj-motion-ease),display 180ms allow-discrete,overlay 180ms allow-discrete}
 .sj-ui dialog[open]{opacity:1;translate:0 0}
 .sj-ui dialog::backdrop{opacity:0;transition:opacity 180ms ease,display 180ms allow-discrete,overlay 180ms allow-discrete}
 .sj-ui dialog[open]::backdrop{opacity:1}
 @starting-style{
  .sj-ui dialog[open]{opacity:0;translate:0 6px}
  .sj-ui dialog[open]::backdrop{opacity:0}
 }
}
@media(prefers-reduced-motion:reduce){
 .sj-ui *,.sj-ui *::before,.sj-ui *::after,.sj-ui :is(button,a,summary,input,select,textarea),.sj-ui details>summary>.icon,.sj-ui details::details-content,.sj-ui dialog::backdrop{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .sj-ui button:active:not(:disabled){transform:none}
}
/* Compact secondary controls; search and the main task remain visible. */
.sj-ui .inventory-history-controls{display:grid;grid-template-columns:repeat(2,minmax(0,260px));justify-content:start;align-items:end;gap:16px}
.sj-ui .inventory-history-controls .field{display:grid;grid-template-columns:1fr;gap:8px;width:100%;max-width:none;margin:0;min-width:0}
.sj-ui .inventory-history-controls select{width:100%;min-width:0}
.sj-ui .inventory-options{margin:0 0 22px}
.sj-ui .inventory-options .inventory-provider-actions{margin:16px 0 0}
.sj-ui .client-filters{display:block}
.sj-ui .client-filters .toolbar{width:100%}
.sj-ui .simple-client-filters,.sj-ui .simple-price-options{margin:0 0 18px;padding:14px 18px}
.sj-ui .simple-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.sj-ui .simple-filter-fields>label{display:grid;gap:8px;min-width:0}
.sj-ui .simple-client-filters .tabs{margin-top:16px}
.sj-ui .simple-price-options .general-price-action{margin:16px 0 0}
@media(max-width:640px){
 .sj-ui .inventory-history-controls{grid-template-columns:minmax(0,1fr);gap:12px}
 .sj-ui .simple-filter-fields{grid-template-columns:minmax(0,1fr)}
 .sj-ui .simple-client-filters summary{white-space:normal;overflow-wrap:anywhere}
}

/* Prominent purchase action, also on narrow screens. */
.sj-ui .solid-btn.purchase-day-btn{min-height:60px;min-width:248px;padding:18px 28px;font-size:16px;font-weight:800;justify-content:center;gap:12px}
.sj-ui .purchase-day-btn .icon{width:24px;height:24px}
@media(max-width:640px){.sj-ui .solid-btn.purchase-day-btn{width:100%;min-width:0;min-height:56px;padding:16px 20px}}

.inventory-purchase-tools{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px}.inventory-purchase-tools>.purchase-day-btn{flex-shrink:0}.sj-ui .inventory-purchase-tools>.inventory-options{flex:1;min-width:0;margin:0}.inventory-purchase-tools>.inventory-options>summary{min-height:60px}@media(max-width:640px){.inventory-purchase-tools{flex-direction:column;gap:12px}.sj-ui .inventory-purchase-tools>.inventory-options{width:100%}}

.sj-ui .inventory-purchase-total{background:#edf3ff;border-color:#cddcff;display:flex;flex-direction:column;justify-content:center;min-width:0}.sj-ui .inventory-purchase-total .metric{color:#193faa;font-size:clamp(26px,3vw,36px);overflow-wrap:anywhere}.sj-ui .inventory-purchase-total>small{color:var(--muted-foreground);line-height:1.5}

/* Molleja is entered and displayed only by weight. */
.delivery-inputs:has(input[type="hidden"][name="qty-Molleja"]){grid-template-columns:repeat(2,minmax(0,1fr))}
.dispatch-quantities:has(input[type="hidden"][name="qty-Molleja"]),.return-product-inputs:has(input[type="hidden"][name="qty-Molleja"]){grid-template-columns:minmax(0,1fr)}

.delivery-save-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.delivery-save-actions[hidden]{display:none}.delivery-save-actions>.solid-btn{width:100%;margin:0;min-height:54px}.delivery-save-actions>[data-delivery-save="finish"]{background:white;color:var(--primary);border:1px solid #cbd8f2}@media(max-width:360px){.delivery-save-actions{grid-template-columns:1fr}}

.delivery-price-tools{padding:0 16px 12px}.delivery-price-tools[hidden],.delivery-price-editor[hidden],.delivery-price-status[hidden]{display:none}.delivery-price-editor{padding:16px;background:#f1f5ff;border-radius:12px;display:grid;gap:10px}.delivery-price-editor p{font-size:13px;margin:0}.delivery-price-editor input{width:100%}.delivery-price-status{background:#fff6d8;border:1px solid #edd796;border-radius:12px;padding:14px;line-height:1.5}

#entry-form .delivery-price-input{display:block;position:relative;min-width:0;width:100%}#entry-form .delivery-price-input>input{padding-right:50px!important}#entry-form .delivery-price-edit{position:absolute;right:5px;top:0;bottom:0;margin:auto;width:38px;min-width:38px;height:38px;min-height:38px;padding:8px;border:0;border-radius:9px;background:transparent;color:var(--primary);display:grid;place-items:center}#entry-form .delivery-price-edit:hover:not(:disabled){background:#e3eafe}#entry-form .delivery-price-edit:focus-visible{outline:2px solid var(--primary);outline-offset:1px}#entry-form .delivery-price-edit:disabled{opacity:.5;cursor:default}#entry-form .delivery-price-edit .icon{width:20px;height:20px}#entry-form .delivery-price-input>input::-webkit-inner-spin-button,#entry-form .delivery-price-input>input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.delivery-discount-field{display:grid;gap:6px;padding:12px 16px;color:#183b70;font-size:13px}.delivery-discount-field input{max-width:220px}.delivery-discount-field small{color:#60718c;font-size:12px}.delivery-discount-status{padding:14px;border:1px solid #e4d5a4;background:#fffbec;border-radius:12px;line-height:1.6}.delivery-discount-status p{font-size:13px;margin:0 0 8px}.delivery-discount-field[hidden],.delivery-discount-status[hidden]{display:none}

/* Worker-to-worker product handoffs */
.transfer-access{margin:1rem 0 1.5rem}.transfer-access p{color:var(--blue,#1b3faa);margin:.7rem 0}.transfer-record{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid #dbe4f5}.transfer-record p{margin:.4rem 0}.transfer-record small{color:#647b9e}.transfer-record b{overflow-wrap:anywhere}.transfer-quantities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.transfer-notices{margin-top:1.5rem}.transfer-notices h3{margin-bottom:.5rem}@media(max-width:540px){.transfer-record{align-items:stretch;flex-direction:column}.transfer-quantities{grid-template-columns:1fr}.transfer-access>button{width:100%}}

/* Compact worker stock overview, including days without an assigned load. */
.worker-stock-panel,.sj-ui .worker-stock-panel{margin:18px 0 22px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px 20px}
.worker-stock-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.worker-stock-title{min-width:0}.worker-stock-title h2{font-size:20px;line-height:1.35}.worker-stock-title p{margin:5px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
.worker-stock-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 16px;min-width:0}.worker-stock-actions>.text-btn{white-space:nowrap}
.worker-stock-actions .transfer-access{margin:0}.worker-stock-actions .transfer-access p{margin:6px 0 0;font-size:13px;max-width:320px}.worker-stock-actions .transfer-access>button{min-height:44px}
.worker-load-empty{grid-column:1/-1;display:flex;align-items:center;gap:12px;border-radius:12px;background:#f6f8fc;padding:14px 16px;color:var(--muted);font-size:14px;line-height:1.5}
.worker-load-empty>.icon{width:24px;height:24px}.worker-load-empty p{margin:0}.worker-load-empty small{display:block;font-size:13px;margin-top:2px}
.worker-stock-panel .worker-stock-help{margin-top:10px}.worker-stock-panel .worker-assigned-grid:has(.worker-load-empty){display:block}
@media(max-width:640px){.worker-stock-panel,.sj-ui .worker-stock-panel{padding:16px;margin:16px 0 20px}.worker-stock-heading{align-items:stretch;flex-direction:column;gap:12px;margin-bottom:12px}.worker-stock-title h2{font-size:18px}.worker-stock-actions{justify-content:space-between}.worker-stock-actions .transfer-access{flex:1;min-width:180px}.worker-stock-actions .transfer-access>button{width:100%}.worker-stock-actions .transfer-access p{max-width:none}.worker-load-empty{padding:12px;align-items:flex-start}}

/* Touch targets stay usable on phones, including secondary actions. */
@media(max-width:700px){
 .sj-ui :is(.text-btn,.return-all-button,.client-name-edit){min-height:44px;min-width:44px}
 .sj-ui .main button.text-btn[data-sj-ui="button"],.sj-ui #modal button.text-btn[data-sj-ui="button"]{min-height:44px}
 .sj-ui #modal .inline-actions>button.solid-btn{min-height:44px}
 .sj-ui details>summary{min-height:44px;align-content:center}
 .sj-ui .inventory-route>summary{min-height:44px}
 .sj-ui #modal details>summary{min-height:44px;align-content:center}
 .sj-ui #entry-form .delivery-price-edit{width:44px;min-width:44px;height:44px;min-height:44px;right:2px}
 .sj-ui #entry-form .delivery-price-input>input{padding-right:50px!important}
 .sj-ui #modal .sales-calendar-toolbar select{font-size:16px;min-height:44px;max-width:100%;width:100%;min-width:0}
 .sj-ui .sales-calendar-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}
 .sj-ui .sales-calendar-toolbar>div{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
 .sj-ui .sales-calendar-toolbar button[data-sj-ui="button"]{width:44px;min-width:44px;height:44px;min-height:44px}
 .sj-ui .sales-calendar-footer button[data-sj-ui="button"],.sj-ui .sales-calendar-day[data-sj-ui="button"]{min-height:44px}
 .sj-ui .hero .hero-art,.sj-ui .hero .hero-stamp,.sj-ui .hero>.sj-motion{display:none}
 .sj-ui .hero-content{width:100%;min-width:0}
 .sj-ui .hero h2{max-width:none;overflow-wrap:anywhere}
 .sj-ui .hero p{max-width:none}
}
@media(max-width:640px){
 .sj-ui #modal[data-sj-ui="dialog"]{padding-bottom:calc(var(--dialog-padding) + env(safe-area-inset-bottom));scroll-padding-bottom:24px}
 .sj-ui #modal :is(input,select,textarea){scroll-margin-top:100px;scroll-margin-bottom:24px}
}
.sj-ui .admin-stock-actions{margin:0 0 24px;padding:18px;border:1px solid #cbdafa;border-top:4px solid #1b40ad;border-radius:16px;background:#edf3ff}
.sj-ui .admin-stock-actions h2{margin:0 0 14px;font-size:20px}
.sj-ui .admin-stock-actions .stock-action-grid{display:flex;flex-wrap:wrap;gap:14px;min-width:0}
.sj-ui .admin-stock-actions .easy-task{display:grid;flex:1 1 280px;grid-column:auto;min-width:0;min-height:100px;height:auto;padding:16px;gap:12px;grid-template-columns:40px minmax(0,1fr) 16px;align-items:center}
.sj-ui .admin-stock-actions .easy-task>span:nth-child(2){min-width:0}
.sj-ui .admin-stock-actions .easy-task b{font-size:16px;line-height:1.4;overflow-wrap:normal;word-break:normal;hyphens:none}
.sj-ui .admin-stock-actions .easy-task small{display:block;font-size:13px;line-height:1.5;overflow-wrap:normal;word-break:normal}
.sj-ui .admin-stock-actions .easy-task-icon{width:40px;height:40px;background:#ffda36;color:#16396d}
.sj-ui .admin-stock-actions .easy-task>.icon:last-child{display:block;width:16px;height:16px}
@media(max-width:700px){.sj-ui .admin-stock-actions{padding:12px;margin-bottom:18px}.sj-ui .admin-stock-actions h2{font-size:18px}.sj-ui .admin-stock-actions .stock-action-grid{gap:10px}.sj-ui .admin-stock-actions .easy-task{min-height:84px;padding:12px;gap:10px;grid-template-columns:36px minmax(0,1fr) 14px}.sj-ui .admin-stock-actions .easy-task-icon{width:36px;height:36px}.sj-ui .admin-stock-actions .easy-task b{font-size:15px}.sj-ui .admin-stock-actions .easy-task small{font-size:12px;margin-top:3px}}

/* The worker's handoff is a primary action, above their stock even with many products. */
.sj-ui .worker-transfer-access{margin:16px 0}
.sj-ui .worker-transfer-access>.worker-transfer-button[data-sj-ui="button"]{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;align-items:center;gap:16px;width:100%;min-height:96px;padding:18px 20px;background:#193fa9;color:#fff;border:1px solid #193fa9;border-radius:16px;text-align:left;box-shadow:0 3px 8px #163fa61a;cursor:pointer}
.sj-ui .worker-transfer-access>.worker-transfer-button[data-sj-ui="button"]:hover{background:#12358f}.sj-ui .worker-transfer-access>.worker-transfer-button[data-sj-ui="button"]:active{transform:scale(.99)}
.sj-ui .worker-transfer-access>.worker-transfer-button[data-sj-ui="button"]:focus-visible{outline:3px solid #eebc19;outline-offset:3px}
.worker-transfer-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#ffda36;color:#16396d}
.worker-transfer-icon .icon{width:26px;height:26px}.worker-transfer-label{min-width:0;display:grid;gap:5px}
.worker-transfer-label b{font-size:18px;line-height:1.35;overflow-wrap:anywhere}.worker-transfer-label small{font-size:13px;line-height:1.5;color:#edf2ff}
.worker-transfer-badge{justify-self:start;font-size:12px;line-height:1.5;padding:3px 9px;border-radius:8px;background:#fff2ad;color:#573f00}
.worker-transfer-access>p{margin:8px 0 0;padding:10px 14px;border:1px solid #f2d05b;border-radius:10px;background:#fff9df;font-size:13px;line-height:1.5;color:#624a0c}
@media(max-width:640px){.sj-ui .worker-transfer-access>.worker-transfer-button[data-sj-ui="button"]{grid-template-columns:40px minmax(0,1fr) 16px;gap:10px;padding:16px 12px;min-height:94px}.worker-transfer-icon{width:40px;height:40px}.worker-transfer-label b{font-size:16px}.worker-transfer-label small{font-size:12px}}

.sj-ui .visit-client-actions{display:grid;gap:12px;margin-top:18px}.sj-ui .visit-client-actions .easy-task{width:100%;min-width:0;min-height:90px}.sj-ui .visit-client-actions .easy-task>span:nth-child(2){min-width:0}.sj-ui .visit-client-actions .easy-task b{overflow-wrap:anywhere}

/* Soft emphasis for the worker's transfer task. */
.sj-ui #app .easy-task[data-action="transfers-open"]{background:#eaf1ff;border-color:#c5d6f8}
.sj-ui #app .easy-task[data-action="transfers-open"]:hover{background:#deE9ff;border-color:#a9c1f0}
.sj-ui #app .easy-task[data-action="transfers-open"] .easy-task-icon{background:#d8e5ff;border-color:#bbcff7}

/* Soft green marks the worker's end-of-day action. */
.sj-ui #app .easy-task.worker-finish-task{background:#eaf7ef;border-color:#b9ddc6}
.sj-ui #app .easy-task.worker-finish-task:hover{background:#dcf0e3;border-color:#91c5a5}
.sj-ui #app .easy-task.worker-finish-task b,.sj-ui #app .easy-task.worker-finish-task>.icon{color:#17633c}
.sj-ui #app .easy-task.worker-finish-task .easy-task-icon{background:#d2ecdc;border-color:#acd4bc;color:#17633c}

/* Historical shortcuts sit immediately below the date; notices remain secondary. */
.sj-ui .history-quick-actions{margin:0 0 16px}
.sj-ui .history-quick-actions .easy-tasks{grid-template-columns:repeat(3,minmax(0,1fr))}
.sj-ui .history-quick-actions .easy-task{grid-column:auto;min-width:0;height:100%}
.sj-ui .history-notices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px}
.sj-ui .history-notices:has(>:only-child){grid-template-columns:minmax(0,1fr)}
.sj-ui .history-notices>:is(.date-context,.pending-shift){margin:0;padding:12px;gap:10px;font-size:13px;min-width:0}
.sj-ui .history-notices .date-context>div{min-width:0;flex:1}
.sj-ui .history-notices .date-context small{font-size:12px;margin-top:2px}
@media(max-width:700px){
 .sj-ui .history-quick-actions .easy-tasks,.sj-ui .history-notices{grid-template-columns:minmax(0,1fr);gap:8px}
 .sj-ui .history-quick-actions .easy-task{min-height:80px;padding:12px;gap:12px}
 .sj-ui .history-quick-actions .easy-task small{margin-top:3px;font-size:12px}
 .sj-ui .history-notices{margin-bottom:16px}
}

@media(max-width:480px){.home-dashboard .home-result-balances{grid-template-columns:minmax(0,1fr)}.home-dashboard .home-result-balances>div{padding:14px}}

/* Long names and currency must reflow inside their own card or form. */
.sj-ui #modal :is(.easy-form-context,.modal-sub,.easy-review,.form-note,.label-value),.sj-ui .business-profit,.sj-ui .business-metrics>div{min-width:0;overflow-wrap:anywhere}
.sj-ui .business-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.sj-ui .business-metrics strong,.sj-ui .business-profit>strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(min-width:641px) and (max-width:1100px){.sj-ui .business-summary{grid-template-columns:minmax(0,1fr)}.sj-ui .business-summary .business-profit{padding:0 0 18px;border-right:0;border-bottom:1px solid var(--border)}}
@media(max-width:380px){.sj-ui .business-metrics{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.sj-ui #modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}.sj-ui #modal .field{min-width:0}.sj-ui #modal .label-value{flex-wrap:wrap}}
