/* Palmward One — retail floor finish.
   System fonts, native UI rhythm, clear financial hierarchy.
   Intentionally no external font loading, decorative gradients or novelty icons. */
:root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
}
body,button,input,select,textarea {font-family:inherit}
h1,h2,h3,h4 {font-weight:700;letter-spacing:-.032em}
.cart-head h3,.section-head h2,.hero-line h2{letter-spacing:-.038em}
.total-row.big strong,#cart-total{font-size:clamp(25px,2.7vw,31px);font-weight:750;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.cart-panel .cart-summary>.total-row.big{margin-block:12px 8px}
.cart-panel .cart-summary{border-top-color:#e5e7eb}
.cart-panel .cart-line .item-name{font-size:14px;line-height:1.4;font-weight:650}
.cart-panel .item-price{font-weight:700;font-variant-numeric:tabular-nums}
.cart-panel .inline-label{font-size:12px;font-weight:650;color:#45515b}
.cart-panel #payment-method,.cart-panel #cash-received,.cart-panel #payment-reference{
  min-height:48px;border:1px solid #d5dce0;border-radius:11px;background:#fff;color:#13221d;
  font-size:16px;font-weight:550;padding:10px 12px;width:100%;min-width:0;
}
.cart-panel #payment-method:focus-visible,.cart-panel #cash-received:focus-visible,.cart-panel #payment-reference:focus-visible{
  outline:2px solid #2d7d68;outline-offset:2px;border-color:#2d7d68;
}
.cash-tender-group{display:grid;gap:7px;margin-top:8px}
.cash-tender-controls{display:flex;gap:9px;align-items:stretch;min-width:0}
.cash-tender-controls #cash-received{flex:1 1 auto;width:100%;min-width:0}
.cash-tender-controls #cash-exact{flex:0 0 auto;min-width:106px;padding:10px 12px;font-size:12px;font-weight:700;white-space:nowrap}
.cash-change{margin:4px 0 10px;min-height:34px;background:transparent;color:#496157;border:0;
 padding:5px 1px;font-size:12px;font-weight:600;line-height:1.45}
.cash-change.insufficient{background:transparent;color:#a43c21}
.cash-change[hidden]{display:none!important}
.payment-caution{font-size:12px;line-height:1.45;font-weight:600;color:#804b1b;padding:5px 0 9px}
#checkout{border-radius:12px;min-height:54px;line-height:1.3;font-weight:720;font-size:15px;letter-spacing:-.012em}
#checkout:disabled{opacity:.52}
#view-stock .inventory-item strong{font-size:14px;font-weight:650;line-height:1.4}
#view-stock .inventory-item .inventory-price{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
#view-stock .inventory-header-actions>.primary{font-weight:700}
#view-stock .inventory-header-actions .secondary,#view-receive .secondary{font-weight:650}
.modal-form label,.paper-form label{font-size:12px;font-weight:650;color:#43514b}
.modal-form input,.modal-form select,.paper-form input,.paper-form select{font-size:16px;border-radius:10px}
#modal-title{font-size:clamp(19px,2.2vw,23px);letter-spacing:-.03em;font-weight:700}
button:focus-visible,[role="button"]:focus-visible,summary:focus-visible{
  outline:2px solid #267a61;outline-offset:3px;
}
@media(max-width:690px){
 .cash-tender-controls{gap:7px}
 .cash-tender-controls #cash-exact{min-width:92px;padding-inline:9px}
 .cart-panel .cart-summary{padding-bottom:10px}
 #checkout{min-height:56px}
 .cart-panel .cart-footer{padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:355px){
 .cash-tender-group{gap:3px;margin-top:3px}
 .cash-tender-controls{flex-wrap:nowrap;gap:5px}
 .cash-tender-controls #cash-received{flex:1 1 auto;min-width:0;min-height:44px;padding:7px 9px}
 .cash-tender-controls #cash-exact{width:auto;min-width:82px;min-height:44px;padding:7px 7px;font-size:11px}
 .cart-panel .cart-summary .cash-change{margin:0 0 2px;min-height:18px;padding:2px 0;line-height:1.3}
 .cart-panel .cart-summary{padding-bottom:4px}
}
@media(prefers-reduced-motion:reduce){
 .cart-panel .primary,.cart-panel .secondary,#view-stock .primary,#view-stock .secondary{transition:none}
}

/* Inventory entry belongs on the surface, not behind a disclosure. */
#view-stock .inventory-header-actions>#new-product-btn{min-height:48px;font-weight:730;letter-spacing:-.012em}
#view-stock .inventory-header-actions>#stocktake-open,
#view-stock .inventory-header-actions>#inventory-add-iphone{min-height:44px}
#view-stock .inventory-header-actions>#inventory-add-iphone{white-space:nowrap}
#view-stock .product-editor .product-submit{min-height:52px;font-weight:720}
@media(max-width:690px){
 #view-stock .section-head{align-items:stretch}
 #view-stock .inventory-header-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;gap:8px;width:100%;
 }
 #view-stock .inventory-header-actions>#new-product-btn{grid-column:1 / -1;min-height:52px;font-size:15px}
 #view-stock .inventory-header-actions>#stocktake-open,
 #view-stock .inventory-header-actions>#inventory-add-iphone,
 #view-stock .inventory-header-actions>[data-inventory-pane="receive"]{
  width:100%;min-width:0;min-height:44px;font-size:13px;padding-inline:8px;white-space:normal
 }
 #view-stock .inventory-header-actions>#inventory-more-actions{min-width:0;width:100%}
 #view-stock .inventory-header-actions>#inventory-more-actions>summary{
  min-height:44px;justify-content:center;padding:9px 10px;
  background:var(--one-surface,#fff);border:1px solid var(--one-line,#d5dcda);
  border-radius:11px;font-size:13px
 }
}

/* Friendly but restrained inventory empty and search states.
   Keep the next action reachable from the item list itself. */
#view-stock .inventory-empty-help{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:9px;min-height:190px;padding:32px 18px;
 text-align:center;border:1px solid #e6e9ea;border-radius:15px;
 background:#fff;color:#27342f;
}
#view-stock .inventory-empty-help>strong{
 font-size:17px;font-weight:700;letter-spacing:-.022em;line-height:1.3
}
#view-stock .inventory-empty-help>p{
 margin:0;max-width:380px;font-size:13px;line-height:1.5;color:#66716c
}
#view-stock .inventory-empty-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:10px}
#view-stock .inventory-empty-actions>button{min-height:46px;min-width:138px;font-weight:650}
#view-stock .product-editor>.advanced-product{margin-top:4px}
#view-stock .product-editor .product-submit{width:100%}
@media(max-width:390px){
 #view-stock .inventory-empty-help{padding:24px 15px;min-height:166px}
 #view-stock .inventory-empty-actions{width:100%}
 #view-stock .inventory-empty-actions>button{width:100%}
}

/* Daily stocktake keeps the next action prominent; exceptional maintenance
   remains discoverable without presenting destructive reset as a primary CTA. */
.count-more-options{margin:12px 0 6px;padding:5px 0 0;border-top:1px solid #e5e9e6}
.count-more-options>summary{cursor:pointer;display:flex;align-items:center;min-height:44px;width:max-content;max-width:100%;color:#56645e;font-size:12px;font-weight:650;list-style-position:inside}
.count-more-options[open]>summary{margin-bottom:8px}
.count-more-options>button{display:block;min-height:44px;margin:6px 0 0;font-size:13px}
.count-more-options>button.text-button{color:#52615a}
@media(max-width:690px){.count-more-options>button{width:100%;text-align:left}}
