:root{--primary:#2563eb;--primary-dark:#1d4ed8;--primary-soft:#eff6ff;--ink:#0f172a;--muted:#64748b;--surface:#f6f8fc;--line:#e2e8f0;--success:#16a34a;--danger:#dc2626;--warning:#f59e0b;--radius:18px;--shadow:0 10px 35px rgba(15,23,42,.07)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:Poppins,system-ui,sans-serif;color:var(--ink);background:var(--surface);font-size:14px}.app-brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:1.15rem;font-weight:700;text-decoration:none;letter-spacing:-.04em}.app-brand b{color:var(--primary)}.app-brand>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--primary);color:#fff}.app-sidebar{position:fixed;inset:0 auto 0 0;width:250px;padding:24px 18px;background:#0f172a;color:#fff;z-index:1030;flex-direction:column}.app-sidebar .app-brand{color:#fff;padding:0 8px 26px}.sidebar-nav{display:flex;flex-direction:column;gap:5px}.sidebar-nav a{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 13px;border-radius:12px;color:#94a3b8;text-decoration:none;font-weight:500}.sidebar-nav a i{font-size:1.05rem}.sidebar-nav a:hover,.sidebar-nav a.active{color:#fff;background:rgba(37,99,235,.9)}.sidebar-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px;border-top:1px solid rgba(255,255,255,.1)}.sidebar-user strong,.sidebar-user small{display:block}.sidebar-user strong{font-size:.75rem}.sidebar-user small{font-size:.62rem;color:#94a3b8}.avatar-sm{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#2563eb;font-weight:700}.btn-icon{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:12px;background:#fff;color:#334155;box-shadow:0 3px 12px rgba(15,23,42,.06)}.sidebar-user .btn-icon{margin-left:auto;width:32px;height:32px;background:rgba(255,255,255,.08);color:#fff}.app-main.with-sidebar{margin-left:250px}.app-header{position:sticky;top:0;z-index:1020;height:78px;display:flex;align-items:center;background:rgba(246,248,252,.9);backdrop-filter:blur(12px);border-bottom:1px solid rgba(226,232,240,.8)}.app-header h1{font-size:1.15rem;font-weight:700;margin:0;letter-spacing:-.03em}.app-header small{color:var(--muted);font-size:.68rem}.connection-pill{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:.65rem;font-weight:600}.btn-subscribe{min-height:38px;padding:6px 12px;border-radius:999px;font-size:.72rem;white-space:nowrap;display:inline-flex;align-items:center}.btn-subscribe i{font-size:1rem}.connection-pill.offline{background:#fee2e2;color:#b91c1c}.app-content{padding:24px 0 90px}.metric-card,.panel-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.metric-card{padding:19px;height:100%}.metric-head{display:flex;align-items:center;justify-content:space-between}.metric-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--primary-soft);color:var(--primary);font-size:1.1rem}.metric-card small{color:var(--muted);font-size:.7rem}.metric-card h3{font-size:1.45rem;font-weight:700;margin:13px 0 2px;letter-spacing:-.04em}.metric-card .trend{font-size:.66rem;color:var(--success)}.panel-card{padding:20px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-title h2{font-size:.98rem;font-weight:600;margin:0}.panel-title p{color:var(--muted);font-size:.7rem;margin:3px 0 0}.btn{min-height:44px;border-radius:12px;font-weight:600;font-size:.78rem}.btn-primary{background:var(--primary);border-color:var(--primary)}.btn-success{background:var(--success);border-color:var(--success)}.form-control,.form-select{min-height:46px;border-radius:12px;border-color:#dbe3ee;font-size:.8rem}.form-control:focus,.form-select:focus{border-color:#93c5fd;box-shadow:0 0 0 .2rem rgba(37,99,235,.12)}.form-label{font-size:.72rem;font-weight:600;color:#334155}.table{font-size:.75rem}.table>:not(caption)>*>*{padding:.85rem .65rem;vertical-align:middle}.table thead th{font-size:.65rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc;border-bottom-color:var(--line)}.badge{padding:.55em .75em;border-radius:999px;font-weight:600}.table-actions{display:flex;gap:5px}.table-actions .btn{min-height:34px;padding:5px 9px}.empty-state{text-align:center;padding:50px 20px}.empty-state i{font-size:2.2rem;color:#cbd5e1}.empty-state h3{font-size:1rem;margin-top:12px}.empty-state p{color:var(--muted);font-size:.75rem}.bottom-nav{position:fixed;z-index:1040;left:0;right:0;bottom:0;height:72px;padding:7px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 25px rgba(15,23,42,.06)}.bottom-nav a{width:20%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#94a3b8;text-decoration:none;font-size:.65rem}.bottom-nav a span{height:30px;min-width:42px;display:grid;place-items:center;border-radius:12px;font-size:1.15rem}.bottom-nav a.active{color:var(--primary)}.bottom-nav .pos-nav span{position:relative;top:-15px;width:52px;height:52px;border-radius:17px;background:var(--primary);color:#fff;box-shadow:0 10px 25px rgba(37,99,235,.3)}.bottom-nav .pos-nav small{margin-top:-13px}.login-page{background:#fff}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.login-side{position:relative;overflow:hidden;align-items:center;padding:8vw;color:#fff;background:#0f172a}.login-side:after{content:"";position:absolute;width:540px;height:540px;border-radius:50%;right:-220px;bottom:-220px;background:#2563eb;opacity:.6}.login-side>div{position:relative;z-index:1;max-width:620px}.login-kicker{display:inline-block;margin-bottom:22px;padding:7px 12px;border-radius:999px;background:rgba(37,99,235,.25);color:#93c5fd;font-size:.7rem;font-weight:600}.login-side h1{font-size:clamp(2.4rem,4vw,4rem);font-weight:700;letter-spacing:-.05em;line-height:1.12}.login-side p{color:#cbd5e1;font-size:1rem;max-width:580px}.login-points{display:flex;flex-wrap:wrap;gap:18px;margin-top:30px;font-size:.75rem}.login-points i{color:#60a5fa;margin-right:6px}.login-form-side{display:grid;place-items:center;padding:28px}.login-card{width:min(100%,430px)}.login-card h1{font-size:1.8rem;font-weight:700;letter-spacing:-.04em}.login-card>p{color:var(--muted)}.password-field{position:relative}.password-field button{position:absolute;right:6px;top:6px}.quick-action{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--line);border-radius:15px;text-decoration:none;color:var(--ink);background:#fff}.quick-action i{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:var(--primary);background:var(--primary-soft);font-size:1rem}.quick-action strong,.quick-action small{display:block}.quick-action strong{font-size:.78rem}.quick-action small{color:var(--muted);font-size:.65rem}.pos-layout{display:grid;grid-template-columns:1fr 360px;gap:18px}.product-toolbar{position:sticky;top:78px;z-index:10;padding:12px 0;background:var(--surface)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-card{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;min-height:225px}.product-card:disabled{opacity:.55}.product-card .product-image{order:-1;height:130px;margin:-12px -12px 0;display:grid;place-items:center;border-radius:15px 15px 0 0;overflow:hidden;background:#f1f5f9;color:#94a3b8;font-size:1.7rem}.product-card .product-image img{border-radius:0!important}.product-card h3{order:1}.product-card small{order:2}.product-card strong{order:3}.product-card h3{font-size:.75rem;font-weight:600;margin:10px 0 2px;line-height:1.35}.product-card small{font-size:.6rem;color:var(--muted)}.product-card strong{margin-top:auto;color:var(--primary);font-size:.75rem}.add-badge{position:absolute;right:8px;top:8px;width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:var(--primary);color:#fff}.cart-panel{position:sticky;top:96px;height:calc(100vh - 190px - env(safe-area-inset-bottom));display:flex;flex-direction:column;padding:18px}.cart-items{flex:1;overflow:auto}.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.cart-item h4{font-size:.72rem;font-weight:600;margin:0}.cart-item small{color:var(--muted);font-size:.62rem}.qty-control{display:flex;align-items:center;gap:8px}.qty-control button{width:28px;height:28px;border:0;border-radius:8px;background:#f1f5f9}.cart-total{padding-top:14px;border-top:1px solid var(--line)}.cart-total .line{display:flex;justify-content:space-between;font-size:.72rem;margin-bottom:7px}.cart-total .grand{font-size:1.08rem;font-weight:700}.pay-btn{width:100%;min-height:54px;font-size:.9rem}.mobile-cart-bar{display:none}.chart-box{position:relative;height:270px}.subscription-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-radius:15px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.detail-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.detail-item{padding:13px;border-radius:12px;background:#f8fafc}.detail-item small,.detail-item strong{display:block}.detail-item small{color:var(--muted);font-size:.65rem}.detail-item strong{font-size:.8rem;margin-top:3px}.dt-container .dt-search input,.dt-container .dt-length select{border:1px solid var(--line);border-radius:10px;padding:7px}.dt-paging .dt-paging-button{border-radius:10px!important}.receipt{width:80mm;margin:auto;background:#fff;padding:8mm;font-family:monospace;color:#000}.receipt h1{text-align:center;font-size:17px}.receipt table{width:100%;font-size:11px}.receipt .center{text-align:center}.receipt .line{border-top:1px dashed #000;margin:8px 0}.receipt .total{font-weight:bold;font-size:14px}@media(max-width:1199px){.product-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:991.98px){.app-main.with-sidebar{margin-left:0}.app-header{height:68px}.app-content{padding-top:18px}.pos-layout{display:block}.product-toolbar{top:68px}.product-grid{grid-template-columns:repeat(3,1fr)}.cart-panel{display:none}.mobile-cart-bar{display:flex;position:fixed;left:12px;right:12px;bottom:82px;z-index:1035;align-items:center;justify-content:space-between;padding:12px 15px;border-radius:16px;background:#0f172a;color:#fff;box-shadow:0 12px 30px rgba(15,23,42,.3)}.mobile-cart-bar small,.mobile-cart-bar strong{display:block}.member-app .app-content{padding-bottom:155px}.login-shell{display:block}.login-form-side{min-height:100vh}.connection-pill span{display:none}}@media(max-width:767.98px){.panel-card{padding:15px}.metric-card{padding:15px}.metric-card h3{font-size:1.16rem}.product-grid{grid-template-columns:repeat(2,1fr)}.product-card{min-height:215px}.detail-list{grid-template-columns:1fr}.table-responsive{margin:0 -15px;padding:0 15px}.page-actions .btn{width:100%}.chart-box{height:220px}.login-form-side{align-items:start;padding-top:12vh}.subscription-alert{align-items:flex-start;flex-direction:column}}.member-app:not(.receipt-page) small,.member-app:not(.receipt-page) .small,.member-app:not(.receipt-page) .connection-pill,.member-app:not(.receipt-page) .metric-card small,.member-app:not(.receipt-page) .metric-card .trend,.member-app:not(.receipt-page) .panel-title p,.member-app:not(.receipt-page) .empty-state p,.member-app:not(.receipt-page) .btn,.member-app:not(.receipt-page) .form-control,.member-app:not(.receipt-page) .form-select,.member-app:not(.receipt-page) .form-label,.member-app:not(.receipt-page) .form-text,.member-app:not(.receipt-page) .table,.member-app:not(.receipt-page) .table thead th,.member-app:not(.receipt-page) .badge,.member-app:not(.receipt-page) .bottom-nav a,.member-app:not(.receipt-page) .quick-action strong,.member-app:not(.receipt-page) .product-card h3,.member-app:not(.receipt-page) .product-card strong,.member-app:not(.receipt-page) .cart-item h4,.member-app:not(.receipt-page) .cart-total .line,.member-app:not(.receipt-page) .detail-item strong,.member-app:not(.receipt-page) .dt-info,.member-app:not(.receipt-page) .dt-search,.member-app:not(.receipt-page) .dt-length,.member-app:not(.receipt-page) .page-link{font-size:14px!important}.impersonation-bar{position:sticky;top:78px;z-index:1015;padding:10px 0;background:#0f172a;color:#fff;font-size:.75rem}.impersonation-bar strong{color:#93c5fd}.credential-card{border-color:#bbf7d0;background:#f0fdf4}.credential-box{margin:0 0 14px;padding:14px;border:1px dashed #86efac;border-radius:12px;background:#fff;color:#0f172a;font-size:.78rem;white-space:pre-wrap;word-break:break-word}.receipt-page{background:#fff}.receipt-page .app-content{padding:16px 0}@media print{.app-sidebar,.app-header,.bottom-nav,.no-print{display:none!important}.app-main.with-sidebar{margin:0}.app-content{padding:0}.receipt{width:100%;padding:0}.panel-card{border:0;box-shadow:none}}