:root{
  --deep:#003135;
  --teal:#024950;
  --rust:#964734;
  --aqua:#0FA4AF;
  --ice:#AFDDE5;
  --soft:#f6fbfc;
  --ink:#111827;
  --muted:#6b7280;
  --line:#dfe8eb;
  --radius:18px;
}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at 20% 0%,rgba(175,221,229,.32),transparent 28%),linear-gradient(180deg,#fbfdfe 0%,#eef7f9 100%);color:var(--ink);font-family:Inter,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(0,49,53,.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(15,164,175,.52));color:#fff!important;box-shadow:0 14px 28px rgba(15,164,175,.22)}.sidebar-revenue{border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:18px;background:linear-gradient(160deg,rgba(15,164,175,.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(175,221,229,.15),rgba(15,164,175,.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(2,73,80,.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(0,49,53,.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(0,49,53,.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(0,49,53,.05);position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-28px;top:-28px;width:90px;height:90px;background:rgba(15,164,175,.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),#006a70);border-color:var(--teal);box-shadow:0 10px 20px rgba(2,73,80,.18)}.btn-dark:hover{background:linear-gradient(135deg,var(--deep),var(--teal));border-color:var(--deep)}.btn-outline-dark{border-color:rgba(2,73,80,.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(15,164,175,.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(0,49,53,.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(0,49,53,.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(0,49,53,.025)}.line-total-box{background:#f1fbfc!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(0,49,53,.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(15,164,175,.25);background:rgba(175,221,229,.22);color:#0b6470;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(15,164,175,.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(15,164,175,.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(175,221,229,.2),rgba(255,255,255,.85));border:1px dashed rgba(15,164,175,.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(0,49,53,.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:#eef7f9;padding:22px;border-radius:18px;color:#0b1620;font-family:Inter,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(0,49,53,.12);position:relative;overflow:hidden}.invoice-page:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 8% 4%,rgba(175,221,229,.24),transparent 32%),radial-gradient(circle at 92% 15%,rgba(15,164,175,.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(0,49,53,.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),#006a70);color:#fff;font-weight:850;border-radius:6px;padding:9px 34px;box-shadow:0 10px 18px rgba(2,73,80,.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),#006a70);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:#eef5f7;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(175,221,229,.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(15,164,175,.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(175,221,229,.45);font-weight:900}.print-totals .total-highlight strong{font-size:1.45rem}.print-totals .balance-highlight{background:linear-gradient(135deg,var(--teal),#006a70);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(15,164,175,.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(175,221,229,.2);border:1px solid rgba(15,164,175,.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:#f1fbfc!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,#eef7f9 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(15,164,175,.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(0,49,53,.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(15,164,175,.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(0,49,53,.08);
}
.recovery-code-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background:#f8fbfc;
  border:1px dashed rgba(15,164,175,.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(0,49,53,.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(0,49,53,.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:#eef7f9;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:#f1fbfc!important}
.invoice-row:focus-visible{box-shadow:inset 0 0 0 2px var(--aqua);background:#f1fbfc!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:#f1fbfc!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(15,164,175,.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(0,49,53,.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%,#087f88);box-shadow:0 22px 55px rgba(0,49,53,.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(175,221,229,.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(0,49,53,.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(0,49,53,.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:#087f88;--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(0,49,53,.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(15,164,175,.16),rgba(175,221,229,.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(2,73,80,.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(2,73,80,.15)}.invoice-actions-menu{border:1px solid #dce5e8;border-radius:12px;padding:6px;box-shadow:0 14px 35px rgba(0,49,53,.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(0,49,53,.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:Inter,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(2,73,80,.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(0,49,53,.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(0,49,53,.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(15,164,175,.14),rgba(175,221,229,.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(0,49,53,.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:#edf8f9;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:#edf8f9;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(0,49,53,.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(0,49,53,.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(0,49,53,.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(2,73,80,.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(0,49,53,.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:#e7f6f7;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(0,49,53,.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:#edf8f9;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:#e5f6f7;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(0,49,53,.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(0,49,53,.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(0,49,53,.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(2,73,80,.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) + 18px);max-width:none}
  .hero-card,.app-card{border-radius:18px;box-shadow:0 8px 28px rgba(0,49,53,.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(2,73,80,.10);box-shadow:0 -12px 32px rgba(0,49,53,.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(15,164,175,.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(0,49,53,.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(0,49,53,.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:#203d42;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(0,49,53,.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(0,49,53,.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(0,49,53,.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:#123d42;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:#123d42;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}}
