@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600&display=swap');
:root{--ink:#262322;--muted:#7f7771;--paper:#f8f6f3;--surface:#fff;--line:#e8e1db;--coral:#b86e5a;--coral-dark:#8f4d3c;--sage:#52726a;--lilac:#766985;--warm:#f4e5dc;--shadow:0 12px 30px rgba(49,36,29,.06)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:15px;line-height:1.5}button,input{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}.demo-banner{height:30px;background:#2b2523;color:#eee7e1;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;letter-spacing:.02em}.demo-dot{width:7px;height:7px;background:#d79a56;border-radius:50%}.app-shell{display:flex;min-height:calc(100dvh - 30px)}.sidebar{width:246px;background:#fff;border-right:1px solid var(--line);padding:28px 16px 18px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;padding:0 11px 29px}.brand-mark{width:38px;height:38px;background:var(--ink);color:#fff;border-radius:11px;display:grid;place-items:center;font-weight:700;font-size:13px;letter-spacing:.04em}.brand strong{display:block;font-family:Fraunces,serif;font-size:17px;font-weight:600}.brand small,.user-card small{display:block;color:var(--muted);font-size:11px;margin-top:1px}.nav-list{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;border-radius:10px;padding:11px 13px;color:#6c645e;min-height:44px;transition:background .2s,color .2s}.nav-item:hover{background:#f7f1ec;color:var(--ink)}.nav-item.is-active{background:#f3e6df;color:var(--coral-dark);font-weight:600}.nav-icon{width:18px;text-align:center;font-size:18px;line-height:1}.sidebar-foot{margin-top:auto}.sidebar-foot>.nav-item{margin-bottom:17px}.user-card{border-top:1px solid var(--line);padding:18px 9px 0;display:flex;align-items:center;gap:10px}.avatar,.top-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#d9c0b5;color:#633e33;font-weight:700;font-size:13px}.user-card strong{display:block;font-size:13px}.user-more{margin-left:auto;color:#aaa}.main-content{flex:1;max-width:1480px;margin:0 auto;padding:0 42px 60px;min-width:0}.topbar{height:105px;display:flex;align-items:center;justify-content:space-between}.eyebrow,.section-kicker{color:var(--coral-dark);font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin:0 0 4px}.topbar h1{font-family:Fraunces,serif;font-size:25px;line-height:1.2;margin:0;font-weight:600}.top-actions{display:flex;align-items:center;gap:18px}.store-status{font-size:12px;color:var(--sage);background:#eaf2ed;border-radius:999px;padding:6px 10px}.status-dot{width:7px;height:7px;background:#6d9d7e;border-radius:50%;display:inline-block;margin-right:5px}.icon-button,.mobile-menu{border:0;background:transparent;color:#6c645e;cursor:pointer;font-size:22px;position:relative;min-width:44px;min-height:44px}.notification-dot{width:6px;height:6px;border-radius:50%;background:var(--coral);position:absolute;top:9px;right:8px}.top-avatar{border:0;cursor:pointer}.mobile-menu{display:none}.view{display:none}.view.is-visible{display:block}.welcome-row{display:flex;align-items:end;justify-content:space-between;margin:8px 0 24px}.welcome-row h2{font-family:Fraunces,serif;font-size:29px;font-weight:600;line-height:1.15;margin:0 0 4px}.subtle{color:var(--muted);font-size:13px;margin:0}.button{border:0;min-height:44px;padding:0 16px;border-radius:9px;cursor:pointer;font-weight:600;display:inline-flex;gap:10px;align-items:center;justify-content:center;transition:transform .18s,background .18s}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--coral);color:#fff;box-shadow:0 7px 14px rgba(184,110,90,.18)}.button-primary:hover{background:var(--coral-dark)}.button-soft{background:#f0e9e4;color:#68463a}.full{width:100%;margin-top:13px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric-grid.compact{grid-template-columns:repeat(3,1fr);margin-bottom:20px}.metric-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.metric-card{padding:18px 19px}.metric-label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.metric-card strong{display:block;font-size:28px;letter-spacing:-.03em;margin:10px 0 5px}.metric-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;font-size:13px;font-weight:700}.metric-icon.warm,.quick-icon.coral,.report-icon.coral,.activity-icon.sale{background:#f5e6df;color:var(--coral-dark)}.metric-icon.lilac,.quick-icon.blue,.report-icon.lilac{background:#ebe7f0;color:var(--lilac)}.metric-icon.sage,.quick-icon.green,.report-icon.sage,.activity-icon.stock{background:#e6f0eb;color:var(--sage)}.metric-icon.rose,.activity-icon.alert{background:#f7e7e7;color:#a75858}.metric-change{font-size:11px;color:var(--muted)}.metric-change em{font-style:normal;color:#aaa}.metric-change.up{color:var(--sage)}.metric-change.warning{color:#a75858}.dashboard-grid{display:grid;grid-template-columns:1.35fr .9fr;gap:16px;margin-top:16px}.panel{padding:20px}.panel-heading{display:flex;justify-content:space-between;align-items:start;gap:15px}.panel h3{font-size:16px;margin:0 0 2px}.select-button,.filter-chip{border:1px solid var(--line);background:#fff;color:#69605b;border-radius:8px;min-height:38px;padding:0 11px;cursor:pointer;font-size:12px}.select-button span{margin-left:8px}.chart{height:215px;display:flex;margin-top:19px}.chart-y{width:42px;display:flex;flex-direction:column;justify-content:space-between;color:#aaa;font-size:10px;padding-bottom:26px}.chart-main{flex:1;position:relative}.chart-lines{position:absolute;inset:0 0 26px;display:flex;flex-direction:column;justify-content:space-between}.chart-lines i{border-top:1px dashed #eee9e5}.bars{height:100%;display:flex;align-items:end;justify-content:space-around;gap:10px;padding:0 5px}.bars span{background:#d9beb2;border-radius:5px 5px 2px 2px;width:100%;max-width:40px;position:relative;z-index:1}.bars span.today{background:var(--coral)}.bars b{position:absolute;top:calc(100% + 7px);font-size:10px;font-weight:500;color:#9b938d;left:50%;transform:translateX(-50%)}.activity-panel{min-width:0}.text-link{color:var(--coral-dark);font-size:12px;font-weight:700}.activity-list{display:grid;margin-top:17px}.activity-item{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #f1ece8;min-width:0}.activity-item:last-child{border-bottom:0}.activity-icon{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;font-weight:700;flex-shrink:0}.activity-item div{min-width:0;flex:1}.activity-item strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-item small{display:block;color:var(--muted);font-size:11px}.activity-amount{font-size:12px;font-weight:700;color:var(--sage);white-space:nowrap}.activity-amount.muted{color:var(--muted);font-weight:500}.quick-panel{margin-top:16px}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:17px}.quick-action{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--line);border-radius:10px;color:#6c645e;transition:border .2s,background .2s}.quick-action:hover{border-color:#d0b2a5;background:#fcf8f5}.quick-action>span:nth-child(2){flex:1}.quick-action strong{display:block;color:var(--ink);font-size:12px}.quick-action small{display:block;color:var(--muted);font-size:10px}.quick-icon{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;font-size:18px}.keyboard-hint{border:1px solid var(--line);border-radius:7px;padding:7px 9px;color:#756d67;font-size:11px}.keyboard-hint span{color:#aaa;margin-left:7px}.pos-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.75fr);gap:16px;align-items:start}.catalog-panel,.cart-panel{min-height:560px}.search-row{display:flex;gap:10px}.search-box{border:1px solid var(--line);border-radius:9px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 12px;min-height:44px;flex:1;color:#9a918a}.search-box input{border:0;outline:0;width:100%;background:transparent;color:var(--ink);font-size:13px}.filter-row{display:flex;align-items:center;justify-content:space-between;margin:18px 0 14px}.filter-row>div{display:flex;gap:6px}.filter-chip.is-selected{background:#f3e6df;color:var(--coral-dark);border-color:#ead5cb;font-weight:700}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.product-card{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff;cursor:pointer;transition:border .2s,transform .2s}.product-card:hover{border-color:#c89281;transform:translateY(-2px)}.product-image{height:125px;background:linear-gradient(135deg,#e9ded7,#f8f4f1);display:grid;place-items:center;color:#9b8479;font-family:Fraunces,serif;font-size:16px}.product-card:nth-child(2n) .product-image{background:linear-gradient(135deg,#dddfe1,#f3f3f0)}.product-card:nth-child(3n) .product-image{background:linear-gradient(135deg,#e3e8e2,#f5f6f2)}.product-info{padding:11px}.product-info strong{display:block;font-size:12px}.product-info small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.product-price{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-weight:700;font-size:12px}.product-price span{font-weight:500;color:var(--sage);font-size:10px}.cart-panel{display:flex;flex-direction:column}.cart-heading{display:flex;justify-content:space-between;align-items:start}.cart-heading h3{font-size:18px;margin:0}.text-button{border:0;background:transparent;color:#a75858;font-size:12px;cursor:pointer;min-height:40px}.cart-lines{flex:1}.empty-cart{height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#aaa;gap:6px;text-align:center}.empty-cart>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f5ece8;color:var(--coral);font-size:24px;margin-bottom:5px}.empty-cart strong{font-size:13px;color:#7b716b}.empty-cart small{font-size:11px}.cart-line{display:flex;gap:10px;padding:14px 0;border-bottom:1px solid #f1ece8}.cart-line>div:first-child{flex:1}.cart-line strong{font-size:12px}.cart-line small{display:block;color:var(--muted);font-size:11px}.cart-line-total{font-size:12px;font-weight:700}.qty-controls{display:flex;gap:6px;align-items:center;margin-top:5px}.qty-controls button{width:25px;height:25px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}.cart-summary{border-top:1px solid var(--line);padding-top:15px}.cart-summary>div{display:flex;justify-content:space-between;margin:7px 0;color:var(--muted);font-size:12px}.cart-summary>div strong{color:var(--ink)}.cart-summary .cart-total{font-size:17px;color:var(--ink);padding-top:10px;margin-top:10px;border-top:1px solid var(--line)}.inventory-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px}.inventory-toolbar .search-box{max-width:410px}.table-panel{padding:0 20px 10px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:650px}th,td{text-align:left;border-bottom:1px solid #f0ebe7;padding:14px 8px;font-size:12px;white-space:nowrap}th{color:#9a918a;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}td strong{display:block;font-size:12px}td small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.status-pill{border-radius:999px;padding:5px 8px;font-size:10px;font-weight:700}.status-pill.good{background:#e6f0eb;color:var(--sage)}.status-pill.low{background:#f8ebe3;color:#a15e48}.empty-page{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-page-icon{width:49px;height:49px;display:grid;place-items:center;border-radius:50%;background:#f3e6df;color:var(--coral);font-size:28px}.empty-page h3{font-size:17px;margin:14px 0 5px}.empty-page p{max-width:390px;color:var(--muted);font-size:13px;margin:0 0 19px}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.report-card{min-height:190px}.report-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-weight:700}.report-card h3{margin:17px 0 3px}.report-card p{color:var(--muted);font-size:12px;margin:0 0 19px}.settings-list{padding:4px 20px}.settings-list a{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid #f0ebe7}.settings-list a:last-child{border-bottom:0}.settings-list strong{display:block;font-size:13px}.settings-list small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.settings-list>a>span:last-child{color:var(--coral);font-size:18px}
@media(max-width:1050px){.main-content{padding:0 25px 50px}.dashboard-grid{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{position:fixed;z-index:10;left:-260px;top:30px;bottom:0;transition:left .25s;box-shadow:10px 0 30px rgba(0,0,0,.08)}.sidebar.is-open{left:0}.main-content{padding:0 16px 40px}.topbar{height:90px}.mobile-menu{display:block;margin-left:-10px}.topbar{gap:4px}.topbar h1{font-size:20px}.top-actions{gap:4px}.store-status{display:none}.metric-grid,.metric-grid.compact{grid-template-columns:repeat(2,1fr);gap:10px}.metric-card{padding:14px}.metric-card strong{font-size:23px}.quick-actions,.report-grid{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}.cart-panel{min-height:390px}.catalog-panel{min-height:0}.product-grid{grid-template-columns:repeat(2,1fr)}.product-image{height:112px}.welcome-row{align-items:start;gap:16px;flex-direction:column;margin-top:3px}.welcome-row .button,.welcome-row .select-button{align-self:stretch}.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar .search-box{max-width:none;flex-basis:100%}.chart-panel,.activity-panel{padding:16px}.chart{height:195px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
.customer-panel{padding:20px}.customer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.customer-toolbar .search-box{max-width:410px}.customer-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.customer-card{border:1px solid var(--line);border-radius:11px;padding:14px;display:flex;gap:11px;align-items:center}.customer-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#f1e1d9;color:var(--coral-dark);font-weight:700}.customer-card strong{display:block;font-size:13px}.customer-card small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.customer-card .customer-meta{margin-left:auto;text-align:right}.customer-card .customer-meta small{color:var(--sage)}.promo-explainer{display:flex;align-items:center;gap:13px;margin-bottom:16px}.promo-explainer h3{font-size:15px;margin:0 0 2px}.promo-explainer p{margin:0}.modal-backdrop[hidden]{display:none}.modal-backdrop{position:fixed;inset:0;z-index:30;background:rgba(35,29,27,.42);display:grid;place-items:center;padding:18px}.modal{width:min(100%,520px);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(35,29,27,.22)}.modal-wide{width:min(100%,680px)}.modal-heading{display:flex;justify-content:space-between;align-items:start}.modal h2{font-family:Fraunces,serif;font-size:25px;line-height:1.1;margin:0}.modal-close{border:0;background:transparent;color:#8c827b;font-size:28px;line-height:1;cursor:pointer;min-width:40px;min-height:40px}.modal-note{margin:10px 0 19px;max-width:540px}.form-grid{display:grid;gap:13px}.form-grid.two-col{grid-template-columns:1fr 1fr}.form-grid label{display:grid;gap:6px;color:#5d554f;font-size:12px;font-weight:600}.optional{font-weight:400;color:#aaa}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;padding:11px 12px;min-height:44px;color:var(--ink);outline-color:var(--coral);resize:vertical}.check-row{display:flex;gap:10px;align-items:flex-start;margin-top:17px;padding:12px;background:#faf5f1;border-radius:9px;color:#5d554f}.check-row input{width:18px;height:18px;accent-color:var(--coral);margin-top:1px}.check-row strong{display:block;font-size:12px}.check-row small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.barcode-preview{margin-top:13px;padding:10px 12px;border:1px dashed #d9b8aa;border-radius:8px;background:#fffaf7;color:var(--coral-dark);font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.modal-actions .button{min-width:100px}
@media(max-width:760px){.customer-list{grid-template-columns:1fr}.form-grid.two-col{grid-template-columns:1fr}.modal{padding:19px}}

.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.nav-icon,.shortcut svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shortcut-nav{display:flex;gap:9px;margin:-3px 0 25px;overflow-x:auto}
.shortcut{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#625953;font-size:13px;font-weight:600;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}
.shortcut:hover{background:#faf3ee;border-color:#d9b8aa}
.shortcut.is-active{background:#f3e6df;border-color:#d9b8aa;color:var(--coral-dark)}
.shortcut:focus-visible,.nav-item:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #225c9b;outline-offset:2px}
.status-message{padding:12px 15px;margin:-10px 0 20px;border-radius:9px;background:#e6f0eb;color:#244d3d;font-size:13px}
.status-message.is-error{background:#fae9e6;color:#803523}
.weekly-bars{display:flex;align-items:end;justify-content:space-around;gap:12px;width:100%;height:100%;border-bottom:1px solid var(--line)}
.weekly-day{height:100%;display:flex;flex:1;flex-direction:column;justify-content:end;align-items:center;gap:6px;color:var(--muted);font-size:11px}
.weekly-bar{width:min(70%,40px);min-height:2px;border-radius:5px 5px 0 0;background:var(--coral)}
.weekly-day span{height:22px}
.product-card:disabled{cursor:not-allowed;opacity:.55}
.qty-controls button{width:36px;height:36px;font-size:18px}
.qty-controls button:disabled,.button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.receipt-link{border:0;background:none;padding:8px 0;cursor:pointer;text-align:left}
.payment-due,.payment-change{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px}
.payment-due strong,.payment-change strong{font-size:21px;color:var(--ink)}
.form-error{padding:10px 12px;border-radius:8px;background:#fae9e6;color:#803523;font-size:13px}
.receipt{margin:20px 0;font-size:13px}
.receipt>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid var(--line)}
.receipt .receipt-total{font-size:17px;font-weight:700;border-top:1px solid var(--line)}
.receipt small{display:block;margin-top:15px;color:var(--muted)}
.receipt-heading,.receipt-thanks{text-align:center}.receipt-heading strong{display:block;font-size:20px}.receipt-policy{border-top:1px dashed currentColor;padding-top:12px;font-size:12px;overflow-wrap:anywhere;break-inside:avoid}.receipt-policy p{margin:6px 0}
.receipt-social{display:flex;flex-direction:column;align-items:center;gap:2mm;margin:3mm 0;text-align:center;font-size:11px;break-inside:avoid}.receipt-social img{display:block;width:28mm;height:28mm;background:#fff}.receipt-social span{line-height:1.3}
.stock-history{margin-top:16px}
.stock-history h3{margin:0 0 10px}
.stock-history ul{margin:0;padding-left:20px;color:var(--muted);font-size:12px;line-height:1.8}
.top-actions [hidden]{display:none}
.select-button:disabled{cursor:default;opacity:.7}
.settings-list a[aria-disabled="true"]{cursor:default}
@media(max-width:760px){
  .main-content{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .shortcut-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(35,29,27,.08);overflow:visible}
  .shortcut{min-height:58px;padding:5px 2px;flex-direction:column;gap:3px;border:0;border-radius:8px;font-size:10px}
  .shortcut svg{width:22px;height:22px}
  .sidebar{z-index:25;max-height:calc(100dvh - 30px);overflow-y:auto}
  .top-avatar{display:none}
  .search-row{flex-wrap:wrap}
  .search-row .button-soft{width:100%}
  .filter-row{flex-wrap:wrap;gap:10px}
  .filter-row>div{overflow-x:auto;max-width:100%}
  .search-box input{font-size:16px}
  .qty-controls button{width:44px;height:44px}
}
@page{margin:0}
@media print{body>*:not(.modal-backdrop){display:none!important}.modal-backdrop{position:static;background:#fff;padding:0}.modal{max-height:none;box-shadow:none;border-radius:0;width:100%;padding:0}.modal-heading .modal-close,.modal-actions,.receipt-print-tip{display:none!important}}

/* Zeina's Closets brand tokens: seafoam, warm taupe, cream and gold. */
:root{--ink:#5d4f46;--muted:#6b5c52;--paper:#e9f4f1;--surface:#fffaf0;--line:rgba(93,79,70,.18);--coral:#91c6be;--coral-dark:#5d9a90;--sage:#2c554e;--lilac:#b08a44;--warm:#e3f1ed;--shadow:0 2px 6px rgba(42,36,31,.07),0 18px 44px rgba(42,36,31,.08)}
body{background:var(--paper);color:var(--ink)}
.demo-banner{background:var(--taupe,#5d4f46);color:#fffaf0}.demo-dot{background:var(--gold,#b08a44)}
.sidebar,.shortcut-nav,.panel,.metric-card,.search-box,.select-button,.filter-chip,.product-card,.qty-controls button{background:var(--surface)}
.sidebar{border-right-color:var(--line)}
.brand-mark{background:var(--ink);color:#fffaf0}
.nav-item{color:var(--muted)}.nav-item:hover{background:var(--sea-mist,#f0f8f6);color:var(--ink)}.nav-item.is-active{background:var(--warm);color:var(--ink)}
.avatar,.top-avatar{background:var(--sea-sink,#d1e7e1);color:var(--ink)}
.eyebrow,.section-kicker,.text-link{color:var(--ink)}
.store-status{color:var(--sea-ink,#2c554e);background:var(--sea-pale,#e3f1ed)}.status-dot{background:var(--sea-deep,#5d9a90)}
.button-primary{background:var(--coral);color:#4a3e37;box-shadow:0 7px 14px rgba(93,154,144,.18)}.button-primary:hover{background:var(--coral-dark);color:#fffaf0}
.button-soft{background:var(--sea-pale,#e3f1ed);color:var(--ink)}
.metric-icon.warm,.quick-icon.coral,.report-icon.coral,.activity-icon.sale{background:var(--sea-pale,#e3f1ed);color:var(--ink)}
.metric-icon.lilac,.quick-icon.blue,.report-icon.lilac{background:#f3ead4;color:#775b22}
.metric-icon.sage,.quick-icon.green,.report-icon.sage,.activity-icon.stock{background:var(--sea-pale,#e3f1ed);color:var(--sea-ink,#2c554e)}
.metric-icon.rose,.activity-icon.alert{background:#f8e7e5;color:#8f3541}
.metric-change.up,.activity-amount{color:var(--sea-ink,#2c554e)}
.chart-lines i{border-top-color:rgba(93,79,70,.12)}.bars span,.weekly-bar{background:#b9dcd5}.bars span.today{background:var(--sea-deep,#5d9a90)}
.filter-chip.is-selected,.shortcut.is-active{background:var(--warm);color:var(--ink);border-color:var(--sea-sink,#d1e7e1)}
.shortcut:hover{background:var(--sea-mist,#f0f8f6);border-color:var(--sea-deep,#5d9a90)}
.quick-action:hover{border-color:var(--sea-deep,#5d9a90);background:var(--sea-mist,#f0f8f6)}
.product-card:hover{border-color:var(--sea-deep,#5d9a90)}
.product-image{background:linear-gradient(135deg,var(--sea-sink,#d1e7e1),var(--sea-mist,#f0f8f6));color:var(--sea-ink,#2c554e)}
.product-card:nth-child(2n) .product-image{background:linear-gradient(135deg,#dce9e5,#f5f9f7)}.product-card:nth-child(3n) .product-image{background:linear-gradient(135deg,#e8e0cf,#fbf7ed)}
.product-price span{color:var(--sea-ink,#2c554e)}
.empty-cart>span{background:var(--sea-pale,#e3f1ed);color:var(--sea-ink,#2c554e)}
.status-pill.good{background:var(--sea-pale,#e3f1ed);color:var(--sea-ink,#2c554e)}.status-pill.low{background:#f8e7e5;color:#8f3541}
.customer-avatar{background:var(--sea-sink,#d1e7e1);color:var(--ink)}.customer-card .customer-meta small{color:var(--sea-ink,#2c554e)}
.modal-backdrop{background:rgba(93,79,70,.42)}.check-row{background:var(--sea-mist,#f0f8f6)}.barcode-preview{border-color:var(--sea-deep,#5d9a90);background:var(--sea-mist,#f0f8f6);color:var(--ink)}
.status-message{background:var(--sea-pale,#e3f1ed);color:var(--sea-ink,#2c554e)}.status-message.is-error,.form-error{background:#f8e7e5;color:#8f3541}
.payment-due strong,.payment-change strong{color:var(--ink)}

/* Keep desktop navigation available while long inventory pages scroll. */
@media(min-width:761px){.sidebar{position:sticky;top:0;height:100dvh;align-self:flex-start;overflow-y:auto;overscroll-behavior:contain}.sidebar-foot{padding-top:20px}}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.settings-grid h3{margin-top:0}.settings-grid .subtle{margin:10px 0}.settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}#receipt-settings-form .button{margin-top:16px}.settings-grid [hidden]{display:none}
@media(max-width:760px){.settings-grid{grid-template-columns:1fr}}
@media print{
  #receipt-modal .modal{width:var(--receipt-width,80mm);max-width:none;margin:0;padding:3mm;overflow:visible;color:#000;background:#fff;box-shadow:none;border-radius:0;font-family:Arial,sans-serif;line-height:1.3}
  #receipt-modal .modal-heading{display:none!important}
  #receipt-modal .receipt{margin:0;font-size:10pt}
  #receipt-modal .receipt-heading{margin:0 0 3mm}
  #receipt-modal .receipt-heading strong{font-size:15pt}
  #receipt-modal .receipt>div{gap:2mm;padding:2mm 0;border-color:#000;break-inside:avoid}
  #receipt-modal .receipt>div>span{overflow-wrap:anywhere;min-width:0}
  #receipt-modal .receipt>div>strong{flex-shrink:0}
  #receipt-modal .receipt .receipt-total{font-size:12pt}
  #receipt-modal .receipt p{margin:2mm 0}
  #receipt-modal .receipt-policy{font-size:9pt}
  #receipt-modal .receipt-social{margin:2mm 0 3mm;font-size:9pt}
  #receipt-modal .receipt small{margin-top:2mm;color:#000;font-size:8pt}
}
.label-preview{margin:16px auto;padding:14px;background:#fff;border:1px solid var(--line);border-radius:10px;max-width:310px;text-align:center;color:#000}.label-preview svg{display:block;width:100%;height:90px}.label-preview strong{font:15px monospace;letter-spacing:1px}
.label-print-root{display:none}
@media print{
  body.printing-labels>*:not(#label-print-root){display:none!important}
  body.printing-labels #label-print-root{display:block!important;margin:0;padding:0;color:#000;background:#fff;font-family:Arial,sans-serif}
  body.printing-labels #label-print-root .label{box-sizing:border-box;width:var(--label-width);height:var(--label-height);padding:.6mm 1.2mm;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15mm;overflow:hidden;break-after:page;page-break-after:always;text-align:center;color:#000;background:#fff}
  body.printing-labels #label-print-root .label:last-child{break-after:auto;page-break-after:auto}
  body.printing-labels #label-print-root .name{width:100%;font-size:7pt;font-weight:700;line-height:2.5mm;height:2.5mm;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.printing-labels #label-print-root .variant{width:100%;font-size:6pt;line-height:2.2mm;height:2.2mm;flex:none;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.printing-labels #label-print-root .barcode{width:100%;height:7.2mm;flex:none;margin:0}
  body.printing-labels #label-print-root .barcode svg{display:block;width:100%;height:100%}
  body.printing-labels #label-print-root .number{font:6pt/2.2mm monospace;letter-spacing:.2px;height:2.2mm;flex:none;white-space:nowrap}
  body.printing-labels #label-print-root .footer{display:flex;align-items:center;justify-content:space-between;gap:1mm;width:100%;height:2.4mm;flex:none;font-size:5.5pt;line-height:2.4mm;margin:0;overflow:hidden;white-space:nowrap}
  body.printing-labels #label-print-root .footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}
  body.printing-labels #label-print-root .footer strong{font-size:6.5pt;flex:none;white-space:nowrap}
}

/* Catalog management follows the existing boutique palette. */
.variant-entry{border:1px solid var(--line);border-radius:12px;padding:16px;margin:20px 0;background:var(--surface);min-width:0}
.variant-entry legend{font-weight:600;padding:0 8px}
.variant-entry .text-button{margin-top:12px;min-height:44px}
.full-field{grid-column:1 / -1}
.category-entry{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.category-entry small{display:block;color:var(--muted);margin-top:6px}
.category-entry>div:last-child{display:flex;gap:8px;flex-shrink:0}
#view-pos .filter-row>div{display:flex;flex-wrap:wrap;gap:6px}
#product-form>label{display:block;margin-top:18px}
#product-form>.check-row{display:flex}
#product-form input[type=file]{max-width:100%;margin-top:8px}
#view-inventory .welcome-row{flex-wrap:wrap;gap:12px}
.nav-count{margin-left:auto;font-size:11px;font-weight:700;background:var(--warm);color:var(--ink);border-radius:999px;padding:1px 7px}
.preparation-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:16px}.preparation-toolbar .search-box{max-width:370px}.preparation-toolbar label:not(.search-box){display:grid;gap:5px;font-size:12px;font-weight:600}.preparation-toolbar select{min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit}.preparation-toolbar p{margin-left:auto}.preparation-reasons{white-space:normal;min-width:220px;max-width:390px}.preparation-toolbar+ .table-panel td:last-child{white-space:normal;min-width:140px}.preparation-toolbar+ .table-panel .text-link{min-height:38px;cursor:pointer}@media(max-width:760px){.preparation-toolbar .search-box{max-width:none;flex-basis:100%}.preparation-toolbar p{margin-left:0}}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--sage);outline-offset:3px}
@media(max-width:600px){.category-entry{align-items:flex-start;flex-direction:column}.variant-entry{padding:12px}.form-grid.two-col{grid-template-columns:1fr}}
.catalog-details{margin-top:8px;max-width:260px;white-space:normal}.catalog-details summary{cursor:pointer;color:var(--sage);padding:6px 0}.catalog-details dt{font-weight:600;margin-top:8px}.catalog-details dd{margin:2px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.inventory-edit-photo{width:100px;height:120px;object-fit:contain;border-radius:8px}.inventory-history{padding:12px 0;overflow-wrap:anywhere}.inventory-history summary{cursor:pointer;font-weight:600}.inventory-history li{margin:10px 0}.modal-actions{flex-wrap:wrap}#stock-form input[type=file]{max-width:100%}#stock-form .variant-entry p{overflow-wrap:anywhere}
.cloud-access{position:fixed;inset:0;z-index:100;background:var(--paper);display:grid;place-items:center;padding:20px}.cloud-access[hidden]{display:none}.cloud-toolbar{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;padding:10px;background:var(--surface)}.cloud-toolbar button{min-height:44px}#cloud-orders{margin-bottom:20px}#cloud-orders:empty{display:none}
.product-classification{min-width:0;margin:4px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.product-classification legend{padding:0 6px;font-weight:600}.product-classification .text-button{min-height:44px;text-align:left}.product-classification>p{margin-bottom:0}.product-classification select:disabled{opacity:.6}
#inline-category{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.inline-category-actions{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap}
.inventory-toolbar.panel{display:block}.inventory-toolbar .search-box{width:100%}.inventory-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.inventory-filters label{display:grid;gap:7px;font-size:12px;font-weight:600}.inventory-filters select{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}.inventory-filters select:disabled{opacity:.6}.inventory-filter-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px}.inventory-filter-summary button{min-height:44px}
@media(max-width:760px){.inventory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-filters select{font-size:16px}.inventory-filter-summary{align-items:flex-start}}
@media(max-width:420px){.inventory-filters{grid-template-columns:1fr}.inventory-filter-summary button{flex-shrink:0}}
.owner-stock-card[hidden],.owner-stock-report[hidden]{display:none!important}
.owner-stock-card,.owner-stock-report{margin-bottom:18px;border:1px solid #e5d6ce;background:#fffaf7}
.owner-stock-card summary,.owner-stock-report summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.owner-stock-card summary::-webkit-details-marker,.owner-stock-report summary::-webkit-details-marker{display:none}
.owner-stock-card summary strong,.owner-stock-report summary strong{display:block;font-size:15px}
.owner-stock-card summary small,.owner-stock-report summary small{display:block;color:var(--muted);font-size:12px;font-weight:400}
.owner-stock-card[open] summary,.owner-stock-report[open] summary{padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.owner-stock-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.owner-stock-values>div{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff}
.owner-stock-values span,.owner-stock-values strong{display:block}
.owner-stock-values span{color:var(--muted);font-size:12px}
.owner-stock-values strong{font-size:21px;line-height:1.25;margin-top:4px}
.owner-stock-report .table-scroll{overflow:auto}.owner-stock-report table{min-width:720px}
.stock-change-positive{color:#2f7652}.stock-change-negative{color:#ad4d40}
@media(max-width:650px){.owner-stock-values{grid-template-columns:1fr}.owner-stock-values>div{padding:11px}}
.supplier-ledger{margin-top:18px}
.supplier-ledger>.panel-heading{align-items:start;gap:16px;flex-wrap:wrap}
.supplier-ledger>.panel-heading p{margin:0}
.supplier-ledger>label,.supplier-ledger form label{display:grid;gap:5px;font-size:12px;font-weight:600}
.supplier-ledger>label{max-width:380px}
.supplier-ledger input,.supplier-ledger select{width:100%;min-height:42px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.supplier-ledger-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0}
.supplier-ledger-totals p{margin:0;padding:13px;border:1px solid var(--line);border-radius:10px;color:var(--muted)}
.supplier-ledger-totals strong{display:block;color:var(--ink);font-size:21px}
.supplier-ledger-forms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.supplier-ledger-forms form{display:grid;align-content:start;gap:12px;padding:15px;border:1px solid var(--line);border-radius:10px}
.supplier-ledger-forms h4{margin:0;font-size:15px}
.supplier-ledger-forms button{margin-top:4px}
.supplier-ledger .table-scroll{overflow:auto}.supplier-ledger table{min-width:600px}
@media(max-width:900px){.supplier-ledger-forms{grid-template-columns:1fr}}
@media(max-width:650px){.supplier-ledger-totals{grid-template-columns:1fr}.supplier-ledger-totals p{padding:10px}.supplier-ledger-totals strong{font-size:18px}}

/* Checkout customer capture and paid purchase history. */
.checkout-customer { margin-bottom: 18px; }
.checkout-customer .check-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.checkout-customer .check-row input { width:auto; }
.checkout-customer [hidden] { display:none !important; }
.customer-record { padding:18px 0; border-bottom:1px solid var(--line, #ddd); overflow-wrap:anywhere; }
.customer-record .customer-card { border:0; padding:0 0 12px; }
.customer-stats { display:flex; gap:12px 24px; flex-wrap:wrap; margin-bottom:12px; font-size:13px; }
.customer-record summary { cursor:pointer; font-weight:600; }
.customer-purchase { padding:12px 0; font-size:13px; }
.customer-purchase ul { margin:6px 0; padding-left:20px; }
#cash-received-label[hidden] { display:none !important; }
@media(max-width:600px) { .customer-toolbar { flex-wrap:wrap; } .customer-toolbar .search-box { flex:1 1 100%; } }
.product-photo-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line,#ddd); flex-wrap:wrap; }
.product-photo-row img { width:72px; height:90px; object-fit:contain; background:#fff; border-radius:6px; }
.product-photo-row>span { flex:1; min-width:120px; overflow-wrap:anywhere; }
.product-photo-row small { display:block; }
.product-photo-row>div { display:flex; gap:6px; align-items:center; }
[data-photo-status] { overflow-wrap:anywhere; }

/* Keep the whole product visible inside each sale tile. */
.product-image{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%}.product-image img{display:block;width:100%;height:100%;object-fit:contain}

.sale-variant-options { display: grid; gap: 12px; }
.sale-variant-options > button { display: grid; gap: 5px; text-align: left; white-space: normal; }
.sale-variant-options small { overflow-wrap: anywhere; }

.inventory-photo{width:52px;height:64px;object-fit:contain;border-radius:6px;float:left;margin-right:10px}

#notifications-button{position:relative;display:inline-flex;align-items:center;justify-content:center}
#notification-count{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:12px;background:#ad3f33;color:white;font-size:10px;line-height:18px}
#notification-count[hidden]{display:none}.notification-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.notification-item{padding:16px 8px;border-bottom:1px solid #e5e2db}.notification-item.is-unread{border-left:3px solid #486b5d;padding-left:12px;background:#f3f7f4}.notification-item p{margin:6px 0;white-space:pre-wrap}.notification-actions{display:flex;gap:20px;margin-top:10px}#notifications-modal .modal{max-height:85vh;overflow-y:auto}

#notification-more[hidden]{display:none!important}
#delete-product{color:#8f3541;margin-right:auto;min-height:44px;font-weight:700}
#delete-product:hover,#delete-product:focus-visible{color:#702631;text-decoration:underline}
#delete-product-confirm{margin-top:16px;border:2px solid #8f3541}
#confirm-delete-product{background:#8f3541;color:#fff;border-color:#8f3541}
#confirm-delete-product:hover,#confirm-delete-product:focus-visible{background:#702631}

/* Item markdowns remain distinct from the optional checkout discount. */
.sale-manager { padding:24px; margin-bottom:20px; }
.sale-saving { display:block; color:#9d4334; font-size:12px; }
.product-price del, td del, .cart-line-total del { color:#716b65; font-size:12px; font-weight:400; }
.sale-current-price { color:#9d4334; }
.receipt del { font-size:11px; font-weight:400; }
#sale-items-preview { line-height:1.7; }
#sale-items-error:empty { display:none; }
.sale-manager .check-row { display:flex; align-items:center; gap:10px; margin:0; padding:12px 0; background:transparent; }
.sale-manager .check-row input { width:18px; height:18px; margin:0; flex:0 0 18px; }
#sale-items-rows .text-link { border:0; background:transparent; color:var(--ink); padding:6px 0; text-align:left; font-size:12px; font-weight:600; cursor:pointer; }
#sale-items-rows .text-link:hover { text-decoration:underline; }
#discount-error:empty { display:none; }

.notification-item p { white-space:pre-line; }

.receipt-lookup-form{display:flex;gap:10px;padding:16px;flex-wrap:wrap}.receipt-lookup-form .search-box{flex:1;min-width:220px}
.receipt .receipt-lookup{break-inside:avoid;display:block;text-align:center;margin:16px 0;padding:8px 0;background:#fff;color:#000}.receipt-lookup svg{display:block;width:100%;max-width:62mm;height:16mm;margin:0 auto 5px}.receipt-lookup strong,.receipt-lookup small{display:block}.customer-stats{flex-wrap:wrap}.customer-purchase .button{margin:8px 0}

.receipt-share{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.receipt-share label{display:grid;gap:7px;font-size:13px;font-weight:600}
.receipt-share input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d9b8aa;border-radius:8px;font:inherit}
.receipt-share summary{cursor:pointer;font-size:13px}
.receipt-share pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:12px;line-height:1.6;background:#faf5f1;padding:12px;border-radius:8px}
#receipt-whatsapp[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
@media print{.receipt-share{display:none!important}}
/* Cash setup and daily operations follow the existing POS form styles. */
#view-cash .report-card,#view-income .report-card{min-height:0;padding:24px;margin-bottom:20px}
#view-cash .table-panel,#view-income .table-panel{margin-bottom:20px}
#view-cash form,#income-form,#cash-rate-form{display:grid;gap:14px;max-width:720px;margin-top:18px}
#view-cash form label,#cash-rate-form label{display:grid;gap:6px;color:var(--ink);font-size:12px;font-weight:600}
#view-cash form input,#view-cash form select,#cash-rate-form input{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;outline-color:var(--coral)}
#view-cash form button,#income-form button,#cash-rate-form button{justify-self:start}
#view-cash .form-error:empty,#view-income .form-error:empty,#cash-rate-form .form-error:empty{display:none}
#cash-summary{display:block;font-size:24px;margin:8px 0}
#view-cash summary{cursor:pointer;min-height:44px;display:list-item;font-weight:600}
#view-cash ol{padding-left:24px}#view-cash li{margin:8px 0}
#cash-report-list .variant-entry{margin-top:16px}#cash-report-list p{line-height:1.8}
@media(max-width:600px){#view-cash .report-card,#view-income .report-card{padding:18px}#cash-summary{font-size:21px}}
