/* ============================================================
   KasPoint — Design System
   ============================================================ */
:root{
  --bg:#f4f5f9;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --border:#e5e7eb;
  --border-2:#d1d5db;
  --text:#111827;
  --muted:#6b7280;
  --primary:#0d9488;
  --primary-dark:#0f766e;
  --primary-soft:#ccfbf1;
  --accent:#2563eb;
  --danger:#dc2626;
  --danger-soft:#fee2e2;
  --success:#16a34a;
  --success-soft:#dcfce7;
  --warning:#d97706;
  --warning-soft:#fef3c7;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06);
  --shadow:0 4px 14px rgba(16,24,40,.08);
  --shadow-lg:0 12px 32px rgba(16,24,40,.14);
  --radius:12px;
  --radius-sm:8px;
  --sidebar-w:248px;
  --sidebar-w-mob:270px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}
h1,h2,h3,h4{margin:0 0 8px;line-height:1.25}
h1{font-size:22px}h2{font-size:18px}h3{font-size:15px}
p{margin:0 0 10px}

/* ---------- App shell ---------- */
.app{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar-w);background:#0f172a;color:#cbd5e1;flex-shrink:0;position:fixed;top:0;bottom:0;left:0;z-index:60;display:flex;flex-direction:column;transition:transform .25s ease}
.brand{display:flex;align-items:center;gap:10px;padding:18px 18px;color:#fff}
.brand-logo{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#14b8a6,#0d9488);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px;color:#fff}
.brand-text{font-weight:700;font-size:15px;letter-spacing:.2px}
.sidebar-close{margin-left:auto;background:none;border:none;color:#94a3b8;font-size:22px;cursor:pointer;display:none}
.nav{flex:1;overflow-y:auto;padding:6px 12px 20px}
.nav-group{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#64748b;margin:18px 8px 6px}
.nav-link{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:9px;color:#cbd5e1;font-size:13.5px;font-weight:500;margin-bottom:2px}
.nav-link:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-link.active{background:var(--primary);color:#fff;box-shadow:0 4px 10px rgba(13,148,136,.35)}
.nav-ico{width:18px;height:18px;flex-shrink:0;display:inline-block;
  -webkit-mask:var(--ic) center / contain no-repeat;mask:var(--ic) center / contain no-repeat;
  background-color:currentColor}
.i-home{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E")}
.i-pos{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h3l2.6 12.5a1.5 1.5 0 0 0 1.5 1.2h8.9a1.5 1.5 0 0 0 1.5-1.2L21 7H6'/%3E%3C/svg%3E")}
.i-receipt{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v18l2-1.5L9 21l2-1.5L13 21l2-1.5L17 21l2-1.5V3l-2 1.5L15 3l-2 1.5L11 3 9 4.5 7 3z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E")}
.i-chart{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-7'/%3E%3C/svg%3E")}
.i-trend{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E")}
.i-scale{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M7 21h10'/%3E%3Cpath d='M5 7h14l-3 5a3.5 3.5 0 0 1-8 0z'/%3E%3C/svg%3E")}
.i-slabo{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16M4 4v16M4 12h10M4 18h16'/%3E%3C/svg%3E")}
.i-book{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E")}
.i-journal{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h3'/%3E%3Cpath d='M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3'/%3E%3Cpath d='M8 3v18M16 3v18'/%3E%3C/svg%3E")}
.i-plus{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.i-in{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E")}
.i-out{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M17 8l-5-5-5 5'/%3E%3Cpath d='M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3C/svg%3E")}
.i-cup{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h12v7a6 6 0 0 1-12 0z'/%3E%3Cpath d='M17 8h2a2 2 0 0 1 0 5h-2'/%3E%3Cpath d='M9 21h6M12 17v4'/%3E%3C/svg%3E")}
.i-store{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 5 3h14l2 6'/%3E%3Cpath d='M5 9a2.5 2.5 0 0 0 5 0 2.5 2.5 0 0 0 5 0 2.5 2.5 0 0 0 5 0'/%3E%3Cpath d='M4 13v8h16v-8'/%3E%3C/svg%3E")}
.i-coa{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M7 13h4M7 17h8'/%3E%3C/svg%3E")}
.i-users{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13A4 4 0 0 1 16 11'/%3E%3C/svg%3E")}

/* ---------- Main ---------- */
.main{flex:1;margin-left:var(--sidebar-w);display:flex;flex-direction:column;min-width:0}
.topbar{height:62px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:14px;padding:0 22px;position:sticky;top:0;z-index:40}
.burger{display:none;background:none;border:none;font-size:22px;color:var(--text);cursor:pointer;padding:4px 8px}
.topbar-title{font-weight:700;font-size:16px}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.user-chip{display:flex;align-items:center;gap:10px}
.user-avatar{width:34px;height:34px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.user-meta{line-height:1.2}
.user-meta b{display:block;font-size:13px}
.user-meta span{font-size:11.5px;color:var(--muted)}
.content{padding:24px;max-width:1280px;width:100%;margin:0 auto}

/* ---------- Cards & KPI ---------- */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:20px;margin-bottom:22px}
.card-title{font-size:15px;font-weight:700;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:22px}
.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm)}
.kpi .k-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.kpi .k-value{font-size:24px;font-weight:800;margin-top:6px}
.kpi .k-sub{font-size:12px;color:var(--muted);margin-top:4px}
.kpi.green .k-value{color:var(--success)}
.kpi.red .k-value{color:var(--danger)}
.kpi.blue .k-value{color:var(--accent)}
.kpi.teal .k-value{color:var(--primary)}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;background:var(--surface)}
th,td{padding:11px 12px;text-align:left;border-bottom:1px solid var(--border);font-size:13.5px}
th{background:var(--surface-2);font-weight:600;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.4px;white-space:nowrap}
tr:hover td{background:#fafbfc}
td.num,th.num{text-align:right}
td.money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
tr.total-row td{font-weight:700;background:var(--surface-2)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:9px;padding:9px 15px;font-size:13.5px;font-weight:600;cursor:pointer;transition:.15s;font-family:var(--font);background:var(--primary);color:#fff}
.btn:hover{background:var(--primary-dark)}
.btn-lg{padding:13px 20px;font-size:15px;border-radius:11px}
.btn-block{width:100%}
.btn-ghost{background:transparent;color:var(--muted);border-color:var(--border)}
.btn-ghost:hover{background:var(--surface-2);color:var(--text)}
.btn-outline{background:transparent;color:var(--primary);border-color:var(--primary)}
.btn-outline:hover{background:var(--primary-soft)}
.btn-danger{background:var(--danger)}
.btn-danger:hover{background:#b91c1c}
.btn-sm{padding:6px 11px;font-size:12.5px;border-radius:7px}
.btn-success{background:var(--success)}
.btn-success:hover{background:#15803d}

/* ---------- Forms ---------- */
.field{margin-bottom:16px}
.field label{display:block;font-weight:600;font-size:13px;margin-bottom:6px}
.field .hint{font-size:12px;color:var(--muted);margin-top:4px}
input[type=text],input[type=number],input[type=password],input[type=email],input[type=date],input[type=search],select,textarea{
  width:100%;padding:10px 12px;border:1px solid var(--border-2);border-radius:9px;font-size:14px;font-family:var(--font);background:#fff;color:var(--text)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(13,148,136,.15)}
.check{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13.5px}
.check input{width:16px;height:16px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 18px}
.form-row{display:flex;gap:10px;align-items:flex-start}
.form-row .field{flex:1}

/* ---------- Alerts ---------- */
.alert{padding:12px 15px;border-radius:9px;margin-bottom:16px;font-size:13.5px;border:1px solid transparent}
.alert.success{background:var(--success-soft);color:#166534;border-color:#bbf7d0}
.alert.error{background:var(--danger-soft);color:#991b1b;border-color:#fecaca}
.alert.warning{background:var(--warning-soft);color:#92400e;border-color:#fde68a}
.alert.slim{padding:9px 14px;margin:0}

/* ---------- Badges ---------- */
.badge{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11.5px;font-weight:600}
.badge.teal{background:var(--primary-soft);color:var(--primary-dark)}
.badge.gray{background:#eef0f3;color:#4b5563}
.badge.green{background:var(--success-soft);color:#166534}
.badge.red{background:var(--danger-soft);color:#991b1b}
.badge.blue{background:#dbeafe;color:#1d4ed8}

/* ---------- Filter bar ---------- */
.filterbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:20px}
.filterbar .field{margin-bottom:0;min-width:150px}
.filterbar .btn{margin-bottom:1px}

/* ---------- Login ---------- */
.login-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f172a,#134e4a);padding:20px}
.login-card{background:#fff;border-radius:16px;box-shadow:var(--shadow-lg);padding:36px;width:100%;max-width:400px}
.login-logo{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.login-logo .brand-logo{width:44px;height:44px;font-size:22px}
.login-logo h1{font-size:20px;margin:0}
.login-sub{color:var(--muted);margin-bottom:22px;font-size:13.5px}

/* ---------- POS (tablet/phone optimized) ---------- */
.pos-app{display:flex;height:100vh;overflow:hidden}
.pos-bar{height:56px;background:#0f172a;color:#fff;display:flex;align-items:center;gap:14px;padding:0 16px;flex-shrink:0}
.pos-bar .p-title{font-weight:700;font-size:15px}
.pos-body{display:flex;flex:1;overflow:hidden}
.pos-catalog{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:14px}
.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
@media(min-width:1200px){.pos-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}
.p-item{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:14px;cursor:pointer;transition:.15s;text-align:center;user-select:none;min-height:96px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.p-item:hover{border-color:var(--primary);box-shadow:var(--shadow);transform:translateY(-1px)}
.p-item:active{background:var(--primary-soft)}
.p-item .p-name{font-weight:600;font-size:14px;line-height:1.25}
.p-item .p-price{color:var(--primary);font-weight:700;font-size:13.5px}
.p-img{width:100%;height:96px;border-radius:9px;overflow:hidden;background:var(--surface-2);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.p-img img{width:100%;height:100%;object-fit:cover;display:block}
.p-img-ph{font-size:30px;font-weight:700;color:#cbd5e1}
.img-prev{max-width:120px;max-height:120px;border-radius:10px;border:1px solid var(--border);object-fit:cover}
.thumb-ph{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--primary-soft);color:var(--primary-dark);font-weight:700;font-size:16px}
.hidden{display:none!important}
.badge-price{background:var(--primary);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:20px;letter-spacing:.5px}
.cat-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{background:#fff;border:1px solid var(--border);border-radius:30px;padding:8px 16px;font-size:13px;font-weight:600;cursor:pointer;color:var(--muted)}
.chip.active{background:var(--primary);border-color:var(--primary);color:#fff}
.pos-cart{width:360px;background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column;flex-shrink:0}
.cart-head{padding:16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.cart-head b{font-size:15px}
.cart-items{flex:1;overflow-y:auto;padding:12px 16px}
.cart-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px dashed var(--border)}
.cart-item .ci-info{flex:1;min-width:0}
.cart-item .ci-name{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-item .ci-price{font-size:12px;color:var(--muted)}
.qty{display:flex;align-items:center;gap:2px}
.qty button{width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:#fff;font-size:16px;cursor:pointer;color:var(--text);line-height:1}
.qty button:hover{background:var(--surface-2)}
.qty .q{min-width:26px;text-align:center;font-weight:700;font-size:14px}
.cart-empty{text-align:center;color:var(--muted);padding:40px 10px;font-size:13.5px}
.cart-summary{padding:14px 16px;border-top:1px solid var(--border);background:var(--surface-2)}
.sum-row{display:flex;justify-content:space-between;font-size:13.5px;padding:4px 0;color:var(--muted)}
.sum-row.total{font-size:17px;font-weight:800;color:var(--text);border-top:1px solid var(--border);margin-top:6px;padding-top:8px}
.cart-actions{padding:12px 16px 16px;display:flex;flex-direction:column;gap:9px}
.pos-fab{display:none;position:fixed;bottom:16px;right:16px;z-index:70;background:var(--primary);color:#fff;border:none;border-radius:50px;padding:14px 20px;font-weight:700;box-shadow:var(--shadow-lg);font-size:14px;align-items:center;gap:8px}
.pos-fab .cnt{background:#fff;color:var(--primary);border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}

/* ---------- Modal ---------- */
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:100;padding:16px}
.modal-overlay.open{display:flex}
.modal{background:#fff;border-radius:16px;box-shadow:var(--shadow-lg);width:100%;max-width:430px;max-height:92vh;overflow-y:auto;padding:24px;animation:pop .18s ease}
@keyframes pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
.modal h3{margin-bottom:16px}
.modal .m-actions{display:flex;gap:10px;margin-top:18px}
.modal .m-actions .btn{flex:1}

/* ---------- Receipt ---------- */
.receipt{font-family:'Courier New',monospace;font-size:12.5px;background:#fff;max-width:300px;margin:0 auto;padding:6px}
.receipt .r-head{text-align:center;border-bottom:1px dashed #000;padding-bottom:8px;margin-bottom:8px}
.receipt .r-head b{font-size:14px}
.receipt .r-line{display:flex;justify-content:space-between;gap:10px}
.receipt .r-item{display:flex;justify-content:space-between;gap:10px}
.receipt .r-total{border-top:1px dashed #000;margin-top:8px;padding-top:6px}
.receipt .r-foot{text-align:center;border-top:1px dashed #000;margin-top:8px;padding-top:6px}

/* ---------- Misc ---------- */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.page-head h1{font-size:20px}
.muted{color:var(--muted)}.small{font-size:12.5px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.flex{display:flex;gap:10px;align-items:center}
.flex-between{display:flex;justify-content:space-between;align-items:center}
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:16px}
.text-right{text-align:right}
.empty{padding:50px 20px;text-align:center;color:var(--muted)}
.search-box{position:relative;max-width:360px}
.search-box input{padding-left:36px}
.search-box .s-ico{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted)}

/* ---------- Responsive ---------- */
@media(max-width:1024px){
  .pos-cart{width:320px}
}
.i-settings{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h0a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h0a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v0a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E")}
@media(max-width:900px){
  .sidebar{transform:translateX(-100%);box-shadow:var(--shadow-lg)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-close{display:block}
  .main{margin-left:0}
  .burger{display:block}
  .content{padding:16px}
  .grid-2{grid-template-columns:1fr}
}
@media(max-width:720px){
  .pos-app{flex-direction:column}
  .pos-catalog{flex:1;padding:12px}
  .pos-grid{grid-template-columns:repeat(3,1fr)}
  .pos-cart{width:100%;position:fixed;inset:0;z-index:90;transform:translateX(100%);transition:transform .25s ease;border-radius:0}
  .pos-cart.open{transform:translateX(0)}
  .pos-fab{display:inline-flex}
  .pos-cart .cart-head .close-cart{display:inline-flex}
  .hide-mobile{display:none}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .user-meta{display:none}
}
@media(max-width:420px){
  .pos-grid{grid-template-columns:repeat(2,1fr)}
  .kpi-grid{grid-template-columns:1fr 1fr}
}

/* ---------- Print ---------- */
@media print{
  .sidebar,.topbar,.filterbar,.no-print,.pos-fab{display:none!important}
  .main{margin-left:0}
  .content{padding:0;max-width:none}
  body{background:#fff}
  .card{border:none;box-shadow:none;padding:0}
  a{color:inherit}
  .print-title{text-align:center;margin-bottom:12px}
  .print-title h1{font-size:20px;margin:0}
  .print-title .meta{font-size:12px;color:#555}
}