:root{color-scheme:light;--blue:#214c88;--blue-dark:#173b70;--yellow:#f4c361;--ink:#172638;--muted:#77818e;--line:#e3e6ea;--panel:#f8f9fa;--sidebar:280px}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:15px/1.55 "Segoe UI",Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #1c2735;outline-offset:3px}button svg,a svg{flex-shrink:0}h1,h2,p{margin-top:0}h1{font-size:29px;font-weight:600;line-height:1.3;margin-bottom:10px}h2{font-size:22px;font-weight:650;line-height:1.3;margin-bottom:20px}.muted,.hint{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;z-index:100;left:16px;top:-70px;background:white;padding:12px 18px;border-radius:8px}.skip-link:focus{top:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:none;border:0;color:inherit;border-radius:7px}.icon-button:hover{background:#00000008;text-decoration:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:9px;min-height:44px;padding:10px 18px;font-size:14px;font-weight:600;white-space:nowrap}.button:hover{background:var(--blue-dark);text-decoration:none}.button.secondary{background:#fff;border-color:var(--line);color:#303943;box-shadow:0 1px 3px #00000006}.button.secondary:hover{background:#f0f3f6}.button.dark{background:#262626;border-color:#262626}.button.dark:hover{background:#111}.button.small{min-height:36px;padding:6px 12px}.text-button{border:0;background:none;color:var(--blue);font-size:12px;padding:8px}.text-button:hover{text-decoration:underline}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:var(--sidebar);background:var(--blue);color:white;display:flex;flex-direction:column;padding:25px 18px 20px}.brand{font-size:29px;font-weight:700;color:#fff;letter-spacing:-.8px;padding:0 7px;margin-bottom:24px;display:block}.brand:hover{text-decoration:none}.sidebar-nav{overflow-y:auto;flex:1;padding-bottom:25px}.nav-heading{font-size:14px;font-weight:500;color:#b7c6da;margin:19px 13px 9px}.nav-link{display:flex;align-items:center;gap:15px;color:white;padding:10px 14px;margin:3px 0;border-radius:9px;font-weight:550;min-height:43px}.nav-link:hover{background:#ffffff12;text-decoration:none}.nav-link.active{background:white;color:#303030;box-shadow:0 1px 3px #0000000a}.sidebar-account{display:flex;align-items:center;gap:10px;margin-top:auto;padding:12px 4px 0;border-top:1px solid #ffffff1c}.avatar{width:39px;height:42px;border-radius:8px;display:grid;place-items:center;background:#e7e8eb;color:#343434;font-weight:500;font-size:16px}.account-name{min-width:0;flex:1}.account-name strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.account-name small{display:block;font-size:11px;color:#b6c7de}.logout-button{color:#c3cfe0}.mobile-menu,.sidebar-scrim{display:none}.workspace-main{margin-left:var(--sidebar);padding:32px 34px 26px;min-height:100vh}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 27px}.page-heading p{color:var(--muted);margin:0;font-size:16px}.date-label{font-size:13px;color:var(--muted);white-space:nowrap}.panel,.card{border:1px solid #eff0f2;background:var(--panel);border-radius:12px;box-shadow:0 1px 3px #0000000b}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.panel-title h2{font-size:21px;margin:0;letter-spacing:-.45px}.panel-title .icon-button{color:#51565b}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.summary-panel{padding:22px;min-height:446px;position:relative;display:flex;flex-direction:column}.donut-space{flex:1;min-height:254px;display:grid;place-items:center}.donut{width:174px;height:174px;border-radius:50%;background:conic-gradient(var(--blue) 0 var(--sold),var(--yellow) var(--sold) 100%);display:grid;place-items:center}.donut-empty{background:#e8ebef}.donut-center{background:var(--panel);width:133px;height:133px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-center strong{font-size:34px;font-weight:600}.donut-center span{font-size:12px;color:var(--muted)}.chart-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--muted);padding:10px 0 19px}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend b{font-weight:600;color:#3d4e60}.legend-dot{width:12px;height:12px;border-radius:50%;display:inline-block}.legend-dot.blue{background:var(--blue)}.legend-dot.yellow{background:var(--yellow)}.date-filter{border-top:1px solid var(--line);display:flex;gap:10px;padding-top:18px}.date-filter input{min-width:0;flex:1;padding:9px;font-size:13px}.date-filter .button{font-size:12px;padding:8px 11px}.chart-caption{font-size:11px;color:var(--muted);margin:11px 0 0}.bar-chart{height:280px;display:flex;align-items:stretch;gap:10px;margin-top:20px;flex:1;min-height:220px}.bar-column{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.bar-track{width:100%;height:100%;display:flex;align-items:flex-end;position:relative;border-bottom:1px solid #dfe3e8}.chart-bar{position:relative;max-width:38px;width:100%;margin:0 auto;background:var(--yellow);border-radius:11px 11px 0 0;transition:height .25s}.chart-bar.zero{min-height:2px;background:#dce1e7}.bar-label{font-size:10px;color:#77818f;padding-top:13px;white-space:nowrap}.bar-tooltip{opacity:0;pointer-events:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;color:#fff;background:var(--ink);padding:5px 8px;border-radius:5px;z-index:3}.chart-bar:hover .bar-tooltip,.chart-bar:focus .bar-tooltip{opacity:1}.chart-total{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);padding-top:21px;margin-top:12px;border-top:1px solid var(--line)}.chart-total strong{font-size:13px;color:var(--ink);text-align:right}.chart-empty{position:absolute;top:49%;left:20px;right:20px;text-align:center;font-size:12px;color:var(--muted)}.top-products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.top-products{padding:22px}.top-products h2{font-size:22px;margin-bottom:20px}.panel-note,.page-note{font-size:11px;color:var(--muted);margin:14px 0 0}.table-scroll,.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{background:var(--blue);color:white;font-size:11px;font-weight:650;text-transform:uppercase;padding:17px 16px;white-space:nowrap}td{padding:20px 16px;border-bottom:1px solid var(--line)}.nowrap{white-space:nowrap}.empty-cell{text-align:center;color:var(--muted);height:165px;font-size:12px}.empty-cell svg,.empty-cell span,.empty-cell strong{display:block;margin:8px auto}.empty-cell.large{height:310px}.empty-cell strong{font-weight:500;font-size:17px;color:#526071}.report-heading{padding:7px 0 28px;border-bottom:1px solid var(--line);margin-bottom:26px}.report-heading h1{font-weight:500}.sales-panel{overflow:hidden}.report-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:20px}.report-filters .filter-select{flex:1;min-width:160px}.report-filters input{max-width:160px}.report-filters select,.report-filters input{min-height:44px;font-size:13px}.report-filters .button{font-size:12px;padding:10px 13px}.date-separator{color:var(--muted);font-size:13px}.sales-table th{padding:19px 18px}.sales-table td{padding:25px 18px;font-size:14px}.transaction-number{font-weight:500}.row-number{color:var(--muted)}.status-pill{display:inline-block;font-size:12px;border-radius:99px;padding:4px 13px;white-space:nowrap}.status-pill.completed{background:#dceafe;color:#1c52ba}.status-pill.voided{background:#fee6e6;color:#a53a3a}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;color:var(--muted);font-size:12px;gap:15px}.pagination{display:flex;gap:18px;align-items:center;font-size:12px}.badge{background:#e2ebf7;color:var(--blue);border-radius:99px;display:inline-block;font-size:12px;padding:5px 12px}.card{padding:28px}.narrow{max-width:540px;margin:30px auto}.stack{display:grid;gap:22px}.eyebrow{font-size:11px;letter-spacing:1.3px;color:var(--muted)}label{display:block;margin-bottom:8px;font-size:15px;font-weight:500}input,select{width:100%;border:1px solid #d9dde3;border-radius:9px;background:#fff;color:var(--ink);padding:12px 14px;min-height:44px}input::placeholder{color:#9ba1a9}.notice,.errors{border-radius:9px;background:#eef4fb;color:#234a7a;padding:15px 18px;margin-bottom:20px;font-size:13px}.errors{background:#fff0eb;color:#943d28}.errors ul{margin-bottom:0}
.auth-page{background:#fff}.auth-main{min-height:100vh;padding:60px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center}.auth-main>.errors,.auth-main>.notice{width:min(100%,460px)}.login-panel{width:100%;max-width:460px;margin:0 auto 30px}.login-panel h1{text-align:center;font-size:28px;font-weight:500;margin-bottom:13px}.login-description{text-align:center;color:#7c828b;max-width:450px;margin:0 auto 28px;font-size:16px}.login-form{display:grid;gap:24px}.login-form label{font-size:16px;font-weight:500}.login-form input{height:48px;box-shadow:0 1px 2px #00000006}.password-input{position:relative}.password-input input{padding-right:105px}.password-toggle{position:absolute;right:9px;top:6px;bottom:6px;border:0;background:transparent;font-size:12px;color:#626e7a;padding:0 8px}.login-submit{width:100%;margin-top:4px;height:48px;font-size:16px;font-weight:500}.login-help{text-align:center;color:var(--muted);font-size:12px;margin:21px 0 0}
.pos-page{background:#f3f4f6}.pos-shell{display:grid;grid-template-columns:minmax(0,1fr) 35%;min-height:100vh}.catalog{min-width:0;display:flex;flex-direction:column}.pos-header,.order-header{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:20px}.pos-header h1,.order-header h2{margin:0;font-size:22px;font-weight:650}.back-link{display:flex;align-items:center;gap:12px;color:#505c6c;font-size:16px}.catalog-tools{background:#fff;border-bottom:1px solid var(--line);padding:12px 20px}.category-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}.category-tab{flex-shrink:0;background:#f2f3f5;color:#364254;border:0;padding:11px 19px;border-radius:99px;font-size:14px}.category-tab.active{background:var(--blue);color:white;font-weight:650}.catalog-search{margin:10px 0 0;position:relative;max-width:420px}.catalog-search svg{position:absolute;left:12px;top:11px;color:#8c95a1}.catalog-search input{font-size:12px;min-height:38px;padding:9px 13px 9px 39px;background:#fafbfc}.catalog-body{padding:20px;flex:1}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:16px;align-items:start}.product-card{padding:20px 16px;text-align:center;background:white;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 2px 4px #00000008;max-width:285px}.product-image{width:130px;height:130px;margin:0 auto 13px;border-radius:7px;background:#eff2f6;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8293ab;gap:9px}.product-image span{font-size:9px}.product-card h2{font-size:16px;margin-bottom:4px;font-weight:600}.product-price{color:#009875;font-weight:700;margin:3px 0;font-size:16px}.product-stock{color:#87909c;font-size:10px;margin:6px 0 13px}.product-card .button{font-size:13px;min-height:36px;padding:7px 16px}.order-panel{background:white;border-left:1px solid var(--line);height:100vh;position:sticky;top:0;display:flex;flex-direction:column;min-width:0}.order-header{flex-shrink:0;padding:0 20px}.order-body{flex:1;overflow-y:auto;min-height:170px;position:relative}#empty-cart{height:100%;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a1a8b1;font-size:14px;padding:20px;text-align:center}#empty-cart svg{color:#d1d6dd;margin-bottom:10px}.order-summary{padding:20px;border-top:1px solid var(--line);background:white}.order-summary>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px;color:#586574;font-size:15px}.order-summary strong{font-weight:500;color:var(--ink)}.order-summary small{font-size:11px}.order-total{border-top:1px solid #edf0f3;margin-top:11px;padding-top:13px;display:flex;justify-content:space-between;gap:15px;font-size:18px!important;color:var(--ink)!important;font-weight:700}.order-total strong{font-weight:700}.continue-button{width:100%;height:53px;margin-top:10px;font-size:17px}.continue-button:disabled{opacity:1;background:#8aa2c4;border-color:#8aa2c4}.order-note{font-size:10px;text-align:center;color:#8a929b;margin:10px 0 0}.cart-items{list-style:none;padding:0 20px;margin:0}.cart-item{border-bottom:1px solid var(--line);padding:17px 0}.cart-item-title,.cart-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.cart-item-title strong{font-size:14px}.remove-item{border:0;background:transparent;color:#929aa5;font-size:22px;padding:0 3px}.cart-item small{font-size:11px}.cart-item-bottom{margin-top:10px;font-size:13px}.quantity-control{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden}.quantity-control button{width:29px;height:30px;background:#f7f8fa;border:0;font-size:17px;color:var(--blue)}.quantity-control input{width:58px;border:0;border-radius:0;text-align:center;min-height:30px;height:30px;padding:3px;font-size:12px;-moz-appearance:textfield}.quantity-control input::-webkit-inner-spin-button{appearance:none}.cart-message{font-size:12px;color:#9a5b16;margin:0 0 10px}.cart-message:empty{display:none}.preview-banner{background:#fff5d9;color:#816327;padding:10px 20px;display:flex;justify-content:space-between;gap:10px;font-size:12px}.preview-banner a{text-decoration:underline}.empty-catalog{padding:80px 15px;text-align:center;max-width:440px;margin:auto;color:#86909e}.empty-catalog h2{font-size:21px;margin:17px 0 10px;color:#485568}.empty-catalog p{font-size:13px}.search-empty{padding:40px;color:var(--muted);text-align:center}dialog{border:1px solid var(--line);border-radius:14px;padding:25px;max-width:490px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 90px #17263826}dialog::backdrop{background:#142b4650}.dialog-title{display:flex;justify-content:space-between;gap:15px}.dialog-title h2{font-size:22px}#review-items{padding-left:20px;font-size:14px}#review-items li{margin-bottom:12px}dialog .notice{margin-top:20px}
@media(min-width:1700px){:root{--sidebar:305px}.workspace-main{padding:40px}.summary-panel{min-height:510px;padding:28px}.bar-chart{height:340px}.panel-title h2{font-size:25px}.bar-label{font-size:12px}.brand{font-size:32px}.nav-link{font-size:17px}.nav-heading{font-size:16px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.product-card{padding:23px}.product-image{width:150px;height:150px}}
@media(max-width:1150px){:root{--sidebar:225px}.sidebar{padding:23px 12px}.brand{font-size:25px}.workspace-main{padding:27px 22px}.summary-panel{padding:16px;min-height:415px}.panel-title h2{font-size:17px}.bar-chart{gap:6px}.date-filter{flex-wrap:wrap}.date-filter .button{flex:1}.date-filter input{flex-basis:100%}.chart-total{flex-direction:column;gap:3px}.chart-total strong{text-align:left}.donut-space{min-height:214px}.donut{width:148px;height:148px}.donut-center{width:114px;height:114px}.top-products{padding:17px}.top-products h2{font-size:19px}.pos-shell{grid-template-columns:minmax(0,1fr) 38%}.product-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.product-image{width:112px;height:112px}}
@media(max-width:900px){:root{--sidebar:245px}.sidebar{transform:translateX(-100%);transition:transform .2s}.workspace-main{margin-left:0;padding:75px 22px 25px}.mobile-menu{display:flex;position:fixed;top:16px;left:20px;z-index:35;background:#fff;box-shadow:0 1px 6px #0002}.menu-open .sidebar{transform:translateX(0)}.menu-open .mobile-menu{left:255px}.menu-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:25;background:#10253a50;border:0}.dashboard-grid{gap:12px}.pos-header{padding:0 15px}.pos-header h1{font-size:19px}.order-header h2{font-size:19px}.order-header,.order-summary{padding-left:15px;padding-right:15px}.product-grid{gap:12px}}
@media(max-width:650px){.workspace-main{padding:72px 16px 24px}.page-heading{align-items:flex-start}.page-heading h1{font-size:26px}.page-heading p{font-size:13px}.date-label{font-size:11px}.dashboard-grid,.top-products-grid{grid-template-columns:1fr}.summary-panel{min-height:380px;padding:22px}.panel-title h2{font-size:22px}.date-filter{flex-wrap:nowrap}.date-filter input{flex-basis:auto}.date-filter .button{flex:0}.bar-chart{height:215px}.donut-space{min-height:235px}.chart-total{flex-direction:row}.bar-label{font-size:12px}.report-filters{padding:15px;gap:10px}.report-filters>div{flex:1;min-width:130px}.report-filters input{max-width:none}.date-separator{display:none}.report-filters .button{flex:1}.sales-table td{font-size:12px;padding:18px 12px}.table-footer{align-items:flex-start;flex-direction:column}.auth-main{padding:40px 24px}.login-panel h1{font-size:26px}.login-description{font-size:14px}.pos-shell{display:block}.pos-header{height:60px}.catalog-body{min-height:300px;padding:14px}.catalog-tools{padding:12px 14px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card{padding:15px 9px;max-width:none}.product-card h2{font-size:14px}.product-price{font-size:14px}.product-image{width:105px;height:100px}.order-panel{position:relative;height:auto;min-height:460px;border-left:0;border-top:1px solid var(--line)}.order-body{max-height:380px}.order-header{height:62px}.order-note{font-size:11px}.preview-banner{font-size:11px;flex-wrap:wrap}.catalog-search{max-width:none}.narrow{padding:23px;margin-top:0}.page-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Forest & ivory: shared visual theme, October 2026. */
:root{--blue:#173f35;--blue-dark:#0e3028;--yellow:#c47856;--ink:#1d2925;--muted:#66756e;--line:#dfe5de;--panel:#fff}
body,.workspace-page,.pos-page{background:#f6f4ee}
.topbar{min-height:76px;background:#173f35;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 36px;position:relative;z-index:40}
.topbar .brand{display:flex;align-items:center;gap:12px;font-size:22px;letter-spacing:-.4px;margin:0;padding:0;white-space:nowrap}
.topnav{display:flex;gap:10px;align-items:center}
.topnav .nav-link{font-size:14px;padding:9px 22px;margin:0}
.topnav .nav-link.active{background:#e3ece5;color:#173f35;box-shadow:none}
.account-menu{position:relative}.account-menu summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;font-size:13px}.account-menu summary::-webkit-details-marker{display:none}
.topbar .avatar{width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#e3ece5;color:#173f35;font-size:12px;font-weight:700}
.account-dropdown{position:absolute;right:0;top:calc(100% + 18px);background:white;color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #173f3520;width:235px;padding:14px}
.account-dropdown>strong{display:block;padding:5px 8px 12px;overflow-wrap:anywhere;border-bottom:1px solid var(--line);margin-bottom:8px}
.account-dropdown a,.account-dropdown button{display:flex;align-items:center;gap:10px;background:none;border:0;color:var(--ink);padding:10px 8px;width:100%;font-size:14px;border-radius:6px;text-align:left}
.account-dropdown a:hover,.account-dropdown button:hover{background:#e3ece5;text-decoration:none}
.workspace-main{margin-left:0;max-width:1500px;margin-inline:auto;padding:32px 36px;min-height:calc(100vh - 76px)}
.page-heading{margin-bottom:26px}.page-heading h1{font-size:32px;font-weight:700;letter-spacing:-.8px;margin:5px 0}
.page-heading p{font-size:14px}.page-heading .eyebrow,.eyebrow{font-size:10px;letter-spacing:1.4px;margin:0 0 5px;color:#66756e}
.button{border-radius:8px}.panel,.card{background:#fff;border-color:var(--line);box-shadow:0 2px 5px #173f3503}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
.metric{background:white;border:1px solid var(--line);border-radius:10px;padding:23px 18px;display:flex;align-items:center;gap:15px;min-width:0}
.metric:first-child{background:#eff4ef}.metric-icon{background:#e3ece5;color:#173f35;border-radius:10px;width:52px;height:56px;display:grid;place-items:center;flex-shrink:0}
.metric p{font-size:12px;color:#526159;margin-bottom:5px}.metric strong{font-size:26px;line-height:1.3;letter-spacing:-.7px;overflow-wrap:anywhere}.metric small{font-size:17px;font-weight:600}
.metric-warning{background:#fbf2eb}.metric-warning .metric-icon{background:#f5e4d9;color:#a65b39}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:22px}
.trend-panel,.ranked-products{padding:24px}.panel-title h2{font-size:20px;letter-spacing:-.4px}.panel-title a{font-size:12px;text-decoration:underline;white-space:nowrap}
.chart-caption{font-size:12px;color:#66756e;margin-top:8px}
.sales-trend svg{display:block;width:100%;height:auto;margin-top:18px}
.trend-empty{text-align:center;color:var(--muted);font-size:13px}
.trend-data{font-size:12px;color:var(--muted)}.trend-data summary{cursor:pointer;padding:8px 0}
.trend-filter{display:flex;align-items:center;gap:12px;padding-top:16px;margin-top:8px;border-top:1px solid var(--line)}
.trend-filter label{font-size:12px;margin:0;white-space:nowrap}.trend-filter input{width:auto;min-width:0;flex:1;font-size:13px}.trend-filter .button{font-size:12px}
.rank-list{list-style:none;padding:0;margin:10px 0 0}.rank-list li{display:flex;align-items:center;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}
.rank-list li:last-child{border-bottom:0}.rank-number{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#f1f3ee;font-size:12px;flex-shrink:0}.rank-list li:first-child .rank-number{background:#c47856;color:white}
.rank-thumbnail{width:54px;height:54px;background:#e3ece5;border-radius:9px;display:grid;place-items:center;color:#527264;flex-shrink:0}
.rank-list strong{font-size:14px}.rank-list small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.rank-list .rank-empty{min-height:230px;justify-content:center;flex-direction:column;text-align:center;color:var(--muted);font-size:13px}
.top-products h2{font-size:19px}th{background:#e3ece5;color:#173f35}td{background:white}
.status-pill.completed{background:#e3ece5;color:#173f35}.badge{background:#e3ece5}.notice{background:#eaf2ec;color:#173f35}
.auth-page{background:#f6f4ee}.login-panel{background:white;border:1px solid var(--line);border-radius:16px;padding:36px;max-width:490px}.login-submit.button.dark{background:#173f35;border-color:#173f35}
.pos-shell{min-height:calc(100vh - 76px);grid-template-columns:minmax(0,1fr) 36%}
.pos-header{height:auto;min-height:90px;padding:22px 28px 12px;background:transparent;border:0}.pos-header h1{font-size:27px;letter-spacing:-.6px}.catalog-hint{font-size:12px;color:var(--muted)}
.catalog-tools{padding:8px 28px 18px;background:transparent;display:flex;flex-direction:column-reverse;gap:15px;border:0}.catalog-search{max-width:none;margin:0}.catalog-search input{background:white;min-height:44px}.catalog-search svg{top:13px}
.category-tabs{gap:8px}.category-tab{border-radius:10px;background:transparent;border:1px solid #d9dfd8;font-size:12px;padding:8px 17px}.category-tab.active{background:#173f35;border-color:#173f35}
.catalog-body{padding:0 28px 28px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.product-card{position:relative;text-align:left;max-width:none;padding:8px 8px 12px;border-radius:10px;border-color:var(--line);box-shadow:0 2px 4px #173f3505}
.product-image{width:100%;height:130px;margin:0 0 11px;background:#e3ece5;color:#5c7969;border-radius:6px}.product-image span{font-size:10px;color:#536b5e}.product-image svg{width:40px;height:40px}
.product-card:nth-child(3n+2) .product-image{background:#ede9df;color:#8b7960}.product-card:nth-child(3n) .product-image{background:#f4e7de;color:#9d7158}
.product-card h2{font-size:14px;padding:0 4px;line-height:1.4}.product-price{color:#173f35;font-size:14px;padding:0 4px;margin-top:4px;padding-right:42px}
.product-stock{color:#65736b;margin:3px 0 0;padding:0 4px 0;font-size:11px;padding-right:42px}
.product-card .add-product{position:absolute;right:10px;bottom:13px;width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;font-size:25px;line-height:1;font-weight:400}
.order-panel{height:calc(100vh - 76px);top:0}.order-header{height:82px;padding:0 24px}.order-header h2{font-size:24px;letter-spacing:-.5px}.order-summary{padding:24px}.continue-button{font-size:16px}.continue-button:disabled{background:#819b8d;border-color:#819b8d}.order-note{color:#66756e;font-size:11px}.cart-items{padding:0 24px}.cart-item{padding:22px 0}.quantity-control button{background:#f1f4ef}.cart-item-bottom{margin-top:14px}.preview-banner{background:#f4e7de;color:#76492f;border-radius:8px;margin:0 28px 8px}
@media(min-width:1700px){.product-image{height:180px}.product-card{padding:10px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.topbar{padding:14px 24px;gap:15px}.topnav .nav-link{padding:9px 15px}.workspace-main{padding:26px 24px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-shell{grid-template-columns:minmax(0,1fr) 40%}.catalog-hint{display:none}.overview-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}}
@media(max-width:700px){.topbar{padding:13px 16px;gap:12px;flex-wrap:wrap}.topbar .brand{font-size:19px;flex:1}.account-menu{order:1}.account-menu summary>span:nth-child(2){display:none}.topnav{order:2;width:100%;justify-content:center;gap:8px}.topnav .nav-link{justify-content:center;flex:1;font-size:13px;padding:8px 12px;min-height:40px}.workspace-main{padding:24px 16px}.page-heading{gap:12px;flex-wrap:wrap}.page-heading h1{font-size:27px}.page-heading .button{font-size:12px;min-height:40px}.page-heading .eyebrow{font-size:9px}.metric-grid{gap:10px}.metric{padding:16px 12px;gap:9px;align-items:flex-start;flex-direction:column}.metric-icon{width:36px;height:36px;border-radius:7px}.metric-icon svg{width:22px;height:22px}.metric strong{font-size:22px}.metric small{font-size:14px}.metric p{font-size:11px}.overview-grid{grid-template-columns:1fr;gap:16px}.trend-panel,.ranked-products{padding:18px}.trend-filter{flex-wrap:wrap}.trend-filter label{width:100%}.panel-title h2{font-size:19px}.pos-shell{display:block}.pos-header{padding:22px 16px 10px;min-height:75px}.catalog-tools{padding:8px 16px 14px}.catalog-body{padding:0 16px 20px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-image{height:120px;width:100%}.order-panel{position:relative;height:auto;min-height:450px}.order-header{height:70px}.order-header,.order-summary{padding-left:20px;padding-right:20px}.preview-banner{margin:0 16px 8px}.login-panel{padding:27px 22px}.top-products-grid{grid-template-columns:1fr}.account-dropdown{right:0}.sales-trend{overflow:hidden}}
/* Buyer and order notes. */
textarea{font:inherit;width:100%;min-width:0;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--ink);background:white}
textarea:focus-visible{outline:2px solid #173f35;outline-offset:3px}
.buyer-fields{padding:18px 24px;border-bottom:1px solid var(--line)}
.buyer-fields label{font-size:13px;margin:0 0 6px}.buyer-fields input{margin-bottom:14px;font-size:14px}
.buyer-fields textarea,.item-note{font-size:13px}.buyer-fields .hint{font-size:11px;margin:7px 0 0}
.cart-item .item-note-label{font-size:12px;color:var(--muted);margin:14px 0 6px}
.separate-item{text-align:left;padding-left:0;white-space:normal}
.review-notes,.review-line{white-space:pre-wrap;overflow-wrap:anywhere}
#order-dialog{max-height:90vh;overflow:auto}
.order-body #empty-cart{height:auto;min-height:150px}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.admin-grid .stack{gap:12px}.admin-grid label{font-size:13px}.admin-grid h3{font-size:17px}.business-row{padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:18px}.business-row p{margin-bottom:7px;font-size:14px}.section-gap{margin-top:24px}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px;flex-wrap:wrap}.outlet-selector{display:flex;align-items:center;gap:15px;margin-bottom:22px}.outlet-selector label{margin:0}.outlet-selector select{max-width:360px}.stocktake-table{min-width:730px}.stocktake-table input{min-width:130px}.stocktake-table textarea{min-width:210px}.stocktake-table td{vertical-align:top}.check-row{display:flex;align-items:center;gap:10px}.check-row input{width:18px;min-height:18px}.admin-grid fieldset{border:1px solid var(--line);border-radius:8px}.topnav{flex-wrap:wrap}.topnav .nav-link{padding:9px 14px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}
@media(max-width:800px){.admin-grid{grid-template-columns:1fr}.outlet-selector{flex-wrap:wrap}.topbar{flex-wrap:wrap}.topnav{order:3;flex-basis:100%;justify-content:center}.topnav .nav-link{flex:initial}.card{padding:20px}.stocktake-table td{padding:14px 8px}}
.table-wrap{position:relative;max-width:100%;min-width:0}.admin-grid>*,.panel{min-width:0}/* Opening: item counts and a separate shift information panel. */
.opening-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);align-items:start;gap:24px}
.opening-items,.opening-info,.opening-actions{padding:28px;background:#f8faf7;border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 9px #173f3506}
.opening-card-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.opening-card-title h2,.opening-info h2{margin:0;font-size:23px}.opening-items>.hint{margin:10px 0 16px}
.opening-column-head,.opening-item-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,1fr);gap:20px}.opening-column-head{color:var(--muted);font-size:12px;margin-bottom:10px}
.opening-item{padding:0 0 10px;margin-bottom:10px;border-bottom:1px solid var(--line)}.opening-item:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.opening-item-name{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:9px;padding:10px 12px;min-height:44px;overflow-wrap:anywhere}.opening-item-name svg{flex-shrink:0;color:#46705d}.opening-item-name small{color:var(--muted)}
.opening-item input:not([type=hidden]){min-height:44px;padding:10px 12px;margin:0;width:100%}.opening-item-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px 14px;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.4}.opening-note{font-size:13px;margin-top:10px}.opening-note summary{cursor:pointer;color:#315d49;padding:5px 0}.opening-note textarea{margin-top:6px}
.opening-sidebar{display:grid;gap:22px;position:sticky;top:22px}.opening-info label{display:block;margin:25px 0 9px}.opening-info input{width:100%;min-height:54px}.opening-shift-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:24px;font-size:13px;color:var(--muted)}
.opening-actions{display:grid;gap:12px}.opening-actions .button{width:100%;min-height:50px;justify-content:center}.opening-actions .hint{font-size:12px;margin:0;line-height:1.6}
@media(max-width:900px){.opening-grid{grid-template-columns:1fr}.opening-sidebar{position:static;grid-template-columns:1fr 1fr;align-items:start}}
@media(max-width:600px){.opening-items,.opening-info,.opening-actions{padding:20px}.opening-sidebar{grid-template-columns:1fr}.opening-item-fields{grid-template-columns:minmax(0,1.3fr) minmax(90px,1fr);gap:10px}.opening-column-head{grid-template-columns:minmax(0,1.3fr) minmax(90px,1fr);gap:10px}.opening-item-name{padding:12px 10px;font-size:14px}.opening-item-name svg{display:none}.opening-card-title h2,.opening-info h2{font-size:20px}}
.catalog-category-row,.catalog-component{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0}.catalog-category-row label,.catalog-component label{flex:1;min-width:140px}.catalog-category-row input,.catalog-component input,.catalog-component select{width:100%}.catalog-photo{width:100%;max-width:320px;height:220px;object-fit:cover;border-radius:12px}.catalog-group{border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0;min-width:0}.catalog-group legend{font-weight:700}.catalog-group>.button,.catalog-option>.button{margin:6px}.catalog-option{background:#f5f7f3;border:1px solid var(--line);padding:16px;border-radius:10px;margin:12px 0}.product-image img{width:100%;height:100%;object-fit:cover;border-radius:6px}#product-dialog{max-height:90dvh;overflow:auto;width:min(540px,95vw);border:1px solid var(--line);border-radius:16px;padding:24px}#product-dialog::backdrop{background:#102e2566}#product-dialog input[type=number]{width:100%}#product-dialog .check-row{padding:10px 0}#product-dialog form>.button{width:100%;margin-top:16px}.stack{display:flex;flex-direction:column;gap:12px}.stack input,.stack select{width:100%}@media(max-width:600px){.catalog-component{align-items:stretch}.catalog-component label{min-width:100%;}.catalog-category-row{padding-bottom:16px;border-bottom:1px solid var(--line)}}

/* Review pesanan: desktop dua kolom, ponsel satu kolom. */
#order-dialog{width:min(1080px,calc(100% - 32px));max-width:1080px;box-sizing:border-box;padding:24px;border-radius:18px}
#order-dialog .dialog-title{padding:0 0 20px;margin:0}
.review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.review-column{display:grid;gap:18px;min-width:0}
.review-card{border:1px solid var(--line);border-radius:12px;padding:20px;min-width:0;background:#fff}
.review-card h3{margin:0 0 16px;font-size:18px}
#review-items{padding:0;margin:0;list-style:none}
#review-items .review-line{padding:12px 0;border-bottom:1px solid var(--line);white-space:normal}
.review-item-heading,.review-totals>div{display:flex;justify-content:space-between;gap:16px}
.review-item-heading strong:first-child{overflow-wrap:anywhere}
.review-item-heading strong:last-child{white-space:nowrap}
.review-addon{font-size:13px;color:var(--green,#173f35);margin:5px 0}
.review-totals{margin:16px 0 0}.review-totals>div{margin:10px 0}.review-totals dd{margin:0;font-weight:600}
.review-fields label{display:block;margin:16px 0 7px}
.review-fields input:not([type=file]),.review-fields select,.review-fields textarea{width:100%;box-sizing:border-box}
.cash-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
.cash-shortcuts .button{padding:10px 2px;min-width:0;min-height:44px;font-size:12px;white-space:nowrap}
.change-panel{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#e3ece5;border-radius:10px;color:#173f35}
.change-panel strong{min-width:0;font-size:20px;text-align:right;overflow-wrap:anywhere}
.change-panel.short-payment{background:#fff1e7;color:#8b3c20}
.proof-actions{display:flex;flex-wrap:wrap;gap:8px}
#proof-preview img{display:block;max-width:100%;max-height:220px;object-fit:contain;margin-top:12px;border-radius:8px}
#proof-name{overflow-wrap:anywhere;font-size:13px}#proof-error{color:#a32c2c}
#order-dialog [hidden]{display:none!important}
.review-footer{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}
.review-footer .button{width:100%;min-height:48px}
#order-dialog .notice{margin:20px 0 0}
@media(max-width:700px){
 #order-dialog{width:calc(100% - 16px);max-height:94dvh;padding:16px;border-radius:12px}
 .review-grid{grid-template-columns:1fr;gap:16px}.review-card{padding:16px}
 #order-dialog .dialog-title h2{font-size:21px}.review-footer{gap:10px}
}
.pos-header .catalog-hint{display:flex;align-items:center;gap:8px}
.pos-header .catalog-hint select{min-width:150px;max-width:220px}
@media(max-width:700px){
 .pos-header{height:auto;flex-wrap:wrap;padding-bottom:14px}
 .pos-header .catalog-hint{width:100%}
 .pos-header .catalog-hint select{flex:1;max-width:none}
}
.opening-grid-stacked{grid-template-columns:1fr;gap:14px}
.opening-grid-stacked .opening-sidebar{position:static;order:-1;grid-template-columns:1fr;gap:12px}
.opening-grid-stacked .opening-info{padding:18px 20px}
.opening-grid-stacked .opening-info h2{margin-bottom:12px}
.opening-actions-bottom{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 16px}
.opening-actions-bottom .button{width:auto;min-height:40px}
.opening-general-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.opening-general-fields label{margin:0 0 6px;font-size:12px}
.opening-general-fields input{min-height:40px;padding:8px 10px}
.opening-general-fields .opening-shift-meta{align-self:end;margin:0;min-height:40px}
.opening-general-fields .hint{display:block;font-size:11px;margin:4px 0 0}
.opening-general-notes{grid-column:1/-1}
.cashier-counts{padding:18px 20px}
.cashier-counts .opening-card-title{margin-bottom:5px}
.cashier-counts .hint{font-size:12px;margin:2px 0 10px}
.cashier-count-table th{padding:9px 12px}
.cashier-count-table td{padding:5px 10px}
.cashier-count-table input{min-height:36px;padding:6px 9px;font-size:13px}
.cashier-count-table td:first-child{font-size:13px}
.stocktake-table{min-width:660px}
.stocktake-table th{padding:10px 12px}
.stocktake-table td{padding:8px 10px;vertical-align:middle}
.stocktake-table input,.stocktake-table textarea{min-height:36px;padding:6px 8px;font-size:13px}
@media(max-width:700px){.opening-general-fields{grid-template-columns:1fr 1fr}.opening-general-fields>div:nth-child(3){grid-column:1/-1}.opening-grid-stacked .opening-info{padding:15px}.cashier-count-table.is-closing{min-width:520px}.opening-actions-bottom{display:grid;grid-template-columns:1fr 1fr}.opening-actions-bottom .button{width:100%;white-space:normal}}
.shift-info-card{margin:14px 0;padding:18px 20px}
.workspace-main>form>.shift-info-card{order:-1}
.shift-finance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.shift-finance-grid>div:not(.shift-notes-field):not(.shift-photo-field){min-width:0;padding:10px 12px;background:#f7f8f6;border:1px solid #e9ece8;border-radius:8px}
.shift-finance-grid>div>span{display:block;color:var(--muted);font-size:12px;margin-bottom:3px}
.shift-finance-grid>div>strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.shift-finance-grid label{font-size:12px;margin-bottom:5px}
.shift-finance-grid input{min-height:38px;padding:7px 9px}
.shift-photo-field,.shift-notes-field{grid-column:span 3}
.shift-notes-field textarea{min-height:62px}
.closing-photo-block h2{font-size:16px;margin:0 0 8px}
.closing-photo-block .hint{font-size:11px;margin:5px 0}
.closing-photo-block input[type=file]{max-width:100%;font-size:12px}
.expense-panel{margin:14px 0;padding:18px 20px}
.expense-panel .opening-card-title{margin-bottom:12px}
.expense-panel .opening-card-title h2{font-size:18px;margin:0}
.expense-panel .opening-card-title p{margin:3px 0 0;font-size:12px}
.expense-list{display:grid;gap:9px}
.expense-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,.7fr) minmax(150px,1fr) 36px;gap:9px;align-items:end;padding:10px;background:#f8f9f7;border:1px solid #e8ebe7;border-radius:9px}
.expense-row label{font-size:11px;margin:0}
.expense-row input{min-height:38px;width:100%;padding:7px 9px;font-size:13px}
.expense-remove{width:36px;height:38px;color:#7a5144;font-size:21px}
.cashier-counts .opening-card-title h2{font-size:18px}
@media(max-width:700px){
 .shift-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .shift-photo-field,.shift-notes-field{grid-column:1/-1}
 .shift-info-card,.expense-panel{padding:14px}
 .expense-row{grid-template-columns:1fr 1fr;gap:8px;padding:9px}
 .expense-row label:first-child,.expense-row label:nth-child(3){grid-column:1/-1}
 .expense-remove{grid-column:2;grid-row:1;justify-self:end}
 .table-wrap:has(.stocktake-table),.table-wrap:has(.cashier-count-table){overflow:visible}
 .stocktake-table,.cashier-count-table{display:block;min-width:0;width:100%}
 .stocktake-table thead,.cashier-count-table thead{display:none}
 .stocktake-table tbody,.cashier-count-table tbody{display:grid;gap:8px}
 .stocktake-table tbody tr,.cashier-count-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:9px;background:#fff;border:1px solid #e5e9e5;border-radius:9px}
 .stocktake-table td,.cashier-count-table td{display:block;min-width:0;padding:5px 7px;border:0;font-size:12px;overflow-wrap:anywhere}
 .stocktake-table td::before,.cashier-count-table td::before{content:attr(data-label);display:block;margin-bottom:3px;color:#738078;font-size:10px;font-weight:600}
 .stocktake-table td:first-child,.cashier-count-table td:first-child{grid-column:1/-1;font-weight:600;font-size:13px}
 .stocktake-table input,.stocktake-table textarea,.cashier-count-table input{width:100%;min-width:0;min-height:36px;padding:6px 8px;font-size:13px}
 .stocktake-table td:last-child,.cashier-count-table.is-closing td:last-child{grid-column:1/-1}
 .cashier-count-table.is-opening td:nth-child(2){grid-column:1/-1}
}
/* Opening/closing stocktake: reference-like, compact and phone-first layout. */
.stocktake-workflow{width:min(100%,1080px);margin:0 auto;padding:14px 18px 28px;color:#1f302a}
.stocktake-workflow .page-heading{margin:0 0 14px;align-items:center}
.stocktake-workflow .page-heading h1{margin:0;font-size:25px}
.stocktake-workflow .page-heading p{margin:4px 0 0;color:#687a72}
.stocktake-workflow .eyebrow{font-size:11px;letter-spacing:.08em;color:#687a72}
.stocktake-workflow .panel{background:#f7f9f7;border:1px solid #dfe7e1;border-radius:14px;box-shadow:0 3px 12px #213c2b0a}
.opening-grid-stacked,.closing-form{display:flex;flex-direction:column;gap:14px}
.opening-info-reference,.reference-info-card{order:0;margin:0;padding:20px 22px}
.opening-info-reference h2,.reference-info-card>h2{font-size:20px;margin:0 0 14px;color:#1f302a}
.opening-general-fields{display:flex;flex-direction:column;gap:11px}
.opening-general-fields>div,.closing-info-field{min-width:0}
.opening-general-fields label,.closing-info-field>label{display:block;margin:0 0 5px;font-size:13px;font-weight:600;color:#293a33}
.opening-general-fields input,.opening-general-fields textarea,.closing-info-field input,.closing-info-field textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid #d8e0dc;border-radius:8px;background:#fff;color:#26342e;font-size:14px}
.opening-general-fields input[readonly]{background:#edf2ee;color:#46574f}
.opening-general-fields textarea,.closing-info-field textarea{min-height:74px;resize:vertical}
.opening-general-fields .opening-shift-meta{display:flex;justify-content:space-between;align-items:center;min-height:0;padding-top:3px;color:#6b7c74}
.opening-general-fields .opening-photo-field input[type=file]{padding:8px;background:#fff}
.opening-photo{max-width:min(100%,360px);height:auto;border-radius:8px;margin-top:8px}
.opening-items-reference,.cashier-counts,.closing-items-card{order:1;margin:0;padding:18px 20px}
.opening-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.opening-card-title h2{font-size:19px;margin:0;color:#1f302a}
.opening-card-title .hint{margin:4px 0 0;font-size:12px}
.opening-count-table,.closing-count-table,.cashier-count-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
.opening-count-table th,.closing-count-table th,.cashier-count-table th{text-align:left;background:#e7efea;color:#30473c;font-size:12px;font-weight:700;padding:9px 10px}
.opening-count-table td,.closing-count-table td,.cashier-count-table td{padding:7px 10px;border-bottom:1px solid #e2e9e4;vertical-align:middle;font-size:13px}
.opening-count-table tbody tr:last-child td,.closing-count-table tbody tr:last-child td,.cashier-count-table tbody tr:last-child td{border-bottom:0}
.opening-count-table th:first-child{width:35%}.opening-count-table th:nth-child(2){width:30%}.opening-count-table th:nth-child(3),.opening-count-table th:nth-child(4){width:17.5%}
.closing-count-table th:first-child{width:21%}.closing-count-table th:nth-child(2),.closing-count-table th:nth-child(3){width:13%}.closing-count-table th:nth-child(4){width:19%}.closing-count-table th:nth-child(5){width:14%}.closing-count-table th:nth-child(6){width:20%}
.opening-count-table td:first-child,.closing-count-table td:first-child{font-weight:600}
.opening-count-table td small,.closing-count-table td small,.cashier-count-table td small{color:#718078;font-size:11px}
.opening-count-table input,.closing-count-table input,.cashier-count-table input{width:100%;min-width:0;min-height:38px;padding:7px 10px;border:1px solid #d5ded9;border-radius:8px;background:#fff;font-size:14px}
.opening-count-table input:focus,.closing-count-table input:focus,.cashier-count-table input:focus{outline:2px solid #b9d5c6;border-color:#527c66}
.opening-count-table td[data-difference],.closing-count-table td[data-difference]{font-weight:600;color:#567464}
.opening-count-table td>input[type=hidden]{display:none}
.cashier-opening-card .cashier-count-table.is-opening tbody tr{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(120px,.9fr);align-items:center;gap:10px;padding:7px 2px;border-bottom:1px solid #e2e9e4}
.cashier-opening-card .cashier-count-table.is-opening td{padding:0;border:0}
.cashier-opening-card .cashier-count-table.is-opening td:first-child{font-size:14px;font-weight:600}
.cashier-opening-card .cashier-count-table.is-opening td::before{display:none}
.cashier-opening-card .cashier-count-table.is-opening input{min-height:39px}
.closing-info-fields{display:grid;grid-template-columns:1fr;gap:0}
.closing-info-field{min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 2px;border-bottom:1px solid #e2e9e4}
.closing-info-field>span,.closing-info-field>strong{font-size:14px}
.closing-info-field>span{color:#56685f}.closing-info-field>strong{font-weight:650;text-align:right}
.closing-info-field.closing-counted-cash{display:block;padding:10px 0}
.closing-info-field.closing-counted-cash input{margin-top:3px}
.closing-info-field:last-child{border-bottom:0}
.closing-expenses{margin-top:14px;padding:14px;background:#fff;border:1px solid #e0e7e2;border-radius:10px}
.closing-expenses .opening-card-title{margin-bottom:10px}
.closing-expenses .opening-card-title h2{font-size:16px}
.closing-expenses .opening-card-title p{font-size:12px;margin:3px 0 0}
.expense-list{gap:8px}
.expense-row{grid-template-columns:minmax(130px,1fr) minmax(120px,.75fr) minmax(140px,1fr) 36px;padding:8px;background:#f7f9f7}
.closing-photo-notes{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.closing-photo-notes .shift-photo-field,.closing-photo-notes .shift-notes-field{grid-column:auto;padding:12px;background:#fff;border:1px solid #e0e7e2;border-radius:10px}
.closing-photo-notes .closing-photo-block h2{font-size:14px}
.closing-photo-notes .shift-notes-field textarea{width:100%;min-height:72px}
.reference-info-card .opening-shift-meta{display:flex;justify-content:space-between;align-items:center;margin-top:14px;color:#6b7c74}
.closing-items-card .table-wrap{overflow-x:auto}
.stocktake-workflow .form-actions{margin:0;padding:0 2px;justify-content:flex-start}
.stocktake-workflow .form-actions .button{min-width:150px}
@media(max-width:700px){
 .stocktake-workflow{padding:10px 10px 22px}
 .stocktake-workflow .page-heading{margin-bottom:10px}
 .stocktake-workflow .page-heading h1{font-size:21px}
 .opening-info-reference,.reference-info-card,.opening-items-reference,.cashier-counts,.closing-items-card{padding:14px;border-radius:11px}
 .opening-info-reference h2,.reference-info-card>h2{font-size:18px;margin-bottom:10px}
 .opening-general-fields{gap:9px}
 .opening-general-fields label,.closing-info-field>label{font-size:12px}
 .opening-general-fields input,.opening-general-fields textarea,.closing-info-field input,.closing-info-field textarea{min-height:38px;font-size:13px}
 .opening-count-table thead,.closing-count-table thead,.cashier-count-table thead{display:none}
 .opening-count-table,.closing-count-table,.cashier-count-table{display:block}
 .opening-count-table tbody,.closing-count-table tbody{display:grid;gap:7px}
 .opening-count-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,.72fr);align-items:center;gap:6px 10px;padding:8px 9px;border:1px solid #e1e8e3;border-radius:9px;background:#fff}
 .opening-count-table td{padding:0;border:0}
 .opening-count-table td:first-child{font-size:13px}
 .opening-count-table td::before{display:none}
 .opening-count-table td:nth-child(2){grid-column:2;grid-row:1}
 .opening-count-table td:nth-child(3),.opening-count-table td:nth-child(4){grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;padding-top:4px;font-size:11px;color:#687a72}
 .opening-count-table td:nth-child(3)::before,.opening-count-table td:nth-child(4)::before{display:inline;margin:0;color:#687a72;font-size:11px;font-weight:400}
 .opening-count-table td:nth-child(2) input{min-height:36px;padding:6px 8px;font-size:13px}
 .cashier-opening-card .cashier-count-table.is-opening tbody tr{grid-template-columns:minmax(0,1fr) minmax(105px,.72fr);gap:8px;padding:7px 1px}
 .cashier-opening-card .cashier-count-table.is-opening td:first-child{font-size:13px}
 .cashier-opening-card .cashier-count-table.is-opening input{min-height:36px;font-size:13px}
 .closing-count-table tbody tr,.cashier-count-table.is-closing tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;padding:9px;background:#fff;border:1px solid #e1e8e3;border-radius:9px}
 .closing-count-table td,.cashier-count-table.is-closing td{display:block;min-width:0;padding:3px 4px;border:0;font-size:12px;overflow-wrap:anywhere}
 .closing-count-table td::before,.cashier-count-table.is-closing td::before{content:attr(data-label);display:block;margin-bottom:3px;color:#718078;font-size:10px;font-weight:600}
 .closing-count-table td:first-child,.cashier-count-table.is-closing td:first-child{grid-column:1/-1;font-size:13px;font-weight:650}
 .closing-count-table td:last-child,.cashier-count-table.is-closing td:last-child{grid-column:1/-1}
 .closing-count-table input,.cashier-count-table.is-closing input{min-height:36px;padding:6px 8px;font-size:13px}
 .closing-info-field{min-height:43px;padding:8px 1px}
 .closing-info-field>span,.closing-info-field>strong{font-size:13px}
 .closing-expenses{padding:10px;margin-top:11px}
 .expense-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;padding:8px}
 .expense-row label:first-child,.expense-row label:nth-child(3){grid-column:1/-1}
 .expense-remove{grid-column:2;grid-row:1;justify-self:end;width:30px;height:32px}
 .expense-row label{font-size:11px}
 .expense-row input{min-height:36px;font-size:13px}
 .closing-photo-notes{gap:9px;margin-top:10px}
 .closing-photo-notes .shift-photo-field,.closing-photo-notes .shift-notes-field{padding:10px}
 .opening-actions-bottom{display:flex;flex-direction:column;align-items:stretch;padding:0;background:transparent;border:0;box-shadow:none}
 .opening-actions-bottom .button,.stocktake-workflow .form-actions .button{width:100%;min-height:44px}
 .stocktake-workflow .form-actions{display:grid;grid-template-columns:1fr;gap:8px}
}
/* Popup tambah item dan kartu keranjang. */
#product-dialog{width:min(440px,calc(100% - 24px));box-sizing:border-box;padding:26px;max-height:90dvh}
#product-dialog .dialog-title{align-items:center}
#product-dialog .dialog-title h2{margin:0;font-size:23px}
#product-dialog .product-pick-description{color:var(--muted);margin:10px 0 24px;overflow-wrap:anywhere}
#product-dialog label{display:block;margin-bottom:9px}
#product-dialog .quantity-stepper{display:flex;border:1px solid #cdd5d2;border-radius:10px;overflow:hidden;margin-bottom:22px}
#product-dialog .quantity-stepper button{flex:0 0 48px;border:0;background:#f1f4f2;color:#173f35;font-size:25px;min-height:46px}
#product-dialog .quantity-stepper input{min-width:0;flex:1;width:0;border:0;border-inline:1px solid #cdd5d2;border-radius:0;text-align:center;appearance:textfield;box-shadow:none}
#product-dialog .quantity-stepper input::-webkit-inner-spin-button,#product-dialog .quantity-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
#product-dialog .quantity-stepper input:focus-visible{outline:2px solid #173f35;outline-offset:-3px}
#product-addons h3{font-size:16px;margin:0 0 8px}
#product-dialog .catalog-group{padding:12px;margin:14px 0}
#product-dialog .check-row{display:flex;padding:9px 0;margin:0;font-size:14px}
#product-dialog .check-row input{flex:0 0 18px;accent-color:#173f35}
#product-dialog textarea{width:100%;box-sizing:border-box}
.product-pick-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.product-pick-actions .button{min-height:44px;min-width:90px}
#product-dialog [hidden]{display:none!important}
#cart-items{padding:16px;margin:0;display:grid;gap:12px}
#cart-items .compact-cart-item{display:flex;align-items:flex-start;gap:10px;background:#f6f8f7;border:0;border-radius:10px;padding:12px}
.cart-product-edit{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:0;color:inherit;font:inherit;cursor:pointer;border-radius:6px}
.cart-thumbnail{flex:0 0 48px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#e3ece5;color:#173f35;border-radius:7px;overflow:hidden;font-weight:700}
.cart-thumbnail img{width:100%;height:100%;object-fit:cover}
.cart-product-info{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere;font-size:14px}
.cart-quantity,.cart-options{font-size:12px;color:var(--muted)}
.cart-product-info .review-notes{font-size:12px}
.cart-item-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.cart-line-price{color:#167258;font-size:14px;white-space:nowrap}
.cart-item-side .remove-item{width:32px;height:32px;padding:0;font-size:21px}
.cart-product-edit:focus-visible{outline:2px solid #173f35;outline-offset:4px}
@media(max-width:480px){#product-dialog{padding:20px}.cart-thumbnail{flex-basis:42px;width:42px;height:42px}.cart-product-edit{gap:8px}.cart-line-price{font-size:13px}}
/* Navigasi samping dan opening ringkas */
.navigation-toggle{order:-1;border:1px solid #ffffff55;background:transparent;color:white;border-radius:8px;min-height:44px;padding:8px 12px}
#navigation-sidebar{position:fixed;inset:0 auto 0 0;margin:0;width:min(290px,85vw);max-width:none;height:100dvh;max-height:100dvh;box-sizing:border-box;border:0;border-radius:0;padding:24px 18px;background:#173f35;color:white;overflow-y:auto}
#navigation-sidebar::backdrop{background:#102e2580}
.navigation-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;font-size:20px}
.navigation-heading button{background:transparent;border:0;color:white;width:44px;height:44px;font-size:28px}
.sidebar-links{display:flex;flex-direction:column;gap:6px}
.sidebar-links .nav-link{width:100%;box-sizing:border-box}
.topbar>.brand{margin-right:auto}
.opening-column-head,.opening-item-fields{grid-template-columns:minmax(140px,1.6fr) minmax(85px,1fr) minmax(70px,.7fr) minmax(80px,.8fr);gap:12px;align-items:center}
.opening-system,.opening-difference{font-size:13px;overflow-wrap:anywhere;color:var(--muted)}
.opening-photo{display:block;max-width:100%;max-height:180px;object-fit:contain;border-radius:9px;margin-top:12px}
@media(max-width:600px){
 .opening-items{overflow-x:auto}
 .opening-column-head,.opening-item-fields{grid-template-columns:minmax(125px,1.5fr) 90px 75px 90px;gap:8px;min-width:404px}
 .opening-column-head{font-size:11px}
 .opening-system,.opening-difference{font-size:12px}
 .topbar .navigation-toggle{font-size:12px;padding:8px}
}
.request-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:2px 7px;border-radius:20px;background:#f2c879;color:#173f35;font-size:12px;margin-left:auto}
.stock-request-alert{margin:16px 0;border-left:4px solid #c47856}
.return-policy-items{font-size:13px}.return-policy-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:5px;margin-top:8px}.return-policy-list label{display:flex;align-items:center;gap:6px;font-size:13px;margin:0}.return-policy-list input{width:16px;min-height:16px;height:16px;margin:0}
.stock-request-form{display:grid;gap:12px;max-width:600px}
.stock-request-form input,.stock-request-form select,.stock-request-form textarea{width:100%}
.request-review-actions{display:flex;flex-wrap:wrap;gap:8px}
.opname-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* Shared visual system: clear hierarchy, calm surfaces, and compact controls. */
:root{--forest:#173f35;--forest-strong:#12362e;--sage:#e3ece5;--ivory:#f7f6f1;--ink:#202b27;--muted:#6d7974;--line:#e4e8e4;--panel:#fff}
html{font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--ivory)}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;color:var(--ink);background:var(--ivory);-webkit-font-smoothing:antialiased}
h1{font-size:clamp(25px,2.1vw,32px);font-weight:650;letter-spacing:-.7px;line-height:1.2;margin-bottom:8px}
h2{font-size:20px;font-weight:650;letter-spacing:-.35px;line-height:1.3;margin-bottom:16px}
p{line-height:1.55}
.topbar{min-height:68px;background:var(--forest);padding:10px clamp(16px,3vw,40px);gap:18px}
.topbar .brand{font-size:21px;font-weight:650;letter-spacing:-.35px}
.navigation-toggle{display:grid;place-items:center;width:42px;height:42px;min-height:42px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;cursor:pointer}
.navigation-toggle:hover{color:#d9eee5}
.navigation-toggle:focus-visible,.account-menu summary:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:4px}
.account-menu summary{min-height:42px;font-size:14px}
.account-chevron{flex:none;opacity:.78;transition:transform .18s ease,opacity .18s ease}
.account-menu[open] .account-chevron{transform:rotate(180deg);opacity:1}
#navigation-sidebar{background:var(--forest);padding:22px 16px}
.navigation-heading{font-size:18px;margin-bottom:18px}
.sidebar-links{gap:4px}
.nav-link{min-height:42px;padding:9px 12px;border-radius:8px;font-size:14px;font-weight:550}
.nav-link.active{color:var(--forest);background:#f4f5f0;box-shadow:none}
.nav-link:hover:not(.active){background:#ffffff16}
.workspace-main{max-width:1540px;padding:clamp(20px,3vw,38px) clamp(16px,3.2vw,46px);min-height:calc(100vh - 68px)}
.page-heading{margin-bottom:22px;gap:14px}
.page-heading p{font-size:14px}
.page-heading .eyebrow{font-size:11px;letter-spacing:.08em;font-weight:650;color:#61736a}
.panel,.card{background:#fff;border:1px solid #e7e9e5;border-radius:12px;box-shadow:0 2px 6px #1a34200a}
.metric{background:#fff;border-color:#e5e8e4;border-radius:11px;box-shadow:0 2px 6px #1a34200a}
.metric:first-child{background:#f0f5f1}
.metric-warning{background:#fbf4ee}
.metric-icon{background:var(--sage);color:var(--forest)}
.metric strong{font-size:26px;letter-spacing:-.5px}
.overview-grid{gap:16px}
.trend-panel,.ranked-products,.top-products{background:#fff;border-color:#e7e9e5;border-radius:12px;padding:20px}
.panel-title h2,.top-products h2{font-size:19px;letter-spacing:-.3px}
.chart-caption,.page-note{font-size:12px}
.rank-list li{padding:10px 0}
.report-heading{padding:0 0 20px;margin-bottom:22px}
.report-filters{border:1px solid #e7e9e5;border-radius:12px;background:#fff;padding:16px;gap:10px}
input,select,textarea{border:1px solid #d9dfda;border-radius:8px;background:#fff;color:var(--ink);min-height:42px;padding:9px 11px;font-size:14px}
textarea{min-height:88px}
input::placeholder,textarea::placeholder{color:#929b96}
input:focus,select:focus,textarea:focus{border-color:#628879;box-shadow:0 0 0 3px #173f3514}
.button{background:var(--forest);border-color:var(--forest);border-radius:8px;min-height:42px;padding:9px 15px;font-size:14px}
.button:hover{background:var(--forest-strong);border-color:var(--forest-strong)}
.button.secondary{background:#fff;border-color:#dfe4df;color:#34423b;box-shadow:none}
.button.secondary:hover{background:#f4f6f3}
table{font-size:13px}
th{background:var(--forest);color:#fff;font-size:11px;letter-spacing:.025em;padding:13px 14px}
td{padding:14px;border-bottom-color:#eceeeb}
.status-pill{border-radius:99px;padding:5px 11px;font-size:12px;font-weight:550}
.notice,.errors{border-radius:9px;padding:12px 15px;font-size:13px}
.auth-page{background:var(--ivory)}
.login-panel{border-color:#e7e9e5;border-radius:14px;box-shadow:0 4px 16px #1a34200d}
.pos-page{background:var(--ivory)}
.pos-header,.order-header{background:#fff}
.catalog-body{background:#f3f4f1}
.order-panel,.product-card{background:#fff;border-color:#e6e9e6}
.order-summary{border-top-color:#e7e9e5;background:#fff}
.workspace-main>form,.workspace-main>.panel,.workspace-main>.admin-grid>.panel{margin-bottom:16px}
.workspace-main>.notice{margin-bottom:14px}
.trend-filter select{min-width:150px;max-width:190px;flex:1}
.sales-trend{position:relative}
.trend-point{cursor:pointer}
.trend-point:hover .trend-point-dot,.trend-point:focus-visible .trend-point-dot{stroke:#c47856;stroke-width:4}
.trend-tooltip{position:absolute;z-index:4;min-width:220px;max-width:calc(100% - 16px);padding:0;background:#fff;border:1px solid #e1e5e1;border-radius:9px;box-shadow:0 6px 18px #12282026;pointer-events:none;color:#26332d;font-size:13px;overflow:hidden}
.trend-tooltip[hidden]{display:none}
.trend-tooltip-date{display:block;background:#f2f4f2;padding:10px 13px;color:#5b6860}
.trend-tooltip-row{display:flex;align-items:center;gap:8px;padding:12px 13px;white-space:nowrap}
.trend-tooltip-dot{width:10px;height:10px;flex:none;border-radius:50%;background:#c47856}
.trend-tooltip-label{flex:1}
.trend-tooltip-value{font-weight:700}
@media(max-width:700px){
 .topbar{min-height:60px;padding:9px 14px;gap:10px}
 .topbar .brand{font-size:18px}
 .workspace-main{padding:20px 14px 24px;min-height:calc(100vh - 60px)}
 .page-heading{align-items:center;margin-bottom:18px}
 .page-heading h1{font-size:25px}
 .page-heading p{font-size:13px}
 .panel,.card{border-radius:10px}
 .report-filters{padding:12px}
 th{padding:11px 10px}
 td{padding:12px 10px}
 .metric strong{font-size:22px}
 .trend-filter select{max-width:none;flex:1 1 140px}
 .trend-filter input{flex:1 1 140px}
}

/* Navigasi tetap di desktop, tetap menjadi drawer di layar kecil. */
@media(min-width:1024px){
 #navigation-sidebar{display:block;position:fixed;inset:0 auto 0 0;width:250px;height:100dvh;max-height:100dvh;z-index:30;box-shadow:2px 0 10px #102e2512}
 #navigation-sidebar .navigation-heading button,.topbar .navigation-toggle{display:none}
 .topbar,.workspace-main,.pos-main{margin-left:250px}
 .workspace-main{max-width:none}
}
.rank-thumbnail,.top-product-thumb{overflow:hidden;position:relative}
.rank-thumbnail img,.top-product-thumb img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.top-product-name{display:flex;align-items:center;gap:9px;min-width:0}
.top-product-thumb{width:38px;height:38px;flex:none;border-radius:7px;background:#e3ece5;color:#527264;display:grid;place-items:center}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,180px));gap:12px}
.product-card{padding:7px 7px 11px}
.product-image{height:104px;margin-bottom:8px}
.product-price{color:#a34b2e;font-weight:750}
.workspace-main h2,.pos-main h2{font-size:18px}
.workspace-main h3,.pos-main h3{font-size:16px}
dialog:not(#navigation-sidebar) h2{font-size:18px}
dialog:not(#navigation-sidebar) h3{font-size:16px}
.product-card h2{font-size:14px}
.order-header{height:66px}
.order-header h2{font-size:18px;letter-spacing:-.2px}
#checkout-status:empty{display:none}
@media(max-width:700px){
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .product-image{height:100px}
 .order-header h2{font-size:17px}
}

/* Sidebar menjadi satu-satunya navigasi dan tempat akun. */
.navigation-toggle{position:fixed;top:12px;left:14px;z-index:35;color:var(--forest)}
.navigation-toggle:hover{color:var(--forest-strong)}
.navigation-toggle:focus-visible{outline-color:var(--forest)}
#navigation-sidebar[open]{display:flex;flex-direction:column;overflow:hidden}
#navigation-sidebar .navigation-heading{flex:none;margin-bottom:12px}
#navigation-sidebar .navigation-heading .brand{font-size:20px;font-weight:700;letter-spacing:-.4px;color:#fff;margin:0;padding:0}
#navigation-sidebar .sidebar-links{flex:1;min-height:0;overflow-y:auto;padding-bottom:12px}
.sidebar-account-menu{flex:none;margin-top:auto;border-top:1px solid #ffffff32;padding-top:12px}
.sidebar-account-menu summary{display:flex;align-items:center;gap:10px;padding:6px 2px;color:#fff;min-width:0}
.sidebar-account-menu .avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#e3ece5;color:var(--forest);font-size:12px;font-weight:700}
.sidebar-account-menu .account-identity{display:block;min-width:0;flex:1}
.sidebar-account-menu .account-identity strong,.sidebar-account-menu .account-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-account-menu .account-identity strong{font-size:13px}
.sidebar-account-menu .account-identity small{font-size:11px;color:#bfd5c8;margin-top:2px}
.sidebar-account-menu .account-dropdown{position:absolute;top:auto;bottom:calc(100% + 7px);left:0;right:0;width:100%;box-sizing:border-box;padding:8px;max-height:min(50dvh,270px);overflow:auto}
@media(min-width:1024px){
 #navigation-sidebar{display:flex}
 .navigation-toggle{display:none}
 .workspace-main{min-height:100dvh}
 .pos-shell{min-height:100dvh}
 .order-panel{height:100dvh}
}
@media(max-width:1023px){
 .workspace-main{margin-left:0;padding-top:67px;min-height:100dvh}
 .pos-main{margin-left:0;padding-top:52px}
 .sidebar-account-menu summary>span:nth-child(2){display:block}
}

/* Kartu menu dan ringkasan keranjang lebih hemat ruang. */
.product-grid{grid-template-columns:repeat(auto-fill,minmax(120px,142px));gap:10px}
.product-card{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;padding:6px 6px 10px}
.product-image{width:100%;height:82px;margin-bottom:7px}
.product-image svg{width:30px;height:30px}
.product-image span{font-size:9px}
.product-card h2{font-size:12px;line-height:1.3;padding:0 2px;margin:0;min-height:31px}
.product-price{color:#136b75;font-size:13px;font-weight:750;padding:0;margin:4px 0 2px;text-align:center}
.product-card .add-product{position:static;display:grid;place-items:center;width:31px;height:31px;min-height:31px;margin:5px auto 0;padding:0;font-size:21px}
.pos-header h1,.order-header h2{font-size:18px;letter-spacing:-.2px}
.order-summary{padding:11px 16px 13px}
.order-summary>div{font-size:13px;margin-bottom:3px;line-height:1.25}
.order-summary .order-total{font-size:16px!important;margin:6px 0 0;padding-top:7px}
.continue-button{height:44px;min-height:44px;margin-top:8px;font-size:14px}
@media(max-width:700px){
 .product-grid{grid-template-columns:repeat(2,minmax(0,142px));justify-content:start}
 .product-image{height:80px}
 .pos-header h1,.order-header h2{font-size:17px}
 .order-summary{padding:10px 15px 12px}
}

/* POS, ringkasan, dan daftar opname: perbaikan kepadatan tampilan. */
.metric>div{min-width:0;overflow-x:auto}
.metric strong{display:block;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;font-size:clamp(19px,1.5vw,26px)}
.pos-header{gap:12px;flex-wrap:wrap}
.pos-header .catalog-hint{display:flex;align-items:center;gap:8px;min-width:0;margin-left:auto;font-size:13px}
.pos-header .catalog-hint label{white-space:nowrap;font-weight:600}
.pos-header .catalog-hint select{width:clamp(170px,20vw,245px);min-width:0;max-width:100%;min-height:42px;padding:8px 32px 8px 12px;font-size:13px}
.add-product-label{display:none}
.add-product-icon{display:inline}
@media(min-width:1024px){
 .product-card .add-product{display:flex;width:auto;min-width:92px;height:31px;min-height:31px;padding:5px 12px;font-size:12px;line-height:1}
 .add-product-icon{display:none}
 .add-product-label{display:inline}
}
@media(max-width:1023px){
 .workspace-page::before,.pos-page::before{content:"";position:fixed;top:0;left:0;right:0;height:56px;background:#fff;border-bottom:1px solid #e5e8e4;z-index:31}
 .pos-header .catalog-hint{display:flex}
}
@media(max-width:700px){
 .pos-header{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:12px 16px 10px;min-height:0}
 .pos-header .catalog-hint{width:100%;margin:0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px}
 .pos-header .catalog-hint select{width:100%;max-width:none;min-height:39px}
}
.opname-index-heading{margin-bottom:16px;align-items:center}
.opname-index-heading h1{margin:0}
.opname-request-link{min-height:38px;padding:7px 12px;font-size:13px;white-space:nowrap}
.opname-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.opname-toolbar .outlet-selector{display:flex;align-items:center;gap:10px;margin:0;min-width:0}
.opname-toolbar .outlet-selector label{white-space:nowrap;font-weight:600}
.opname-toolbar .outlet-selector select{min-width:0;width:clamp(180px,24vw,310px);max-width:100%;min-height:42px}
.opname-toolbar .button{min-height:42px;padding:8px 15px;white-space:nowrap}
.opname-history-table{min-width:610px}
.opname-history-table td,.opname-history-table th{white-space:nowrap}
.opname-history-photo{display:block;width:72px;height:52px;object-fit:cover;border-radius:6px;background:#edf2ee}
.opname-pagination{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-top:14px;font-size:13px}
.opname-pagination a{color:var(--forest);font-weight:650}
.opname-pagination [aria-disabled=true]{opacity:.45}
@media(max-width:700px){
 .opname-index-heading{gap:8px}
 .opname-index-heading h1{font-size:24px}
 .opname-toolbar{align-items:stretch}
 .opname-toolbar .outlet-selector{width:100%}
 .opname-toolbar .outlet-selector select{width:100%;flex:1}
 .opname-toolbar>form:not(.outlet-selector),.opname-toolbar>.button{width:100%}
 .opname-toolbar>form:not(.outlet-selector) .button{width:100%}
 .opname-pagination{justify-content:space-between;gap:6px;font-size:11px}
}

/* Penjualan: tabel desktop, ringkasan terbuka, dan empat kolom di ponsel. */
.sales-panel{overflow:visible}
.sales-table-viewport{overflow-x:auto}
.sales-table{min-width:840px}
.sales-table th,.sales-table td{padding:13px 12px}
.sales-table .sale-row td{height:66px}
.sales-table .sale-primary-actions{white-space:nowrap;width:90px}
.sale-primary-controls{display:flex;align-items:center;gap:13px}
.sale-primary-actions form{margin:0}
.sale-info{width:21px;height:21px;min-height:21px;padding:0;border:0;border-radius:50%;background:#26312e;color:#fff;font-size:14px;font-family:Georgia,serif;font-weight:700;cursor:pointer}
.sale-info[aria-expanded=true]{background:var(--forest)}
.sale-check{display:grid;place-items:center;width:17px;height:17px;min-height:17px;padding:0;border:1px solid #cbd4d0;border-radius:4px;background:#fff;color:#fff;font-size:11px;cursor:pointer}
.sale-check.is-checked{background:#16aa77;border-color:#16aa77;cursor:pointer}
.sale-total{white-space:nowrap;font-variant-numeric:tabular-nums}
.sale-date-mobile{display:none}
.status-pill.in-progress{background:#dceafe;color:#2558a3}
.status-pill.completed{background:#d6f2e9;color:#077151}
.sale-action-cell{width:42px;text-align:right}
.sale-actions{position:relative;display:inline-block;text-align:left}
.sale-actions>summary{list-style:none;display:grid;place-items:center;width:31px;height:31px;min-height:31px;border-radius:7px;font-size:25px;line-height:1;color:#26312e;cursor:pointer}
.sale-actions>summary::-webkit-details-marker{display:none}
.sale-actions[open]>summary,.sale-actions>summary:hover{background:#edf2ef}
.sale-actions-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:20;width:max-content;min-width:205px;padding:6px;border:1px solid #e1e7e3;border-radius:9px;background:#fff;box-shadow:0 10px 28px #1b2b2530}
.sale-actions-menu a,.sale-actions-menu button{display:block;width:100%;min-height:37px;padding:8px 11px;border:0;border-radius:5px;background:transparent;color:#23312b;text-align:left;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.sale-actions-menu a:hover,.sale-actions-menu button:hover{background:#edf2ef;text-decoration:none}
.sale-expansion[hidden]{display:none!important}
.sale-expansion>td{padding:0 14px 17px!important;background:#f8faf9}
.sale-expanded-content{padding:12px 14px 14px;border-top:1px solid #e5ebe7}
.sale-expanded-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.sale-summary-table-wrap{overflow-x:auto}
.sale-summary-table{width:100%;min-width:480px;max-width:760px;background:#fff}
.sale-summary-table th{background:#e8f0ec;color:#213d32;font-size:11px;padding:8px 10px}
.sale-summary-table td{padding:9px 10px!important;font-size:12px!important;vertical-align:top}
.sale-summary-note{font-size:12px;margin:10px 0}
.sale-proof-link{margin-top:10px;min-height:36px;padding:7px 15px;font-size:12px}
.sale-mobile-actions{display:none}

/* Halaman detail mengikuti dua kolom pada referensi. */
.sale-detail-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr);gap:22px;align-items:start}
.sale-detail-main,.sale-detail-side{display:grid;gap:20px;min-width:0}
.sale-detail-card{padding:24px 26px;background:#f8f9fb;min-width:0}
.sale-detail-card h2{font-size:20px;margin:0 0 20px}
.sale-detail-items{min-width:640px}
.sale-detail-items th{padding:11px 12px}
.sale-detail-items td{padding:14px 12px;vertical-align:top}
.sale-note-box{min-height:95px;padding:14px;border:1px solid #dfe4e2;border-radius:8px;background:#fff;white-space:pre-wrap}
.sale-detail-heading-actions{display:flex;gap:8px}
.sale-detail-totals{margin:0}
.sale-detail-totals div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px}
.sale-detail-totals dt,.sale-detail-totals dd{margin:0}
.sale-detail-totals dd{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.sale-detail-totals .sale-detail-total{border-top:1px solid #dfe4e2;padding-top:14px;font-weight:700}
.sale-detail-side .button{margin-top:8px}
.sale-buyer-card p{margin:7px 0;font-size:13px}
.rawbt-print-link[hidden],.browser-print-button[hidden]{display:none!important}
.sale-receipt{display:none}
@media(max-width:900px){.sale-detail-grid{grid-template-columns:minmax(0,1fr)}.sale-detail-side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .sales-panel{margin:0 -5px}
 .report-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .report-filters .filter-select,.report-filters>div{grid-column:1/-1;min-width:0}
 .report-filters input{max-width:none}
 .report-filters .date-separator{display:none}
 .report-filters .button{width:100%;justify-content:center}
 .sale-expansion>td{display:table-cell!important}
 .sale-expanded-content{padding:9px 5px}
 .sale-mobile-actions{display:block;margin-top:10px}
 .sale-detail-card{padding:18px}
 .sale-detail-side{grid-template-columns:1fr}
 .sale-detail-heading-actions{flex-wrap:wrap}
}
@media print{
 @page{margin:3mm}
 body{background:#fff!important;color:#000!important}
 #navigation-sidebar,.navigation-toggle,.workspace-page::before,.workspace-main> :not(.sale-receipt){display:none!important}
 .workspace-main{width:48mm!important;max-width:48mm!important;margin:0!important;padding:0!important;min-height:0!important}
 .sale-receipt{display:block!important;width:48mm;font:10px/1.35 'Courier New',monospace;color:#000;overflow-wrap:anywhere}
 .receipt-logo{text-align:center;margin-bottom:6px}
 .receipt-logo img{max-width:38mm;max-height:22mm;object-fit:contain;margin:0 auto;display:block}
 .receipt-store{font-size:12px;font-weight:700;text-align:center;margin-bottom:5px}
 .receipt-store-detail{text-align:center;overflow-wrap:anywhere}
 .receipt-void{text-align:center;font-weight:700;margin:5px 0}
 .receipt-rule{border-top:1px dashed #555;margin:6px 0}
 .receipt-meta{display:grid;grid-template-columns:55px minmax(0,1fr);gap:3px;margin:2px 0}
 .receipt-columns{display:grid;grid-template-columns:minmax(0,1fr) 23px 41px 43px;gap:2px;align-items:start}
 .receipt-columns span:nth-child(n+2){text-align:right;white-space:nowrap}
 .receipt-item-name{font-weight:700;margin-top:5px}
 .receipt-item-values{margin:2px 0 1px}
 .receipt-extra{padding-left:8px;margin:2px 0}
 .receipt-total-row{display:flex;justify-content:space-between;gap:5px;margin:2px 0}
 .receipt-total-row span:last-child{white-space:nowrap;text-align:right}
 .receipt-grand-total{font-size:11px;font-weight:700;margin-top:4px}
 .receipt-footer{text-align:center;font-weight:700;margin:8px 0 3px}
}
.outlet-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.outlet-entry .button{white-space:nowrap}
@media(max-width:560px){.outlet-entry{align-items:flex-start;flex-direction:column;padding:10px 0}.outlet-entry .button{margin-bottom:8px}}

/* Tombol menu berbentuk persegi panjang pada tablet dan PC. */
@media(min-width:601px){
 .product-card .add-product{display:flex;align-items:center;justify-content:center;width:auto;min-width:92px;height:33px;min-height:33px;margin-top:6px;padding:5px 12px;border-radius:8px;font-size:12px;line-height:1}
 .product-card .add-product .add-product-icon{display:none}
 .product-card .add-product .add-product-label{display:inline}
 .pos-header .catalog-hint{display:flex;width:auto;max-width:280px;flex:0 1 280px;margin-left:auto}
 .pos-header .catalog-hint select{flex:1;width:100%;max-width:none}
}

/* Keranjang tetap terlihat saat katalog digulir; daftar item bergulir sendiri. */
@media(min-width:701px){
 .pos-shell{align-items:start}
 .order-panel{position:sticky;top:0;align-self:start;height:100dvh;max-height:100dvh}
 .order-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .order-header,.order-summary{flex-shrink:0}
}
@media(max-width:700px){
 .order-panel{height:auto;min-height:0}
 .order-body{height:auto;max-height:none;min-height:0;overflow:visible}
}
.order-summary>div:not(.order-total):first-of-type{margin-bottom:8px}
.checkout-success-dialog{max-width:390px;text-align:center}
.checkout-success-dialog h2{margin:0 0 8px;font-size:20px}
.checkout-success-dialog p{margin:0 0 22px;color:var(--muted)}
.checkout-success-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.checkout-success-actions .button{justify-content:center}
.checkout-success-print{background:#177f57;border-color:#177f57;color:#fff}
.checkout-success-print:hover{background:#126746;border-color:#126746;color:#fff;text-decoration:none}

/* Tabel ponsel tetap satu baris per transaksi dan dapat digeser mendatar. */
.sale-info{width:18px;height:18px;min-height:18px;font-size:12px}
.sale-check{width:15px;height:15px;min-height:15px;font-size:10px}
@media(max-width:700px){
 .table-scroll,.table-wrap,.sales-table-viewport,.sale-summary-table-wrap,.trend-data{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
 .table-scroll table,.table-wrap table,.sales-table-viewport table,.sale-summary-table-wrap table,.trend-data table{width:max-content;min-width:100%;table-layout:auto}
 .table-scroll th,.table-scroll td,.table-wrap th,.table-wrap td,.sales-table-viewport th,.sales-table-viewport td,.sale-summary-table-wrap th,.sale-summary-table-wrap td,.trend-data th,.trend-data td{white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .sales-table-viewport{overflow-x:auto}
 .sales-table{width:max-content;min-width:840px;table-layout:auto}
 .sales-table th,.sales-table td{padding:10px 12px!important;font-size:12px!important;white-space:nowrap;overflow-wrap:normal}
 .sales-table th:nth-child(n),.sales-table .sale-secondary-col{display:table-cell;width:auto}
 .sale-date-mobile{display:none}
 .sale-date-desktop{display:inline}
 .sale-total{white-space:nowrap}
 .sale-primary-controls{gap:7px}
 .sale-info{width:15px;height:15px;min-height:15px;font-size:10px}
 .sale-check{width:13px;height:13px;min-height:13px;font-size:9px}
 .sale-expansion>td{padding:0 12px 12px!important}
 .sale-summary-table{width:max-content;min-width:480px;max-width:none}
 .sale-summary-table td{white-space:nowrap;overflow-wrap:normal}
 .table-wrap:has(.stocktake-table),.table-wrap:has(.cashier-count-table){overflow-x:auto}
 .stocktake-table,.opening-count-table,.closing-count-table,.cashier-count-table{display:table!important;width:max-content;min-width:100%;table-layout:auto}
 .stocktake-table thead,.opening-count-table thead,.closing-count-table thead,.cashier-count-table thead{display:table-header-group}
 .stocktake-table tbody,.opening-count-table tbody,.closing-count-table tbody,.cashier-count-table tbody{display:table-row-group}
 .stocktake-table tr,.opening-count-table tr,.closing-count-table tr,.cashier-count-table tr,.cashier-opening-card .cashier-count-table.is-opening tbody tr{display:table-row!important}
 .stocktake-table td,.opening-count-table td,.closing-count-table td,.cashier-count-table td,.cashier-opening-card .cashier-count-table.is-opening td{display:table-cell!important;white-space:nowrap;overflow-wrap:normal;padding:8px 10px;border-bottom:1px solid #e2e9e4;font-size:12px}
 .stocktake-table td::before,.opening-count-table td::before,.closing-count-table td::before,.cashier-count-table td::before{display:none!important}
 .stocktake-table input,.stocktake-table textarea,.opening-count-table input,.closing-count-table input,.cashier-count-table input{min-width:110px}
}

.sales-summary{margin-top:16px;padding:24px}
.sales-summary h2{margin:0 0 22px;font-size:22px;line-height:1.3}
.sales-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sales-summary-card{min-width:0;min-height:116px;padding:20px 23px;border-radius:11px;background:#173f35;color:#fff;display:flex;flex-direction:column;justify-content:center;gap:5px}
.sales-summary-card span{font-size:17px;line-height:1.3}
.sales-summary-card strong{font-size:clamp(18px,1.8vw,28px);line-height:1.2;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
@media(max-width:1200px){.sales-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.sales-summary{padding:18px}.sales-summary h2{font-size:19px;margin-bottom:16px}.sales-summary-grid{grid-template-columns:1fr;gap:10px}.sales-summary-card{min-height:82px;padding:13px 18px}.sales-summary-card span{font-size:14px}.sales-summary-card strong{font-size:21px}}
.action-dialog{width:min(520px,calc(100% - 24px));max-height:min(90dvh,850px);overflow-y:auto;padding:24px;box-sizing:border-box}
.action-dialog .dialog-title{align-items:center;margin-bottom:18px}
.action-dialog .dialog-title h2{margin:0;font-size:19px}
.action-dialog .dialog-title button{border:0;background:transparent;color:var(--ink);font-size:25px;line-height:1;cursor:pointer}
.action-dialog .stack{gap:14px}
.action-dialog .stack label{margin-bottom:0}
.action-dialog .stack input,.action-dialog .stack select,.action-dialog .stack textarea{margin-top:5px}
.action-dialog .form-actions{justify-content:flex-end;margin-top:18px}
.return-policy-dialog-list{display:grid;gap:20px}
.return-policy-dialog-list form+form{border-top:1px solid var(--line);padding-top:18px}
.return-policy-dialog-list h3{margin:0}
.page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.page-actions .button{white-space:nowrap}
.opname-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.opname-toolbar-actions .button{min-height:42px}
.sidebar-group-label{color:#a9c3b8;font-size:12px;font-weight:600;letter-spacing:0;padding:12px 10px 3px;margin:0;line-height:1.3}
.sidebar-group-label:first-child{padding-top:2px}
.badge-rejected{background:#fde8e8;color:#b42318}
.item-filters{display:grid;grid-template-columns:minmax(220px,2.4fr) minmax(130px,1fr) minmax(155px,1.1fr) auto auto;align-items:end;gap:10px;margin:16px 0 20px}
.item-filters label{min-width:0;margin:0;font-size:13px}
.item-filters input,.item-filters select{margin-top:5px;min-width:0;width:100%}
.item-filters .button{min-height:44px}
.item-filter-reset{padding:12px 2px;white-space:nowrap}
.cashier-table{min-width:650px}
.cashier-table td{vertical-align:middle}
.cashier-detail{margin:0}
.cashier-detail div{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid var(--line)}
.cashier-detail dt{color:var(--muted)}
.cashier-detail dd{margin:0;text-align:right}
.action-dialog .cashier-outlet-list{min-width:0;margin:2px 0 0;padding:10px 14px 12px;border:1px solid #dce5de;border-radius:9px}
.action-dialog .cashier-outlet-list legend{padding:0 5px;font-size:13px;font-weight:650;color:var(--ink)}
.action-dialog .cashier-outlet-list .check-row{display:flex;align-items:center;justify-content:flex-start;gap:11px;width:100%;min-height:38px;margin:0;padding:5px 2px;font-size:14px;font-weight:500;line-height:1.35;cursor:pointer}
.action-dialog .cashier-outlet-list .check-row+ .check-row{border-top:1px solid #edf1ee}
.action-dialog .cashier-outlet-list input[type="checkbox"]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--forest);cursor:pointer}
.action-dialog .cashier-outlet-list .check-row span{display:block;min-width:0;flex:1;overflow-wrap:anywhere}
@media(max-width:850px){.item-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.item-filters .item-search{grid-column:1/-1}.item-filter-reset{align-self:center}}
@media(max-width:650px){.item-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.item-filters .button{width:100%;justify-content:center}.report-filters .date-separator{display:block;grid-column:1/-1;text-align:center;line-height:1;font-size:12px}}
#navigation-sidebar .sidebar-links{gap:2px;scrollbar-width:thin;scrollbar-color:#719789 transparent}
#navigation-sidebar .sidebar-links .nav-link{gap:11px;min-height:40px;padding:7px 10px;margin:0;font-size:14px;line-height:1.35}
#navigation-sidebar .sidebar-links .nav-link svg{flex:none;width:18px;height:18px}
#navigation-sidebar .sidebar-links .nav-link>span:not(.request-count){min-width:0}
#navigation-sidebar .sidebar-links .nav-link .request-count{margin-left:auto;flex:none}
.catalog-product-cell{display:flex;align-items:center;gap:10px;min-width:190px}
.catalog-product-cell img,.catalog-product-placeholder{width:44px;height:44px;flex:0 0 44px;object-fit:cover;border-radius:8px;background:#e8eeea}
.catalog-product-cell strong{display:block;font-weight:600}
.catalog-product-cell small{display:block;color:var(--muted)}
@media(max-width:650px){.page-heading:has(.page-actions){align-items:flex-start;flex-direction:column}.page-actions{width:100%}.page-actions .button{flex:1;text-align:center}.action-dialog{padding:18px}.opname-toolbar-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.opname-toolbar-actions form{grid-column:1/-1}.opname-toolbar-actions .button{width:100%;text-align:center}}
.warehouse-lines-dialog,.warehouse-receive-dialog{width:min(800px,calc(100% - 24px))}
.warehouse-transfer-route{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.warehouse-transfer-route label{min-width:0}
.warehouse-lines-scroll{max-height:43dvh;overflow:auto;overscroll-behavior:contain;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#f9fbf9}
.warehouse-lines-head,.warehouse-receive-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,.75fr) minmax(0,1.1fr) 30px;gap:8px;align-items:center;min-width:0}
.warehouse-lines-head{position:sticky;top:-8px;z-index:1;padding:0 0 7px;border-bottom:1px solid var(--line);background:#f9fbf9;font-size:13px;font-weight:600}
.warehouse-receive-list{display:grid;gap:0}
.warehouse-receive-row{padding:6px 0;background:transparent}
.warehouse-receive-row+.warehouse-receive-row{border-top:1px solid var(--line)}
.warehouse-receive-row label{min-width:0;margin:0}
.warehouse-receive-row input,.warehouse-receive-row select{width:100%;min-width:0;min-height:38px;margin:0!important;padding:7px 9px;font-size:13px}
.warehouse-receive-dialog .warehouse-lines-head,.warehouse-receive-dialog .warehouse-receive-row,.warehouse-lines-dialog .warehouse-lines-head,.warehouse-lines-dialog .warehouse-receive-row{grid-template-columns:minmax(0,1.35fr) minmax(0,1.25fr) minmax(0,.9fr) 30px}
.warehouse-receive-remove{display:grid;place-items:center;width:30px;height:38px;padding:0;border:0;border-radius:7px;background:#edf2ee;color:var(--ink);font-size:20px;cursor:pointer}
.warehouse-receive-remove:hover{background:#fce8e6;color:#ad3329}
.warehouse-receive-remove[hidden]{display:none}
.warehouse-lines-dialog [data-lines-add],.warehouse-receive-dialog [data-lines-add]{align-self:flex-start}
.stock-request-dialog .stock-request-form{max-width:none}
@media(max-width:560px){.warehouse-lines-head,.warehouse-receive-row{min-width:570px}.warehouse-lines-scroll{-webkit-overflow-scrolling:touch}}
.attendance-panel{max-width:760px;margin:0 auto 20px;padding:28px 36px;text-align:center}.attendance-panel h2{margin:0 0 3px;font-size:25px}.attendance-date{color:var(--muted);margin-bottom:20px}.attendance-panel form{text-align:left}.attendance-outlet{max-width:380px;margin:0 auto 20px}.attendance-camera-label{text-align:center;font-weight:600;margin-bottom:10px}.attendance-photo-preview{height:290px;width:min(100%,380px);margin:auto;background:#f2f3f2;border-radius:12px;display:grid;place-items:center;color:#829087;overflow:hidden}.attendance-photo-preview img,.attendance-photo-preview video{height:100%;width:100%;object-fit:cover}.attendance-photo-button{display:flex;width:max-content;margin:16px auto 24px;cursor:pointer}.attendance-note{margin-bottom:12px}.attendance-note textarea{display:block;width:100%;min-height:90px;border:1px solid #d9dde3;border-radius:9px;padding:12px 14px;font:inherit;resize:vertical}.attendance-location{font-size:12px;color:var(--muted);margin:0 0 12px}.attendance-submit{width:100%}.attendance-filter{max-width:320px;margin:0 0 18px}.attendance-table{min-width:850px}.attendance-table td{vertical-align:top}.attendance-table small{color:var(--muted)}@media(max-width:650px){.attendance-panel{padding:20px 16px}.attendance-photo-preview{height:240px}}
.image-picker-control{position:relative;display:inline-block;max-width:100%}
.image-picker-button{width:max-content;max-width:100%}
.image-picker-filename{display:block;max-width:100%;margin-top:5px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.image-picker-menu{position:absolute;z-index:100;top:calc(100% + 4px);left:0;min-width:150px;padding:4px;border:1px solid #d9dedb;border-radius:6px;background:#fff;box-shadow:0 4px 12px #0002}
.image-picker-menu button{display:block;width:100%;padding:8px 10px;border:0;border-radius:3px;background:#fff;color:var(--ink);font-size:13px;text-align:left;white-space:nowrap}
.image-picker-menu button:hover,.image-picker-menu button:focus-visible{background:#f1f4f2}
.image-picker-dialog{width:min(390px,calc(100% - 24px));max-height:90dvh;padding:16px;border:1px solid #d9dedb;border-radius:6px;background:#fff;color:var(--ink)}
.image-picker-dialog::backdrop{background:#0007}
.image-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.image-picker-heading strong{font-size:15px}
.image-picker-heading button{border:0;background:transparent;color:var(--ink);font-size:22px;line-height:1}
.image-picker-dialog video{display:block;width:100%;max-height:55dvh;aspect-ratio:4/3;object-fit:cover;background:#e9eeeb}
.image-picker-status{min-height:18px;margin:8px 0;color:var(--muted);font-size:12px}
.image-picker-dialog>.button{width:100%;margin-top:6px}

/* Ruang tepi konsisten di halaman kerja dan katalog POS. */
.workspace-main{padding-right:clamp(32px,3.6vw,58px);padding-left:clamp(32px,3.6vw,58px)}
.pos-header{padding-right:clamp(32px,3.4vw,52px);padding-left:clamp(32px,3.4vw,52px)}
.catalog-tools{padding-right:clamp(32px,3.4vw,52px);padding-left:clamp(32px,3.4vw,52px)}
.catalog-body{padding-right:clamp(32px,3.4vw,52px);padding-left:clamp(32px,3.4vw,52px)}
.order-header,.order-summary{padding-right:24px;padding-left:24px}
@media(max-width:1023px){
 .workspace-main{padding-right:30px;padding-left:30px}
 .pos-header,.catalog-tools,.catalog-body{padding-right:30px;padding-left:30px}
}
@media(max-width:700px){
 .workspace-main{padding-right:22px;padding-left:22px}
 .pos-header,.catalog-tools,.catalog-body{padding-right:22px;padding-left:22px}
 .order-header,.order-summary{padding-right:22px;padding-left:22px}
 .preview-banner{margin-right:22px;margin-left:22px}
}

/* Kolom teks panjang boleh membungkus, sedangkan nominal dan kontrol tetap ringkas. */
@media(max-width:700px){
 .sales-table{width:790px;min-width:790px;table-layout:fixed}
 .sales-table th:nth-child(1){width:54px}
 .sales-table th:nth-child(2){width:112px}
 .sales-table th:nth-child(3){width:142px}
 .sales-table th:nth-child(4){width:110px}
 .sales-table th:nth-child(5){width:92px}
 .sales-table th:nth-child(6){width:112px}
 .sales-table th:nth-child(7){width:114px}
 .sales-table th:nth-child(8){width:54px}
 .sales-table td.transaction-number,.sales-table td.sale-date,.sales-table td:nth-child(6){white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 .sales-table .sale-row td{height:auto}
 .cashier-table{width:650px;min-width:650px;table-layout:fixed}
 .cashier-table th:nth-child(1){width:150px}
 .cashier-table th:nth-child(2){width:108px}
 .cashier-table th:nth-child(3){width:202px}
 .cashier-table th:nth-child(4){width:130px}
 .cashier-table th:nth-child(5){width:60px}
 .table-wrap .cashier-table td:first-child,.table-wrap .cashier-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere;line-height:1.4}
 .cashier-table td:first-child strong,.cashier-table td:first-child small{overflow-wrap:anywhere}
}

/* Dialog Tambah item lebih pendek dan nyaman di layar sentuh. */
#product-dialog .product-pick-description{margin-bottom:16px}
#product-dialog .quantity-stepper{margin-bottom:15px}
#product-dialog .quantity-stepper button{flex-basis:42px;min-height:40px}
#product-dialog .quantity-stepper input{height:40px;min-height:40px;padding:4px 8px;font-size:16px}
#product-addons h3{margin-bottom:5px}
#product-dialog .catalog-group{padding:9px 12px;margin:9px 0}
#product-dialog .check-row{align-items:center;padding:5px 0;line-height:1.35}
#product-dialog .check-row input{width:18px;height:18px;min-height:18px;margin:0 9px 0 0;padding:0}

/* Peringatan ketersediaan stok harus mudah dibedakan dari pesan berhasil. */
#product-stock-warning.notice{background:#fff0ef;border:1px solid #e8b3ad;color:#a1241d}
.metric-warning{background:#fff3f1;border-color:#f2d4d0}
.metric-warning .metric-icon{background:#fbe2de;color:#a1241d}

/* Pilihan stok per permintaan tetap jelas tanpa tiga tombol di dalam tabel. */
.stock-review-trigger{white-space:nowrap}
.stock-review-dialog{width:min(430px,calc(100% - 28px))}
.stock-review-item{display:flex;flex-direction:column;gap:3px;margin:18px 0 9px;padding:12px 14px;border:1px solid #e1e8e3;border-radius:9px;background:#f7faf8}
.stock-review-item span{color:var(--muted);font-size:13px}
.stock-review-options{display:grid;gap:8px;margin-top:18px}
.stock-review-options form,.stock-review-options .button{width:100%;margin:0}
.stock-review-options .button{justify-content:center}
.stock-review-options .button.danger{color:#b42318;border-color:#f0c7c3;background:#fff7f6}
.stock-review-options .button.danger:hover{background:#fee9e7}

/* Bisnis & Tim: pisahkan daftar outlet dan pengajuan kuota. */
.business-heading .eyebrow{margin:0 0 3px}
.business-outlets,.business-quota{padding:24px 28px}
.business-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.business-section-heading h2{margin:0 0 3px}
.business-section-heading p{margin:0;color:var(--muted);font-size:13px}
.business-outlet-list{border-top:1px solid var(--line)}
.business-outlet-list .outlet-entry{padding:14px 0;min-height:73px}
.outlet-entry-info{display:grid;gap:3px;min-width:0}
.outlet-entry-info strong{font-size:15px;overflow-wrap:anywhere}
.outlet-entry-info span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.outlet-entry-actions{display:flex;align-items:center;gap:8px;flex:none}
.outlet-entry-actions .button{min-height:36px;padding:7px 11px;font-size:12px}
.quota-requests{border-top:1px solid var(--line)}
.quota-request{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
@media(max-width:1023px){
 .business-outlet-list .outlet-entry{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:10px;padding:16px 0}
 .outlet-entry-info{width:100%;min-width:0}
 .outlet-entry-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
 .outlet-entry-actions .button{min-width:132px}
}
@media(max-width:650px){
 .business-outlets,.business-quota{padding:18px}
 .business-section-heading{align-items:flex-start;flex-direction:column}
 .business-section-heading>.button{width:100%;justify-content:center}
 .business-outlet-list .outlet-entry{gap:10px;align-items:stretch}
 .outlet-entry-actions{width:100%;flex-wrap:wrap}
 .outlet-entry-actions .button{flex:1;min-width:0;justify-content:center}
}

/* Bagian bawah Tambah item selalu terlihat saat pilihan add-on digulir. */
#product-dialog{overflow:hidden}
#product-dialog form{display:flex;flex-direction:column;min-height:0;max-height:calc(90dvh - 54px)}
#product-dialog .dialog-title{flex:none}
.product-pick-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.product-pick-footer{flex:none;margin-top:9px;padding-top:10px;border-top:1px solid var(--line);background:#fff}
#product-dialog .product-pick-footer .order-total{margin:0;padding:0;border:0}
#product-dialog .product-pick-actions{margin-top:10px}
@media(max-width:480px){#product-dialog form{max-height:calc(90dvh - 42px)}}

.action-dialog .stack .item-track-toggle{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;margin:0;padding:4px 0;line-height:1.35;cursor:pointer}
.action-dialog .stack .item-track-toggle input{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--forest)}
.action-dialog .stack .item-track-toggle span{display:block;flex:1;min-width:0}
.export-button{min-height:36px;padding:7px 12px;font-size:13px;line-height:1.2;flex:0 0 auto!important;width:auto!important}.page-actions .export-button{margin-left:auto}.export-toolbar{justify-content:flex-end;margin:12px 0}.attendance-filter-scroll{max-width:100%;overflow-x:auto;margin-bottom:18px}.attendance-filter{max-width:none;margin:0;min-width:690px;display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(145px,1fr) minmax(145px,1fr) auto;align-items:end;gap:12px}.attendance-filter label{min-width:0}.attendance-filter select,.attendance-filter input{width:100%;min-width:0}.attendance-filter .button{white-space:nowrap}.attendance-table th:nth-child(3),.attendance-table td:nth-child(3){min-width:145px;white-space:nowrap}.attendance-table th:first-child,.attendance-table td:first-child{min-width:105px;white-space:nowrap}
.attendance-check-in-time{margin:4px 0 20px;color:var(--muted);font-size:14px;line-height:1.45}.attendance-check-in-time strong{color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.opname-history-heading{margin-bottom:12px}
.attendance-history-photo{display:block;width:72px;height:64px;object-fit:cover;border-radius:6px;margin-bottom:8px}
.stock-pending-label{display:block;margin-top:4px;color:#8a6016;font-size:12px;line-height:1.4}
.option-data-list{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}
.option-data-list span{padding:6px 10px;background:#f1f5f2;border:1px solid var(--line);border-radius:6px}
.option-create-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.recipe-output-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px}
.warehouse-lines-dialog .recipe-lines .warehouse-lines-head,.warehouse-lines-dialog .recipe-lines .warehouse-receive-row{grid-template-columns:minmax(220px,1.8fr) minmax(140px,1fr) 30px;min-width:430px}
.warehouse-receive-dialog .procurement-lines .warehouse-lines-head,.warehouse-receive-dialog .procurement-lines .warehouse-receive-row{grid-template-columns:minmax(200px,1.5fr) minmax(175px,1.1fr) minmax(125px,1fr) minmax(125px,1fr) 30px;min-width:720px}
.warehouse-receive-dialog{width:min(1100px,calc(100vw - 48px));max-width:1100px}
.warehouse-receive-dialog .procurement-lines{max-height:min(55dvh,480px);overflow-x:hidden;border:0;border-radius:0;padding:0;background:transparent}
.warehouse-receive-dialog .procurement-lines .warehouse-lines-head,.warehouse-receive-dialog .procurement-lines .warehouse-receive-row{grid-template-columns:minmax(170px,1.35fr) minmax(190px,1.25fr) minmax(125px,.9fr) minmax(140px,1fr) 30px;min-width:0}
.warehouse-receive-dialog .procurement-lines .warehouse-lines-head{padding:0 0 8px}
.warehouse-receive-dialog .procurement-lines .warehouse-receive-row{padding:8px 0}
.warehouse-lines-dialog{width:min(900px,calc(100vw - 48px));max-width:900px}
.recipe-list-dialog{width:min(960px,calc(100vw - 48px));max-width:960px}
.recipe-list-actions{margin:14px 0 12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.recipe-table-wrap{max-height:min(58dvh,540px);overscroll-behavior:contain}
.recipe-table-wrap table{min-width:650px}
.recipe-table-wrap th,.recipe-table-wrap td{padding:12px 14px;vertical-align:top}
.recipe-table-wrap td:nth-child(2),.recipe-table-wrap td:last-child{white-space:nowrap}
.warehouse-lines-dialog .recipe-lines{max-height:min(38dvh,360px)}
@media(max-width:760px){.warehouse-receive-dialog{width:calc(100vw - 24px);max-width:1100px}.warehouse-receive-dialog .procurement-lines{overflow-x:auto}.warehouse-receive-dialog .procurement-lines .warehouse-lines-head,.warehouse-receive-dialog .procurement-lines .warehouse-receive-row{min-width:720px}.warehouse-lines-dialog,.recipe-list-dialog{width:calc(100vw - 24px)}.recipe-table-wrap{max-height:55dvh}}
.receipt-custom-line{min-height:1em;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:560px){.recipe-output-fields{grid-template-columns:1fr}.option-create-row{grid-template-columns:1fr}.option-create-row .button{justify-self:end}}
.catalog-search-form{display:flex;align-items:flex-end;gap:12px;flex:1;min-width:0;margin:0}
.catalog-search-form>label{flex:0 0 auto;margin:0 0 11px;white-space:nowrap}
.catalog-search-controls{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.catalog-search-controls input{min-width:0;max-width:520px;flex:1}
.catalog-search-controls .button{flex:0 0 auto}
@media(max-width:700px){
 .catalog-toolbar{align-items:stretch;gap:10px}
 .catalog-search-form{display:block;width:100%}
 .catalog-search-form>label{display:block;margin:0 0 6px}
 .catalog-search-controls{width:100%}
 .catalog-search-controls input{max-width:none}
 .catalog-toolbar>.export-button{align-self:flex-end}
}
.panel .page-actions:has(.export-button){margin-bottom:12px}.sales-panel .report-filters:has(.export-button){margin-bottom:14px}
.button.danger{color:#b42318;border-color:#f0c7c3;background:#fff7f6}
.button.danger:hover{background:#fee9e7}
.option-table th,.option-table td{padding:10px 12px;text-align:left}
.option-table th:last-child,.option-table td:last-child{width:1%;white-space:nowrap}
.option-actions-cell{display:flex;justify-content:flex-start;align-items:center;gap:8px}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.catalog-toolbar .outlet-selector{margin-bottom:0;flex:1;min-width:260px}
.catalog-toolbar .outlet-selector label{white-space:nowrap}
.catalog-toolbar .outlet-selector input{max-width:320px}
.catalog-component-head{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(140px,1fr) 84px;gap:12px;margin:12px 0 6px;font-size:13px;font-weight:600;color:var(--muted)}
.catalog-component-row{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(140px,1fr) 84px;gap:12px;align-items:center;margin:8px 0}
@media(max-width:600px){.catalog-component-head{display:none}.catalog-component-row{grid-template-columns:1fr}}
@media(max-width:700px){.catalog-toolbar{align-items:stretch;gap:10px}.catalog-search-form{display:block;width:100%}.catalog-search-form>label{display:block;margin:0 0 6px}.catalog-search-controls{width:100%}.catalog-search-controls input{max-width:none}.catalog-toolbar>.export-button{align-self:flex-end}}
