:root{--green:#16a34a;--green2:#22c55e;--ink:#0f172a;--muted:#64748b;--soft:#f4f7f6;--card:#fff;--line:#e5e7eb;--danger:#ef4444;--warn:#f59e0b;--blue:#2563eb;--shadow:0 14px 35px rgba(15,23,42,.08);--radius:24px}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(135deg,#f8fafc,#eefdf3);color:var(--ink)}a{text-decoration:none;color:inherit}.app-shell{max-width:1480px;margin:0 auto;padding:22px}.hero-card{background:rgba(255,255,255,.88);border:1px solid rgba(226,232,240,.9);border-radius:30px;box-shadow:var(--shadow);padding:22px;display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.hero-card h1{margin:2px 0;font-size:30px;letter-spacing:-.04em}.brand-title-row{display:flex;align-items:center;gap:14px;min-width:280px}.app-logo{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#16a34a,#bbf7d0);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 25px rgba(22,163,74,.18);border:1px solid rgba(22,163,74,.22);flex:0 0 auto}.app-logo span{color:#fff;font-weight:1000;font-size:18px;letter-spacing:-.04em}.app-logo img{width:100%;height:100%;object-fit:cover;border-radius:18px}.hero-card p{margin:0;color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:12px;font-weight:800;color:var(--green)!important;letter-spacing:.1em}.nav-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.chip,.btn{border:0;border-radius:999px;background:#ecfdf5;color:#065f46;padding:10px 14px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:7px;font-size:13px}.chip-icon{font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;min-width:16px}.chip span:last-child{white-space:nowrap}.chip:hover,.btn:hover{filter:brightness(.96)}.btn.primary{background:linear-gradient(135deg,var(--green),var(--green2));color:#fff}.btn.dark{background:#0f172a;color:#fff}.btn.danger{background:#fee2e2;color:#991b1b}.ghost{background:#f8fafc;color:#334155;border:1px solid var(--line)}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}.stat-card,.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.stat-card span{font-size:12px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}.stat-card strong{display:block;font-size:25px;margin-top:8px}.stat-card small{color:var(--green);font-weight:800}.layout-2{grid-template-columns:1.7fr .8fr}.layout-3{grid-template-columns:1.3fr .7fr}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;align-items:center}.input,select,textarea{width:100%;border:1px solid var(--line);border-radius:15px;padding:12px 13px;background:#fff;color:var(--ink);outline:0}textarea{min-height:90px}.toolbar .input,.toolbar select{max-width:230px}.table-wrap{overflow:auto;border-radius:20px;border:1px solid var(--line)}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:13px 14px;text-align:left;border-bottom:1px solid #eef2f7;font-size:14px;white-space:nowrap}th{font-size:12px;text-transform:uppercase;color:#64748b;background:#f8fafc;letter-spacing:.06em}tr:hover td{background:#fbfefc}.badge{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#eef2ff;color:#3730a3}.badge.paid,.badge.delivered,.badge.completed,.badge.active{background:#dcfce7;color:#166534}.badge.partial,.badge.pending,.badge.in-transit{background:#fef3c7;color:#92400e}.badge.unpaid,.badge.out-of-stock,.badge.cancelled,.badge.suspended,.badge.expired,.badge.overdue{background:#fee2e2;color:#991b1b}.badge.low-stock{background:#ffedd5;color:#9a3412}.alert{border-radius:18px;margin:12px 0;padding:13px 15px;font-weight:700}.alert-success{background:#dcfce7;color:#166534}.alert-danger{background:#fee2e2;color:#991b1b}.alert-warning{background:#fef3c7;color:#92400e}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-title h2{font-size:18px;margin:0}.muted{color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-card{border:1px solid var(--line);border-radius:22px;padding:12px;background:#fff;display:grid;gap:8px}.product-img{height:92px;border-radius:18px;background:linear-gradient(135deg,#dcfce7,#f8fafc);display:flex;align-items:center;justify-content:center;font-size:34px}.cart-item{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:10px 0}.totals{background:#f8fafc;border-radius:20px;padding:14px;margin-top:12px}.totals div{display:flex;justify-content:space-between;margin:8px 0}.totals .grand{font-size:22px;font-weight:900;color:#065f46}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.modal{position:fixed;inset:0;background:rgba(15,23,42,.35);display:none;align-items:center;justify-content:center;padding:20px;z-index:50}.modal.active{display:flex}.modal-card{background:#fff;border-radius:28px;max-width:760px;width:100%;padding:20px;box-shadow:0 24px 70px rgba(15,23,42,.25);max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.x{border:0;background:#f1f5f9;border-radius:999px;padding:8px 12px;cursor:pointer}.receipt{background:#fff;border:1px dashed #94a3b8;border-radius:18px;padding:16px;font-family:monospace}.receipt h3{text-align:center;margin:4px 0}.soft-footer{margin:18px 0;color:#64748b;text-align:center;font-size:13px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:18px}.login-card{max-width:980px;width:100%;background:#fff;border-radius:34px;box-shadow:var(--shadow);display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid var(--line)}.login-brand{background:linear-gradient(135deg,#052e16,#16a34a);color:white;padding:46px;display:flex;flex-direction:column;justify-content:center}.login-brand h1{font-size:46px;margin:0 0 10px;letter-spacing:-.06em}.login-form{padding:46px}.login-form h2{font-size:30px;margin-top:0}.quick-kpi{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.mini{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:12px}.chart-box{height:260px}.right-list{display:grid;gap:10px}.list-row{display:flex;justify-content:space-between;gap:10px;padding:12px;background:#f8fafc;border-radius:16px}.empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:20px;padding:24px;text-align:center;color:#64748b}.status-dot{display:inline-block;width:9px;height:9px;background:#22c55e;border-radius:50%;margin-right:6px}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.layout-2,.layout-3{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.brand-title-row{min-width:0}.app-logo{width:46px;height:46px;border-radius:15px}.app-logo img{border-radius:15px}.app-shell{padding:12px}.hero-card{display:block}.nav-chips{justify-content:flex-start;margin-top:14px}.stats,.form-grid,.product-grid{grid-template-columns:1fr}.login-card{grid-template-columns:1fr}.login-brand{padding:28px}.login-form{padding:26px}.toolbar .input,.toolbar select{max-width:none}.hero-card h1{font-size:24px}}@media print{body{background:#fff}.hero-card,.nav-chips,.toolbar,.btn,.soft-footer{display:none!important}.app-shell{padding:0}.card{box-shadow:none;border:0}.receipt{border:0}}
.logo-preview-box{display:grid;place-items:center;text-align:center;gap:12px;padding:20px}.app-logo.big{width:92px;height:92px;border-radius:28px}.app-logo.big img{border-radius:28px}.app-logo.big span{font-size:28px}
.page-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.sidebar-stack{display:grid;gap:16px}.filter-card{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);padding:16px;margin-bottom:16px}.filter-grid{display:grid;grid-template-columns:1.3fr repeat(4,minmax(150px,1fr));gap:12px;align-items:end}.filter-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.stat-card{display:flex;gap:14px;align-items:center}.stat-icon{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#ecfdf5,#eff6ff);display:flex;align-items:center;justify-content:center;font-size:26px;flex:0 0 54px}.stat-copy{display:grid;gap:4px}.stat-copy span{font-size:12px;color:var(--muted);font-weight:800;text-transform:none;letter-spacing:0}.stat-copy strong{font-size:18px;margin:0}.stat-copy small{font-size:12px}.table-card .table-wrap{border-radius:18px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.card-head h2{margin:0;font-size:18px}.soft-note{font-size:12px;color:var(--muted)}.mini-list{display:grid;gap:12px}.mini-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f7}.mini-row:last-child{border-bottom:0}.mini-row .title{font-weight:700}.mini-row small{color:var(--muted)}.metric-line{display:flex;justify-content:space-between;gap:10px;margin:10px 0}.chart-legend-list{display:grid;gap:10px;margin-top:8px}.chart-legend-row{display:flex;justify-content:space-between;gap:10px;font-size:14px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}.dot.g{background:#22c55e}.dot.b{background:#3b82f6}.dot.y{background:#f59e0b}.dot.r{background:#ef4444}.dot.p{background:#a855f7}.two-col-bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.three-col{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.action-pills{display:flex;gap:8px;flex-wrap:wrap}.icon-pill{width:34px;height:34px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff;color:#475569;font-weight:800}.status-num{font-weight:800}.table-muted{color:var(--muted);font-size:12px}.inline-form{display:inline}.page-subtitle{max-width:660px}.logo-lockup{display:flex;align-items:center;gap:14px}.logo-lockup .title-wrap{display:grid;gap:4px}.logo-avatar{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,var(--green),#60a5fa);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900}.logo-avatar img{width:100%;height:100%;object-fit:cover;border-radius:18px}.search-icon-input{position:relative}.search-icon-input input{padding-left:42px}.search-icon-input::before{content:'🔎';position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:14px;opacity:.65}.note-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:12px 14px;color:#475569;font-size:13px}
@media(max-width:1200px){.page-grid{grid-template-columns:1fr}.filter-grid{grid-template-columns:1fr 1fr}.three-col,.two-col-bottom{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.filter-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.stat-card{align-items:flex-start}}

.receipt-page-layout{align-items:start}.receipt-preview-card{display:flex;flex-direction:column}.receipt-80x48{width:80mm;min-height:48mm;max-width:100%;margin:0 auto;border:1px dashed #94a3b8;border-radius:10px;padding:10px 10px 12px;background:#fff;font-family:'Courier New',monospace;font-size:11px;line-height:1.35;color:#111827}.receipt-header{display:flex;align-items:flex-start;gap:8px}.receipt-logo{width:52px;height:52px;border-radius:10px;border:1px solid #cbd5e1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f8fafc;flex:0 0 52px}.receipt-logo img{width:100%;height:100%;object-fit:cover}.receipt-logo span{font-weight:900;font-size:16px;color:#16a34a}.receipt-company{flex:1;min-width:0;text-align:center}.receipt-company h3{font-size:13px;margin:0 0 2px;line-height:1.2}.receipt-contact{font-size:10px;line-height:1.25;word-break:break-word}.receipt-rule{border-top:1px dashed #64748b;margin:7px 0}.receipt-meta div{display:flex;justify-content:space-between;gap:8px;font-size:10px}.receipt-items-table{width:100%;border-collapse:collapse}.receipt-items-table th,.receipt-items-table td{font-size:10px;padding:4px 0;border-bottom:1px dashed #e5e7eb;white-space:normal}.receipt-items-table th:nth-child(2),.receipt-items-table td:nth-child(2),.receipt-items-table th:nth-child(3),.receipt-items-table td:nth-child(3){text-align:right}.receipt-totals div{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin:2px 0}.receipt-totals .grand{font-size:12px;font-weight:900}.receipt-footer{text-align:center;margin-top:6px}.receipt-message{font-size:10px;margin-bottom:4px}.receipt-powered{font-size:10px;font-weight:700}@media print{body.printing-receipt .no-print,body.printing-receipt .hero-card,body.printing-receipt .soft-footer{display:none!important}body.printing-receipt .app-shell{padding:0!important;max-width:none!important}body.printing-receipt .receipt-preview-card{border:0!important;box-shadow:none!important;padding:0!important}body.printing-receipt .receipt-80x48{width:80mm!important;min-height:48mm!important;border:0!important;border-radius:0!important;margin:0 auto!important;padding:6mm 4mm!important;box-shadow:none!important}body.printing-receipt .receipt-page-layout{display:block!important}body.printing-receipt .card{border:0!important;box-shadow:none!important;background:#fff!important}}

/* Receipt page layout restore: no-print must not override grid/cards outside print mode */
.grid.stats.no-print{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;margin-bottom:16px!important}
.receipt-page-layout{grid-template-columns:1.7fr .8fr!important}
@media(max-width:1050px){.grid.stats.no-print{grid-template-columns:repeat(2,minmax(0,1fr))!important}.receipt-page-layout{grid-template-columns:1fr!important}}
@media(max-width:720px){.grid.stats.no-print{grid-template-columns:1fr!important}}
@media print{.no-print{display:none!important}}

/* Modern POS receipt selected by user */
.receipt-stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}.receipt-page-layout{align-items:start}.receipt-preview-card{display:flex;flex-direction:column;align-items:center}.pos-receipt{width:80mm;max-width:100%;margin:0 auto;background:#fff;color:#111827;font-family:'Segoe UI',Arial,sans-serif;font-weight:500;filter:drop-shadow(0 18px 35px rgba(15,23,42,.22))}.slip-body{padding:16px 14px;background:#fff}.slip-cut{height:10px;background:linear-gradient(135deg,transparent 75%,#fff 0) 0 0/12px 10px,linear-gradient(225deg,transparent 75%,#fff 0) 0 0/12px 10px}.slip-cut-top{transform:rotate(180deg)}.slip-header{text-align:center}.slip-logo{width:58px;height:58px;margin:0 auto 6px;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#15803d;font-weight:900;border:0}.slip-logo img{width:100%;height:100%;object-fit:contain}.slip-logo span{font-size:23px;border:4px solid #15803d;border-radius:12px;padding:6px 8px}.slip-header h2{font-size:21px;margin:4px 0 10px;letter-spacing:.14em;font-weight:900}.slip-contact{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;margin:4px 0;font-weight:600}.slip-contact span{color:#15803d}.slip-contact b{font-weight:700}.slip-dash{border-top:1px dashed #111827;margin:12px 0}.slip-line{border-top:1px solid #111827;margin:8px 0}.slip-meta{display:grid;gap:7px;font-size:12px;font-weight:600}.slip-meta .meta-row{display:grid;grid-template-columns:108px 10px minmax(0,1fr);align-items:center;gap:4px}.slip-meta .meta-label{color:#111827;white-space:nowrap;font-weight:600}.slip-meta .meta-colon{text-align:center;color:#111827;font-weight:700}.slip-meta .meta-value{font-weight:700;text-align:left;white-space:normal;word-break:break-word;line-height:1.25}.slip-table{width:100%;border-collapse:collapse;background:#fff}.slip-table th{font-size:12px;text-align:left;border-bottom:1px solid #111827;padding:6px 3px;letter-spacing:0;text-transform:none;color:#111827;background:#fff;font-weight:800}.slip-table td{font-size:12px;padding:7px 3px;border-bottom:1px dotted #9ca3af;white-space:normal;font-weight:600}.slip-table th:nth-child(2),.slip-table td:nth-child(2){text-align:center;width:46px}.slip-table th:nth-child(3),.slip-table td:nth-child(3){text-align:right;width:88px}.slip-totals{display:grid;gap:5px;font-size:13px;font-weight:600}.slip-totals div,.slip-paid div{display:flex;justify-content:space-between;gap:12px}.slip-totals b,.slip-paid b{font-weight:700}.slip-total-box{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #15803d;border-bottom:1px solid #15803d;padding:8px 0;margin:9px 0;color:#166534}.slip-total-box span{font-size:20px;font-weight:900;letter-spacing:.12em}.slip-total-box b{font-size:20px;letter-spacing:.08em;font-weight:900}.slip-paid{display:grid;gap:6px;font-size:13px;font-weight:600}.slip-paid div:last-child b,.slip-paid div:last-child span{font-weight:900;color:#166534}.slip-footer{text-align:center}.slip-footer .heart{font-size:22px;color:#166534;line-height:1}.slip-footer p{font-size:13px;margin:4px 0;line-height:1.35;font-weight:600}.star-line{display:flex;align-items:center;gap:10px;justify-content:center;color:#166534;margin:12px 0 8px}.star-line span{height:1px;width:60px;background:#166534;display:inline-block}.powered{font-size:12px!important;font-weight:700}.powered b,.powered strong{color:#166534}
@media(max-width:1200px){.receipt-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){.receipt-stats{grid-template-columns:1fr!important}.pos-receipt{width:100%}}
@media print{@page{size:80mm auto;margin:0}body.printing-receipt{background:#fff!important}body.printing-receipt .no-print,body.printing-receipt .hero-card,body.printing-receipt .soft-footer{display:none!important}body.printing-receipt .app-shell{padding:0!important;max-width:none!important}body.printing-receipt .receipt-preview-card{border:0!important;box-shadow:none!important;padding:0!important;width:80mm!important;margin:0!important}body.printing-receipt .receipt-page-layout{display:block!important}body.printing-receipt .card{border:0!important;box-shadow:none!important;background:#fff!important}body.printing-receipt .pos-receipt{width:80mm!important;filter:none!important;margin:0!important}.slip-body{box-shadow:none!important}}

.slip-meta div::before{content:none!important}.slip-meta span::after{content:none!important}


/* POS discount controls */
.discount-box{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:12px;margin:12px 0}
.discount-controls{display:grid;grid-template-columns:120px 1fr;gap:10px;margin-top:8px}
@media(max-width:720px){.discount-controls{grid-template-columns:1fr}}

/* Final receipt print override: print only the receipt exactly as previewed */
.pos-receipt,.pos-receipt *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
@media print{
  @page{size:80mm auto;margin:0!important}
  html,body{width:80mm!important;background:#fff!important;margin:0!important;padding:0!important}
  body.printing-receipt *{visibility:hidden!important}
  body.printing-receipt #receiptPrintArea,
  body.printing-receipt #receiptPrintArea *{visibility:visible!important}
  body.printing-receipt #receiptPrintArea{position:absolute!important;left:0!important;top:0!important;width:80mm!important;margin:0!important;background:#fff!important;filter:none!important;box-shadow:none!important}
  body.printing-receipt .slip-body{padding:5mm 4mm!important;background:#fff!important;box-shadow:none!important}
  body.printing-receipt .slip-cut{display:none!important}
  body.printing-receipt .receipt-preview-card,
  body.printing-receipt .card,
  body.printing-receipt .app-shell{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;max-width:none!important;background:#fff!important}
}
.login-card-clean{grid-template-columns:1fr 1fr}.login-brand-simple{background:linear-gradient(135deg,#052e16,#16a34a);padding:46px;align-items:center;text-align:center;min-height:520px}.login-brand-center{display:grid;place-items:center;gap:18px;width:100%}.login-logo-mark{width:96px;height:96px;border-radius:30px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);box-shadow:0 20px 50px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center}.login-logo-mark span{width:68px;height:68px;border-radius:22px;background:#fff;color:#15803d;display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:1000;letter-spacing:-.06em}.login-brand-simple h1{margin:0;color:#fff;font-size:42px;letter-spacing:-.06em}.login-form-clean{display:flex;flex-direction:column;justify-content:center}.login-form-clean h2{margin-bottom:22px}.login-form-clean label{font-weight:800;color:#334155;margin-bottom:6px}@media(max-width:720px){.login-card-clean{grid-template-columns:1fr}.login-brand-simple{min-height:260px;padding:34px}.login-logo-mark{width:78px;height:78px;border-radius:24px}.login-logo-mark span{width:56px;height:56px;border-radius:18px;font-size:21px}.login-brand-simple h1{font-size:32px}}

.login-logo-mark img{width:74px;height:74px;object-fit:contain;border-radius:18px;background:#fff;padding:8px}.login-logo-mark:has(img){background:rgba(255,255,255,.18)}
.login-submit-btn{margin-top:26px;height:48px;font-size:15px}.login-form-clean .input{margin-bottom:4px}
.login-support{margin-top:2px;color:#d1fae5;font-size:15px;font-weight:800;letter-spacing:.01em;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:10px 18px;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}.login-support .support-label{color:#d1fae5}.login-support .support-icon{font-size:16px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.login-support strong{color:#fff;font-weight:1000}

/* Reports page alignment fix: keep cards straight and equal per row */
.reports-equal-row{align-items:stretch;grid-auto-rows:1fr}
.reports-equal-row>.card{height:100%;min-width:0;display:flex;flex-direction:column}
.reports-chart-row>.card{min-height:328px}
.reports-chart-row .chart-box{height:248px;min-height:248px;flex:1;position:relative}
.reports-chart-row canvas{width:100%!important;height:100%!important;display:block}
.reports-table-row>.card{min-height:268px}
.reports-table-row .table-wrap{flex:1;width:100%}
.reports-table-row table{height:auto}
@media(max-width:1050px){.reports-chart-row>.card,.reports-table-row>.card{min-height:auto}.reports-chart-row .chart-box{height:260px;min-height:260px}}


/* Reports boundary fit fix: force report cards to stay inside the main content width */
.reports-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  width:100%;
  max-width:100%;
  overflow:visible;
  align-items:stretch;
}
.reports-grid-3>.card{
  min-width:0;
  width:100%;
  max-width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.reports-grid-3 .card-head{min-width:0;flex-wrap:wrap}
.reports-grid-3 .card-head h2{min-width:0;line-height:1.25}
.reports-chart-row>.card{min-height:328px}
.reports-chart-row .chart-box{
  width:100%;
  max-width:100%;
  height:248px;
  min-height:248px;
  flex:1;
  position:relative;
  overflow:hidden;
}
.reports-chart-row canvas{
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  display:block;
}
.reports-table-row>.card{min-height:268px}
.reports-table-row .table-wrap{
  flex:1;
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.reports-table-row table{
  width:100%;
  table-layout:fixed;
}
.reports-table-row th,
.reports-table-row td{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  font-size:13px;
  padding:12px 10px;
}
.reports-table-row .badge{
  white-space:normal;
  text-align:center;
}
@media(max-width:1200px){
  .reports-grid-3{grid-template-columns:1fr}
  .reports-chart-row>.card,.reports-table-row>.card{min-height:auto}
  .reports-chart-row .chart-box{height:260px;min-height:260px}
  .reports-table-row .table-wrap{overflow:auto}
  .reports-table-row th,.reports-table-row td{white-space:nowrap}
}

/* Reports filter ease fix: compact, clear, and fully inside boundary */
.reports-filter-pro{overflow:hidden;max-width:100%}
.reports-filter-head{margin-bottom:14px!important;align-items:flex-start}
.quick-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 14px;width:100%}
.quick-period{border:1px solid var(--line);border-radius:18px;background:#f8fafc;padding:12px 14px;display:grid;gap:3px;min-width:0;transition:.18s ease}
.quick-period b{font-size:14px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-period small{font-size:11px;color:var(--muted);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-period.active,.quick-period:hover{background:linear-gradient(135deg,var(--green),var(--green2));border-color:transparent;box-shadow:0 10px 24px rgba(22,163,74,.18);transform:translateY(-1px)}
.quick-period.active b,.quick-period.active small,.quick-period:hover b,.quick-period:hover small{color:#fff}
.easy-report-filter{display:grid;grid-template-columns:1fr 1fr 1fr 1.2fr 1.1fr auto;gap:10px;align-items:end;width:100%;max-width:100%}
.filter-field{min-width:0}.filter-field label{display:block;font-size:12px;font-weight:900;color:#475569;margin:0 0 6px}.filter-field .input,.filter-field select{height:44px;border-radius:14px;min-width:0}
.filter-submit-row{display:flex;gap:8px;align-items:end;justify-content:flex-start;min-width:max-content}.filter-submit-row .btn{height:44px;white-space:nowrap}
.report-export-row{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:14px;flex-wrap:wrap;border-top:1px solid #eef2f7;padding-top:14px}
@media(max-width:1200px){.easy-report-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-submit-row{grid-column:1/-1}.quick-periods{grid-template-columns:repeat(2,minmax(0,1fr))}.report-export-row{justify-content:flex-start}}
@media(max-width:720px){.easy-report-filter{grid-template-columns:1fr}.quick-periods{grid-template-columns:1fr}.filter-submit-row{min-width:0;flex-wrap:wrap}.filter-submit-row .btn,.report-export-row .btn{width:100%;justify-content:center}}

.date-range-picker{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}.date-range-picker span{font-size:12px;font-weight:900;color:#64748b;text-align:center}.date-range-picker input[type="date"]{height:44px;min-width:0;padding:10px 11px} @media(max-width:720px){.date-range-picker{grid-template-columns:1fr}.date-range-picker span{text-align:left}}


/* Reports horizontal filter fix: keep Date Range, Report Type, Payment Method and actions in one straight row */
.reports-horizontal-filter{
  display:grid!important;
  grid-template-columns:minmax(285px,1fr) minmax(150px,.55fr) minmax(150px,.55fr) auto auto auto auto auto!important;
  gap:8px!important;
  align-items:end!important;
  width:100%;
  max-width:100%;
}
.reports-horizontal-filter>div{min-width:0}
.reports-horizontal-filter label{
  display:block;
  font-size:12px;
  font-weight:800;
  margin:0 0 5px;
  color:#334155;
}
.reports-horizontal-filter .input,
.reports-horizontal-filter select{
  height:40px;
  min-height:40px;
  padding:8px 10px;
  border-radius:13px;
  font-size:13px;
}
.reports-horizontal-filter .btn{
  height:40px;
  min-height:40px;
  padding:8px 11px;
  font-size:12px;
  white-space:nowrap;
  justify-content:center;
}
.reports-horizontal-filter .date-range-picker{
  grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);
  gap:5px;
  width:100%;
}
.reports-horizontal-filter .date-range-picker span{
  font-size:11px;
  line-height:40px;
}
.reports-horizontal-filter input[type="date"]{
  min-width:0;
  width:100%;
}
@media(max-width:1320px){
  .reports-horizontal-filter{
    grid-template-columns:minmax(255px,1fr) minmax(135px,.5fr) minmax(135px,.5fr) auto auto auto auto auto!important;
    gap:6px!important;
  }
  .reports-horizontal-filter .btn{padding:8px 9px;font-size:11px}
  .reports-horizontal-filter .input,.reports-horizontal-filter select{font-size:12px;padding:8px 8px}
}
@media(max-width:1120px){
  .reports-horizontal-filter{grid-template-columns:1fr 1fr!important}
  .reports-horizontal-filter .btn{width:100%}
  .reports-horizontal-filter .date-range-picker{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)}
}
@media(max-width:720px){
  .reports-horizontal-filter{grid-template-columns:1fr!important}
  .reports-horizontal-filter .date-range-picker{grid-template-columns:1fr}
  .reports-horizontal-filter .date-range-picker span{line-height:normal;text-align:left}
}


/* Reports chart layout fix: Sales Trend and Payment Methods share the row 50/50 */
.reports-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  width:100%;
  max-width:100%;
  align-items:stretch;
}
.reports-grid-1{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  width:100%;
  max-width:100%;
  align-items:stretch;
}
.reports-grid-2>.card,.reports-grid-1>.card{
  min-width:0;
  width:100%;
  max-width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.reports-main-chart-row>.card{min-height:328px}
@media(max-width:900px){
  .reports-grid-2{grid-template-columns:1fr}
}

/* Reports two-cards-per-area fix */
.reports-mixed-row>.card{min-height:328px}
.reports-mixed-row .table-wrap,
.reports-grid-2.reports-table-row .table-wrap{
  flex:1;
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.reports-mixed-row table,
.reports-grid-2.reports-table-row table{
  width:100%;
  table-layout:fixed;
}
.reports-mixed-row th,
.reports-mixed-row td,
.reports-grid-2.reports-table-row th,
.reports-grid-2.reports-table-row td{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  font-size:13px;
  padding:12px 10px;
}
@media(max-width:900px){
  .reports-mixed-row>.card{min-height:auto}
  .reports-mixed-row .table-wrap,
  .reports-grid-2.reports-table-row .table-wrap{overflow:auto}
}


/* Final reports split fix: force every wide report area to be divided into two equal cards */
.reports-split-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:16px!important;
  width:100%!important;
  max-width:100%!important;
  align-items:stretch!important;
}
.reports-split-row>.card{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.reports-split-row .chart-box{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.reports-split-row canvas{
  max-width:100%!important;
}
@media(max-width:900px){
  .reports-split-row{grid-template-columns:1fr!important;}
}


/* Reports size restore: keep report cards inside boundary with stable 50/50 sizing */
.reports-page{width:100%;max-width:100%;overflow-x:hidden}
.reports-page *{box-sizing:border-box}
.reports-page .stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important;width:100%!important;max-width:100%!important}
.reports-page .stat-card{min-width:0!important;width:100%!important;max-width:100%!important;min-height:100px!important;overflow:hidden!important;padding:18px!important}
.reports-page .stat-copy{min-width:0!important;overflow:hidden!important}
.reports-page .stat-copy strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.reports-page .reports-split-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px!important;width:100%!important;max-width:100%!important;align-items:stretch!important;margin-left:0!important;margin-right:0!important}
.reports-page .reports-split-row>.card{min-width:0!important;width:100%!important;max-width:100%!important;height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:18px!important}
.reports-page .reports-main-chart-row>.card,.reports-page .reports-mixed-row>.card{min-height:328px!important}
.reports-page .reports-table-row>.card{min-height:268px!important}
.reports-page .chart-box{width:100%!important;max-width:100%!important;height:248px!important;min-height:248px!important;max-height:248px!important;overflow:hidden!important;position:relative!important;flex:1 0 auto!important}
.reports-page .chart-box canvas{width:100%!important;height:100%!important;max-width:100%!important;display:block!important}
.reports-page .table-wrap{width:100%!important;max-width:100%!important;overflow:hidden!important}
.reports-page table{width:100%!important;max-width:100%!important;table-layout:fixed!important}
.reports-page th,.reports-page td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
@media(max-width:1180px){.reports-page .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){.reports-page .reports-split-row{grid-template-columns:1fr!important}.reports-page .reports-main-chart-row>.card,.reports-page .reports-mixed-row>.card,.reports-page .reports-table-row>.card{min-height:auto!important}.reports-page .table-wrap{overflow:auto!important}.reports-page th,.reports-page td{white-space:nowrap!important}}
@media(max-width:720px){.reports-page .stats{grid-template-columns:1fr!important}.reports-page .stat-card{min-height:auto!important}}

/* System visual scale: match browser zoom 90% by default without requiring the user to change browser zoom. */
@media screen {
  body:not(.printing-receipt){
    zoom: .90;
  }
}

@supports not (zoom: .90) {
  @media screen {
    body:not(.printing-receipt) .app-shell,
    body:not(.printing-receipt) .login-wrap{
      transform: scale(.90);
      transform-origin: top center;
    }
    body:not(.printing-receipt) .app-shell{
      width:111.111%;
      max-width:1644px;
    }
    body:not(.printing-receipt) .login-wrap{
      width:111.111%;
      margin-left:-5.555%;
    }
  }
}

/* Bar + Restaurant POS flow: split drinks and food clearly without breaking the cart area */
.pos-sale-layout.foodbar-mode{
  grid-template-columns:minmax(0,1.65fr) minmax(340px,.75fr);
  align-items:start;
}
.pos-products-card{min-width:0;overflow:hidden}
.foodbar-flow-note{
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  color:#166534;
  border-radius:18px;
  padding:10px 12px;
  font-size:13px;
  margin-bottom:12px;
}
.foodbar-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  align-items:start;
  width:100%;
  max-width:100%;
}
.foodbar-panel{
  min-width:0;
  width:100%;
  max-width:100%;
  border:1px solid #e5e7eb;
  background:#fbfefc;
  border-radius:22px;
  padding:12px;
  overflow:hidden;
}
.foodbar-panel + .other-panel,
.other-panel{margin-top:12px}
.foodbar-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:10px;
  font-weight:900;
  color:#0f172a;
}
.foodbar-panel-head small{
  background:#ecfdf5;
  color:#166534;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.foodbar-product-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.foodbar-product-card{
  border-radius:18px;
  padding:10px;
  gap:6px;
  min-width:0;
}
.foodbar-product-card .product-img{
  height:48px;
  border-radius:14px;
  font-size:24px;
}
.foodbar-product-card b{
  font-size:13px;
  line-height:1.25;
  min-height:32px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.foodbar-product-card small{
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.foodbar-product-card strong{font-size:13px}
.foodbar-product-card .btn{
  padding:8px 10px;
  font-size:12px;
  justify-content:center;
}
.compact-empty{
  padding:14px;
  font-size:12px;
  border-radius:16px;
}
.other-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.kitchen-mode .foodbar-split{grid-template-columns:1fr}
.kitchen-mode .foods-panel{max-width:100%}
.kitchen-mode .foodbar-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.kitchen-mode .foodbar-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.kitchen-mode .foodbar-product-grid{grid-template-columns:1fr}}

@media(max-width:1180px){
  .pos-sale-layout.foodbar-mode{grid-template-columns:1fr}
  .other-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .foodbar-split{grid-template-columns:1fr}
  .foodbar-product-grid,.other-grid{grid-template-columns:1fr}
}

/* Kitchen order flow */
.kitchen-orders-card{margin-bottom:16px}
.kitchen-order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kitchen-order-card{border:1px solid var(--line);border-radius:20px;background:#fff;padding:14px;display:grid;gap:10px;min-width:0}
.kitchen-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.kitchen-order-head b{display:block;font-size:15px}.kitchen-order-head small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.kitchen-order-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;font-size:12px;color:var(--muted)}
.kitchen-order-meta span{background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;padding:7px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kitchen-order-items{display:grid;gap:6px;background:#f8fafc;border-radius:14px;padding:10px}
.kitchen-order-items div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #dbe3ee;padding-bottom:6px;font-size:13px}.kitchen-order-items div:last-child{border-bottom:0;padding-bottom:0}
.kitchen-actions{display:flex;flex-wrap:wrap;gap:8px}.kitchen-actions .btn{padding:8px 11px;font-size:12px}
.kitchen-note{font-size:12px;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:8px}
@media(max-width:1050px){.kitchen-order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.kitchen-order-grid{grid-template-columns:1fr}.kitchen-order-meta{grid-template-columns:1fr}}

/* Admin Kitchen management page */
.kitchen-filter-card{margin-bottom:14px}
.kitchen-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.kitchen-toolbar .input{max-width:190px}
.kitchen-stats{margin-bottom:16px}
.kitchen-page-grid{grid-template-columns:minmax(0,1.65fr) minmax(280px,.55fr);align-items:start}
.kitchen-orders-main{min-width:0;overflow:hidden}
.kitchen-admin-order-list{display:grid;gap:12px}
.kitchen-admin-order-card{border:1px solid var(--line);border-radius:22px;background:#fff;padding:14px;display:grid;gap:12px;min-width:0;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.kitchen-admin-order-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px dashed #e5e7eb;padding-bottom:10px}
.kitchen-admin-order-head strong{display:block;font-size:16px;color:#0f172a}.kitchen-admin-order-head small{display:block;color:var(--muted);font-size:12px;margin-top:4px;line-height:1.5}
.kitchen-admin-items{display:grid;gap:8px;background:#f8fafc;border:1px solid #eef2f7;border-radius:16px;padding:10px}
.kitchen-admin-items div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #dbe3ee;padding-bottom:7px;font-size:13px}.kitchen-admin-items div:last-child{border-bottom:0;padding-bottom:0}
.kitchen-admin-items span{min-width:0;overflow:hidden;text-overflow:ellipsis}.kitchen-admin-items small{color:var(--muted);font-weight:800}.kitchen-admin-items b{white-space:nowrap}
.kitchen-admin-order-foot{display:grid;grid-template-columns:90px 110px 70px minmax(0,1fr);gap:10px;align-items:center}
.kitchen-admin-order-foot small{display:block;color:var(--muted);font-size:11px;font-weight:800}.kitchen-admin-order-foot strong{display:block;color:#0f172a;font-size:14px}
.kitchen-status-form{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0}.kitchen-status-form .btn{padding:8px 10px;font-size:12px}
.kitchen-progress-chart{height:220px;min-height:220px;max-height:220px}
.kitchen-progress-chart canvas{max-height:220px!important}
@media(max-width:1100px){.kitchen-page-grid{grid-template-columns:1fr}.kitchen-admin-order-foot{grid-template-columns:repeat(3,minmax(0,1fr));}.kitchen-status-form{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:720px){.kitchen-admin-order-head{display:grid}.kitchen-admin-order-foot{grid-template-columns:1fr}.kitchen-toolbar .input{max-width:100%}.kitchen-toolbar>*{width:100%;justify-content:center}}
.notification-row.unread{background:#ecfdf5;border:1px solid #bbf7d0}.notification-list{display:grid;gap:10px}.notification-row{align-items:center}


/* Live notification badge + alarm indicator */
.notification-chip{position:relative;padding-right:18px;overflow:visible}
.notification-chip.has-unread{background:#fff1f2;color:#991b1b;border:1px solid #fecdd3}
.nav-notification-badge{position:absolute;top:-7px;right:-7px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;font-weight:1000;line-height:22px;text-align:center;box-shadow:0 8px 18px rgba(220,38,38,.35);border:2px solid #fff;animation:notifyPulse 1.2s infinite}
@keyframes notifyPulse{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(220,38,38,.5)}70%{transform:scale(1.06);box-shadow:0 0 0 8px rgba(220,38,38,0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(220,38,38,0)}}
.notification-toast{position:fixed;right:18px;top:18px;z-index:9999;background:#111827;color:#fff;border-radius:18px;padding:14px 16px;box-shadow:0 18px 45px rgba(15,23,42,.28);display:none;max-width:320px;font-weight:800}
.notification-toast.show{display:block}
.notification-toast small{display:block;color:#d1d5db;font-weight:700;margin-top:3px}

.kitchen-food-name{font-weight:700;color:#111827;margin-left:4px;display:inline;}
.kitchen-order-head .kitchen-food-name,.kitchen-admin-order-head .kitchen-food-name{font-size:0.95rem;}


/* Companies page: keep Login Page Branding on the far right and give Company List the remaining space. */
.companies-layout{
  grid-template-columns:minmax(0,1fr) 250px!important;
  width:100%;
  align-items:start;
}
.companies-layout .company-list-card{
  min-width:0;
}
.companies-layout .login-branding-card{
  width:250px;
  justify-self:end;
  align-self:start;
  min-width:0;
}
.companies-layout .login-branding-card .section-title{
  align-items:flex-start;
}
.companies-layout .login-branding-card .section-title h2{
  line-height:1.15;
}
.companies-layout .logo-preview-box{
  padding:14px 6px;
}
.companies-layout .app-logo.big{
  width:76px;
  height:76px;
  border-radius:24px;
}
.companies-layout .app-logo.big img{
  border-radius:24px;
}
@media(max-width:1050px){
  .companies-layout{grid-template-columns:1fr!important;}
  .companies-layout .login-branding-card{width:100%;justify-self:stretch;}
}

.live-search-input{transition:border-color .18s ease,box-shadow .18s ease}.live-search-input:focus{border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.10)}.live-search-paused{border-color:#f59e0b!important;box-shadow:0 0 0 3px rgba(245,158,11,.12)!important}


/* SalePoint POS Printer Deep Fix: print only thermal receipt area */
@media print{
  @page{size:80mm auto;margin:0!important;}
  html,body{margin:0!important;padding:0!important;background:#fff!important;}
  body.printing-receipt *{visibility:hidden!important;}
  body.printing-receipt #receiptPrintArea,
  body.printing-receipt #receiptPrintArea *{visibility:visible!important;}
  body.printing-receipt #receiptPrintArea{position:absolute!important;left:0!important;top:0!important;width:80mm!important;max-width:80mm!important;margin:0!important;padding:0!important;background:#fff!important;filter:none!important;box-shadow:none!important;color:#000!important;}
  body.printing-receipt .slip-body{padding:4mm 3mm!important;background:#fff!important;box-shadow:none!important;}
  body.printing-receipt .slip-cut{display:none!important;}
  body.printing-receipt .slip-header h2{font-size:15px!important;letter-spacing:.04em!important;}
  body.printing-receipt .slip-contact,
  body.printing-receipt .slip-meta,
  body.printing-receipt .slip-table th,
  body.printing-receipt .slip-table td,
  body.printing-receipt .slip-totals,
  body.printing-receipt .slip-paid,
  body.printing-receipt .slip-footer p{font-size:10px!important;line-height:1.25!important;}
  body.printing-receipt .slip-total-box span,
  body.printing-receipt .slip-total-box b{font-size:14px!important;}
  body.printing-receipt .slip-logo{width:38px!important;height:38px!important;margin-bottom:3px!important;}
  body.printing-receipt .app-shell,
  body.printing-receipt .receipt-page-layout,
  body.printing-receipt .receipt-preview-card,
  body.printing-receipt .card{display:block!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;max-width:none!important;width:auto!important;}
}


/* Sale Point receipt paper width fix
   80mm POS paper uses 72mm printable content so text does not cut on the printer edges. */
.pos-receipt{width:80mm!important;max-width:80mm!important;margin-left:auto!important;margin-right:auto!important;}
.pos-receipt .slip-body{width:72mm!important;max-width:72mm!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;}
@media print{
  @page{size:80mm auto;margin:0!important;}
  body.printing-receipt #receiptPrintArea{width:80mm!important;max-width:80mm!important;margin:0!important;padding:0!important;left:0!important;top:0!important;}
  body.printing-receipt #receiptPrintArea .slip-body{width:72mm!important;max-width:72mm!important;margin:0 auto!important;padding:3.5mm 0!important;background:#fff!important;}
}

/* POS product uploaded images: keep uploaded photos the same visual size as the default product icon */
.product-card .product-img{
  overflow:hidden;
}
.product-img img{
  width:38px;
  height:38px;
  max-width:38px;
  max-height:38px;
  object-fit:contain;
  border-radius:10px;
  display:block;
  margin:auto;
}
.foodbar-product-card .product-img img{
  width:28px;
  height:28px;
  max-width:28px;
  max-height:28px;
  border-radius:8px;
}


/* FINAL POS thumbnail fix: uploaded product photos must stay exactly icon-sized */
.pos-sale-layout .product-img{background:linear-gradient(135deg,#dcfce7,#f8fafc)!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.pos-sale-layout .product-img img,.pos-sale-layout img.pos-product-thumb{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;min-width:28px!important;min-height:28px!important;object-fit:cover!important;border-radius:8px!important;display:block!important;margin:auto!important;position:static!important;}
.pos-sale-layout:not(.foodbar-mode) .product-img img,.pos-sale-layout:not(.foodbar-mode) img.pos-product-thumb{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:10px!important;}
.foodbar-product-card .product-img{height:48px!important;min-height:48px!important;max-height:48px!important;}
.foodbar-product-card{overflow:hidden!important;}


/* UI cleanup: hide helper notes/descriptions that make the system look crowded */
.note-box,
.flow-note,
.page-subtitle,
.add-product-submit-note,
.form-hint,
.help-text,
.helper-text,
.hint-text,
.modal-card form small.muted,
.card form small.muted,
.filter-card small.muted,
.inventory-toolbar .toolbar-title small,
.card-head > .soft-note,
.section-title > .soft-note {
  display:none!important;
}
.hero-card .brand-title-row > div > p:not(.eyebrow){display:none!important;}

/* Offline stability lock: when offline, only POS remains active. */
.offline-disabled-link{opacity:.45!important;filter:grayscale(1);cursor:not-allowed!important;pointer-events:auto!important}
.offline-module-lock-overlay{position:fixed;inset:0;z-index:99999;background:rgba(241,245,249,.92);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:22px}
.offline-module-lock-card{width:min(440px,92vw);background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;box-shadow:0 22px 70px rgba(15,23,42,.18);padding:26px;text-align:center;color:#0f172a}
.offline-module-lock-card h2{margin:8px 0 8px;font-size:24px;line-height:1.1}.offline-module-lock-card p{margin:0 0 18px;color:#475569;line-height:1.55}.offline-module-lock-card small{display:block;margin-top:14px;color:#64748b;font-weight:700}.offline-lock-icon{width:58px;height:58px;border-radius:18px;background:#dcfce7;color:#166534;display:inline-flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:6px}

/* Offline POS-only redirect notice */
.offline-pos-only-notice{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:100000;background:#064e3b;color:#fff;border-radius:999px;padding:11px 16px;font-size:13px;font-weight:800;box-shadow:0 14px 35px rgba(15,23,42,.22);max-width:min(92vw,520px);text-align:center}
