:root{
  --deep:#172033;
  --teal:#2f3f56;
  --rust:#8b5a50;
  --aqua:#64748b;
  --ice:#e7ebf0;
  --soft:#f5f7fa;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#d9dee7;
  --radius:18px;
}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at 20% 0%,rgba(226,232,240,.32),transparent 28%),linear-gradient(180deg,#fbfdfe 0%,#f1f4f7 100%);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:292px;background:linear-gradient(155deg,var(--deep),var(--teal) 54%,#002b2f);color:#fff;padding:26px 18px;display:flex;flex-direction:column;box-shadow:18px 0 50px rgba(23,32,51,.22);z-index:20}.brand-block{display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none;padding:0 6px 28px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-name{display:block;font-size:1.55rem;font-weight:800;letter-spacing:-.045em;line-height:1}.brand-block small{display:block;margin-top:5px;text-transform:uppercase;letter-spacing:.25em;font-size:.7rem;color:rgba(255,255,255,.75)}.brand-logo-mini{width:56px;height:56px;border-radius:50%;border:2px solid rgba(255,255,255,.9);background:rgba(255,255,255,.08);color:#fff;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;font-weight:900;font-style:italic;font-size:1.35rem;box-shadow:0 12px 30px rgba(0,0,0,.18)}.brand-logo-mini img{width:100%;height:100%;object-fit:cover}.sidebar-section{text-transform:uppercase;font-size:.76rem;color:rgba(255,255,255,.66);margin:25px 8px 10px}.side-nav{display:grid;gap:7px}.nav-link{color:rgba(255,255,255,.88)!important;border-radius:10px;padding:13px 14px!important;display:flex;align-items:center;gap:11px;font-weight:650;transition:.18s ease}.nav-link:hover{background:rgba(255,255,255,.09);transform:translateX(2px)}.nav-link.active{background:linear-gradient(90deg,var(--aqua),rgba(100,116,139,.52));color:#fff!important;box-shadow:0 14px 28px rgba(100,116,139,.22)}.sidebar-revenue{border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:18px;background:linear-gradient(160deg,rgba(100,116,139,.24),rgba(255,255,255,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.sidebar-money{font-size:1.6rem;font-weight:800;margin:10px 0;letter-spacing:-.04em}.mini-line{height:62px;border-radius:10px;background:linear-gradient(135deg,rgba(226,232,240,.15),rgba(100,116,139,.55));clip-path:polygon(0 75%,12% 62%,24% 70%,36% 47%,48% 64%,60% 35%,72% 42%,84% 18%,100% 10%,100% 100%,0 100%)}.main-area{margin-left:292px;min-width:0;flex:1}.topbar{height:76px;position:sticky;top:0;z-index:10;background:rgba(255,255,255,.85);backdrop-filter:blur(18px);border-bottom:1px solid rgba(47,63,86,.09);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.mobile-menu{display:none;border:0;background:#fff;font-size:1.45rem}.top-search{width:min(420px,50vw);height:46px;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:10px;padding:0 14px;color:#64748b;box-shadow:0 8px 20px rgba(23,32,51,.035)}.top-search input{border:0;outline:0;width:100%;background:transparent}.top-actions{display:flex;align-items:center;gap:18px}.icon-badge{position:relative}.icon-badge b{position:absolute;right:-8px;top:-9px;background:var(--rust);color:#fff;border-radius:99px;font-size:.65rem;line-height:1;padding:3px 5px}.user-chip{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--aqua),var(--teal));color:#fff;font-weight:800}.content-wrap{padding:28px;max-width:1640px}.hero-card,.app-card{background:rgba(255,255,255,.92);border:1px solid rgba(223,232,235,.95);box-shadow:0 14px 38px rgba(23,32,51,.07);border-radius:var(--radius)}.hero-card{padding:22px 24px}.section-title{font-weight:850;letter-spacing:-.055em}.small-muted{color:var(--muted);font-size:.9rem}.stat-card{background:#fff;border:1px solid rgba(223,232,235,.95);border-radius:16px;padding:20px;min-height:126px;box-shadow:0 12px 24px rgba(23,32,51,.05);position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-28px;top:-28px;width:90px;height:90px;background:rgba(100,116,139,.12);border-radius:50%}.stat-label{color:var(--muted);font-size:.82rem;font-weight:650;text-transform:uppercase;letter-spacing:.06em}.stat-value{font-size:1.7rem;font-weight:850;letter-spacing:-.05em;color:var(--teal)}.btn{border-radius:10px;font-weight:700;padding:.62rem 1rem}.btn-dark{background:linear-gradient(135deg,var(--teal),#41536b);border-color:var(--teal);box-shadow:0 10px 20px rgba(47,63,86,.18)}.btn-dark:hover{background:linear-gradient(135deg,var(--deep),var(--teal));border-color:var(--deep)}.btn-outline-dark{border-color:rgba(47,63,86,.35);color:var(--teal)}.btn-outline-dark:hover{background:var(--teal);border-color:var(--teal)}.btn-outline-danger{border-color:rgba(150,71,52,.35);color:var(--rust)}.btn-outline-danger:hover{background:var(--rust);border-color:var(--rust)}.form-label{font-size:.84rem;font-weight:700;color:#374151}.form-control,.form-select{border-radius:10px;border-color:#d7e2e6;padding:.67rem .8rem;box-shadow:none!important}.form-control:focus,.form-select:focus{border-color:var(--aqua);box-shadow:0 0 0 .2rem rgba(100,116,139,.12)!important}.table{vertical-align:middle}.table thead th{font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;background:#f8fbfc;border-bottom:1px solid var(--line)}.table tbody tr:hover{background:#f9feff}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:.32rem .7rem;font-size:.76rem;font-weight:800}.pill.paid{background:#dff8ef;color:#05603a}.pill.draft{background:#edf5f7;color:#31545a}.pill.partial{background:#fff4d6;color:#8a5a00}.pill.overdue{background:#fde9e5;color:var(--rust)}.pill.cancelled{background:#e5e7eb;color:#374151}.logo-preview{width:160px;height:160px;border:1px dashed #acc8ce;border-radius:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#fff,var(--ice));overflow:hidden;color:var(--teal);font-weight:800}.logo-preview img{width:100%;height:100%;object-fit:contain;padding:12px}.empty-state{text-align:center;padding:3rem 1rem;color:#64748b}.clickable{cursor:pointer}.customer-card,.product-card{transition:.15s ease}.customer-card:hover,.product-card:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(23,32,51,.09)}.modal-xl{--bs-modal-width:1320px}.modal-content{border-radius:18px;overflow:hidden;background:#f9fdfe}.modal-header{background:#fff;border-bottom:1px solid var(--line);padding:18px 24px}.modal-title{font-weight:850;letter-spacing:-.04em}.modal-body{padding:24px}.invoice-form-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;height:100%;box-shadow:0 8px 22px rgba(23,32,51,.035)}.panel-title{font-weight:850;color:var(--teal);display:flex;align-items:center;gap:9px;margin-bottom:18px}.panel-icon{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--aqua),var(--teal));color:#fff;display:inline-flex;align-items:center;justify-content:center}.line-item-row{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:11px;box-shadow:0 6px 14px rgba(23,32,51,.025)}.line-total-box{background:#f5f7fa!important;color:var(--teal);border-color:#cce7eb!important}.totals-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 12px 26px rgba(23,32,51,.06);position:sticky;top:92px}.totals-card .total-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #edf2f4}.totals-card .grand{font-size:1.45rem;font-weight:850;color:var(--teal)}.amount-due{margin-top:14px;padding:18px;border-radius:12px;background:linear-gradient(135deg,var(--teal),var(--aqua));color:#fff}.amount-due strong{font-size:1.55rem;display:block}.info-strip{border:1px solid rgba(100,116,139,.25);background:rgba(226,232,240,.22);color:#46576d;border-radius:10px;padding:12px 14px;font-weight:600}.invoice-print{background:#fff;color:#111;padding:2rem;border-radius:18px}.invoice-print-logo{max-width:140px;max-height:100px;object-fit:contain}@media(max-width:992px){.sidebar{transform:translateX(-102%);transition:.2s ease}.sidebar-open .sidebar{transform:translateX(0)}.main-area{margin-left:0}.mobile-menu{display:inline-flex}.topbar{padding:0 16px}.top-search{width:52vw}.content-wrap{padding:18px}.sidebar-open:after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:15}}@media(max-width:768px){.stat-value{font-size:1.35rem}.hero-card{padding:18px}.table-responsive{font-size:.9rem}.top-search{display:none}.content-wrap{padding:14px}.modal-body{padding:14px}}@media print{body{background:#fff}.sidebar,.topbar,main>.view:not(.printing),.modal-header .btn-close,.no-print{display:none!important}.main-area{margin-left:0}.modal{position:static!important;display:block!important}.modal-dialog{max-width:100%!important;margin:0!important}.modal-content{box-shadow:none!important;border:0!important}.modal-body{padding:0!important}.invoice-print{padding:0;border-radius:0}.modal-backdrop{display:none!important}}

/* V2.1 item details upgrade */
.detailed-line-item{position:relative;background:linear-gradient(180deg,#ffffff 0%,#fbfeff 100%);border-color:rgba(100,116,139,.18)}
.line-item-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid rgba(223,232,235,.75)}
.line-item-number{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:rgba(100,116,139,.1);color:var(--teal);font-size:.78rem;font-weight:850;padding:.35rem .7rem;text-transform:uppercase;letter-spacing:.05em}
.item-details-panel{background:linear-gradient(135deg,rgba(226,232,240,.2),rgba(255,255,255,.85));border:1px dashed rgba(100,116,139,.32);border-radius:14px;padding:14px}
.details-label{font-size:.76rem;font-weight:850;color:var(--teal);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.item-image-preview{min-height:64px;border:1px solid rgba(223,232,235,.95);border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;gap:12px;color:#718096;font-weight:650;padding:10px}
.item-image-preview.has-image{justify-content:flex-start}
.item-image-preview img{width:72px;height:72px;border-radius:12px;object-fit:cover;border:1px solid var(--line);box-shadow:0 8px 18px rgba(23,32,51,.08)}
.print-item-thumb{width:58px;height:58px;object-fit:cover;border-radius:10px;border:1px solid #e5e7eb;margin-right:10px;vertical-align:middle}
@media(max-width:768px){.line-item-topbar{align-items:flex-start}.item-image-preview{align-items:flex-start;flex-direction:column}.item-image-preview img{width:100%;height:140px}}

/* Modern TE Designs print invoice theme */
.invoice-theme-modern{background:#f1f4f7;padding:22px;border-radius:18px;color:#0b1620;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.print-toolbar{display:flex;justify-content:flex-end;gap:10px;margin-bottom:14px}.invoice-page{background:#fff;max-width:1050px;margin:0 auto;padding:38px 42px 28px;border:1px solid #d7e2e6;box-shadow:0 18px 50px rgba(23,32,51,.12);position:relative;overflow:hidden}.invoice-page:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 8% 4%,rgba(226,232,240,.24),transparent 32%),radial-gradient(circle at 92% 15%,rgba(100,116,139,.08),transparent 28%);pointer-events:none}.invoice-page>*{position:relative}.invoice-hero{display:flex;justify-content:space-between;gap:28px;align-items:flex-start}.invoice-brand-area{display:flex;gap:22px;align-items:flex-start}.invoice-logo-box{width:118px;height:118px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:linear-gradient(135deg,var(--deep),var(--teal));color:#f3d37a;font-size:2rem;font-weight:900;border:3px solid #d7b85f;transform:rotate(45deg);overflow:hidden;box-shadow:0 8px 22px rgba(23,32,51,.18);flex:0 0 auto}.invoice-logo-box img{width:100%;height:100%;object-fit:contain;padding:7px;transform:rotate(-45deg)}.invoice-logo-box:not(:has(img)){transform:rotate(45deg)}.invoice-logo-box:not(:has(img)){line-height:1}.invoice-logo-box:not(:has(img))::first-line{transform:rotate(-45deg)}.invoice-brand-area h1{font-size:2.15rem;font-weight:900;letter-spacing:-.055em;margin:8px 0 4px;text-transform:uppercase}.invoice-tagline{font-size:1.05rem;margin:0 0 20px;color:#0f172a}.invoice-contact-list{display:grid;gap:8px}.invoice-contact-row{display:flex;gap:13px;align-items:flex-start;font-size:.96rem;color:#111827}.invoice-contact-row span:first-child{width:18px;color:var(--teal);font-weight:900;text-align:center}.invoice-title-area{text-align:right;min-width:250px}.invoice-title-text{font-size:3.35rem;font-weight:900;letter-spacing:-.06em;color:var(--teal);line-height:1;margin-top:8px}.invoice-number-pill{display:inline-block;margin:14px 0 18px;background:linear-gradient(135deg,var(--teal),#41536b);color:#fff;font-weight:850;border-radius:6px;padding:9px 34px;box-shadow:0 10px 18px rgba(47,63,86,.18);letter-spacing:.02em}.invoice-date-grid{display:grid;grid-template-columns:auto auto;gap:8px 24px;text-align:left;justify-content:end;font-size:1rem}.invoice-date-grid span{font-weight:800}.print-status-pill{display:inline-flex;margin-top:14px;min-width:104px;justify-content:center;border-radius:999px;padding:7px 18px;font-weight:900;text-transform:uppercase;font-size:.88rem;background:#e6f4f6;color:var(--teal)}.print-status-pill.paid{background:#dff8ef;color:#05603a}.print-status-pill.partial{background:#fff4d6;color:#8a5a00}.print-status-pill.overdue{background:#fde9e5;color:var(--rust)}.print-status-pill.cancelled{background:#e5e7eb;color:#374151}.invoice-rule{height:3px;background:linear-gradient(90deg,var(--teal),var(--deep));margin:36px 0 26px;border-radius:999px}.bill-to-block{margin-bottom:30px}.bill-label{font-size:.78rem;font-weight:900;color:var(--teal);letter-spacing:.05em;text-transform:uppercase}.bill-to-block h2{font-size:1.75rem;font-weight:900;letter-spacing:-.04em;margin:6px 0 16px}.customer-contact{gap:9px}.print-items-table{width:100%;border-collapse:separate;border-spacing:0;margin-top:10px;font-size:.98rem}.print-items-table thead th{background:linear-gradient(135deg,var(--teal),#41536b);color:#fff;text-transform:uppercase;font-size:.88rem;letter-spacing:.02em;padding:13px 16px;border:0}.print-items-table thead th:first-child{border-radius:8px 0 0 0}.print-items-table thead th:last-child{border-radius:0 8px 0 0}.print-items-table tbody td{padding:13px 16px;border-bottom:1px dashed #cbd5dc;vertical-align:middle}.print-item-cell{display:flex;align-items:center;gap:14px}.print-item-icon{width:42px;height:42px;border-radius:50%;background:#f1f4f7;border:1px solid #dcebed;display:inline-flex;align-items:center;justify-content:center;color:var(--teal);font-size:1.25rem;font-weight:900;overflow:hidden;flex:0 0 auto}.print-item-icon img{width:100%;height:100%;object-fit:cover}.print-item-name{font-weight:850}.print-details-cell{font-weight:650;line-height:1.25}.print-summary-panel{margin-top:22px;border:1px solid #c9d8dd;border-radius:8px;background:linear-gradient(120deg,#fff,rgba(226,232,240,.24));display:grid;grid-template-columns:1fr 480px;gap:28px;padding:24px 18px 14px;overflow:hidden}.print-thanks{position:relative;min-height:170px;padding:8px 8px 0}.print-thanks h3{font-size:1.05rem;color:var(--teal);font-weight:900;margin-bottom:16px}.print-thanks p{max-width:360px;font-size:.95rem;line-height:1.55}.island-pattern{position:absolute;left:-8px;right:0;bottom:-4px;height:82px;opacity:.42;background:repeating-linear-gradient(135deg,transparent 0 13px,rgba(100,116,139,.34) 13px 15px,transparent 15px 28px);clip-path:polygon(0 100%,10% 35%,20% 100%,30% 48%,42% 100%,55% 28%,70% 100%,82% 44%,95% 100%,100% 100%)}.print-totals{display:grid;align-content:start}.print-totals>div{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid #c9d8dd;font-size:1rem}.print-totals strong{font-size:1.05rem}.print-totals .total-highlight{background:rgba(226,232,240,.45);font-weight:900}.print-totals .total-highlight strong{font-size:1.45rem}.print-totals .balance-highlight{background:linear-gradient(135deg,var(--teal),#41536b);color:#fff;font-weight:900;border-bottom:0;margin-top:6px}.print-totals .balance-highlight strong{font-size:1.35rem}.invoice-footer-brand{text-align:center;margin-top:26px;color:var(--teal)}.invoice-footer-brand .invoice-rule{margin:0 0 16px}.invoice-footer-brand strong{display:block;text-transform:uppercase;font-size:1.05rem;font-weight:900}.invoice-footer-brand span{display:block;color:#111827}.invoice-footer-brand em{display:block;font-family:cursive;color:var(--teal);font-size:1.05rem;margin-top:4px}.print-item-thumb{width:38px;height:38px;border-radius:50%;object-fit:cover;margin-right:8px}

@media(max-width:900px){.invoice-page{padding:28px 22px}.invoice-hero,.invoice-brand-area{flex-direction:column}.invoice-title-area{text-align:left}.invoice-date-grid{justify-content:start}.print-summary-panel{grid-template-columns:1fr}.invoice-logo-box{transform:none}.invoice-logo-box img{transform:none}}

@media print{@page{size:A4;margin:10mm}html,body{width:210mm;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.sidebar,.topbar,main>.view:not(.printing),.modal-header,.modal-header .btn-close,.no-print{display:none!important}.main-area{margin-left:0!important}.modal{position:static!important;display:block!important;overflow:visible!important}.modal-dialog{max-width:100%!important;width:100%!important;margin:0!important}.modal-content{box-shadow:none!important;border:0!important;background:#fff!important}.modal-body{padding:0!important}.invoice-theme-modern{padding:0!important;background:#fff!important}.invoice-page{width:190mm;max-width:none;min-height:277mm;margin:0 auto!important;padding:12mm!important;border:0!important;box-shadow:none!important}.invoice-title-text{font-size:34pt}.invoice-brand-area h1{font-size:22pt}.invoice-logo-box{width:25mm;height:25mm}.invoice-rule{margin:8mm 0 6mm}.print-items-table{font-size:9pt}.print-items-table thead th{padding:8px 10px}.print-items-table tbody td{padding:7px 10px}.print-item-icon{width:28px;height:28px;font-size:10pt}.print-summary-panel{grid-template-columns:1fr 82mm;gap:8mm;padding:6mm 5mm 3mm;break-inside:avoid;page-break-inside:avoid}.print-thanks{min-height:32mm}.invoice-footer-brand{break-inside:avoid;page-break-inside:avoid}.modal-backdrop{display:none!important}}
.invoice-logo-box .logo-text{display:inline-block;transform:rotate(-45deg);font-size:2rem;letter-spacing:.02em}
@media(max-width:900px){.invoice-logo-box .logo-text{transform:none}}

/* === TE Designs A4 Invoice Layout Fix - 2026-06-23 === */
.invoice-theme-modern .invoice-page{
  box-sizing:border-box;
}
.invoice-theme-modern .invoice-hero{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 285px;
  gap:32px;
  align-items:start;
}
.invoice-theme-modern .invoice-brand-area{
  display:grid !important;
  grid-template-columns:118px minmax(0,1fr);
  gap:22px;
  align-items:start;
  min-width:0;
}
.invoice-theme-modern .invoice-title-area{
  width:285px;
  min-width:0;
  text-align:right;
  justify-self:end;
}
.invoice-theme-modern .invoice-date-grid{
  grid-template-columns:auto auto;
}
.invoice-theme-modern .print-items-table tr,
.invoice-theme-modern .print-summary-panel,
.invoice-theme-modern .invoice-footer-brand{
  break-inside:avoid;
  page-break-inside:avoid;
}
.invoice-theme-modern .print-items-table thead{
  display:table-header-group;
}
.invoice-theme-modern .print-items-table tfoot{
  display:table-footer-group;
}
.invoice-theme-modern .print-items-table tbody td{
  overflow-wrap:anywhere;
}

@media print{
  @page{size:A4;margin:8mm}
  html,body{
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    background:#fff!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body *{visibility:hidden!important}
  .modal,.modal *{visibility:visible!important}
  .sidebar,.topbar,.modal-header,.modal-header *,.modal-backdrop,.print-toolbar,.no-print{display:none!important;visibility:hidden!important}
  .app-shell,.main-area,.content-wrap,.modal,.modal-dialog,.modal-content,.modal-body,.invoice-print,.invoice-theme-modern{
    position:static!important;
    display:block!important;
    width:auto!important;
    max-width:none!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    background:#fff!important;
    border:0!important;
    box-shadow:none!important;
  }
  .invoice-theme-modern .invoice-page{
    width:194mm!important;
    max-width:none!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:8mm 9mm 7mm!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .invoice-theme-modern .invoice-page:before{display:none!important}
  .invoice-theme-modern .invoice-hero{
    display:grid!important;
    grid-template-columns:1fr 68mm!important;
    gap:8mm!important;
    align-items:start!important;
  }
  .invoice-theme-modern .invoice-brand-area{
    display:grid!important;
    grid-template-columns:24mm 1fr!important;
    gap:8mm!important;
  }
  .invoice-theme-modern .invoice-logo-box{width:23mm!important;height:23mm!important}
  .invoice-theme-modern .invoice-brand-area h1{font-size:20pt!important;margin:2mm 0 1mm!important;line-height:1.05!important}
  .invoice-theme-modern .invoice-tagline{font-size:10.5pt!important;margin-bottom:5mm!important}
  .invoice-theme-modern .invoice-contact-row{font-size:9.2pt!important;gap:3mm!important}
  .invoice-theme-modern .invoice-title-area{width:68mm!important;text-align:right!important;justify-self:end!important}
  .invoice-theme-modern .invoice-title-text{font-size:30pt!important;line-height:.95!important;margin-top:1mm!important}
  .invoice-theme-modern .invoice-number-pill{margin:5mm 0 4mm!important;padding:2.2mm 11mm!important;font-size:10pt!important}
  .invoice-theme-modern .invoice-date-grid{font-size:9.5pt!important;gap:2mm 7mm!important;justify-content:end!important}
  .invoice-theme-modern .print-status-pill{margin-top:3mm!important;padding:1.6mm 7mm!important;font-size:8pt!important;min-width:24mm!important}
  .invoice-theme-modern .invoice-rule{height:1.5pt!important;margin:7mm 0 5mm!important}
  .invoice-theme-modern .bill-to-block{margin-bottom:6mm!important}
  .invoice-theme-modern .bill-to-block h2{font-size:17pt!important;margin:1.5mm 0 3mm!important}
  .invoice-theme-modern .bill-label{font-size:7.5pt!important}
  .invoice-theme-modern .print-items-table{font-size:8.6pt!important;margin-top:3mm!important;border-collapse:separate!important;border-spacing:0!important;page-break-inside:auto!important}
  .invoice-theme-modern .print-items-table thead{display:table-header-group!important}
  .invoice-theme-modern .print-items-table tr{break-inside:avoid!important;page-break-inside:avoid!important}
  .invoice-theme-modern .print-items-table thead th{padding:2.6mm 3mm!important;font-size:8pt!important}
  .invoice-theme-modern .print-items-table tbody td{padding:2.1mm 3mm!important;line-height:1.18!important}
  .invoice-theme-modern .print-item-cell{gap:3mm!important}
  .invoice-theme-modern .print-item-icon{width:8mm!important;height:8mm!important;font-size:7pt!important}
  .invoice-theme-modern .print-summary-panel{margin-top:6mm!important;grid-template-columns:1fr 82mm!important;gap:8mm!important;padding:5mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .invoice-theme-modern .print-thanks{min-height:30mm!important;padding:2mm 2mm 0!important}
  .invoice-theme-modern .print-thanks h3{font-size:10pt!important;margin-bottom:3mm!important}
  .invoice-theme-modern .print-thanks p{font-size:8.8pt!important;line-height:1.45!important}
  .invoice-theme-modern .island-pattern{height:18mm!important}
  .invoice-theme-modern .print-totals>div{padding:2.5mm 3mm!important;font-size:9.2pt!important}
  .invoice-theme-modern .print-totals .total-highlight strong{font-size:15pt!important}
  .invoice-theme-modern .print-totals .balance-highlight strong{font-size:14pt!important}
  .invoice-theme-modern .invoice-footer-brand{margin-top:6mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .invoice-theme-modern .invoice-footer-brand .invoice-rule{margin:0 0 4mm!important}
}


/* === Logo border removal for printed invoice - uploaded logo only === */
.invoice-theme-modern .invoice-logo-box.has-logo{
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
}
.invoice-theme-modern .invoice-logo-box.has-logo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  padding:0!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  transform:none!important;
}
@media print{
  .invoice-theme-modern .invoice-logo-box.has-logo{
    background:transparent!important;
    border:none!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:0!important;
    overflow:visible!important;
    transform:none!important;
  }
  .invoice-theme-modern .invoice-logo-box.has-logo img{
    padding:0!important;
    border:none!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
    transform:none!important;
  }
}


/* === TE Designs Design Group Invoice Upgrade === */
.design-group-card{border:1px solid rgba(100,116,139,.22)!important;background:linear-gradient(180deg,#fff 0%,#fafdfe 100%)}
.design-image-preview img{width:88px;height:88px;border-radius:14px;object-fit:cover}.breakdown-box{display:grid;gap:10px}.breakdown-row{background:#fff;border:1px solid rgba(223,232,235,.95);border-radius:12px;padding:10px;margin:0}.design-group-summary{display:flex;justify-content:flex-end;gap:20px;flex-wrap:wrap;background:rgba(226,232,240,.2);border:1px solid rgba(100,116,139,.2);border-radius:12px;padding:10px 14px;color:var(--teal);font-weight:700}.design-group-summary strong{font-size:1.05rem}.print-design-head{display:flex;align-items:center;gap:14px}.print-design-head small{display:block;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-size:.7rem}.print-design-head .ms-auto strong{display:block;font-size:1.1rem;color:var(--teal)}.print-design-header-row td{background:#f5f7fa!important;border-bottom:1px solid #cbd5dc!important}.print-design-header-row strong{font-size:1rem;color:var(--teal)}.print-design-thumb{width:52px!important;height:52px!important;border-radius:12px!important}.print-breakdown-row td{font-size:.94rem}.print-design-total-row td{background:#fbfdfe;border-bottom:2px solid #cbd5dc!important;color:#0f172a}
@media(max-width:768px){.design-group-summary{justify-content:flex-start}.design-image-preview img{width:100%;height:160px}.breakdown-row{padding:12px}}
@media print{.print-design-thumb{width:30px!important;height:30px!important}.print-design-head{gap:8px}.print-design-head strong{font-size:9.5pt!important}.print-breakdown-row td,.print-design-total-row td{font-size:8.5pt!important;padding:5px 8px!important}.print-design-header-row td{padding:6px 8px!important}.print-design-head small{font-size:6.5pt!important}}

/* === TE Designs Compact ERP/POS UI Refinement - 2026-06-24 === */
:root{
  --radius:14px;
}
html{font-size:14px;}
body{font-size:.9rem;line-height:1.38;}
.app-shell{font-size:.9rem;}
.sidebar{width:260px;padding:20px 14px;}
.main-area{margin-left:260px;}
.brand-block{gap:11px;padding:0 5px 20px;}
.brand-logo-mini{width:46px;height:46px;font-size:1.08rem;}
.brand-name{font-size:1.28rem;letter-spacing:-.035em;}
.brand-block small{font-size:.58rem;letter-spacing:.18em;margin-top:3px;}
.sidebar-section{font-size:.66rem;margin:18px 7px 8px;}
.side-nav{gap:5px;}
.nav-link{padding:9px 11px!important;font-size:.86rem;border-radius:8px;gap:9px;}
.sidebar-revenue{padding:13px;border-radius:12px;}
.sidebar-money{font-size:1.3rem;margin:6px 0;}
.mini-line{height:45px;}
.topbar{height:60px;padding:0 20px;}
.top-search{height:38px;border-radius:8px;font-size:.86rem;}
.user-chip{width:34px;height:34px;font-size:.82rem;}
.top-actions{gap:12px;font-size:.86rem;}
.content-wrap{padding:20px;max-width:1500px;}
.hero-card{padding:16px 18px;margin-bottom:16px!important;}
.section-title{font-size:1.35rem!important;line-height:1.15;}
.small-muted{font-size:.78rem;}
.app-card{border-radius:14px;}
.app-card.p-3{padding:1rem!important;}
.stat-card{padding:14px;min-height:96px;border-radius:12px;}
.stat-label{font-size:.68rem;}
.stat-value{font-size:1.35rem;}
.btn{font-size:.82rem;padding:.45rem .75rem;border-radius:8px;}
.btn-sm{font-size:.74rem;padding:.28rem .5rem;border-radius:7px;}
.form-label{font-size:.72rem;margin-bottom:.28rem;}
.form-control,.form-select{font-size:.84rem;padding:.46rem .6rem;border-radius:8px;min-height:36px;}
textarea.form-control{min-height:70px;}
.form-text{font-size:.72rem;}
.table{font-size:.84rem;margin-bottom:0;}
.table thead th{font-size:.65rem;padding:.55rem .6rem;}
.table tbody td{padding:.55rem .6rem;}
.pill{font-size:.68rem;padding:.24rem .55rem;}
.logo-preview{width:125px;height:125px;border-radius:16px;}
.empty-state{padding:2rem 1rem;font-size:.84rem;}
.customer-card h5,.product-card h5{font-size:1rem;}
.product-card .stat-value{font-size:1.05rem!important;}
.modal-xl{--bs-modal-width:1180px;}
.modal-content{border-radius:14px;}
.modal-header{padding:12px 18px;}
.modal-title{font-size:1rem;}
.modal-body{padding:16px;}
.invoice-form-panel{padding:14px;border-radius:12px;}
.panel-title{font-size:.88rem;margin-bottom:12px;gap:7px;}
.panel-icon{width:24px;height:24px;border-radius:7px;font-size:.72rem;}
.line-item-row{padding:11px;border-radius:11px;margin-bottom:9px;}
.line-item-topbar{margin-bottom:8px;padding-bottom:6px;}
.line-item-number{font-size:.66rem;padding:.25rem .55rem;}
.item-details-panel{padding:10px;border-radius:11px;}
.details-label{font-size:.66rem;margin-bottom:6px;}
.item-image-preview{min-height:48px;border-radius:10px;font-size:.78rem;padding:8px;}
.item-image-preview img{width:56px;height:56px;border-radius:9px;}
.totals-card{padding:14px;border-radius:12px;top:72px;}
.totals-card .total-row{padding:6px 0;font-size:.83rem;}
.totals-card .grand{font-size:1.15rem;}
.amount-due{margin-top:10px;padding:12px;border-radius:10px;font-size:.84rem;}
.amount-due strong{font-size:1.25rem;}
.info-strip{padding:9px 11px;font-size:.78rem;border-radius:8px;}
.design-group-card{border-radius:12px!important;}
.design-group-card .card-header,
.design-group-header{padding:10px 12px!important;}
.design-group-card h5,
.design-group-card h6{font-size:.95rem!important;}
.design-image-preview img{width:68px!important;height:68px!important;border-radius:10px!important;}
.breakdown-box{gap:8px;}
.breakdown-row{padding:8px!important;border-radius:10px!important;}
.breakdown-row .row{--bs-gutter-x:.5rem;--bs-gutter-y:.5rem;}
.design-group-summary{padding:8px 10px!important;gap:14px!important;border-radius:10px!important;font-size:.82rem;}
.design-group-summary strong{font-size:.92rem!important;}
.badge{font-size:.68rem;font-weight:700;}
.dropdown-menu{font-size:.84rem;}
.invoice-print{font-size:.86rem;}
.invoice-theme-modern{padding:16px;border-radius:14px;}
.invoice-page{padding:30px 34px 24px;}
.invoice-brand-area h1{font-size:1.75rem;}
.invoice-tagline{font-size:.9rem;margin-bottom:14px;}
.invoice-contact-row{font-size:.82rem;gap:10px;}
.invoice-title-text{font-size:2.7rem;}
.invoice-number-pill{font-size:.82rem;padding:7px 26px;margin:10px 0 13px;}
.invoice-date-grid{font-size:.84rem;gap:6px 18px;}
.print-status-pill{font-size:.72rem;padding:5px 14px;}
.invoice-rule{margin:26px 0 18px;}
.bill-label{font-size:.66rem;}
.bill-to-block{margin-bottom:22px;}
.bill-to-block h2{font-size:1.35rem;margin:4px 0 11px;}
.print-items-table{font-size:.82rem;}
.print-items-table thead th{font-size:.72rem;padding:10px 12px;}
.print-items-table tbody td{padding:9px 12px;}
.print-item-icon{width:34px;height:34px;font-size:.95rem;}
.print-item-name{font-size:.84rem;}
.print-details-cell{font-size:.78rem;}
.print-summary-panel{margin-top:16px;grid-template-columns:1fr 390px;gap:20px;padding:18px 14px 11px;}
.print-thanks{min-height:130px;}
.print-thanks h3{font-size:.9rem;margin-bottom:10px;}
.print-thanks p{font-size:.78rem;line-height:1.45;}
.print-totals>div{padding:7px 10px;font-size:.82rem;}
.print-totals strong{font-size:.9rem;}
.print-totals .total-highlight strong{font-size:1.18rem;}
.print-totals .balance-highlight strong{font-size:1.12rem;}
.invoice-footer-brand{margin-top:18px;font-size:.82rem;}
.invoice-footer-brand strong{font-size:.9rem;}
.invoice-footer-brand em{font-size:.9rem;}
.print-design-head{gap:10px;}
.print-design-head small{font-size:.6rem;}
.print-design-header-row strong{font-size:.86rem;}
.print-design-head .ms-auto strong{font-size:.95rem;}
.print-design-thumb{width:42px!important;height:42px!important;border-radius:9px!important;}
.print-breakdown-row td{font-size:.78rem!important;}

@media(max-width:992px){
  .sidebar{width:260px;}
  .main-area{margin-left:0;}
  .content-wrap{padding:16px;}
  .topbar{padding:0 14px;}
}
@media(max-width:768px){
  html{font-size:13.5px;}
  .content-wrap{padding:12px;}
  .hero-card{padding:14px;}
  .modal-body{padding:12px;}
  .section-title{font-size:1.2rem!important;}
  .stat-value{font-size:1.2rem;}
  .item-image-preview img{width:100%;height:120px;}
}


/* === TE Designs Login & Role Access System === */
.auth-locked{
  background:linear-gradient(135deg,#f1f4f7 0%,#dceff2 100%);
}
.login-screen{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:
    radial-gradient(circle at 20% 10%,rgba(100,116,139,.16),transparent 28%),
    linear-gradient(135deg,#f7fbfc,#e8f5f7);
}
.login-card{
  width:min(430px,94vw);
  background:#fff;
  border:1px solid rgba(223,232,235,.95);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(23,32,51,.16);
  padding:24px;
}
.login-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.login-logo{
  width:54px;
  height:54px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--teal),var(--aqua));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:-.05em;
}
.login-brand h1{
  font-size:1.28rem;
  font-weight:850;
  margin:0;
  letter-spacing:-.04em;
}
.login-brand p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:.84rem;
}
.login-help{
  margin-top:12px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.35;
  background:#f8fbfc;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
}
.auth-user-menu{
  display:flex;
  align-items:center;
  gap:8px;
}
.auth-role{
  display:inline-flex;
  border-radius:999px;
  padding:.25rem .55rem;
  background:rgba(100,116,139,.12);
  color:var(--teal);
  font-size:.72rem;
  font-weight:800;
}
.auth-name{
  font-size:.82rem;
  font-weight:700;
  color:#374151;
}
@media(max-width:768px){
  .auth-name{display:none;}
  .auth-role{display:none;}
  .login-card{padding:18px;border-radius:14px;}
}


/* === TE Designs Password Recovery UI === */
.recovery-link{
  color:var(--teal);
  font-weight:750;
  font-size:.8rem;
  text-decoration:none;
}
.recovery-link:hover{
  color:var(--deep);
  text-decoration:underline;
}
.recovery-tabs{
  display:flex;
  gap:8px;
  background:#f6fbfc;
  border:1px solid var(--line);
  padding:6px;
  border-radius:12px;
  margin-bottom:14px;
}
.recovery-tab{
  flex:1;
  border:0;
  background:transparent;
  border-radius:9px;
  padding:8px 10px;
  font-weight:800;
  color:#64748b;
}
.recovery-tab.active{
  background:#fff;
  color:var(--teal);
  box-shadow:0 5px 14px rgba(23,32,51,.08);
}
.recovery-code-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background:#f8fbfc;
  border:1px dashed rgba(100,116,139,.45);
  border-radius:12px;
  padding:12px;
}
.recovery-code-box span{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:1rem;
  font-weight:900;
  letter-spacing:.04em;
  color:var(--teal);
  overflow-wrap:anywhere;
}
@media(max-width:480px){
  .recovery-code-box{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* === Login visible fallback + no blank screen fix === */
.auth-app-hidden{display:none!important;}
#loginScreen.login-screen{display:flex;}
#loginScreen.d-none{display:none!important;}


/* === TE Designs Full-Width + Responsive Workspace Refinement === */
/* Use almost the full available screen width on large displays. */
:root{
  --sidebar-w:292px;
}
.main-area{
  width:calc(100vw - var(--sidebar-w))!important;
  max-width:none!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
.content-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:clamp(12px,1.1vw,24px)!important;
}
.view,
.view > *,
.hero-card,
.app-card,
#invoiceResults,
#productResults,
#userManagerList{
  max-width:none!important;
}
.hero-card,
.app-card{
  width:100%!important;
}
.row{
  max-width:none!important;
}

/* Make page-level cards and result areas breathe on ultrawide monitors. */
@media(min-width:1366px){
  .content-wrap{padding-left:24px!important;padding-right:24px!important;}
}
@media(min-width:1600px){
  .content-wrap{padding-left:30px!important;padding-right:30px!important;}
  .modal-xl{--bs-modal-width:min(94vw,1700px)!important;}
}
@media(min-width:1900px){
  .content-wrap{padding-left:38px!important;padding-right:38px!important;}
  .modal-xl{--bs-modal-width:min(94vw,1820px)!important;}
}

/* Tables fill the workspace, but still scroll horizontally when needed. */
.table-responsive{
  width:100%!important;
  max-width:100%!important;
}
.table{
  width:100%!important;
}

/* Invoice forms and design groups should stretch to available modal width. */
.invoice-designer-form,
.invoice-form-panel,
.design-group-card,
.design-group-card .card-body,
.breakdown-box,
.breakdown-row,
#itemsBox{
  width:100%!important;
  max-width:none!important;
}

/* Bootstrap columns can shrink properly rather than forcing overflow. */
[class*="col-"]{
  min-width:0;
}

/* Tablet and smaller: full screen app, overlay sidebar. */
@media(max-width:992px){
  :root{--sidebar-w:0px;}
  .main-area{
    width:100vw!important;
    margin-left:0!important;
  }
  .content-wrap{
    width:100vw!important;
    padding:12px!important;
  }
  .topbar{
    width:100vw!important;
  }
  .modal-dialog,
  .modal-xl{
    width:96vw!important;
    max-width:96vw!important;
    margin:.75rem auto!important;
  }
}

/* Mobile: tighter stacking and usable full-width modal. */
@media(max-width:768px){
  .content-wrap{
    padding:10px!important;
  }
  .hero-card{
    padding:12px!important;
  }
  .app-card{
    border-radius:12px!important;
  }
  .modal-dialog,
  .modal-xl{
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
  }
  .modal-content{
    min-height:100vh!important;
    border-radius:0!important;
  }
  .modal-body{
    padding:10px!important;
  }
  .invoice-form-panel{
    padding:12px!important;
  }
  .table{
    min-width:640px;
  }
}

/* Small phones: keep controls readable but compact. */
@media(max-width:480px){
  html{font-size:13px;}
  .content-wrap{padding:8px!important;}
  .topbar{height:54px!important;padding:0 8px!important;}
  .sidebar{width:86vw!important;}
  .btn{font-size:.76rem!important;padding:.38rem .58rem!important;}
  .form-control,.form-select{font-size:.8rem!important;min-height:34px!important;}
}

/* Do not let screen full-width rules affect print output. */
@media print{
  .main-area,.content-wrap,.view{
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
}

/* === V2.2 Responsive interface refinement === */
html,body{max-width:100%;overflow-x:hidden}
body.sidebar-open{overflow:hidden}
button,.btn,.nav-link,input,select,textarea{touch-action:manipulation}
.mobile-menu{min-width:44px;min-height:44px;align-items:center;justify-content:center;border-radius:12px}
.top-actions{min-width:0}.user-chip{flex:0 0 auto}
.hero-card .btn,.app-card .btn{white-space:nowrap}
.table-responsive{-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.modal-dialog-scrollable .modal-body{-webkit-overflow-scrolling:touch}
.form-control,.form-select,.btn{min-height:40px}
textarea.form-control{min-height:auto}

@media(max-width:991.98px){
  .sidebar{z-index:1040;box-shadow:22px 0 55px rgba(23,32,51,.24)}
  body.sidebar-open::after{content:"";position:fixed;inset:0;background:rgba(0,25,28,.48);backdrop-filter:blur(2px);z-index:1030}
  .topbar{position:sticky;top:0;z-index:1020}
  .main-area{min-height:100dvh}
  .content-wrap{padding-bottom:calc(20px + env(safe-area-inset-bottom))!important}
  .sidebar{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .side-nav .nav-link{min-height:48px}
}

@media(max-width:767.98px){
  html{font-size:15px!important}
  .topbar{height:60px!important;padding:0 10px!important;gap:8px}
  .mobile-menu{display:inline-flex!important}
  .top-actions{gap:7px}.icon-badge{display:none}
  .user-chip{width:38px;height:38px}
  .content-wrap{padding:10px!important}
  .hero-card{margin-bottom:12px!important;padding:15px!important;border-radius:14px!important}
  .hero-card>div{gap:12px!important}
  .hero-card .section-title{font-size:1.35rem!important}
  .hero-card .d-flex.gap-2.flex-wrap{width:100%}
  .hero-card .d-flex.gap-2.flex-wrap>.btn{flex:1 1 145px}
  .app-card{padding:14px!important}
  .row{--bs-gutter-x:14px;--bs-gutter-y:14px}
  .stat-card,.customer-card,.product-card{height:auto!important}
  .btn{min-height:42px;padding:.5rem .72rem!important}
  .btn-sm{min-height:38px!important}
  .form-control,.form-select{min-height:44px!important;font-size:16px!important}
  .form-label{margin-bottom:5px}
  .modal-header{position:sticky;top:0;z-index:5;background:#fff;padding:12px 14px}
  .modal-dialog,.modal-xl{height:100dvh!important}
  .modal-content{height:100dvh!important;min-height:100dvh!important}
  .modal-body{padding:10px!important}
  .invoice-form-panel,.design-group-card .card-body,.breakdown-box{padding:12px!important}
  .line-item-topbar{gap:8px;flex-wrap:wrap}
  .breakdown-row .btn{width:100%}
  .totals-card{position:static!important}

  /* Invoice list becomes tidy stacked cards instead of a wide table. */
  .invoice-table-wrap{overflow:visible!important}
  .invoice-table{min-width:0!important;border-collapse:separate;border-spacing:0 10px}
  .invoice-table thead{display:none}
  .invoice-table,.invoice-table tbody,.invoice-table tr,.invoice-table td{display:block;width:100%}
  .invoice-table tr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;box-shadow:0 5px 16px rgba(23,32,51,.06)}
  .invoice-table td{border:0!important;padding:6px 0!important;text-align:right!important;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:34px}
  .invoice-table td::before{content:attr(data-label);font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);text-align:left}
  .invoice-table td:first-child{font-size:1.04rem;padding-bottom:9px!important;border-bottom:1px solid var(--line)!important}
  .invoice-table .invoice-actions{justify-content:flex-end!important;flex-wrap:wrap;padding-top:10px!important;border-top:1px solid var(--line)!important;margin-top:4px}
  .invoice-table .invoice-actions::before{margin-right:auto}
  .invoice-table .invoice-actions .btn{flex:1 1 76px}

  .invoice-theme-modern{padding:0!important;border-radius:0!important}
  .print-toolbar{position:sticky;top:0;z-index:10;background:#f1f4f7;padding:10px;margin:0!important}
  .invoice-page{padding:20px 16px!important;border:0!important;box-shadow:none!important}
  .invoice-hero{flex-direction:column!important;gap:18px!important}
  .invoice-brand-area{gap:14px!important}
  .invoice-logo-box{width:78px!important;height:78px!important}
  .invoice-title-area{text-align:left!important;width:100%}
}

@media(max-width:479.98px){
  .sidebar{width:min(88vw,330px)!important}
  .login-screen{padding:10px}.login-card{padding:18px;border-radius:15px}
  .content-wrap{padding:8px!important}
  .hero-card,.app-card{border-radius:12px!important}
  .hero-card .d-flex.gap-2.flex-wrap>.btn{flex-basis:100%}
  .customer-card .btn,.product-card .btn{width:100%;margin-top:6px}
  .invoice-table .invoice-actions .btn{flex-basis:100%}
  .invoice-brand-area{flex-direction:column!important}
  .print-toolbar .btn{flex:1}
}

@media(hover:none) and (pointer:coarse){
  .side-nav .nav-link:hover,.btn:hover{transform:none!important}
}

/* === V2.3 Invoice table status badges and scan-friendly interactions === */
.invoice-filter-bar{position:sticky;top:88px;z-index:8;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.invoice-table-wrap{max-height:calc(100vh - 260px);overflow:auto;border-radius:12px}
.invoice-table thead{position:sticky;top:0;z-index:4}
.invoice-table thead th{box-shadow:0 1px 0 var(--line)}
.invoice-row{transition:background-color .16s ease,transform .16s ease,box-shadow .16s ease;outline:none}
.invoice-row:hover{background:#f5f7fa!important}
.invoice-row:focus-visible{box-shadow:inset 0 0 0 2px var(--aqua);background:#f5f7fa!important}
.status-badge{gap:.42rem;border:1px solid currentColor;line-height:1.1;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.status-dot{width:.5rem;height:.5rem;flex:0 0 .5rem;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(255,255,255,.55)}
.status-badge.custom-status{color:var(--status-color);background:color-mix(in srgb,var(--status-color) 12%,white);border-color:color-mix(in srgb,var(--status-color) 48%,white)}
.pill.paid{border-color:#79d6b2}.pill.draft{border-color:#b7cdd2}.pill.partial{border-color:#edca72}.pill.overdue{border-color:#e8a193}.pill.cancelled{border-color:#adb3bc}

@media(max-width:767.98px){
  .invoice-filter-bar{position:sticky;top:68px;z-index:9;margin-inline:-2px}
  .invoice-table-wrap{max-height:none;overflow:visible}
  .invoice-table .invoice-row{position:relative;padding-top:48px}
  .invoice-table .invoice-status-cell{position:absolute;top:10px;right:12px;width:auto!important;min-height:0;padding:0!important}
  .invoice-table .invoice-status-cell::before{display:none}
  .invoice-table .invoice-number-cell{position:absolute;top:14px;left:12px;width:auto!important;max-width:52%;border:0!important;padding:0!important;display:block!important;text-align:left!important}
  .invoice-table td:first-child{border-bottom:0!important}
  .invoice-row:active{transform:scale(.995);background:#f5f7fa!important}
}

/* =========================================================
   TE Designs SaaS Dashboard Redesign v2.4
   Visual-only upgrade: preserves application and print logic.
   ========================================================= */
:root{
  --deep:#003f43;
  --teal:#005d63;
  --aqua:#06a6ad;
  --aqua-dark:#03878d;
  --canvas:#f5f8fa;
  --surface:#ffffff;
  --ink:#172033;
  --muted:#667085;
  --line:#e4eaf0;
  --shadow-sm:0 4px 16px rgba(15,39,55,.045);
  --shadow-md:0 12px 34px rgba(15,39,55,.075);
  --radius:14px;
}
html{font-size:14px}
body{background:var(--canvas);color:var(--ink);font-size:.9rem}
.app-shell{background:var(--canvas)}
.sidebar{
  width:232px;padding:18px 14px 16px;
  background:linear-gradient(180deg,#004f54 0%,#003d41 58%,#00363a 100%);
  box-shadow:none;border-right:1px solid rgba(255,255,255,.06)
}
.main-area{margin-left:232px}
.brand-block{padding:2px 5px 20px;gap:11px;border-bottom:1px solid rgba(255,255,255,.12)}
.brand-logo-mini{width:47px;height:47px;border:1.5px solid rgba(255,255,255,.9);box-shadow:none}
.brand-name{font-size:1.18rem;letter-spacing:-.03em}
.brand-block small{font-size:.55rem;letter-spacing:.2em}
.sidebar-section{margin:18px 8px 7px;font-size:.62rem;font-weight:700;letter-spacing:.08em}
.side-nav{gap:4px}
.nav-link{padding:10px 11px!important;border-radius:8px;font-size:.84rem;gap:11px;font-weight:650}
.nav-link i{width:16px;text-align:center;font-size:.84rem}
.nav-link:hover{transform:none;background:rgba(255,255,255,.08)}
.nav-link.active{background:linear-gradient(90deg,#079da5,#0d8c93);box-shadow:0 8px 20px rgba(0,0,0,.12)}
.sidebar-revenue{padding:14px;border-radius:11px;background:linear-gradient(145deg,rgba(100,116,139,.22),rgba(255,255,255,.035));box-shadow:none}
.sidebar-money{font-size:1.35rem}.mini-line{height:48px;opacity:.8}
.topbar{height:64px;padding:0 24px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(15,39,55,.02)}
.top-search{width:min(390px,48vw);height:40px;border-color:#dfe6ec;border-radius:8px;box-shadow:none;background:#fbfcfd}
.top-search:focus-within{background:#fff;border-color:rgba(6,166,173,.55);box-shadow:0 0 0 3px rgba(6,166,173,.09)}
.top-actions{gap:13px}.icon-badge i{font-size:1.05rem}.user-chip{width:34px;height:34px;background:#0a8990}
.content-wrap{padding:22px 26px 36px;max-width:none}
.hero-card,.app-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm);border-radius:var(--radius)}
.hero-card{padding:17px 19px;margin-bottom:16px!important}
.section-title{font-size:1.33rem!important;letter-spacing:-.035em}.small-muted{font-size:.76rem;color:#748092}
.btn{border-radius:8px;font-size:.78rem;padding:.48rem .76rem;box-shadow:none!important}
.btn-dark{background:#00686e;border-color:#00686e}.btn-dark:hover{background:#00575c;border-color:#00575c}
.btn-outline-dark{background:#fff;border-color:#b9d1d4;color:#005b60}.btn-outline-dark:hover{background:#eefafa;color:#004d52;border-color:#80bdc1}
.btn-outline-secondary{background:#fff;border-color:#aeb8c2;color:#344054}.btn-outline-secondary:hover{background:#f5f7f9;color:#172033;border-color:#87929d}
.btn-outline-danger{background:#fff;border-color:#efc0b8;color:#a43a28}.btn-outline-danger:hover{background:#fff5f3;color:#922f1f;border-color:#df8f82}
.form-control,.form-select{border-color:#dce4ea;background-color:#fff;min-height:39px;border-radius:8px;font-size:.8rem}
.form-control:focus,.form-select:focus{border-color:#43b8bd;box-shadow:0 0 0 3px rgba(6,166,173,.1)}
.invoice-filter-bar{padding:14px!important;position:sticky;top:76px;z-index:7}
.invoice-filter-bar .form-control,.invoice-filter-bar .form-select{height:40px}
#invoiceResults{padding:14px!important}
.invoice-table-wrap{border:0;border-radius:9px;overflow:auto;max-height:calc(100vh - 285px)}
.invoice-table{border-collapse:separate;border-spacing:0}
.invoice-table thead th{position:sticky;top:0;z-index:3;background:#f8fafb;color:#65738a;font-size:.62rem;font-weight:750;letter-spacing:.055em;text-transform:uppercase;border-bottom:1px solid #dae3e9;padding:.7rem .7rem}
.invoice-table tbody td{padding:.62rem .7rem;border-bottom:1px solid #e7edf1;vertical-align:middle;font-size:.81rem;background:#fff}
.invoice-table tbody tr:last-child td{border-bottom:0}
.invoice-table tbody tr:hover td{background:#f8fcfc}
.invoice-number-cell{color:#075f66;font-weight:750!important}
.invoice-actions{white-space:nowrap;min-width:215px}
.invoice-actions .btn{padding:.38rem .58rem;font-size:.7rem;margin-left:2px}
.pill.status-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:.23rem .58rem;font-size:.67rem;font-weight:700;line-height:1.1;white-space:nowrap;border:1px solid transparent;box-shadow:none}
.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:0 0 auto}
.status-badge.draft{background:#eef2f5;color:#52606d;border-color:#ccd5dc}
.status-badge.confirmed{background:#eef5ff;color:#2563a9;border-color:#b9d5f8}
.status-badge.quote{background:#eafafd;color:#09899a;border-color:#a5e2e9}
.status-badge.pending{background:#fff4e8;color:#d36a05;border-color:#ffd0a0}
.status-badge.partial{background:#fff7df;color:#b77905;border-color:#f1d38a}
.status-badge.printing{background:#f4efff;color:#7445bd;border-color:#d4c1f4}
.status-badge.paid{background:#e9f9ee;color:#16833b;border-color:#a9e0b8}
.status-badge.overdue{background:#fff0ef;color:#d43c32;border-color:#f5b9b5}
.status-badge.cancelled{background:#f1f3f5;color:#38434f;border-color:#c9d0d6}
.status-badge.custom-status{color:var(--status-color);background:color-mix(in srgb,var(--status-color) 10%,white);border-color:color-mix(in srgb,var(--status-color) 34%,white)}
.stat-card{border-color:var(--line);box-shadow:var(--shadow-sm);min-height:106px;padding:16px}.stat-card:after{background:rgba(6,166,173,.07)}
.stat-value{color:#075f66;font-size:1.45rem}.stat-label{font-size:.65rem;color:#748092}
.modal-content{border-radius:14px!important}.modal-header{background:#fff;border-bottom:1px solid var(--line)}
.login-screen{background:linear-gradient(135deg,#003f43 0%,#00676d 54%,#eaf6f7 54%,#f8fbfc 100%)}
.login-card{border:1px solid rgba(255,255,255,.72);box-shadow:0 28px 80px rgba(23,32,51,.2)}

@media(max-width:991.98px){
  .sidebar{width:250px;transform:translateX(-102%);transition:transform .22s ease;box-shadow:20px 0 50px rgba(0,30,32,.22)}
  .main-area{margin-left:0}.sidebar-open .sidebar{transform:translateX(0)}
  body.sidebar-open:after{content:"";position:fixed;inset:0;background:rgba(10,24,35,.38);z-index:15;backdrop-filter:blur(2px)}
  .mobile-menu{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#344054;z-index:1}
  .topbar{padding:0 14px}.top-search{width:min(420px,58vw)}.content-wrap{padding:18px}
}
@media(max-width:767.98px){
  .topbar{height:58px;gap:9px}.top-search{flex:1;width:auto;height:38px}.top-actions>span:not(.user-chip){display:none}.top-actions{gap:0}
  .content-wrap{padding:13px}.hero-card{padding:14px}.hero-card .d-flex{align-items:flex-start!important}.hero-card .d-flex>div:last-child{width:100%;margin-top:12px}.hero-card .btn{flex:1}
  .invoice-filter-bar{top:66px;padding:10px!important}.invoice-filter-bar .row{display:grid;grid-template-columns:1fr 1fr}.invoice-filter-bar .col-md-4{grid-column:1/-1}.invoice-filter-bar [class*=col-]{width:auto}
  #invoiceResults{padding:8px!important;background:transparent;border:0;box-shadow:none}.invoice-table-wrap{max-height:none;overflow:visible}
  .invoice-table,.invoice-table tbody,.invoice-table tr,.invoice-table td{display:block;width:100%}.invoice-table thead{display:none}.invoice-table tbody{display:grid;gap:10px}
  .invoice-table tbody tr{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 13px 11px;box-shadow:var(--shadow-sm);border-left:3px solid #0aa2a9}
  .invoice-table tbody tr:hover td{background:transparent}.invoice-table tbody td{border:0!important;padding:2px 0!important;background:transparent!important;text-align:left!important;font-size:.76rem}
  .invoice-table tbody td:before{content:attr(data-label) ": ";color:#7b8795;font-weight:500}.invoice-table .invoice-number-cell{font-size:.88rem;padding-right:120px!important;margin-bottom:3px}.invoice-table .invoice-number-cell:before{display:none}
  .invoice-table .invoice-status-cell{position:absolute;right:12px;top:12px;width:auto!important}.invoice-table .invoice-status-cell:before{display:none}
  .invoice-table .invoice-actions{margin-top:9px;padding-top:9px!important;border-top:1px solid #edf1f4!important;display:flex;gap:6px;min-width:0}.invoice-table .invoice-actions:before{display:none}.invoice-actions .btn{flex:1;margin:0;min-height:36px}
  .pill.status-badge{font-size:.63rem;padding:.22rem .48rem}
}
@media(max-width:480px){
  .invoice-filter-bar .row{grid-template-columns:1fr}.invoice-filter-bar .col-md-4{grid-column:auto}.hero-card .d-flex>div:last-child{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}
}


/* Professional dashboard refresh */
.dashboard-welcome{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:32px 34px;border-radius:24px;color:#fff;background:linear-gradient(125deg,var(--deep),var(--teal) 58%,#41536b);box-shadow:0 22px 55px rgba(23,32,51,.2)}
.dashboard-welcome:before{content:"";position:absolute;width:280px;height:280px;border-radius:50%;right:-90px;top:-150px;background:rgba(255,255,255,.11)}
.dashboard-welcome:after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:180px;bottom:-135px;background:rgba(226,232,240,.16)}
.dashboard-welcome>div{position:relative;z-index:1}.welcome-kicker{text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:800;color:rgba(255,255,255,.72);margin-bottom:7px}.dashboard-welcome h1{font-size:clamp(1.9rem,3vw,2.8rem);font-weight:850;letter-spacing:-.055em;margin:0}.dashboard-welcome p{max-width:680px;margin:9px 0 0;color:rgba(255,255,255,.78)}.dashboard-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.dashboard-actions .btn{white-space:nowrap}.dashboard-actions .btn-light{color:var(--deep);background:rgba(255,255,255,.95);border:0}.btn-dashboard-primary{background:linear-gradient(135deg,#19c3ce,var(--aqua));border:0;color:#fff;box-shadow:0 12px 24px rgba(0,0,0,.16)}.btn-dashboard-primary:hover{color:#fff;transform:translateY(-1px);filter:brightness(1.04)}
.dashboard-section{margin-bottom:24px}.dashboard-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 2px 13px}.dashboard-section-heading span,.panel-heading span{display:block;color:#718096;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.dashboard-section-heading h2{font-size:1.18rem;font-weight:820;letter-spacing:-.035em;margin:3px 0 0}.dashboard-section-heading.compact{margin-top:2px}.collection-rate{display:flex;align-items:baseline;gap:7px;padding:7px 11px;border-radius:999px;background:#e7f8f4;color:#08765e}.collection-rate strong{font-size:1rem}.collection-rate span{font-size:.75rem;text-transform:none;letter-spacing:0;color:#368675}
.dashboard-metric-grid{display:grid;gap:16px}.dashboard-metric-grid-primary{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-metric-grid-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-metric{--metric-accent:var(--aqua);--metric-soft:#e8f9fa;position:relative;overflow:hidden;min-height:178px;padding:22px 22px 19px;border:1px solid rgba(219,230,234,.95);border-radius:20px;background:linear-gradient(145deg,#fff,#fbfeff);box-shadow:0 12px 30px rgba(23,32,51,.065);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.dashboard-metric:after{content:"";position:absolute;width:115px;height:115px;right:-52px;bottom:-55px;border-radius:50%;background:var(--metric-soft)}.dashboard-metric-link{cursor:pointer}.dashboard-metric-link:hover{transform:translateY(-4px);box-shadow:0 20px 42px rgba(23,32,51,.12);border-color:color-mix(in srgb,var(--metric-accent) 35%,#dbe6ea)}.metric-top{position:relative;z-index:1;display:flex;align-items:center;gap:11px}.metric-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;background:var(--metric-soft);color:var(--metric-accent);font-size:1.15rem}.metric-label{color:#586474;font-size:.82rem;font-weight:750;text-transform:uppercase;letter-spacing:.055em}.metric-arrow{margin-left:auto;color:#94a3b8;font-size:.85rem}.metric-value{position:relative;z-index:1;margin-top:24px;color:#102a31;font-size:clamp(2rem,2.65vw,2.75rem);line-height:1;font-weight:880;letter-spacing:-.065em;white-space:nowrap}.metric-meta{position:relative;z-index:1;margin-top:12px;color:#7a8795;font-size:.79rem;font-weight:550}.metric-success{--metric-accent:#08765e;--metric-soft:#e3f7f1}.metric-primary{--metric-accent:#41536b;--metric-soft:#e1f5f7}.metric-warning{--metric-accent:#aa6c00;--metric-soft:#fff3d8}.metric-danger{--metric-accent:#b94b3e;--metric-soft:#fde9e5}.metric-info{--metric-accent:#1674a6;--metric-soft:#e5f3fb}.metric-violet{--metric-accent:#7252aa;--metric-soft:#f0eafb}.metric-neutral{--metric-accent:#51606f;--metric-soft:#edf1f4}
.dashboard-lower-grid{margin-top:2px}.dashboard-panel{padding:22px 23px;border-radius:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.panel-heading h3{font-size:1.08rem;font-weight:820;letter-spacing:-.03em;margin:3px 0 0}.panel-heading>i{width:40px;height:40px;border-radius:12px;background:#e7f7f8;color:var(--teal);display:inline-flex;align-items:center;justify-content:center;font-size:1.1rem}.chart-wrap{min-height:285px;display:flex;align-items:center}.chart-wrap canvas{max-height:285px}.chart-wrap-doughnut{justify-content:center}.chart-wrap-doughnut canvas{max-height:270px}.dashboard-recent-table tbody td{padding-top:15px;padding-bottom:15px}.dashboard-recent-table tbody tr{transition:background .15s ease}.dashboard-empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7b8794}.dashboard-empty i{font-size:2.3rem;color:var(--aqua);margin-bottom:8px}.dashboard-empty strong{color:#243942;font-size:1.05rem}.dashboard-empty span{font-size:.85rem;margin-top:3px}
@media(max-width:1250px){.dashboard-metric-grid-primary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.dashboard-welcome{align-items:flex-start;flex-direction:column;padding:25px 22px}.dashboard-actions{width:100%;justify-content:stretch}.dashboard-actions .btn{flex:1}.dashboard-metric-grid-primary,.dashboard-metric-grid-secondary{grid-template-columns:1fr}.dashboard-metric{min-height:154px}.metric-value{font-size:2.15rem}.dashboard-section-heading{align-items:flex-start;flex-direction:column}.collection-rate{align-self:flex-start}.dashboard-panel{padding:18px}.chart-wrap{min-height:235px}.dashboard-recent-table{min-width:760px}}


/* Dashboard responsive v6 — full replacement enhancement */
#view-dashboard{min-width:0}
.dashboard-welcome{isolation:isolate}
.dashboard-metric{display:flex;flex-direction:column;justify-content:space-between}
.metric-value{overflow:hidden;text-overflow:ellipsis}
.dashboard-panel{min-width:0;overflow:hidden}
.chart-wrap{position:relative;width:100%;height:clamp(270px,31vw,410px);min-height:0}
.chart-wrap-doughnut{height:clamp(300px,31vw,410px)}
.chart-wrap canvas{width:100%!important;height:100%!important;max-width:100%;max-height:none!important}
.dashboard-recent-table{vertical-align:middle}

@media (max-width:1399.98px){
  .dashboard-metric-grid-primary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric-value{font-size:clamp(2rem,4vw,2.65rem)}
}
@media (max-width:991.98px){
  .dashboard-metric-grid-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-lower-grid>.col-xl-8,.dashboard-lower-grid>.col-xl-4{width:100%}
  .chart-wrap,.chart-wrap-doughnut{height:340px}
}
@media (max-width:767.98px){
  .dashboard-welcome{border-radius:20px;padding:24px 20px}
  .dashboard-welcome h1{font-size:1.85rem}
  .dashboard-actions{display:grid;grid-template-columns:1fr;width:100%}
  .dashboard-actions .btn{width:100%}
  .dashboard-metric-grid-primary,.dashboard-metric-grid-secondary{grid-template-columns:1fr}
  .dashboard-metric{min-height:145px;padding:18px}
  .metric-value{margin-top:18px;font-size:2.1rem;white-space:normal;overflow-wrap:anywhere}
  .dashboard-panel{padding:17px;border-radius:17px}
  .panel-heading{align-items:flex-start;margin-bottom:14px}
  .chart-wrap,.chart-wrap-doughnut{height:290px}
  .dashboard-recent-table{min-width:720px}
}
@media (max-width:420px){
  .content-wrap{padding:10px}
  .dashboard-welcome{padding:21px 17px}
  .dashboard-section-heading h2{font-size:1.05rem}
  .metric-top{align-items:flex-start}
  .metric-label{font-size:.76rem}
  .metric-value{font-size:1.85rem}
  .chart-wrap,.chart-wrap-doughnut{height:255px}
}


/* Premium invoice workspace — v3 */
.invoice-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.invoice-summary-card{display:flex;align-items:center;gap:13px;background:linear-gradient(145deg,#fff,#f7fcfd);border:1px solid #dce8eb;border-radius:15px;padding:15px 17px;box-shadow:0 8px 24px rgba(23,32,51,.055);min-width:0}
.invoice-summary-card .summary-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(100,116,139,.16),rgba(226,232,240,.38));color:var(--teal);font-size:1.12rem;flex:0 0 auto}
.invoice-summary-card small{display:block;color:#73808d;font-size:.7rem;text-transform:uppercase;letter-spacing:.055em;font-weight:750}
.invoice-summary-card strong{display:block;color:#12383d;font-size:1.15rem;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.invoice-summary-card.summary-warning .summary-icon{background:#fff2e5;color:#bb620e}
.invoice-filter-bar{padding:16px 17px;position:relative!important;top:auto!important}
.invoice-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.invoice-filter-heading strong{display:block;color:#173b40;font-size:.9rem}.invoice-filter-heading span{display:block;color:#7a8792;font-size:.73rem;margin-top:2px}
.invoice-reset-btn{color:var(--teal);text-decoration:none;font-weight:750;padding:.35rem .55rem}.invoice-reset-btn:hover{color:var(--deep)}
.invoice-filter-grid{display:grid;grid-template-columns:minmax(220px,1.55fr) repeat(2,minmax(145px,.8fr)) minmax(175px,1fr) minmax(165px,.9fr);gap:10px;align-items:end}
.filter-control{display:flex;flex-direction:column;gap:5px;position:relative;margin:0}.filter-control>span{font-size:.65rem;text-transform:uppercase;letter-spacing:.055em;font-weight:750;color:#75828e}.filter-control .form-control,.filter-control .form-select{height:42px;font-size:.79rem;background-color:#fbfdfe}.filter-search{justify-content:flex-end}.filter-search>i{position:absolute;left:13px;bottom:12px;color:#78909a;z-index:1}.filter-search input{padding-left:36px}
.invoice-results-card{padding:0;overflow:hidden}.invoice-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e2eaed;background:linear-gradient(180deg,#fff,#fbfdfe)}
.invoice-results-toolbar strong{display:block;color:#183b40;font-size:.88rem}.invoice-results-toolbar span{display:block;color:#7b8792;font-size:.7rem}.invoice-results-total{font-weight:800!important;color:var(--teal)!important;background:#edf9fa;border:1px solid #cce8eb;border-radius:999px;padding:6px 10px}
.professional-invoice-table{min-width:1320px;margin:0}.professional-invoice-table thead th{position:sticky;top:0;z-index:2;padding:.82rem .72rem;background:#f5f9fa;font-size:.61rem;color:#667784;border-bottom:1px solid #dce6e9;white-space:nowrap}
.professional-invoice-table tbody td{padding:.75rem .72rem;border-bottom:1px solid #e6edef;background:#fff;font-size:.76rem;transition:background .15s ease;white-space:nowrap}
.professional-invoice-table tbody tr{position:relative}.professional-invoice-table tbody tr:after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:transparent;transition:.15s ease}.professional-invoice-table tbody tr:hover:after{background:var(--aqua)}.professional-invoice-table tbody tr:hover td{background:#f8fcfd}
.professional-invoice-table .invoice-number-cell strong{display:block;color:#082f34;font-size:.8rem}.professional-invoice-table .invoice-number-cell small,.invoice-customer small{display:block;color:#8a969f;font-size:.64rem;margin-top:3px}
.invoice-customer{display:flex;align-items:center;gap:9px;min-width:155px}.customer-initials{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,var(--teal),var(--aqua));color:#fff;font-size:.65rem;font-weight:850;box-shadow:0 5px 12px rgba(47,63,86,.17);flex:0 0 auto}.invoice-customer strong{display:block;color:#243b3f;max-width:135px;overflow:hidden;text-overflow:ellipsis}
.payment-badge{min-width:92px;justify-content:center}.payment-progress{width:105px}.payment-progress-track{height:6px;background:#e7edef;border-radius:999px;overflow:hidden}.payment-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--aqua),var(--teal))}.payment-progress small{display:block;color:#7d8993;font-size:.61rem;margin-top:4px;text-align:right}
.money-cell strong{color:#1d373b}.paid-money strong{color:#087647}.balance-money small{display:block;color:#b46917;font-size:.59rem;margin-top:2px}.settled-balance{color:#087647;font-weight:800;font-size:.72rem}
.due-date-cell span{display:flex;flex-direction:column;gap:2px}.due-date-cell strong{font-size:.7rem}.due-date-cell small{font-size:.59rem}.due-date-neutral{color:#8b969e}.due-date-settled{display:inline-flex!important;flex-direction:row!important;align-items:center;color:#087647;font-weight:750}.due-date-overdue strong,.due-date-overdue small{color:#c23c32}.due-date-warning strong,.due-date-warning small{color:#b66a12}.due-date-normal strong{color:#354b50}.due-date-normal small{color:#87939c}
.invoice-action-menu{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;border:1px solid #d6e2e5;background:#fff;color:var(--teal);transition:.15s ease}.invoice-action-menu:hover,.invoice-action-menu[aria-expanded="true"]{background:var(--teal);color:#fff;border-color:var(--teal);box-shadow:0 6px 14px rgba(47,63,86,.15)}.invoice-actions-menu{border:1px solid #dce5e8;border-radius:12px;padding:6px;box-shadow:0 14px 35px rgba(23,32,51,.15);min-width:175px}.invoice-actions-menu .dropdown-item{border-radius:8px;font-size:.76rem;font-weight:650;padding:.55rem .7rem;display:flex;align-items:center;gap:9px}.invoice-actions-menu .dropdown-item i{width:16px;color:#55737a}
.invoice-empty-state{text-align:center;padding:48px 18px}.invoice-empty-state>span{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;margin:0 auto 14px;background:#eaf7f8;color:var(--teal);font-size:1.5rem}.invoice-empty-state h4{font-weight:800;color:#183b40;margin-bottom:5px}.invoice-empty-state p{color:#7d8993;font-size:.82rem;margin-bottom:16px}
@media(max-width:1250px){.invoice-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-search{grid-column:1/-1}}
@media(max-width:767px){.invoice-summary-grid{grid-template-columns:1fr 1fr;gap:9px}.invoice-summary-card{padding:12px;gap:9px}.invoice-summary-card .summary-icon{width:35px;height:35px;border-radius:10px}.invoice-summary-card strong{font-size:.91rem}.invoice-summary-card small{font-size:.58rem}.invoice-filter-bar{padding:13px}.invoice-filter-grid{grid-template-columns:1fr}.filter-search{grid-column:auto}.invoice-filter-heading span{display:none}.invoice-results-toolbar{padding:11px 12px}.invoice-results-total{font-size:.63rem!important}.invoice-results-card{background:transparent;border:0;box-shadow:none;overflow:visible}.professional-invoice-table{min-width:0!important}.professional-invoice-table thead{display:none}.professional-invoice-table,.professional-invoice-table tbody,.professional-invoice-table tr,.professional-invoice-table td{display:block;width:100%}.professional-invoice-table tbody{display:grid;gap:12px}.professional-invoice-table tbody tr{background:#fff;border:1px solid #dce7ea;border-left:4px solid var(--aqua);border-radius:15px;padding:14px;box-shadow:0 8px 24px rgba(23,32,51,.07)}.professional-invoice-table tbody tr:after{display:none}.professional-invoice-table tbody td{border:0!important;background:transparent!important;padding:5px 0!important;white-space:normal;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:right!important}.professional-invoice-table tbody td:before{content:attr(data-label);color:#7a8791;font-size:.62rem;text-transform:uppercase;letter-spacing:.045em;font-weight:750;text-align:left}.professional-invoice-table .invoice-number-cell{padding-bottom:10px!important;border-bottom:1px solid #edf1f3!important;margin-bottom:5px}.professional-invoice-table .invoice-number-cell:before{display:none}.professional-invoice-table .invoice-number-cell strong{font-size:.92rem}.invoice-customer{min-width:0;text-align:left}.invoice-customer strong{max-width:190px}.workflow-status-cell,.payment-status-cell{position:static!important;width:100%!important}.payment-progress{width:125px}.invoice-actions{padding-top:10px!important;margin-top:6px;border-top:1px solid #edf1f3!important}.invoice-actions:before{display:none!important}.invoice-actions .dropdown{width:100%}.invoice-action-menu{width:100%;height:38px}.invoice-action-menu:after{content:" Actions";font-family:system-ui;font-weight:750;margin-left:6px}.due-date-cell span{align-items:flex-end}.balance-money small{text-align:right}}
@media(max-width:430px){.invoice-summary-grid{grid-template-columns:1fr}.invoice-summary-card{padding:11px 13px}.invoice-filter-heading{margin-bottom:9px}}


/* Invoice workspace v4: fluid columns, edge-aligned actions and pagination */
.invoice-table-wrap{width:100%;overflow-x:auto}
.professional-invoice-table{width:100%;min-width:1180px;table-layout:fixed}
.professional-invoice-table col.col-invoice{width:10%}
.professional-invoice-table col.col-customer{width:15%}
.professional-invoice-table col.col-workflow{width:11%}
.professional-invoice-table col.col-payment{width:10%}
.professional-invoice-table col.col-progress{width:12%}
.professional-invoice-table col.col-total{width:8%}
.professional-invoice-table col.col-paid{width:8%}
.professional-invoice-table col.col-balance{width:9%}
.professional-invoice-table col.col-due{width:11%}
.professional-invoice-table col.col-actions{width:6%}
.professional-invoice-table th:last-child,.professional-invoice-table td:last-child{padding-right:1rem}
.professional-invoice-table .actions-heading{text-align:right!important}
.professional-invoice-table .invoice-actions{text-align:right!important}
.professional-invoice-table .invoice-actions>.dropdown{display:flex;justify-content:flex-end;width:100%}
.professional-invoice-table .invoice-customer{width:100%;min-width:0}
.professional-invoice-table .invoice-customer>div{min-width:0}
.professional-invoice-table .invoice-customer strong{max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.invoice-pagination{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;padding:14px 16px;border-top:1px solid #e2eaed;background:#fbfdfe}
.invoice-pagination-summary{color:#71808a;font-size:.73rem}.invoice-pagination-summary strong{color:#244248}
.invoice-page-size{display:flex;align-items:center;gap:8px;white-space:nowrap}.invoice-page-size label{font-size:.7rem;color:#71808a;font-weight:700}.invoice-page-size .form-select{width:72px;height:34px;padding:.3rem 1.8rem .3rem .55rem;font-size:.72rem}
.invoice-page-nav{display:flex;align-items:center;gap:5px}.page-control,.page-number{width:34px;height:34px;border:1px solid #d4e1e5;background:#fff;color:#426168;border-radius:9px;display:grid;place-items:center;font-size:.72rem;font-weight:750;transition:.15s ease}.page-control:hover:not(:disabled),.page-number:hover{border-color:var(--aqua);color:var(--teal);background:#f0fbfc}.page-number.active{background:var(--teal);border-color:var(--teal);color:#fff;box-shadow:0 5px 12px rgba(47,63,86,.18)}.page-control:disabled{opacity:.4;cursor:not-allowed}.page-ellipsis{width:24px;text-align:center;color:#829098}
@media(min-width:1600px){.professional-invoice-table{min-width:0}.professional-invoice-table thead th,.professional-invoice-table tbody td{padding-left:.9rem;padding-right:.9rem}}
@media(max-width:1100px){.invoice-pagination{grid-template-columns:1fr auto}.invoice-page-nav{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:767px){.professional-invoice-table{table-layout:auto}.professional-invoice-table colgroup{display:none}.invoice-pagination{grid-template-columns:1fr;padding:13px;border:1px solid #dce7ea;border-radius:14px;background:#fff;margin-top:12px;box-shadow:0 8px 24px rgba(23,32,51,.06)}.invoice-pagination-summary{text-align:center}.invoice-page-size{justify-content:center}.invoice-page-nav{grid-column:auto;justify-content:center;flex-wrap:wrap}.professional-invoice-table .invoice-actions>.dropdown{justify-content:stretch}}
@media(max-width:390px){.page-number{display:none}.page-number.active{display:grid}.page-ellipsis{display:none}.invoice-page-nav:after{content:"Page controls";display:none}}


/* Settings workspace v5 */
.settings-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:20px;align-items:start}.settings-sidebar{position:sticky;top:96px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:0 12px 32px rgba(23,32,51,.06)}.settings-nav-group{display:grid;gap:5px}.settings-nav-group+.settings-nav-group{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.settings-nav-group>span{padding:0 10px 7px;font-size:.69rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.settings-nav-item{width:100%;border:0;background:transparent;border-radius:12px;padding:11px 10px;display:grid;grid-template-columns:34px 1fr auto;gap:10px;text-align:left;align-items:center;color:var(--ink);transition:.18s ease}.settings-nav-item:hover{background:#f1f8f9}.settings-nav-item.active{background:linear-gradient(135deg,rgba(100,116,139,.14),rgba(226,232,240,.18));box-shadow:inset 3px 0 0 var(--aqua)}.settings-nav-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#edf7f8;color:var(--teal)}.settings-nav-item strong{display:block;font-size:.88rem}.settings-nav-item small{display:block;color:var(--muted);font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:155px}.settings-nav-arrow{font-size:.75rem;color:#9ca3af}.settings-detail{min-width:0;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 14px 38px rgba(23,32,51,.07);min-height:620px}.settings-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:22px}.settings-detail-header h2{font-size:1.35rem;font-weight:800;margin:0 0 5px}.settings-detail-header p{margin:0;color:var(--muted);max-width:650px}.settings-back-btn{display:none;border:0;background:transparent;padding:0;margin-right:8px}.settings-panel-form{max-width:920px}.settings-save-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem}.branding-layout{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:32px;align-items:center}.branding-preview{aspect-ratio:1;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,#f8fbfc,#eaf6f7);display:grid;place-items:center;overflow:hidden}.branding-preview img{width:100%;height:100%;object-fit:contain;padding:20px}.branding-preview>div{text-align:center;color:var(--muted);display:grid;gap:8px}.branding-preview i{font-size:2rem}.branding-controls h4,.settings-subpanel h4,.backup-action-card h4,.security-card h4{font-size:1rem;font-weight:800}.branding-controls p,.settings-subpanel p,.backup-action-card p,.security-card p{color:var(--muted)}.upload-dropzone{border:1.5px dashed #b9d5d9;border-radius:14px;padding:22px;margin:18px 0;display:grid;place-items:center;text-align:center;cursor:pointer;background:#fbfefe}.upload-dropzone i{font-size:1.7rem;color:var(--aqua)}.upload-dropzone small{color:var(--muted)}.settings-info{display:flex;gap:10px;padding:13px 15px;border-radius:12px;background:#f0fafb;color:#315b60;margin-bottom:18px;font-size:.84rem}.settings-list{border:1px solid var(--line);border-radius:14px;overflow:hidden}.settings-list-row{display:flex;align-items:center;gap:14px;min-height:62px;padding:12px 14px;background:#fff}.settings-list-row+.settings-list-row{border-top:1px solid var(--line)}.settings-list-row>div:first-child{flex:1;min-width:0}.settings-list-row small{display:block;color:var(--muted);margin-top:3px}.settings-status-main{display:flex!important;align-items:center;gap:12px}.settings-status-main small{margin:0}.settings-row-actions{display:flex;gap:7px;justify-content:flex-end}.settings-split-grid,.backup-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.settings-subpanel{border:1px solid var(--line);border-radius:15px;padding:16px;background:#fbfdfd}.settings-subpanel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.settings-subpanel-title h4,.settings-subpanel-title p{margin:0}.settings-user-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:linear-gradient(135deg,var(--aqua),var(--teal));display:grid;place-items:center;color:#fff;font-weight:800}.settings-user-info{flex:1}.user-settings-row>.pill{margin-left:auto}.backup-action-card,.security-card{border:1px solid var(--line);border-radius:16px;padding:22px;background:#fff}.backup-action-card>span,.security-icon{width:44px;height:44px;border-radius:12px;background:#f0f3f6;color:var(--teal);display:grid;place-items:center;font-size:1.2rem;margin-bottom:18px}.backup-action-card .form-control{margin:14px 0 10px}.danger-soft{background:#fffdfc}.security-card{max-width:760px}.security-card small{display:block;color:var(--muted);margin-top:16px}.settings-mobile-title{display:none}
@media(max-width:991.98px){.settings-workspace{grid-template-columns:220px minmax(0,1fr)}.settings-sidebar{top:88px}.settings-detail{padding:20px}.settings-split-grid{grid-template-columns:1fr}.branding-layout{grid-template-columns:240px 1fr}}
@media(max-width:767.98px){.settings-workspace{display:block}.settings-sidebar{position:static}.settings-sidebar.mobile-hidden{display:none}.settings-detail{display:none;padding:16px;min-height:0}.settings-detail.mobile-open{display:block}.settings-mobile-title{display:block;font-size:1rem;font-weight:800;padding:8px 10px 14px}.settings-nav-item{padding:13px 10px}.settings-nav-item small{max-width:none}.settings-detail-header{align-items:flex-start}.settings-detail-header .btn{white-space:nowrap}.settings-back-btn{display:inline-block}.branding-layout,.backup-action-grid{grid-template-columns:1fr}.branding-preview{max-width:260px}.settings-save-bar{position:sticky;bottom:0;background:#fff;padding:14px 0 4px;z-index:3}.settings-list-row{align-items:flex-start;flex-wrap:wrap}.settings-row-actions{width:100%}.user-settings-row>.pill{margin-left:0}.settings-detail-header{flex-direction:column}.settings-detail-header>button{width:100%}}

/* Product catalogue workspace v7 */
.product-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.product-summary-card{display:flex;align-items:center;gap:13px;padding:15px 17px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-sm)}.product-summary-card>span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eaf8f9;color:var(--teal);font-size:1rem}.product-summary-card small{display:block;color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.06em;font-weight:750}.product-summary-card strong{display:block;margin-top:2px;font-size:1.08rem;color:#12383d}.product-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}.product-sidebar{position:sticky;top:84px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:var(--shadow-sm)}.product-sidebar-head{display:flex;justify-content:space-between;align-items:flex-start;padding:7px 8px 12px}.product-sidebar-head strong{display:block;font-size:.9rem}.product-sidebar-head small{display:block;color:var(--muted);font-size:.71rem;margin-top:2px}.product-mobile-close{display:none;border:0;background:transparent}.product-search-box{height:39px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#fbfcfd;margin-bottom:12px;color:#82909a}.product-search-box input{width:100%;border:0;outline:0;background:transparent;font-size:.78rem}.product-category-list{display:grid;gap:4px}.product-category-item{width:100%;border:0;background:transparent;padding:10px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;color:#395158;font-size:.78rem;text-align:left}.product-category-item span{display:flex;align-items:center;gap:9px;min-width:0}.product-category-item span i{width:17px;color:#71868b}.product-category-item b{font-size:.68rem;background:#eef3f5;color:#607078;border-radius:999px;padding:3px 7px}.product-category-item:hover{background:#f3f8f9}.product-category-item.active{background:#eaf8f9;color:#00686e;font-weight:750;box-shadow:inset 3px 0 0 var(--aqua)}.product-category-item.active b{background:#d5f0f2;color:#00686e}.product-detail-panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow-sm)}.product-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:3px 2px 17px;border-bottom:1px solid var(--line);margin-bottom:4px}.product-kicker{font-size:.67rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#07868d}.product-detail-header h2{font-size:1.25rem;margin:3px 0 3px;font-weight:800;letter-spacing:-.025em}.product-detail-header p{margin:0;color:var(--muted);font-size:.76rem}.product-category-toggle{display:none;border:0;background:transparent;padding:0;margin-right:8px}.product-list{display:grid}.product-list-row{display:grid;grid-template-columns:44px minmax(220px,1.6fr) minmax(120px,.7fr) minmax(120px,.7fr) minmax(90px,.45fr) 38px;align-items:center;gap:14px;padding:15px 8px;border-bottom:1px solid var(--line);transition:.15s ease}.product-list-row:last-child{border-bottom:0}.product-list-row:hover{background:#f9fcfc}.product-list-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#079da5,#00686e);color:#fff;display:grid;place-items:center;font-size:.73rem;font-weight:800;box-shadow:0 6px 15px rgba(0,104,110,.16)}.product-list-main{min-width:0}.product-name-line{display:flex;align-items:center;gap:8px;min-width:0}.product-name-line h3{font-size:.88rem;font-weight:800;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-category-badge{font-size:.61rem;font-weight:700;background:#f0f4f5;color:#5f7076;border:1px solid #dde5e8;border-radius:999px;padding:2px 6px;white-space:nowrap}.product-list-main p{margin:4px 0 0;color:var(--muted);font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-option-stat small,.product-price-block small{display:block;color:#7c8992;font-size:.62rem;text-transform:uppercase;letter-spacing:.05em;font-weight:750}.product-option-stat strong{display:inline-block;color:#183b40;font-size:.88rem;margin-top:2px}.product-option-stat span{display:block;color:#75838b;font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-price-block{text-align:right}.product-price-block strong{display:block;font-size:1rem;color:#00686e;margin-top:2px}.product-row-actions{text-align:right}.product-more-btn{width:34px;height:34px;border:1px solid #d7e4e7;background:#fff;color:#00686e;border-radius:9px;display:grid;place-items:center}.product-more-btn:hover{background:#eefafb;border-color:#9bcfd3}.product-empty-state{text-align:center;padding:60px 20px}.product-empty-state>span{width:58px;height:58px;border-radius:18px;background:#f0f3f6;color:var(--teal);display:grid;place-items:center;margin:0 auto 13px;font-size:1.35rem}.product-empty-state h3{font-size:1rem;font-weight:800}.product-empty-state p{color:var(--muted)}
@media(max-width:1100px){.product-workspace{grid-template-columns:210px minmax(0,1fr)}.product-list-row{grid-template-columns:42px minmax(190px,1.4fr) minmax(105px,.65fr) minmax(85px,.45fr) 36px}.product-list-row .product-option-stat:nth-of-type(2){display:none}}
@media(max-width:767.98px){.product-summary-grid{grid-template-columns:1fr}.product-summary-card{padding:12px 14px}.product-workspace{display:block}.product-sidebar{display:none;position:fixed;inset:70px 12px auto 12px;top:70px;z-index:40;max-height:calc(100vh - 84px);overflow:auto;box-shadow:0 24px 70px rgba(0,34,37,.28)}.product-sidebar.mobile-open{display:block}.product-mobile-close{display:block}.product-category-toggle{display:inline-grid}.product-detail-panel{padding:13px}.product-detail-header{align-items:flex-start}.product-detail-header>div:first-child{min-width:0}.product-list-row{grid-template-columns:42px minmax(0,1fr) auto;padding:13px 5px;gap:10px}.product-list-main{grid-column:2}.product-price-block{grid-column:3;grid-row:1;text-align:right}.product-row-actions{grid-column:3;grid-row:2}.product-option-stat{grid-column:2/span 2;display:flex!important;align-items:center;gap:6px;padding-left:0}.product-option-stat small{display:inline}.product-option-stat strong{margin:0}.product-option-stat span{flex:1}.product-name-line{flex-wrap:wrap}.product-list-main p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-detail-header>.btn{white-space:nowrap}}
@media(max-width:460px){.product-detail-header{flex-direction:column}.product-detail-header>.btn{width:100%}.product-list-row{grid-template-columns:38px minmax(0,1fr) auto}.product-list-icon{width:38px;height:38px}.product-category-badge{display:none}}

/* Customers V8 workspace */
.customer-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.customer-summary-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #dce7ea;border-radius:16px;padding:16px 18px;box-shadow:0 10px 26px rgba(23,32,51,.055)}.customer-summary-card>span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#e4f6f8;color:var(--teal);font-size:1.05rem}.customer-summary-card.warning>span{background:#fff1e8;color:#b45309}.customer-summary-card small{display:block;color:#75838c;text-transform:uppercase;letter-spacing:.065em;font-size:.62rem;font-weight:800}.customer-summary-card strong{display:block;color:#082f34;font-size:1.14rem;margin-top:2px;letter-spacing:-.025em}.customer-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.customer-sidebar,.customer-detail-panel{background:#fff;border:1px solid #dce7ea;border-radius:18px;box-shadow:0 12px 30px rgba(23,32,51,.055)}.customer-sidebar{padding:16px;position:sticky;top:94px}.customer-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:3px 3px 14px}.customer-sidebar-head strong{display:block;color:#123b40;font-size:.93rem}.customer-sidebar-head small{display:block;color:#8a969f;font-size:.69rem;margin-top:2px}.customer-mobile-close{display:none;border:0;background:transparent;color:#56747a;font-size:1.05rem}.customer-search-box{display:flex;align-items:center;gap:9px;border:1px solid #d8e5e8;background:#f9fcfd;border-radius:11px;padding:0 11px;height:42px;margin-bottom:12px}.customer-search-box i{color:#76949a}.customer-search-box input{width:100%;border:0;outline:0;background:transparent;font-size:.78rem;color:#243b3f}.customer-segment-list{display:grid;gap:5px}.customer-segment-item{border:0;background:transparent;border-radius:10px;padding:10px 11px;display:flex;align-items:center;justify-content:space-between;color:#577078;font-size:.76rem;font-weight:750;text-align:left;transition:.15s ease}.customer-segment-item span{display:flex;align-items:center;gap:9px}.customer-segment-item i{width:18px;text-align:center}.customer-segment-item b{min-width:24px;padding:2px 7px;border-radius:999px;background:#edf4f5;color:#647b80;text-align:center;font-size:.62rem}.customer-segment-item:hover{background:#f1f9fa;color:var(--teal)}.customer-segment-item.active{background:linear-gradient(135deg,#e1f5f7,#effbfc);color:var(--teal)}.customer-segment-item.active b{background:#fff;color:var(--teal);box-shadow:0 2px 8px rgba(23,32,51,.08)}.customer-sidebar-note{display:flex;gap:9px;margin-top:16px;padding:11px;border-radius:11px;background:#f4fafb;color:#698086;font-size:.66rem;line-height:1.45}.customer-detail-panel{overflow:hidden;min-width:0}.customer-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 22px;border-bottom:1px solid #e3ecee}.customer-detail-header h2{margin:2px 0 3px;color:#102f34;font-size:1.25rem;font-weight:850;letter-spacing:-.035em}.customer-detail-header p{margin:0;color:#809098;font-size:.72rem}.customer-kicker{display:block;color:var(--aqua);text-transform:uppercase;letter-spacing:.08em;font-size:.61rem;font-weight:850}.customer-segment-toggle{display:none;border:1px solid #d5e4e7;background:#fff;width:36px;height:36px;border-radius:10px;color:var(--teal);margin-right:9px}.customer-reset-btn{border:0;background:transparent;color:var(--teal);font-size:.72rem;font-weight:800;display:flex;align-items:center;gap:6px;padding:7px}.customer-list{padding:0 14px 14px}.customer-list-table{width:100%}.customer-list-head,.customer-list-row{display:grid;grid-template-columns:minmax(220px,1.55fr) minmax(180px,1.25fr) .55fr .8fr .85fr .9fr 42px;gap:14px;align-items:center}.customer-list-head{padding:11px 10px 9px;color:#7b8b93;text-transform:uppercase;letter-spacing:.055em;font-size:.58rem;font-weight:850;border-bottom:1px solid #dce7ea}.customer-list-row{padding:13px 10px;border-bottom:1px solid #e7eef0;transition:.15s ease;position:relative}.customer-list-row:last-child{border-bottom:0}.customer-list-row:hover{background:#f9fcfd;border-radius:12px}.customer-identity{display:flex;align-items:center;gap:11px;min-width:0}.customer-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,var(--teal),var(--aqua));color:#fff;font-size:.69rem;font-weight:900;box-shadow:0 6px 14px rgba(47,63,86,.16);flex:0 0 auto}.customer-identity>div{min-width:0}.customer-identity h3{font-size:.79rem;font-weight:850;color:#12363b;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-identity p{font-size:.63rem;color:#89979e;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-contact-block{display:grid;gap:4px;min-width:0}.customer-contact-block a{display:flex;align-items:center;gap:7px;color:#536d73;text-decoration:none;font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-contact-block a:hover{color:var(--teal)}.customer-contact-block a.is-empty{color:#a2adb2;pointer-events:none}.customer-contact-block i{color:#88a0a5;flex:0 0 auto}.customer-metric small,.customer-balance small,.customer-last-activity small{display:block;color:#87969d;text-transform:uppercase;letter-spacing:.045em;font-size:.53rem;font-weight:800}.customer-metric strong,.customer-balance strong,.customer-last-activity strong{display:block;color:#183a3f;font-size:.72rem;margin-top:3px}.customer-balance.has-balance strong{color:#b45309}.customer-balance.settled strong{color:#087443;font-size:.68rem}.customer-last-activity span{display:block;color:#8d9aa0;font-size:.58rem;margin-top:2px}.customer-more-btn{width:34px;height:34px;border-radius:10px;border:1px solid #d4e3e6;background:#fff;color:var(--teal);display:grid;place-items:center}.customer-more-btn:hover{background:#edf9fa}.customer-empty-state{text-align:center;padding:54px 20px;color:#74858d}.customer-empty-state>span{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;margin:0 auto 14px;background:#e8f6f8;color:var(--teal);font-size:1.35rem}.customer-empty-state h3{font-size:1rem;color:#24464b}.customer-empty-state p{font-size:.76rem}.customer-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;border-top:1px solid #e2ebed;padding:13px 10px 3px;margin-top:4px}.customer-pagination-summary{margin-right:auto;color:#7b8b92;font-size:.66rem}.customer-page-size{display:flex;align-items:center;gap:7px;color:#7b8b92;font-size:.63rem}.customer-page-size select{width:68px;height:32px;padding:.25rem 1.6rem .25rem .55rem;font-size:.66rem}.customer-page-nav{display:flex;align-items:center;gap:4px}.customer-page-control,.customer-page-number{width:31px;height:31px;border:1px solid #d7e4e7;background:#fff;border-radius:9px;color:#527178;font-size:.67rem;font-weight:800}.customer-page-number.active{background:var(--teal);border-color:var(--teal);color:#fff}.customer-page-control:disabled{opacity:.4}.customer-page-ellipsis{padding:0 3px;color:#91a0a6}
@media(max-width:1200px){.customer-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-list-head,.customer-list-row{grid-template-columns:minmax(190px,1.5fr) minmax(160px,1.15fr) .5fr .75fr .8fr 40px}.customer-list-head span:nth-child(6),.customer-list-row>.customer-last-activity{display:none}}
@media(max-width:900px){.customer-workspace{grid-template-columns:1fr}.customer-sidebar{position:fixed;top:0;bottom:0;left:0;width:min(310px,88vw);z-index:1050;border-radius:0;transform:translateX(-104%);transition:.2s ease;overflow:auto}.customer-sidebar.mobile-open{transform:translateX(0);box-shadow:20px 0 50px rgba(0,0,0,.2)}.customer-mobile-close,.customer-segment-toggle{display:inline-grid;place-items:center}.customer-detail-header>div{display:grid;grid-template-columns:auto 1fr}.customer-detail-header .customer-kicker,.customer-detail-header h2,.customer-detail-header p{grid-column:2}.customer-list-head,.customer-list-row{grid-template-columns:minmax(190px,1.6fr) minmax(150px,1fr) .55fr .8fr 40px}.customer-list-head span:nth-child(5),.customer-list-row>.customer-balance{display:none}}
@media(max-width:680px){.customer-summary-grid{grid-template-columns:1fr 1fr;gap:9px}.customer-summary-card{padding:12px;gap:9px}.customer-summary-card>span{width:35px;height:35px;border-radius:10px}.customer-summary-card small{font-size:.53rem}.customer-summary-card strong{font-size:.89rem}.customer-detail-panel{background:transparent;border:0;box-shadow:none;overflow:visible}.customer-detail-header{background:#fff;border:1px solid #dce7ea;border-radius:15px;padding:15px;margin-bottom:11px}.customer-reset-btn{font-size:0}.customer-reset-btn i{font-size:.9rem}.customer-list{padding:0}.customer-list-head{display:none}.customer-list-table{display:grid;gap:11px}.customer-list-row{display:grid;grid-template-columns:1fr auto;gap:11px;background:#fff;border:1px solid #dce7ea;border-left:4px solid var(--aqua);border-radius:15px;padding:14px;box-shadow:0 8px 22px rgba(23,32,51,.06)}.customer-list-row:hover{border-radius:15px}.customer-identity{grid-column:1}.customer-row-actions{grid-column:2;grid-row:1}.customer-contact-block{grid-column:1/-1;padding:10px 0;border-top:1px solid #edf2f3;border-bottom:1px solid #edf2f3}.customer-metric,.customer-balance,.customer-last-activity{display:block!important}.customer-list-row>.customer-metric:nth-of-type(1){grid-column:1}.customer-list-row>.customer-metric:nth-of-type(2){grid-column:2;text-align:right}.customer-balance{grid-column:1}.customer-last-activity{grid-column:2;text-align:right}.customer-pagination{flex-wrap:wrap;justify-content:center;background:#fff;border:1px solid #dce7ea;border-radius:14px;padding:12px;margin-top:11px}.customer-pagination-summary{width:100%;text-align:center;margin:0}.customer-page-size{order:2}.customer-page-nav{order:3}.customer-more-btn{border:0;background:#f0f8f9}.customer-identity h3{font-size:.88rem}.customer-identity p{white-space:normal}.customer-contact-block a{font-size:.71rem}}


/* Reports V9 */
.report-toolbar{padding:16px 18px;margin-bottom:18px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center}.report-toolbar>div:first-child{display:flex;flex-direction:column}.report-toolbar>div:first-child span{font-size:.78rem;color:var(--muted)}.report-range-buttons{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.report-range-btn{border:0;background:transparent;border-radius:10px;padding:9px 13px;color:var(--muted);font-weight:700;font-size:.82rem}.report-range-btn:hover,.report-range-btn.active{background:#edf1f5;color:var(--teal)}.report-custom-range{display:flex;align-items:center;gap:8px}.report-custom-range .form-control{width:145px}.report-custom-range span{color:var(--muted);font-size:.78rem}.report-metrics-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.report-metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;display:flex;gap:13px;align-items:flex-start;min-width:0;box-shadow:0 10px 28px rgba(23,32,51,.045)}.report-metric-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;font-size:1.1rem}.report-metric small{display:block;color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.report-metric strong{display:block;font-size:1.35rem;letter-spacing:-.04em;margin:2px 0}.report-metric p{margin:0;color:var(--muted);font-size:.72rem}.report-primary .report-metric-icon{background:#e3f5f7;color:var(--teal)}.report-success .report-metric-icon{background:#e7f8ef;color:#087a45}.report-warning .report-metric-icon{background:#fff3e5;color:#b65c00}.report-danger .report-metric-icon{background:#fff0ef;color:#c33}.report-neutral .report-metric-icon{background:#f1f4f6;color:#52606d}.report-grid-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr);gap:16px;margin-bottom:16px}.report-chart-card,.report-list-card,.report-aging-card{padding:20px}.report-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.report-card-head h3{font-size:1.05rem;margin:2px 0 3px;font-weight:800}.report-card-head p{margin:0;color:var(--muted);font-size:.78rem}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.64rem;font-weight:800;color:var(--aqua)}.report-chip{background:#f0f3f6;color:var(--teal);border:1px solid #cfeaec;border-radius:99px;padding:6px 10px;font-size:.7rem;font-weight:800;white-space:nowrap}.report-chip.warning{background:#fff5e9;color:#a95500;border-color:#f3dcc0}.report-chart-canvas{height:330px;position:relative}.report-doughnut-wrap{height:255px;position:relative}.report-doughnut-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}.report-doughnut-center strong{font-size:1.6rem}.report-doughnut-center span{font-size:.7rem;color:var(--muted)}.report-legend{display:grid;gap:7px;margin-top:12px}.report-legend>div{display:grid;grid-template-columns:10px 1fr auto;gap:8px;align-items:center;font-size:.74rem}.legend-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8}.legend-paid{background:#22a06b}.legend-partial{background:#e9a23b}.legend-overdue{background:#e35d5d}.legend-cancelled{background:#64748b}.legend-draft{background:#8da1b2}.report-lists-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.report-ranked-list{display:grid}.report-ranked-row{display:grid;grid-template-columns:28px 36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #edf1f3}.report-ranked-row:first-child{border-top:0}.report-rank{font-size:.72rem;color:var(--muted);font-weight:800;text-align:center}.customer-avatar.small,.report-product-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#edf1f5;color:var(--teal);font-size:.7rem;font-weight:800}.report-ranked-main,.report-ranked-value{min-width:0;display:flex;flex-direction:column}.report-ranked-main strong{font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-ranked-main small,.report-ranked-value small{font-size:.68rem;color:var(--muted)}.report-ranked-value{text-align:right}.report-ranked-value strong{font-size:.8rem}.report-empty{padding:28px;text-align:center;color:var(--muted);font-size:.8rem}.report-aging-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.report-aging-item{background:#f8fbfc;border:1px solid #e8eff1;border-radius:13px;padding:15px;display:flex;flex-direction:column}.report-aging-item span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.report-aging-item strong{font-size:1.2rem;margin:3px 0}.report-aging-item small{color:var(--muted);font-size:.7rem}@media(max-width:1200px){.report-metrics-grid{grid-template-columns:repeat(3,1fr)}.report-toolbar{grid-template-columns:1fr}.report-range-buttons{justify-content:flex-start}.report-custom-range{flex-wrap:wrap}}@media(max-width:900px){.report-grid-main,.report-lists-grid{grid-template-columns:1fr}.report-metrics-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:576px){.report-metrics-grid{grid-template-columns:1fr}.report-custom-range .form-control{width:100%;flex:1 1 130px}.report-chart-card,.report-list-card,.report-aging-card{padding:15px}.report-chart-canvas{height:270px}.report-aging-grid{grid-template-columns:1fr}.report-card-head{flex-direction:column}.report-ranked-row{grid-template-columns:24px 34px minmax(0,1fr)}.report-ranked-value{grid-column:3;text-align:left;margin-top:-5px}.report-toolbar{padding:14px}.report-range-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}.report-range-btn{background:#f5f8f9}}@media print{.sidebar,.topbar,.report-toolbar button,.hero-card .btn{display:none!important}.main-area{margin-left:0!important}.content-wrap{padding:0!important}.report-grid-main,.report-lists-grid{grid-template-columns:1fr 1fr}.app-card,.report-metric{box-shadow:none!important;break-inside:avoid}}


/* Drops & Collections V11 */
.drops-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.drops-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:620px;overflow:hidden}.drops-nav{padding:18px 12px;border-right:1px solid var(--line);background:#f8fbfc}.drops-nav-title{padding:8px 12px 12px;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:800}.drops-nav-btn{width:100%;border:0;background:transparent;border-radius:10px;padding:11px 12px;display:flex;align-items:center;gap:10px;text-align:left;color:#425466;font-weight:650;margin:2px 0}.drops-nav-btn:hover{background:#fff}.drops-nav-btn.active{background:#fff;color:var(--teal);box-shadow:0 5px 15px rgba(23,32,51,.08)}.drops-detail{padding:24px;min-width:0}.drops-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.drops-detail-head h2{font-size:1.15rem;margin:0 0 4px}.drops-detail-head p{margin:0;color:var(--muted);font-size:.88rem}.drops-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.drops-panel{border:1px solid var(--line);border-radius:14px;padding:18px;background:#fff}.drops-panel.full{grid-column:1/-1}.panel-title{font-weight:800;margin-bottom:14px}.drop-overview-row{width:100%;border:0;border-top:1px solid #edf2f4;background:#fff;padding:12px 0;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px}.drop-overview-row:first-of-type{border-top:0}.drop-overview-row strong,.drop-overview-row small{display:block}.drop-overview-row small{color:var(--muted);margin-top:3px}.sales-bar-row{display:grid;grid-template-columns:80px 1fr 70px;align-items:center;gap:10px;font-size:.78rem;margin:10px 0}.sales-bar-row>div{height:7px;background:#edf3f4;border-radius:99px;overflow:hidden}.sales-bar-row i{display:block;height:100%;background:var(--aqua);border-radius:99px}.drop-alert,.drop-ok{padding:12px;border-radius:10px;display:flex;gap:9px;align-items:center;margin-top:8px}.drop-alert{background:#fff4ed;color:#a84a1a}.drop-ok{background:#eefaf3;color:#08783e}.drop-list{display:grid;gap:12px}.drop-list-card{border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:16px;cursor:pointer;transition:.18s;background:#fff}.drop-list-card:hover{transform:translateY(-1px);box-shadow:0 10px 28px rgba(23,32,51,.08)}.drop-cover{width:72px;height:72px;border-radius:12px;background:linear-gradient(135deg,var(--deep),var(--aqua));display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem;overflow:hidden}.drop-cover img{width:100%;height:100%;object-fit:cover}.drop-list-main h3{font-size:1rem;margin:0}.drop-list-main p{font-size:.82rem;color:var(--muted);margin:7px 0}.drop-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:.75rem;color:#64748b}.drop-meta span{display:flex;gap:5px;align-items:center}.drop-empty{text-align:center;padding:70px 20px;color:var(--muted)}.drop-empty i{font-size:2.5rem;color:var(--aqua)}.ops-table-wrap{border:1px solid var(--line);border-radius:14px;overflow:auto}.ops-table{width:100%;border-collapse:collapse;min-width:760px}.ops-table th{background:#f7fafb;text-transform:uppercase;letter-spacing:.06em;font-size:.67rem;color:#64748b;padding:11px 12px;text-align:left}.ops-table td{padding:12px;border-top:1px solid #edf2f4;font-size:.8rem;vertical-align:middle}.ops-table td small,.ops-table td strong{display:block}.ops-table td small{color:var(--muted);margin-top:3px}.location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.location-card{border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;align-items:center;gap:13px}.location-card h3{font-size:.95rem;margin:0}.location-card p,.location-card small{font-size:.78rem;color:var(--muted);margin:3px 0}.location-icon{width:42px;height:42px;border-radius:11px;background:#e8f7f8;color:var(--teal);display:flex;align-items:center;justify-content:center}.variant-editor{display:grid;gap:10px}.variant-edit-row{display:grid;grid-template-columns:1.15fr 1.2fr .8fr .65fr .65fr .75fr 38px;gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:12px;background:#f9fbfc}.variant-edit-row label{font-size:.7rem;font-weight:700;color:#64748b}.ops-item-row{display:grid;grid-template-columns:minmax(280px,1fr) 100px 120px 38px;gap:8px;margin:8px 0;align-items:center}.receive-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}.receive-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:13px;border-top:1px solid var(--line)}.receive-row:first-child{border-top:0}.receive-row span,.receive-row small{display:block}.receive-row small{color:var(--muted)}.receive-row input{width:120px}.drop-detail-stats{display:flex;gap:12px;margin:18px 0}.drop-detail-stats span{padding:12px 16px;background:#f5fafb;border-radius:10px}.drop-detail-stats b{display:block;font-size:1.05rem}
@media(max-width:1200px){.drops-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.drops-workspace{grid-template-columns:1fr}.drops-nav{border-right:0;border-bottom:1px solid var(--line);display:flex;overflow:auto;gap:4px}.drops-nav-title{display:none}.drops-nav-btn{width:auto;white-space:nowrap}.drops-detail{padding:16px}.drops-overview-grid{grid-template-columns:1fr}.drops-panel.full{grid-column:auto}.variant-edit-row{grid-template-columns:1fr 1fr}.variant-edit-row .icon-btn{align-self:end}.location-grid{grid-template-columns:1fr}}
@media(max-width:600px){.drops-kpis{grid-template-columns:1fr 1fr}.drop-list-card{grid-template-columns:52px 1fr}.drop-cover{width:52px;height:52px}.drop-list-card>i{display:none}.drop-meta{gap:8px}.ops-item-row{grid-template-columns:1fr 80px}.ops-item-row input:nth-of-type(2){grid-column:1/2}.variant-edit-row{grid-template-columns:1fr}.drops-detail-head{flex-direction:column}.drop-detail-stats{flex-direction:column}.receive-row{align-items:flex-start}}

/* PWA and native-feeling mobile shell */
.mobile-bottom-nav{display:none}
.pwa-install-btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.branding-stack{display:grid;gap:20px}
.app-icon-settings{border-top:1px solid var(--line);padding-top:24px}
.app-icon-preview{width:150px;height:150px;border-radius:32px;background:linear-gradient(145deg,var(--deep),var(--teal));display:grid;place-items:center;overflow:hidden;box-shadow:0 18px 40px rgba(23,32,51,.18)}
.app-icon-preview img{width:100%;height:100%;object-fit:cover}
body.is-offline::before{content:'Offline';position:fixed;z-index:2000;top:8px;left:50%;transform:translateX(-50%);background:#7f1d1d;color:#fff;border-radius:999px;padding:5px 12px;font-size:.72rem;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.22)}

@media (display-mode:standalone){
  .topbar{padding-top:env(safe-area-inset-top);height:calc(76px + env(safe-area-inset-top))}
  body{overscroll-behavior-y:none}
}

@media(max-width:767.98px){
  :root{--mobile-nav-height:70px}
  html,body{max-width:100%;overflow-x:hidden}
  body{background:#f3f7f8;-webkit-tap-highlight-color:transparent}
  .main-area{margin-left:0;width:100%}
  .topbar{height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;gap:10px;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(47,63,86,.08)}
  .top-search{height:42px;min-width:0;width:auto;flex:1;border-radius:14px}
  .top-actions{gap:9px}
  .top-actions>.icon-badge,.top-actions>.user-chip,.top-actions>.fw-semibold{display:none!important}
  .pwa-install-btn{width:42px;height:42px;padding:0;justify-content:center;border-radius:13px}
  .mobile-menu{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef7f8;color:var(--teal)}
  .content-wrap{padding:14px 12px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 72px);max-width:none}
  .hero-card,.app-card{border-radius:18px;box-shadow:0 8px 28px rgba(23,32,51,.06)}
  .sidebar{width:min(88vw,330px);padding-top:calc(18px + env(safe-area-inset-top));padding-bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-105%);transition:transform .24s ease}
  body.sidebar-open .sidebar{transform:translateX(0)}
  body.sidebar-open::after{content:'';position:fixed;inset:0;z-index:15;background:rgba(0,25,28,.42);backdrop-filter:blur(2px)}
  .sidebar{z-index:20}
  .sidebar-revenue{display:none}
  .mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:40;height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));padding:7px 6px env(safe-area-inset-bottom);background:rgba(255,255,255,.97);border-top:1px solid rgba(47,63,86,.10);box-shadow:0 -12px 32px rgba(23,32,51,.09);backdrop-filter:blur(20px)}
  .mobile-bottom-nav a,.mobile-bottom-nav button{appearance:none;border:0;background:transparent;text-decoration:none;color:#718096;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:12px;font-size:.64rem;font-weight:750;min-width:0}
  .mobile-bottom-nav i{font-size:1.18rem;line-height:1}
  .mobile-bottom-nav a.active{color:var(--teal);background:rgba(100,116,139,.10)}
  .modal-dialog{margin:0;min-height:100%;max-width:100%}
  .modal-content{min-height:100vh;min-height:100dvh;border-radius:0!important;padding-bottom:env(safe-area-inset-bottom)}
  .modal-header{padding-top:calc(16px + env(safe-area-inset-top));position:sticky;top:0;z-index:3;background:#fff}
  .form-control,.form-select,.btn{min-height:44px}
  .dropdown-menu{border-radius:16px;box-shadow:0 18px 48px rgba(23,32,51,.16)}
  .branding-layout{grid-template-columns:1fr!important}
  .branding-preview,.app-icon-preview{width:112px;height:112px;border-radius:26px}
  .settings-save-bar{bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));padding-bottom:10px}
}

/* Mobile invoice focus — v13 */
.invoice-filter-actions{display:flex;align-items:center;gap:6px}
.invoice-filter-toggle{display:none;align-items:center;gap:7px;border:1px solid #d4e2e6;background:#fff;color:var(--teal);font-weight:800;border-radius:10px;padding:.45rem .7rem}
.invoice-filter-toggle b{min-width:19px;height:19px;border-radius:999px;display:grid;place-items:center;background:var(--teal);color:#fff;font-size:.62rem}
.invoice-filter-apply{display:none}
.mobile-invoice-detail{display:grid;gap:16px}
.mobile-invoice-detail-head{position:relative;padding:18px;border-radius:16px;background:linear-gradient(145deg,var(--deep),var(--teal));color:#fff;box-shadow:0 12px 30px rgba(23,32,51,.18)}
.mobile-invoice-detail-head div{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.mobile-invoice-detail-head span{font-size:.76rem;font-weight:800}.mobile-invoice-detail-head small{color:rgba(255,255,255,.72);font-size:.68rem}.mobile-invoice-detail-head>strong{display:block;font-size:1.7rem;line-height:1;letter-spacing:-.05em}.mobile-invoice-detail-head>em{display:block;font-size:.66rem;font-style:normal;color:rgba(255,255,255,.72);margin-top:6px;text-transform:uppercase;letter-spacing:.07em}
.mobile-invoice-detail-statuses{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-invoice-detail-statuses>div{padding:12px;border:1px solid #dfe9ec;border-radius:13px;background:#fbfdfe}.mobile-invoice-detail-statuses small{display:block;color:#788791;font-size:.62rem;text-transform:uppercase;letter-spacing:.055em;font-weight:800;margin-bottom:7px}
.mobile-invoice-detail-list{margin:0;border:1px solid #e0e9ec;border-radius:14px;overflow:hidden}.mobile-invoice-detail-list>div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px 13px;border-bottom:1px solid #e9eff1}.mobile-invoice-detail-list>div:last-child{border-bottom:0}.mobile-invoice-detail-list dt{font-size:.7rem;color:#74828d;font-weight:700}.mobile-invoice-detail-list dd{margin:0;font-size:.78rem;color:#26354d;font-weight:800;text-align:right}
.mobile-invoice-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mobile-invoice-detail-actions .btn{min-height:45px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
@media(max-width:767px){
  .invoice-filter-bar{padding:10px!important;background:transparent;border:0;box-shadow:none;margin-bottom:9px!important}
  .invoice-filter-heading{margin:0}.invoice-filter-heading>div:first-child{display:none}.invoice-filter-actions{width:100%;justify-content:space-between}
  .invoice-filter-toggle{display:inline-flex;flex:1;justify-content:center;min-height:43px}.invoice-reset-btn{min-height:43px;border:1px solid #d8e3e6!important;border-radius:10px;background:#fff!important;padding:0 .75rem!important}
  .invoice-filter-panel{display:none;margin-top:9px;padding:13px;background:#fff;border:1px solid #dce7ea;border-radius:14px;box-shadow:0 10px 28px rgba(23,32,51,.08)}.invoice-filter-panel.mobile-open{display:block}.invoice-filter-apply{display:block;width:100%;margin-top:10px;min-height:42px}
  .invoice-results-toolbar{border:1px solid #dce7ea;border-radius:13px;margin-bottom:9px;background:#fff}.invoice-results-total{display:none!important}
  .professional-invoice-table tbody{gap:8px}.professional-invoice-table tbody tr{padding:0!important;border-left:0!important;border-radius:13px;overflow:hidden;box-shadow:0 5px 16px rgba(23,32,51,.06);cursor:pointer}
  .professional-invoice-table tbody td{display:none!important}
  .professional-invoice-table tbody td.mobile-primary-customer,.professional-invoice-table tbody td.workflow-status-cell,.professional-invoice-table tbody td.payment-status-cell,.professional-invoice-table tbody td.mobile-primary-due{display:flex!important}
  .professional-invoice-table tbody td.mobile-primary-customer{padding:13px 13px 8px!important;border-bottom:0!important}.professional-invoice-table tbody td.mobile-primary-customer:before{display:none}.invoice-customer{width:100%}.invoice-customer .customer-initials{width:35px;height:35px}.invoice-customer strong{font-size:.84rem!important;max-width:210px}.invoice-customer small{font-size:.62rem}
  .professional-invoice-table tbody td.workflow-status-cell,.professional-invoice-table tbody td.payment-status-cell{position:static!important;width:auto!important;display:inline-flex!important;padding:0 0 12px 13px!important;justify-content:flex-start!important}.professional-invoice-table tbody td.workflow-status-cell:before,.professional-invoice-table tbody td.payment-status-cell:before{display:none}.professional-invoice-table tbody td.workflow-status-cell{float:left}.professional-invoice-table tbody td.payment-status-cell{float:left;padding-left:6px!important}
  .professional-invoice-table tbody td.mobile-primary-due{clear:both;padding:11px 13px!important;border-top:1px solid #edf2f4!important;justify-content:space-between!important;background:#fbfdfe!important}.professional-invoice-table tbody td.mobile-primary-due:before{content:'Total due';font-size:.63rem}.professional-invoice-table tbody td.mobile-primary-due strong{font-size:.92rem}.professional-invoice-table tbody td.mobile-primary-due small{display:none}.professional-invoice-table tbody td.mobile-primary-due .settled-balance{font-size:.76rem}
  #appModal .modal-dialog{margin:0;min-height:100%;display:flex;align-items:flex-end}#appModal .modal-content{border-radius:20px 20px 0 0!important;max-height:92vh}#appModal .modal-header{padding:14px 16px}
}
@media(min-width:768px){.invoice-filter-panel{display:block!important}}


/* Mobile invoice cards — v14 overlap fix */
.mobile-invoice-list{display:none}
@media(max-width:767px){
  .desktop-invoice-table{display:none!important}
  .mobile-invoice-list{display:grid;gap:9px}
  .mobile-invoice-card{width:100%;padding:0;border:1px solid #dce7ea;border-radius:15px;background:#fff;color:inherit;text-align:left;overflow:hidden;box-shadow:0 6px 18px rgba(23,32,51,.06);appearance:none}
  .mobile-invoice-card:active{transform:scale(.995);background:#fbfdfd}
  .mobile-invoice-card-main{display:grid;grid-template-columns:38px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:13px 13px 9px}
  .mobile-invoice-card .customer-initials{width:38px;height:38px;min-width:38px;font-size:.68rem;align-self:center}
  .mobile-invoice-card-copy{display:block;min-width:0}
  .mobile-invoice-card-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#26354d;font-size:.88rem;line-height:1.25}
  .mobile-invoice-card-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;color:#7b8b95;font-size:.64rem;line-height:1.3}
  .mobile-invoice-chevron{color:#9aabb2;font-size:.85rem;justify-self:end}
  .mobile-invoice-card-statuses{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 13px 11px 61px}
  .mobile-invoice-card-statuses .pill{max-width:100%;font-size:.61rem;line-height:1.2}
  .mobile-invoice-card-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-top:1px solid #edf2f4;background:#fbfdfe}
  .mobile-invoice-card-balance>small{color:#71818b;font-size:.62rem;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
  .mobile-invoice-card-balance>strong{color:#26354d;font-size:.94rem;white-space:nowrap}
  .mobile-invoice-card-balance .settled-balance{color:#087a49;font-size:.76rem}
}
@media(min-width:768px){.desktop-invoice-table{display:block}.mobile-invoice-list{display:none!important}}


/* Security/UI refresh — professional neutral theme */
body{background:linear-gradient(180deg,#f8fafc 0%,#f1f4f7 100%)}
.sidebar{background:linear-gradient(180deg,#172033 0%,#202c3f 58%,#172033 100%);box-shadow:14px 0 38px rgba(23,32,51,.16)}
.nav-link.active{background:rgba(255,255,255,.14);box-shadow:none;border:1px solid rgba(255,255,255,.10)}
.sidebar-revenue{background:rgba(255,255,255,.06)}
.hero-card,.app-card,.stat-card,.invoice-form-panel,.totals-card{border-color:#dce2e8;box-shadow:0 10px 28px rgba(23,32,51,.055)}
.stat-card:after{background:#eef1f5}.stat-value,.panel-title{color:#2f3f56}
.btn-dark{background:#2f3f56;border-color:#2f3f56;box-shadow:0 7px 16px rgba(23,32,51,.14)}
.btn-dark:hover,.btn-dark:focus{background:#172033;border-color:#172033}
.form-control:focus,.form-select:focus{border-color:#718096;box-shadow:0 0 0 .2rem rgba(100,116,139,.12)!important}
.panel-icon,.user-chip{background:#41536b}.amount-due{background:linear-gradient(135deg,#2f3f56,#41536b)}
.info-strip{border-color:#d8dee6;background:#f3f5f7;color:#46576d}

/* Private invoice image controls */
.invoice-reference-upload{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(360px,1.25fr);gap:26px;align-items:center;padding:22px 24px;background:#fff;border:1px solid #dce2e8}
.invoice-reference-copy h5{margin:3px 0 6px;font-weight:820;letter-spacing:-.025em;color:#26354d}.invoice-reference-copy p{margin:0;color:#667085;font-size:.84rem;line-height:1.5}.reference-kicker{display:block;color:#66758a;font-size:.68rem;letter-spacing:.095em;text-transform:uppercase;font-weight:850}
.invoice-reference-control{display:grid;gap:10px}.invoice-reference-control>.form-control{background:#f8fafc}
.invoice-upload-preview{display:flex;align-items:center;gap:13px;min-height:90px;padding:12px 14px;border:1px dashed #c8d0da;border-radius:12px;background:#f8fafc;color:#667085}.invoice-upload-preview.has-image{border-style:solid;background:#fff}.invoice-upload-preview img{width:88px;height:72px;border-radius:9px;object-fit:cover;border:1px solid #dce2e8}.invoice-upload-preview strong{display:block;color:#26354d;font-size:.82rem}.invoice-upload-preview span{display:block;font-size:.72rem;line-height:1.4}.upload-placeholder-icon{width:48px;height:48px;display:grid!important;place-items:center;border-radius:10px;background:#e9edf2;color:#526276;font-size:1.2rem;flex:0 0 auto}
.design-image-preview{display:flex;align-items:center;gap:10px;min-height:76px;padding:9px;border:1px dashed #cdd4dc;border-radius:11px;background:#f8fafc;color:#667085;font-size:.74rem}.design-image-preview.has-image{border-style:solid;background:#fff}.design-image-preview img{flex:0 0 auto}
.invoice-number-with-image{display:flex;align-items:center;gap:10px}.invoice-list-thumb{width:38px;height:38px;min-width:38px;padding:0;border:1px solid #d8dee6;border-radius:9px;background:#f3f5f7;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}.invoice-list-thumb img{width:100%;height:100%;object-fit:cover}.invoice-list-thumb:hover{border-color:#98a3b2}
.mobile-invoice-image-card{width:100%;border:1px solid #dce2e8;border-radius:12px;background:#fff;padding:10px;display:grid;grid-template-columns:64px 1fr;align-items:center;gap:11px;text-align:left;color:inherit}.mobile-invoice-image-card img{width:64px;height:54px;border-radius:8px;object-fit:cover}.mobile-invoice-image-card strong,.mobile-invoice-image-card small{display:block}.mobile-invoice-image-card strong{font-size:.78rem;color:#26354d}.mobile-invoice-image-card small{font-size:.65rem;color:#748091;margin-top:2px}

/* Drops: compact planning table */
.drop-collection-card,.drop-detail-card{border-color:#dce2e8}.drop-code,.drop-status-pill{background:#eef1f5!important;color:#46576d!important}.drop-progress-fill{background:#5e7188!important}

/* Professional invoice print template */
.invoice-theme-professional{background:#eef1f5;padding:22px;border-radius:16px;color:#202938;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.professional-invoice-sheet{max-width:1000px;padding:38px 42px 28px;border:1px solid #d7dde5;box-shadow:0 18px 48px rgba(23,32,51,.10);background:#fff}
.professional-invoice-sheet:before{display:none}
.professional-invoice-header{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:start;padding-bottom:23px;border-bottom:2px solid #26354d}
.professional-brand{display:flex;align-items:center;gap:16px;min-width:0}.professional-logo{width:72px;height:72px;flex:0 0 auto;border-radius:14px;background:#26354d;color:#fff;display:grid;place-items:center;font-size:1.35rem;font-weight:900;letter-spacing:-.05em;overflow:hidden}.professional-logo.has-logo{background:#fff;border:1px solid #d8dee6}.professional-logo img{width:100%;height:100%;object-fit:contain;padding:7px}.professional-brand h1{font-size:1.65rem;margin:0;color:#202938;font-weight:850;letter-spacing:-.045em}.professional-brand p{margin:5px 0 0;color:#667085;font-size:.78rem}
.professional-doc-meta{text-align:right}.professional-doc-title{font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:#667085;font-weight:850}.professional-doc-meta>strong{display:block;font-size:1.45rem;color:#26354d;letter-spacing:-.03em;margin:3px 0 10px}.professional-doc-meta dl{margin:0;display:grid;gap:5px}.professional-doc-meta dl>div{display:flex;justify-content:flex-end;gap:12px;font-size:.72rem}.professional-doc-meta dt{font-weight:700;color:#7b8491}.professional-doc-meta dd{margin:0;min-width:82px;color:#202938;font-weight:750}
.professional-contact-strip{display:flex;flex-wrap:wrap;gap:9px 18px;padding:11px 0 15px;border-bottom:1px solid #e2e6eb;color:#596577;font-size:.69rem}.professional-contact-strip span{display:inline-flex;align-items:center;gap:6px}.professional-contact-strip i{color:#758296}
.professional-billing-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(280px,1.05fr);gap:26px;padding:22px 0}.professional-label{display:block;color:#738094;font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;font-weight:850}.professional-bill-to h2{font-size:1.2rem;margin:5px 0 9px;color:#202938;font-weight:830}.professional-bill-to p{margin:2px 0;color:#667085;font-size:.73rem;line-height:1.45}
.professional-design-reference{min-height:150px;border:1px solid #d9dee5;border-radius:12px;background:#f8fafc;padding:10px;display:grid;grid-template-rows:auto 1fr;overflow:hidden}.professional-design-reference.has-image{background:#fff}.design-reference-label{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:2px 3px 8px}.design-reference-label span{font-size:.62rem;letter-spacing:.10em;font-weight:850;color:#5e6a7a}.design-reference-label small{font-size:.62rem;color:#8a94a2}.professional-design-reference img{width:100%;height:135px;object-fit:contain;border-radius:8px;background:#fff}.design-reference-empty{min-height:105px;display:grid;place-content:center;text-align:center;gap:5px;color:#98a2b0}.design-reference-empty i{font-size:1.25rem}.design-reference-empty span{font-size:.7rem}
.professional-items-table{margin-top:0;border:1px solid #dce2e8;border-radius:10px;overflow:hidden}.professional-items-table thead th{background:#26354d;color:#fff;padding:10px 12px;font-size:.68rem;letter-spacing:.055em}.professional-items-table tbody td{padding:8px 12px;border-bottom:1px solid #e5e9ee;font-size:.75rem}.professional-items-table .print-design-header-row td{background:#f2f4f7!important;border-bottom:1px solid #d9dfe6!important}.professional-items-table .print-design-header-row strong{color:#26354d}.professional-items-table .print-design-head .ms-auto strong{color:#26354d}.professional-items-table .print-design-total-row td{background:#fafbfc;border-bottom:1px solid #d9dfe6!important}.professional-items-table .print-item-icon{background:#e9edf2;border-color:#d5dce4;color:#596a80}
.professional-summary{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:34px;margin-top:23px;align-items:start}.professional-notes{padding-top:4px}.professional-notes p{color:#667085;font-size:.73rem;line-height:1.55;white-space:pre-wrap;margin:7px 0 0;max-width:430px}.professional-totals{border:1px solid #dce2e8;border-radius:10px;overflow:hidden}.professional-totals>div{display:flex;justify-content:space-between;gap:22px;padding:8px 11px;border-bottom:1px solid #e7eaee;font-size:.73rem}.professional-totals>div:last-child{border-bottom:0}.professional-totals span{color:#667085}.professional-totals strong{color:#202938}.professional-totals .professional-total{background:#f3f5f7;font-size:.8rem;font-weight:800}.professional-totals .professional-balance{background:#26354d}.professional-totals .professional-balance span,.professional-totals .professional-balance strong{color:#fff}.professional-totals .professional-balance strong{font-size:.92rem}
.professional-invoice-footer{display:flex;justify-content:space-between;gap:20px;margin-top:27px;padding-top:12px;border-top:1px solid #dfe4ea;color:#7a8491;font-size:.66rem}.professional-invoice-footer strong{color:#526070}

@media(max-width:760px){.invoice-reference-upload{grid-template-columns:1fr;padding:17px}.invoice-upload-preview{align-items:flex-start}.professional-invoice-header,.professional-billing-grid,.professional-summary{grid-template-columns:1fr}.professional-doc-meta{text-align:left}.professional-doc-meta dl>div{justify-content:flex-start}.professional-invoice-sheet{padding:24px 20px}.professional-contact-strip{gap:8px 12px}}
@media print{
  @page{size:A4;margin:9mm}
  html,body{width:auto!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .invoice-theme-professional{padding:0!important;background:#fff!important;border-radius:0!important}
  .professional-invoice-sheet{width:192mm!important;max-width:none!important;min-height:0!important;margin:0 auto!important;padding:9mm 10mm 7mm!important;border:0!important;box-shadow:none!important;overflow:visible!important}
  .professional-invoice-header{grid-template-columns:1fr 60mm;gap:8mm;padding-bottom:5mm}.professional-logo{width:18mm;height:18mm;border-radius:3mm}.professional-brand h1{font-size:16pt}.professional-doc-meta>strong{font-size:13pt}
  .professional-contact-strip{padding:2.5mm 0 3.5mm;font-size:6.7pt}.professional-billing-grid{grid-template-columns:1fr 86mm;gap:7mm;padding:5mm 0}.professional-design-reference{min-height:36mm;padding:2mm}.professional-design-reference img{height:30mm}.design-reference-empty{min-height:27mm}
  .professional-items-table{font-size:7.6pt!important;page-break-inside:auto!important}.professional-items-table thead{display:table-header-group!important}.professional-items-table tr{break-inside:avoid!important;page-break-inside:avoid!important}.professional-items-table thead th{font-size:6.8pt!important;padding:2.2mm 2.5mm!important}.professional-items-table tbody td{font-size:7.2pt!important;padding:1.8mm 2.5mm!important}.professional-items-table .print-design-thumb{width:8mm!important;height:8mm!important}.professional-items-table .print-design-head strong{font-size:8pt!important}
  .professional-summary{grid-template-columns:1fr 65mm;gap:8mm;margin-top:5mm;break-inside:avoid;page-break-inside:avoid}.professional-totals>div{padding:1.8mm 2.4mm;font-size:7pt}.professional-invoice-footer{margin-top:6mm;padding-top:3mm;break-inside:avoid;page-break-inside:avoid}
}
.invoice-image-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:13px}.invoice-gallery-card{appearance:none;border:1px solid #dce2e8;border-radius:12px;background:#fff;padding:10px;display:grid;grid-template-columns:84px minmax(0,1fr) 18px;gap:11px;align-items:center;text-align:left;color:inherit}.invoice-gallery-card:hover{border-color:#aeb8c5;background:#f9fafb}.invoice-gallery-card img{width:84px;height:72px;object-fit:cover;border-radius:9px;background:#f1f4f7}.invoice-gallery-card span{min-width:0}.invoice-gallery-card strong,.invoice-gallery-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-gallery-card strong{font-size:.8rem;color:#26354d}.invoice-gallery-card small{font-size:.66rem;color:#7b8491;margin-top:3px}.invoice-gallery-card>i{color:#8792a0}
.btn-primary{background:#41536b;border-color:#41536b}.btn-primary:hover,.btn-primary:focus{background:#2f3f56;border-color:#2f3f56}.btn-outline-primary{color:#41536b;border-color:#aab4c0}.btn-outline-primary:hover,.btn-outline-primary:focus{background:#41536b;border-color:#41536b;color:#fff}

/* v2.1.2 upload feedback */
.upload-in-progress{position:relative}
.design-image-preview .invoice-upload-preview{width:100%;min-height:72px;border:0;padding:0;background:transparent}
.design-image-preview .invoice-upload-preview img{width:72px!important;height:72px!important;object-fit:cover;border-radius:10px}

/* v2.2.0 — date-first, design-first Drops workflow */
.drop-help-banner{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid #dbe4ec;background:#f7fafc;border-radius:12px;color:#425466}.drop-help-banner>i{font-size:1.15rem;color:var(--teal);margin-top:1px}.drop-help-banner strong,.drop-help-banner span{display:block}.drop-help-banner span{font-size:.82rem;color:var(--muted);margin-top:2px;line-height:1.5}
.drop-onboarding{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:14px;align-items:center;padding:14px;border:1px solid #dde5eb;border-radius:14px;background:#f8fafc}.drop-onboarding>div{display:grid;grid-template-columns:32px 1fr;column-gap:10px;align-items:center}.drop-onboarding>div>span{grid-row:1/3;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--teal);color:#fff;font-weight:800}.drop-onboarding strong{font-size:.84rem}.drop-onboarding small{font-size:.74rem;color:var(--muted)}.drop-onboarding>i{color:#94a3b8}
.drop-list-card-date{grid-template-columns:150px 72px minmax(0,1fr) auto}.drop-date-badge{min-height:72px;border-radius:12px;background:#f2f5f8;border:1px solid #dce4eb;padding:11px 12px;display:flex;flex-direction:column;justify-content:center;gap:2px;color:#34465c}.drop-date-badge i{font-size:.82rem;color:#64748b}.drop-date-badge b{font-size:.92rem}.drop-date-badge small{font-size:.68rem;color:#7b8797;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drop-consolidation-grid{display:grid;gap:12px}.drop-consolidation-card{width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;padding:15px;display:grid;grid-template-columns:210px 1fr auto;align-items:center;gap:16px;text-align:left;transition:.18s}.drop-consolidation-card:hover{box-shadow:0 10px 28px rgba(23,32,51,.08);transform:translateY(-1px)}.drop-date-tile b,.drop-date-tile small{display:block}.drop-date-tile b{color:var(--teal)}.drop-date-tile small{color:var(--muted);margin-top:4px}.drop-consolidation-numbers{display:grid;grid-template-columns:repeat(4,minmax(80px,1fr));gap:8px}.drop-consolidation-numbers span{padding:9px 10px;border-radius:10px;background:#f7f9fb}.drop-consolidation-numbers small,.drop-consolidation-numbers b{display:block}.drop-consolidation-numbers small{font-size:.67rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.drop-consolidation-numbers b{font-size:.92rem;margin-top:2px}.drop-variance{padding:8px 10px;border-radius:9px;font-size:.75rem;font-weight:800;white-space:nowrap}.drop-variance.ok{background:#eaf7ef;color:#167044}.drop-variance.warn{background:#fff5df;color:#926000}.drop-variance.danger{background:#fdecea;color:#a64232}
.drop-form-intro{display:flex;gap:12px;align-items:flex-start;padding-bottom:13px;border-bottom:1px solid #edf1f4}.drop-form-intro h4{font-size:1rem;margin:0 0 3px}.drop-form-intro p{margin:0;color:var(--muted);font-size:.82rem}.drop-form-step{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--teal);color:#fff;font-weight:850}.drop-date-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.drop-date-form-grid .col-span-2{grid-column:1/-1}.drop-date-primary{padding:14px;border:1px solid #cad8e2;background:#f8fbfd;border-radius:12px}.drop-date-primary .form-control{font-weight:800;color:var(--teal);background:#fff}.drop-date-primary small{display:block;margin-top:5px;font-size:.72rem;color:var(--muted)}.drop-advanced-details{border:1px solid #e0e6eb;border-radius:12px;background:#fafcfd;padding:0 14px}.drop-advanced-details summary{cursor:pointer;padding:12px 0;font-weight:750;color:#536477}.drop-advanced-details[open]{padding-bottom:14px}
.drop-design-editors{display:grid;gap:16px;margin-top:16px}.drop-design-editor{border:1px solid #d8e2e8;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 7px 18px rgba(23,32,51,.035)}.drop-design-editor-head{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;background:#f8fafc;border-bottom:1px solid #e5eaee}.drop-design-editor-head h5{font-size:.95rem;margin:2px 0 0}.drop-design-number{font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:#728195;font-weight:800}.drop-design-top-grid{display:grid;grid-template-columns:190px 1fr 1fr;gap:14px;padding:15px}.drop-design-image-box{min-width:0}.drop-design-image-preview{height:145px;border:1px dashed #b8c7d2;border-radius:12px;background:#f8fafc;overflow:hidden;display:flex;align-items:center;justify-content:center}.drop-design-image-preview>img,.drop-image-uploading img{width:100%;height:100%;object-fit:contain}.drop-design-image-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7b8797;padding:14px}.drop-design-image-empty i{font-size:1.6rem;margin-bottom:4px}.drop-design-image-empty strong,.drop-design-image-empty small{display:block}.drop-design-image-empty small{font-size:.7rem}.drop-image-uploading{position:relative;width:100%;height:100%}.drop-image-uploading span{position:absolute;left:8px;right:8px;bottom:8px;background:rgba(23,32,51,.86);color:#fff;border-radius:8px;padding:7px 9px;font-size:.72rem;display:flex;align-items:center;gap:7px}
.drop-variant-table{margin:0 15px 15px;border:1px solid #e0e6eb;border-radius:11px;overflow:hidden}.drop-variant-head,.drop-variant-row{display:grid;grid-template-columns:1.15fr .7fr .75fr .9fr 38px;gap:8px;align-items:center}.drop-variant-head{padding:8px 10px;background:#f5f7fa;font-size:.66rem;text-transform:uppercase;letter-spacing:.05em;color:#718096;font-weight:800}.drop-variant-row{padding:8px 10px;border-top:1px solid #edf1f3}.drop-variant-row:first-child{border-top:0}.drop-design-editor>.btn{margin-left:15px;margin-bottom:15px}.drop-save-bar{position:sticky;bottom:-24px;z-index:3;margin:22px -24px -24px;padding:14px 24px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid #dfe6eb;display:flex;align-items:center;justify-content:space-between;gap:16px}.drop-save-bar strong,.drop-save-bar small{display:block}.drop-save-bar small{color:var(--muted);font-size:.75rem}
.drop-detail-hero{display:flex;align-items:flex-start;gap:16px}.drop-detail-date{min-width:170px;background:#f3f6f9;border:1px solid #dbe3e9;border-radius:12px;padding:12px;display:flex;gap:9px;align-items:center}.drop-detail-date i{font-size:1.2rem;color:var(--teal)}.drop-detail-date small,.drop-detail-date b{display:block}.drop-detail-date small{font-size:.66rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.drop-detail-date b{font-size:.88rem}.drop-consolidation-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0}.drop-consolidation-summary>span{padding:12px;border-radius:11px;background:#f5f8fa;border:1px solid #e4e9ed}.drop-consolidation-summary small,.drop-consolidation-summary b{display:block}.drop-consolidation-summary small{font-size:.67rem;text-transform:uppercase;color:var(--muted)}.drop-consolidation-summary b{font-size:1.05rem;margin-top:2px}.drop-consolidation-summary .ok{background:#edf8f1}.drop-consolidation-summary .warn{background:#fff7e7}.drop-consolidation-summary .danger{background:#fdefed}.drop-detail-design-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.drop-detail-design-card{border:1px solid #dfe6eb;border-radius:13px;display:grid;grid-template-columns:120px 1fr;overflow:hidden;background:#fff}.drop-detail-design-image{height:130px;background:#f5f7fa;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:1.5rem}.drop-detail-design-image img{width:100%;height:100%;object-fit:contain}.drop-detail-design-main{padding:13px}.drop-detail-design-main h5{font-size:.94rem;margin:0}.drop-detail-design-main p{font-size:.72rem;color:var(--muted);margin:4px 0 10px}.drop-design-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.drop-design-stats span{background:#f7f9fb;border-radius:7px;padding:6px}.drop-design-stats small,.drop-design-stats b{display:block}.drop-design-stats small{font-size:.57rem;text-transform:uppercase;color:var(--muted)}.drop-design-stats b{font-size:.76rem;margin-top:1px}
@media(max-width:1100px){.drop-list-card-date{grid-template-columns:130px 60px 1fr auto}.drop-cover{width:60px;height:60px}.drop-consolidation-card{grid-template-columns:170px 1fr}.drop-variance{grid-column:1/-1}.drop-design-top-grid{grid-template-columns:160px 1fr}.drop-design-top-grid>div:last-child{grid-column:2}.drop-consolidation-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.drop-onboarding{grid-template-columns:1fr}.drop-onboarding>i{display:none}.drop-list-card-date{grid-template-columns:1fr 52px;align-items:start}.drop-date-badge{grid-column:1/-1;min-height:auto}.drop-list-card-date .drop-list-main{grid-column:1/-1}.drop-consolidation-card{grid-template-columns:1fr}.drop-consolidation-numbers{grid-template-columns:1fr 1fr}.drop-date-form-grid{grid-template-columns:1fr}.drop-date-form-grid .col-span-2{grid-column:auto}.drop-design-top-grid{grid-template-columns:1fr}.drop-design-top-grid>div:last-child{grid-column:auto}.drop-design-image-preview{height:190px}.drop-variant-head{display:none}.drop-variant-row{grid-template-columns:1fr 1fr}.drop-variant-row .icon-btn{grid-column:2;justify-self:end}.drop-consolidation-summary{grid-template-columns:1fr 1fr}.drop-detail-hero{flex-direction:column}.drop-detail-date{width:100%}.drop-detail-design-grid{grid-template-columns:1fr}.drop-detail-design-card{grid-template-columns:100px 1fr}.drop-save-bar{bottom:-14px;margin-left:-14px;margin-right:-14px;margin-bottom:-14px;padding:12px 14px}.drop-save-bar>div{display:none}}
.drop-opening-stock-box{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-top:14px;padding:15px;border:1px solid #dbe4ea;border-radius:13px;background:#f8fafc}.drop-opening-toggle{display:flex;gap:11px;align-items:flex-start;cursor:pointer;margin:0}.drop-opening-toggle input{width:18px;height:18px;margin-top:2px;accent-color:var(--teal)}.drop-opening-toggle strong,.drop-opening-toggle small{display:block}.drop-opening-toggle small{font-size:.74rem;color:var(--muted);margin-top:3px;line-height:1.45}@media(max-width:760px){.drop-opening-stock-box{grid-template-columns:1fr}}
.drop-find-bar{display:flex;align-items:center;gap:9px;margin-bottom:13px;padding:7px 10px;border:1px solid #dce4ea;border-radius:11px;background:#fff}.drop-find-bar>i{color:#64748b}.drop-find-bar .form-control{border:0;padding:.45rem .25rem;box-shadow:none!important;background:transparent}

/* v2.3.0 — compact invoice breakdown grid + barcode sales */
.breakdown-table-wrap{overflow-x:auto;border:1px solid rgba(223,232,235,.95);border-radius:12px;background:#fff}
.breakdown-grid-head,.breakdown-grid-row{display:grid;grid-template-columns:minmax(150px,1.25fr) minmax(95px,.75fr) minmax(90px,.65fr) minmax(110px,.8fr) minmax(125px,.85fr) 44px;gap:10px;align-items:center;min-width:720px}
.breakdown-grid-head{padding:9px 10px;background:#f5f7fa;border-bottom:1px solid #e1e7ec;color:#64748b;font-size:.68rem;text-transform:uppercase;letter-spacing:.055em;font-weight:800}
.breakdown-box{display:block}
.breakdown-grid-row{padding:9px 10px;border-top:1px solid #edf1f3}
.breakdown-grid-row:first-child{border-top:0}
.breakdown-grid-row .form-control,.breakdown-grid-row .form-select{min-height:44px}
.breakdown-grid-row .line-total-box{display:flex;align-items:center;justify-content:flex-end;background:#f7fafb;color:var(--teal)}
.breakdown-remove{height:44px;padding:0;display:flex;align-items:center;justify-content:center;font-weight:800}

.barcode-sale-card{border:1px solid #dbe4ea;border-radius:16px;padding:20px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 10px 26px rgba(15,23,42,.05)}
.barcode-sale-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}
.barcode-sale-heading span{display:block;color:#64748b;font-size:.68rem;font-weight:850;letter-spacing:.11em;margin-bottom:2px}
.barcode-sale-heading h3{font-size:1.05rem;margin:0 0 4px;color:#172033}
.barcode-sale-heading p{margin:0;color:var(--muted);font-size:.84rem;max-width:720px}
.barcode-sale-icon{width:46px;height:46px;border-radius:13px;background:#e9f2f5;color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex:0 0 auto}
.barcode-sale-controls{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(160px,.65fr) minmax(300px,1.5fr);gap:12px;align-items:end}
.barcode-scan-field small{display:block;color:var(--muted);font-size:.72rem;margin-top:5px}
.barcode-scan-field .input-group-text{background:#eef4f7;color:var(--teal);border-color:#d7e1e7}
.barcode-scan-result{margin-top:14px;padding:12px 14px;border-radius:12px;display:flex;gap:10px;align-items:flex-start}
.barcode-scan-result.success{background:#edf8f2;color:#17663b;border:1px solid #cdebd9}
.barcode-scan-result.error{background:#fff3f1;color:#9b342b;border:1px solid #f1d1cc}
.barcode-scan-result i{font-size:1.05rem;margin-top:1px}.barcode-scan-result strong,.barcode-scan-result span{display:block}.barcode-scan-result span{font-size:.78rem;margin-top:2px}
.drop-barcode-code{font-size:.72rem;white-space:nowrap;background:#f3f6f8;border:1px solid #e0e6eb;border-radius:6px;padding:3px 6px;color:#263747}
.barcode-label-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #e4e9ed}
.barcode-label-toolbar strong,.barcode-label-toolbar small{display:block}.barcode-label-toolbar small{color:var(--muted);margin-top:3px}
.barcode-label-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.barcode-label-card{border:1px solid #dfe6eb;border-radius:13px;padding:14px;display:grid;grid-template-columns:minmax(180px,.9fr) minmax(220px,1.1fr);gap:16px;align-items:center;background:#fff}
.barcode-label-copy strong,.barcode-label-copy span,.barcode-label-copy small{display:block}.barcode-label-copy span{font-size:.82rem;margin-top:3px}.barcode-label-copy small{font-size:.72rem;color:var(--muted);margin-top:5px}
.barcode-visual{text-align:center;min-width:0}.barcode-visual svg{display:block;width:100%;height:52px}.barcode-visual code{display:block;font-size:.72rem;letter-spacing:.08em;margin-top:4px;color:#111}
.code39-svg{shape-rendering:crispEdges;background:#fff}

@media(max-width:900px){.barcode-sale-controls{grid-template-columns:1fr 1fr}.barcode-scan-field{grid-column:1/-1}.barcode-label-grid{grid-template-columns:1fr}}
@media(max-width:600px){.barcode-sale-controls{grid-template-columns:1fr}.barcode-scan-field{grid-column:auto}.barcode-label-toolbar{align-items:flex-start;flex-direction:column}.barcode-label-card{grid-template-columns:1fr}.breakdown-table-wrap{margin-left:-2px;margin-right:-2px}}
.drop-barcode-hint{display:inline-flex;align-items:center;gap:6px;margin:9px 0 15px 10px;color:#64748b;font-size:.72rem}

/* v2.4 Drops product-driven editor */
.drops-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}
.drop-list-actions{display:flex;align-items:center;gap:10px;color:#64748b}
.drop-price-field{min-height:46px;border:1px solid #d7e0e6;border-radius:9px;background:#f7f9fb;padding:6px 10px;display:flex;flex-direction:column;justify-content:center}.drop-price-field span{font-weight:800;color:#17334f;font-size:.9rem}.drop-price-field small{font-size:.61rem;color:#718096;text-transform:uppercase;letter-spacing:.04em}
.drop-design-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 15px 15px}.drop-design-footer .btn{margin:0!important}.drop-design-total{margin-left:auto;display:flex;gap:8px}.drop-design-total span{background:#f5f8fa;border:1px solid #e1e8ed;border-radius:9px;padding:7px 10px;min-width:94px}.drop-design-total small,.drop-design-total b{display:block}.drop-design-total small{font-size:.59rem;text-transform:uppercase;letter-spacing:.04em;color:#718096}.drop-design-total b{font-size:.82rem;color:#17334f;margin-top:1px}
.drop-save-summary{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}.drop-save-summary>span{padding:7px 11px;border:1px solid #dfe6eb;border-radius:9px;background:#f7f9fb;min-width:105px}.drop-save-summary small,.drop-save-summary strong{display:block!important}.drop-save-summary small{font-size:.6rem!important;text-transform:uppercase;letter-spacing:.05em}.drop-save-summary strong{font-size:.9rem}.drop-save-summary em{font-style:normal;font-size:.7rem;color:var(--muted)}
.drop-edit-notice{margin-top:16px;padding:12px 14px;border:1px solid #cfe0ee;background:#f2f8fc;border-radius:11px;display:flex;gap:10px;align-items:flex-start;color:#31546e}.drop-edit-notice i{margin-top:2px}.drop-edit-notice strong,.drop-edit-notice span{display:block}.drop-edit-notice span{font-size:.75rem;margin-top:2px;color:#59738a}
.drop-edit-lock{font-size:.7rem;font-weight:750;color:#64748b;background:#f3f5f7;border:1px solid #dfe4e8;border-radius:999px;padding:5px 9px}.variant-lock{display:flex;align-items:center;justify-content:center;color:#7b8794}
.drop-design-stats{grid-template-columns:repeat(5,1fr)}
.drop-consolidation-summary{grid-template-columns:repeat(6,1fr)}
@media(max-width:1200px){.drops-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.drop-design-total{width:100%;margin-left:0}.drop-design-total span{flex:1}.drop-save-summary em{display:none}.drop-consolidation-summary{grid-template-columns:1fr 1fr}}
.drop-consolidation-numbers{grid-template-columns:repeat(5,minmax(80px,1fr))}


/* ==========================================================================
   v2.5.0 — unified professional theme, dedicated Sales page, Staff UI & security
   ========================================================================== */
:root{
  --deep:#172033;
  --teal:#334155;
  --aqua:#5f7d85;
  --rust:#9a554d;
  --ice:#e9eef2;
  --soft:#f6f8fa;
  --ink:#1e293b;
  --muted:#64748b;
  --line:#dce3e9;
  --brand-accent:#4f7179;
  --brand-accent-soft:#edf4f5;
  --brand-success:#2f7454;
  --brand-danger:#9a554d;
}
body{background:linear-gradient(180deg,#fbfcfd 0%,#f3f6f8 100%)}
.sidebar{background:linear-gradient(180deg,#172033 0%,#202c3f 100%);box-shadow:12px 0 34px rgba(15,23,42,.15)}
.nav-link.active{background:rgba(255,255,255,.12);box-shadow:inset 3px 0 0 #9cb4ba,0 8px 20px rgba(15,23,42,.15)}
.btn-primary{--bs-btn-bg:#4f7179;--bs-btn-border-color:#4f7179;--bs-btn-hover-bg:#405f66;--bs-btn-hover-border-color:#405f66;--bs-btn-active-bg:#354f55;--bs-btn-active-border-color:#354f55;--bs-btn-disabled-bg:#738b91;--bs-btn-disabled-border-color:#738b91}
.btn-outline-primary{--bs-btn-color:#4f7179;--bs-btn-border-color:#9bb0b5;--bs-btn-hover-bg:#4f7179;--bs-btn-hover-border-color:#4f7179;--bs-btn-active-bg:#405f66;--bs-btn-active-border-color:#405f66}
.btn-dark{background:#334155;border-color:#334155;box-shadow:0 7px 17px rgba(30,41,59,.14)}
.btn-dark:hover{background:#253247;border-color:#253247}
.hero-card,.app-card,.invoice-form-panel,.totals-card,.settings-subpanel,.drops-panel{border-color:#dde4e9;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.form-control,.form-select{border-color:#d7e0e7;background-color:#fff}
.form-control:focus,.form-select:focus{border-color:#78949b;box-shadow:0 0 0 .2rem rgba(79,113,121,.12)!important}
.session-secure-indicator{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--brand-accent-soft);color:var(--brand-accent);font-size:.95rem;border:1px solid #d7e5e7}

/* Dedicated Sales workspace */
.sales-page-loading{padding:22px;display:flex;align-items:center;gap:12px}.sales-page-loading div{display:grid}.sales-page-loading small{color:var(--muted);margin-top:3px}
.sales-page-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.sales-page-kpis article{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px 18px;display:flex;align-items:center;gap:12px;box-shadow:0 7px 20px rgba(15,23,42,.045);min-width:0}
.sales-page-kpis article>span{width:42px;height:42px;border-radius:12px;background:var(--brand-accent-soft);color:var(--brand-accent);display:grid;place-items:center;flex:0 0 auto}
.sales-page-kpis small,.sales-page-kpis strong{display:block}.sales-page-kpis small{font-size:.67rem;text-transform:uppercase;letter-spacing:.055em;color:var(--muted);font-weight:800}.sales-page-kpis strong{font-size:1.25rem;color:#243447;margin-top:2px;letter-spacing:-.025em}
.sales-focus-card{margin-bottom:18px;padding:22px}
.sales-readonly-date{min-height:48px;border:1px solid #d7e0e7;border-radius:10px;background:#f8fafb;padding:7px 11px;display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center}.sales-readonly-date i{grid-row:1/3;color:var(--brand-accent)}.sales-readonly-date span{font-weight:750;color:#334155}.sales-readonly-date small{font-size:.66rem;color:var(--muted)}
.sales-recent-card{padding:20px;overflow:hidden}.sales-recent-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.sales-recent-head span{font-size:.65rem;letter-spacing:.09em;font-weight:850;color:var(--muted)}.sales-recent-head h3{font-size:1.05rem;margin:2px 0 0;color:#243447}
.role-staff .sidebar-section{display:none!important}.role-staff .brand-block{margin-bottom:22px}.role-staff .content-wrap{max-width:1500px}.role-staff .topbar{justify-content:flex-end}.role-staff .top-actions{margin-left:auto}

/* Active sessions & audit activity */
.security-activity-panel{margin-top:18px}.security-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.security-session-card,.security-event-card{padding:18px;min-width:0}.security-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:13px;border-bottom:1px solid #e7ebef}.security-panel-head>div>span{font-size:.62rem;letter-spacing:.1em;font-weight:850;color:var(--muted)}.security-panel-head h4{font-size:1rem;margin:2px 0}.security-panel-head p{font-size:.74rem;color:var(--muted);margin:0;line-height:1.45}.security-session-list,.security-event-list{display:grid;max-height:470px;overflow:auto}.security-session-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f4}.security-session-row:last-child{border-bottom:0}.security-device-icon{width:36px;height:36px;border-radius:10px;background:#f0f4f6;color:var(--brand-accent);display:grid;place-items:center}.security-session-row strong,.security-session-row span,.security-session-row small{display:block}.security-session-row strong{font-size:.78rem}.security-session-row strong small{display:inline;font-size:.62rem;color:var(--muted);font-weight:700;margin-left:5px}.security-session-row div>span{font-size:.67rem;color:#526273;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.security-session-row div>small{font-size:.62rem;color:var(--muted);margin-top:2px}
.security-event-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f4}.security-event-row:last-child{border-bottom:0}.security-event-dot{width:8px;height:8px;border-radius:50%;background:#4e8265}.security-event-dot.warn{background:#a45c4f}.security-event-row strong,.security-event-row span{display:block}.security-event-row strong{font-size:.75rem;text-transform:capitalize}.security-event-row span,.security-event-row>small{font-size:.62rem;color:var(--muted)}.empty-security-row{padding:24px;text-align:center;color:var(--muted);font-size:.78rem}

/* Prevent layout blow-outs from long content and dynamic forms */
.view,.app-card,.modal-content,.drops-detail,.settings-detail,.sales-recent-card{min-width:0}
img,svg,canvas{max-width:100%}
input,select,textarea,button{max-width:100%}
.ops-table-wrap,.table-responsive,.breakdown-table-wrap{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}

/* Sales table becomes touch-friendly cards on phones */
@media(max-width:720px){
  .sales-page-kpis{grid-template-columns:1fr}
  .sales-focus-card,.sales-recent-card{padding:14px}
  .sales-recent-head{align-items:flex-start}
  .sales-recent-card .ops-table{min-width:0;display:block}.sales-recent-card .ops-table thead{display:none}.sales-recent-card .ops-table tbody{display:grid;gap:10px}.sales-recent-card .ops-table tr{display:block;border:1px solid #e0e6eb;border-radius:12px;padding:11px;background:#fff}.sales-recent-card .ops-table td{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border:0;padding:5px 0;text-align:right}.sales-recent-card .ops-table td::before{content:attr(data-label);font-size:.6rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800;color:var(--muted);text-align:left}.sales-recent-card .ops-table td strong,.sales-recent-card .ops-table td small{text-align:right}
  .security-grid{grid-template-columns:1fr}.security-session-row{grid-template-columns:36px minmax(0,1fr)}.security-session-row>.btn,.security-session-row>.pill{grid-column:2;justify-self:start}
}
@media(max-width:560px){
  .barcode-sale-heading{gap:10px}.barcode-sale-icon{width:40px;height:40px}.barcode-sale-heading h3{font-size:.98rem}.barcode-sale-heading p{font-size:.78rem}
  .barcode-sale-controls{gap:10px}.barcode-scan-field .input-group-lg>.form-control{font-size:1rem;min-height:50px}
  .top-actions{gap:8px}.session-secure-indicator{display:none}.auth-user-menu .btn{padding:.45rem .65rem}
  .sales-recent-head{flex-direction:column}.sales-recent-head .btn{width:100%}
}
@media(max-width:420px){
  .content-wrap{padding-left:10px!important;padding-right:10px!important}.hero-card{padding:15px}.sales-focus-card{border-radius:14px}
  .barcode-sale-heading p{line-height:1.4}.user-chip{width:36px;height:36px}.topbar{padding-left:10px!important;padding-right:10px!important}
}
@media(max-width:767.98px){
  body.role-staff .mobile-bottom-nav{grid-template-columns:1fr 1fr}
  body.role-staff .mobile-bottom-nav [data-route]:not([data-route="sales"]){display:none!important}
}

/* v2.5.1 security-panel clarity */
.security-session-copy,.security-event-copy{min-width:0}.security-tech-details{margin-top:7px}.security-tech-details summary{cursor:pointer;color:var(--brand-accent);font-size:.64rem;font-weight:800;list-style:none;display:inline-flex;align-items:center;gap:4px}.security-tech-details summary::-webkit-details-marker{display:none}.security-tech-details summary:before{content:"+";font-weight:900}.security-tech-details[open] summary:before{content:"−"}.security-tech-details>div{margin-top:8px;padding:10px;border:1px solid #e3e9ee;background:#f8fafb;border-radius:10px;display:grid;gap:4px;max-width:100%;overflow:hidden}.security-tech-details b{font-size:.58rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-top:3px}.security-tech-details code,.security-tech-details pre{display:block;margin:0;padding:5px 7px;background:#fff;border:1px solid #e8edf1;border-radius:6px;font-size:.61rem;line-height:1.35;color:#324356;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:130px;overflow:auto}.security-event-copy>span{margin-top:2px}@media(max-width:600px){.security-event-row{grid-template-columns:10px minmax(0,1fr)}.security-event-row>small{grid-column:2}.security-tech-details>div{padding:8px}}

/* v2.5.2 — live user-management feedback */
.user-live-notice{display:flex;align-items:center;gap:10px;border:1px solid #bfe5d3;background:#f1fbf6;color:#255f45;border-radius:12px;padding:11px 14px;margin-bottom:16px}
.user-live-notice i{font-size:1rem}
.user-settings-row{transition:background-color .18s ease}
.user-settings-row:hover{background:#fbfdfd}
@media(max-width:575.98px){
  .user-settings-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px 12px}
  .user-settings-row>.settings-user-avatar{grid-column:1}
  .user-settings-row>.settings-user-info{grid-column:2}
  .user-settings-row>.pill{grid-column:2;justify-self:start;margin:0}
  .user-settings-row>.settings-row-actions{grid-column:1 / -1;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .user-settings-row>.settings-row-actions .btn{width:100%}
}


/* ==========================================================================\n   v2.5.4 — Users & Access card layout fix\n   ========================================================================== */
.user-access-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
}
.user-summary-card{
  min-width:0;
  border:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%,#f7f9fb 100%);
  border-radius:16px;
  padding:15px 16px;
  display:grid;
  gap:4px;
  box-shadow:0 8px 18px rgba(16,24,40,.045);
}
.user-summary-card span{
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.075em;
  text-transform:uppercase;
  color:var(--muted);
}
.user-summary-card strong{
  font-size:1.42rem;
  line-height:1.05;
  color:var(--ink);
}
.user-summary-card small{
  color:var(--muted);
  font-size:.74rem;
  line-height:1.35;
}
.user-security-tip b{font-weight:800}
.user-access-list{display:grid;gap:12px}
.user-access-card{
  min-width:0;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:16px 18px;
  box-shadow:0 9px 24px rgba(15,23,42,.05);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.user-access-card:hover{
  border-color:#cfd9e2;
  box-shadow:0 14px 30px rgba(15,23,42,.075);
  transform:translateY(-1px);
}
.user-access-avatar-wrap{
  position:relative;
  width:58px;
  height:58px;
  flex:0 0 58px;
}
.user-access-avatar{
  width:58px;
  height:58px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#607b88,#334155);
  color:#fff;
  font-size:.95rem;
  font-weight:850;
  letter-spacing:.035em;
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 7px 16px rgba(30,41,59,.18),inset 0 1px 0 rgba(255,255,255,.18);
}
.user-access-status{
  position:absolute;
  right:1px;
  bottom:2px;
  width:13px;
  height:13px;
  border-radius:50%;
  border:2px solid #fff;
  background:#2f8a62;
  box-shadow:0 0 0 2px rgba(47,138,98,.12);
}
.user-access-status.inactive{
  background:#b97948;
  box-shadow:0 0 0 2px rgba(185,121,72,.13);
}
.user-access-main{min-width:0}
.user-access-header-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.user-access-header-row h4{
  margin:0;
  color:var(--ink);
  font-size:1rem;
  font-weight:800;
  line-height:1.2;
}
.user-access-handle{
  margin-top:3px;
  color:var(--muted);
  font-size:.78rem;
}
.user-access-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}
.role-chip,.status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid transparent;
  padding:5px 9px;
  font-size:.67rem;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}
.role-chip.role-admin{background:#eef3fb;color:#36547c;border-color:#d8e2f1}
.role-chip.role-user{background:#eef7f2;color:#34664f;border-color:#d4e9dc}
.role-chip.role-staff{background:#edf7f8;color:#2d626b;border-color:#d2e8eb}
.status-chip.active{background:#edf8f2;color:#246648;border-color:#d0eadb}
.status-chip.inactive{background:#fff4ec;color:#8a5030;border-color:#f0d4c0}
.status-chip.current{background:#f2f4f7;color:#4a596c;border-color:#dde3e9}
.user-access-desc{
  margin:8px 0 0;
  max-width:72ch;
  color:#4b5b6c;
  font-size:.8rem;
  line-height:1.45;
}
.user-access-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:10px;
  color:var(--muted);
  font-size:.73rem;
}
.user-access-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:0;
}
.user-access-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}
.user-access-actions .btn{white-space:nowrap}
.user-access-actions .btn i{margin-right:4px}

@media(max-width:1100px){
  .user-access-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .user-access-card{grid-template-columns:58px minmax(0,1fr)}
  .user-access-actions{grid-column:1/-1;justify-content:flex-start;margin-left:74px}
}
@media(max-width:767.98px){
  .user-access-card{grid-template-columns:50px minmax(0,1fr);padding:14px;gap:12px}
  .user-access-avatar-wrap,.user-access-avatar{width:50px;height:50px}
  .user-access-avatar{font-size:.86rem}
  .user-access-header-row{flex-direction:column;gap:8px}
  .user-access-badges{justify-content:flex-start}
  .user-access-actions{margin-left:62px;width:calc(100% - 62px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .user-access-actions .btn{width:100%}
}
@media(max-width:520px){
  .user-access-summary-grid{grid-template-columns:1fr}
  .user-access-card{grid-template-columns:44px minmax(0,1fr);border-radius:15px}
  .user-access-avatar-wrap,.user-access-avatar{width:44px;height:44px}
  .user-access-status{width:11px;height:11px}
  .user-access-actions{grid-column:1/-1;margin-left:0;width:100%;grid-template-columns:1fr}
  .user-access-meta{display:grid;gap:6px}
}

/* v2.6.0 Security traffic monitor */
.security-traffic-panel{margin-top:18px}.security-traffic-card{padding:18px;min-width:0}.traffic-head{margin-bottom:14px}.traffic-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0 18px}.traffic-kpi{border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,#f7fafc);padding:13px 14px;display:grid;gap:3px;min-width:0}.traffic-kpi span{font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;font-weight:850;color:var(--muted)}.traffic-kpi strong{font-size:1.25rem;line-height:1.1;color:var(--ink);overflow-wrap:anywhere}.traffic-kpi small{font-size:.65rem;color:var(--muted);line-height:1.35}.traffic-kpi.warning{background:#fffaf2;border-color:#ecd9b8}.traffic-kpi.warning strong{color:#8a5c1d}.traffic-kpi.blocked{background:#fff6f3;border-color:#eccfc8}.traffic-kpi.blocked strong{color:#9b493d}.traffic-kpi.critical{background:#fff2f1;border-color:#e9c5c1}.traffic-kpi.critical strong{color:#913e38}.traffic-chart-panel,.traffic-subpanel{border:1px solid var(--line);border-radius:15px;background:#fbfcfd;padding:15px}.traffic-chart-panel{margin-bottom:14px}.traffic-subhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.traffic-subhead h5{font-size:.86rem;font-weight:850;margin:0 0 2px;color:var(--ink)}.traffic-subhead p{font-size:.68rem;color:var(--muted);margin:0;line-height:1.4}.traffic-retention{font-size:.65rem;color:var(--muted);white-space:nowrap}.traffic-hour-chart{height:150px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(18px,1fr);gap:5px;align-items:end;overflow-x:auto;padding:8px 2px 2px}.traffic-hour-col{height:130px;display:grid;grid-template-rows:1fr 20px;gap:4px;min-width:18px}.traffic-hour-stack{position:relative;height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #dfe6ec}.traffic-hour-bar{display:block;width:72%;min-height:4px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#6f879a,#40566d)}.traffic-hour-alert{position:absolute;bottom:0;width:28%;right:4%;border-radius:4px 4px 2px 2px;background:#c36a5e;min-height:3px}.traffic-hour-col small{text-align:center;font-size:.54rem;color:var(--muted);transform:rotate(-45deg);transform-origin:center;white-space:nowrap}.traffic-grid-2{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:14px;margin-bottom:14px}.traffic-ip-list,.traffic-action-list,.traffic-request-list{display:grid;max-height:430px;overflow:auto}.traffic-ip-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:11px 0;border-bottom:1px solid #e8edf1}.traffic-ip-row:last-child,.traffic-action-row:last-child,.traffic-request-row:last-child{border-bottom:0}.traffic-ip-icon{width:34px;height:34px;border-radius:10px;background:#fff3ef;color:#a05448;display:grid;place-items:center}.traffic-ip-copy{min-width:0}.traffic-ip-copy strong{display:block;font-size:.78rem}.traffic-ip-copy>span,.traffic-ip-copy>small{display:block;color:var(--muted);font-size:.64rem;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.traffic-reasons{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.traffic-reasons span{border-radius:999px;padding:3px 7px;background:#f2f5f7;color:#526173;font-size:.58rem;font-weight:750}.traffic-action-row{padding:10px 0;border-bottom:1px solid #e8edf1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:center}.traffic-action-row code{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:.66rem;color:#29495c}.traffic-action-row>span{font-size:.66rem;font-weight:800;color:var(--ink)}.traffic-action-row small{grid-column:1 / -1;font-size:.6rem;color:var(--muted)}.traffic-recent-panel{margin-bottom:14px}.traffic-request-row{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #e8edf1}.traffic-status{width:42px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:.68rem;font-weight:850;background:#eef4f5;color:#395869}.traffic-status.notice{background:#f6f3eb;color:#78642c}.traffic-status.warn{background:#fff1ec;color:#9c4f42}.traffic-status.critical{background:#fee9e8;color:#8d3734}.traffic-request-main{min-width:0}.traffic-request-main>div:first-child{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.traffic-request-main strong{font-size:.75rem}.traffic-request-main>span,.traffic-request-main>small{display:block;font-size:.62rem;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.traffic-risk{display:inline-flex;border-radius:999px;padding:3px 7px;font-size:.55rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em;background:#eef3f5;color:#506171}.traffic-risk.notice{background:#f6f3e8;color:#776329}.traffic-risk.warning{background:#fff0e9;color:#9a4c3f}.traffic-risk.critical{background:#fee8e7;color:#8b3431}.traffic-caveat{margin:0}
@media(max-width:1199.98px){.traffic-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.traffic-grid-2{grid-template-columns:1fr}}
@media(max-width:767.98px){.traffic-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.security-traffic-card{padding:14px}.traffic-hour-chart{height:135px}.traffic-subhead{flex-direction:column}.traffic-retention{white-space:normal}.traffic-request-main>span,.traffic-request-main>small,.traffic-ip-copy>span,.traffic-ip-copy>small{white-space:normal;overflow:visible}.traffic-request-row{grid-template-columns:40px minmax(0,1fr)}}
@media(max-width:480px){.traffic-kpi-grid{grid-template-columns:1fr}.traffic-action-row{grid-template-columns:1fr}.traffic-action-row small{grid-column:auto}.traffic-status{width:36px}.traffic-request-row{grid-template-columns:36px minmax(0,1fr)}}


/* v2.6.2 — Android/iOS standalone PWA vertical-scroll stability */
@media(max-width:767.98px){
  html{
    height:auto;
    min-height:100%;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:auto;
    touch-action:pan-y pinch-zoom;
  }
  body:not(.modal-open):not(.sidebar-open){
    position:static;
    height:auto;
    min-height:100dvh;
    overflow-x:hidden;
    overflow-y:auto!important;
    overscroll-behavior-y:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y pinch-zoom;
  }
  .app-shell,.main-area,.content-wrap,.view{
    height:auto;
    min-height:0;
    overflow:visible;
  }
  .app-shell,.main-area{min-height:100dvh}
  .sidebar{
    overflow-x:hidden;
    overflow-y:auto;
    max-height:100dvh;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
  body.sidebar-open{overflow:hidden!important;touch-action:none}
  body.sidebar-open .sidebar{touch-action:pan-y;overflow-y:auto}
  body.modal-open{overflow:hidden!important}
  body.modal-open .modal{
    overflow-x:hidden;
    overflow-y:auto!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
  body.modal-open .modal-dialog,
  body.modal-open .modal-content{
    height:auto;
    min-height:100dvh;
  }
  body.modal-open .modal-body{overflow:visible}
  .mobile-bottom-nav{touch-action:manipulation}
}
@media (display-mode:standalone) and (max-width:767.98px){
  html,body{overscroll-behavior-y:auto}
}


/* v2.7.0 — Staff offline sales */
.offline-sales-banner{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #cfe6dc;background:#f2fbf7;border-radius:16px;padding:13px 16px;margin:0 0 16px;color:#255f49}.offline-sales-banner.offline{border-color:#ead7a8;background:#fff9e9;color:#76581c}.offline-sales-banner>i{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.72);font-size:1.1rem}.offline-sales-banner strong,.offline-sales-banner span,.offline-sales-banner small{display:block}.offline-sales-banner strong{font-size:.9rem}.offline-sales-banner span{font-size:.78rem;margin-top:2px;line-height:1.45}.offline-sales-count{text-align:center;min-width:58px;padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.72)}.offline-sales-count b{font-size:1.05rem;display:block}.offline-sales-count small{font-size:.64rem;text-transform:uppercase;letter-spacing:.06em}.offline-queue-card{margin:16px 0;padding:18px}.offline-queue-card .sales-recent-head p{margin:3px 0 0;color:var(--muted);font-size:.76rem}.offline-queue-list{display:grid;margin-top:12px;border-top:1px solid var(--line)}.offline-queue-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.offline-queue-row.failed{background:#fff8f5}.offline-queue-status{width:32px;height:32px;border-radius:10px;background:#eef7fb;color:#25687f;display:grid;place-items:center}.offline-queue-row.failed .offline-queue-status{background:#fff0ea;color:#a64d32}.offline-queue-row strong,.offline-queue-row span,.offline-queue-row small{display:block}.offline-queue-row strong{font-size:.82rem}.offline-queue-row span{font-size:.72rem;color:#526273;margin-top:2px}.offline-queue-row small{font-size:.66rem;color:var(--muted);margin-top:2px;line-height:1.35}.offline-queue-row code{font-size:.67rem;color:#536477}@media(max-width:767.98px){.offline-sales-banner{grid-template-columns:38px minmax(0,1fr);padding:12px}.offline-sales-count{grid-column:2;justify-self:start;display:flex;gap:6px;align-items:center;text-align:left;min-width:0}.offline-sales-count b{font-size:.9rem}.offline-queue-row{grid-template-columns:32px minmax(0,1fr)}.offline-queue-row code{grid-column:2;overflow-wrap:anywhere}.sales-page-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.sales-page-kpis{grid-template-columns:1fr}.offline-sales-banner{grid-template-columns:1fr}.offline-sales-banner>i{display:none}.offline-sales-count{grid-column:1}}


/* v2.7.6 — Offline sales synchronization notifications and Admin Sync Center */
.sync-notification-button{position:relative;width:38px;height:38px;border:1px solid var(--line,#dfe5ec);border-radius:11px;background:#fff;color:#344a62;display:inline-flex;align-items:center;justify-content:center;transition:.18s ease}
.sync-notification-button:hover{background:#f4f7fa}.sync-notification-button.has-attention{border-color:#e7a4a4;background:#fff6f6;color:#a02a2a}
.sync-notification-badge{position:absolute;right:-5px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#263d5a;color:#fff;border:2px solid #fff;font-size:10px;font-weight:800;line-height:16px;text-align:center}
.sync-notification-button.has-attention .sync-notification-badge{background:#b43333}
.sync-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.sync-mini-stats span{background:#f6f8fa;border:1px solid #e5eaf0;border-radius:10px;padding:12px;text-align:center}.sync-mini-stats b,.sync-mini-stats small{display:block}.sync-mini-stats b{font-size:1.25rem}.sync-mini-stats small{color:#667789;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em}
@media(max-width:640px){.sync-mini-stats{grid-template-columns:1fr 1fr}.sync-notification-button{width:34px;height:34px}}

/* v2.7.7 — Phone-camera barcode sales with duplicate-scan protection */
.camera-scan-entry{display:flex;align-items:center;gap:14px;padding:12px 14px;margin:-2px 0 16px;border:1px solid #d6e3e8;border-radius:14px;background:#f4fafb}.camera-scan-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800;white-space:nowrap}.camera-scan-entry>span{display:block;color:#354457}.camera-scan-entry strong,.camera-scan-entry small{display:block}.camera-scan-entry strong{font-size:.82rem}.camera-scan-entry small{margin-top:2px;color:#66778a;font-size:.73rem;line-height:1.35}
.camera-scanner-shell{display:grid;gap:12px}.camera-scanner-status,.camera-last-result,.camera-integrity-note{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border-radius:12px;border:1px solid #d8e1e7;background:#f6f8fa;color:#324154}.camera-scanner-status i,.camera-last-result i,.camera-integrity-note i{font-size:1.05rem;margin-top:1px;flex:0 0 auto}.camera-scanner-status strong,.camera-scanner-status span,.camera-last-result strong,.camera-last-result span,.camera-integrity-note strong,.camera-integrity-note span{display:block}.camera-scanner-status span,.camera-last-result span,.camera-integrity-note span{font-size:.76rem;line-height:1.4;margin-top:2px}.camera-scanner-status.success,.camera-last-result.success{background:#edf8f2;border-color:#c9ead7;color:#17633a}.camera-scanner-status.error,.camera-last-result.error{background:#fff1ef;border-color:#efcec8;color:#943229}.camera-scanner-status.warning{background:#fff8e9;border-color:#f1ddb0;color:#7a5716}
.camera-preview-wrap{position:relative;overflow:hidden;border-radius:16px;background:#080d12;min-height:320px;aspect-ratio:16/10}.camera-preview-wrap video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#080d12}.camera-scan-mask{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;background:linear-gradient(to bottom,rgba(0,0,0,.34),rgba(0,0,0,.08) 30%,rgba(0,0,0,.08) 70%,rgba(0,0,0,.34))}.camera-scan-guide{position:relative;width:min(86%,620px);height:36%;min-height:110px;border:2px solid rgba(255,255,255,.86);border-radius:14px;box-shadow:0 0 0 9999px rgba(0,0,0,.16) inset}.camera-scan-guide::after{content:"";position:absolute;left:6%;right:6%;top:50%;height:2px;background:rgba(255,255,255,.92);box-shadow:0 0 10px rgba(255,255,255,.75)}.camera-scan-guide span::before,.camera-scan-guide span::after{content:"";position:absolute;width:28px;height:28px;border-color:#7ee1c3;border-style:solid}.camera-scan-guide span::before{left:-2px;top:-2px;border-width:4px 0 0 4px;border-radius:12px 0 0 0}.camera-scan-guide span::after{right:-2px;bottom:-2px;border-width:0 4px 4px 0;border-radius:0 0 12px 0}.camera-scan-mask small{margin-top:12px;padding:5px 9px;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font-size:.72rem;letter-spacing:.02em}.camera-scanner-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:2px 0}.camera-integrity-note{background:#eef5fb;border-color:#d3e3ef;color:#304b63}.camera-integrity-note i{color:#315b76}
@media(max-width:700px){.camera-scan-entry{align-items:stretch;flex-direction:column}.camera-scan-button{width:100%;font-size:.96rem}.camera-preview-wrap{min-height:280px;aspect-ratio:4/5}.camera-scan-guide{width:92%;height:26%;min-height:100px}.camera-scanner-actions .btn{flex:1 1 auto}.camera-scanner-status span,.camera-last-result span,.camera-integrity-note span{font-size:.72rem}}


/* v2.7.9 — phone-only offline readiness overlay */
.mobile-offline-prep{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:max(20px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom));background:rgba(10,18,34,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.mobile-offline-prep.d-none{display:none!important}
.mobile-offline-prep-card{width:min(100%,420px);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;border-radius:28px;padding:28px 24px 22px;box-shadow:0 28px 80px rgba(0,0,0,.28);text-align:center;color:#172033}
.mobile-offline-prep-art{height:96px;position:relative;display:flex;align-items:center;justify-content:center;margin:0 auto 8px}
.prep-orbit{width:76px;height:76px;border-radius:24px;background:linear-gradient(145deg,#172033,#34425f);display:flex;align-items:center;justify-content:center;color:#fff;font-size:34px;box-shadow:0 14px 34px rgba(23,32,51,.22);position:relative;z-index:2}
.prep-orbit span{position:absolute;inset:-10px;border:3px solid rgba(23,32,51,.12);border-top-color:#172033;border-radius:28px;animation:tePrepSpin 1.05s linear infinite}
.prep-cloud{position:absolute;right:calc(50% - 76px);top:8px;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9f7f2;color:#087b61;font-size:19px;animation:tePrepFloat 1.5s ease-in-out infinite}
.mobile-offline-prep-kicker{font-size:11px;font-weight:800;letter-spacing:.14em;color:#087b61;margin-top:4px}
.mobile-offline-prep h2{font-size:22px;line-height:1.2;margin:7px 0 8px;font-weight:800}
.mobile-offline-prep p{font-size:14px;line-height:1.55;color:#657086;margin:0 auto 18px;max-width:330px}
.mobile-offline-progress{height:8px;border-radius:999px;background:#edf0f4;overflow:hidden;margin:4px 0 18px;text-align:left}
.mobile-offline-progress span{display:block;height:100%;width:8%;border-radius:999px;background:linear-gradient(90deg,#172033,#087b61);transition:width .32s ease}
.mobile-offline-steps{display:grid;gap:8px;text-align:left;margin:0 0 18px}
.mobile-offline-step{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:13px;color:#7a8496;background:#f7f8fa;font-size:13px;transition:.2s ease}
.mobile-offline-step span{width:22px;height:22px;display:grid;place-items:center;font-size:15px}.mobile-offline-step b{font-weight:700}
.mobile-offline-step.is-active{background:#eef3ff;color:#263b67}.mobile-offline-step.is-active i{display:inline-block;animation:tePrepSpin .85s linear infinite}
.mobile-offline-step.is-done{background:#edf9f4;color:#087b61}.mobile-offline-step.is-warn{background:#fff4e5;color:#9a5b00}
.mobile-offline-prep-foot{display:flex;justify-content:center;align-items:flex-start;gap:6px;color:#7b8493;font-size:11px;line-height:1.45}.mobile-offline-prep-foot i{color:#087b61;margin-top:1px}
.mobile-offline-prep-action{margin:0 0 14px}.mobile-offline-prep-action .btn{border-radius:13px;padding:11px 14px;font-weight:700}
.prep-ready{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#0b8f6b;color:#fff;font-size:38px;box-shadow:0 15px 36px rgba(11,143,107,.25);animation:tePrepPop .35s ease-out}
.mobile-offline-prep.is-complete .mobile-offline-progress span{width:100%!important;background:#0b8f6b}.mobile-offline-prep.is-paused .prep-orbit span{animation-play-state:paused}.mobile-offline-prep.is-paused .prep-cloud{animation-play-state:paused}
body.mobile-offline-preparing{overflow:hidden!important;touch-action:none}
@keyframes tePrepSpin{to{transform:rotate(360deg)}}@keyframes tePrepFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes tePrepPop{0%{transform:scale(.7);opacity:0}100%{transform:scale(1);opacity:1}}
@media (min-width:901px){.mobile-offline-prep{display:none!important}}
@media (prefers-reduced-motion:reduce){.prep-orbit span,.prep-cloud,.mobile-offline-step.is-active i,.prep-ready{animation:none!important}.mobile-offline-progress span{transition:none}}


/* v2.7.11 — camera confirmation + mobile bottom-nav clearance */
.camera-scan-decision{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:18px;background:rgba(7,12,20,.84);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.camera-scan-decision.d-none{display:none!important}
.camera-scan-decision-card{width:min(100%,390px);max-height:92%;overflow:auto;border-radius:22px;background:#fff;padding:22px;text-align:center;box-shadow:0 22px 70px rgba(0,0,0,.35);color:#172033}
.camera-scan-decision-icon{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:#e7f8f1;color:#087b61;font-size:2rem;font-weight:900}
.camera-scan-decision.error .camera-scan-decision-icon{background:#fff0ec;color:#a34937}
.camera-scan-decision-card>small{display:block;font-size:.67rem;font-weight:900;letter-spacing:.14em;color:#087b61;margin-bottom:5px}.camera-scan-decision.error .camera-scan-decision-card>small{color:#a34937}
.camera-scan-decision-card h3{font-size:1.35rem;margin:0 0 8px;font-weight:850}.camera-scan-decision-card p{font-size:.9rem;font-weight:750;margin:0 0 5px}.camera-scan-decision-card>span{display:block;color:#667085;font-size:.8rem;line-height:1.45}
.camera-read-note{margin:14px 0 0;padding:10px 11px;border-radius:12px;background:#f4f7fa;color:#445468;font-size:.72rem;line-height:1.4;text-align:left}.camera-read-note i{margin-right:5px;color:#315b76}
.camera-scan-decision-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin-top:18px}.camera-scan-decision-actions .btn{min-height:48px;font-weight:750;border-radius:13px}
.zero-stock-panel{border:1px solid #f0d6bc;border-radius:16px;background:#fffaf4;padding:14px}.zero-stock-head{display:flex;gap:11px;align-items:flex-start;margin-bottom:12px}.zero-stock-head>i{width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#fff0df;color:#a45a16;display:grid;place-items:center}.zero-stock-head strong,.zero-stock-head span{display:block}.zero-stock-head span{font-size:.76rem;line-height:1.45;color:#765b43;margin-top:3px}
@media(max-width:767.98px){
  /* The fixed PWA nav must never cover the final page controls or table rows. */
  .content-wrap{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 72px)!important}
  .view:not(.d-none){padding-bottom:24px}
  .camera-scan-decision{padding:12px}.camera-scan-decision-actions{grid-template-columns:1fr}.camera-scan-decision-card{padding:20px 17px}
}


/* v2.7.12 — exact SKU verification before camera sale */
.camera-scan-decision.verify .camera-scan-decision-card{max-width:560px}
.camera-verify-card h3{margin-bottom:12px}
.camera-verify-product{display:grid;grid-template-columns:82px 1fr;gap:14px;align-items:center;text-align:left;background:#f7fafc;border:1px solid #dfe7ec;border-radius:14px;padding:12px;margin:12px 0}
.camera-verify-image{width:82px;height:82px;border-radius:11px;overflow:hidden;background:#eaf0f3;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:#73808b}
.camera-verify-image img{width:100%;height:100%;object-fit:cover}
.camera-verify-product strong,.camera-verify-product span,.camera-verify-product b{display:block}.camera-verify-product span{font-size:.78rem;color:#667786;margin:3px 0}.camera-verify-product b{font-size:.9rem}
.camera-verify-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 12px;text-align:left}.camera-verify-grid>span{background:#f8fafb;border:1px solid #e1e7eb;border-radius:10px;padding:9px 10px}.camera-verify-grid small,.camera-verify-grid code,.camera-verify-grid b{display:block}.camera-verify-grid small{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;color:#6f7d88;margin-bottom:3px}.camera-verify-grid code{font-size:.72rem;word-break:break-all}.camera-read-note.safe{background:#edf8f2;border-color:#cce8d7;color:#195f3b}.camera-confirm-code{display:inline-block;margin-top:10px;padding:5px 8px;border-radius:7px;background:#f1f4f6;border:1px solid #dfe5e9;font-size:.74rem}
@media(max-width:600px){.camera-verify-product{grid-template-columns:68px 1fr}.camera-verify-image{width:68px;height:68px}.camera-verify-grid{grid-template-columns:1fr}.camera-verify-actions{flex-direction:column}.camera-verify-actions .btn{width:100%}}

.drop-help-banner.success{border-color:#cde8d8;background:#f0faf4;color:#17613b}.drop-help-banner.success>i{color:#198754}.drop-help-banner.danger{border-color:#efd0cc;background:#fff4f2;color:#94362d}.drop-help-banner.danger>i{color:#b54135}


/* v2.7.14 — compact explanation for stock added/removed after the original Drop stock */
.stock-adjustment-chip{display:inline-flex!important;align-items:center;gap:3px;width:max-content;margin-top:4px;padding:2px 6px;border-radius:999px;font-size:.58rem!important;line-height:1.2;text-transform:none!important;letter-spacing:0!important;font-weight:800;border:1px solid transparent;white-space:nowrap}
.stock-adjustment-chip i{font-size:.62rem}
.stock-adjustment-chip.is-plus{color:#176b48;background:#eaf8f0;border-color:#bfe5cf}
.stock-adjustment-chip.is-minus{color:#9a3e2e;background:#fff0ed;border-color:#f1c7bf}
.ops-table .stock-adjustment-chip{margin-left:5px;margin-top:0;vertical-align:middle}
@media(max-width:760px){.stock-adjustment-chip{font-size:.61rem!important;padding:3px 7px}.ops-table .stock-adjustment-chip{margin-left:0;margin-top:4px}}

/* v2.7.17 — phone-first Sales thumbnails + recent-image offline cache */
@media(max-width:900px){
  body.role-staff .view#view-sales:not(.d-none){padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 108px)}
  .mobile-sales-workspace{display:grid;gap:14px}
  .mobile-sales-primary{padding:14px;border-radius:18px}
  .mobile-sales-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
  .mobile-connection-pill,.mobile-sync-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:.68rem;font-weight:850;border:1px solid #dbe4e9;background:#f6f9fa;color:#425466;white-space:nowrap}
  .mobile-connection-pill.online{background:#edf8f2;border-color:#c9ead7;color:#17633a}.mobile-connection-pill.offline{background:#fff6e7;border-color:#eed9aa;color:#7a5716}.mobile-connection-pill.paused{background:#fff0ed;border-color:#efc9c1;color:#983d31}
  button.mobile-sync-pill{appearance:none}.mobile-sync-pill.clear{color:#5b6c7a;background:#f7f9fa}
  .mobile-sales-location-label{display:flex;align-items:center;gap:5px;margin:0 0 6px;font-size:.7rem;font-weight:850;color:#5b6b78;text-transform:uppercase;letter-spacing:.05em}
  .mobile-sales-location{min-height:48px;border-radius:12px;font-weight:750}
  .mobile-camera-primary{width:100%;border:0;border-radius:18px;margin-top:11px;min-height:112px;background:linear-gradient(145deg,#19324a,#294a62);color:#fff;display:grid;place-items:center;align-content:center;gap:2px;box-shadow:0 12px 28px rgba(31,54,75,.18);touch-action:manipulation}
  .mobile-camera-primary>span{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:1.2rem;margin-bottom:3px}.mobile-camera-primary b{font-size:1.18rem}.mobile-camera-primary small{font-size:.72rem;color:rgba(255,255,255,.78)}
  .mobile-sales-primary .barcode-scan-result{margin-top:11px;margin-bottom:0}
  .mobile-sales-other-input{margin-top:10px;border-top:1px solid #e8edf0;padding-top:8px}.mobile-sales-other-input summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;padding:8px 3px;color:#617180;font-size:.75rem;font-weight:800}.mobile-sales-other-input summary::-webkit-details-marker{display:none}.mobile-sales-other-input[open] summary{color:#315b76}.mobile-sales-other-input>div{padding:7px 0 2px}.mobile-sales-other-input>div>small{display:block;margin-top:5px;color:#7b8791;font-size:.67rem}
  .mobile-sales-mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-sales-mini-stats>span{border:1px solid #e1e7eb;background:#fff;border-radius:13px;padding:10px 12px;display:grid;gap:1px}.mobile-sales-mini-stats small{font-size:.62rem;text-transform:uppercase;letter-spacing:.07em;color:#7a8793;font-weight:850}.mobile-sales-mini-stats b{font-size:.9rem;color:#243447}
  .mobile-sales-recent{background:#fff;border:1px solid #e1e7eb;border-radius:17px;padding:12px;overflow:hidden}
  .mobile-sales-section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:1px 2px 10px}.mobile-sales-section-head small{display:block;color:#84909a;font-size:.59rem;font-weight:900;letter-spacing:.09em}.mobile-sales-section-head h3{font-size:.96rem;margin:1px 0 0}.mobile-sales-section-head>span{font-size:.64rem;color:#7a8793}
  .mobile-sale-list{display:grid;border-top:1px solid #edf1f3}.mobile-sale-row{appearance:none;border:0;border-bottom:1px solid #edf1f3;background:#fff;width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;gap:9px;align-items:center;text-align:left;padding:10px 2px;color:#263747}.mobile-sale-row:last-child{border-bottom:0}.mobile-sale-row:active{background:#f7fafb}.mobile-sale-row-icon{width:32px;height:32px;border-radius:10px;background:#eaf7f0;color:#15734a;display:grid;place-items:center;font-weight:900}.mobile-sale-row-thumb{width:32px;height:32px;border-radius:10px;overflow:hidden;background:#eef3f5;display:block;border:1px solid #e2e9ed}.mobile-sale-row-thumb img{width:100%;height:100%;display:block;object-fit:cover}.mobile-sale-row-copy{min-width:0}.mobile-sale-row-copy strong,.mobile-sale-row-copy small,.mobile-sale-row-copy em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-sale-row-copy strong{font-size:.79rem}.mobile-sale-row-copy small{font-size:.68rem;color:#627280;margin-top:1px}.mobile-sale-row-copy em{font-style:normal;font-size:.62rem;color:#8a959e;margin-top:2px}.mobile-sale-row>i{color:#9aa5ae;font-size:.8rem}
  .mobile-sales-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:10px;border-top:1px solid #edf1f3}.mobile-sales-pager button{width:34px;height:34px;border-radius:10px;border:1px solid #dce4e9;background:#fff;color:#425466}.mobile-sales-pager button:disabled{opacity:.35}.mobile-sales-pager span{font-size:.7rem;font-weight:850;color:#617180;min-width:42px;text-align:center}
  .mobile-sales-empty{padding:28px 12px;text-align:center;color:#86929c;display:grid;gap:5px}.mobile-sales-empty i{font-size:1.4rem}
  .mobile-sale-detail{display:grid;gap:12px}.mobile-sale-detail-item{display:grid;grid-template-columns:70px 1fr;gap:11px;align-items:center;border:1px solid #e1e7eb;background:#f8fafb;padding:10px;border-radius:14px}.mobile-sale-detail-item img,.mobile-sale-detail-placeholder{width:70px;height:70px;border-radius:10px;object-fit:cover;background:#e9eef1;display:grid;place-items:center;color:#7c8994}.mobile-sale-detail-item small{font-size:.58rem;letter-spacing:.09em;font-weight:900;color:#7c8994}.mobile-sale-detail-item h4{font-size:.95rem;margin:2px 0}.mobile-sale-detail-item span{font-size:.7rem;color:#657582}
  .mobile-sale-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-sale-detail-grid>div{border:1px solid #e3e9ed;border-radius:11px;padding:9px;background:#fff;min-width:0}.mobile-sale-detail-grid small,.mobile-sale-detail-grid strong,.mobile-sale-detail-grid span,.mobile-sale-detail-grid code{display:block}.mobile-sale-detail-grid small,.mobile-sale-detail-notes small{font-size:.58rem;text-transform:uppercase;letter-spacing:.07em;color:#85919a;font-weight:850}.mobile-sale-detail-grid strong{font-size:.76rem;margin-top:2px}.mobile-sale-detail-grid span,.mobile-sale-detail-grid code{font-size:.66rem;margin-top:2px;overflow-wrap:anywhere}.mobile-sale-detail-notes{border:1px solid #e3e9ed;border-radius:11px;padding:9px}.mobile-sale-detail-notes span{display:block;font-size:.68rem;color:#63727e;margin-top:3px;overflow-wrap:anywhere}
  .mobile-sync-modal .offline-queue-card{border:0;box-shadow:none;margin:0;padding:0}.mobile-sync-modal .sales-recent-head{margin-top:0}

  /* Any app modal temporarily takes precedence over the fixed PWA navigation. */
  body.modal-open .mobile-bottom-nav{display:none!important}
  body.camera-scanner-open #appModal .modal-dialog{margin:0;max-width:none;width:100%;height:100dvh;max-height:100dvh}
  body.camera-scanner-open #appModal .modal-content{height:100dvh;max-height:100dvh;border-radius:0!important;overflow:hidden}
  body.camera-scanner-open #appModal .modal-header{padding-top:max(12px,env(safe-area-inset-top));flex:0 0 auto}
  body.camera-scanner-open #appModal .modal-body{padding:12px 12px calc(env(safe-area-inset-bottom) + 44px);overflow:auto;-webkit-overflow-scrolling:touch}
  body.camera-scanner-open .camera-scanner-shell{padding-bottom:24px}
  body.camera-scanner-open .camera-preview-wrap{min-height:0;aspect-ratio:4/5;max-height:62dvh}
  body.camera-scanner-open .camera-scan-decision-card{max-height:calc(100% - 12px);padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}
@media(max-width:430px){
  .mobile-sales-primary{padding:12px}.mobile-camera-primary{min-height:104px}.mobile-sales-mini-stats{gap:7px}.mobile-sale-detail-grid{grid-template-columns:1fr}
  body.camera-scanner-open #appModal .modal-body{padding-left:9px;padding-right:9px;padding-bottom:calc(env(safe-area-inset-bottom) + 54px)}
  body.camera-scanner-open .camera-preview-wrap{aspect-ratio:3/4;max-height:66dvh}
}
@media(max-width:900px){
  body.role-staff #view-sales>.hero-card{padding:11px 13px!important;margin-bottom:10px!important;border-radius:14px}
  body.role-staff #view-sales>.hero-card .section-title{font-size:1.05rem!important;margin:0!important}
  body.role-staff #view-sales>.hero-card .small-muted{font-size:.7rem;margin-top:2px}
  body.camera-scanner-open .camera-integrity-note{display:none}
  body.camera-scanner-open .camera-last-result.neutral{display:none}
}


/* v2.7.19 — safe barcode printer profiles */
.barcode-print-profile-note{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;margin-bottom:14px;border:1px solid #d8e3e8;border-radius:16px;background:#f8fbfc}.barcode-print-profile-note>div{display:flex;flex-direction:column;gap:2px}.barcode-print-profile-note span{font-size:.7rem;font-weight:800;letter-spacing:.12em;color:#66808d}.barcode-print-profile-note strong{font-size:1rem;color:#17283a}.barcode-print-profile-note small{color:#6b7d87}.barcode-safety-locks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.barcode-safety-locks>div{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid #d9e4e8;border-radius:14px;background:#f8fbfb}.barcode-safety-locks i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e5f5f0;color:#087c68}.barcode-safety-locks span{display:flex;flex-direction:column}.barcode-safety-locks small{font-size:.66rem;font-weight:800;letter-spacing:.1em;color:#788a94}.barcode-safety-locks strong{font-size:.92rem;color:#213242}.barcode-profile-select{max-width:620px}.barcode-profile-card{border:1px solid #d8e3e8;border-radius:18px;padding:18px;background:#fff;max-width:760px}.barcode-profile-card.recommended{border-color:#9bd8c8;background:#f8fffc}.barcode-profile-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.barcode-profile-head span{font-size:.72rem;font-weight:800;letter-spacing:.11em;color:#66808d;text-transform:uppercase}.barcode-profile-head h4{margin:3px 0 4px;font-size:1.18rem}.barcode-profile-head p{margin:0;color:#687983}.barcode-recommended-badge{padding:6px 10px;border-radius:999px;background:#dcf6ec;color:#08745f;font-size:.72rem;white-space:nowrap}.barcode-profile-demo{--label-aspect:2;aspect-ratio:var(--label-aspect);width:min(100%,420px);max-height:230px;margin-top:16px;border:1px dashed #aab9c1;border-radius:12px;background:#fff;padding:12px;display:flex;flex-direction:column;justify-content:center;text-align:center;overflow:hidden}.barcode-profile-demo strong{font-size:.8rem}.barcode-profile-demo small{font-size:.68rem;color:#6a7c87;margin-bottom:4px}.barcode-profile-demo>div{min-height:0;flex:1;display:flex;align-items:center}.barcode-profile-demo svg{width:100%;max-height:100%}.barcode-profile-demo code{font-size:.68rem;letter-spacing:.06em;color:#15283a}.barcode-profile-caution{display:flex;gap:9px;align-items:flex-start;margin-top:13px;padding:10px 12px;border-radius:12px;background:#fff7e8;color:#895d09;font-size:.82rem}.barcode-profile-caution i{margin-top:1px}@media(max-width:720px){.barcode-safety-locks{grid-template-columns:1fr}.barcode-print-profile-note{align-items:flex-start;flex-direction:column}.barcode-profile-head{flex-direction:column}.barcode-profile-demo{width:100%}}


/* v2.7.20 — mobile account access + audited sales returns */
.mobile-account-panel{display:none}
.sale-return-chip{display:inline-flex!important;align-items:center;gap:4px;margin-left:7px;padding:3px 7px;border-radius:999px;font-size:.56rem!important;line-height:1;font-weight:850;vertical-align:middle;white-space:nowrap}.sale-return-chip.approved{background:#fff0f0;color:#b42318;border:1px solid #f6c8c8}.sale-return-chip.pending{background:#fff7e7;color:#9a5b00;border:1px solid #f2d9aa}.mobile-sale-row-copy>strong{display:flex;align-items:center;flex-wrap:wrap;gap:3px}.mobile-sale-row-copy>strong .sale-return-chip{margin-left:4px}.mobile-sales-mini-stats span em{display:block;font-style:normal;font-size:.58rem;color:#b42318;margin-top:2px;font-weight:750}
.sale-return-safety{display:flex;gap:11px;padding:13px 14px;border:1px solid #cce8dd;background:#effaf5;border-radius:14px;color:#176947}.sale-return-safety>i{font-size:1.15rem;margin-top:1px}.sale-return-safety strong,.sale-return-safety span{display:block}.sale-return-safety strong{font-size:.82rem}.sale-return-safety span{font-size:.68rem;line-height:1.45;margin-top:2px;color:#477369}.sale-return-origin{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.sale-return-origin span{padding:10px;border:1px solid #e1e9ec;background:#f8fbfc;border-radius:11px;min-width:0}.sale-return-origin small{display:block;color:#7c8b93;text-transform:uppercase;font-size:.53rem;letter-spacing:.06em;font-weight:800}.sale-return-origin strong{display:block;font-size:.69rem;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.return-disposition-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.return-disposition-options label{cursor:pointer}.return-disposition-options input{position:absolute;opacity:0;pointer-events:none}.return-disposition-options span{height:100%;display:flex;flex-direction:column;gap:3px;padding:12px;border:1px solid #dce6e9;border-radius:12px;background:#fff;transition:.15s ease}.return-disposition-options i{color:#607d84;font-size:1rem}.return-disposition-options b{font-size:.74rem}.return-disposition-options small{font-size:.61rem;color:#7a8b92;line-height:1.35}.return-disposition-options input:checked+span{border-color:#2f7b73;background:#eef9f5;box-shadow:0 0 0 2px rgba(47,123,115,.1)}.sale-return-estimate{margin-top:12px;padding:12px 14px;border-radius:12px;background:#f4f7f9;border:1px solid #e0e7ea}.sale-return-estimate span,.sale-return-estimate strong,.sale-return-estimate small{display:block}.sale-return-estimate span{font-size:.58rem;text-transform:uppercase;letter-spacing:.07em;color:#75858d;font-weight:800}.sale-return-estimate strong{font-size:1.15rem;color:#b42318;margin-top:2px}.sale-return-estimate small{font-size:.62rem;color:#7b8b92;margin-top:3px}.sale-return-footnote{display:block;text-align:center;color:#87969d;font-size:.58rem;line-height:1.4;margin-top:8px}.sale-return-pending-note,.sale-return-complete-note{display:flex;gap:9px;align-items:flex-start;margin-top:12px;padding:11px 12px;border-radius:12px}.sale-return-pending-note{background:#fff8e8;border:1px solid #f2dfb6;color:#8b5a05}.sale-return-complete-note{background:#f1f7f5;border:1px solid #d5e9e2;color:#3d7064}.sale-return-pending-note strong,.sale-return-pending-note span{display:block}.sale-return-pending-note strong{font-size:.7rem}.sale-return-pending-note span{font-size:.61rem;margin-top:2px}.mobile-return-online-note{display:block;text-align:center;color:#8a969d;font-size:.6rem;margin-top:6px}.return-metric strong{color:#b42318!important}
.sales-return-queue{padding:17px 18px;margin-bottom:16px;border-color:#f0d6d6}.sales-return-queue-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.sales-return-queue-head span{font-size:.61rem;font-weight:850;letter-spacing:.09em;color:#b42318}.sales-return-queue-head h3{font-size:1rem;margin:2px 0}.sales-return-queue-head p{margin:0;color:#7b8b92;font-size:.68rem}.sales-return-queue-head>i{font-size:1.35rem;color:#b42318}.sales-return-queue-list{display:grid;gap:8px}.sales-return-queue-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:11px 12px;border:1px solid #e7ecee;border-radius:12px;background:#fff}.sales-return-queue-list article>div:first-child strong,.sales-return-queue-list article>div:first-child span,.sales-return-queue-list article>div:first-child small{display:block}.sales-return-queue-list article>div:first-child strong{font-size:.76rem}.sales-return-queue-list article>div:first-child span{font-size:.65rem;color:#657980;margin-top:2px}.sales-return-queue-list article>div:first-child small{font-size:.58rem;color:#8a979d;margin-top:3px}.sales-return-queue-value{text-align:right}.sales-return-queue-value strong{display:block;color:#b42318;font-size:.78rem}.sales-return-queue-value small{font-size:.58rem;color:#89979d}.sales-return-actions{display:flex;gap:5px}
@media(max-width:900px){
  .mobile-account-panel{display:block;margin-top:auto;padding:14px 4px 2px;border-top:1px solid rgba(255,255,255,.12)}
  .mobile-account-copy{display:flex;align-items:center;gap:10px;padding:9px 7px}.mobile-account-avatar{width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:.82rem;font-weight:900;color:#fff}.mobile-account-copy strong,.mobile-account-copy small{display:block}.mobile-account-copy strong{font-size:.76rem;color:#fff}.mobile-account-copy small{font-size:.6rem;color:rgba(255,255,255,.62);margin-top:2px}.mobile-logout-button{width:100%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:11px;padding:11px 12px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;font-size:.7rem}.mobile-logout-button:active{background:rgba(255,255,255,.15)}
  .sale-return-origin{grid-template-columns:1fr}.return-disposition-options{grid-template-columns:1fr}.sales-return-queue-list article{grid-template-columns:1fr auto}.sales-return-actions{grid-column:1/-1}.sales-return-actions .btn{flex:1}
}

/* v2.7.21 — desktop sales thumbnails, search and server pagination */
.sales-recent-head p{margin:4px 0 0;color:var(--muted);font-size:.76rem}
.desktop-sales-search{margin:0 0 14px;padding:12px;border:1px solid #e3e9ed;border-radius:12px;background:#f8fbfc}
.desktop-sales-search .input-group{max-width:980px}
.desktop-sales-search .input-group-text{background:#fff;color:#64748b}
.desktop-sales-search small{display:block;margin-top:6px;color:var(--muted);font-size:.7rem}
.desktop-sale-item{display:flex;align-items:center;gap:11px;min-width:230px;max-width:360px}
.desktop-sale-thumb{width:52px;height:52px;flex:0 0 52px;border-radius:10px;overflow:hidden;background:#eef6f3;border:1px solid #e1e9e6;display:grid;place-items:center;color:#6f8590}
.desktop-sale-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.desktop-sale-thumb.placeholder{font-size:1.1rem}
.desktop-sale-item>span:last-child{min-width:0}
.desktop-sale-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:270px}
.desktop-sale-item small{display:block;color:var(--muted);margin-top:3px;line-height:1.3}
.desktop-sale-item code{display:block;margin-top:3px;font-size:.66rem;color:#607181;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desktop-sales-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid #e7ecef;color:var(--muted);font-size:.76rem}
.desktop-sales-pagination>div{display:flex;align-items:center;gap:5px}
.sales-page-btn{min-width:34px;height:34px;padding:0 9px;border:1px solid #dce4e8;border-radius:9px;background:#fff;color:#435466;font-weight:750}
.sales-page-btn:hover:not(:disabled){border-color:#9fb7bf;background:#f4f9fa}
.sales-page-btn.active{background:var(--deep);border-color:var(--deep);color:#fff}
.sales-page-btn:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:900px){
  .desktop-sales-pagination{align-items:flex-start;flex-direction:column}
  .desktop-sale-item{min-width:0;max-width:none}
  .desktop-sale-item strong{max-width:none}
}
