:root{--bg-page: #f6f3ed;--bg-surface: #ffffff;--bg-subtle: #efebe2;--bg-hover: #e7e0d3;--rail-bg: #1c1714;--rail-surface: #28211d;--rail-ink: #f6f3ed;--rail-muted: #a69b90;--ink-primary: #1c1714;--ink-secondary: #5a4f45;--ink-muted: #8a7e72;--border-light: #e6dfd4;--border-strong: #d3c8b8;--accent: #b84a24;--accent-hover: #9a3b1a;--accent-soft: #faeae4;--success: #1f6347;--success-soft: #e5f3ec;--warning: #a15c07;--warning-soft: #fdf2df;--danger: #b42318;--danger-soft: #fceae8;--font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;--font-serif: "Instrument Serif", Georgia, serif;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--shadow-sm: 0 1px 2px rgba(28, 23, 20, .04);--shadow-md: 0 8px 24px rgba(28, 23, 20, .07)}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;background-color:var(--bg-page);color:var(--ink-primary);font-family:var(--font-sans);font-size:14.5px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:inherit;font-size:inherit}button{cursor:pointer}.tabular-nums{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.login-shell{min-height:100vh;height:100vh;display:grid;grid-template-columns:1.08fr 1fr;background:var(--bg-page)}.login-visual{position:relative;overflow:hidden;background:var(--rail-bg);height:100%}.login-visual img{width:100%;height:100%;object-fit:cover;display:block}.login-visual-caption{position:absolute;inset:auto 0 0 0;padding:36px 40px;background:linear-gradient(to top,#140f0ce6,#140f0c00);color:#faf7f2}.login-visual-caption h2{font-family:var(--font-serif);font-size:36px;font-weight:400;margin:0 0 6px;letter-spacing:-.01em}.login-visual-caption p{margin:0;color:#faf7f2d6;font-size:14px}.login-panel{display:flex;align-items:center;justify-content:center;padding:32px 24px}.login-card{width:100%;max-width:380px}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.login-brand img{width:44px;height:44px;border-radius:10px;object-fit:cover;border:1px solid var(--border-light)}.login-brand-name{font-family:var(--font-serif);font-size:26px;line-height:1.1}.login-brand-sub{font-size:12.5px;color:var(--ink-muted)}.login-card h1{font-size:22px;font-weight:600;margin:0 0 6px;letter-spacing:-.02em}.login-card .login-lead{margin:0 0 24px;color:var(--ink-secondary);font-size:14px}.field{margin-bottom:16px}.field label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-secondary);margin-bottom:6px}.input,.select,.textarea{width:100%;padding:9px 12px;background:var(--bg-surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);color:var(--ink-primary);transition:border-color .15s ease,box-shadow .15s ease}.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;border-radius:var(--radius-sm);border:1px solid transparent;font-weight:500;font-size:13.5px;transition:background-color .15s ease,border-color .15s ease,transform .08s ease}.btn:active:not(:disabled){transform:scale(.985)}.btn:disabled{opacity:.52;cursor:not-allowed}.btn-primary{background:var(--accent);color:#fff;box-shadow:0 1px 2px #b84a2438,0 4px 12px #b84a2429}.btn-primary:hover:not(:disabled){background:var(--accent-hover);box-shadow:0 2px 4px #b84a2442,0 6px 16px #b84a2438;transform:translateY(-1px)}input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:19px;height:19px;min-width:19px;border-radius:5px;border:1.5px solid var(--border-strong);background:var(--bg-surface);display:inline-grid;place-content:center;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .1s ease;margin:0}input[type=checkbox]:hover{border-color:var(--accent)}input[type=checkbox]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--accent-soft)}input[type=checkbox]:checked{background-color:var(--accent);border-color:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");background-size:13px 13px;background-position:center;background-repeat:no-repeat}input[type=checkbox]:active{transform:scale(.92)}.btn-secondary{background:var(--bg-surface);border-color:var(--border-strong);color:var(--ink-primary)}.btn-secondary:hover:not(:disabled){background:var(--bg-subtle)}.btn-ghost{background:transparent;color:var(--ink-secondary)}.btn-ghost:hover:not(:disabled){background:var(--bg-subtle);color:var(--ink-primary)}.btn-success{background:var(--success);color:#fff}.btn-success:hover:not(:disabled){background:#184e38}.btn-sm{padding:6px 11px;font-size:12.5px}.btn-lg{padding:12px 18px;font-size:14.5px;font-weight:600}.btn-full{width:100%}.alert{padding:10px 14px;border-radius:var(--radius-sm);font-size:13.5px;margin-bottom:16px;display:flex;align-items:center;gap:10px}.alert-error{background:var(--danger-soft);color:var(--danger);border:1px solid #f4c7c3}.alert-success{background:var(--success-soft);color:var(--success);border:1px solid #bfe0cf}.app-shell{min-height:100vh;display:grid;grid-template-columns:236px 1fr}.sidebar{background:var(--rail-bg);color:var(--rail-ink);padding:20px 14px;display:flex;flex-direction:column;justify-content:space-between;position:sticky;top:0;height:100vh}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 18px;border-bottom:1px solid rgba(255,255,255,.09);margin-bottom:16px}.sidebar-brand img{width:36px;height:36px;border-radius:8px;object-fit:cover;border:1px solid rgba(255,255,255,.14)}.sidebar-brand-title{font-family:var(--font-serif);font-size:21px;line-height:1.1;color:#fff}.sidebar-brand-role{font-size:11.5px;color:var(--rail-muted)}.nav-list{display:flex;flex-direction:column;gap:4px}.nav-item{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:none;background:transparent;border-radius:var(--radius-sm);color:var(--rail-muted);font-weight:500;font-size:13.5px;text-align:left;transition:background-color .12s ease,color .12s ease}.nav-item-left{display:flex;align-items:center;gap:10px}.nav-item:hover{background:var(--rail-surface);color:#fff}.nav-item.active{background:var(--accent);color:#fff;font-weight:600}.nav-badge{background:#fff3;color:#fff;font-size:11px;font-weight:600;padding:2px 7px;border-radius:999px}.sidebar-footer{border-top:1px solid rgba(255,255,255,.09);padding-top:14px;display:flex;flex-direction:column;gap:8px}.user-pill{padding:9px 11px;background:var(--rail-surface);border-radius:var(--radius-sm);font-size:13px}.user-pill strong{display:block;color:#fff}.user-pill span{color:var(--rail-muted);font-size:11.5px}.rail-btn{width:100%;display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;padding:8px 10px;border-radius:var(--radius-sm);border:1px solid rgba(255,255,255,.1);background:transparent;color:var(--rail-muted);font-size:12.5px;font-weight:500}.rail-btn:hover{background:var(--rail-surface);color:#fff}.mobile-header-actions,.mobile-bottom-nav{display:none}.main-area{padding:24px 28px 48px;max-width:1380px;width:100%;min-width:0}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}.page-title{font-family:var(--font-serif);font-size:30px;font-weight:400;margin:0;line-height:1.15;letter-spacing:-.01em}.page-subtitle{font-size:13px;color:var(--ink-muted);margin-top:2px}.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.card{background:var(--bg-surface);border:1px solid var(--border-light);border-radius:var(--radius-md);padding:18px 20px;box-shadow:0 1px 2px #1c17140a,0 6px 20px #1c171409;min-width:0;transition:box-shadow .2s ease,border-color .2s ease}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}.card-title{font-size:15.5px;font-weight:600;margin:0}.counter-banner{position:relative;border-radius:var(--radius-md);overflow:hidden;height:132px;margin-bottom:20px;background:var(--rail-bg);border:1px solid var(--border-light)}.counter-banner img{width:100%;height:100%;object-fit:cover;opacity:.72;display:block}.counter-banner-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:20px 24px;background:linear-gradient(90deg,#1c1714e0,#1c17147a 60%,#1c171426);display:flex;align-items:center;justify-content:space-between;gap:16px;color:#fff}.counter-banner-title{font-family:var(--font-serif);font-size:26px;font-weight:400;margin:0 0 2px}.counter-banner-sub{font-size:13px;color:#ffffffd1}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.kpi-card{background:var(--bg-surface);border:1px solid var(--border-light);border-radius:var(--radius-md);padding:16px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;box-shadow:0 1px 2px #1c17140a,0 4px 14px #1c171408;transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s ease,border-color .18s ease}.kpi-card:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:0 4px 16px #1c171412}.kpi-label{font-size:12px;font-weight:500;color:var(--ink-muted);margin-bottom:6px}.kpi-value{font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.15}.kpi-icon{width:36px;height:36px;border-radius:9px;background:var(--bg-subtle);color:var(--ink-secondary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.kpi-icon.accent{background:var(--accent-soft);color:var(--accent)}.two-col{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;align-items:start}.pos-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:20px;align-items:start}.two-col>*,.pos-grid>*{min-width:0}.cat-strip{display:flex;gap:6px;max-width:100%;overflow-x:auto;padding-bottom:6px;margin-bottom:14px;scrollbar-width:thin}.cat-pill{padding:6px 12px;border-radius:999px;border:1px solid var(--border-light);background:var(--bg-page);color:var(--ink-secondary);font-size:12.5px;font-weight:500;white-space:nowrap;transition:all .12s ease}.cat-pill:hover{background:var(--bg-subtle);color:var(--ink-primary)}.cat-pill.active{background:var(--ink-primary);border-color:var(--ink-primary);color:#fff}.product-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px}.product-tile{position:relative;background:var(--bg-surface);border:1px solid var(--border-light);border-radius:var(--radius-md);padding:12px 13px;text-align:left;transition:border-color .12s ease,box-shadow .12s ease,transform .08s ease;display:flex;flex-direction:column;justify-content:space-between;min-height:104px}.product-tile:hover:not(:disabled){border-color:var(--accent);box-shadow:0 4px 14px #b84a241a;transform:translateY(-1.5px)}.product-tile.in-cart{border-color:var(--accent);background:#fffaf7}.product-tile:active:not(:disabled){transform:scale(.985)}.product-tile:disabled{opacity:.48;cursor:not-allowed}.product-tile-top{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;color:var(--ink-muted)}.product-tile-name{font-weight:600;font-size:13.5px;color:var(--ink-primary);margin:6px 0;line-height:1.3}.product-tile-bottom{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;color:var(--ink-primary)}.tile-cart-badge{background:var(--accent);color:#fff;font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px}.pay-pills{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:14px}.pay-pill{padding:8px 10px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--bg-surface);color:var(--ink-secondary);font-size:12.5px;font-weight:500;text-align:center}.pay-pill.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}.bar-list{display:flex;flex-direction:column;gap:11px}.bar-row-head{display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px}.bar-track{height:7px;background:var(--bg-subtle);border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .55s cubic-bezier(.16,1,.3,1)}.pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:600}.pill-success{background:var(--success-soft);color:var(--success)}.pill-warning{background:var(--warning-soft);color:var(--warning)}.pill-danger{background:var(--danger-soft);color:var(--danger)}.pill-neutral{background:var(--bg-subtle);color:var(--ink-secondary)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13.5px}th{text-align:left;font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--ink-muted);padding:10px 12px;border-bottom:1px solid var(--border-light)}td{padding:11px 12px;border-bottom:1px solid var(--border-light);vertical-align:middle}tbody tr{transition:background-color .12s ease}tbody tr:hover td{background:#b84a2408}tr:last-child td{border-bottom:none}.pagination-bar{display:flex;align-items:center;justify-content:space-between;padding-top:14px;margin-top:8px;border-top:1px solid var(--border-light);font-size:13px;color:var(--ink-secondary)}.qty-chips{display:flex;gap:6px;flex-wrap:wrap}.qty-chip{padding:6px 11px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--bg-surface);font-size:12.5px;font-weight:500;color:var(--ink-primary)}.qty-chip:hover{background:var(--bg-subtle)}.request-banner{background:var(--accent-soft);border:1px solid #ecc6b6;border-radius:var(--radius-md);padding:16px 20px;margin-bottom:20px}.request-banner-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.request-list-grid{display:grid;gap:10px}.request-card{background:var(--bg-surface);border:1px solid var(--border-light);border-radius:var(--radius-sm);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.pos-cart-sticky{position:sticky;top:20px}.cart-items{display:flex;flex-direction:column;gap:8px;margin:12px 0 16px;max-height:320px;overflow-y:auto}.cart-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:var(--bg-page);border-radius:var(--radius-sm)}.qty-stepper{display:inline-flex;align-items:center;gap:5px}.qty-stepper button{width:28px;height:28px;border-radius:6px;border:1px solid var(--border-strong);background:var(--bg-surface);display:inline-flex;align-items:center;justify-content:center}.qty-stepper input{width:44px;text-align:center;padding:4px;border:1px solid var(--border-light);border-radius:6px;background:var(--bg-surface)}.toolbar{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}.search-box{position:relative;flex:1;min-width:200px}.search-box svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--ink-muted)}.search-box input{padding-left:34px}@keyframes backdropIn{0%{opacity:0}to{opacity:1}}@keyframes modalIn{0%{opacity:0;transform:translateY(8px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes menuDrop{0%{opacity:0;transform:translateY(-4px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toastSlideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#1c17148f;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px;animation:backdropIn .16s ease-out both}.modal-panel{width:100%;max-width:780px;max-height:88vh;background:var(--bg-surface);border-radius:var(--radius-lg);border:1px solid var(--border-light);box-shadow:0 24px 60px #1c17143d,0 2px 8px #1c171414;display:flex;flex-direction:column;overflow:hidden;animation:modalIn .2s cubic-bezier(.16,1,.3,1) both}.modal-header{padding:18px 22px;border-bottom:1px solid var(--border-light);display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-body{padding:18px 22px;overflow-y:auto;flex:1}.modal-footer{padding:14px 22px;border-top:1px solid var(--border-light);background:var(--bg-page);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cselect-wrap{position:relative;width:100%}.cselect-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:var(--bg-surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);color:var(--ink-primary);text-align:left;transition:border-color .15s ease,box-shadow .15s ease}.cselect-trigger.open,.cselect-trigger:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.cselect-trigger-text{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.cselect-main{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cselect-chevron{color:var(--ink-muted);flex-shrink:0;transition:transform .15s ease}.cselect-trigger.open .cselect-chevron{transform:rotate(180deg)}.cselect-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:45;background:var(--bg-surface);border:1px solid var(--border-light);border-radius:var(--radius-md);box-shadow:0 14px 36px #1c171424;overflow:hidden;animation:menuDrop .15s cubic-bezier(.16,1,.3,1) both}.cselect-search{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid var(--border-light);background:var(--bg-page);color:var(--ink-muted)}.cselect-search input{width:100%;border:none;background:transparent;color:var(--ink-primary);outline:none;font-size:13.5px}.cselect-list{max-height:260px;overflow-y:auto;padding:6px}.cselect-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:none;background:transparent;border-radius:var(--radius-sm);color:var(--ink-primary);transition:background-color .1s ease}.cselect-option:hover{background:var(--bg-subtle)}.cselect-option.selected{background:var(--accent-soft)}.cselect-opt-label{font-weight:500;font-size:13.5px}.cselect-opt-sub{font-size:11.5px;color:var(--ink-muted)}.cselect-empty{padding:16px;text-align:center;color:var(--ink-muted);font-size:13px}.toast-floating{position:fixed;right:24px;bottom:24px;z-index:80;max-width:420px;padding:12px 16px;border-radius:var(--radius-md);box-shadow:0 12px 30px #1c17142e;display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:500;animation:toastSlideUp .22s cubic-bezier(.16,1,.3,1) both}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.toast-success{background:#1c1714;color:#faf7f2;border:1px solid rgba(255,255,255,.12)}.toast-error{background:var(--danger);color:#fff}.toast-close{background:transparent;border:none;color:inherit;opacity:.75;padding:2px;display:inline-flex}.toast-close:hover{opacity:1}@media(max-width:960px){.login-shell{height:auto;grid-template-columns:1fr}.login-visual{height:190px}.login-visual-caption{padding:18px 20px}.login-visual-caption h2{font-size:26px}.app-shell{grid-template-columns:1fr;align-content:start}.sidebar{position:sticky;top:0;z-index:35;height:auto;min-height:58px;padding:10px 16px}.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.sidebar-brand{padding:0;border-bottom:none;margin-bottom:0}.sidebar-brand img{width:32px;height:32px}.sidebar-brand-title{font-size:18px}.nav-list,.sidebar-footer{display:none}.mobile-header-actions{display:flex;align-items:center;gap:8px}.mobile-icon-btn{width:38px;height:38px;border-radius:9px;border:1px solid rgba(255,255,255,.14);background:var(--rail-surface);color:var(--rail-ink);display:inline-flex;align-items:center;justify-content:center}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:stretch;background:var(--bg-surface);border-top:1px solid var(--border-light);box-shadow:0 -4px 16px #1c171414;padding:4px 6px calc(4px + env(safe-area-inset-bottom,0px))}.mobile-tab{flex:1;min-width:0;border:none;background:transparent;color:var(--ink-muted);padding:6px 4px;border-radius:8px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;font-weight:500}.mobile-tab.active{color:var(--accent);font-weight:700}.mobile-tab-icon{position:relative;display:inline-flex}.mobile-tab-badge{position:absolute;top:-4px;right:-8px;background:var(--accent);color:#fff;font-size:10px;font-weight:700;min-width:16px;height:16px;padding:0 4px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}.mobile-tab-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.main-area{padding:16px 14px 92px}.page-header{margin-bottom:16px;gap:10px}.page-title{font-size:24px}.page-actions{width:100%}.page-actions .btn{flex:1;min-height:42px}.counter-banner{height:auto;min-height:120px}.counter-banner img{position:absolute;top:0;right:0;bottom:0;left:0}.counter-banner-overlay{position:relative;flex-direction:column;align-items:flex-start;padding:16px}.counter-banner-title{font-size:21px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi-card{padding:13px 14px;min-width:0}.kpi-card>div:first-child{min-width:0}.kpi-value{font-size:17px;word-break:break-word}.kpi-icon{display:none}.two-col,.pos-grid{grid-template-columns:1fr;gap:14px}.pos-cart-sticky{position:static}.product-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-tile{min-height:92px;padding:10px 11px}.btn{min-height:42px}.btn-sm{min-height:38px}.input,.select,.textarea,.cselect-trigger{font-size:16px;min-height:44px}.qty-chip{min-height:38px;padding:7px 12px}.modal-backdrop{padding:10px}.modal-panel{max-height:90vh}.toast-floating{left:14px;right:14px;bottom:74px;max-width:none}}
