﻿html {
  font-size: 14px;
  direction: rtl;
}

.public-shell .public-header.public-header-dark {
    border-bottom-color: rgba(255,255,255,.12);
    background: rgba(11,34,50,.94);
    box-shadow: 0 8px 28px rgba(4,17,27,.2);
}

.public-shell .public-header.public-header-dark .navbar {
    background-color: transparent !important;
}

.public-shell .public-header.public-header-dark .public-wordmark,
.public-shell .public-header.public-header-dark .navbar-brand {
    color: #fff;
}

.public-shell .public-header.public-header-dark .public-nav-links .nav-link {
    color: rgba(244,248,250,.84);
}

.public-shell .public-header.public-header-dark .public-nav-links .nav-link:hover,
.public-shell .public-header.public-header-dark .public-nav-links .nav-link:focus-visible,
.public-shell .public-header.public-header-dark .public-nav-links .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.public-shell .public-header.public-header-dark .public-nav-links .public-dashboard-link {
    color: #8ed8ca;
}

.public-shell .public-header.public-header-dark .public-account-actions > .btn-outline-primary {
    border-color: rgba(255,255,255,.35);
    color: #fff;
    background: rgba(255,255,255,.06);
}

.public-shell .public-header.public-header-dark .public-account-actions > .btn-outline-primary:hover {
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.13);
}

.public-shell .public-header.public-header-dark .public-menu-toggle {
    border-color: rgba(255,255,255,.3);
    background-color: rgba(255,255,255,.08);
}

.public-shell .public-header.public-header-dark .public-menu-toggle .navbar-toggler-icon {
    filter: invert(1);
}

.public-shell .public-header.public-header-dark .app-header-inner.is-compact .public-nav-links.collapse.show {
    border-color: rgba(255,255,255,.16);
    background: #102c3d;
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.public-shell .public-header.public-header-dark .app-header-inner.is-compact .public-nav-links .nav-link {
    color: rgba(244,248,250,.88);
}

.public-shell .public-header.public-header-dark .app-header-inner.is-compact .public-nav-links .nav-link:hover,
.public-shell .public-header.public-header-dark .app-header-inner.is-compact .public-nav-links .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.inventory-products-card > .section-heading {
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid #edf1f6;
}

.inventory-products-card > .section-heading > .btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  white-space: nowrap;
}

.inventory-products-table {
  min-width: 760px;
}

.inventory-products-table thead th {
  padding: .8rem .9rem;
  border-bottom: 1px solid #dbe3ed;
  color: #475569;
  background: #f5f8fc;
  font-size: .77rem;
  font-weight: 800;
  white-space: nowrap;
}

.inventory-products-table tbody td {
  padding: .75rem .9rem;
  border-color: #edf1f6;
  color: #334155;
  font-size: .82rem;
  vertical-align: middle;
}

.inventory-products-table tbody tr:hover > * {
  background-color: #f8fbff;
}

.inventory-product-stock,
.inventory-product-minimum {
  white-space: nowrap;
}

.inventory-product-stock > span,
.inventory-product-minimum > span {
  font-weight: 800;
}

.inventory-product-stock > small,
.inventory-product-minimum > small {
  margin-inline-start: .25rem;
  color: #64748b;
  font-size: .72rem;
}

.inventory-product-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}

.inventory-product-actions .btn,
.inventory-mobile-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  white-space: nowrap;
}

.inventory-products-card .inventory-mobile-card-heading .badge {
  flex: 0 0 auto;
}

.inventory-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .4rem;
  min-height: 64px;
  margin: 0 0 1.25rem;
  padding: .55rem;
  overflow-x: auto;
  border: 1px solid #e1e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .035);
  scrollbar-width: thin;
}

.inventory-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 12px;
  color: #475569;
  background: transparent;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.inventory-tab[aria-selected="true"] {
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #c7dcff;
}

.inventory-tab:hover:not([aria-selected="true"]) {
  color: #1d4ed8;
  background: #f8fafc;
}

.inventory-tab i {
  color: currentColor;
  font-size: 1rem;
}

.inventory-tab:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .3);
  outline-offset: 2px;
}

[data-inventory-tab-panel][hidden] {
  display: none !important;
}

.inventory-page-heading {
  align-items: center;
  min-height: 0;
  margin-bottom: 1.25rem;
  padding: .25rem 0 .5rem;
}

.inventory-page-heading-copy {
  min-width: 0;
}

.inventory-page-heading .eyebrow-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: .35rem;
  padding: .2rem .6rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: .72rem;
  font-weight: 800;
}

.inventory-page-heading .app-page-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #172554;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.45;
}

.inventory-page-heading .app-page-title i {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #eff6ff;
  font-size: 1.15rem;
}

.inventory-page-heading .app-page-subtitle {
  min-height: 0;
  margin-top: .45rem;
  line-height: 1.8;
}

.inventory-page-actions {
  flex: 0 0 auto;
  align-items: center;
  gap: .65rem;
}

.inventory-page-actions .btn {
  gap: .45rem;
}

.inventory-page-actions .btn-primary {
  min-width: 132px;
}

.inventory-section-heading {
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
}

.inventory-section-heading-copy {
  display: grid;
  min-width: 0;
  gap: .25rem;
}

.inventory-section-heading-copy h6 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .55rem;
  color: #172554;
  font-size: .98rem;
  line-height: 1.65;
}

.inventory-section-heading-copy h6 i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: #2563eb;
  background: #eff6ff;
  font-size: .95rem;
}

.inventory-section-heading-copy h6 span {
  min-width: 0;
}

.inventory-section-heading-copy > small {
  padding-inline-start: 2.7rem;
  line-height: 1.8;
}

.inventory-section-heading > .btn,
.inventory-section-heading > .badge {
  flex: 0 0 auto;
}

.inventory-count-badge {
  padding: .5rem .75rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: .78rem;
  font-weight: 750;
}

.inventory-supply-heading {
  align-items: center;
}

.inventory-supply-controls {
  display: flex;
  flex: 0 1 570px;
  align-items: flex-end;
  justify-content: flex-start;
  gap: .55rem;
}

.inventory-supply-controls > div {
  flex: 0 0 130px;
}

.inventory-supply-controls .form-select,
.inventory-supply-controls .btn {
  min-height: 42px;
}

.inventory-supply-controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  white-space: nowrap;
}

.inventory-supply-controls .btn-accent {
  flex: 0 0 auto;
}

.inventory-supply-card > .inventory-section-heading {
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid #edf1f6;
}

.inventory-supply-heading {
  align-items: flex-end;
  gap: 1rem 1.5rem;
}

.inventory-supply-heading .inventory-section-heading-copy {
  flex: 1 1 320px;
}

.inventory-supply-controls {
  flex: 1 1 570px;
  justify-content: flex-end;
  gap: .65rem;
}

.inventory-supply-controls > div {
  flex-basis: 142px;
}

.inventory-supply-controls > .inventory-coverage-field {
  flex: 0 1 220px;
  min-width: 190px;
}

.inventory-coverage-field .form-label {
  color: #334155;
  font-size: .8rem;
  font-weight: 800;
}

.inventory-coverage-field .form-select {
  min-height: 44px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  background-color: #fff;
  font-weight: 700;
}

.inventory-coverage-field .form-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .14);
}

.inventory-supply-control-help {
  display: block;
  margin-top: .35rem;
  color: #64748b;
  font-size: .72rem;
  line-height: 1.7;
}

.inventory-supply-controls > .btn-accent {
  min-width: 132px;
}

.inventory-supply-tools {
  display: flex;
  flex: 1 1 100%;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .8rem 1.25rem;
  padding-top: .9rem;
  border-top: 1px solid #edf1f6;
}

.inventory-supply-controls {
  flex: 0 1 auto;
  justify-content: flex-start;
}

.inventory-supply-export-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-top: 1.65rem;
  gap: .55rem;
}

.inventory-supply-export-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  white-space: nowrap;
}

.inventory-supply-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin: .9rem 1.25rem 1rem;
  padding: .7rem .85rem;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  background: #f8fafc;
}

.inventory-supply-count {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #475569;
  font-size: .8rem;
  font-weight: 700;
}

.inventory-supply-count i {
  color: #2563eb;
}

.inventory-supply-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .9rem;
  padding-inline-start: 2.7rem;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.8;
}

.inventory-supply-context > span,
.inventory-supply-context > p {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
}

.inventory-supply-context > p {
  flex-basis: 100%;
  color: #475569;
}

.inventory-supply-context i {
  flex: 0 0 auto;
  color: #2563eb;
}

.inventory-supply-filterbar .btn {
  min-height: 38px;
}

.profit-loss-print-header {
  display: none;
}

@media print {
  .profit-loss-print-header,
  .profit-loss-report {
    display: block !important;
  }

  body:has(.profit-loss-report) * {
    visibility: hidden !important;
  }

  .profit-loss-print-header,
  .profit-loss-print-header *,
  .profit-loss-report,
  .profit-loss-report * {
    visibility: visible !important;
  }

  .profit-loss-print-header,
  .profit-loss-report {
    position: relative !important;
    width: 100% !important;
    margin-inline: 0 !important;
  }

  @page {
    size: A4 portrait;
    margin: 14mm;
  }

  body {
    color: #111827 !important;
    background: #fff !important;
    font-family: Vazirmatn, sans-serif !important;
    font-size: 10pt;
  }

  body.dashboard-shell {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  body.dashboard-shell .content-wrapper.app-content {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.dashboard-shell .app-content main,
  .profit-loss-report,
  .customer-statement-page {
    width: 100% !important;
    max-width: none !important;
  }

  .no-print,
  .app-sidebar,
  .app-topbar,
  .pagination-panel {
    display: none !important;
  }

  .profit-loss-print-header {
    display: block !important;
    margin: 0 0 1rem;
    padding: 0 0 .75rem;
    border-bottom: 2px solid #334155;
    text-align: center;
  }

  .profit-loss-print-header h1 {
    margin: 0 0 .35rem;
    font-size: 19pt;
    font-weight: 800;
  }

  .profit-loss-print-header p {
    margin: 0 0 .25rem;
  }

  .profit-loss-report,
  .profit-loss-report * {
    color: #111827 !important;
  }

  .profit-loss-report .dashboard-card,
  .profit-loss-report .report-summary-card,
  .profit-loss-report .report-metric-card {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .profit-loss-report .profit-loss-net-card {
    border-width: 2px !important;
  }

  .profit-loss-report table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 9pt;
  }

  .profit-loss-report th,
  .profit-loss-report td {
    padding: .4rem !important;
    border: 1px solid #cbd5e1 !important;
  }

  .profit-loss-report thead {
    display: table-header-group;
  }

  .profit-loss-report tr,
  .profit-loss-report .section-heading {
    break-inside: avoid;
  }

  .profit-loss-report .table-responsive {
    overflow: visible !important;
  }
}

.profit-loss-summary-grid > [class*="col-"],
.profit-loss-metric-grid > [class*="col-"] {
  display: flex;
}

.profit-loss-summary-grid .report-summary-card,
.profit-loss-metric-grid .report-metric-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.profit-loss-summary-grid .report-summary-card {
  min-height: 196px;
  gap: .35rem;
  padding: 1rem 1.1rem !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}

.profit-loss-summary-grid .summary-card-heading {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 36px;
}

.profit-loss-summary-grid .summary-card-heading .report-summary-icon {
  flex: 0 0 38px;
  margin: 0;
}

.profit-loss-summary-grid .summary-card-heading small {
  color: #475569;
  font-size: .85rem;
  font-weight: 750;
}

.profit-loss-summary-grid .summary-card-amount {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .45rem;
  margin-top: .2rem;
}

.profit-loss-summary-grid .summary-card-amount strong {
  color: #0f172a;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.profit-loss-summary-grid .summary-card-amount strong.text-success {
  color: #15803d !important;
}

.profit-loss-summary-grid .summary-card-amount strong.text-danger {
  color: #dc2626 !important;
}

.profit-loss-summary-grid .summary-card-amount .report-card-unit {
  margin: 0;
  color: #64748b;
  font-size: .72rem;
  white-space: nowrap;
}

.profit-loss-summary-grid .summary-card-description {
  margin: .15rem 0 0;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.7;
}

.profit-loss-summary-grid .summary-card-detail {
  margin: auto 0 0;
  padding-top: .55rem;
  border-top: 1px solid #eef2f7;
  color: #475569;
  font-size: .8rem;
  line-height: 1.65;
}

.profit-loss-summary-grid .summary-net-card {
  border-inline-start: 3px solid #16a34a;
}

.profit-loss-summary-grid .summary-net-card.is-loss {
  border-inline-start-color: #dc2626;
}

.profit-loss-summary-grid .summary-net-card.is-zero {
  border-inline-start-color: #94a3b8;
}

.profit-loss-summary-grid .report-card-unit {
  margin-top: -.2rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  .profit-loss-summary-grid .report-summary-card {
    min-height: 178px;
    padding: .85rem !important;
  }

  .profit-loss-summary-grid .summary-card-amount strong {
    font-size: 1.05rem;
  }

  .profit-loss-summary-grid .summary-card-heading small {
    font-size: .82rem;
  }

  .profit-loss-summary-grid .summary-card-description {
    font-size: .78rem;
  }

  .profit-loss-summary-grid .summary-card-detail {
    font-size: .78rem;
  }
}

.profit-loss-metric-grid .report-metric-card {
  min-height: 150px;
}

.profit-loss-filter-submit {
  display: inline-flex;
  min-width: 140px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  white-space: nowrap;
}

[data-subscription-locked-action] .bi-lock,
[data-subscription-locked-action] .bi-lock-fill {
  display: none !important;
}

.subscription-access-modal .modal-content {
  border: 1px solid #e6edf5;
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(30, 41, 59, .18);
}

.subscription-access-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .65rem;
  direction: rtl;
  text-align: right;
}

.subscription-access-modal-heading h2 {
  min-width: 0;
  text-align: right;
}

.subscription-access-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #a27622;
  background: #fff6df;
  font-size: 1.2rem;
}

.subscription-access-modal-plans {
  min-width: 145px;
}


.app-page-actions, .app-list-actions { display: flex; align-items: center; justify-content: flex-start; gap: .5rem; flex-wrap: wrap; }
.app-back-link { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.app-form-page, .details-page { min-width: 0; }
.app-form-page > .app-page-heading, .details-page > .app-page-heading { margin-bottom: 1.25rem; }
.global-page-toolbar { display: flex; justify-content: flex-start; margin: 0 0 .75rem; }
.global-page-toolbar .btn { min-width: 96px; }

@media (max-width: 767.98px) {
  .app-list-heading { align-items: stretch; flex-direction: column; }
  .app-list-actions { width: 100%; }
  .app-list-actions .btn { flex: 1 1 auto; }
  .app-list-filter { padding: .9rem; }
  .app-list-card-header { align-items: flex-start; flex-direction: column; }
  .app-list-table-wrapper > .table,
  .invoice-table-card > .table-responsive > .table,
  .invoice-table-card > .app-list-table-wrapper > .table { min-width: 560px; }
}

.invoice-item-entry-card {
    align-items: end;
    padding: 18px;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #f8fbff;
}

.invoice-item-entry-card .form-label {
    margin-bottom: 6px;
    color: #334155;
    font-size: .82rem;
    font-weight: 700;
}

.invoice-item-entry-card .form-control {
    background: #fff;
    box-shadow: none;
}

body {
  direction: rtl;
}

body.dashboard-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

body.dashboard-shell .app-header {
  flex: 0 0 64px;
}
body.seller-dashboard-shell { height: 100vh; min-height: 0; }
.form-select { min-width: 118px; padding-inline: .85rem 2.25rem; white-space: nowrap; }
.pagination-page-size,
select[name="pageSize"] { min-width: 128px; width: auto; flex: 0 0 auto; }
.pagination-page-size option,
select[name="pageSize"] option { padding: .35rem .6rem; white-space: nowrap; }

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: #eaf4ff;
  color: #1e293b;
  padding-bottom: 80px; /* room for bottom nav on mobile */
}

body.public-shell {
  min-height: 100vh;
  padding-bottom: 0;
  background: #fff;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 30px;
  }
}

/* â”€â”€ Color palette â”€â”€ */
:root {
  --primary: #2563eb;
  --primary-dark: #1747c8;
  --primary-soft: #e8f1ff;
  --primary-border: #a9cbff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); }
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
a { color: var(--primary); }

.alert.alert-dismissible {
  display: flex;
  align-items: center;
}

.alert.alert-dismissible > .btn-close {
  position: static;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  transform: none;
  align-self: center;
}

.operation-alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  padding: .8rem 2.75rem .8rem 1rem;
  border: 1px solid;
  border-right-width: 4px;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.9;
}

.operation-alert > i {
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.operation-alert-success {
  color: #176b52;
  border-color: #b9e5d4;
  border-right-color: #27a77f;
  background: #f0fbf6;
}

.operation-alert-success > i {
  color: #1d9b76;
}

.operation-alert-error {
  color: #9f403b;
  border-color: #f0c7c3;
  border-right-color: #dc655d;
  background: #fff5f3;
}

.operation-alert-error > i {
  color: #d95750;
}

.operation-alert > .btn-close {
  position: absolute;
  top: 50%;
  left: .8rem;
  width: .75rem;
  height: .75rem;
  padding: .65rem;
  margin: 0;
  transform: translateY(-50%);
  opacity: .65;
}

/* â”€â”€ Cards â”€â”€ */
.hero-card {
  background: linear-gradient(135deg, #eef2ff, #f0fdf4);
}

.feature-card,
.mini-card,
.stats-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
  border-radius: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card:hover,
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.13);
}

.mini-card {
  padding: 18px 16px;
}

.mini-card .stat-icon {
  font-size: 2rem;
  opacity: 0.85;
}

.mini-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.mini-card .stat-label {
  font-size: 0.8rem;
  color: #64748b;
}

/* â”€â”€ Invoice â”€â”€ */
.invoice-card {
  max-width: 920px;
  margin: 0 auto;
}

/* â”€â”€ Navbar â”€â”€ */
.navbar {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.navbar > .container {
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.top-nav-links {
  min-width: 0;
  gap: 0.75rem;
}

.top-nav-links .navbar-nav {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.top-nav-links .nav-link {
  white-space: nowrap;
}

.nav-account-actions {
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-main {
  padding-top: 2.25rem;
}

.site-main > .d-flex.justify-content-between.align-items-center:first-child,
.site-main > .customer-toolbar:first-child {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.site-main > .d-flex.justify-content-between.align-items-center:first-child h1,
.site-main > .customer-toolbar:first-child h1 {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .inventory-page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: .9rem;
    padding-bottom: .25rem;
  }

  .inventory-page-heading .app-page-title {
    font-size: 1.35rem;
  }

  .inventory-page-heading .app-page-subtitle {
    max-width: 38ch;
    font-size: .78rem;
  }

  .inventory-page-actions {
    width: 100%;
  }

  .inventory-page-actions .btn {
    flex: 1 1 auto;
  }

  .inventory-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-section-heading-copy > small {
    padding-inline-start: 0;
  }

  .inventory-supply-controls {
    display: grid;
    width: 100%;
    flex: 1 1 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-supply-controls > div {
    grid-column: 1 / -1;
  }

  .inventory-supply-controls > .inventory-coverage-field {
    min-width: 0;
  }

  .inventory-supply-controls > .btn-accent {
    grid-column: 1 / -1;
  }

  .inventory-supply-controls .btn {
    min-width: 0;
    padding-inline: .55rem;
    font-size: .77rem;
  }

  .inventory-tabs {
    gap: .25rem;
    min-height: 58px;
    margin-bottom: 1rem;
    padding: .35rem;
  }

  .inventory-tab {
    min-width: 84px;
    min-height: 44px;
    gap: .35rem;
    padding: .45rem .65rem;
    font-size: .78rem;
  }

  .site-main > .d-flex.justify-content-between.align-items-center:first-child,
  .site-main > .customer-toolbar:first-child {
    align-items: stretch !important;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-main > .d-flex.justify-content-between.align-items-center:first-child > div,
  .site-main > .customer-toolbar:first-child > div {
    width: 100%;
  }

  .site-main > .d-flex.justify-content-between.align-items-center:first-child .btn,
  .site-main > .customer-toolbar:first-child .btn {
    flex: 1;
  }
}

.password-page {
  min-height: calc(100vh - 190px);
}

.password-card {
  width: 100%;
  max-width: 470px;
  box-shadow: 0 18px 50px rgba(79, 70, 229, 0.12);
}

.password-card-header {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.password-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.8rem;
}

.password-input .input-group-text {
  min-width: 44px;
  justify-content: center;
  color: var(--primary);
  background: #f8fafc;
  border-color: #e2e8f0;
}

.password-input .form-control {
  border-right: 0;
}

.password-input:focus-within .input-group-text {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.password-submit {
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
}

.navbar-brand {
  font-size: 1.3rem;
  color: var(--primary) !important;
}

/* â”€â”€ Bottom nav (mobile only) â”€â”€ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 1040;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
}

@media (max-width: 991.98px) {
  .bottom-nav { display: flex; }
  .top-nav-links { display: none !important; }
}
@media (min-width: 576px) and (max-width: 899.98px) {
  body.dashboard-shell.sidebar-collapsed .app-sidebar { display: flex; width: 82px; padding-inline: .65rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-brand > span:last-child,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user > span:last-of-type,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user-menu,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-section-label,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link > span { display: none; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-head { justify-content: center; padding-inline: 0; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-brand { justify-content: center; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user { justify-content: center; padding-inline: .45rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link { justify-content: center; padding-inline: .5rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar { display: flex; width: 260px; padding: 1rem .75rem 1.25rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-content { margin-right: 276px !important; }
  body.dashboard-shell .app-sidebar .sidebar-link[title] { position: relative; }
  body.dashboard-shell.sidebar-collapsed .app-content { margin-right: 98px !important; padding-inline: 1.25rem; padding-bottom: 6rem; }
  body.dashboard-shell .app-header-inner > .sidebar-toggle { display: none; }
  body.dashboard-shell .seller-utility-actions > .seller-sidebar-toggle { display: inline-flex; }
  body.dashboard-shell.sidebar-mobile-open { overflow: auto; }
  body.dashboard-shell.sidebar-mobile-open::after { display: none; }
  body.dashboard-shell .mobile-more-menu { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
}

@media (min-width: 900px) and (max-width: 991.98px) {
  body.dashboard-shell .app-sidebar { display: flex !important; width: 260px; padding: 1rem .75rem 1.25rem; }
  body.dashboard-shell .app-sidebar .sidebar-brand > span:last-child,
  body.dashboard-shell .app-sidebar .sidebar-user > span:last-of-type,
  body.dashboard-shell .app-sidebar .sidebar-section-label,
  body.dashboard-shell .app-sidebar .sidebar-link > span { display: revert; }
  body.dashboard-shell .app-sidebar .sidebar-user-menu { display: initial; }
  body.dashboard-shell .app-sidebar .sidebar-head,
  body.dashboard-shell .app-sidebar .sidebar-brand,
  body.dashboard-shell .app-sidebar .sidebar-user,
  body.dashboard-shell .app-sidebar .sidebar-link { justify-content: initial; }
  body.dashboard-shell .app-sidebar .sidebar-head { padding-inline: .65rem; }
  body.dashboard-shell .app-sidebar .sidebar-user { padding: .7rem; }
  body.dashboard-shell .app-sidebar .sidebar-link { padding-inline: .8rem; }
  body.dashboard-shell .app-content { margin-right: 276px !important; padding-inline: 1.5rem; }
  body.dashboard-shell .app-header-inner > .sidebar-toggle,
  body.dashboard-shell .seller-utility-actions > .seller-sidebar-toggle { display: none !important; }
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
}

.bottom-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 6px;
  font-size: 0.7rem;
  color: #64748b;
  gap: 2px;
}

.bottom-nav .nav-link i {
  font-size: 1.35rem;
}

.bottom-nav .nav-link.active,
.bottom-nav .nav-link:hover {
  color: var(--primary);
}
.bottom-nav { align-items: stretch; justify-content: space-around; gap: .3rem; padding: .5rem .65rem calc(.5rem + env(safe-area-inset-bottom)); border-top: 1px solid #e4ebf4; border-radius: 18px 18px 0 0; background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 28px rgba(24, 49, 83, .1); backdrop-filter: blur(16px); }
.bottom-nav .nav-link { position: relative; flex: 1 1 0; min-width: 0; min-height: 62px; justify-content: center; gap: .24rem; padding: .35rem .16rem; border: 0; border-radius: 14px; color: #738198; background: transparent; text-decoration: none; font-family: inherit; font-size: .68rem; font-weight: 700; line-height: 1.25; white-space: nowrap; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.bottom-nav .nav-link i { display: grid; place-items: center; width: 40px; height: 34px; border-radius: 11px; color: inherit; font-size: 1.32rem; line-height: 1; transition: background-color .18s ease, transform .18s ease; }
.bottom-nav .nav-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bottom-nav .nav-link.active { color: #245ec7; background: #f1f6ff; }
.bottom-nav .nav-link.active::before { position: absolute; top: -1px; left: 50%; width: 20px; height: 3px; border-radius: 0 0 4px 4px; background: #3975d8; content: ''; transform: translateX(-50%); }
.bottom-nav .nav-link.active i { color: #245ec7; background: #e2edff; }
.bottom-nav .nav-link:active { transform: scale(.96); }
.bottom-nav .nav-link:focus-visible { outline: 2px solid #80aaf4; outline-offset: -2px; }
.mobile-more-menu { position: fixed; right: .75rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 1080; display: grid; width: min(300px, calc(100vw - 1.5rem)); max-height: min(65dvh, 520px); padding: .55rem; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e1e9f3; border-radius: 18px; background: rgba(255, 255, 255, .98); box-shadow: 0 16px 42px rgba(20, 42, 72, .2); }
.mobile-more-menu[hidden] { display: none; }
.mobile-more-menu a, .mobile-more-menu form button { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 46px; padding: .55rem .7rem; border: 0; border-radius: 12px; color: #35465e; background: transparent; text-align: right; text-decoration: none; font-family: inherit; font-size: .78rem; font-weight: 700; }
.mobile-more-menu a:hover, .mobile-more-menu form button:hover { color: #245ec7; background: #f1f6ff; }
.mobile-more-menu a.active { color: #245ec7; background: #edf4ff; }
.mobile-more-menu a.active i { color: #fff; background: #3975d8; }
.mobile-more-menu i { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; color: #3975d8; background: #edf4ff; font-size: 1rem; }
.mobile-more-section-label { margin: .45rem .65rem .15rem; padding-top: .55rem; border-top: 1px solid #edf1f6; color: #7b8798; font-size: .68rem; font-weight: 850; }
.mobile-more-section-label:first-child { margin-top: .2rem; padding-top: 0; border-top: 0; }
.mobile-more-menu form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid #edf1f6; }
.mobile-more-menu form button { color: #b54747; cursor: pointer; }
.mobile-more-menu form button i { color: #b54747; background: #fff1f0; }
@media (max-width: 380px) {
  .bottom-nav { gap: .08rem; padding-inline: .35rem; }
  .bottom-nav .nav-link { min-height: 58px; padding-inline: .08rem; font-size: .6rem; }
  .bottom-nav .nav-link i { width: 36px; height: 32px; font-size: 1.22rem; }
}

/* â”€â”€ Footer â”€â”€ */
footer.footer {
  background: #fff;
}

/* â”€â”€ Tables â”€â”€ */
.table { font-size: .88rem; vertical-align: middle; }
.table > :not(caption) > * > * { padding: .78rem .7rem; border-bottom-color: #edf2f7; }
.table thead th { color: #475569; background: #f8fafc; font-size: .78rem; font-weight: 800; white-space: nowrap; border-bottom: 1px solid #e2e8f0; }
.table tbody tr { transition: background-color .18s ease; }
.table tbody tr:hover { --bs-table-accent-bg: #f8fbff; background: #f8fbff; }
.table .btn-group { gap: .35rem; }
.table .btn-group > .btn { border-radius: 8px !important; }
.badge { padding: .42em .7em; border-radius: 999px; font-weight: 700; }

/* â”€â”€ Forms â”€â”€ */
.form-label { margin-bottom: .45rem; color: #334155; font-size: .84rem; font-weight: 700; }
.form-control, .form-select, .input-group-text {
  min-height: 42px;
  border-radius: 10px;
  border-color: #dbe3ee;
  padding: 0.6rem 0.85rem;
}
.form-control::placeholder { color: #94a3b8; opacity: 1; }
.form-control:focus, .form-select:focus, .input-group:focus-within .input-group-text {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.form-control.field-filled:not(:focus):not(:disabled):not([readonly]),
.form-select.field-filled:not(:focus):not(:disabled):not([readonly]) {
  background-color: #eff6ff;
}
.form-control.is-invalid, .form-select.is-invalid,
.was-validated .form-control:invalid, .was-validated .form-select:invalid {
  background-color: #fff1f2;
}
.form-control:disabled, .form-control[readonly], .form-select:disabled { color: #64748b; background-color: #f8fafc; }
.form-control.is-invalid, .was-validated .form-control:invalid, .form-select.is-invalid, .was-validated .form-select:invalid { border-color: #f87171; }
.form-control.is-invalid:focus, .was-validated .form-control:invalid:focus, .form-select.is-invalid:focus, .was-validated .form-select:invalid:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.invalid-feedback, .text-danger.field-validation-error, .text-danger[data-valmsg-for] {
  display: block;
  margin-top: .35rem;
  color: #dc2626;
  font-size: .78rem;
}
.input-group > .form-control, .input-group > .form-select { border-radius: 10px; }
.input-group:has(.form-control.field-filled:not(:focus)) > .form-control,
.input-group:has(.form-control.field-filled:not(:focus)) > .input-group-text {
  background-color: #eff6ff;
}
.input-group:has(.form-control.is-invalid) > .form-control,
.input-group:has(.form-control.is-invalid) > .input-group-text {
  background-color: #fff1f2;
}
.input-group-text { display: flex; align-items: center; color: #64748b; background: #f8fafc; }
textarea.form-control { min-height: 110px; resize: vertical; }

.form-control-lg { font-size: 1rem; padding: 0.75rem 1rem; }

.invoice-form { max-width: 1100px; }
body:has(.invoice-form-page) { direction: rtl; }
.invoice-form .text-danger { display: block; margin-top: 0.25rem; font-size: 0.85rem; }
.invoice-form .row > [class*="col-"] { align-self: start; }
.invoice-form .text-danger { min-height: 1.35rem; }
.invoice-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.invoice-form-header { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; margin-bottom:1.25rem; padding:1.15rem 1.35rem; border:1px solid #dbe4f0; border-radius:18px; background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%); box-shadow:0 8px 24px rgba(15,23,42,.06); }
.invoice-form-header .app-page-title { margin:0; color:#1e293b; font-size:1.65rem; font-weight:800; }
.invoice-form-header .app-page-subtitle, .invoice-form-header p { margin:.35rem 0 0; color:#64748b; font-size:.9rem; }
.invoice-form-kicker { display:flex; align-items:center; gap:.4rem; margin-bottom:.35rem; color:#6366f1; font-size:.75rem; font-weight:800; }
.invoice-form-kicker i { font-size:1rem; }
.invoice-form-header-actions { display:flex; align-items:center; gap:.75rem; flex:0 0 auto; }
.invoice-number-badge { display:flex; align-items:center; gap:.5rem; padding:.65rem .85rem; border-radius:999px; background:#eef2ff; color:#4338ca; white-space:nowrap; font-size:.78rem; font-weight:700; }
.invoice-number-badge strong { color:#312e81; font-size:.95rem; font-weight:800; }
.invoice-section-heading { display:flex; align-items:center; gap:.75rem; margin-bottom:1rem; }
.invoice-section-heading h2 { margin:0; color:#1e293b; font-size:1rem; font-weight:800; }
.invoice-section-heading p { margin:.2rem 0 0; color:#64748b; font-size:.78rem; }
.invoice-section-icon { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:11px; color:#4338ca; background:#eef2ff; font-size:1rem; }
.invoice-section-icon-success { color:#15803d; background:#dcfce7; }
.invoice-section-icon-primary { color:#2563eb; background:#dbeafe; }
.invoice-section-icon-warning { color:#b45309; background:#fef3c7; }
.invoice-financial-section { padding:1rem; border:1px solid #e2e8f0; border-radius:16px; background:#fff; }
.invoice-summary-card { margin-top:1.25rem; padding:1rem; border:1px solid #bfdbfe; border-radius:16px; background:linear-gradient(135deg,#f8fbff,#eff6ff); }
.invoice-summary-heading { display:flex; align-items:center; justify-content:flex-start; gap:.45rem; margin-bottom:.35rem; color:#1e3a8a; font-size:.85rem; font-weight:800; }
.invoice-summary-heading i { font-size:1.1rem; }
.invoice-summary-card .invoice-summary { margin-bottom:0; border:0; padding:.25rem .15rem 0; background:transparent; }
.invoice-summary-card .invoice-summary > div { border-bottom-color:#dbeafe; }
.invoice-summary-card .invoice-payable-row { margin: .35rem -.15rem 0; padding: .85rem .65rem; border-radius:12px; background:#dbeafe; color:#1e3a8a !important; font-size:1.05rem; }
.invoice-summary-card .invoice-payable-row strong { font-size:1.15rem; }
.invoice-form-actions { align-items:center; margin-top:1.25rem; padding-top:1rem; border-top:1px solid #e2e8f0; }
.invoice-submit-button { min-width:150px; box-shadow:0 7px 16px rgba(99,102,241,.2); }
.invoice-submit-button:disabled { opacity:.75; cursor:wait; }
.invoice-items-heading { align-items:center; }
.invoice-items-heading > div:nth-child(2) { flex:1; }
.invoice-items-count { padding:.35rem .7rem; border-radius:999px; color:#1d4ed8; background:#eff6ff; font-size:.78rem; font-weight:800; white-space:nowrap; }
.invoice-progress { display:flex; align-items:center; gap:.65rem; margin:0 0 1.5rem; padding:.85rem 1rem; border:1px solid #e2e8f0; border-radius:14px; background:#fff; }
.invoice-form > .invoice-progress { position:sticky; top:1rem; z-index:20; box-shadow:0 8px 22px rgba(15,23,42,.08); }
.invoice-progress-step { display:flex; align-items:center; gap:.45rem; color:#94a3b8; font-size:.78rem; white-space:nowrap; }
.invoice-progress-step span { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#f1f5f9; font-weight:800; }
.invoice-progress-step.is-active, .invoice-progress-step.is-complete { color:#1d4ed8; }
.invoice-progress-step.is-active span, .invoice-progress-step.is-complete span { color:#fff; background:#2563eb; }
.invoice-progress-line { flex:1; height:1px; background:#e2e8f0; }
.invoice-item-entry { padding:1rem; border:1px solid #dbeafe; border-radius:14px; background:#f8fbff; }
.invoice-item-entry-card { display:grid; align-items:end; padding:1.35rem; border:1px solid #dbe5f0; border-radius:16px; background:#f8fbff; }
.invoice-item-entry-card .form-label { display:block; margin:0 0 .55rem; color:#334155; font-size:.78rem; font-weight:700; text-align:right; }
.invoice-item-entry-card .form-control { background:#fff; box-shadow:none; }
.invoice-product-required-message { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; margin-top:.75rem; padding:.7rem .85rem; border:1px solid #f3cf86; border-radius:11px; color:#7a4b08; background:#fff9e9; font-size:.8rem; line-height:1.8; }
.invoice-product-required-message[hidden] { display:none; }
.invoice-product-required-message > i { flex:0 0 auto; color:#c47b0b; }
.invoice-product-required-message a { color:#1d4ed8; font-weight:800; text-decoration:underline; text-underline-offset:2px; }
.invoice-form .invoice-section { margin-bottom:1.25rem; }
.invoice-form .invoice-section:last-of-type { margin-bottom:0; }
.invoice-item-entry-card { column-gap:.75rem; row-gap:.75rem; }
.invoice-item-entry-card .invoice-item-cell, .invoice-item-entry-card .invoice-item-action { min-width:0; }
.invoice-items-section-heading { justify-content: flex-start; direction: rtl; text-align: right; }
.invoice-item-entry-card > *,
.invoice-item-entry-card .product-cell,
.invoice-item-entry-card .product-cell .form-control,
.invoice-item-entry-card .product-cell .product-suggestions { min-width:0; max-width:100%; box-sizing:border-box; }
.invoice-item-entry-card .product-cell .form-control { width:100%; }
.invoice-item-entry-card .invoice-item-action { display:flex; flex-direction:column; justify-content:flex-end; }
.invoice-item-entry-card .invoice-item-action .btn { min-height:38px; }
.invoice-add-item-button { width:auto; min-width:0; padding:.5rem .75rem; gap:.35rem; white-space:nowrap; }
.invoice-date-field, .invoice-tax-field { width:min(100%, 360px); text-align:right; }
.invoice-date-field .form-label, .invoice-tax-field .form-label { display:block; margin-bottom:.55rem; text-align:right; }
.invoice-date-field .text-danger, .invoice-tax-field .text-danger { text-align:right; }
.invoice-items-table-wrapper { margin-top:.25rem; }

@media (max-width: 768px) {
    .invoice-date-field, .invoice-tax-field { width:100%; }
    .invoice-progress { overflow-x:auto; justify-content:flex-start; padding:.75rem; }
    .invoice-progress-step strong { display:none; }
    .invoice-progress-line { min-width:22px; flex:0 0 22px; }
}
.invoice-items-empty { display:flex; align-items:center; justify-content:center; gap:.5rem; min-height:90px; color:#94a3b8; background:#f8fafc; font-size:.85rem; }
.invoice-items-empty i { color:#93c5fd; font-size:1.4rem; }
.invoice-items-empty[hidden] { display:none; }
.invoice-workspace { padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; box-shadow: 0 5px 18px rgba(15, 23, 42, .06); }
.invoice-field-card, .invoice-customer-card, .invoice-items-card, .invoice-options-card, .invoice-tax-card { padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.invoice-customer-card { position: relative; }
.invoice-items-card { padding-bottom: .75rem; }
.invoice-items-flat { padding: 0; border: 0; border-radius: 0; background: transparent; }
.invoice-items-flat .invoice-item-entry { padding-top: 0; }
.invoice-items-card > .form-label { font-weight: 700; }
.invoice-item-entry, .invoice-item-row, .invoice-item { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(105px, 1fr)) minmax(150px, 1.25fr); gap: .5rem; align-items: center; margin-bottom: 0 !important; padding: .45rem; }
.invoice-item-entry { padding: 0 0 .65rem; border-bottom: 1px solid #e2e8f0; }
.invoice-item-row { display: table-row; position: relative; border-bottom: 0; }
.invoice-items-table .invoice-item-cell { display: table-cell; vertical-align: middle; }
.invoice-items-table .invoice-item-total-cell { display: table-cell; width: 20%; min-width: 190px; vertical-align: middle; white-space: nowrap; }
.invoice-item-total-content { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; min-width: 0; }
.invoice-row-error-icon { display: none; color: #dc2626; font-size: .95rem; }
.invoice-row-error { display: none; margin-top: .25rem; color: #dc2626; font-size: .75rem; white-space: normal; }
.invoice-row-invalid { background: #fff7f7 !important; }
.invoice-row-invalid .invoice-row-error-icon, .invoice-row-invalid .invoice-row-error { display: inline-block; }
.invoice-row-invalid .form-control { border-color: #dc2626; }
.invoice-item-row:nth-child(even), .invoice-item:nth-child(even) { background: transparent; }
.invoice-item-cell { min-width: 0; }
.invoice-item-cell.product-cell { min-width: 0; }
.invoice-item-total-cell { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; min-width: 0; }
.invoice-item-total-cell strong { white-space: nowrap; font-size: .82rem; }
.invoice-item-total-box { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: .35rem 0; color: var(--primary); }
.invoice-item-total-cell .remove-item { flex: 0 0 auto; margin: 0 !important; }
.invoice-items-table .invoice-item-total-cell { display: table-cell; vertical-align: middle; }
.invoice-items-header { display: none; }
.invoice-items-table-wrapper { margin-top: 0; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.invoice-items-table { min-width: 760px; width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0; table-layout: fixed; vertical-align: middle; }
.invoice-items-table thead th { padding: .7rem .65rem; border: 0; border-bottom: 1px solid #cbd5e1; color: #475569; background: #f1f5f9; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.invoice-items-table thead th:nth-child(1), .invoice-items-table tbody td:nth-child(1) { width: 42%; }
.invoice-items-table thead th:nth-child(2), .invoice-items-table tbody td:nth-child(2) { width: 15%; }
.invoice-items-table thead th:nth-child(3), .invoice-items-table tbody td:nth-child(3) { width: 10%; }
.invoice-items-table thead th:nth-child(4), .invoice-items-table tbody td:nth-child(4) { width: 13%; }
.invoice-items-table thead th:nth-child(5), .invoice-items-table tbody td:nth-child(5) { width: 20%; }
.invoice-items-table tbody tr { border-bottom: 1px solid #e2e8f0; }
.invoice-items-table tbody tr:last-child { border-bottom: 0; }
.invoice-items-table td { padding: .35rem .5rem; border: 0; border-bottom: 1px solid #e2e8f0; }
.invoice-product-name { display: block; min-height: 40px; padding: .6rem .75rem; color: #334155; line-height: 1.5; }
.invoice-item-entry .form-label { margin-bottom: .35rem; font-size: .78rem; font-weight: 700; }
.invoice-item-entry > .invoice-item-cell { display: flex; align-items: center; }
.invoice-item-entry > .invoice-item-cell .form-control { width: 100%; }
.invoice-items-table .invoice-item-cell { width: auto; }
.invoice-row-number { width: 1%; white-space: nowrap; text-align: center; }
.invoice-item-entry .col-md-2, .invoice-item-entry .col-md-5, .invoice-item-entry .col-md-1, .invoice-item .col-md-2, .invoice-item .col-md-4 { width: auto; padding: 0; }
.invoice-items-table th, .invoice-items-table td { border-left: 0; border-right: 0; }
.invoice-items-table .product-search[readonly] { border-color: transparent; background: transparent; box-shadow: none; color: #334155; cursor: default; }
.invoice-items-table .product-search[readonly]:focus { border-color: transparent; box-shadow: none; }
.invoice-items-table .item-price, .invoice-items-table .item-quantity, .invoice-items-table .item-discount { background: #fff; }
.invoice-item-entry .form-control, .invoice-item .form-control { min-height: 40px; }
.invoice-tax-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.invoice-tax-card .form-check { margin: 0; }
.invoice-summary { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid #bfdbfe; border-radius: 6px; background: #eff6ff; }
.invoice-summary > div { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(110px, auto); align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(191, 219, 254, .7); }
.invoice-summary > div { grid-template-columns: 1fr auto auto; white-space: nowrap; }
.invoice-summary > div:last-child { padding-top: .75rem; border-bottom: 0; font-size: 1rem; }
.invoice-list-page, .invoice-form-page, .invoice-details-page { max-width: 1180px; margin: 0 auto; }
.invoice-stat-card { display:flex; align-items:center; gap:1rem; min-height:88px; padding:1rem; border:1px solid var(--border); border-radius:16px; background:#fff; box-shadow:var(--shadow-card); }
.invoice-stat-icon { width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; font-size:1.25rem; }
.invoice-stat-icon.blue { color:#2563eb; background:#dbeafe; } .invoice-stat-icon.green { color:#15803d; background:#dcfce7; } .invoice-stat-icon.orange { color:#c2410c; background:#ffedd5; }
.invoice-stat-card strong { display:block; margin-top:.25rem; font-size:1.25rem; }
.invoice-stat-card small { font-size:.8rem; font-weight:400; }
.invoice-table-card { overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface); box-shadow:var(--shadow-card); }
.invoice-table-card > .table-responsive,
.invoice-table-card > .app-list-table-wrapper { overflow-x:auto; border-radius:inherit; }
.invoice-table-card > .table-responsive > .table,
.invoice-table-card > .app-list-table-wrapper > .table { min-width:620px; margin-bottom:0; }
.invoice-table-card > .section-heading,
.invoice-table-card > .invoice-table-header { padding-inline:1.25rem; }
.invoice-table-card > .section-heading { padding-top:1rem; }
.invoice-table-card .table thead th:first-child { border-top-right-radius:0; }
.invoice-table-card .table thead th:last-child { border-top-left-radius:0; }
.form-card,
.customer-search,
.product-search { border-radius:var(--radius-card); background:var(--surface); }
.app-list-card .table-responsive,
.app-list-card .table { border-radius:inherit; }
.invoice-row-actions { align-items: center; }
.invoice-row-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; }
.invoice-items-section-heading { direction: rtl; justify-content: flex-start; text-align: right; }
.invoice-items-section-heading > * { text-align: right; }
.invoice-table-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.15rem 1.25rem; border-bottom:1px solid var(--border); }
.invoice-list-page .invoice-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: .25rem 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.invoice-list-page .invoice-page-heading .app-page-title { margin: 0; color: #0f172a; font-size: 1.3rem; font-weight: 900; }
.invoice-list-page .invoice-page-heading .app-page-subtitle { margin: .3rem 0 0; color: #64748b; font-size: .9rem; }
.invoice-list-page .invoice-page-heading .btn { min-height: 42px; padding-inline: 1rem; font-weight: 800; }
.invoice-list-page .invoice-page-heading .app-page-title i { color: #2864dc !important; }

.invoice-list-page .invoice-stat-card {
  min-height: 108px;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
  transition: box-shadow .18s ease, transform .18s ease;
}

.invoice-list-page .invoice-stat-card:hover { box-shadow: 0 9px 22px rgba(15, 23, 42, .09); transform: translateY(-2px); }
.invoice-list-page .invoice-stat-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; color: #2864dc; background: #edf4ff; font-size: 1.3rem; }
.invoice-list-page .invoice-stat-copy { min-width: 0; }
.invoice-list-page .invoice-stat-label { display: block; color: #64748b; font-size: .84rem; font-weight: 700; line-height: 1.5; }
.invoice-list-page .invoice-stat-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; margin-top: .35rem; color: #0f172a; font-size: 1.15rem; font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.invoice-list-page .invoice-stat-value small { color: #64748b; font-size: .8rem; font-weight: 700; white-space: nowrap; }

.invoice-list-page .app-list-filter.adminlte-form {
  padding: 1.25rem;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.invoice-list-page .app-list-filter .form-label { margin-bottom: .45rem; color: #334155; font-size: .88rem; font-weight: 750; }
.invoice-list-page .app-list-filter .form-control,
.invoice-list-page .app-list-filter .form-select { min-height: 42px; border-color: #dbe4f0; border-radius: 10px; background-color: #fff; }
.invoice-list-page .app-list-filter .form-control:focus,
.invoice-list-page .app-list-filter .form-select:focus { border-color: #85aaf8; box-shadow: 0 0 0 .2rem rgba(40, 100, 220, .12); }
.invoice-list-page .app-list-filter .btn { min-height: 42px; border-radius: 10px; font-weight: 750; }

.invoice-list-page .invoice-table-card {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}

.invoice-list-page .invoice-table-header {
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.invoice-list-page .invoice-table-header h2 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 800; }
.invoice-list-page .invoice-table-header .badge { font-size: .82rem; font-weight: 800; }
.invoice-copy-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .8rem; }
.invoice-copy-sections .form-check { min-width: 0; }

.invoice-list-page .table { --bs-table-bg: #fff; --bs-table-hover-bg: #f5f8ff; --bs-table-striped-bg: #fbfcfe; }
.invoice-list-page .invoice-table-card > .app-list-table-wrapper > .table { width: 100%; min-width: 720px; table-layout: auto; }
.invoice-list-page .table thead,
.invoice-list-page .table thead tr { background: #f1f5f9; }
.invoice-list-page .table thead th { padding-block: .9rem; border-bottom: 1px solid #e2e8f0; color: #334155; background: transparent; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.invoice-list-page .table thead th.invoice-actions-header { text-align: center !important; }
.invoice-list-page .table tbody td { padding-block: .85rem; border-color: #edf1f6; color: #334155; font-size: .9rem; vertical-align: middle; }
.invoice-list-page .table tbody td.fw-semibold { color: #0f172a; }
.invoice-list-page .table tbody tr { transition: background-color .16s ease; }
.invoice-list-page .table tbody tr:hover { background: #f5f8ff; }
.invoice-list-page .invoice-workflow-badge,
.invoice-list-page .invoice-payment-status-badge { display: inline-flex; align-items: center; padding: .3rem .65rem; border: 1px solid #dbe2ea; border-radius: 999px; color: #475569; background: #f8fafc; font-size: .8rem; font-weight: 750; line-height: 1.4; white-space: nowrap; }
.invoice-list-page .invoice-workflow-status-open { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.invoice-list-page .invoice-workflow-status-progress { border-color: #bae6fd; color: #0369a1; background: #f0f9ff; }
.invoice-list-page .invoice-workflow-status-complete { border-color: #bbf7d0; color: #15803d; background: #f0fdf4; }
.invoice-list-page .invoice-workflow-status-cancelled { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.invoice-list-page .invoice-payment-status-paid { border-color: #bbf7d0; color: #15803d; background: #f0fdf4; }
.invoice-list-page .invoice-payment-status-partial { border-color: #fde68a; color: #a16207; background: #fffbeb; }
.invoice-list-page .invoice-payment-status-unpaid { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.invoice-list-page .invoice-status-summary { display: flex; align-items: flex-start; flex-direction: column; gap: .35rem; }
.invoice-list-page .invoice-balance { color: #334155 !important; font-weight: 600; }

.invoice-list-page .invoice-row-actions { justify-content: center; gap: .45rem; }
.invoice-list-page .invoice-row-actions .invoice-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.invoice-list-page .invoice-row-actions .invoice-action-btn:hover,
.invoice-list-page .invoice-row-actions .invoice-action-btn:focus-visible {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 3px 9px rgba(37, 99, 235, .12);
}

.invoice-list-page .invoice-row-actions .invoice-action-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

.invoice-list-page .invoice-row-actions .invoice-action-btn i {
  font-size: 1rem;
}

.invoice-list-page .invoice-row-actions .invoice-action-btn.is-copied {
  border-color: #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}

.table-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.table-icon-action:hover,
.table-icon-action:focus-visible {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 3px 9px rgba(37, 99, 235, .12);
}

.table-icon-action:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

.table-icon-action i { font-size: 1rem; }

.invoice-list-page .invoice-row-more .dropdown-menu { min-width: 13rem; padding: .45rem; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .13); }
.invoice-list-page .invoice-row-more .dropdown-item { display: flex; align-items: center; min-height: 40px; border-radius: 8px; color: #334155; font-size: .82rem; }
.invoice-list-page .invoice-row-more .dropdown-item:hover,
.invoice-list-page .invoice-row-more .dropdown-item:focus-visible { color: #1d4ed8; background: #eff6ff; }
.invoice-list-page .invoice-row-more .dropdown-item:disabled { color: #15803d; background: #f0fdf4; opacity: 1; }

.invoice-list-page .invoice-empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .4rem;
  color: #64748b;
}

.invoice-list-page .invoice-empty-state i {
  margin-bottom: .25rem;
  color: #94a3b8;
  font-size: 1.8rem;
}

.invoice-list-page .invoice-empty-state strong {
  color: #334155;
  font-size: .95rem;
}

.invoice-list-page .invoice-empty-state span {
  font-size: .82rem;
}

@media (max-width: 991.98px) {
  .invoice-list-page .invoice-page-heading { align-items: stretch; flex-direction: column; }
  .invoice-list-page .invoice-page-heading .btn { width: 100%; }
}

@media (max-width: 767.98px) {
  .invoice-list-page .invoice-stat-card { min-height: 94px; gap: .65rem; padding: .8rem; }
  .invoice-list-page .invoice-stat-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 11px; font-size: 1.05rem; }
  .invoice-list-page .invoice-stat-value { font-size: 1rem; }
  .invoice-list-page .invoice-stat-label { font-size: .7rem; }
  .invoice-list-page .invoice-table-header { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .invoice-list-page .app-list-filter.adminlte-form { padding: 1rem; }
}
.invoice-section { margin-bottom:1.25rem; padding:1.25rem 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.adminlte-form .invoice-section { border-radius: 0; box-shadow: none; }
.adminlte-form .invoice-section-title { padding-bottom: .85rem; border-bottom: 1px solid #eef2f7; }
.adminlte-form .invoice-summary { width: min(100%, 430px); margin-right: auto; border-radius: 6px; padding: .75rem .9rem; }
.adminlte-form .form-actions { justify-content: flex-start; padding: .65rem 0; border: 0; background: transparent; box-shadow: none; }
.adminlte-form .form-actions .btn { min-height: 36px; padding: .45rem .85rem; font-size: .85rem; }
.adminlte-form .form-actions .btn-primary { min-width: 0; }
.adminlte-form { padding: 1.25rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.adminlte-form > .row { row-gap: 1rem; }
.adminlte-form .form-label { color: #334155; font-size: .82rem; font-weight: 700; }
.adminlte-form .form-control, .adminlte-form .form-select { min-height: 40px; border-color: #cbd5e1; border-radius: 6px; }
.adminlte-form select[name="pageSize"] { min-width: 128px; }
.adminlte-form textarea.form-control { min-height: 110px; }
.adminlte-form .form-control:focus, .adminlte-form .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12); }
.adminlte-form .input-group-text { border-color: #cbd5e1; border-radius: 6px; }
.adminlte-form .form-check { margin-bottom: 0; padding: 0; border: 0; border-radius: 0; background: transparent; display: flex; align-items: center; gap: .45rem; }
.adminlte-form .form-check-input { margin: 0; float: none; }
.adminlte-form .form-check-label { margin-bottom: 0; }
.adminlte-form .form-text { color: #64748b; font-size: .75rem; }
.adminlte-form .text-danger.field-validation-error { font-size: .75rem; }
.adminlte-form > .btn, .adminlte-form .form-actions .btn { min-height: 40px; }
.invoice-section-title { display:flex; align-items:center; gap:.75rem; margin-bottom:1.1rem; }
.invoice-section-title > span { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border: 0; border-radius:50%; color:#fff; background:var(--primary); font-weight:700; }
.invoice-section-title h2 { margin:0; font-size:1rem; } .invoice-section-title p { margin:.25rem 0 0; color:var(--muted); font-size:.8rem; }
.invoice-details-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
.invoice-detail-status { display:flex; justify-content:space-between; align-items:center; padding:.75rem 1rem; border-radius:12px; background:var(--surface-muted); }
.invoice-customer-summary { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem; border-radius:12px; background:var(--surface-muted); }
.selected-customer-summary { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .65rem; margin-top:.65rem; padding:.65rem .8rem; border:1px solid #dcebe8; border-radius:12px; background:#f7fbfa; }
.selected-customer-summary:empty { display:none; }
.selected-customer-status { color:#166534; font-size:.78rem; font-weight:800; white-space:nowrap; }
.selected-customer-locked { color:#64748b; font-size:.78rem; line-height:1.7; }
.selected-customer-mobile { margin-inline-start:auto; color:#526575; font-size:.78rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.customer-autocomplete-suggestions { inset-inline:0; top:calc(100% + .35rem); max-height:18rem; overflow-y:auto; border-radius:11px; box-shadow:0 12px 28px rgba(15,23,42,.14); }
.customer-autocomplete-suggestions[hidden] { display:none; }
.customer-suggestion-option { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-height:50px; }
.customer-suggestion-name { overflow:hidden; min-width:0; text-overflow:ellipsis; white-space:nowrap; }
.customer-suggestion-details { display:flex; flex:0 0 auto; align-items:center; gap:.55rem; }
.customer-suggestion-mobile { color:#64748b; font-variant-numeric:tabular-nums; white-space:nowrap; }
.customer-suggestion-status { padding:.75rem 1rem; color:#64748b; font-size:.8rem; text-align:center; }
.invoice-financial-summary { padding:1rem; border-radius:12px; background:var(--surface-muted); }
@media (max-width:768px) { .invoice-table-header, .invoice-details-header, .invoice-detail-status, .invoice-customer-summary { align-items:flex-start; flex-direction:column; } }
.invoice-actions { padding-top: .25rem; }
.invoice-form-page .invoice-page-heading { margin-bottom: .55rem; }
.invoice-form-page .invoice-workspace { padding: .75rem; }
.invoice-form-page .invoice-section { margin-bottom: .65rem; padding: .65rem 0; }
.invoice-form-page .adminlte-form > .row { row-gap: .5rem; }
.invoice-form-page .invoice-items-table td { padding: .2rem .35rem; }
.invoice-form-page .invoice-items-table thead th { padding: .45rem .5rem; }
.invoice-form-page .invoice-summary { margin-bottom: .55rem; padding: .55rem .75rem; }
.invoice-form-page .invoice-summary > div { padding: .3rem 0; }
.invoice-form-page .form-label { margin-bottom: .25rem; }
.invoice-form-page .invoice-item-entry { padding-bottom: .4rem; }
.invoice-form-page .invoice-item-entry-card {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(90px, 1fr)) auto;
  align-items: end;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  background: #f8fbff;
}
.invoice-form-page .invoice-item-entry-card > .invoice-item-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
}
.invoice-form-page .invoice-item-entry-card .form-label {
  display: block;
  width: 100%;
  margin: 0 0 .55rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}
.invoice-form-page .invoice-item-entry-card .form-control {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  background: #fff;
  box-shadow: none;
}
.invoice-form-page .invoice-item-entry-card .invoice-item-action {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: max-content;
  padding-bottom: 0;
}
.invoice-form-page .invoice-item-entry-card .invoice-add-item-button {
  width: auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: .5rem .75rem;
  white-space: nowrap;
}
.validation-summary:empty { display: none; }
.validation-summary:not(:has(li)) { display: none; }
.validation-summary ul:empty { display: none; }
.validation-summary { scroll-margin-top: 1.5rem; }
.validation-summary a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.invoice-entry-validation { margin-top: .75rem; padding: .65rem .85rem; border: 1px solid #fecaca; border-radius: 11px; color: #b91c1c; background: #fff7f7; font-size: .82rem; }
.invoice-entry-validation[hidden] { display: none; }
.invoice-entry-validation ul { margin: 0; padding-inline-start: 1.25rem; }
.invoice-item .field-validation-valid { display: none; }
.invoice-item .field-validation-error { display: block; margin-top: .25rem; color: #dc2626; font-size: .75rem; }
.invoice-form .form-control.is-invalid { border-color: #dc2626; background-color: #fff7f7; }
.persian-date-input, input[type="date"] { direction: rtl; text-align: right; }
.persian-datepicker-wrapper > .persian-date-input.is-invalid,
.persian-datepicker-wrapper > [data-persian-date-display].is-invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.date-range-error { margin-top: .25rem; font-size: .78rem; }
.product-suggestions { top: calc(100% + 0.25rem); right: 0; max-height: 220px; overflow-y: auto; }
.persian-datepicker-wrapper { position: relative; }
.persian-datepicker { display: none; position: absolute; top: calc(100% + 0.3rem); right: 0; z-index: 1050; width: 280px; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15); }
.persian-datepicker.open { display: block; }
.persian-datepicker-header, .persian-weekdays, .persian-days { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; gap: 0.25rem; text-align: center; }
.persian-datepicker-header { grid-template-columns: 36px 1fr 36px; margin-bottom: 0.65rem; }
.persian-datepicker-header button, .persian-days button { border: 0; border-radius: 7px; background: transparent; padding: 0.35rem; }
.persian-datepicker-header button:hover, .persian-days button:hover, .persian-days button.selected { background: var(--primary); color: #fff; }
.persian-weekdays { color: #64748b; font-size: 0.8rem; margin-bottom: 0.25rem; }

/* â”€â”€ Customers â”€â”€ */
.customer-toolbar .btn { margin-top: 0.35rem; }
.customer-form { max-width: 760px; }
.customer-form .text-danger { display: block; margin-top: 0.25rem; font-size: 0.85rem; }
.mobile-input { direction: rtl; text-align: right !important; letter-spacing: 0.08em; }
.customer-mobile { direction: ltr; text-align: right !important; white-space: nowrap; }
input[name="PostalCode"], #customerMobileSearch { direction: rtl; text-align: right; }
.customer-search, .product-search { width: 100%; background: #fff; }

/* â”€â”€ List toolbars â”€â”€ */
.list-toolbar { gap: 1rem; }
.list-toolbar > .btn,
.list-toolbar .list-actions .btn {
  min-height: 38px;
  padding: .5rem .85rem;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.list-toolbar .list-actions { align-items: center; }

/* â”€â”€ Shared list pages â”€â”€ */
.app-list-page {
  width: min(100%, 1180px);
  margin-inline: auto;
}
.app-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.app-list-heading .app-page-title { margin-bottom: .25rem; }
.app-list-actions,
.app-list-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.app-list-filter,
.app-list-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.app-list-filter { padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.app-list-card { overflow: hidden; }
.app-list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef2f7;
}
.app-list-card-header h2,
.app-list-card-header h3,
.app-list-card-header h4 { margin: 0; font-size: .95rem; font-weight: 800; }
.app-list-table-wrapper { overflow-x: auto; }
.app-list-table-wrapper > .table { min-width: 620px; }
.app-list-card > .table-responsive,
.app-list-card > .app-list-table-wrapper { margin: 0; }
.app-list-card .table { margin-bottom: 0; }

.card:not(.home-hero-premium), .form-card, .customer-form, .invoice-form, .support-form, .product-form {
  border-color: var(--border) !important;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card) !important;
}
.card-header { padding: 1rem 1.25rem; color: var(--ink); background: #fff; border-bottom-color: #eef2f7; font-weight: 800; }
.card-body { padding: 1.25rem; }
.list-toolbar, .customer-toolbar { min-height: 54px; }
.site-main > .list-toolbar h1, .site-main > .customer-toolbar h1 { margin-bottom: 0; font-size: 1.35rem; font-weight: 900; }

/* â”€â”€ Unified application shell â”€â”€ */
:root {
  --primary: #1769ff;
  --primary-dark: #1247bb;
  --primary-soft: #e7f0ff;
  --primary-border: #9fc4ff;
  --surface: #ffffff;
  --surface-muted: #f0f6ff;
  --border: #cbdcf3;
  --ink: #14284b;
  --muted: #536b91;
  --radius-card: 18px;
  --shadow-card: 0 8px 26px rgba(15, 23, 42, 0.06);
  --gold: #c6922e;
  --gold-soft: #fff8e8;
}

body { background: #eaf3ff; color: var(--ink); }
a { color: var(--primary); }

/* â”€â”€ Premium public home â”€â”€ */
.home-hero-premium { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 5rem); border: 1px solid #dbeafe; border-radius: 30px; background: radial-gradient(circle at 8% 8%, rgba(255,255,255,.95), transparent 28%), linear-gradient(135deg, #eef6ff 0%, #f5f3ff 52%, #fff 100%); box-shadow: 0 22px 55px rgba(37, 99, 235, .1); }
.home-hero-premium::after { content: ''; position: absolute; width: 260px; height: 260px; left: -100px; bottom: -150px; border-radius: 50%; background: rgba(199, 210, 254, .35); }
.home-kicker { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary-dark); font-size: .88rem; font-weight: 800; letter-spacing: -.01em; }
.home-hero-title { margin: 1rem 0 1.1rem; color: var(--ink); font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 900; line-height: 1.2; letter-spacing: -.055em; }
.home-hero-title span { color: var(--primary); }
.home-hero-lead { max-width: 620px; color: var(--muted); font-size: 1.08rem; line-height: 2.1; }
.home-primary-cta { box-shadow: 0 12px 24px rgba(37, 99, 235, .25); }
.home-secondary-cta { border: 1px solid #cbd5e1; color: var(--ink); box-shadow: 0 6px 16px rgba(15, 23, 42, .05); }
.home-secondary-cta:hover { color: var(--primary-dark); background: #fff; border-color: var(--primary-border); }
.home-trust-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.home-trust-row i { margin-left: .3rem; color: #16a34a; }
.home-visual-stage { position: relative; min-height: 285px; display: grid; place-items: center; }
.home-real-visual { width: 100%; max-height: 320px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(37, 99, 235, .13)); }
.home-floating-note { position: absolute; right: -1rem; bottom: 1rem; display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.9); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 12px 25px rgba(15,23,42,.1); }
.home-floating-note > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: #10b981; }
.home-floating-note strong, .home-floating-note small { display: block; }
.home-floating-note strong { font-size: .78rem; }.home-floating-note small { margin-top: .15rem; color: var(--muted); font-size: .68rem; }
.home-invoice-preview { position: relative; z-index: 1; margin: 1rem 0 0; transform: none; box-shadow: 0 18px 35px rgba(15,23,42,.16); }
.home-stats-row .stat-pill { min-height: 100%; padding: 1.25rem .75rem; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-card); }
.home-stats-row .stat-pill-num { color: var(--primary-dark); font-size: 1.65rem; font-weight: 900; }
.home-stats-row .stat-pill-lbl { margin-top: .25rem; color: var(--muted); font-size: .78rem; }
.home-feature-banner { border-color: #dbeafe; background: linear-gradient(120deg, #fff, #f8fbff); }
.home-content-section { padding: clamp(1.35rem, 3vw, 2.5rem); border: 1px solid transparent; border-radius: 24px; }
.home-section-blue { background: linear-gradient(135deg, #e8f3ff 0%, #f7faff 100%) !important; border-color: #bfdbfe; }
.home-section-blue-soft { background: #edf5ff !important; border-color: #bfdbfe; }
.home-section-green { padding: .75rem; border-radius: 24px; background: #eafaf3 !important; border: 1px solid #bbf7d0; }
.home-section-purple { background: linear-gradient(135deg, #f6f0ff, #f0edff) !important; border-color: #ddd6fe; }
.home-section-amber { border: 1px solid #fcd34d; background: linear-gradient(135deg, #fff8dc, #fff1dc) !important; }
.home-section-white { background: #fff !important; border-color: var(--border); }
.home-section-teal { background: linear-gradient(135deg, #ecfeff, #f0fdfa) !important; border: 1px solid #a5f3fc; border-radius: 24px; padding: clamp(1.25rem, 3vw, 2.5rem); }
.home-section-teal .home-solution-card { background: #fff; }
.home-hero-premium { background: linear-gradient(135deg, #e8f3ff 0%, #f5f3ff 55%, #fff 100%) !important; }
.home-feature-banner { background: linear-gradient(135deg, #f6f0ff, #f0edff) !important; }
.cta-section { background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important; }
.home-section-white > .text-center, .home-content-section > .text-center { margin-bottom: 1.75rem !important; }
.home-content-section h2, .how-it-works h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.6; }
.home-content-section p, .how-it-works p { line-height: 2; }
.home-hero-premium .home-visual-stage { padding: .5rem; border-radius: 24px; background: rgba(255,255,255,.45); }
.home-real-visual { max-height: 350px; }
.home-feature-banner h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.55; }
.home-solutions h2, .home-pricing h2, .home-testimonials h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.55; }
.site-main h1, .site-main h2, .seo-page h1, .seo-page h2, .seo-article h1, .seo-article h2 { line-height: 1.65; }
.site-main h1 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.site-main h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.site-main h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

@media (max-width: 991.98px) {
  .home-hero-premium { padding: 2rem 1.25rem; }
  .home-visual-stage { min-height: 230px; }
  .home-invoice-preview { margin-top: .75rem; transform: none; }
}
@media (max-width: 575.98px) {
  .home-hero-title { font-size: 2.45rem; }
  .home-hero-lead { font-size: .96rem; line-height: 1.9; }
  .home-trust-row { gap: .6rem .9rem; }
  .home-visual-stage { min-height: 190px; }
  .home-floating-note { right: 0; bottom: 0; transform: scale(.9); transform-origin: right bottom; }
  .home-stats-row .stat-pill { padding-inline: .35rem; }
  .home-stats-row .stat-pill-num { font-size: 1.25rem; }
  .home-content-section { padding: 1rem .75rem; border-radius: 18px; }
  .home-section-green { padding: .5rem; }
}
.btn { min-height: 38px; border-radius: 8px; font-weight: 700; padding: .45rem .85rem; transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn:hover:not(:disabled):not(.disabled) { transform: translateY(-1px); }
.btn:focus-visible { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .18); }
.btn:disabled, .btn.disabled { cursor: not-allowed; opacity: .6; transform: none; }
.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 12px rgba(37, 99, 235, .18); }
.btn-primary:hover, .btn-primary:focus { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary-border); background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:focus { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-outline-secondary, .btn-outline-success, .btn-outline-danger { background: #fff; }
.btn-outline-secondary:hover, .btn-outline-success:hover, .btn-outline-danger:hover { transform: translateY(-1px); }
.btn-sm { min-height: 34px; padding: .4rem .7rem; font-size: .82rem; }
.btn-lg { min-height: 40px; padding: .5rem .9rem; font-size: .9rem; }
.btn-icon { width: 38px; height: 38px; min-height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding: .25rem 0; }
.page-heading h1 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.page-heading p { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
.app-page-heading { align-items: flex-end; min-height: 78px; }
.app-page-title { margin: 0; font-size: 1.3rem; font-weight: 900; line-height: 1.8; }
.app-page-subtitle { min-height: 1.4em; margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-page-heading > .page-actions,
.app-page-heading > .list-actions,
.app-page-heading > .app-page-actions { align-items: center; justify-content: flex-start; gap: .55rem; }
.app-page-heading > .page-actions .btn,
.app-page-heading > .list-actions .btn,
.app-page-heading > .app-page-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .55rem .9rem; border-radius: 10px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.app-page-heading > .page-actions .btn i,
.app-page-heading > .list-actions .btn i,
.app-page-heading > .app-page-actions .btn i { font-size: .95rem; line-height: 1; }
.app-page-heading > .page-actions .btn-primary,
.app-page-heading > .list-actions .btn-primary,
.app-page-heading > .app-page-actions .btn-primary { box-shadow: 0 5px 12px rgba(37, 99, 235, .16); }
.app-page-heading > .page-actions .btn-outline-secondary,
.app-page-heading > .list-actions .btn-outline-secondary,
.app-page-heading > .app-page-actions .btn-outline-secondary { color: #475569; border-color: #cbd5e1; }
.app-page-heading > .page-actions .btn-outline-secondary:hover,
.app-page-heading > .page-actions .btn-outline-secondary:focus-visible,
.app-page-heading > .list-actions .btn-outline-secondary:hover,
.app-page-heading > .list-actions .btn-outline-secondary:focus-visible,
.app-page-heading > .app-page-actions .btn-outline-secondary:hover,
.app-page-heading > .app-page-actions .btn-outline-secondary:focus-visible { color: #1e40af; border-color: #93c5fd; background: #eff6ff; }
.app-page-heading > .page-actions .btn-outline-success,
.app-page-heading > .list-actions .btn-outline-success,
.app-page-heading > .app-page-actions .btn-outline-success { color: #166534; border-color: #bbf7d0; }
.app-page-heading > .page-actions .btn-outline-success:hover,
.app-page-heading > .page-actions .btn-outline-success:focus-visible,
.app-page-heading > .list-actions .btn-outline-success:hover,
.app-page-heading > .list-actions .btn-outline-success:focus-visible,
.app-page-heading > .app-page-actions .btn-outline-success:hover,
.app-page-heading > .app-page-actions .btn-outline-success:focus-visible { color: #166534; border-color: #86efac; background: #f0fdf4; }
.eyebrow-label { display: block; margin-bottom: .35rem; color: var(--primary); font-size: .72rem; font-weight: 800; }
.admin-page-heading { align-items: flex-end; padding: .5rem 0 1rem; border-bottom: 1px solid var(--border); }
.app-content > main > .d-flex.justify-content-between.align-items-center.mb-4,
.app-content > main > .list-toolbar { padding: .5rem 0 1rem; border-bottom: 1px solid var(--border); }
.app-content > main > .d-flex.justify-content-between.align-items-center.mb-4 h1,
.app-content > main > .list-toolbar h1 { font-size: 1.25rem; font-weight: 900; }
.app-content > main > .card.adminlte-form,
.app-content > main > form.adminlte-form { border-color: var(--border); background: var(--surface-muted); }
.app-content > main > .dashboard-card,
.app-content > main > .mini-card { overflow: hidden; }
.app-content .pagination-panel { margin: 1rem 0 1.5rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); }
.report-period-note { padding: .7rem 1rem; border-radius: 10px; color: #475569; background: #f8fafc; font-size: .82rem; }
.report-summary-card { position: relative; min-height: 132px; padding: 1rem !important; }
.report-summary-card small, .report-summary-card span:last-child { display: block; color: var(--muted); }
.report-summary-card strong { display: block; margin-top: .3rem; font-size: 1.15rem; }
.report-summary-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: .55rem; border-radius: 11px; font-size: 1.1rem; }
.report-summary-primary { color: #2563eb; background: #eff6ff; }
.report-summary-success { color: #15803d; background: #f0fdf4; }
.report-summary-warning { color: #b45309; background: #fffbeb; }
.report-summary-danger { color: #dc2626; background: #fef2f2; }
.report-metric-card { min-height: 105px; padding: 1rem !important; }
.report-metric-card > span, .report-metric-card > small { display: block; color: var(--muted); }
.report-metric-card strong { display: block; margin: .3rem 0; font-size: 1.1rem; }
.customer-profile-summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem !important; }
.customer-profile-avatar { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; color: #2563eb; background: #eff6ff; font-size: 1.35rem; }
.customer-profile-info { flex: 1; }.customer-profile-info h2 { margin: 0 0 .2rem; font-size: 1.1rem; font-weight: 900; }
.customer-stat-card { min-height: 112px; padding: 1rem !important; }.customer-stat-card small, .customer-stat-card span { display: block; color: var(--muted); }.customer-stat-card strong { display: block; margin: .35rem 0; font-size: 1.1rem; }
.customer-product-row { margin-bottom: 1rem; }.customer-product-row:last-child { margin-bottom: 0; }
.customer-facts { display: grid; gap: .8rem; }.customer-facts div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }.customer-facts span { color: var(--muted); font-size: .82rem; }.customer-facts strong { max-width: 60%; text-align: left; font-size: .85rem; }
.customer-period-card { height: 100%; padding: .9rem; border-radius: 12px; background: #f8fafc; }.customer-period-card span, .customer-period-card small { display: block; color: var(--muted); }.customer-period-card strong { display: block; margin: .45rem 0; color: #2563eb; }
.customer-recommendation-card { height: 100%; padding: 1rem; border: 1px solid #f1dfb5; border-radius: 12px; background: #fffdf7; }.customer-recommendation-card h3 { font-size: .95rem; }.customer-recommendation-card strong { color: #2563eb; }.customer-recommendation-card p { min-height: 2.5rem; color: var(--muted); font-size: .78rem; }
.inventory-alert-panel { padding: 1.15rem 1.25rem !important; border: 1px solid #f2dfb6; border-inline-start: 4px solid #e8ad3d; border-radius: 16px; background: #fffdfa; box-shadow: 0 5px 18px rgba(15, 23, 42, .04); }
.inventory-alert-panel > .section-heading { align-items: center; gap: .75rem 1rem; padding-bottom: .85rem; border-bottom: 1px solid #f2ead8; }
.inventory-alert-panel > .section-heading > div { display: grid; gap: .2rem; min-width: 0; }
.inventory-alert-panel > .section-heading h6 { margin: 0; color: #654b1c; font-size: .98rem; font-weight: 850; }
.inventory-alert-panel > .section-heading small { color: #806b46 !important; font-size: .82rem; line-height: 1.7; }
.inventory-alert-panel > .row { --bs-gutter-x: .65rem; --bs-gutter-y: .65rem; margin-top: .15rem; }
.inventory-alert-item { display: flex; min-height: 54px; align-items: center; gap: .55rem; padding: .65rem .75rem; border: 1px solid #f0dfb8; border-radius: 11px; background: #fff9ec; }
.inventory-alert-item > span { flex: 1 1 auto; min-width: 0; color: #4b5563; font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.inventory-alert-item > strong { flex: 0 0 auto; font-size: .86rem; white-space: nowrap; }
.inventory-alert-item a { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #dbeafe; border-radius: 9px; color: #2563eb; background: #eff6ff; }
.inventory-quantity { display: inline-flex; align-items: baseline; direction: rtl; unicode-bidi: isolate; gap: .25rem; white-space: nowrap; }
.inventory-quantity-value,
.inventory-quantity-unit,
.inventory-invoice-number { direction: ltr; unicode-bidi: isolate; }
.inventory-quantity-value { text-align: left; }
.stock-page { display: grid; gap: 1.25rem; min-width: 0; }
.stock-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-width: 0; margin-bottom: .25rem; padding: 1.25rem 1.35rem; border: 1px solid #dfe7f1; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); box-shadow: 0 8px 24px rgba(15, 23, 42, .045); }
.stock-page-heading-copy { min-width: 0; }
.stock-page-eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .45rem; color: #2563eb; font-size: .76rem; font-weight: 800; }
.stock-page-heading h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .65rem; margin: 0; color: #172554; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 900; line-height: 1.6; }
.stock-page-product-name { color: #334155; }
.stock-page-heading-copy > p { margin: .3rem 0 0; color: #64748b; font-size: .83rem; line-height: 1.8; }
.stock-page-heading-actions { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.stock-current-balance { display: grid; gap: .1rem; min-width: 140px; padding: .6rem .85rem; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; }
.stock-current-balance > span { color: #64748b; font-size: .72rem; font-weight: 700; }
.stock-current-balance > strong { display: flex; align-items: baseline; gap: .35rem; direction: rtl; color: #15803d; font-size: 1.1rem; font-weight: 900; }
.stock-current-balance > strong.is-low { color: #b45309; }
.stock-current-balance > strong.is-empty { color: #dc2626; }
.stock-current-balance small { color: #64748b; font-size: .72rem; font-weight: 700; }
.stock-page-heading-actions > .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; white-space: nowrap; }
.stock-page-alert { display: flex; align-items: center; gap: .6rem; margin: 0; border-radius: 12px; }
.stock-page-card { overflow: hidden; border: 1px solid #e1e8f1; border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(15, 23, 42, .04); }
.stock-card-heading { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; border-bottom: 1px solid #edf1f6; background: #fff; }
.stock-card-icon { display: inline-grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #dbeafe; border-radius: 12px; color: #2563eb; background: #eff6ff; font-size: 1rem; }
.stock-card-heading h2 { margin: 0; color: #172554; font-size: .98rem; font-weight: 850; line-height: 1.6; }
.stock-card-heading p { margin: .15rem 0 0; color: #64748b; font-size: .77rem; line-height: 1.7; }
.stock-entry-card .card-body { padding: 1.15rem 1.2rem 1.25rem; }
.stock-entry-grid { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(130px, .8fr) minmax(220px, 1.5fr) minmax(130px, .75fr); align-items: end; gap: .9rem; }
.stock-entry-field { min-width: 0; }
.stock-entry-field .form-label { margin-bottom: .4rem; color: #334155; font-size: .8rem; font-weight: 750; }
.stock-entry-field .form-control,
.stock-entry-field .form-select { min-height: 44px; border-color: #d7e0eb; border-radius: 10px; background-color: #fff; }
.stock-entry-field .form-control:focus,
.stock-entry-field .form-select:focus { border-color: #93b4f6; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.stock-entry-submit { display: flex; }
.stock-entry-submit .btn { display: inline-flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: .4rem; }
.stock-history-heading { border-bottom: 0; }
.stock-history-table-wrap { border-top: 1px solid #edf1f6; }
.stock-history-table-wrap .table { min-width: 650px; }
.stock-history-table-wrap .table thead th { padding: .8rem 1rem; border-bottom: 1px solid #dbe3ed; color: #475569; background: #f5f8fc; font-size: .77rem; font-weight: 800; white-space: nowrap; }
.stock-history-table-wrap .table tbody td { padding: .8rem 1rem; border-color: #edf1f6; color: #334155; font-size: .82rem; vertical-align: middle; }
.stock-history-table-wrap .table tbody tr:last-child td { border-bottom: 0; }
.stock-history-table-wrap .inventory-quantity { min-width: 72px; justify-content: flex-start; gap: .3rem; }
.stock-history-note { min-width: 240px; }
.stock-invoice-number { display: inline-block; direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stock-history-empty { display: grid; justify-items: center; gap: .35rem; padding: 1.75rem 1rem; color: #64748b; text-align: center; }
.stock-history-empty i { color: #94a3b8; font-size: 1.5rem; }
.stock-history-empty strong { color: #334155; font-size: .86rem; }
.stock-history-empty span { font-size: .76rem; }

@media (max-width: 991.98px) {
  .stock-page-heading { align-items: flex-start; }
  .stock-page-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .stock-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-entry-note { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .stock-page { gap: .9rem; }
  .stock-page-heading { flex-direction: column; gap: .85rem; padding: 1rem; }
  .stock-page-heading h1 { font-size: 1.2rem; }
  .stock-page-heading-copy > p { font-size: .76rem; }
  .stock-page-heading-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; justify-content: stretch; gap: .5rem; }
  .stock-current-balance { min-width: 0; }
  .stock-page-heading-actions > .btn { padding-inline: .65rem; font-size: .76rem; }
  .stock-card-heading { padding: .85rem; }
  .stock-entry-card .card-body { padding: .9rem; }
  .stock-entry-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .stock-entry-note { grid-column: auto; }
  .stock-entry-submit { margin-top: .1rem; }
  .stock-history-table-wrap .table { min-width: 600px; }
}
.seller-review-form-card { max-width: 760px; }
.dashboard-hero { padding-bottom: 1rem; }.dashboard-hero .eyebrow-label { display: block; margin-bottom: .35rem; }
.dashboard-account-summary .status-card, .dashboard-account-summary .dashboard-card { position: relative; overflow: hidden; }
.dashboard-account-summary .status-accent { position: absolute; inset: 0 auto 0 0; width: 4px; background: #16a34a; }
.seller-trend-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; align-items: center; gap: .65rem; margin-bottom: .65rem; }
.seller-trend-label { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.seller-trend-track { display: flex; overflow: hidden; height: 14px; border-radius: 99px; background: #eef2f7; }
.seller-trend-segment { display: block; height: 100%; min-width: 0; transition: width .25s ease; }
.seller-trend-completed { background: #198754; }
.seller-trend-deferred { background: #f59e0b; }
.seller-trend-ignored { background: #6c757d; }
.seller-trend-total { color: var(--ink); font-size: .8rem; text-align: left; }
.seller-trend-summary-cards .border { border-color: var(--border) !important; background: var(--surface-muted); }
.seller-trend-summary-cards strong { line-height: 1.7; }
.app-content .pagination-panel .page-link { min-width: 34px; text-align: center; }
.receivables-page { display: grid; gap: 1.25rem; color: #172b4d; }
.receivables-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px) auto; align-items: center; gap: 1.5rem; padding: 1.65rem 1.8rem; overflow: hidden; border: 1px solid #e1e9ef; border-radius: 22px; background: #fff; color: #20364f; box-shadow: 0 8px 24px rgba(22, 44, 69, .05); }
.receivables-hero-copy h1 { margin: .45rem 0 .4rem; color: #1d334d; font-size: 1.65rem; font-weight: 850; }
.receivables-hero-copy > p { margin: 0; color: #687b8e; font-size: .88rem; line-height: 1.9; }
.receivables-eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: #62809a; font-size: .82rem; font-weight: 800; }
.receivables-hero .receivables-eyebrow { color: #287a78; }
.receivables-hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .9rem; color: #62778a; font-size: .84rem; }
.receivables-hero-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.receivables-hero-total { display: grid; justify-items: start; gap: .2rem; min-width: 0; padding-inline: 1.5rem; border-inline-start: 1px solid #e2e9ef; }
.receivables-hero-total > span, .receivables-hero-total > small { color: #718196; font-size: .84rem; }
.receivables-hero-total > strong { max-width: 100%; color: #1b4959; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 900; overflow-wrap: anywhere; }
.receivables-hero-actions { display: flex; flex-direction: column; gap: .55rem; }
.receivables-hero-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; white-space: nowrap; }
.receivables-back-button { border-color: #d9e2e9; color: #52677d; background: #fff; }
.receivables-back-button:hover { border-color: #c6d4df; color: #29475d; background: #f5f8fa; }
.receivables-status-tabs { display: flex; flex-wrap: wrap; }
.receivables-status-tab { display: inline-flex; align-items: center; gap: .55rem; min-height: 38px; padding: .4rem .8rem; border: 1px solid #e0e7ed; border-radius: 999px; color: #53687d; background: #fff; font-size: .82rem; font-weight: 750; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, color .18s ease; }
.receivables-status-tab:hover { border-color: #c4d1dc; color: #263f56; background: #f8fafb; }
.receivables-status-tab.is-active { border-color: #c7d3dc; color: #203b52; background: #f1f5f7; }
.receivables-status-tab strong { display: inline-flex; min-width: 23px; height: 23px; align-items: center; justify-content: center; padding-inline: .3rem; border-radius: 999px; color: #53687d; background: #e9eef2; font-size: .76rem; }
.receivables-status-tab:focus-visible, .receivables-due-card:focus-visible { outline: 3px solid rgba(40, 122, 120, .3); outline-offset: 2px; }
.receivables-due-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.receivables-due-card { position: relative; display: flex; min-width: 0; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid #e3eaf1; border-radius: 17px; color: #263b53; background: #fff; box-shadow: 0 5px 18px rgba(22, 44, 69, .035); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.receivables-due-card:hover { transform: translateY(-2px); border-color: #b8cddd; color: #263b53; box-shadow: 0 10px 24px rgba(22, 44, 69, .08); }
.receivables-due-card.is-active { border-color: #247a83; box-shadow: 0 0 0 2px rgba(36, 122, 131, .13); }
.receivables-due-icon { display: inline-flex; flex: 0 0 42px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 13px; font-size: 1.15rem; }
.receivables-due-overdue .receivables-due-icon { color: #bd3c47; background: #fff0f0; }
.receivables-due-soon .receivables-due-icon { color: #a9650c; background: #fff5df; }
.receivables-due-future .receivables-due-icon { color: #28736f; background: #e9f7f4; }
.receivables-due-undated .receivables-due-icon { color: #62738a; background: #eef2f6; }
.receivables-due-copy { display: grid; min-width: 0; gap: .12rem; }
.receivables-due-copy > span { color: #52677e; font-size: .84rem; font-weight: 750; }
.receivables-due-copy > strong { color: #1b2f49; font-size: 1.08rem; font-weight: 900; overflow-wrap: anywhere; }
.receivables-due-overdue .receivables-due-copy > strong { color: #a9323d; }
.receivables-due-copy > strong small { color: #77889b; font-size: .76rem; font-weight: 650; }
.receivables-due-copy > small { color: #718196; font-size: .78rem; }
.receivables-due-arrow { margin-inline-start: auto; color: #9aabba; font-size: .8rem; }
.receivables-workspace { overflow: hidden; border: 1px solid #e2eaf1; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(22, 44, 69, .045); }
.receivables-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .38fr) auto; align-items: end; gap: .85rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid #edf1f5; background: #f8fafc; }
.receivables-filters label { display: block; margin-bottom: .4rem; color: #3e536b; font-size: .84rem; font-weight: 800; }
.receivables-input-wrap { position: relative; }
.receivables-input-wrap > i { position: absolute; z-index: 1; inset-inline-start: .85rem; top: 50%; color: #8798aa; transform: translateY(-50%); }
.receivables-input-wrap .form-control { min-height: 44px; padding-inline-start: 2.4rem; border-color: #dce5ed; border-radius: 11px; background: #fff; }
.receivables-sort-field .form-select { min-height: 44px; border-color: #dce5ed; border-radius: 11px; background-color: #fff; }
.receivables-filter-actions { display: flex; gap: .5rem; }
.receivables-filter-actions .btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .4rem; }
.receivables-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.35rem .9rem; }
.receivables-results-heading h2 { margin: .2rem 0 .15rem; color: #1d334d; font-size: 1.05rem; font-weight: 850; }
.receivables-results-heading p { margin: 0; color: #738398; font-size: .82rem; }
.receivables-results-sort { display: inline-flex; align-items: center; gap: .4rem; color: #61758a; font-size: .8rem; }
.receivables-desktop-table { overflow-x: auto; padding: 0 1.25rem 1.2rem; }
.receivables-desktop-table .table { min-width: 890px; }
.receivables-desktop-table thead th { padding: .75rem .8rem; border-bottom: 1px solid #dfe7ee; color: #62758a; background: #f8fafc; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.receivables-desktop-table tbody td { padding: .9rem .8rem; border-color: #edf1f5; color: #30455c; font-size: .88rem; vertical-align: middle; }
.receivables-desktop-table tbody tr:hover > * { background: #f8fbfd; }
.receivables-customer { display: flex; min-width: 150px; align-items: center; gap: .65rem; }
.receivables-customer > span:last-child { display: grid; gap: .16rem; min-width: 0; }
.receivables-customer strong { overflow: hidden; color: #1e334c; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.receivables-customer small { color: #78899b; font-size: .78rem; }
.receivables-avatar { display: inline-flex; flex: 0 0 37px; width: 37px; height: 37px; align-items: center; justify-content: center; border-radius: 12px; color: #28736f; background: #eaf5f3; font-size: 1rem; }
.receivables-amount { color: #183b52; font-size: .9rem; font-weight: 900; white-space: nowrap; }
.receivables-unit { display: block; margin-top: .12rem; color: #8391a1; font-size: .76rem; }
.receivables-invoice-count { color: #314b64; font-weight: 800; white-space: nowrap; }
.receivables-invoice-count small { color: #7a8999; font-size: .76rem; font-weight: 600; }
.receivables-due-status { display: inline-flex; align-items: center; width: fit-content; padding: .27rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.receivables-due-status-overdue { color: #a9323d; background: #fff0f0; }
.receivables-due-status-soon { color: #94600f; background: #fff4dc; }
.receivables-due-status-future { color: #256b67; background: #eaf6f3; }
.receivables-due-status-undated { color: #5e7085; background: #eef2f6; }
.receivables-due-detail { display: block; max-width: 220px; margin-top: .25rem; color: #78899b; font-size: .78rem; line-height: 1.6; }
.receivables-status-breakdown { display: flex; flex-wrap: wrap; gap: .28rem; margin-top: .4rem; }
.receivables-mini-status { display: inline-flex; align-items: center; padding: .18rem .38rem; border: 1px solid transparent; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.receivables-mini-status-overdue { border-color: #f2d5d7; color: #a9323d; background: #fff8f8; }
.receivables-mini-status-soon { border-color: #f0dfb8; color: #8b5d14; background: #fffaf0; }
.receivables-mini-status-future { border-color: #d5e9e5; color: #256b67; background: #f6fbfa; }
.receivables-mini-status-undated { border-color: #dfe5eb; color: #5e7085; background: #f8fafb; }
.receivables-paid { color: #28756b; font-size: .8rem; font-weight: 850; white-space: nowrap; }
.receivables-actions { display: flex; gap: .35rem; white-space: nowrap; }
.receivables-actions .btn { border-radius: 9px; }
.receivables-mobile-list { display: none; }
.receivables-empty-state { display: grid; justify-items: center; padding: 3.2rem 1rem; text-align: center; }
.receivables-empty-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin-bottom: .9rem; border-radius: 18px; color: #28756b; background: #eaf6f2; font-size: 1.7rem; }
.receivables-empty-state h3 { margin: 0 0 .35rem; color: #233a52; font-size: 1rem; font-weight: 850; }
.receivables-empty-state p { max-width: 420px; margin: 0 0 1rem; color: #708196; font-size: .82rem; line-height: 1.9; }
.receivables-customer-card { padding: 1rem; border: 1px solid #e3eaf0; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(22, 44, 69, .035); }
.receivables-card-heading { display: flex; align-items: center; gap: .65rem; }
.receivables-card-customer { display: grid; flex: 1; min-width: 0; gap: .16rem; }
.receivables-card-customer strong { overflow: hidden; color: #20364f; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.receivables-card-customer small { color: #78899b; font-size: .8rem; }
.receivables-card-balance { display: flex; align-items: baseline; gap: .35rem; margin-top: .95rem; padding: .75rem .85rem; border-radius: 12px; background: #f5f9fb; }
.receivables-card-balance > span { margin-inline-end: auto; color: #5c7186; font-size: .82rem; }
.receivables-card-balance > strong { color: #183b52; font-size: 1.18rem; font-weight: 900; }
.receivables-card-balance > small { color: #8291a1; font-size: .76rem; }
.receivables-card-priority { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem .6rem; margin-top: .7rem; padding: .7rem .8rem; border: 1px solid #edf1f4; border-radius: 12px; }
.receivables-card-priority > span { color: #576c82; font-size: .8rem; font-weight: 750; }
.receivables-card-priority > span i { margin-inline-end: .25rem; }
.receivables-card-priority > strong { color: #314b64; font-size: .84rem; white-space: nowrap; }
.receivables-card-priority > strong small { color: #8795a3; font-size: .75rem; font-weight: 600; }
.receivables-card-priority-overdue > strong { color: #a9323d; }
.receivables-card-priority-soon > strong { color: #94600f; }
.receivables-card-priority > small { grid-column: 1 / -1; color: #7a8a9a; font-size: .76rem; }
.receivables-card-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .75rem; }
.receivables-card-details > div { display: grid; gap: .18rem; padding: .6rem .7rem; border-radius: 11px; background: #f7f9fb; }
.receivables-card-details span { color: #75869a; font-size: .76rem; }
.receivables-card-details strong { color: #30475f; font-size: .84rem; }
.receivables-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.receivables-card-actions .btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: .35rem; white-space: nowrap; }
@media (max-width: 1199.98px) {
  .receivables-hero { grid-template-columns: minmax(0, 1fr) minmax(190px, 250px); }
  .receivables-hero-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .receivables-hero-total { border-inline-start: 0; border-inline-end: 1px solid #e2e9ef; }
}
@media (max-width: 991.98px) {
  .receivables-due-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receivables-desktop-table { display: none; }
  .receivables-mobile-list { display: grid; gap: .7rem; padding: 0 1rem 1rem; }
  .receivables-filters { grid-template-columns: minmax(0, 1fr) minmax(170px, .6fr) auto; }
}
@media (max-width: 767.98px) {
  .receivables-page { gap: .9rem; }
  .receivables-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; border-radius: 18px; }
  .receivables-hero-copy h1 { font-size: 1.35rem; }
  .receivables-hero-copy > p { font-size: .88rem; }
  .receivables-hero-total { grid-template-columns: 1fr auto; align-items: baseline; gap: .15rem .5rem; padding: .8rem 0 0; border-top: 1px solid #e2e9ef; border-inline: 0; }
  .receivables-hero-total > span { grid-column: 1 / -1; }
  .receivables-hero-total > strong { font-size: 1.55rem; }
  .receivables-hero-actions { grid-column: auto; }
  .receivables-hero-actions .btn { flex: 1; }
  .receivables-due-summary { gap: .55rem; }
  .receivables-due-card { align-items: flex-start; gap: .55rem; padding: .75rem .65rem; border-radius: 14px; }
  .receivables-due-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
  .receivables-due-copy > span { font-size: .78rem; }
  .receivables-due-copy > strong { font-size: .96rem; }
  .receivables-due-copy > strong small { font-size: .72rem; }
  .receivables-due-copy > small { font-size: .75rem; }
  .receivables-due-arrow { display: none; }
  .receivables-workspace { border-radius: 17px; }
  .receivables-filters { grid-template-columns: 1fr; gap: .7rem; padding: .9rem; }
  .receivables-filter-actions .btn:first-child { flex: 1; }
  .receivables-results-heading { align-items: flex-start; padding: 1rem .95rem .75rem; }
  .receivables-results-heading h2 { font-size: .95rem; }
  .receivables-results-sort { margin-top: .2rem; font-size: .78rem; }
  .receivables-mobile-list { padding: 0 .75rem .75rem; }
  .receivables-card-priority { padding: .6rem .7rem; }
  .receivables-card-details { gap: .45rem; margin-top: .6rem; }
  .receivables-card-details > div { padding: .5rem .6rem; }
}
@media (max-width: 399.98px) {
  .receivables-due-summary { grid-template-columns: 1fr; }
  .receivables-due-card { align-items: center; }
  .receivables-due-arrow { display: inline; }
  .receivables-card-heading { gap: .45rem; }
  .receivables-card-heading .receivables-due-status { max-width: 100px; white-space: normal; text-align: center; }
  .receivables-card-balance > strong { font-size: 1.02rem; }
}
.inventory-report-table th, .inventory-report-table td { text-align: center; vertical-align: middle; }
.inventory-report-table thead th { font-size: .84rem; }
.inventory-report-table tbody td { font-size: .9rem; }
.inventory-product-column { text-align: right !important; }
.report-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink); }
.report-card-total { color: var(--muted); font-size: .85rem; font-weight: 600; }
.report-card-total-accent { color: var(--primary); }
.report-bars { display: grid; gap: .75rem; }
.report-bar-row .progress { height: .55rem; background: var(--bs-tertiary-bg); }
.app-content .empty-state { margin-top: 1rem; }
.dashboard-section-label { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 .7rem; color: var(--ink); font-size: .92rem; font-weight: 900; }
.dashboard-section-label::before { content: ''; width: 4px; height: 1.2rem; border-radius: 99px; background: var(--primary); }
.dashboard-chart-card { padding-bottom: 1.35rem; }
.dashboard-chart-card canvas { max-height: 310px; }
.dashboard-trend-grid > div > .dashboard-card,
.dashboard-summary-grid > div > .dashboard-card,
.dashboard-performance-grid > div > .dashboard-card { height: 100%; }
.dashboard-trend-card { display: flex; flex-direction: column; justify-content: center; min-height: 112px; }
.dashboard-trend-card .section-heading { margin-bottom: .65rem; }
.dashboard-trend-card strong { display: block; font-size: 1.25rem; line-height: 1.7; }
.dashboard-recommendations-card .border { border-color: var(--border) !important; background: var(--surface-muted); }
.dashboard-recommendations-card .border strong { line-height: 1.8; }
.dashboard-sellers-card .table-responsive { max-height: 440px; }
.dashboard-sellers-card .table thead th { position: sticky; top: 0; z-index: 1; }
.dashboard-actions-card .quick-action { min-height: 62px; padding: .65rem; font-size: .78rem; }
.dashboard-actions-card .quick-action i { width: 32px; height: 32px; font-size: 1rem; }
.dashboard-insight-card { padding: .85rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); }
@media (max-width: 767.98px) {
  .admin-page-heading { align-items: stretch; flex-direction: column; }
  .admin-page-heading .page-actions .btn { flex: 1; }
  .dashboard-chart-card canvas { max-height: 240px; }
  .dashboard-sellers-card .table-responsive { max-height: none; }
  .seller-sms-footer { flex-direction: column-reverse; align-items: stretch; }
  .seller-sms-footer .btn { width: 100%; }
  .seller-trend-row { grid-template-columns: 76px minmax(0, 1fr) 28px; gap: .45rem; }
  .seller-trend-label { font-size: .7rem; }
}
.dashboard-card, .mini-card, .feature-card, .stats-box { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.mini-card { padding: 1.15rem; }
.mini-card:hover { transform: none; box-shadow: 0 12px 30px rgba(37, 99, 235, .1); }
.stat-icon { color: var(--primary); opacity: 1; }
.stat-value { color: var(--ink); }
.stat-label { color: var(--muted); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2, .section-heading h3, .section-heading h4, .section-heading h5, .section-heading h6 { margin: 0; font-weight: 800; }
.section-heading i { color: var(--primary); }
.quick-action { display: flex; align-items: center; gap: .75rem; min-height: 76px; padding: .85rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); color: var(--ink); text-decoration: none; transition: .2s ease; }
.quick-action:hover { border-color: var(--primary-border); background: var(--primary-soft); color: var(--primary-dark); transform: translateY(-2px); }
.quick-action i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #dbeafe; color: var(--primary); font-size: 1.15rem; }
.status-card { overflow: hidden; position: relative; }
.status-card .status-accent { position: absolute; inset: 0 0 0 auto; width: 4px; background: var(--primary); }
.status-card.status-success .status-accent { background: #16a34a; }
.status-card.status-warning .status-accent { background: #f59e0b; }
.progress { height: 7px; border-radius: 99px; background: #e2e8f0; }
.progress-bar { border-radius: 99px; background: var(--primary); }
.table { --bs-table-bg: transparent; --bs-table-striped-bg: #f8fafc; --bs-table-hover-bg: #f1f5f9; color: var(--ink); font-size: .88rem; vertical-align: middle; }
.table > :not(caption) > * > * { padding: .8rem .75rem; border-bottom-color: #e5e7eb; }
.table thead th { color: #374151; background: #f3f4f6; font-size: .78rem; font-weight: 800; white-space: nowrap; border-bottom: 1px solid #d1d5db; }
.app-content .table thead th { background: #eef2f7; }
.app-content .invoice-list-page .invoice-table-card .table thead th { background: transparent; }
.table tbody tr { transition: background-color .18s ease; }
.table tbody tr:hover { background: #eff6ff; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td .btn, .table th .btn { white-space: nowrap; }
.table .text-muted { color: #6b7280 !important; }
.table-responsive { overflow-x: auto; border-radius: 6px; }
.invoice-table-card > .table-responsive, .card > .table-responsive { border-radius: 0 0 6px 6px; }
.invoice-table-card .table, .card .table { margin-bottom: 0; }
.empty-state { padding: 2rem 1rem; border: 1px dashed var(--border); border-radius: 14px; text-align: center; color: var(--muted); background: var(--surface-muted); }
.app-header { position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 12px rgba(15, 23, 42, .06); }
.app-header-inner { min-height: 64px; padding-inline: 1.25rem; }
.app-header .navbar-brand { color: var(--primary) !important; }
.seller-utility-bar { position: relative; z-index: 1040; width: 100%; margin-bottom: .9rem; padding: 1rem 1.25rem 0; }
.seller-utility-inner { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; direction: rtl; }
.account-status-indicator { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; margin-inline-end: 0; padding: .35rem .65rem .35rem .75rem; border: 1px solid #dbe5f2; border-radius: 14px; color: #334155; background: #fff; box-shadow: 0 5px 16px rgba(15, 23, 42, .05); direction: rtl; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.account-status-indicator:hover, .account-status-indicator:focus-visible { color: #1e293b; border-color: #bfdbfe; background: #fbfdff; box-shadow: 0 8px 22px rgba(37, 99, 235, .1); }
.account-status-indicator-icon { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; font-size: .9rem; }
.account-status-indicator-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.account-status-indicator-copy strong { color: #334155; font-size: .74rem; font-weight: 900; white-space: nowrap; }
.account-status-indicator-copy small { margin-top: .1rem; color: #64748b; font-size: .62rem; white-space: nowrap; }
.account-status-indicator-arrow { margin-inline-start: .15rem; color: #94a3b8; font-size: .68rem; }
.account-status-active .account-status-indicator-icon, .account-status-full .account-status-indicator-icon { color: #15803d; background: #eaf7ef; }
.account-status-active .account-status-indicator-copy strong, .account-status-full .account-status-indicator-copy strong { color: #166534; }
.account-status-trial .account-status-indicator-icon { color: #a16207; background: #fff6df; }
.account-status-trial .account-status-indicator-copy strong { color: #916d24; }
.account-status-attention .account-status-indicator-icon { color: #a16207; background: #fff6df; }
.account-status-attention .account-status-indicator-copy strong { color: #916d24; }
.account-status-expired .account-status-indicator-icon { color: #a34d48; background: #fff1ef; }
.account-status-expired .account-status-indicator-copy strong { color: #9f403b; }
.seller-sidebar .sidebar-head { display: block; min-width: 0; padding-bottom: .9rem; }
.seller-sidebar .sidebar-brand { margin-bottom: .85rem; }
.seller-sidebar .sidebar-head { display: flex; justify-content: center; }
.seller-sidebar .sidebar-brand { flex-direction: column; gap: .5rem; text-align: center; }
.seller-sidebar .sidebar-brand-mark { width: 50px; height: 50px; border: 1px solid rgba(191, 219, 254, .42); border-radius: 16px; color: #fff; background: #2563a8; box-shadow: 0 8px 18px rgba(37, 99, 168, .28); transition: transform .28s ease, box-shadow .28s ease, border-radius .28s ease, background-color .28s ease; }
.seller-sidebar .sidebar-brand-mark i { font-size: 1.35rem; transition: transform .28s ease; }
.seller-sidebar .sidebar-brand:hover .sidebar-brand-mark, .seller-sidebar .sidebar-brand:focus-visible .sidebar-brand-mark { transform: translateY(-3px) rotate(-4deg) scale(1.04); border-radius: 19px 13px 19px 13px; background: #347fbd; box-shadow: 0 12px 24px rgba(37, 99, 168, .38); }
.seller-sidebar .sidebar-brand:hover .sidebar-brand-mark i, .seller-sidebar .sidebar-brand:focus-visible .sidebar-brand-mark i { transform: rotate(7deg) scale(1.08); }
.seller-sidebar .sidebar-brand > span:last-child strong { color: #f8fbff; font-size: 1rem; letter-spacing: .02em; text-shadow: 0 2px 10px rgba(2, 12, 27, .24); transition: color .28s ease, letter-spacing .28s ease; }
.seller-sidebar .sidebar-brand:hover > span:last-child strong, .seller-sidebar .sidebar-brand:focus-visible > span:last-child strong { color: #dbeafe; letter-spacing: .06em; }
.seller-sidebar .sidebar-logo-options { display: flex; flex-direction: column; align-items: center; gap: .55rem; width: 100%; }
.seller-sidebar .sidebar-logo-option { display: flex; align-items: center; justify-content: center; gap: .55rem; width: min(100%, 190px); min-height: 52px; padding: .45rem .8rem; border: 0; border-radius: 13px; color: #f1e5c4; background: transparent; text-decoration: none; direction: rtl; perspective: 500px; transition: transform .25s ease, color .25s ease; }
.seller-sidebar .sidebar-logo-option strong { font-size: 1rem; font-weight: 900; letter-spacing: .02em; text-shadow: 0 2px 9px rgba(2, 12, 27, .28); transition: transform .32s ease, letter-spacing .32s ease, color .32s ease; }
.seller-sidebar .sidebar-logo-symbol { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(214, 181, 111, .45); border-radius: 12px; color: #ffe9a8; background: transparent; font-size: .95rem; transition: transform .32s ease, border-radius .32s ease, box-shadow .32s ease; }
.seller-sidebar .sidebar-logo-option:hover, .seller-sidebar .sidebar-logo-option:focus-visible { transform: translateY(-2px); outline: none; }
.seller-sidebar .sidebar-logo-option:hover strong, .seller-sidebar .sidebar-logo-option:focus-visible strong { transform: translateY(-2px) scale(1.12); letter-spacing: .07em; color: #fff1bf; }
.seller-sidebar .sidebar-logo-option:hover .sidebar-logo-symbol, .seller-sidebar .sidebar-logo-option:focus-visible .sidebar-logo-symbol { transform: translateY(-3px) scale(1.16) rotate(-8deg); border-radius: 15px 9px 15px 9px; box-shadow: 0 8px 18px rgba(143, 107, 50, .28); }
.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol::after { content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #ffe8a3; box-shadow: 0 0 7px 2px rgba(255, 220, 117, .7); transform-origin: 0 0; animation: sidebar-logo-laser-orbit 4.2s linear infinite; }
@keyframes sidebar-logo-laser-orbit { from { transform: rotate(0deg) translateX(18px); } to { transform: rotate(360deg) translateX(18px); } }
.seller-sidebar .sidebar-logo-minimal { color: #e0f2fe; border-color: rgba(125, 211, 252, .25); background: rgba(37, 99, 168, .28); }
.seller-sidebar .sidebar-logo-minimal .sidebar-logo-symbol { color: #fff; background: #347fbd; box-shadow: 0 5px 12px rgba(37, 99, 168, .28); }
.seller-sidebar .sidebar-logo-playful { color: #fef3c7; border-color: rgba(250, 204, 21, .28); background: rgba(180, 130, 20, .15); }
.seller-sidebar .sidebar-logo-playful .sidebar-logo-symbol { color: #fff7cc; background: #c99a3d; box-shadow: 0 5px 12px rgba(201, 154, 61, .25); }
.seller-sidebar .sidebar-logo-luxury { color: #f1e5c4; border: 0; background: transparent; }
.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol { color: #ffe9a8; background: transparent; box-shadow: none; }
.sidebar-account-status { display: flex; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; gap: .65rem; min-width: 0; padding: .7rem .7rem; border: 1px solid rgba(191, 219, 254, .18); border-radius: 13px; color: #dbeafe; background: rgba(255, 255, 255, .055); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); direction: rtl; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.sidebar-account-status:hover, .sidebar-account-status:focus-visible { color: #fff; border-color: rgba(191, 219, 254, .5); background: rgba(255, 255, 255, .105); box-shadow: 0 6px 16px rgba(2, 12, 27, .18); transform: translateY(-1px); }
.sidebar-account-status:focus-visible { outline: 3px solid rgba(147, 197, 253, .32); outline-offset: 2px; }
.sidebar-account-status-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; color: #bfdbfe; background: rgba(147, 197, 253, .16); font-size: .9rem; }
.sidebar-account-status-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; line-height: 1.4; }
.sidebar-account-status-copy strong { overflow: hidden; color: #f8fafc; font-size: .72rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-status-copy small { margin-top: .12rem; overflow: hidden; color: #b7c9db; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-status-arrow { color: #a6b8c9; font-size: .65rem; }
.sidebar-account-status.account-status-active .sidebar-account-status-icon, .sidebar-account-status.account-status-full .sidebar-account-status-icon { color: #bbf7d0; background: rgba(34, 197, 94, .18); }
.sidebar-account-status.account-status-trial .sidebar-account-status-icon, .sidebar-account-status.account-status-attention .sidebar-account-status-icon { color: #fde68a; background: rgba(245, 158, 11, .18); }
.sidebar-account-status.account-status-expired .sidebar-account-status-icon { color: #fecaca; background: rgba(220, 101, 93, .18); }
.seller-sidebar .sidebar-account-status.account-status-active,
.seller-sidebar .sidebar-account-status.account-status-full { border-color: rgba(74, 222, 128, .28); background: rgba(34, 197, 94, .1); }
.seller-sidebar .sidebar-account-status.account-status-active .sidebar-account-status-copy strong,
.seller-sidebar .sidebar-account-status.account-status-full .sidebar-account-status-copy strong { color: #a7f3c0; }
.seller-sidebar .sidebar-account-status.account-status-active .sidebar-account-status-copy small,
.seller-sidebar .sidebar-account-status.account-status-full .sidebar-account-status-copy small { color: #b8e8c8; }
.seller-sidebar .sidebar-account-status.account-status-active .sidebar-account-days strong,
.seller-sidebar .sidebar-account-status.account-status-full .sidebar-account-days strong { color: #86efac; }
.seller-sidebar .sidebar-account-status.account-status-trial { border-color: rgba(250, 204, 21, .3); background: rgba(245, 158, 11, .12); }
.seller-sidebar .sidebar-account-status.account-status-trial .sidebar-account-status-copy strong { color: #fde68a; }
.seller-sidebar .sidebar-account-status.account-status-trial .sidebar-account-status-copy small { color: #f3d58a; }
.seller-sidebar .sidebar-account-status.account-status-trial .sidebar-account-days strong { color: #facc15; }
.seller-sidebar .sidebar-account-status.account-status-attention { border-color: rgba(251, 146, 60, .3); background: rgba(249, 115, 22, .12); }
.seller-sidebar .sidebar-account-status.account-status-attention .sidebar-account-status-copy strong { color: #fed7aa; }
.seller-sidebar .sidebar-account-status.account-status-attention .sidebar-account-status-copy small { color: #f7c69c; }
.seller-sidebar .sidebar-account-status.account-status-attention .sidebar-account-days strong { color: #fdba74; }
.seller-sidebar .sidebar-account-status.account-status-expired { border-color: rgba(248, 113, 113, .3); background: rgba(220, 38, 38, .12); }
.seller-sidebar .sidebar-account-status.account-status-expired .sidebar-account-status-copy strong { color: #fecaca; }
.seller-sidebar .sidebar-account-status.account-status-expired .sidebar-account-status-copy small { color: #f4b5b5; }
.seller-sidebar .sidebar-account-status.account-status-expired .sidebar-account-days strong { color: #fca5a5; }
.sidebar-account-panel { display: flex; flex-direction: column; gap: .7rem; padding: .8rem; border: 1px solid rgba(191, 219, 254, .18); border-radius: 16px; background: #111827; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); direction: rtl; }
.sidebar-account-identity { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.sidebar-account-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid rgba(147, 197, 253, .35); border-radius: 12px; color: #bfdbfe; background: rgba(37, 99, 235, .2); font-size: 1.15rem; }
.sidebar-account-identity-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.35; }
.sidebar-account-identity-copy > span { margin-bottom: .12rem; color: #94a3b8; font-size: .58rem; font-weight: 700; }
.sidebar-account-identity-copy strong { overflow: hidden; color: #f8fafc; font-size: .75rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-identity-copy small { display: flex; align-items: center; gap: .25rem; max-width: 165px; margin-top: .15rem; overflow: hidden; color: #b7c9db; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-identity-copy small i { color: #93c5fd; font-size: .7rem; }
.sidebar-account-panel .sidebar-account-status { padding: .55rem .45rem; border-color: rgba(191, 219, 254, .14); background: rgba(255, 255, 255, .045); }
.sidebar-account-panel .sidebar-account-status-copy small { margin-top: 0; color: #94a3b8; font-size: .56rem; }
.sidebar-account-panel .sidebar-account-status-copy strong { font-size: .65rem; }
.sidebar-account-panel .sidebar-account-days { min-width: 54px; padding-inline-start: .4rem; border-inline-start-color: rgba(191, 219, 254, .18); }
.sidebar-account-panel .sidebar-account-days strong { color: #bfdbfe; font-size: .78rem; }
.sidebar-account-panel .sidebar-account-days small { margin-top: .15rem; color: #b7c9db; font-size: .52rem; white-space: nowrap; }
.sidebar-account-panel .sidebar-account-status-arrow { margin-inline-start: 0; }
.seller-utility-actions { display: flex; flex-direction: row; align-items: center; gap: .25rem; }
.seller-notification-link { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; color: #64748b; border-radius: 50%; text-decoration: none; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.seller-notification-link:hover { color: #1d4ed8; background: #eff6ff; transform: translateY(-1px); }
.seller-notification-link:focus-visible { outline: 3px solid rgba(59, 130, 246, .2); outline-offset: 2px; }
.seller-notification-link i { font-size: 1.15rem; }
.seller-notification-badge { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 .2rem; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #dc655d; font-size: .57rem; font-weight: 800; line-height: 1; }
.seller-sidebar-toggle.seller-mobile-sidebar-toggle { display: none; }
.seller-sidebar-toggle,
.seller-user-trigger { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #dbe4f0; border-radius: 14px; color: #475569; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px rgba(15, 23, 42, .08); transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.seller-sidebar-toggle { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; color: #64748b; background: transparent; box-shadow: none; cursor: pointer; }
.seller-sidebar-toggle:hover,
.seller-user-trigger:hover { color: #1d4ed8; border-color: #bfdbfe; background: #fff; box-shadow: 0 10px 28px rgba(37, 99, 235, .12); transform: translateY(-1px); }
.seller-sidebar-toggle:focus-visible,
.seller-user-trigger:focus-visible { outline: 3px solid rgba(59, 130, 246, .2); outline-offset: 2px; }
.seller-sidebar-toggle i { font-size: 1.15rem; }
.seller-sidebar-toggle i, .sidebar-toggle i { transform: scaleX(-1); }
.seller-utility-actions > .seller-sidebar-toggle:hover,
.seller-utility-actions > .seller-sidebar-toggle:focus-visible { border-color: transparent; background: #eff6ff; box-shadow: none; transform: none; }
.seller-desktop-sidebar-toggle { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; margin: 0; padding: 0; border-color: rgba(148, 163, 184, .22); color: #cbd5e1; background: rgba(15, 23, 42, .2); box-shadow: none; cursor: pointer; position: absolute; top: 50%; left: .65rem; z-index: 100; transform: translateY(-50%); isolation: isolate; }
.seller-desktop-sidebar-toggle::before { content: ''; position: absolute; inset: -12px; z-index: -1; }
.seller-desktop-sidebar-toggle:hover { color: #fff; border-color: rgba(147, 197, 253, .45); background: rgba(37, 99, 235, .7); box-shadow: none; transform: translateY(-50%); }
.seller-user-menu-wrap { position: relative; z-index: 1060; }
.seller-user-trigger { gap: .5rem; padding: .2rem .35rem; border: 0 !important; outline: 0; background: transparent; box-shadow: none; text-align: right; cursor: pointer; display: inline-flex; align-items: center; }
.seller-user-trigger:hover,
.seller-user-trigger:focus-visible { border-color: transparent !important; background: transparent; box-shadow: none; transform: none; }
.seller-user-trigger:focus-visible { outline: 0; }

.seller-user-avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; border: 2px solid #bfdbfe; border-radius: 50%; color: #1d4ed8; background: #eff6ff; box-shadow: 0 6px 18px rgba(37, 99, 235, .14); transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.seller-user-avatar i { font-size: 2rem; line-height: 1; }

/* Flat hover / focus state without 3D effects */
.seller-user-trigger:hover .seller-user-avatar,
.seller-user-trigger:focus-visible .seller-user-avatar {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #dbeafe;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .2);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .seller-user-avatar { transition: none; }
}
.seller-user-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 86px; line-height: 1.3; }
.seller-user-copy strong, .seller-user-menu-heading strong { max-width: 150px; overflow: hidden; color: #1e293b; font-size: .75rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.seller-user-copy small, .seller-user-menu-heading small { color: #64748b; font-size: .65rem; }
.seller-user-chevron { margin-inline-start: .15rem; color: #94a3b8; font-size: .72rem; transition: transform .18s ease; }
.seller-user-trigger[aria-expanded="true"] .seller-user-chevron { transform: rotate(180deg); }
.seller-user-menu { position: absolute; top: calc(100% + .7rem); left: 0; z-index: 1070; width: 258px; padding: .5rem; direction: rtl; text-align: right; border: 1px solid #dbe5f2; border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(15, 23, 42, .16), 0 4px 12px rgba(37, 99, 235, .06); }
.seller-user-menu[hidden] { display: none; }
.seller-user-menu-heading { display: flex; align-items: center; min-height: 58px; padding: .65rem .75rem .7rem; direction: rtl; text-align: right; border-radius: 13px; background: linear-gradient(135deg, #eff6ff, #f8fbff); }
.seller-user-menu-heading > span { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: .2rem; }
.seller-user-menu-heading strong { display: block; max-width: 100%; color: #172554; font-size: .8rem; line-height: 1.5; }
.seller-user-menu-heading small { display: block; max-width: 100%; overflow: hidden; color: #526581; font-size: .7rem; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.seller-user-menu-divider { height: 1px; margin: .45rem .35rem; background: #e8eef6; }
.seller-user-menu a, .seller-user-menu form button { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; width: 100%; min-height: 42px; padding: .55rem .7rem; border: 0; border-radius: 11px; color: #334155; background: transparent; font: inherit; font-size: .78rem; font-weight: 600; text-align: right; text-decoration: none; direction: rtl; cursor: pointer; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.seller-user-menu a:hover, .seller-user-menu form button:hover { color: #1d4ed8; background: #eff6ff; transform: none; }
.seller-user-menu i { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; color: #2563eb; background: #e8f0ff; font-size: .95rem; text-align: center; }
.seller-user-menu a:hover i { color: #fff; background: #2563eb; }
.seller-user-menu form button:hover i { color: #fff; background: #dc655d; }
.seller-user-menu form button { color: #b42318; }
.seller-user-menu form button i { color: #dc655d; background: #fff1f0; }
.seller-user-menu-heading { gap: .65rem; background: #eff6ff; }
.seller-user-menu-heading > span:not(.seller-user-menu-avatar) { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: .12rem; }
.seller-user-menu-heading .seller-user-menu-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #bfdbfe; border-radius: 11px; color: #2563eb; background: #dbeafe; font-size: 1.05rem; }
.seller-user-menu-heading .seller-user-menu-label { color: #64748b; font-size: .58rem; font-weight: 700; }
.seller-user-menu-heading > span:not(.seller-user-menu-avatar) > small:last-child { display: flex; align-items: center; gap: .25rem; color: #526581; }
.seller-user-menu-heading > span:not(.seller-user-menu-avatar) > small:last-child i { color: #2563eb; font-size: .7rem; }
.seller-menu-account-summary { display: flex; align-items: center; gap: .55rem; min-height: 52px; margin: .55rem .15rem; padding: .5rem .55rem; border: 1px solid #e5eaf1; border-radius: 13px; background: #f8fafc; direction: rtl; }
.seller-menu-account-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; color: #64748b; background: #e2e8f0; font-size: .85rem; }
.seller-menu-account-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: .1rem; line-height: 1.25; }
.seller-menu-account-copy small { color: #94a3b8; font-size: .57rem; }
.seller-menu-account-copy strong { overflow: hidden; color: #334155; font-size: .67rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.seller-menu-account-days { display: flex; align-items: center; flex-direction: column; min-width: 58px; padding-inline-start: .45rem; border-inline-start: 1px solid #e2e8f0; line-height: 1.15; }
.seller-menu-account-days strong { color: #2563eb; font-size: .82rem; font-weight: 900; }
.seller-menu-account-days small { margin-top: .15rem; color: #64748b; font-size: .52rem; white-space: nowrap; }
.seller-menu-account-summary.account-status-active .seller-menu-account-icon, .seller-menu-account-summary.account-status-full .seller-menu-account-icon { color: #15803d; background: #eaf7ef; }
.seller-menu-account-summary.account-status-active .seller-menu-account-copy strong, .seller-menu-account-summary.account-status-full .seller-menu-account-copy strong { color: #166534; }
.seller-menu-account-summary.account-status-trial .seller-menu-account-icon, .seller-menu-account-summary.account-status-attention .seller-menu-account-icon { color: #a16207; background: #fff6df; }
.seller-menu-account-summary.account-status-trial .seller-menu-account-copy strong, .seller-menu-account-summary.account-status-attention .seller-menu-account-copy strong { color: #916d24; }
.seller-menu-account-summary.account-status-expired .seller-menu-account-icon { color: #a34d48; background: #fff1ef; }
.seller-menu-account-summary.account-status-expired .seller-menu-account-copy strong { color: #9f403b; }
.seller-account-panel { display: flex; align-items: stretch; gap: .85rem; min-width: min(610px, 70vw); padding: .55rem .65rem; border: 1px solid #dbe5f2; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .07); direction: rtl; }
.seller-account-identity { display: flex; align-items: center; gap: .65rem; min-width: 210px; padding-inline: .25rem; }
.seller-account-identity .seller-user-avatar { width: 46px; height: 46px; flex-basis: 46px; border-width: 1px; box-shadow: none; }
.seller-account-identity .seller-user-avatar i { font-size: 1.45rem; }
.seller-account-identity-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.3; }
.seller-account-overline { margin-bottom: .1rem; color: #94a3b8; font-size: .62rem; font-weight: 700; }
.seller-account-identity-copy strong { overflow: hidden; color: #172554; font-size: .78rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.seller-account-identity-copy small { display: flex; align-items: center; gap: .25rem; max-width: 190px; margin-top: .18rem; overflow: hidden; color: #64748b; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.seller-account-identity-copy small i { color: #2563eb; font-size: .72rem; }
.seller-account-status { display: flex; align-items: center; flex: 1 1 auto; gap: .55rem; min-width: 190px; padding: .3rem .55rem; border: 1px solid #e5eaf1; border-radius: 13px; background: #f8fafc; }
.seller-account-status-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; color: #64748b; background: #e2e8f0; font-size: .9rem; }
.seller-account-status-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: .1rem; line-height: 1.25; }
.seller-account-status-copy small { color: #94a3b8; font-size: .6rem; }
.seller-account-status-copy strong { overflow: hidden; color: #334155; font-size: .7rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.seller-account-days { display: flex; align-items: center; flex-direction: column; min-width: 62px; padding-inline-start: .55rem; border-inline-start: 1px solid #e2e8f0; line-height: 1.15; }
.seller-account-days strong { color: #2563eb; font-size: .9rem; font-weight: 900; }
.seller-account-days small { margin-top: .2rem; color: #64748b; font-size: .58rem; white-space: nowrap; }
.seller-account-status.account-status-active .seller-account-status-icon, .seller-account-status.account-status-full .seller-account-status-icon { color: #15803d; background: #eaf7ef; }
.seller-account-status.account-status-active .seller-account-status-copy strong, .seller-account-status.account-status-full .seller-account-status-copy strong { color: #166534; }
.seller-account-status.account-status-trial .seller-account-status-icon, .seller-account-status.account-status-attention .seller-account-status-icon { color: #a16207; background: #fff6df; }
.seller-account-status.account-status-trial .seller-account-status-copy strong, .seller-account-status.account-status-attention .seller-account-status-copy strong { color: #916d24; }
.seller-account-status.account-status-expired .seller-account-status-icon { color: #a34d48; background: #fff1ef; }
.seller-account-status.account-status-expired .seller-account-status-copy strong { color: #9f403b; }
.seller-account-more { width: 72px; min-height: 42px; flex-direction: column; gap: .05rem; padding: .35rem .4rem; border: 1px solid #dbe5f2 !important; border-radius: 13px; color: #64748b; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .04); font-size: .61rem; }
.seller-account-more:hover, .seller-account-more:focus-visible { color: #1d4ed8; border-color: #bfdbfe !important; background: #f8fbff; box-shadow: 0 6px 16px rgba(37, 99, 235, .1); }
.seller-account-more i { font-size: 1rem; }
.public-account-panel { min-width: min(560px, 54vw); }
.admin-mobile-more-menu { position: fixed; right: .75rem; bottom: 5.25rem; z-index: 1080; display: grid; width: min(260px, calc(100vw - 1.5rem)); padding: .5rem; border: 1px solid #dbe5f2; border-radius: 14px; background: #fff; box-shadow: 0 14px 32px rgba(15, 23, 42, .16); }
.admin-mobile-more-menu[hidden] { display: none; }
.admin-mobile-more-menu a { display: flex; align-items: center; gap: .65rem; min-height: 42px; padding: .55rem .7rem; border-radius: 10px; color: #334155; text-decoration: none; font-size: .78rem; font-weight: 700; }
.admin-mobile-more-menu a:hover { color: #1d4ed8; background: #eff6ff; }
.admin-mobile-more-menu i { width: 26px; color: #2563eb; text-align: center; }
.header-brand-group { display: flex; align-items: center; gap: 1.25rem; min-width: max-content; }
.public-account-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.public-account-actions .btn { white-space: nowrap; }
.main-header { position: sticky; top: 0; z-index: 1030; }
.app-sidebar { position: fixed; top: 64px; right: 0; bottom: 0; z-index: 1020; display: flex; flex-direction: column; width: 260px; padding: 1rem .75rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; direction: ltr; background: #1f2937; border-left: 1px solid #374151; box-shadow: -8px 0 24px rgba(15, 23, 42, .14); transition: width .2s ease, transform .2s ease; }
.seller-sidebar { top: 0; }
.content-wrapper.app-content { direction: rtl; }
.app-sidebar > * { direction: rtl; }
.sidebar-link { direction: rtl; }
.sidebar-head { display: flex; align-items: center; gap: .75rem; margin: 0 .25rem 1rem; padding: .75rem .65rem 1.15rem; border-bottom: 1px solid #374151; }
.sidebar-brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.sidebar-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; color: #fff; background: #2563eb; box-shadow: 0 7px 16px rgba(37, 99, 235, .2); }
.sidebar-brand-mark i { font-size: 1.2rem; }
.sidebar-head strong, .sidebar-head small, .sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-head strong { color: #fff; font-size: .95rem; font-weight: 900; }
.sidebar-head small { margin-top: .15rem; color: #9ca3af; font-size: .72rem; }
.sidebar-user { display: flex; align-items: center; gap: .65rem; margin: 0 .25rem 1rem; padding: .7rem; border: 1px solid #374151; border-radius: 10px; background: #111827; }
.sidebar-user-menu { margin-right: auto; color: #94a3b8; }
.sidebar-user-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #2563eb; background: #dbeafe; }
.sidebar-user-avatar.admin { color: #7c3aed; background: #ede9fe; }
.sidebar-user strong { color: #f3f4f6; font-size: .78rem; font-weight: 800; }
.sidebar-user small { margin-top: .15rem; color: #9ca3af; font-size: .68rem; }
.sidebar-menu { display: flex; flex-direction: column; gap: .18rem; }
.seller-sidebar .sidebar-head:empty,
.seller-sidebar .sidebar-head:not(:has(*)) { display: none; margin: 0; padding: 0; border: 0; }
.seller-sidebar .sidebar-menu > .sidebar-link:first-child { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: flex-start; margin-bottom: .35rem; cursor: pointer; }
.sidebar-section-label { margin: .85rem .75rem .3rem; color: #9ca3af; font-size: .66rem; font-weight: 800; }
.sidebar-section-label:first-child { margin-top: 0; }
.sidebar-section-label { letter-spacing: .01em; border-top: 1px solid rgba(156, 163, 175, .14); padding-top: .8rem; }
.sidebar-section-label:first-child { border-top: 0; padding-top: 0; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .65rem .8rem; border-radius: 6px; color: #d1d5db; text-decoration: none; font-size: .84rem; font-weight: 600; transition: .18s ease; }
.sidebar-link i { width: 20px; color: #9ca3af; font-size: 1.05rem; text-align: center; }
.sidebar-link:hover { color: #fff; background: #374151; }
.sidebar-link:hover i, .sidebar-link.active i { color: #fff; }
.sidebar-link.active { color: #fff; background: var(--primary); font-weight: 800; }
.sidebar-link.active { position: relative; }
.sidebar-logout { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(156, 163, 175, .2); }
.sidebar-logout button { width: 100%; border: 0; background: transparent; text-align: right; font-family: inherit; cursor: pointer; }
.form-card { padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.form-card + .form-card { margin-top: 1rem; }
.customer-form, .invoice-form, .support-form, .product-form { padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.product-form .row, .support-form .row { row-gap: 1rem; }
.customer-form h1, .product-form h1, .support-form h1 { font-weight: 900; }
.customer-form > .mb-3, .product-form > .mb-3, .support-form > .mb-3 { padding: .9rem; border: 1px solid #eef2f7; border-radius: 12px; background: var(--surface-muted); }
.customer-form .btn-primary, .product-form .btn-primary, .support-form .btn-primary { min-width: 140px; }
.form-section-title { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid #eef2f7; }
.form-section-title i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.form-section-title h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.form-section-title p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.pagination-panel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.pagination-panel .page-link { color: var(--primary); border-color: var(--border); }
.pagination-panel .page-link.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.pagination-panel .page-link.disabled { pointer-events: none; opacity: .45; }
.profit-loss-report dl dt, .profit-loss-report dl dd { padding-bottom: .65rem; }
.forecast-guide dl { line-height: 1.9; }
.forecast-guide dt { color: var(--ink); font-weight: 800; }
.forecast-guide dd { color: #475569; }
.invoice-items-table thead th { text-align: center; }
.table-responsive { border-radius: 12px; }
.form-card > .row, .invoice-table-header { row-gap: .75rem; }
.seo-page { max-width: 1000px; margin: 0 auto; }
.seo-hero { padding: 2.25rem; border-radius: 22px; background: linear-gradient(135deg, #eff6ff, #fff8e8); border: 1px solid var(--primary-border); }
.seo-hero h1 { font-weight: 900; line-height: 1.55; }
.seo-content-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-card); }
.seo-content-card h2 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 800; }
.seo-content-card h2:first-child { margin-top: 0; }
.seo-content-card p, .seo-content-card li { color: #475569; line-height: 2; }
.seo-visual { min-height: 230px; display: grid; place-items: center; border-radius: 18px; color: #1e3a8a; background: linear-gradient(145deg, #dbeafe, #fef3c7); font-size: 5rem; }
.seo-link-card { display: block; height: 100%; padding: 1.1rem; border: 1px solid var(--border); border-radius: 15px; color: var(--ink); background: #fff; text-decoration: none; transition: .2s ease; }
.seo-link-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.seo-link-card i { color: var(--primary); font-size: 1.35rem; }
.faq-item { padding: 1rem 0; border-bottom: 1px solid #eef2f7; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: .98rem; font-weight: 800; }
.payment-list-heading { padding: 1rem; }
.pricing-plan-card { height: 100%; transition: .2s ease; }
.pricing-plan-card:hover { transform: translateY(-4px); border-color: var(--primary-border); box-shadow: 0 15px 32px rgba(37,99,235,.12); }
.pricing-note { max-width: 820px; margin-inline: auto; padding: 1rem 1.2rem; border: 1px solid #bfdbfe; border-radius: 15px; color: #334155; background: #eff6ff; line-height: 1.9; }
.pricing-note strong { display: block; margin-bottom: .3rem; color: #1e3a8a; font-size: .95rem; }
.pricing-note p { font-size: .86rem; }
.support-list .support-ticket-card, .support-detail-page .support-detail-summary, .support-detail-page > .card { border-radius: 16px; }
.support-list .support-ticket-card { display: block; padding: 1rem 1.1rem; border: 1px solid var(--border); border-right: 4px solid #94a3b8; background: #fff; box-shadow: var(--shadow-card); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.support-list .support-ticket-card:hover { border-color: var(--primary-border); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.support-list .support-status-open { border-right-color: #f59e0b; }
.support-list .support-status-waiting { border-right-color: #2563eb; }
.support-list .support-status-resolved { border-right-color: #16a34a; }
.support-list .support-status-closed { border-right-color: #94a3b8; }
.support-overdue-label { display: block; color: #b91c1c; font-size: .78rem; font-weight: 700; }
.support-near-due-label { display: block; color: #a16207; font-size: .78rem; font-weight: 700; }
.support-detail-page { --support-ink: #203653; --support-muted: #687b94; --support-line: #dce5f0; color: var(--support-ink); }
.support-detail-page > .card:not(.support-conversation-card) { border: 1px solid var(--support-line) !important; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(28, 52, 82, .055) !important; }
.support-detail-page .support-detail-summary { background: linear-gradient(125deg, #f0f5ff 0%, #fff 78%); }
.support-detail-summary .card-body { color: #405570; }
.support-detail-summary .card-body > span { display: inline-flex; align-items: center; gap: .2rem; }
.support-detail-summary .card-body i { color: #3768ad !important; }
.support-conversation-card { overflow: hidden; border: 1px solid #e1e6ed !important; border-radius: 18px; background: #f7f8fa; box-shadow: 0 10px 28px rgba(28, 52, 82, .07) !important; }
.support-conversation-card .section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem 1rem; }
.support-detail-page .section-heading h2 { color: var(--support-ink); font-weight: 800; }
.support-detail-page .section-heading > span,
.support-detail-page .text-muted { color: var(--support-muted) !important; }
.support-thread { display: grid; gap: 1rem; }
.support-thread-message { width: fit-content; max-width: min(88%, 760px); padding: 1rem 1.1rem; border: 1px solid var(--support-line); border-radius: 16px; color: var(--support-ink); box-shadow: 0 5px 16px rgba(28, 52, 82, .06); }
.support-thread-message-agent { margin-inline-start: auto; border-color: #d1e1f4; border-radius: 16px 16px 5px 16px; background: #eaf3ff; }
.support-thread-message-seller { margin-inline-end: auto; border-color: #f5ddc2; border-radius: 16px 16px 16px 5px; background: #fff4e8; }
.support-thread-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem 1.25rem; margin-bottom: .7rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(80, 101, 128, .18); }
.support-thread-sender { color: #203653; font-size: .9rem; font-weight: 800; }
.support-thread-time { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: #687b94; font-size: .75rem; }
.support-thread-time span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.support-thread-message-agent .support-thread-time i { color: #7892b0; }
.support-thread-message-seller .support-thread-time i { color: #b58a62; }
.support-message-text { color: #354a63; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-detail-page .form-control,
.support-detail-page .form-select { border-color: #d5e0ed; border-radius: 10px; color: #263d58; background-color: #fff; }
.support-detail-page .form-control:focus,
.support-detail-page .form-select:focus { border-color: #82a6d8; box-shadow: 0 0 0 .2rem rgba(55, 104, 173, .14); }
@media (max-width: 575.98px) {
  .support-thread-message { width: 100%; max-width: 100%; padding: .85rem; }
  .support-thread-meta { flex-direction: column; gap: .45rem; }
}
.support-status-badge { padding: .55rem .8rem; }
.support-status-badge.support-status-open { color: #92400e; background: #fef3c7; }
.support-status-badge.support-status-waiting { color: #1d4ed8; background: #dbeafe; }
.support-status-badge.support-status-resolved { color: #465486; background: #e9edfb; }
.support-status-badge.support-status-closed { color: #475569; background: #e2e8f0; }
.support-detail-summary .card-body { padding: 1rem 1.25rem; }
.admin-support-item { display: block; padding: 1rem 1.1rem; border: 1px solid var(--border); border-right: 4px solid #94a3b8; border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.admin-support-item:hover { border-color: var(--primary-border); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.admin-support-item.support-status-open { border-right-color: #f59e0b; }
.admin-support-item.support-status-waiting { border-right-color: #2563eb; }
.admin-support-item.support-status-resolved { border-right-color: #16a34a; }
.admin-support-item.support-status-closed { border-right-color: #94a3b8; }
.dashboard-hero-heading { padding: 1.25rem 1.35rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: linear-gradient(135deg, #fff, #eff6ff); box-shadow: var(--shadow-card); }
.dashboard-insights-panel { border-radius: var(--radius-card); }
.dashboard-alert-panel { background: #fffafa; }
.dashboard-section-label { margin: 1.25rem 0 .65rem; color: #64748b; font-size: .8rem; font-weight: 800; }
.dashboard-ready-hero { margin-bottom: 1.25rem; padding: 1.5rem 1.65rem; border: 1px solid #dbeafe; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #eff6ff 100%); box-shadow: 0 8px 24px rgba(37, 99, 235, .06); }
.dashboard-ready-hero h1 { margin-bottom: .35rem; color: #0f172a; font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 900; }
.dashboard-ready-hero p { margin: 0; color: #64748b; font-size: .85rem; }
.dashboard-panel, .dashboard-ready-hero, .dashboard-financial-card, .dashboard-insights-panel { border-radius: 18px; }
.dashboard-section-heading { display: flex; align-items: center; gap: .45rem; color: #334155; font-size: .9rem; }
.dashboard-section-heading i { color: #2563eb; }
.dashboard-card .section-heading { padding-bottom: .8rem; border-bottom: 1px solid #eef2f7; }
.dashboard-card .section-heading h6 { margin: 0; color: #1e293b; font-size: .95rem; font-weight: 800; }
.quick-action { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.quick-action:hover { border-color: #93c5fd; background: #eff6ff; }
.admin-stat-grid .dashboard-card { min-height: 126px; display: flex; flex-direction: column; justify-content: center; }
.admin-stat-grid .stat-icon { font-size: 1.45rem; margin-bottom: .25rem; }
.admin-stat-grid .stat-value { font-size: 1.45rem; font-weight: 900; }
.dashboard-financial-card { min-height: 142px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.dashboard-financial-card > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .65rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.25rem; }
.dashboard-financial-card > strong { display: inline-block; margin-top: .25rem; font-size: 1.15rem; }
.dashboard-financial-card > small:last-child { color: var(--muted); font-size: .7rem; }
.financial-success > span { color: #15803d; background: #dcfce7; } .financial-warning > span { color: #b45309; background: #fef3c7; } .financial-gold > span { color: #a16207; background: #fef3c7; }
.app-content .dashboard-hero-heading { margin-bottom: 1rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-content .dashboard-hero-heading h1 { color: #1f2937; font-size: 1.35rem; }
.app-content .dashboard-hero-heading p { color: #6b7280; }
.app-content .dashboard-section-label { margin-top: 1.5rem; color: #6b7280; font-size: .78rem; letter-spacing: .01em; }
.admin-queue-grid { --bs-gutter-x: 1.15rem; --bs-gutter-y: 1.15rem; }
.admin-queue-grid > [class*="col-"] { display: flex; }
.admin-queue-card { display: flex; flex-direction: column; width: 100%; min-height: 13rem; padding: 1.15rem !important; }
.admin-queue-card .section-heading { min-height: 2.8rem; margin-bottom: .85rem; padding-bottom: .7rem; }
.admin-queue-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 1.75rem; padding: .35rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.admin-queue-summary { display: flex; align-items: baseline; gap: .55rem; margin-block: .35rem 1rem; }
.admin-queue-summary strong { color: #2563eb; font-size: 1.55rem; font-weight: 900; line-height: 1.2; }
.admin-queue-summary span { color: #64748b; font-size: .88rem; font-weight: 700; }
.admin-queue-card > p { line-height: 1.8; }
.admin-queue-card > .list-group { margin-bottom: .25rem; }
.admin-queue-card .list-group-item { padding-block: .7rem; line-height: 1.7; }
.admin-queue-card > .btn { align-self: flex-start; margin-block-start: auto !important; }
.admin-metric-grid { --bs-gutter-x: 1.15rem; --bs-gutter-y: 1.15rem; }
.admin-metric-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; min-height: 7.25rem; padding: 1.1rem !important; }
.admin-metric-card .stat-label { margin: 0; font-size: .82rem; line-height: 1.8; }
.admin-metric-card .stat-value { display: block; margin: 0; font-size: 1.2rem; font-weight: 850; line-height: 1.5; overflow-wrap: anywhere; }
.admin-metric-card > .small { line-height: 1.7; }
.app-content .dashboard-card, .app-content .dashboard-financial-card, .app-content .mini-card { border-radius: 6px; border-color: #d1d5db; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.app-content .dashboard-card:hover, .app-content .mini-card:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, .1); }
.app-content .dashboard-card h5, .app-content .dashboard-card h6, .app-content .mini-card h5, .app-content .mini-card h6 { color: #374151; }
.app-content .dashboard-panel, .app-content .dashboard-insights-panel, .app-content .dashboard-alert-panel { padding: 1.1rem; }
.app-content .dashboard-alert-panel { background: #fff; border-right-color: #dc3545 !important; }
.app-content .dashboard-insights-panel { background: #fff; border-right-color: #f59e0b !important; }
.app-content .dashboard-alert-panel .border, .app-content .dashboard-insights-panel .border { border-color: #e5e7eb !important; background: #f9fafb; }
.app-content .dashboard-financial-card { min-height: 124px; padding: 1rem; text-align: center; }
.app-content .dashboard-financial-card > strong { color: #1f2937; }
.app-content .dashboard-financial-card > span { width: 42px; height: 42px; border-radius: 50%; }
.app-content .dashboard-account-summary .dashboard-card { margin-bottom: 0; padding: 1rem; }
.app-content .dashboard-account-summary .status-card { border-right: 4px solid #f59e0b; }
.app-content .dashboard-account-summary .status-card.status-success { border-right-color: #16a34a; }
.app-content .stat-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto .35rem; border-radius: 50%; color: #2563eb; background: #eff6ff; font-size: 1.25rem; }
.app-content .quick-action { min-height: 68px; border-radius: 6px; border-color: #d1d5db; background: #fff; }
.app-content .quick-action:hover { border-color: #93c5fd; background: #eff6ff; }
.app-content .progress { height: 6px; }
.app-content .status-card { border-right: 4px solid #f59e0b; }
.app-content .status-card.status-success { border-right-color: #16a34a; }
.app-content .status-card.status-warning { border-right-color: #f59e0b; }
.app-content .invoice-stat-card { border-radius: 6px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.app-content .invoice-list-page .invoice-stat-card { border-radius: 16px; box-shadow: 0 5px 16px rgba(15, 23, 42, .06); }
.support-create-page .app-page-heading { margin-bottom: 1.25rem; }
.support-form-card { border: 1px solid var(--border) !important; border-radius: 10px; }
@media (max-width: 991.98px) {
    .app-list-page, .app-list-page > * { min-width: 0; max-width: 100%; }
}
.app-content .dashboard-card .table, .app-content .mini-card .table { border-top: 1px solid #eef2f7; }
.app-content canvas { max-width: 100%; }
body.auth-background-shell { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; padding-bottom: 0; isolation: isolate; background: #101820; }
body.auth-background-shell .public-header { position: sticky; top: 0; z-index: 1030; flex: 0 0 56px; border-bottom-color: transparent; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.auth-background-shell .public-header .navbar-brand,
body.auth-background-shell .public-header .public-wordmark,
body.auth-background-shell .public-nav-links .nav-link { color: rgba(255,255,255,.9); }
body.auth-background-shell .public-nav-links .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.auth-background-layer { position: fixed; z-index: -1; inset: 0; overflow: hidden; background: #101820; pointer-events: none; }
.auth-background-layer img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .2s ease; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.auth-background-layer img.is-ready { opacity: 1; }
.auth-background-layer::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,15,22,.16) 0%, rgba(8,15,22,.34) 48%, rgba(8,15,22,.76) 100%), linear-gradient(0deg, rgba(8,15,22,.42), transparent 58%, rgba(8,15,22,.18)); content: ''; }
.auth-page { min-height: calc(100vh - 190px); padding: 2rem 0 3rem; display: flex; align-items: center; position: relative; }
.auth-page::before { content: ''; position: absolute; inset: 0; z-index: -1; background: none; pointer-events: none; }
.public-access-denied { box-sizing: border-box; width: min(100%, 1120px); min-height: calc(100vh - 90px); justify-content: center; margin-inline: auto; padding: clamp(2rem, 8vh, 5rem) 1.25rem; }
.public-access-denied-card { position: relative; width: min(100%, 620px); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; text-align: center; }
.public-access-denied-card .auth-brand-mark { margin-bottom: 1.25rem; }
.public-access-denied-card h1 { margin: 0 0 .75rem; color: #172b4d; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 850; line-height: 1.7; }
.public-access-denied-card p { margin: 0 0 1.5rem; color: #64748b; line-height: 1.9; }
.public-access-denied-card .btn { min-height: 46px; padding: .65rem 1.2rem; border-radius: 12px; font-weight: 750; }
.auth-page.auth-illustrated-page { display: flex; justify-content: flex-start; align-items: center; box-sizing: border-box; width: 100%; max-width: 100%; min-height: calc(100svh - 56px); margin: 0; padding: 1.25rem clamp(1.25rem, 4vw, 4rem); direction: rtl; }
body.auth-background-shell .container:has(> main > .auth-page.auth-illustrated-page) { direction: ltr; flex: 1 1 auto; width: 100%; max-width: 100%; min-height: 0; margin-inline: 0; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: rgba(15,23,42,.58) transparent; }
body.auth-background-shell .container:has(> main > .auth-page.auth-illustrated-page) > main { direction: rtl; }
body.auth-background-shell .container:has(> main > .auth-page.auth-illustrated-page)::-webkit-scrollbar { width: 8px; }
body.auth-background-shell .container:has(> main > .auth-page.auth-illustrated-page)::-webkit-scrollbar-track { background: transparent; }
body.auth-background-shell .container:has(> main > .auth-page.auth-illustrated-page)::-webkit-scrollbar-thumb { border: 1px solid transparent; border-radius: 999px; background: rgba(15,23,42,.58); background-clip: padding-box; }
body.auth-background-shell .container:has(> main > .auth-page.auth-illustrated-page)::-webkit-scrollbar-thumb:hover { background-color: rgba(15,23,42,.8); }
.auth-page.auth-illustrated-page .auth-shell { width: 100%; max-width: 470px; margin: 0; direction: rtl; }
.auth-page.auth-illustrated-page .auth-shell-wide { max-width: 500px; }
.auth-shell { width: 100%; max-width: 470px; margin: 0 auto; }
.auth-shell.auth-shell-wide { max-width: 560px; }
.auth-card { overflow: hidden; border: 1px solid rgba(226, 232, 240, .9) !important; border-radius: 24px !important; background: rgba(255, 255, 255, .96); box-shadow: 0 22px 60px rgba(30, 41, 59, .12); }
body.auth-background-shell .auth-card { border-color: rgba(255,255,255,.15) !important; background: rgba(18,29,39,.84); box-shadow: 0 24px 72px rgba(0,0,0,.34); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
body.auth-background-shell .auth-header h1,
body.auth-background-shell .auth-header h2,
body.auth-background-shell .auth-header h4 { color: #f5f8fb; }
body.auth-background-shell .auth-header p,
body.auth-background-shell .auth-footer { color: #bdc9d4; }
body.auth-background-shell .auth-form .form-label { color: #e2e9ef; }
body.auth-background-shell .auth-form .form-control { border-color: rgba(214,227,238,.28); color: #f5f8fb; background: rgba(239,246,252,.1); }
body.auth-background-shell .auth-form .form-control::placeholder { color: #aab8c5; }
body.auth-background-shell .auth-password-group .auth-password-toggle { border-color: rgba(214,227,238,.28); color: #d3dee7; background: rgba(239,246,252,.12); }
body.auth-background-shell .auth-footer a { color: #e1edf6; }
.auth-card-body { padding: 2rem; }
.auth-header { margin-bottom: 1.75rem; text-align: center; }
.auth-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin-bottom: 1rem; border: 1px solid rgba(255, 255, 255, .7); border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed); box-shadow: 0 12px 26px rgba(79, 70, 229, .24); font-size: 1.8rem; }
.auth-header.auth-login-header { margin-bottom: 1.45rem; }
.auth-header.auth-login-header h1 { margin-bottom: 0; font-size: 1.35rem; line-height: 1.5; }
.auth-header.auth-login-header p { max-width: 340px; margin: .4rem auto 0; font-size: .86rem; line-height: 1.8; }
.auth-header.auth-register-header { margin-bottom: 1.45rem; }
.auth-header.auth-register-header h1 { margin-bottom: 0; font-size: 1.35rem; line-height: 1.5; }
.auth-header.auth-register-header p { max-width: 390px; margin: .4rem auto 0; font-size: .86rem; line-height: 1.8; }
.auth-trial-badge { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; margin-top: .8rem; padding: .48rem .9rem; border: 1px solid #d7e8e5; border-radius: 14px; color: #526c70; background: linear-gradient(135deg, #f6faf9, #f7f9fc); box-shadow: 0 4px 12px rgba(54, 86, 91, .045); font-size: .8rem; line-height: 1.5; }
.auth-trial-badge > i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #76b8ad, #7ca6c4); font-size: .95rem; }
.auth-trial-badge strong { color: #477a80; font-weight: 900; }
body.auth-background-shell .auth-trial-badge { gap: .45rem; margin-top: .65rem; padding: .38rem .75rem; border-color: rgba(214,227,238,.18); color: #cbd5e1; background: rgba(239,246,252,.07); box-shadow: none; font-size: .78rem; }
body.auth-background-shell .auth-trial-badge > i { width: 27px; height: 27px; border: 1px solid rgba(214,227,238,.12); border-radius: 9px; color: #d3dee7; background: rgba(239,246,252,.1); font-size: .88rem; }
body.auth-background-shell .auth-trial-badge strong { color: #e2e8f0; }
.auth-header h1, .auth-header h2, .auth-header h4 { color: #1e293b; font-weight: 900; }
.auth-header p { max-width: 360px; margin: .5rem auto 0; color: #64748b; line-height: 1.9; }
.auth-form { padding: 0; border: 0; background: transparent; box-shadow: none; }
.auth-form-compact { width: min(100%, 360px); margin-inline: auto; }
.auth-form .form-label { display: block; margin-bottom: .55rem; color: #243b53; font-size: .9rem; font-weight: 800; line-height: 1.6; }
.auth-form .form-control, .auth-form .input-group-text, .auth-password-group .btn { height: 48px; min-height: 48px; border-color: #dbe3ee; }
.auth-form .form-control { border-radius: 12px; background: #fff; text-align: right; font-family: 'Vazirmatn', sans-serif; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.auth-form .form-control::placeholder { color: #8392a2; font-family: 'Vazirmatn', sans-serif; font-size: .78rem; font-weight: 400; opacity: 1; }
.auth-form .form-control:focus::placeholder { color: #c0cad8; }
.auth-form .form-control.field-filled:not(:focus):not(:disabled):not([readonly]) { background-color: #eff6ff; }
.auth-form .form-control.is-invalid, .auth-form .form-control.field-filled.is-invalid { background-color: #fff1f2; }
.auth-form input[name="Mobile"] { direction: ltr; font-size: 1.1rem; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.auth-form .form-control:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 .22rem rgba(99, 102, 241, .12); }
.auth-form .input-group .form-control { border-radius: 0 12px 12px 0; }
.auth-password-group .form-control { direction: ltr; height: 48px; line-height: 1.2; text-align: center; font-family: 'Vazirmatn', sans-serif; font-size: 1rem; font-weight: 500; }
.auth-password-group .form-control[type="password"] { font-size: 1.4rem; letter-spacing: .2em; }
.auth-password-group .form-control::placeholder { direction: rtl; font-family: 'Vazirmatn', sans-serif; font-size: .82rem; font-weight: 400; letter-spacing: 0; text-align: right; }
.auth-register-form .form-control { text-align: right; }
.auth-password-group .auth-password-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; padding: 0; border-radius: 12px 0 0 12px; color: #64748b; background: #f8fafc; }
.auth-password-group .auth-password-toggle:hover, .auth-password-group .auth-password-toggle:focus { color: var(--primary); background: #eef2ff; }
body.auth-background-shell .auth-form .form-control.field-filled:not(:focus):not(:disabled):not([readonly]) { color: #f5f8fb; background-color: #243744; }
body.auth-background-shell .auth-form .form-control.is-invalid { border-color: #fda4af; color: #fff1f2; background-color: #472b34; }
body.auth-background-shell .auth-form .form-control:-webkit-autofill,
body.auth-background-shell .auth-form .form-control:-webkit-autofill:hover,
body.auth-background-shell .auth-form .form-control:-webkit-autofill:focus,
body.auth-background-shell .auth-form .form-control:autofill { -webkit-text-fill-color: #f5f8fb; caret-color: #f5f8fb; -webkit-box-shadow: 0 0 0 1000px #243744 inset; box-shadow: 0 0 0 1000px #243744 inset; }
body.auth-background-shell .auth-password-group .auth-password-toggle:hover,
body.auth-background-shell .auth-password-group .auth-password-toggle:focus,
body.auth-background-shell .auth-password-group .auth-password-toggle:active { border-color: rgba(214,227,238,.48); color: #fff; background: #294453; }
body.auth-background-shell .auth-password-group .auth-password-toggle:focus-visible { outline: 2px solid #8ce2d5; outline-offset: 2px; }
.auth-form .btn[type="submit"] { min-height: 48px; border-radius: 12px; font-weight: 800; box-shadow: 0 8px 18px rgba(99, 102, 241, .2); }
.auth-form .btn-warning,
.auth-form .btn-success { color: #fff; background-color: var(--primary); border-color: var(--primary); }
.auth-form .btn-warning:hover,
.auth-form .btn-warning:focus,
.auth-form .btn-success:hover,
.auth-form .btn-success:focus { color: #fff; background-color: var(--primary-dark); border-color: var(--primary-dark); }
.auth-form .text-warning { color: var(--primary) !important; }
.auth-form.is-submitting .btn[type="submit"] { cursor: wait; opacity: .78; }
.auth-form .btn[type="submit"] .auth-submit-spinner { display: inline-block; width: .9em; height: .9em; margin-inline-end: .35rem; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: auth-spin .7s linear infinite; vertical-align: -.1em; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-form .alert, .auth-alert { border: 0; border-radius: 12px; line-height: 1.8; }
.auth-footer { margin-top: 1.25rem; color: #64748b; text-align: center; font-size: .88rem; }
.auth-footer a { font-weight: 700; text-decoration: none; }
.auth-otp-inputs { display: flex; justify-content: center; gap: .55rem; direction: ltr; }
.auth-otp-inputs .otp-digit { width: 48px; height: 56px; border: 2px solid #dbe3ee; border-radius: 14px; outline: 0; color: #1e293b; background: #f8fafc; font-size: 1.45rem; font-weight: 800; text-align: center; caret-color: var(--primary); transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s; }
.auth-otp-inputs .otp-digit:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 .22rem rgba(99, 102, 241, .12); transform: translateY(-2px); }
.auth-otp-help { color: #64748b; font-size: .88rem; line-height: 1.9; text-align: center; }
.auth-otp-timer { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; color: #64748b; background: #f8fafc; font-size: .82rem; }
@media (max-width: 420px) { .auth-card-body { padding: 1.35rem; } .auth-otp-inputs { gap: .3rem; } .auth-otp-inputs .otp-digit { width: 42px; height: 50px; } }
@media (max-width: 991.98px) {
  .auth-page.auth-illustrated-page { justify-content: center; min-height: calc(100svh - 56px); padding: 1.5rem 1rem 2rem; }
  .auth-background-layer::after { background: linear-gradient(180deg, rgba(8,15,22,.48), rgba(8,15,22,.72)); }
  .auth-page.auth-illustrated-page .auth-shell { max-width: 470px; margin-inline: auto; }
  .auth-page.auth-illustrated-page .auth-shell-wide { max-width: 560px; }
}
.auth-card:has(.password-submit) { border-color: #dbe5f2 !important; box-shadow: 0 18px 45px rgba(30, 41, 59, .1); }
.auth-card:has(.password-submit) .auth-card-body { padding: 2.25rem 2.1rem 1.7rem; }
.auth-card:has(.password-submit) .auth-header { margin-bottom: 1.5rem; }
.auth-card:has(.password-submit) .auth-brand-mark { width: 62px; height: 62px; margin-bottom: .85rem; border: 0; border-radius: 18px; color: #2563eb; background: #eff6ff; box-shadow: none; font-size: 1.65rem; }
.auth-card:has(.password-submit) .auth-header p { max-width: 390px; font-size: .82rem; }
.auth-card:has(.password-submit) .auth-form > div:not(.d-grid) { margin-bottom: 1.15rem !important; }
.auth-card:has(.password-submit) .auth-form .form-label { display: block; margin-bottom: .5rem; text-align: right; }
.auth-card:has(.password-submit) .auth-password-group { direction: rtl; }
.auth-card:has(.password-submit) .auth-password-group .form-control { flex: 1; min-width: 0; background: #fbfdff; }
.auth-card:has(.password-submit) .auth-password-group .auth-password-toggle { border-color: #dbe3ee; border-radius: 12px 0 0 12px; }
.auth-card:has(.password-submit) .auth-form .text-danger { display: block; min-height: 1.1rem; margin-top: .35rem; text-align: right; }
.auth-card:has(.password-submit) .password-submit { min-height: 50px; margin-top: .15rem; border: 0; background: #2563eb; box-shadow: 0 8px 18px rgba(37, 99, 235, .2); }
.auth-card:has(.password-submit) .password-submit:hover, .auth-card:has(.password-submit) .password-submit:focus { background: #1d4ed8; box-shadow: 0 10px 22px rgba(37, 99, 235, .25); transform: translateY(-1px); }
.auth-card:has(.password-submit) .auth-footer { margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid #eef2f7; }
.auth-card:has(.password-submit) .auth-footer a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: .5rem .9rem; border: 1px solid #dbe3ee; border-radius: 10px; color: #526581; background: #fff; font-family: 'Vazirmatn', sans-serif; font-size: .78rem; font-weight: 600; transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
.auth-card:has(.password-submit) .auth-footer a:hover { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; transform: translateY(-1px); }
.auth-card:has(.password-submit) .auth-footer a i { margin: 0 !important; font-size: .9rem; }
@media (max-width: 575.98px) {
  .auth-card:has(.password-submit) .auth-card-body { padding: 1.7rem 1.15rem 1.35rem; }
}
body.auth-background-shell .auth-card .auth-card-body { padding: 1.6rem 1.65rem; }
body.auth-background-shell .auth-card .auth-header { margin-bottom: 1.25rem; }
body.auth-background-shell .auth-card .auth-brand-mark { width: 60px; height: 60px; margin-bottom: .75rem; border-radius: 18px; font-size: 1.55rem; }
@media (max-width: 575.98px) {
  body.auth-background-shell .auth-card .auth-card-body { padding: 1.35rem 1.1rem; }
}
.auth-form-card, .profile-form { border-radius: 6px; }
.auth-form-card .card-body { padding: 1.5rem; }
.auth-form-card .form-label, .profile-form .form-label { font-weight: 700; }
.profile-page { max-width: 1080px; margin: 0 auto; }
.profile-page-header { margin-bottom: .65rem; padding: .25rem 0 1rem; border-bottom: 1px solid var(--border); }
.profile-page-heading { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.profile-eyebrow { margin: 0 0 .2rem; color: #2563eb; font-size: .75rem; font-weight: 800; }
.profile-page-subtitle { margin: .3rem 0 0; color: #64748b; font-size: .84rem; }
.profile-password-link { flex: 0 0 auto; min-height: 42px; border-radius: 10px; font-weight: 700; }
.profile-password-link:focus-visible, .profile-save-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 3px; }
.profile-operation-alert { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid; border-radius: 12px; font-size: .82rem; font-weight: 700; }
.profile-operation-alert-success { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.profile-operation-alert-success i { color: #16a34a; font-size: 1.1rem; }
.profile-page-form { display: grid; gap: 1rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
.profile-panel { padding: 1.35rem 1.45rem; border: 1px solid #dce5f0; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .04); }
.profile-panel-heading { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.1rem; padding-bottom: .9rem; border-bottom: 1px solid #edf2f7; }
.profile-panel-heading h2 { margin: .05rem 0 .25rem; color: #172033; font-size: 1rem; font-weight: 850; }
.profile-panel-heading p { margin: 0; color: #718096; font-size: .78rem; }
.profile-page-form { margin: 0; }
.profile-settings-groups { display: grid; gap: 1rem; }
.profile-settings-group { display: grid; gap: 1rem; min-width: 0; }
.profile-external-form { display: none; }
.profile-print-options { display: grid; gap: .4rem; }
.profile-print-options .form-check { display: flex; align-items: center; gap: .65rem; margin: 0; padding: .75rem .85rem; border: 1px solid #e4eaf0; border-radius: 10px; background: #f9fbfd; }
.profile-print-options .form-check-input { float: none; flex: 0 0 auto; margin: 0; }
.profile-print-options .form-check-label { color: #405166; font-size: .83rem; }
.profile-account-security-link { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #edf2f7; color: #64748b; font-size: .78rem; }
.profile-account-security-link i { margin-left: .3rem; color: #527795; }
.stamp-signature-preview { display: grid; width: 120px; height: 120px; place-items: center; border: 1px dashed #aeb8c2; border-radius: 12px; background-color: #f8fafc; background-image: linear-gradient(45deg,#e9edf1 25%,transparent 25%),linear-gradient(-45deg,#e9edf1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9edf1 75%),linear-gradient(-45deg,transparent 75%,#e9edf1 75%); background-size: 12px 12px; background-position: 0 0,0 6px,6px -6px,-6px 0; }
.stamp-signature-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stamp-signature-empty { display: flex; min-height: 70px; align-items: center; gap: .65rem; padding: .85rem 1rem; border: 1px dashed #d5dee8; border-radius: 12px; color: #64748b; background: #f8fafc; font-size: .8rem; }
.stamp-signature-empty i { color: #7890a5; font-size: 1.05rem; }
.stamp-signature-feedback:not([hidden]) { margin-bottom: 1rem; }
.stamp-signature-feedback-message, .stamp-signature-feedback:not([hidden]) { display: block; padding: .7rem .85rem; border: 1px solid #d6e5dc; border-radius: 10px; color: #286143; background: #f2f8f4; font-size: .8rem; line-height: 1.7; }
.stamp-signature-feedback.is-error, .stamp-signature-feedback-message.is-error { border-color: #f1d2d2; color: #963d3d; background: #fff7f7; }
.stamp-signature-feedback.is-success, .stamp-signature-feedback-message.is-success { border-color: #d6e5dc; color: #286143; background: #f2f8f4; }
.profile-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; font-size: 1rem; }
.profile-section-icon-blue { color: #2563eb; background: #eff6ff; }
.profile-section-icon-teal { color: #0f766e; background: #ecfdf5; }
.profile-section-icon-indigo { color: #4f46e5; background: #eef2ff; }
.profile-section-icon-slate { color: #475569; background: #f1f5f9; }
.profile-section-icon-amber { color: #b45309; background: #fffbeb; }
.profile-panel .form-label { margin-bottom: .4rem; color: #334155; font-size: .82rem; }
.profile-panel .form-control { min-height: 44px; border-color: #d8e1ec; border-radius: 10px; }
.profile-panel textarea.form-control { min-height: 100px; resize: vertical; }
.profile-panel .form-control:focus { border-color: #93c5fd; box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .12); }
.profile-panel .form-control.input-validation-error { border-color: #dc2626; background-color: #fffafa; }
.profile-panel .form-control.input-validation-error:focus { border-color: #dc2626; box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .12); }
.stamp-upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.stamp-upload-picker { position: relative; display: inline-flex; min-height: 42px; align-items: center; gap: .45rem; overflow: hidden; margin: 0; padding: .55rem .85rem; border: 1px solid #cbd5e1; border-radius: 10px; color: #334155; background: #fff; font-size: .82rem; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.stamp-upload-picker:hover { border-color: #94a3b8; background: #f8fafc; }
.stamp-upload-picker:focus-within { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }
.stamp-upload-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.stamp-upload-filename { min-width: 0; overflow: hidden; color: #64748b; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.stamp-upload-submit { min-height: 42px; border-radius: 10px; font-size: .82rem; font-weight: 750; }
.stamp-upload-help { display: flex; align-items: flex-start; gap: .55rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #edf2f7; color: #64748b; font-size: .75rem; line-height: 1.8; }
.stamp-upload-help > i { flex: 0 0 auto; margin-top: .15rem; color: #527795; }
.stamp-upload-help p { margin: 0; }
.stamp-upload-help p + p { margin-top: .15rem; }
.profile-readonly-field { color: #64748b; background: #f8fafc; }
.profile-panel .form-text { display: block; margin-top: .4rem; color: #7b8797; font-size: .74rem; }
.profile-panel .text-danger { display: block; min-height: 1.1rem; margin-top: .3rem; color: #b91c1c !important; font-size: .75rem; line-height: 1.7; }
.profile-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 0 1rem; }
.profile-save-hint { color: #64748b; font-size: .78rem; }
.profile-save-button { min-width: 150px; min-height: 44px; border-radius: 10px; font-weight: 800; }
.profile-validation:empty { display: none; }
.profile-validation:not(:empty) { margin-bottom: 0; border-color: #fecaca; color: #991b1b; background: #fff7f7; line-height: 1.9; }
@media (max-width: 767.98px) {
  .profile-page-header { align-items: stretch; flex-direction: column; padding: .25rem 0 .85rem; }
  .profile-password-link { width: 100%; }
  .profile-panel { padding: 1.1rem; }
  .stamp-upload-filename { flex-basis: 100%; }
  .profile-page-heading { align-items: flex-start; }
  .profile-form-actions { align-items: stretch; flex-direction: column; }
  .profile-save-button { width: 100%; }
}
.auth-form-card .login-field { text-align: center; }
.auth-form-card .login-field { text-align: center; }
.auth-form-card .login-field[type="password"] { direction: ltr; text-align: center; }
.auth-form-card input[type="password"] { direction: ltr; text-align: left; font-family: Arial, sans-serif; font-size: 1.15rem; letter-spacing: .12em; line-height: 1.5; }
.adminlte-form .form-check-input { border-color: #cbd5e1; }
.adminlte-form .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.adminlte-form .alert { border-radius: 6px; }
.adminlte-form .form-actions { flex-wrap: wrap; }
.product-form-redesign { border: 0; box-shadow: none; background: transparent; padding: 0; }
.product-form-redesign .product-panel { border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, .05); }
.product-form-redesign .product-panel-header { padding: .85rem 1rem; border-bottom: 1px solid #eef2f7; font-size: .9rem; font-weight: 800; background: #fff; }
.product-form-redesign .product-panel .card-body { padding: 1rem; }
.product-form-redesign .form-label { margin-bottom: .35rem; }
.product-form-redesign .form-text { margin-top: .35rem; }
.product-form-redesign .product-form-actions { padding-top: .25rem; }
@media (max-width: 991.98px) {
  .product-form-redesign .product-panel { border-radius: 12px; }
}
.product-create-page { width: min(100%, 1120px); margin-inline: auto; }
.product-create-page .product-create-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); box-shadow: var(--shadow-card); }
.product-create-page .product-create-heading-copy { min-width: 0; }
.product-create-page .product-create-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .35rem; color: var(--primary-dark); font-size: .78rem; font-weight: 800; }
.product-create-page .product-create-eyebrow i { font-size: 1rem; }
.product-create-page .app-page-title { margin: 0; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 900; }
.product-create-page .app-page-subtitle { margin: .25rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.product-create-page .product-create-back { flex: 0 0 auto; min-height: 44px; border-radius: 10px; }
.product-create-page .product-create-form { border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; padding: 0; }
.product-create-page .product-create-validation { margin-bottom: 1rem; border-radius: 12px; }
.product-create-page .product-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1.25rem; }
.product-create-page .product-create-panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 22px rgba(15, 23, 42, .055); }
.product-create-page .product-create-inventory { grid-column: 1 / -1; }
.product-create-page .product-create-panel-heading { display: flex; align-items: center; gap: .8rem; min-height: 76px; padding: 1rem 1.25rem; border-bottom: 1px solid #edf2f8; background: linear-gradient(180deg, #fff 0%, #fbfdff 100%); }
.product-create-page .product-create-panel-icon { display: inline-grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #dbeafe; border-radius: 13px; color: var(--primary); background: var(--primary-soft); font-size: 1.05rem; }
.product-create-page .product-create-panel-heading h2 { margin: 0; color: var(--ink); font-size: .96rem; font-weight: 850; }
.product-create-page .product-create-panel-heading p { margin: .2rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.7; }
.product-create-page .product-create-panel-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 1.1rem 1.25rem; padding: 1.25rem; }
.product-create-page .product-create-basics .product-create-panel-body { grid-template-columns: 1fr; }
.product-create-page .product-create-inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-create-page .product-create-field { min-width: 0; }
.product-create-page .product-create-field .form-label { display: block; margin-bottom: .5rem; color: var(--ink); font-size: .82rem; font-weight: 750; }
.product-create-page .product-create-optional { color: var(--muted); font-size: .75rem; font-weight: 500; }
.product-create-page .product-create-field .form-control,
.product-create-page .product-create-field .form-select { width: 100%; min-width: 0; min-height: 46px; border-color: #d7e2ef; border-radius: 10px; color: var(--ink); background-color: #fff; font-size: .88rem; }
.product-create-page .product-create-field .form-control:focus,
.product-create-page .product-create-field .form-select:focus { border-color: #79a9f8; box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .13); }
.product-create-page .product-create-field .text-danger { display: block; margin-top: .35rem; font-size: .76rem; line-height: 1.7; }
.product-create-page .product-create-money-input .form-control { flex: 1 1 auto; width: 1%; }
.product-create-page .product-create-money-input .input-group-text { min-width: 76px; justify-content: center; border-color: #cbd9ed; border-radius: 10px 0 0 10px; color: var(--ink); background: #e1ebf8; font-size: .78rem; font-weight: 700; }
.product-create-page .product-create-money-input .form-control { border-radius: 0 10px 10px 0; }
.product-create-page .product-create-inline-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; font-size: .78rem; font-weight: 700; text-decoration: none; }
.product-create-page .product-create-inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-create-page .product-create-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(15, 23, 42, .045); }
.product-create-page .product-create-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; border-radius: 10px; font-size: .86rem; font-weight: 750; }
.product-create-page .product-create-submit { min-width: 170px; }
.product-create-page .product-create-cancel { min-width: 112px; }
@media (max-width: 767.98px) {
  .product-create-page .product-create-heading { align-items: flex-start; flex-direction: column; padding: 1.1rem; }
  .product-create-page .product-create-back { width: 100%; }
  .product-create-page .product-create-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .product-create-page .product-create-inventory { grid-column: auto; }
  .product-create-page .product-create-panel-body,
  .product-create-page .product-create-inventory-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .product-create-page .product-create-actions { align-items: stretch; flex-direction: column; padding: 1rem; }
  .product-create-page .product-create-actions .btn { width: 100%; }
}
.product-categories-page { width: min(100%, 1120px); }
.product-categories-heading { align-items: center; margin-bottom: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); box-shadow: var(--shadow-card); }
.product-categories-heading-copy { min-width: 0; }
.product-categories-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .35rem; color: var(--primary-dark); font-size: .84rem; font-weight: 800; }
.product-categories-eyebrow i { font-size: 1rem; }
.product-categories-heading .app-page-title { margin: 0; color: var(--ink); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 900; }
.product-categories-heading .app-page-subtitle { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.product-categories-heading-actions { flex: 0 0 auto; }
.product-categories-heading-actions .btn,
.product-categories-empty .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; border-radius: 10px; font-size: .88rem; font-weight: 750; }
.product-categories-page .btn-accent,
.product-category-form-page .btn-accent { border-color: var(--primary); color: #fff; background: var(--primary); box-shadow: 0 6px 14px rgba(37, 99, 235, .16); }
.product-categories-page .btn-accent:hover,
.product-category-form-page .btn-accent:hover { border-color: var(--primary-dark); color: #fff; background: var(--primary-dark); }
.product-categories-page .btn-accent:focus-visible,
.product-category-form-page .btn-accent:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.product-categories-create { min-width: 150px; }
.product-categories-back { gap: .45rem; }
.product-categories-feedback { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; padding: .85rem 1rem; border-radius: 12px; font-size: .9rem; }
.product-categories-feedback i { flex: 0 0 auto; font-size: 1.05rem; }
.product-categories-search { margin-bottom: 1rem; padding: 1rem 1.25rem; }
.product-categories-search-control { min-height: 46px; }
.product-categories-search-control .input-group-text { min-width: 46px; justify-content: center; border-color: #d7e2ef; border-radius: 0 10px 10px 0; color: var(--primary); background: #f3f7fd; }
.product-categories-search-control .form-control { min-width: 0; min-height: 46px; border-color: #d7e2ef; border-radius: 0; font-size: .88rem; }
.product-categories-search-control .form-control:focus { border-color: #79a9f8; box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12); }
.product-categories-clear { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; border-radius: 10px 0 0 10px; font-size: .84rem; font-weight: 700; }
.product-categories-clear[hidden],
.product-categories-no-results[hidden] { display: none !important; }
.product-categories-card { border-radius: 16px; }
.product-categories-card-header { min-height: 74px; padding: 1rem 1.25rem; }
.product-categories-card-header h2 { color: var(--ink); font-size: .96rem; font-weight: 850; }
.product-categories-card-header p { margin: .25rem 0 0; color: var(--muted); font-size: .84rem; }
.product-categories-table-wrapper { min-width: 0; height: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
.product-categories-page .product-categories-table { width: 100%; min-width: 0; table-layout: fixed; }
.product-categories-table thead th { padding: .9rem 1.25rem; color: #475569; background: #f7f9fc; font-size: .84rem; font-weight: 800; }
.product-categories-table tbody td { padding: .9rem 1.25rem; color: var(--ink); vertical-align: middle; overflow-wrap: anywhere; }
.product-categories-actions-heading,
.product-categories-row-actions-cell { width: 250px; text-align: left; }
.product-category-name { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; }
.product-category-name i { color: var(--primary); font-size: 1rem; }
.product-categories-row-actions { gap: .5rem; }
.product-categories-row-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 36px; border-radius: 9px; font-weight: 700; }
.product-categories-row-actions .table-icon-action { width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; border-radius: 10px; flex: 0 0 38px; }
.product-categories-delete-form { margin: 0; }
.product-categories-no-results { display: grid; justify-items: center; gap: .65rem; padding: 2rem 1rem; color: var(--muted); text-align: center; }
.product-categories-no-results > i { color: #8aa2c1; font-size: 1.5rem; }
.product-categories-no-results p { margin: 0; font-size: .86rem; }
.product-categories-no-results .btn { min-height: 38px; border-radius: 9px; font-size: .8rem; }
.product-categories-empty { display: grid; justify-items: center; gap: .75rem; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; text-align: center; }
.product-categories-empty-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #dbeafe; border-radius: 18px; color: var(--primary); background: var(--primary-soft); font-size: 1.45rem; }
.product-categories-empty h3 { margin: .25rem 0 0; color: var(--ink); font-size: 1rem; font-weight: 850; }
.product-categories-empty p { max-width: 440px; margin: 0 0 .35rem; color: var(--muted); font-size: .86rem; line-height: 1.8; }
@media (max-width: 767.98px) {
  .product-categories-heading { align-items: stretch; flex-direction: column; padding: 1.1rem; }
  .product-categories-heading-actions { width: 100%; }
  .product-categories-heading-actions .btn { flex: 1 1 0; }
  .product-categories-search { padding: .85rem; }
  .product-categories-card-header { align-items: flex-start; }
  .product-categories-page .product-categories-table { min-width: 0; }
  .product-categories-table thead th,
  .product-categories-table tbody td { padding: .8rem .75rem; }
  .product-categories-actions-heading,
  .product-categories-row-actions-cell { width: 190px; }
}
@media (max-width: 479.98px) {
  .product-categories-heading-actions { align-items: stretch; flex-direction: column; }
  .product-categories-heading-actions .btn { width: 100%; }
  .product-categories-search-control .form-control { font-size: .9rem; }
  .product-categories-clear { min-width: 68px; padding-inline: .5rem; font-size: .8rem; }
  .product-categories-actions-heading,
  .product-categories-row-actions-cell { width: 112px; }
  .product-categories-row-actions { align-items: center; flex-direction: row; gap: .45rem; }
  .product-categories-row-actions .btn:not(.table-icon-action) { width: 100%; min-height: 34px; padding-inline: .35rem; font-size: .8rem; }
  .product-categories-row-actions .table-icon-action { width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; }
  .product-categories-table thead th,
  .product-categories-table tbody td { padding-inline: .55rem; }
}
.product-category-form-page { width: min(100%, 880px); margin-inline: auto; }
.product-category-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); box-shadow: var(--shadow-card); }
.product-category-form-heading > div { min-width: 0; }
.product-category-form-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .35rem; color: var(--primary-dark); font-size: .78rem; font-weight: 800; }
.product-category-form-heading .app-page-title { margin: 0; color: var(--ink); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 900; }
.product-category-form-heading .app-page-subtitle { margin: .3rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.product-category-form-back { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border-radius: 10px; font-size: .84rem; font-weight: 700; }
.product-category-form-page .product-category-form { display: grid; gap: 1rem; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.product-category-validation-summary { margin: 0; padding: .85rem 1rem; border: 1px solid #fecaca; border-radius: 12px; color: #991b1b; background: #fff7f7; font-size: .82rem; }
.product-category-validation-summary.validation-summary-valid { display: none; }
.product-category-form-card { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 22px rgba(15, 23, 42, .05); }
.product-category-form-card-heading { display: flex; align-items: center; gap: .85rem; min-height: 78px; padding: 1rem 1.25rem; border-bottom: 1px solid #edf2f8; background: linear-gradient(180deg, #fff 0%, #fbfdff 100%); }
.product-category-form-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid #dbeafe; border-radius: 13px; color: var(--primary); background: var(--primary-soft); font-size: 1.05rem; }
.product-category-form-card-heading h2 { margin: 0; color: var(--ink); font-size: .96rem; font-weight: 850; }
.product-category-form-card-heading p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.product-category-form-body { padding: 1.5rem; }
.product-category-form-field { max-width: 680px; }
.product-category-form-field .form-label { display: block; margin-bottom: .5rem; color: var(--ink); font-size: .84rem; font-weight: 750; }
.product-category-form-field .form-control { width: 100%; min-height: 48px; border-color: #d7e2ef; border-radius: 10px; color: var(--ink); background: #fff; font-size: .9rem; }
.product-category-form-field .form-control:focus { border-color: #79a9f8; box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .13); }
.product-category-form-field .text-danger { display: block; margin-top: .35rem; font-size: .78rem; line-height: 1.7; }
.product-category-form-hint { display: block; margin-top: .45rem; color: var(--muted); font-size: .76rem; }
.product-category-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(15, 23, 42, .045); }
.product-category-form-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border-radius: 10px; font-size: .84rem; font-weight: 750; }
.product-category-form-submit { min-width: 180px; }
@media (max-width: 767.98px) {
  .product-category-form-heading { align-items: flex-start; flex-direction: column; padding: 1.1rem; }
  .product-category-form-back { width: 100%; }
  .product-category-form-body { padding: 1rem; }
  .product-category-form-actions { align-items: stretch; flex-direction: column; padding: 1rem; }
  .product-category-form-actions .btn { width: 100%; }
}
.sidebar-link { display: flex; align-items: center; gap: .75rem; min-height: 42px; padding: .62rem .75rem; border: 1px solid transparent; border-radius: 11px !important; color: #475569; background: transparent; font-size: .82rem; font-weight: 600; text-decoration: none; transition: .2s ease; }
.sidebar-link i { display: grid; place-items: center; width: 22px; color: #94a3b8; font-size: 1rem; text-align: center; }
.sidebar-link:hover { color: #1d4ed8; background: #eff6ff; }
.sidebar-link.active { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; box-shadow: 0 4px 12px rgba(37, 99, 235, .08); }
.sidebar-link:hover i, .sidebar-link.active i { color: #2563eb; }
.seller-sidebar { background: #102a43; border-left-color: #1b4264; box-shadow: -10px 0 28px rgba(15, 23, 42, .16); }
.seller-sidebar .sidebar-head { border-bottom-color: rgba(148, 163, 184, .18); }
.seller-sidebar .sidebar-head { position: relative; }
.seller-sidebar .sidebar-brand { position: relative; z-index: 1; }
.seller-sidebar .sidebar-section-label { color: #8fa8bd; border-top-color: rgba(148, 163, 184, .16); }
.seller-sidebar .sidebar-link { color: #cbd5e1; background: transparent; border-color: transparent; box-shadow: none; }
.seller-sidebar .sidebar-link i { color: #8fa8bd; }
.seller-sidebar .sidebar-link:hover { color: #fff; background: #183d60; border-color: rgba(147, 197, 253, .12); }
.seller-sidebar .sidebar-link.active { color: #fff; background: #2563eb; border-color: #3b82f6; box-shadow: 0 7px 18px rgba(37, 99, 235, .2); }
.seller-sidebar .sidebar-link:hover i, .seller-sidebar .sidebar-link.active i { color: #fff; }
.admin-sidebar { background: #102a43; border-left-color: #1b4264; box-shadow: -10px 0 28px rgba(15, 23, 42, .16); }
.admin-sidebar .sidebar-head { border-bottom-color: rgba(148, 163, 184, .18); }
.admin-sidebar .sidebar-section-label { color: #8fa8bd; border-top-color: rgba(148, 163, 184, .16); }
.admin-sidebar .sidebar-link { color: #cbd5e1; background: transparent; border-color: transparent; box-shadow: none; }
.admin-sidebar .sidebar-link i { color: #8fa8bd; }
.admin-sidebar .sidebar-link:hover { color: #fff; background: #183d60; border-color: rgba(147, 197, 253, .12); }
.admin-sidebar .sidebar-link.active { color: #fff; background: #2563eb; border-color: #3b82f6; box-shadow: 0 7px 18px rgba(37, 99, 235, .2); }
.admin-sidebar .sidebar-link:hover i, .admin-sidebar .sidebar-link.active i { color: #fff; }
.app-content { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; margin-right: 276px; padding: 1.5rem 1.75rem 1rem; }
body.seller-dashboard-shell { overflow: hidden; background: #f4f7fb; }
body.seller-dashboard-shell .app-content { background: #f4f7fb; overflow: visible; height: auto; flex: 0 0 auto; }
body.seller-dashboard-shell .app-content .dashboard-card,
body.seller-dashboard-shell .app-content .mini-card,
body.seller-dashboard-shell .app-content .stats-box { border-radius: 14px; border-color: #e2e8f0; box-shadow: 0 5px 18px rgba(15, 23, 42, .05); }
body.seller-dashboard-shell .app-content .dashboard-card:hover,
body.seller-dashboard-shell .app-content .mini-card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
body.dashboard-shell .app-content {
  height: auto;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: 2.75rem;
}
body.dashboard-shell .app-content > main { flex: 0 0 auto; min-width: 0; min-height: max-content; }
body.seller-dashboard-shell .app-content { overflow-x: hidden; overflow-y: auto !important; height: auto; flex: 1 1 auto; padding-top: 2.25rem; direction: rtl; }
body.dashboard-shell { scrollbar-color: rgba(100,116,139,.72) transparent; }
body.dashboard-shell::-webkit-scrollbar-track,
body.dashboard-shell *::-webkit-scrollbar-track { background: transparent; }
body.dashboard-shell::-webkit-scrollbar-thumb,
body.dashboard-shell *::-webkit-scrollbar-thumb { border-radius: 999px; background-color: rgba(100,116,139,.72); }
body.dashboard-shell::-webkit-scrollbar-thumb:hover,
body.dashboard-shell *::-webkit-scrollbar-thumb:hover { background-color: rgba(71,85,105,.9); }
.sidebar-toggle { display: none; }
.public-header .navbar { border-bottom: 0; }
.inventory-supply-guide { margin-top: 1rem; padding: 1rem 1.25rem 1.1rem; border-top: 1px solid #e5e7eb; background: #fbfdff; }
.inventory-supply-guide-title { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .8rem; color: #1e3a8a; }
.inventory-supply-guide-title > i { flex: 0 0 auto; margin-top: .2rem; color: var(--primary); font-size: 1.05rem; }
.inventory-supply-guide-title > div { display: grid; gap: .15rem; }
.inventory-supply-guide-title strong { font-size: .88rem; }
.inventory-supply-guide-title span { color: #64748b; font-size: .76rem; line-height: 1.8; }
.inventory-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.inventory-guide-item { position: relative; display: grid; align-content: start; justify-items: start; gap: .35rem; min-height: 124px; padding: .8rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.inventory-guide-item strong { color: #1e3a8a; font-size: .78rem; line-height: 1.6; }
.inventory-guide-item > span:last-child { color: #64748b; font-size: .74rem; line-height: 1.85; }
.inventory-guide-step { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #1d4ed8; background: #eff6ff; font-size: .72rem; font-weight: 800; }
.inventory-guide-note { display: flex; align-items: flex-start; gap: .45rem; margin: .75rem 0 0; padding: .65rem .75rem; border: 1px solid #fde68a; border-radius: 10px; color: #854d0e; background: #fffbeb; font-size: .75rem; line-height: 1.8; }
.inventory-guide-note i { flex: 0 0 auto; margin-top: .15rem; }
.inventory-supply-table thead th { padding: .8rem .7rem; color: #334155; font-size: .75rem; line-height: 1.7; white-space: normal; vertical-align: middle; }
.inventory-supply-table tbody td { padding: .75rem .7rem; color: #334155; font-size: .78rem; line-height: 1.8; vertical-align: middle; }
.inventory-supply-table tbody td small { line-height: 1.7; }
@media (max-width: 767.98px) {
  .inventory-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-actions .btn { flex: 1; }
  .invoice-page-heading { align-items: stretch; flex-direction: column; }
  .invoice-page-heading .btn { width: 100%; }
  .invoice-workspace { padding: .75rem; }
  .mini-card { padding: 1rem; }
}

@media (max-width: 768px) {
  .invoice-items-table {
    min-width: 650px;
  }

  .invoice-items-table thead th,
  .invoice-items-table tbody td {
    padding: .28rem .35rem;
  }

  .invoice-items-table thead th:nth-child(1),
  .invoice-items-table tbody td:nth-child(1) {
    width: 34%;
  }

  .invoice-items-table thead th:nth-child(2),
  .invoice-items-table tbody td:nth-child(2) {
    width: 18%;
  }

  .invoice-items-table thead th:nth-child(3),
  .invoice-items-table tbody td:nth-child(3) {
    width: 12%;
  }

  .invoice-items-table thead th:nth-child(4),
  .invoice-items-table tbody td:nth-child(4) {
    width: 15%;
  }

  .invoice-items-table thead th:nth-child(5),
  .invoice-items-table tbody td:nth-child(5) {
    width: 21%;
  }

  .invoice-items-table .invoice-item-total-cell {
    min-width: 0;
  }

  .invoice-items-table .invoice-product-name {
    display: -webkit-box;
    min-height: 0;
    max-width: 100%;
    padding: .4rem .45rem;
    overflow: hidden;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .invoice-items-table .item-price,
  .invoice-items-table .item-quantity,
  .invoice-items-table .item-discount {
    width: 100%;
    min-width: 0;
    padding-inline: .35rem;
    font-size: .82rem;
  }

  .invoice-items-table .invoice-item-total-content {
    gap: .25rem;
    flex-wrap: wrap;
  }

  .invoice-items-table .invoice-item-total-cell strong {
    font-size: .74rem;
  }

  .invoice-items-table .invoice-item-total-cell .remove-item {
    padding: .3rem .45rem;
    font-size: .72rem;
  }
}

@media (max-width: 575.98px) {
  .invoice-items-table {
    min-width: 600px;
  }

  .invoice-items-table thead th,
  .invoice-items-table tbody td {
    padding-inline: .25rem;
  }

  .invoice-items-table .item-price,
  .invoice-items-table .item-quantity,
  .invoice-items-table .item-discount {
    font-size: .78rem;
  }
}

.profit-loss-chart-wrap { position: relative; min-height: 280px; }
.profit-loss-net-card.is-loss { border-inline-start: 4px solid #dc3545; }
.profit-loss-net-card.is-profit { border-inline-start: 4px solid #198754; }
.profit-loss-net-card.is-zero { border-inline-start: 4px solid #6c757d; }
.profit-loss-insights { padding-inline-start: 1.25rem; }
.profit-loss-insights li + li { margin-top: .5rem; }
.product-dossier-page .card-saas { break-inside: avoid; }

@media print {
  .product-dossier-page .card-saas { border: 1px solid #adb5bd !important; box-shadow: none !important; }
}

@media print {
  .no-print, .app-sidebar, .bottom-nav, .main-header { display: none !important; }
  .app-content { display: block !important; height: auto !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  .profit-loss-report .dashboard-card { border: 1px solid #adb5bd !important; box-shadow: none !important; break-inside: avoid; }
  .profit-loss-report { color: #000 !important; }
}

@media (min-width: 992px) {
  body.sidebar-collapsed .app-sidebar { width: 82px; padding-inline: .65rem; }
  body.sidebar-collapsed .app-sidebar .sidebar-brand > span:last-child,
  body.sidebar-collapsed .app-sidebar .sidebar-user > span:last-of-type,
  body.sidebar-collapsed .app-sidebar .sidebar-user-menu,
  body.sidebar-collapsed .app-sidebar .sidebar-section-label,
  body.sidebar-collapsed .app-sidebar .sidebar-link > span { display: none; }
  body.sidebar-collapsed .app-sidebar .sidebar-head { justify-content: center; padding-inline: 0; }
  body.sidebar-collapsed .app-sidebar .sidebar-brand { justify-content: center; }
  body.sidebar-collapsed .app-sidebar .sidebar-user { justify-content: center; padding-inline: .45rem; }
  body.sidebar-collapsed .app-sidebar .sidebar-link { justify-content: center; padding-inline: .5rem; }
  body.sidebar-collapsed .seller-sidebar .sidebar-head { flex-direction: column; gap: .5rem; }
  body.sidebar-collapsed .seller-sidebar .sidebar-account-status { width: 100%; justify-content: center; padding-inline: .45rem; }
  body.sidebar-collapsed .seller-sidebar .sidebar-account-status-copy,
  body.sidebar-collapsed .seller-sidebar .sidebar-account-status-arrow { display: none; }
  body.sidebar-collapsed .seller-sidebar .sidebar-account-status-icon { margin: 0; }
  body.sidebar-collapsed .seller-sidebar .seller-desktop-sidebar-toggle { position: static; width: 34px; height: 34px; min-height: 34px; flex-basis: 34px; transform: none; }
  body.sidebar-collapsed .app-content { margin-right: 82px; }
}

@media (max-width: 991.98px) {
  body.dashboard-shell { height: 100dvh; }
  body.seller-dashboard-shell { height: 100dvh; min-height: 0; }
  .app-sidebar { display: none; }
  .sidebar-mobile-open .app-sidebar { display: flex; top: 64px; bottom: 0; width: min(300px, 86vw); box-shadow: -12px 0 32px rgba(15, 23, 42, .18); }
  .sidebar-mobile-open .seller-sidebar { top: 0; }
  body.sidebar-mobile-open { overflow: hidden; }
  body.sidebar-mobile-open::after { content: ''; position: fixed; inset: 64px 0 0; z-index: 1010; background: rgba(15, 23, 42, .35); }
  body.seller-dashboard-shell.sidebar-mobile-open::after { inset: 0; }
  .sidebar-toggle { display: inline-flex; }
  .seller-desktop-sidebar-toggle { display: none; }
  .seller-sidebar-toggle.seller-mobile-sidebar-toggle { display: inline-flex; }
  .sidebar-toggle:focus + .public-nav-links, .sidebar-toggle:focus ~ .public-nav-links { display: none; }
  .app-content { margin-right: 0; padding: 1.25rem .85rem 1rem; }
  body.dashboard-shell .app-content {
    height: auto;
    flex-basis: auto;
    padding-bottom: 6rem;
  }
  body.seller-dashboard-shell .app-content { overflow-x: hidden; overflow-y: auto !important; flex: 1 1 auto; }
  .app-header-inner { padding-inline: .85rem; }
  .seller-utility-bar { top: .7rem; left: 0; }
  .seller-utility-inner { justify-content: flex-start; }
  .seller-user-copy, .seller-user-chevron { display: none; }
  .seller-user-trigger { width: 60px; padding: .15rem; }
  .seller-account-panel { min-width: 0; width: min(610px, calc(100vw - 1.4rem)); }
  .seller-account-identity { min-width: 0; flex: 1 1 42%; }
  .seller-account-identity-copy { min-width: 0; }
  .seller-account-status { min-width: 0; flex: 1 1 58%; }
  .seller-account-more { width: 60px; flex: 0 0 60px; }
  .seller-user-menu { left: 0; width: min(240px, calc(100vw - 1.4rem)); }
  .invoice-items-table-wrapper { overflow-x: auto; }
  .invoice-item-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .65rem 0; }
  .invoice-items-table .invoice-item-row { display: table-row; }
  .invoice-item-entry:not(.invoice-item-entry-card) .product-cell, .invoice-item .product-cell, .invoice-item-total-cell { grid-column: 1 / -1; }
  .invoice-item-entry .input-group { width: 100%; }
  .invoice-item-entry:not(.invoice-item-entry-card) .invoice-item-action { grid-column: 1 / -1; }
  .invoice-item-total-cell { justify-content: flex-start; }
  .invoice-item-total-box { flex: 1 1 auto; justify-content: flex-start; }
  .invoice-tax-card, .invoice-summary { padding: .75rem; }
  .invoice-summary > div { gap: .75rem; }
  .app-content .dashboard-hero-heading, .app-content .invoice-table-header, .app-content .list-toolbar { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .app-content .dashboard-hero-heading .page-actions, .app-content .list-actions { width: 100%; }
  .app-content .dashboard-hero-heading .btn, .app-content .list-actions .btn { width: 100%; }
  .app-content .table-responsive { overflow-x: auto; }
  .app-content .dashboard-card { min-width: 0; }
  .app-content .section-heading { flex-wrap: wrap; }
}

@media (max-width: 767.98px) {
  body.dashboard-shell .bottom-nav { display: flex; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .seller-utility-inner { justify-content: flex-end; }
  .seller-user-menu { left: 0; right: auto; }
  .public-header .public-user-menu-wrap .seller-user-menu { left: 0; right: auto; }
}

@media (max-width: 767.98px) {
  .public-header .navbar-brand { font-size: 1rem; }
  .public-account-actions { gap: .35rem; }
  .public-account-actions .btn { padding-inline: .65rem; }
  .seller-utility-bar { padding-inline: .7rem; }
  .seller-utility-inner { justify-content: flex-end; }
  .seller-account-panel { gap: .35rem; padding: .4rem; }
  .seller-account-identity { gap: .4rem; }
  .seller-account-identity .seller-user-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .seller-account-identity .seller-user-avatar i { font-size: 1.15rem; }
  .seller-account-overline, .seller-account-status-copy small { font-size: .55rem; }
  .seller-account-identity-copy strong, .seller-account-status-copy strong { font-size: .63rem; }
  .seller-account-identity-copy small { max-width: 105px; font-size: .56rem; }
  .seller-account-status { gap: .3rem; padding-inline: .3rem; }
  .seller-account-status-icon { width: 27px; height: 27px; flex-basis: 27px; font-size: .75rem; }
  .seller-account-days { min-width: 48px; padding-inline-start: .3rem; }
  .seller-account-days strong { font-size: .75rem; }
  .seller-account-days small { font-size: .5rem; }
}

@media (max-width: 575.98px) {
  .invoice-form-header { align-items:stretch; flex-direction:column; gap:1rem; padding:1rem; }
  .invoice-form-header-actions { justify-content:space-between; width:100%; }
  .invoice-form-header-actions .btn { flex:1; }
  .invoice-number-badge { justify-content:center; flex:1; }
  .invoice-form-header .app-page-title { font-size:1.35rem; }
  .invoice-form-header .app-page-subtitle, .invoice-form-header p { font-size:.8rem; }
  .invoice-section-heading { align-items:flex-start; }
  .invoice-items-heading { flex-wrap:wrap; }
  .invoice-items-count { margin-inline-start:auto; }
  .invoice-financial-section { padding:.75rem; }
  .invoice-summary-card { padding:.75rem; }
  .invoice-summary-card .invoice-payable-row { font-size:.92rem; }
  .invoice-summary-card .invoice-payable-row strong { font-size:1rem; }
  .invoice-items-card { width: 100%; }
  .invoice-item-entry .form-control, .invoice-item-row .form-control { min-width: 0; }
  .invoice-item-total-cell { gap: .35rem; }
  .invoice-item-total-box { min-height: 36px; padding-inline: .5rem; }
  .app-content { padding-inline: .65rem; }
  .seller-trend-row { grid-template-columns: 78px minmax(0, 1fr) 26px; gap: .4rem; }
  .seller-trend-track { height: 16px; }
  .seller-trend-label, .seller-trend-total { font-size: .7rem; }
  .app-content .dashboard-card, .app-content .mini-card { padding: .85rem !important; }
  .app-content .admin-stat-grid .stat-value { font-size: 1.15rem; }
  .app-content .admin-stat-grid .stat-label { font-size: .72rem; }
  .app-content .dashboard-card .table { min-width: 620px; }
  .pagination-panel { align-items: stretch; flex-direction: column; gap: .65rem; }
  .pagination-panel .pagination { justify-content: center; flex-wrap: wrap; }
  .page-actions { width: 100%; }
  .page-actions .btn { min-width: 0; }
  .report-bars { gap: .6rem; }
}

/* â”€â”€ Seller dashboard redesign â”€â”€ */
.seller-dashboard-v2 { display: grid; gap: 1rem; }
.seller-dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .25rem 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.seller-dashboard-hero .app-page-title { line-height: 1.8; }
.seller-dashboard-hero .app-page-subtitle { line-height: 1.8; }
.seller-dashboard-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; justify-content: flex-end; }
.seller-dashboard-hero-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .55rem .9rem; border-radius: 10px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.seller-dashboard-hero-actions .btn i { font-size: .95rem; line-height: 1; }
.seller-dashboard-hero-actions .btn-primary { box-shadow: 0 5px 12px rgba(37, 99, 235, .16); }
.seller-dashboard-hero-actions .btn-outline-warning { color: #9a6700; border-color: #e8c979; background: #fffdf5; }
.seller-dashboard-hero-actions .btn-outline-warning:hover,
.seller-dashboard-hero-actions .btn-outline-warning:focus-visible { color: #7a5100; border-color: #d6aa3b; background: #fff8e8; }
.seller-kpi-card { position: relative; overflow: hidden; min-height: 118px; padding: 1rem !important; }
.seller-kpi-card .seller-kpi-label { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.seller-kpi-card .seller-kpi-value { display: block; margin-top: .35rem; font-size: 1.25rem; font-weight: 900; color: var(--ink); line-height: 1.55; }
.seller-kpi-card small { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.seller-kpi-subscription { font-size: .95rem !important; }
.seller-focus-card { border: 1px solid rgba(37, 99, 235, .08); background: linear-gradient(180deg, #fff, #fbfdff); }
.invoice-status-chart-wrap { position: relative; height: 250px; margin: .15rem auto 0; padding: .35rem .25rem 0; }
.invoice-status-chart-wrap canvas { display: block; width: 100% !important; height: 100% !important; }
.seller-action-tile {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}
.seller-action-tile strong { display: block; margin-bottom: .25rem; font-size: .92rem; font-weight: 900; color: var(--ink); }
.seller-action-tile p { color: var(--muted); font-size: .8rem; }
.seller-action-tile span { color: var(--ink); font-size: .82rem; font-weight: 700; }
.seller-action-danger { border-color: rgba(239, 68, 68, .15); background: #fff7f7; }
.seller-action-warning { border-color: rgba(245, 158, 11, .2); background: #fffdf5; }
.seller-low-stock-list { display: grid; gap: .5rem; }
.seller-low-stock-item {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  background: #f8fafc;
}
.seller-low-stock-item strong { color: #dc2626; }
.seller-insight-compact-list { display: grid; gap: .75rem; }
.seller-insight-compact-item { padding: .8rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.seller-insight-compact-item strong { font-size: .92rem; color: var(--ink); }
.seller-insight-compact-item p { line-height: 1.8; }
.seller-top-list { display: grid; gap: .9rem; margin: 0; padding-inline-start: 1.1rem; }
.seller-top-list li { padding: .15rem 0 .85rem; border-bottom: 1px solid #eef2f7; }
.seller-top-list li:last-child { padding-bottom: .15rem; border-bottom: 0; }
.seller-top-list span { display: block; font-weight: 700; line-height: 1.8; color: var(--ink); }
.seller-top-list small { display: block; margin-top: .35rem; color: var(--muted); line-height: 1.8; }
.seller-recent-invoices-table th { white-space: nowrap; }
.seller-recent-invoices-table td { vertical-align: middle; }
.payment-status-paid,
.payment-status-partial,
.payment-status-unpaid { border: 1px solid transparent; font-weight: 700; }
.payment-status-paid { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.payment-status-partial { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.payment-status-unpaid { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }
.dashboard-section-label { display: flex; align-items: center; gap: .55rem; margin: 1.15rem 0 .75rem; color: var(--ink); font-size: .92rem; font-weight: 900; }
.dashboard-section-label::before { content: ''; width: 4px; height: 1.1rem; border-radius: 99px; background: var(--primary); }
@media (max-width: 991.98px) {
  .seller-dashboard-hero { flex-direction: column; align-items: stretch; }
  .seller-dashboard-hero-actions { justify-content: flex-start; }
  .seller-dashboard-hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
  .seller-dashboard-hero { padding: .25rem 0 1rem; }
  .seller-dashboard-hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: .5rem; }
  .seller-dashboard-hero-actions .btn { width: 100%; }
  .invoice-status-chart-wrap { height: 235px; }
  .seller-action-tile { flex-direction: column; }
  .seller-action-tile .btn { width: 100%; }
  .seller-kpi-card { min-height: 104px; }
}

@media (max-width: 575.98px) {
  .app-page-heading > .page-actions,
  .app-page-heading > .list-actions,
  .app-page-heading > .app-page-actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: .5rem; }
  .app-page-heading > .page-actions .btn,
  .app-page-heading > .list-actions .btn,
  .app-page-heading > .app-page-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .app-page-heading .btn,
  .seller-dashboard-hero-actions .btn { transition: none; }
}

/* â”€â”€ Print â”€â”€ */
@media print {
  .no-print { display: none !important; }
  body { background: white; padding: 0; }
  .navbar, .bottom-nav, footer { display: none !important; }
}

/* Customer history page */
.customer-history-filters { display:flex; flex-wrap:wrap; gap:.6rem; align-items:flex-end; direction:rtl; }
.customer-history-filters label { margin:0 .5rem 0 0; font-weight:700; }
.customer-history-filters .form-control-sm { min-width:140px; }
.customer-history-filters #dateRangeError { min-width:220px; margin-right:.5rem; font-size:.78rem; line-height:1.8; }
.customer-history-filter-card{margin-bottom:1rem;padding:1rem 1.15rem;border:1px solid #dbe4f0;border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.customer-history-filter-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.customer-history-filter-heading h2{margin:.15rem 0;color:#172554;font-size:1rem}.customer-history-filter-heading p{margin:0;color:#64748b;font-size:.75rem}.customer-history-filter-heading>i{color:#2563eb;font-size:1.25rem}
.customer-history-shortcuts{display:flex;gap:.45rem;flex-wrap:wrap;margin-bottom:.8rem}.customer-history-shortcuts .btn{border:1px solid #e2e8f0;color:#475569}.customer-history-shortcuts .btn:hover{border-color:#93c5fd;color:#1d4ed8;background:#eff6ff}
.customer-history-date-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:start;gap:.75rem;padding-top:.8rem;border-top:1px solid #eef2f7}.customer-history-date-field{min-width:0}.customer-history-date-field label{display:block;min-height:1.35rem;margin-bottom:.35rem;color:#475569;font-size:.75rem;font-weight:700}.persian-date-input{position:relative}.persian-date-input .form-control{padding-inline-end:2.35rem;cursor:pointer;background:#fbfdff}.persian-date-input>i{position:absolute;top:50%;right:.8rem;color:#64748b;pointer-events:none;transform:translateY(-50%)}.customer-history-field-error{min-height:1.55rem;padding-top:.3rem;color:#b91c1c;font-size:.75rem;line-height:1.6}.customer-history-field-error i{margin-left:.3rem}.customer-history-field-error:empty{visibility:hidden}.customer-history-filter-actions{display:flex;gap:.45rem;padding-top:1.7rem}.customer-history-filter-error{color:#b91c1c;font-size:.75rem}.customer-history-filter-error i{margin-left:.3rem}
.customer-history-invoices-table-wrapper{overflow-x:auto}.customer-history-invoices-table{min-width:760px}.customer-history-invoices-table th{padding:.75rem;color:#64748b;background:#f8fafc;font-size:.82rem;font-weight:800;white-space:nowrap}.customer-history-invoices-table td{padding:.85rem .75rem;color:#334155;font-size:.84rem;border-bottom:1px solid #eef2f7}.customer-history-invoices-table tbody tr:last-child td{border-bottom:0}.customer-history-invoice-link{color:#1d4ed8;font-weight:800;text-decoration:none}.customer-history-invoice-link:hover{text-decoration:underline}.customer-history-invoices-table td small{color:#64748b}.customer-history-invoice-actions{display:flex;flex-wrap:wrap;gap:.35rem}.customer-history-payment{display:inline-flex;padding:.3rem .55rem;border-radius:999px;font-size:.75rem;font-weight:800;white-space:nowrap}.customer-history-payment-paid{color:#166534;background:#dcfce7}.customer-history-payment-partial{color:#92400e;background:#fef3c7}.customer-history-payment-unpaid{color:#b91c1c;background:#fee2e2}
.customer-history-insight-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:1rem;margin-bottom:1rem}.customer-history-action-card{display:flex;align-items:center;gap:.8rem;border-color:#c7d2fe;background:linear-gradient(135deg,#f8faff,#fff)}.customer-history-action-card h2{margin:.2rem 0;font-size:1rem;color:#172554}.customer-history-action-card p{margin:0;color:#64748b;font-size:.75rem}.customer-history-action-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:13px;color:#7c3aed;background:#f5f3ff;font-size:1.2rem}.customer-history-payment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.customer-history-payment-grid>div{padding:.65rem;border-radius:11px;background:#f8fafc}.customer-history-payment-grid span{display:block;color:#64748b;font-size:.68rem}.customer-history-payment-grid strong{display:block;margin-top:.25rem;font-size:.82rem}
.persian-datepicker-wrapper{position:relative}.persian-datepicker{position:absolute;z-index:20;top:calc(100% + .4rem);right:0;display:none;width:260px;padding:.7rem;border:1px solid #dbe4f0;border-radius:14px;background:#fff;box-shadow:0 14px 35px rgba(15,23,42,.16)}.persian-datepicker.open{display:block}.persian-datepicker-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.persian-datepicker-header button{border:0;background:transparent;color:#2563eb;font-size:1.2rem}.persian-weekdays,.persian-days{display:grid;grid-template-columns:repeat(7,1fr);gap:.2rem;text-align:center}.persian-weekdays{margin-bottom:.25rem;color:#64748b;font-size:.68rem}.persian-days button{border:0;border-radius:7px;background:transparent;font-size:.75rem;padding:.3rem}.persian-days button:hover,.persian-days button.selected{color:#fff;background:#2563eb}
@media(max-width:900px){.customer-history-insight-row{grid-template-columns:1fr}.customer-history-date-form{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-history-filter-actions{grid-column:1/-1}}
@media(max-width:680px){.customer-history-date-form{grid-template-columns:1fr}.customer-history-filter-actions{grid-column:auto}.customer-history-filter-actions .btn{flex:1}.customer-history-action-card{align-items:flex-start;flex-wrap:wrap}.customer-history-action-card .ms-auto{width:100%;margin-inline-start:0!important}.customer-history-payment-grid{grid-template-columns:1fr}}
.customer-history-tabs{display:flex;gap:.35rem;margin:1rem 0;padding:.35rem;border:1px solid #dbe4f0;border-radius:14px;background:#f8fafc}.customer-history-tab{flex:1;border:0;border-radius:10px;padding:.75rem 1rem;color:#64748b;background:transparent;font-size:.88rem;font-weight:700;transition:background-color .2s,color .2s,box-shadow .2s}.customer-history-tab:hover{color:#1d4ed8;background:#eff6ff}.customer-history-tab.is-active{color:#fff;background:#2563eb;box-shadow:0 5px 12px rgba(37,99,235,.2)}.history-tab-panel{display:none;transition:opacity .2s ease}.history-tab-panel.is-tab-hidden{display:none!important}.history-tab-panel:not(.is-tab-hidden){display:block}.customer-history-card-title h2{font-size:1.12rem}.customer-history-card-title p,.customer-history-product-foot,.customer-history-period span,.customer-history-period em{font-size:.8rem}.customer-history-product-head{font-size:.92rem}.customer-history-period strong{font-size:1.05rem}.customer-history-metrics strong{font-size:1.35rem}.customer-history-metrics span,.customer-history-metrics small{font-size:.82rem}.customer-history-date-field label{font-size:.85rem}.customer-history-date-field .form-control{height:46px;font-size:.95rem}.customer-history-filter-heading h2{font-size:1.15rem}.customer-history-filter-heading p{font-size:.82rem}.customer-history-filter-error{font-size:.82rem}.persian-date-input .form-control{padding-inline-end:.85rem}.customer-history-tabs + .customer-history-layout{margin-top:.25rem}

/* Customer brief page redesign */
.customer-brief-page { max-width: 1120px; margin: 0 auto; display: grid; gap: 1rem; }
.customer-brief-top-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.customer-brief-card {
  padding: 1rem 1.1rem;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
.customer-brief-profile,
.customer-brief-summary { min-height: 100%; }
.customer-brief-profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.customer-brief-profile-head .btn { min-height: 36px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.customer-brief-profile-head h1 { margin: .15rem 0; color: #0f172a; font-size: 1.18rem; font-weight: 900; }
.customer-brief-profile-head p { margin: 0; color: #64748b; font-size: .82rem; }
.customer-profile-actions { margin-bottom: .85rem; }
.customer-brief-profile-list { padding-top: .35rem; }
.customer-brief-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.customer-brief-kicker { display: block; color: #64748b; font-size: .78rem; font-weight: 700; }
.customer-brief-header h1 { margin: .2rem 0; color: #0f172a; font-size: 1.35rem; font-weight: 900; }
.customer-brief-header p { margin: 0; color: #64748b; font-size: .86rem; }
.customer-brief-header-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.customer-brief-header-actions .btn { min-height: 40px; min-width: 100px; font-weight: 700; }
.customer-statement-filter { padding: 1rem 1.1rem; }
.customer-statement-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.customer-statement-summary > div { display: flex; min-width: 0; flex-direction: column; gap: .3rem; padding: .85rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.customer-statement-summary small { color: #64748b; font-size: .78rem; }
.customer-statement-summary strong { color: #0f172a; font-size: 1rem; font-weight: 850; }
.customer-statement-table { min-width: 0; }
.customer-statement-table .customer-brief-actions-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.customer-statement-table .customer-brief-actions-head h2 { margin: 0 0 .25rem; color: #0f172a; font-size: 1rem; font-weight: 800; }
.customer-statement-table .customer-brief-actions-head p { margin: 0 0 .8rem; color: #64748b; font-size: .82rem; }
.customer-statement-table .table { margin-bottom: 0; }
.customer-statement-table .table th,
.customer-statement-table .table td { white-space: nowrap; }
.customer-statement-table .table td:nth-child(2) { white-space: normal; }

.customer-brief-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.customer-brief-grid .customer-brief-card { min-height: 124px; display: flex; flex-direction: column; justify-content: center; }
.customer-brief-grid small { color: #64748b; font-size: .78rem; }
.customer-brief-grid strong { margin: .25rem 0; color: #0f172a; font-size: 1.25rem; font-weight: 900; line-height: 1.5; }
.customer-brief-grid span { color: #64748b; font-size: .78rem; }
.customer-brief-warning { border-color: #fed7aa; background: #fff7ed; }
.customer-brief-warning strong { color: #9a3412 !important; }
.customer-brief-success { border-color: #bbf7d0; background: #f0fdf4; }
.customer-brief-success strong { color: #166534 !important; }

.customer-brief-profile h2,
.customer-brief-actions h2 { margin: 0 0 .5rem; color: #0f172a; font-size: 1rem; font-weight: 800; }
.customer-brief-profile dl { margin: 0; display: grid; gap: .55rem; }
.customer-brief-profile dl > div { display: flex; justify-content: space-between; gap: .6rem; padding-bottom: .5rem; border-bottom: 1px solid #eef2f7; }
.customer-brief-profile dt { color: #64748b; font-size: .8rem; font-weight: 600; }
.customer-brief-profile dd { margin: 0; color: #0f172a; font-size: .84rem; font-weight: 800; text-align: left; }

.customer-brief-summary h2 { margin: 0 0 .55rem; color: #0f172a; font-size: 1rem; font-weight: 800; }
.customer-brief-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.customer-brief-summary-grid article { padding: .7rem .75rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.customer-brief-summary-grid article:nth-child(2) { border-color: #fde68a; background: #fffbeb; }
.customer-brief-summary-grid small { display: block; color: #64748b; font-size: .76rem; }
.customer-brief-summary-grid strong { display: block; margin: .2rem 0; color: #0f172a; font-size: 1.05rem; font-weight: 900; }
.customer-brief-summary-grid span { display: block; color: #64748b; font-size: .76rem; }

.customer-brief-actions-head p { margin: 0 0 .8rem; color: #64748b; font-size: .82rem; }
.customer-action-item {
  display: grid;
  gap: .55rem;
  margin-bottom: .7rem;
  padding: .85rem .9rem;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fafc;
}
.customer-action-item:last-child { margin-bottom: 0; }
.customer-action-item h3 { margin: 0; color: #0f172a; font-size: .95rem; font-weight: 800; }
.customer-action-item p { margin: 0; color: #334155; font-size: .82rem; line-height: 1.9; }
.customer-action-section { padding: .65rem .75rem; border-radius: 10px; background: rgba(255, 255, 255, .65); }
.customer-action-section > strong { display: block; margin-bottom: .2rem; color: #1e293b; font-size: .78rem; }
.customer-action-section ol { margin: .25rem 0 0; padding-right: 1.25rem; color: #334155; font-size: .82rem; line-height: 2; }
.customer-action-section li + li { margin-top: .15rem; }
.customer-action-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.customer-action-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, .65);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.customer-action-result { color: #0f172a !important; }
.customer-action-item .btn { justify-self: start; min-height: 38px; font-weight: 700; }

.customer-action-item-primary { border-color: #bfdbfe; background: #eff6ff; }
.customer-action-item-success { border-color: #bbf7d0; background: #f0fdf4; }
.customer-action-item-warning { border-color: #fde68a; background: #fffbeb; }
.customer-action-item-danger { border-color: #fecaca; background: #fef2f2; }
.customer-brief-actions-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.customer-brief-actions-head h2 { margin-bottom: .2rem; }
.customer-action-count { padding: .3rem .6rem; border-radius: 999px; color: #1d4ed8; background: #eff6ff; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.customer-action-item { gap: .7rem; padding: 1rem; }
.customer-action-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.customer-action-item-head h3 { margin-bottom: .45rem; }
.customer-action-toggle { flex: 0 0 auto; min-height: 34px; border-radius: 8px; font-size: .75rem; font-weight: 700; }
.customer-action-details { display: grid; gap: .6rem; }
.customer-action-details.is-collapsed { display: none; }
.customer-action-section { border: 1px solid rgba(203, 213, 225, .8); background: rgba(255, 255, 255, .72); }
.customer-action-outcome { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .65rem; padding: .7rem .75rem; border-radius: 10px; color: #334155; background: rgba(255, 255, 255, .7); font-size: .8rem; line-height: 1.8; }
.customer-action-outcome strong { color: #1e293b; font-size: .78rem; }
.customer-action-template { padding: .75rem; border: 1px dashed #94a3b8; border-radius: 10px; background: rgba(255, 255, 255, .78); }
.customer-action-template strong { display: block; margin-bottom: .35rem; color: #1e293b; font-size: .78rem; }
.customer-action-template p { margin-bottom: .65rem; color: #475569; white-space: pre-line; }
.customer-action-template .btn { min-height: 34px; border-radius: 8px; font-size: .75rem; font-weight: 700; }

@media (max-width: 991.98px) {
  .customer-brief-top-grid { grid-template-columns: 1fr; }
  .customer-brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .customer-brief-header { flex-direction: column; align-items: flex-start; }
  .customer-brief-header-actions { width: 100%; }
  .customer-brief-header-actions .btn { flex: 1; }
  .customer-brief-grid { grid-template-columns: 1fr; }
  .customer-brief-grid strong { white-space: normal; }
  .customer-brief-profile-head { align-items: stretch; flex-direction: column; }
  .customer-brief-summary-grid { grid-template-columns: 1fr; }
  .customer-brief-profile dl > div { flex-direction: column; gap: .2rem; }
  .customer-brief-profile dd { text-align: right; }
  .customer-action-meta { gap: .3rem; }
  .customer-action-chip { font-size: .7rem; }
  .customer-brief-actions-head, .customer-action-item-head { flex-direction: column; }
  .customer-action-toggle { width: 100%; }
  .customer-action-outcome { grid-template-columns: 1fr; gap: .15rem; }
  .customer-action-item .btn { width: 100%; }
}
@media(max-width:680px){.customer-history-tabs{overflow-x:auto}.customer-history-tab{min-width:125px;padding:.7rem .75rem;font-size:.82rem}}
.customer-history-period-change{display:flex;align-items:center;gap:.45rem;margin-top:.7rem;padding:.6rem .7rem;border-radius:10px;font-size:.72rem}.customer-history-period-change strong{margin-inline-start:auto}.customer-history-period-change.is-growth{color:#166534;background:#f0fdf4}.customer-history-period-change.is-decline{color:#991b1b;background:#fef2f2}.customer-history-tab{position:relative}.customer-history-tab::after{content:'';display:inline-block;width:.4rem;height:.4rem;margin-inline-start:.35rem;border-radius:50%;background:currentColor;opacity:0}.customer-history-tab[data-history-tab='invoices']::after{opacity:.75}.customer-history-tab[data-history-tab='recommendations']::after{opacity:.75}
.history-context-panel.is-tab-hidden{display:none!important}
.customer-value-reasons{display:grid;gap:.65rem;margin:0;padding:0}.customer-value-reasons>div{display:flex;justify-content:space-between;gap:.5rem;padding-bottom:.6rem;border-bottom:1px solid #eef2f7}.customer-value-reasons dt{color:#64748b;font-size:.78rem}.customer-value-reasons dd{max-width:65%;margin:0;color:#0f172a;font-size:.8rem;font-weight:800;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-value-key h2,.customer-value-valuable h2{color:#166534}.customer-value-risk h2{color:#b45309}.customer-value-inactive h2,.customer-value-low h2{color:#64748b}.customer-history-records dl{display:grid;gap:.65rem;margin:0}.customer-history-records dl>div{display:flex;justify-content:space-between;gap:.5rem;padding-bottom:.6rem;border-bottom:1px solid #eef2f7}.customer-history-records dt{color:#64748b;font-size:.78rem}.customer-history-records dd{max-width:65%;margin:0;color:#0f172a;font-size:.8rem;font-weight:800;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-history-message{display:flex;gap:.45rem;margin-top:.9rem;padding:.7rem;border-radius:10px;font-size:.77rem;line-height:1.8}.customer-history-message-success{color:#166534;background:#f0fdf4}.customer-history-message-warning{color:#92400e;background:#fffbeb}.customer-history-message-danger{color:#991b1b;background:#fef2f2}.customer-history-recommendations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.customer-history-recommendations article{padding:.85rem;border:1px solid #dbeafe;border-radius:13px;background:#fff}.customer-history-recommendations h3{margin:.35rem 0;font-size:.84rem}.customer-history-recommendations strong{color:#1d4ed8;font-size:.8rem}.customer-history-recommendations p{min-height:36px;color:#64748b;font-size:.74rem;line-height:1.8}.customer-history-recommendations .btn{width:100%;font-size:.73rem}.customer-history-invoices-table-wrapper{overflow-x:auto}
 .customer-history-profile-card{margin-bottom:1rem;padding:0;overflow:hidden;border-color:#dbe4f0}.customer-history-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.customer-history-profile-column{min-width:0;padding:1.15rem 1.25rem}.customer-history-profile-column + .customer-history-profile-column{border-inline-start:1px solid #e2e8f0}.customer-history-profile-column .customer-history-card-title{margin-bottom:.85rem}.customer-history-profile-column .customer-history-card-title>i{color:#475569;font-size:1.3rem}.customer-history-value-panel{background:linear-gradient(135deg,#f8fbff,#fff)}.customer-history-profile-column.customer-history-records{background:#fff}.customer-history-profile-column.customer-history-records dl{margin-bottom:.75rem}
  .customer-history-progress-block{margin:1rem 0}.customer-history-progress-label{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.45rem;color:#334155;font-size:.82rem}.customer-history-progress-label strong{color:#0f172a;font-size:.88rem}.customer-history-progress-track{height:14px;overflow:hidden;border:1px solid rgba(15,23,42,.14);border-radius:999px;background:#d7dee8;box-shadow:inset 0 1px 2px rgba(15,23,42,.14)}.customer-history-progress-fill{display:block;height:100%;border-radius:inherit;transition:width .35s ease}.customer-history-activity-high{background:#20b486;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.customer-history-activity-medium{background:#22a6b3;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.customer-history-activity-low{background:#e0a83b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.customer-history-activity-risk{background:#e07a68;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.customer-history-score-help{margin:.3rem 0 0!important;color:#475569;font-size:.8rem!important}.customer-history-settlement-card{margin-bottom:1rem}.customer-history-settlement-card .customer-history-card-title{margin-bottom:.75rem}.customer-history-settlement-card .customer-history-card-title>i{color:#047857}.customer-history-settlement-progress{height:14px}.customer-history-payment-paid{background:#35a66f;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.customer-history-payment-partial{background:#69b978;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.customer-history-payment-unpaid{background:#a8d5b5;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.customer-history-settlement-caption{display:flex;justify-content:space-between;gap:1rem;margin-top:.55rem;color:#475569;font-size:.82rem}.customer-history-settlement-caption strong{color:#1e293b}.customer-history-invoice-payment{min-width:135px}.customer-history-invoice-progress{height:8px;margin-top:.35rem;overflow:hidden;border:1px solid rgba(15,23,42,.1);border-radius:999px;background:#d7dee8}.customer-history-invoice-progress-fill{display:block;height:100%;border-radius:inherit;background:#35a66f}.customer-history-invoice-payment small{display:block;margin-top:.2rem;color:#475569;font-size:.7rem}
 .customer-history-payment-chip.customer-history-payment-paid{color:#17613f;background:#e2f5e9}.customer-history-payment-chip.customer-history-payment-partial{color:#397548;background:#edf8df}.customer-history-payment-chip.customer-history-payment-unpaid{color:#4f8060;background:#f0f8f2}
@media(max-width:900px){.customer-history-grid{grid-template-columns:1fr;gap:.85rem}.customer-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.customer-history-recommendations{grid-template-columns:1fr}.customer-history-actions{width:100%}.customer-history-actions .btn{flex:1}.customer-history-card{padding:1.05rem}}
@media(max-width:680px){.customer-history-header{flex-direction:column;align-items:flex-start;padding:1rem}.customer-history-identity h1{font-size:1.13rem}.customer-history-metrics{grid-template-columns:1fr;gap:.65rem}.customer-history-card{padding:.95rem}.customer-history-card-title{gap:.7rem;margin-bottom:.75rem;padding-bottom:.6rem}.customer-history-card-title>i{width:34px;height:34px;font-size:1rem}.customer-history-card-title h2{font-size:.96rem}.customer-history-card-title p{font-size:.76rem}.customer-value-score{font-size:1.18rem}.customer-value-reasons li{font-size:.8rem}.customer-history-actions{gap:.4rem;width:100%}.customer-history-actions .btn{min-height:40px}}
@media(max-width:680px){.customer-history-invoices-table{min-width:0}.customer-history-invoices-table thead{display:none}.customer-history-invoices-table,.customer-history-invoices-table tbody,.customer-history-invoices-table tr,.customer-history-invoices-table td{display:block;width:100%}.customer-history-invoices-table tr{margin-bottom:.75rem;padding:.7rem;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.customer-history-invoices-table td{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;border:0;text-align:left}.customer-history-invoices-table td::before{content:attr(data-label);color:#64748b;font-weight:700}.customer-history-invoice-actions{justify-content:flex-end}.customer-history-filter-actions{padding-top:0}.customer-history-field-error{min-height:1.55rem}}
.customer-history-settlement-caption{flex-wrap:wrap}.customer-history-invoice-payment{min-width:110px}
/* customer-history layout anchor: final rewrite will be applied below */
 .customer-history-layout{display:block}.customer-history-main{display:flex;flex-direction:column;gap:1rem}.customer-history-card{padding:1.15rem;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}

/* Final customer-history progress colors */
.customer-history-page .customer-history-settlement-progress .customer-history-payment-fill{background:#35a66f!important}
.customer-history-page .customer-history-invoice-progress .customer-history-invoice-progress-fill{background:#35a66f!important}
.customer-history-page .customer-history-activity-high{background:#20b486!important}
.customer-history-page .customer-history-activity-medium{background:#22a6b3!important}
.customer-history-page .customer-history-activity-low{background:#e0a83b!important}
.customer-history-page .customer-history-activity-risk{background:#e07a68!important}

.cheque-register-page {
  min-width: 0;
}

.cheque-page-heading,
.cheque-section-heading,
.cheque-list-heading {
  min-width: 0;
}

.cheque-page-heading .app-page-subtitle {
  max-width: 760px;
  line-height: 1.8;
}

.cheque-register-page .cheque-page-heading {
  padding: 8px 0 16px;
  border-bottom: 1px solid #e4eaf2;
}

.cheque-primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  border: 1px solid #0f4e53;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #176b70, #104f55);
  box-shadow: 0 5px 12px rgba(16, 79, 85, .2);
  font-weight: 800;
  white-space: nowrap;
}

.cheque-primary-action:hover,
.cheque-primary-action:focus-visible {
  border-color: #0b3e43;
  color: #fff;
  background: #0f4e53;
  box-shadow: 0 7px 16px rgba(16, 79, 85, .28);
}

.cheque-access-note {
  border-color: #d7e5f7;
  color: #23466c;
  background: #f3f8ff;
}

.cheque-summary-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border-color, #e8edf3);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 38, 62, .05);
}

.cheque-summary-primary,
.cheque-summary-closed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
  background: #f5f8fc;
}

.cheque-summary-note {
  margin: -4px 0 12px;
  line-height: 1.7;
}

.cheque-summary-primary > span:first-child,
.cheque-summary-closed > span:first-child {
  grid-column: 1;
  grid-row: 1;
}

.cheque-summary-primary > strong,
.cheque-summary-closed > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #173b63;
  font-size: 1.1rem;
  white-space: nowrap;
}

.cheque-summary-primary > span:last-child,
.cheque-summary-closed > span:last-child {
  grid-column: 1;
  grid-row: 2;
}

.cheque-summary-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cheque-summary-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: #fff;
}

.cheque-summary-item strong {
  color: #173b63;
  font-size: 1rem;
}

.cheque-summary-item > span,
.cheque-summary-closed > span,
.cheque-summary-primary > span {
  overflow-wrap: anywhere;
}

.cheque-filter-card .form-control,
.cheque-filter-card .form-select {
  min-height: 44px;
  border-radius: 10px;
}

.cheque-filter-heading,
.cheque-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cheque-filter-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.cheque-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.cheque-filter-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  margin-top: 16px;
}

.cheque-filter-primary-grid > div,
.cheque-filter-grid > div,
.cheque-filter-date-grid > div {
  min-width: 0;
}

.cheque-filter-primary-grid .form-label,
.cheque-filter-grid .form-label,
.cheque-filter-date-grid .form-label {
  color: #334155;
  font-weight: 700;
}

.cheque-filter-attention {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  color: #334155;
  background: #f8fafc;
  font-weight: 600;
  cursor: pointer;
}

.cheque-filter-attention .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.cheque-filter-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  background: #f0fdf4;
  font-size: .78rem;
  font-weight: 700;
}

.cheque-filter-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cheque-filter-actions {
  justify-content: flex-start;
}

.cheque-filter-submit {
  min-width: 150px;
  border: 1px solid #0f4e53;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #176b70, #104f55);
  box-shadow: 0 4px 10px rgba(16, 79, 85, .18);
  font-weight: 800;
}

.cheque-filter-submit:hover,
.cheque-filter-submit:focus-visible {
  border-color: #0b3e43;
  color: #fff;
  background: #0f4e53;
}

.cheque-filter-clear {
  min-width: 140px;
  border-color: #94a3b8;
  color: #334155;
  background: #fff;
  font-weight: 700;
}

.cheque-filter-clear:hover,
.cheque-filter-clear:focus-visible {
  border-color: #64748b;
  color: #1e293b;
  background: #f1f5f9;
}

.cheque-table {
  width: 100%;
  table-layout: fixed;
}

.cheque-register-page .cheque-table .cheque-status-collected {
  border-color: #5ebc8d;
  color: #0b4d2c;
  background: #c9f0d9;
  box-shadow: inset 0 0 0 1px rgba(11, 77, 44, .06);
}

.cheque-table th,
.cheque-table td {
  min-width: 0;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.cheque-table th {
  font-size: .86rem;
  white-space: normal;
}

.cheque-table thead th {
  padding: 12px 10px;
  border-bottom: 1px solid #d5deea;
  color: #334155;
  background: #f3f6fa;
  font-weight: 800;
}

.cheque-table td {
  padding: 12px 10px;
  border-color: #e8edf3;
  color: #26364a;
  line-height: 1.7;
}

.cheque-table tbody tr:hover > * {
  background-color: #f8fbff;
}

.cheque-table-primary-value,
.cheque-table-secondary-value {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cheque-table-primary-value {
  color: #172b45;
  font-weight: 700;
}

.cheque-table-secondary-value {
  margin-top: 3px;
  color: #52657b;
  font-size: .84rem;
}

.cheque-register-page .cheque-table .badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.4;
}

.cheque-register-page .cheque-table .badge-pending {
  border-color: #f3d28b;
  color: #713f12;
  background: #fff7df;
}

.cheque-register-page .cheque-table .badge-paid {
  border-color: #86d6aa;
  color: #14532d;
  background: #eaf9f0;
}

.cheque-register-page .cheque-table .badge-overdue {
  border-color: #f3a5a5;
  color: #7f1d1d;
  background: #fff0f0;
}

.cheque-register-page .cheque-table .badge-draft {
  border-color: #cbd5e1;
  color: #334155;
  background: #f1f5f9;
}

.cheque-register-page .btn-outline-primary {
  min-height: 38px;
  border-color: #9ab8e8;
  color: #174a8b;
  background: #fff;
  font-weight: 700;
}

.cheque-register-page .btn-outline-primary:hover,
.cheque-register-page .btn-outline-primary:focus-visible {
  border-color: #174a8b;
  color: #fff;
  background: #174a8b;
}

.cheque-register-page a:focus-visible,
.cheque-register-page button:focus-visible,
.cheque-register-page input:focus-visible,
.cheque-register-page select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
}

.cheque-due-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cheque-due-cell .badge {
  white-space: normal;
}

.cheque-amount {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .cheque-filter-primary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cheque-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cheque-filter-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cheque-list-card {
    padding: 16px;
  }

  .cheque-table,
  .cheque-table tbody {
    display: block;
    width: 100%;
  }

  .cheque-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cheque-table tbody {
    display: grid;
    gap: 12px;
  }

  .cheque-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
  }

  .cheque-table td {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    overflow-wrap: anywhere;
  }

  .cheque-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: .75rem;
    font-weight: 500;
  }

  .cheque-table td[data-label="طرف مقابل"],
  .cheque-table td[data-label="نوع چک"],
  .cheque-table td[data-label="وضعیت"],
  .cheque-table td[data-label="جزئیات"] {
    grid-column: 1 / -1;
  }

  .cheque-table td[data-label="شناسهٔ صیادی"] bdi {
    direction: ltr;
    word-break: break-all;
  }
}

@media (max-width: 575.98px) {
  .cheque-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cheque-filter-date-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cheque-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cheque-filter-actions .btn {
    width: 100%;
  }

  .cheque-filter-actions .cheque-filter-submit {
    order: 0;
  }

  .cheque-filter-actions .cheque-filter-clear {
    order: 1;
  }

  .cheque-primary-action {
    width: 100%;
    justify-content: center;
  }

  .cheque-summary-breakdown {
    grid-template-columns: minmax(0, 1fr);
  }

  .cheque-list-card {
    padding: 12px;
  }
}

.cheque-form-page,
.cheque-details-page {
  max-width: 1280px;
  min-width: 0;
  margin-inline: auto;
}

.cheque-form-shell {
  max-width: 1040px;
  min-width: 0;
  margin-inline: auto;
}

.cheque-back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: #355a7b;
  font-weight: 600;
}

.cheque-back-link:hover {
  color: #1d4ed8;
}

.cheque-form-heading,
.cheque-detail-heading {
  min-width: 0;
}

.cheque-form-heading .app-page-subtitle {
  max-width: 720px;
  line-height: 1.8;
}

.cheque-form-note {
  border-color: #d7e5f7;
  color: #23466c;
  background: #f3f8ff;
}

.cheque-form-card,
.cheque-detail-card,
.cheque-operation-card,
.cheque-history-card {
  border: 1px solid var(--border-color, #e8edf3);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 38, 62, .05);
}

.cheque-form-section {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #e8edf3;
}

.cheque-form-section legend {
  float: none;
  width: auto;
  margin-bottom: 16px;
  padding: 0;
  color: #173b63;
  font-weight: 700;
}

.cheque-form-section-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cheque-form-card {
  border-color: #dce5ef;
  box-shadow: 0 12px 32px rgba(20, 38, 62, .07);
}

.cheque-form-section legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #173b63;
  font-size: .98rem;
}

.cheque-form-section legend::before {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: #2563a6;
  content: "";
}

.cheque-form-page .form-control,
.cheque-form-page .form-select,
.cheque-operation-card .form-control,
.cheque-operation-card .form-select {
  min-height: 44px;
  border-radius: 10px;
  border-color: #cbd5e1;
  color: #1e293b;
  background-color: #fff;
}

.cheque-form-page .form-label,
.cheque-operation-card .form-label {
  color: #334155;
  font-weight: 700;
}

.cheque-form-page .form-control:focus,
.cheque-form-page .form-select:focus,
.cheque-operation-card .form-control:focus,
.cheque-operation-card .form-select:focus {
  border-color: #2563a6;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 166, .16);
}

.cheque-validation-summary:empty {
  display: none;
}

.cheque-form-page .field-validation-error {
  display: block;
  margin-top: 6px;
  color: #9f1d1d;
  font-weight: 600;
}

.cheque-form-page textarea.form-control {
  min-height: 104px;
}

.cheque-form-actions .btn {
  min-height: 44px;
  min-width: 120px;
  font-weight: 700;
}

.cheque-form-actions .btn-outline-secondary {
  border-color: #94a3b8;
  color: #334155;
  background: #fff;
}

.cheque-form-actions .btn-outline-secondary:hover,
.cheque-form-actions .btn-outline-secondary:focus-visible {
  border-color: #475569;
  color: #1e293b;
  background: #f1f5f9;
}

.cheque-detail-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.cheque-detail-card strong,
.cheque-extra-details > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cheque-detail-heading h1 {
  overflow-wrap: anywhere;
}

.cheque-detail-heading {
  padding: 18px 20px;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f6f9fd 100%);
}

.cheque-details-page > .row[aria-label="اطلاعات چک"] {
  margin-inline: 0;
}

.cheque-detail-actions {
  min-width: 0;
}

.cheque-detail-actions .badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #d6e0ea;
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
}

.cheque-extra-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.cheque-operation-card .form-label {
  margin-bottom: 8px;
}

.cheque-operation-card .btn {
  min-height: 44px;
  font-weight: 700;
}

.cheque-operation-card .btn-outline-primary {
  border-color: #9ab8e8;
  color: #174a8b;
  background: #fff;
}

.cheque-operation-card .btn-outline-primary:hover,
.cheque-operation-card .btn-outline-primary:focus-visible {
  border-color: #174a8b;
  color: #fff;
  background: #174a8b;
}

.cheque-operation-card .btn-accent {
  color: #fff;
  background: #155e63;
}

.cheque-operation-card .btn-accent:hover,
.cheque-operation-card .btn-accent:focus-visible {
  color: #fff;
  background: #10494d;
}

.cheque-event-list .list-group-item {
  padding-block: 16px;
  border-color: #e8edf3;
}

.cheque-event-list time {
  color: #64748b;
  font-size: .82rem;
}

.cheque-event-list .list-group-item {
  padding-inline: 14px;
  border-inline-start: 3px solid #cbd5e1;
  background: #fff;
}

.cheque-event-list .list-group-item + .list-group-item {
  margin-top: 8px;
}

.cheque-event-list .list-group-item strong {
  color: #173b63;
}

.cheque-event-list .list-group-item p {
  overflow-wrap: anywhere;
  line-height: 1.8;
}

@media (max-width: 575.98px) {
  .cheque-detail-heading {
    padding: 16px;
  }

  .cheque-detail-actions {
    width: 100%;
  }

  .cheque-detail-actions > .btn {
    flex: 1 1 auto;
  }

  .cheque-form-actions {
    flex-direction: column-reverse;
  }

  .cheque-form-actions .btn {
    width: 100%;
  }
}

.seller-command-center {
  --seller-ink: #1e302d;
  --seller-muted: #71807b;
  --seller-line: #e4eae5;
  --seller-paper: #f4f6f2;
  --seller-green: #147d70;
  --seller-green-dark: #103d38;
  --seller-amber: #d6a75e;
  display: grid;
  gap: 1.5rem;
  max-width: 1500px;
  margin-inline: auto;
  padding-block: 1.4rem 3rem;
  color: var(--seller-ink);
  font-family: Vazirmatn, sans-serif;
}

.seller-command-center *,
.seller-command-center *::before,
.seller-command-center *::after { box-sizing: border-box; }

.seller-command-center a { text-decoration: none; }

.seller-command-center a:focus-visible,
.seller-command-center button:focus-visible,
.seller-command-center summary:focus-visible {
  outline: 3px solid rgba(20, 125, 112, .38);
  outline-offset: 3px;
}

.seller-command-header {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 24px;
  color: #f4f7f3;
  background: radial-gradient(ellipse at 15% 120%, rgba(214, 167, 94, .2), transparent 45%), linear-gradient(115deg, #173e38, #102c29 78%);
  box-shadow: 0 20px 48px rgba(19, 53, 47, .14);
}

.seller-command-header::after {
  position: absolute;
  inset-inline-start: 34%;
  top: -135px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .025), 0 0 0 78px rgba(255, 255, 255, .02);
  content: "";
  pointer-events: none;
}

.seller-command-heading,
.seller-command-primary { position: relative; z-index: 1; }
.seller-command-heading { min-width: 0; }

.seller-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .55rem;
  color: #c8d9d1;
  font-size: .8rem;
  font-weight: 650;
}

.seller-command-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.45;
}

.seller-command-heading p { margin: .45rem 0 0; color: #c4d2cc; font-size: .94rem; }

.seller-primary-action,
.seller-secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #16342e;
  background: #e6c180;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}

.seller-primary-action:hover,
.seller-secondary-action:hover { color: #16342e; background: #f0d39c; transform: translateY(-1px); }
.seller-primary-action i { font-size: 1.1rem; }

.seller-command-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding: .25rem 0;
}

.seller-command-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  border: 1px solid var(--seller-line);
  border-radius: 10px;
  color: #43544e;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.seller-command-links a:hover { border-color: #a9c9be; color: var(--seller-green-dark); background: #f5faf7; }
.seller-command-links a i { color: var(--seller-green); font-size: 1rem; }

.seller-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--seller-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 57, 48, .035);
}

.seller-overview-item { display: flex; min-width: 0; align-items: center; gap: .9rem; padding: 1.15rem 1.35rem; }
.seller-overview-item + .seller-overview-item { border-inline-start: 1px solid var(--seller-line); }

.seller-overview-icon,
.seller-panel-icon,
.seller-guide-summary-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--seller-green);
  background: #eaf4ef;
  font-size: 1.05rem;
}

.seller-overview-copy { display: grid; min-width: 0; gap: .05rem; }
.seller-overview-copy strong { font-size: 1.35rem; font-weight: 850; line-height: 1.35; }
.seller-overview-copy > span { font-size: .83rem; font-weight: 750; }
.seller-overview-copy small { color: var(--seller-muted); font-size: .72rem; }

.seller-work-area,
.seller-analysis-area,
.seller-insights-area,
.seller-recent-area { display: grid; gap: .9rem; }

.seller-section-heading,
.seller-panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seller-section-heading { padding-inline: .1rem; }
.seller-section-heading > div { display: grid; gap: .12rem; }
.seller-section-kicker { color: var(--seller-green); font-size: .72rem; font-weight: 800; letter-spacing: .01em; }
.seller-section-heading h2 { margin: 0; color: var(--seller-ink); font-size: 1.18rem; font-weight: 800; }
.seller-section-note { color: var(--seller-muted); font-size: .75rem; }

.seller-work-grid { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: 1rem; }
.seller-work-panel,
.seller-chart-panel,
.seller-insight-panel {
  min-width: 0;
  border: 1px solid var(--seller-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 57, 48, .035);
}

.seller-work-panel { padding: 1.25rem; }
.seller-receivables-panel { display: flex; min-height: 228px; flex-direction: column; align-items: flex-start; color: #f2f7f3; border-color: #173e38; background: linear-gradient(145deg, #1b5148, #123b35); }
.seller-receivables-panel .seller-panel-icon { color: #f0d39c; background: rgba(255, 255, 255, .1); }
.seller-receivables-panel .seller-panel-label { color: #d0e0d8; }
.seller-panel-topline { display: flex; align-items: center; gap: .65rem; }
.seller-panel-label { color: #53645d; font-size: .78rem; font-weight: 750; }
.seller-receivables-value { display: block; margin: .75rem 0 .2rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 850; line-height: 1.35; direction: rtl; }
.seller-receivables-value small { color: #d0e0d8; font-size: .8rem; font-weight: 650; }
.seller-receivables-panel > p { margin: .2rem 0 .9rem; color: #d0e0d8; font-size: .82rem; }
.seller-receivables-panel > p strong { color: #fff; }
.seller-panel-link,
.seller-text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--seller-green); font-size: .78rem; font-weight: 800; }
.seller-panel-link { margin-top: auto; color: #f0d39c; }
.seller-panel-link:hover { color: #fff; }
.seller-text-link { flex: 0 0 auto; }
.seller-text-link:hover { color: #0d5f55; }

.seller-stock-panel { display: flex; flex-direction: column; justify-content: center; }
.seller-stock-panel .seller-panel-heading-row { align-items: flex-start; }
.seller-panel-description { margin: .35rem 0 0 2.9rem; color: var(--seller-muted); font-size: .72rem; }
.seller-stock-list { display: grid; gap: 0; margin: 1rem 0 0; padding: 0; list-style: none; }
.seller-stock-list li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .75rem; padding: .62rem 0; border-top: 1px solid #edf1ed; font-size: .82rem; }
.seller-stock-list li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-stock-list li strong { flex: 0 0 auto; color: #9c5d27; font-size: .88rem; }
.seller-stock-list li strong small { color: var(--seller-muted); font-size: .68rem; font-weight: 600; }
.seller-list-footnote { margin: .4rem 0 0; color: var(--seller-muted); font-size: .68rem; }
.seller-empty-inline { display: flex; align-items: center; gap: .55rem; margin: 1rem 0 0; color: var(--seller-muted); font-size: .8rem; }
.seller-empty-inline i { color: var(--seller-green); }

.seller-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); gap: 1rem; }
.seller-chart-panel { padding: 1.2rem; }
.seller-panel-heading-row h3,
.seller-insight-panel h3 { margin: 0; color: var(--seller-ink); font-size: .95rem; font-weight: 800; }
.seller-panel-heading-row h3 i,
.seller-insight-panel h3 i { margin-inline-end: .35rem; color: var(--seller-green); }
.seller-panel-heading-row p { margin: .25rem 0 0; color: var(--seller-muted); font-size: .7rem; }
.seller-chart-mark { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--seller-green); background: #eaf4ef; }
.seller-chart-mark-muted { color: #8b6837; background: #f8f1e5; }
.seller-chart-frame { position: relative; min-width: 0; margin-top: 1rem; }
.seller-sales-chart-frame { height: 280px; }
.seller-status-chart-frame { max-height: 300px; overflow-y: auto; }
.seller-native-chart { display: block; width: 100%; overflow: visible; font-family: Vazirmatn, sans-serif; }
.seller-sales-svg { height: 100%; }
.seller-status-svg { min-height: 280px; }
.seller-chart-gridline { stroke: #e8eeea; stroke-dasharray: 3 5; stroke-width: 1; }
.seller-chart-axis { stroke: #cbd6cf; stroke-width: 1; }
.seller-chart-axis-label,
.seller-chart-month-label { fill: #75827b; font-size: 11px; }
.seller-sales-area { fill: rgba(20, 125, 112, .11); }
.seller-sales-line { fill: none; stroke: #147d70; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.seller-sales-point { fill: #fff; stroke: #147d70; stroke-width: 2.5; }
.seller-status-label { fill: #46564f; font-size: 12px; }
.seller-status-bar { fill: #647f73; }
.seller-status-count { fill: #46564f; font-size: 11px; }
.seller-chart-data-details { margin-top: .55rem; color: var(--seller-green); font-size: .72rem; }
.seller-chart-data-details summary { width: fit-content; cursor: pointer; font-weight: 750; }
.seller-data-table-wrap { margin-top: .55rem; overflow-x: auto; }
.seller-data-table { width: 100%; border-collapse: collapse; color: #43544e; font-size: .75rem; }
.seller-data-table th,
.seller-data-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--seller-line); text-align: right; }
.seller-data-table thead th { color: var(--seller-muted); font-weight: 750; }

.seller-empty-chart { display: grid; min-height: 230px; align-content: center; justify-items: center; gap: .35rem; padding: 1rem; color: var(--seller-muted); text-align: center; }
.seller-empty-chart > i { margin-bottom: .25rem; color: #9aafa5; font-size: 1.6rem; }
.seller-empty-chart strong { color: var(--seller-ink); font-size: .87rem; }
.seller-empty-chart span { font-size: .74rem; }

.seller-insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.seller-insight-panel { padding: 1.15rem 1.25rem; }
.seller-insight-panel .seller-panel-heading-row { padding-bottom: .8rem; border-bottom: 1px solid var(--seller-line); }
.seller-ranking-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: seller-ranking; }
.seller-ranking-list li { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: .15rem; padding: .72rem 0; border-bottom: 1px solid #edf1ed; counter-increment: seller-ranking; }
.seller-ranking-list li:last-child { border-bottom: 0; }
.seller-ranking-name { display: flex; min-width: 0; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 800; }
.seller-ranking-name::before { display: grid; flex: 0 0 auto; place-items: center; width: 23px; height: 23px; border-radius: 8px; color: var(--seller-green); background: #eaf4ef; content: counter(seller-ranking, persian); font-size: .68rem; }
.seller-ranking-detail { padding-inline-start: 1.95rem; color: var(--seller-muted); font-size: .69rem; }

.seller-invoice-feed { overflow: hidden; border: 1px solid var(--seller-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(32, 57, 48, .035); }
.seller-invoice-row { display: grid; min-width: 0; grid-template-columns: 42px minmax(125px, 1.3fr) minmax(105px, .8fr) minmax(120px, 1fr) minmax(100px, .8fr) 16px; align-items: center; gap: .85rem; padding: .85rem 1rem; color: var(--seller-ink); transition: background-color .16s ease; }
.seller-invoice-row + .seller-invoice-row { border-top: 1px solid #edf1ed; }
.seller-invoice-row:hover { color: var(--seller-ink); background: #f7faf7; }
.seller-invoice-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--seller-green); background: #eaf4ef; }
.seller-invoice-main { display: grid; min-width: 0; gap: .12rem; }
.seller-invoice-main strong { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.seller-invoice-main small,
.seller-invoice-date { color: var(--seller-muted); font-size: .71rem; }
.seller-invoice-amount { font-size: .78rem; font-weight: 800; white-space: nowrap; }
.seller-invoice-amount small { color: var(--seller-muted); font-size: .67rem; font-weight: 600; }
.seller-invoice-status { justify-self: start; padding: .28rem .55rem; border: 1px solid #e2e9e3; border-radius: 999px; color: #52635b; background: #f7f9f6; font-size: .67rem; font-weight: 700; white-space: nowrap; }
.seller-invoice-chevron { color: #9ba9a2; font-size: .75rem; }

.seller-empty-feed { display: flex; align-items: center; gap: .9rem; padding: 1.25rem; border: 1px dashed #cfdad2; border-radius: 16px; background: #fbfcfa; }
.seller-empty-feed > i { color: #8da298; font-size: 1.4rem; }
.seller-empty-feed > div { display: grid; gap: .15rem; }
.seller-empty-feed strong { font-size: .84rem; }
.seller-empty-feed span { color: var(--seller-muted); font-size: .72rem; }
.seller-secondary-action { min-height: 38px; margin-inline-start: auto; padding: .45rem .75rem; color: #fff; background: var(--seller-green); font-size: .73rem; }
.seller-secondary-action:hover { color: #fff; background: #0e655b; }

.seller-onboarding-guide,
.seller-guide-reopen { border: 1px solid var(--seller-line); border-radius: 16px; background: #fff; }
.seller-onboarding-guide { overflow: hidden; }
.seller-onboarding-guide > summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.seller-onboarding-guide > summary::-webkit-details-marker { display: none; }
.seller-guide-summary-copy { display: grid; gap: .15rem; }
.seller-guide-summary-copy strong { font-size: .84rem; }
.seller-guide-summary-copy small,
.seller-guide-progress-copy { color: var(--seller-muted); font-size: .7rem; }
.seller-onboarding-guide progress { grid-column: 2 / -1; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; appearance: none; background: #e9eee9; }
.seller-onboarding-guide progress::-webkit-progress-bar { border-radius: 99px; background: #e9eee9; }
.seller-onboarding-guide progress::-webkit-progress-value { border-radius: 99px; background: var(--seller-green); }
.seller-onboarding-guide progress::-moz-progress-bar { border-radius: 99px; background: var(--seller-green); }
.seller-guide-body { padding: 0 1.2rem 1rem; }
.seller-guide-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.seller-guide-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: .65rem; padding: .72rem 0; border-top: 1px solid #edf1ed; }
.seller-guide-step-number { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #dce5de; border-radius: 50%; color: #64736c; font-size: .67rem; }
.seller-guide-steps li.is-complete .seller-guide-step-number { color: #fff; border-color: var(--seller-green); background: var(--seller-green); }
.seller-guide-step-copy { display: grid; gap: .12rem; }
.seller-guide-step-copy strong { font-size: .76rem; }
.seller-guide-step-copy small { color: var(--seller-muted); font-size: .66rem; }
.seller-guide-step-state { color: var(--seller-green); font-size: .67rem; white-space: nowrap; }
.seller-guide-step-link { color: var(--seller-green); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.seller-guide-dismiss-form { display: flex; justify-content: flex-start; padding-top: .45rem; }
.seller-guide-reopen { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1rem; }
.seller-guide-reopen > span { display: flex; align-items: center; gap: .55rem; color: #53645d; font-size: .76rem; }

@media (max-width: 991.98px) {
  .seller-analysis-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .seller-invoice-row { grid-template-columns: 40px minmax(115px, 1.2fr) minmax(100px, .8fr) minmax(110px, 1fr) minmax(90px, .8fr) 14px; gap: .55rem; }
}

@media (max-width: 767.98px) {
  .seller-command-center { gap: 1.15rem; padding-block: .8rem 2rem; }
  .seller-command-header { min-height: 170px; padding: 1.35rem; border-radius: 19px; }
  .seller-command-heading p { max-width: 38ch; font-size: .82rem; }
  .seller-command-links { flex-wrap: nowrap; overflow-x: auto; padding: .15rem .05rem .4rem; scrollbar-width: thin; }
  .seller-command-links a { flex: 0 0 auto; }
  .seller-overview-item { gap: .65rem; padding: .9rem .75rem; }
  .seller-overview-icon { width: 36px; height: 36px; }
  .seller-overview-copy strong { font-size: 1.15rem; }
  .seller-overview-copy > span { font-size: .74rem; }
  .seller-overview-copy small { font-size: .65rem; }
  .seller-work-grid,
  .seller-analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .seller-receivables-panel { min-height: 200px; }
  .seller-insights-grid { grid-template-columns: minmax(0, 1fr); }
  .seller-status-chart-frame { height: 270px; }
  .seller-invoice-row { grid-template-columns: 38px minmax(0, 1fr) auto 16px; gap: .55rem; }
  .seller-invoice-date { grid-column: 2; grid-row: 2; }
  .seller-invoice-amount { grid-column: 3; grid-row: 1; }
  .seller-invoice-status { grid-column: 3; grid-row: 2; justify-self: end; }
  .seller-invoice-chevron { grid-column: 4; grid-row: 1 / span 2; }
  .seller-invoice-symbol { grid-column: 1; grid-row: 1 / span 2; width: 36px; height: 36px; }
  .seller-invoice-main { grid-column: 2; grid-row: 1; }
  .seller-guide-steps li { grid-template-columns: 27px minmax(0, 1fr) auto; }
  .seller-guide-step-state { grid-column: 2; grid-row: 2; }
  .seller-guide-step-link { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 575.98px) {
  .seller-command-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .seller-command-primary,
  .seller-primary-action { width: 100%; }
  .seller-overview-strip { grid-template-columns: minmax(0, 1fr); }
  .seller-overview-item { padding: .8rem 1rem; }
  .seller-overview-item + .seller-overview-item { border-top: 1px solid var(--seller-line); border-inline-start: 0; }
  .seller-overview-copy { grid-template-columns: auto 1fr; align-items: baseline; column-gap: .55rem; }
  .seller-overview-copy strong { grid-row: span 2; font-size: 1.25rem; }
  .seller-overview-copy > span { font-size: .77rem; }
  .seller-overview-copy small { grid-column: 2; }
  .seller-section-heading { align-items: flex-start; }
  .seller-section-note { max-width: 42%; text-align: left; }
  .seller-panel-heading-row { align-items: flex-start; }
  .seller-stock-panel .seller-panel-heading-row { flex-direction: column; }
  .seller-stock-panel .seller-text-link { align-self: flex-start; }
  .seller-sales-chart-frame { height: 235px; }
  .seller-status-chart-frame { height: 255px; }
  .seller-chart-panel,
  .seller-insight-panel { padding: 1rem; }
  .seller-invoice-row { padding: .75rem .65rem; }
  .seller-invoice-amount { font-size: .7rem; }
  .seller-invoice-amount small { font-size: .62rem; }
  .seller-invoice-main strong { font-size: .73rem; }
  .seller-invoice-date { font-size: .65rem; }
  .seller-invoice-status { max-width: 120px; overflow: hidden; font-size: .61rem; text-overflow: ellipsis; }
  .seller-empty-feed { align-items: flex-start; flex-wrap: wrap; }
  .seller-empty-feed > div { flex: 1 1 calc(100% - 2.5rem); }
  .seller-empty-feed .seller-secondary-action { margin-inline-start: 2.2rem; }
  .seller-onboarding-guide > summary { grid-template-columns: 38px minmax(0, 1fr); padding: .85rem; }
  .seller-guide-progress-copy { grid-column: 2; }
  .seller-onboarding-guide progress { grid-column: 1 / -1; }
  .seller-guide-body { padding-inline: .85rem; }
  .seller-guide-steps li { grid-template-columns: 25px minmax(0, 1fr); gap: .5rem; }
  .seller-guide-step-link,
  .seller-guide-step-state { grid-column: 2; grid-row: auto; justify-self: start; }
  .seller-guide-reopen { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .seller-command-center *,
  .seller-command-center *::before,
  .seller-command-center *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.notification-inbox-hero,
.notification-history-hero,
.support-stats-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #dce8f5;
  border-radius: 22px;
  background: radial-gradient(circle at 12% 8%, rgba(191, 219, 254, .48), transparent 34%), linear-gradient(135deg, #fff 35%, #f3f8ff 100%);
  box-shadow: 0 12px 34px rgba(15, 39, 72, .055);
}
.notification-inbox-hero-copy { display: grid; min-width: 0; gap: .35rem; }
.notification-eyebrow { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; color: #2563eb; font-size: .74rem; font-weight: 850; }
.notification-inbox-hero-copy h1,
.support-stats-hero h1 { margin: 0; color: #132c4a; font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.45; }
.notification-inbox-hero-copy p,
.support-stats-hero-copy p { margin: 0; color: #64748b; font-size: .87rem; line-height: 1.9; }
.notification-inbox-overview { display: flex; flex: 0 0 auto; gap: .7rem; }
.notification-overview-item { display: flex; min-width: 142px; align-items: center; gap: .65rem; padding: .75rem .9rem; border: 1px solid #e4ebf3; border-radius: 15px; background: rgba(255, 255, 255, .84); }
.notification-overview-item > span:last-child { display: grid; gap: .05rem; }
.notification-overview-item strong { color: #1e3a5f; font-size: 1.12rem; font-weight: 900; line-height: 1.3; }
.notification-overview-item small { color: #64748b; font-size: .7rem; font-weight: 700; }
.notification-overview-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: #2563eb; background: #eff6ff; }
.notification-overview-unread { border-color: #bfdbfe; background: #f8fbff; }
.notification-overview-unread .notification-overview-icon { color: #1d4ed8; background: #dbeafe; }
.notification-inbox-hero > .btn { flex: 0 0 auto; gap: .45rem; }
.notification-inbox-toolbar { display: grid; gap: 1rem; padding: 1.1rem 1.2rem; }
.notification-toolbar-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.notification-toolbar-heading > div { display: grid; gap: .2rem; }
.notification-toolbar-heading h2 { margin: 0; color: #18324f; font-size: 1rem; font-weight: 850; }
.notification-toolbar-heading p { margin: 0; color: #748398; font-size: .78rem; line-height: 1.7; }
.notification-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.notification-filters .form-select { min-height: 42px; border: 1px solid #dbe4ef; border-radius: 11px; color: #334155; background-color: #fff; font-size: .8rem; }
.notification-filters .btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .4rem; }
.notification-inbox-item { min-height: 105px; align-items: center; padding: 1.1rem 1.2rem; border-radius: 17px; box-shadow: 0 3px 12px rgba(15, 23, 42, .035); }
.notification-inbox-item .notification-card-icon { width: 46px; height: 46px; flex-basis: 46px; }
.notification-inbox-item.is-unread .notification-card-heading strong { color: #102c4b; }
.notification-inbox-item.is-read .notification-card-content { opacity: .8; }
.notification-inbox-item .notification-card-heading { gap: .5rem .65rem; }
.notification-empty { min-height: 245px; align-content: center; border: 1px solid #e5edf5; border-radius: 20px; background: linear-gradient(145deg, #fff, #f8fbff); }
.notification-empty p { max-width: 35rem; }
.seller-notifications-page { display: grid; gap: 1rem; }
.seller-notifications-page > .notification-inbox-hero,
.seller-notifications-page > .notification-inbox-toolbar,
.seller-notifications-page > .notification-empty { margin-bottom: 0; }
.seller-notifications-page .notification-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; gap: .6rem; }
.seller-notifications-page .notification-filters .form-select { width: 100%; min-width: 0; }
.seller-notifications-page .notification-filters .btn { white-space: nowrap; }
.seller-notifications-page .pagination-panel { margin-top: 0; }
.notification-reading-page { display: grid; max-width: 980px; gap: 1rem; margin-inline: auto; padding-bottom: 2rem; }
.notification-back-link { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; color: #526b86; font-size: .82rem; font-weight: 750; text-decoration: none; }
.notification-back-link:hover { color: #1d4ed8; }
.notification-reading-card { overflow: hidden; padding: 0; border: 1px solid #e1eaf3; border-radius: 22px; background: #fff; box-shadow: 0 16px 42px rgba(15, 39, 72, .07); }
.notification-reading-header { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid #edf2f7; background: linear-gradient(115deg, #fff, #f7faff); }
.notification-reading-icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border: 1px solid #d8e8fb; border-radius: 17px; color: #1d4ed8; background: #eff6ff; font-size: 1.3rem; }
.notification-reading-icon-admin { color: #5b4ab5; border-color: #e6e0fb; background: #f5f3ff; }
.notification-reading-header > div { display: grid; min-width: 0; gap: .25rem; }
.notification-reading-type { color: #2563eb; font-size: .72rem; font-weight: 850; }
.notification-reading-header h1 { margin: 0; overflow-wrap: anywhere; color: #142e4b; font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 900; line-height: 1.6; }
.notification-reading-header time { display: inline-flex; align-items: center; gap: .35rem; color: #78889b; font-size: .76rem; }
.notification-reading-body { padding: 1.5rem; }
.notification-reading-body p { margin: 0; color: #364a60; font-size: .96rem; line-height: 2.15; white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-reading-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 1.5rem 1.5rem; padding: 1rem; border: 1px solid #dce9f8; border-radius: 15px; background: #f5f9ff; }
.notification-reading-actions > span { color: #536a83; font-size: .8rem; line-height: 1.8; }
.notification-reading-actions .btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; }

.notification-history-hero { align-items: flex-end; }
.notification-history-hero-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .75rem; }
.notification-history-hero-actions .btn { display: inline-flex; min-height: 46px; align-items: center; gap: .45rem; }
.notification-history-total { display: grid; min-width: 92px; justify-items: center; gap: .1rem; padding: .5rem .8rem; border: 1px solid #dce8f5; border-radius: 14px; background: rgba(255, 255, 255, .8); }
.notification-history-total strong { color: #163b61; font-size: 1.15rem; font-weight: 900; }
.notification-history-total small { color: #718197; font-size: .68rem; font-weight: 750; }
.notification-history-filter { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid #e2eaf3; border-radius: 16px; }
.notification-history-search { display: flex; min-width: 180px; flex: 1; align-items: center; gap: .65rem; padding-inline: .7rem; border: 1px solid #e1e8f0; border-radius: 11px; background: #fff; }
.notification-history-search > i { color: #8493a5; }
.notification-history-search .form-control { min-height: 42px; padding-inline: 0; border: 0; box-shadow: none; }
.notification-history-filter-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .55rem; }
.notification-history-filter-actions .form-select { width: auto; min-width: 120px; min-height: 42px; border-radius: 10px; }
.notification-history-filter-actions .btn { display: inline-flex; min-height: 42px; align-items: center; gap: .4rem; }
.notification-history-table-wrap { overflow: hidden; border: 1px solid #e0e8f1; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15, 39, 72, .045); }
.notification-history-table { width: 100%; min-width: 890px; margin: 0; border-collapse: separate; border-spacing: 0; direction: rtl; }
.notification-history-table thead th { padding: .9rem .85rem; border-bottom: 1px solid #dbe4ee; color: #5c6f84; background: #f5f8fc; font-size: .75rem; font-weight: 850; text-align: right; white-space: nowrap; }
.notification-history-table tbody td { padding: .9rem .85rem; border-bottom: 1px solid #edf1f6; color: #34495f; font-size: .79rem; line-height: 1.75; vertical-align: middle; }
.notification-history-table tbody tr:last-child td { border-bottom: 0; }
.notification-history-table tbody tr:hover td { background: #f9fbfe; }
.notification-history-title { display: block; color: #174a7a; font-size: .84rem; font-weight: 850; line-height: 1.65; text-decoration: none; }
.notification-history-title:hover { color: #1d4ed8; text-decoration: underline; }
.notification-history-message { display: -webkit-box; max-width: 28rem; margin-top: .22rem; overflow: hidden; color: #77869a; font-size: .72rem; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notification-recipient-count { display: inline-flex; align-items: center; gap: .35rem; color: #334b65; font-weight: 800; white-space: nowrap; }
.notification-recipient-count i { color: #718aa3; }
.notification-recipient-names { display: block; max-width: 15rem; margin-top: .25rem; overflow: hidden; color: #7b899a; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.notification-history-date { color: #596f86; font-size: .75rem; white-space: nowrap; }
.notification-type-badge { min-height: 25px; padding: .2rem .6rem; border: 1px solid #dfe8f2; border-radius: 999px; color: #51677e; background: #f6f9fc; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.notification-type-manual { border-color: #cce5dc; color: #18704d; background: #f0faf5; }
.notification-type-expiry { border-color: #f3d7c4; color: #a34f21; background: #fff7f1; }
.notification-type-trial { border-color: #f2e2b3; color: #936600; background: #fffbee; }
.notification-type-management { border-color: #d9d2f3; color: #5a4a9d; background: #f7f5ff; }
.notification-type-system { border-color: #d9e4ef; color: #536b82; background: #f4f8fb; }
.notification-read-count { display: block; color: #51677e; font-size: .72rem; white-space: nowrap; }
.notification-read-progress { display: block; width: 100%; min-width: 90px; height: 7px; margin-top: .4rem; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: #edf2f7; }
.notification-read-progress::-webkit-progress-bar { border-radius: 999px; background: #edf2f7; }
.notification-read-progress::-webkit-progress-value { border-radius: 999px; background: #34a477; }
.notification-read-progress::-moz-progress-bar { border-radius: 999px; background: #34a477; }
.notification-sent-detail-page { display: grid; gap: 1rem; padding-bottom: 2rem; }
.notification-sent-detail-hero { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid #dce8f5; border-radius: 18px; background: linear-gradient(125deg, #fff, #f6f9ff); }
.notification-sent-detail-hero > div { display: grid; min-width: 0; gap: .2rem; }
.notification-sent-detail-hero h1 { margin: 0; overflow-wrap: anywhere; color: #142e4b; font-size: 1.35rem; font-weight: 900; line-height: 1.65; }
.notification-sent-detail-hero time { color: #728398; font-size: .74rem; }
.notification-delivery-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.notification-delivery-metric { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 1px solid #e1e9f1; border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(15, 39, 72, .035); }
.notification-delivery-metric > span:last-child { display: grid; gap: .1rem; }
.notification-delivery-metric small { color: #6c7d91; font-size: .72rem; font-weight: 750; }
.notification-delivery-metric strong { color: #183c60; font-size: 1.2rem; font-weight: 900; }
.notification-delivery-metric-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 13px; color: #2563eb; background: #eff6ff; }
.notification-delivery-read .notification-delivery-metric-icon { color: #168155; background: #effaf4; }
.notification-delivery-unread .notification-delivery-metric-icon { color: #a66a08; background: #fff8e8; }
.notification-message-panel,.notification-recipients-panel { display: grid; gap: 1rem; padding: 1.2rem; border: 1px solid #e1e9f1; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(15, 39, 72, .035); }
.notification-section-heading { display: flex; align-items: center; gap: .7rem; }
.notification-section-heading > div { display: grid; gap: .15rem; }
.notification-section-heading h2 { margin: 0; color: #193752; font-size: .98rem; font-weight: 850; }
.notification-section-heading p { margin: 0; color: #78899b; font-size: .73rem; }
.notification-section-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #dce9f8; border-radius: 12px; color: #2468a8; background: #f2f8ff; }
.notification-detail-message { margin: 0; padding: 1rem; border: 1px solid #edf1f5; border-radius: 13px; color: #3b5066; background: #fafcfe; font-size: .87rem; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-inline-empty { display: flex; align-items: center; gap: .65rem; padding: 1rem; border: 1px dashed #d4deea; border-radius: 13px; color: #718196; background: #f9fbfd; font-size: .82rem; }
.notification-inline-empty i { color: #8a9bb0; font-size: 1.1rem; }
.notification-recipient-status { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.notification-recipient-status.is-read { color: #16744e; background: #edf9f3; }
.notification-recipient-status.is-unread { color: #9a6700; background: #fff8e5; }
.notification-delivery-note { display: flex; align-items: flex-start; gap: .45rem; margin: 0; color: #708197; font-size: .72rem; line-height: 1.8; }
.notification-delivery-note i { margin-top: .1rem; color: #5485b4; }
.notification-compose-page { display: grid; max-width: 900px; gap: 1rem; margin-inline: auto; padding-bottom: 2rem; }
.notification-compose-heading { display: grid; justify-items: start; gap: .35rem; }
.notification-compose-heading .notification-eyebrow { margin-top: .4rem; }
.notification-compose-heading h1 { margin: 0; color: #142e4b; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; }
.notification-compose-heading > p { margin: 0; color: #6b7f95; font-size: .86rem; line-height: 1.8; }
.notification-compose-card { overflow: hidden; padding: 0; border: 1px solid #e1e9f1; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(15, 39, 72, .055); }
.notification-compose-card-heading { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid #ebf0f5; background: linear-gradient(120deg, #fff, #f6f9ff); }
.notification-compose-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #dce9f8; border-radius: 13px; color: #2563eb; background: #eff6ff; }
.notification-compose-card-heading > div { display: grid; gap: .15rem; }
.notification-compose-card-heading h2 { margin: 0; color: #193752; font-size: .95rem; font-weight: 850; }
.notification-compose-card-heading p { margin: 0; color: #78899b; font-size: .73rem; }
.notification-channel-badge { display: inline-flex; align-items: center; gap: .35rem; margin-inline-start: auto; padding: .35rem .6rem; border: 1px solid #dce9f8; border-radius: 999px; color: #366b9f; background: #f5f9ff; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.notification-compose-form { display: grid; gap: 1.1rem; padding: 1.25rem; }
.notification-compose-field { display: grid; gap: .4rem; }
.notification-compose-field .form-label { margin: 0; color: #344b63; font-size: .82rem; font-weight: 800; }
.notification-compose-field .form-control,.notification-compose-field .form-select { min-height: 45px; border: 1px solid #d8e2ed; border-radius: 11px; color: #263c52; background-color: #fff; }
.notification-compose-field textarea.form-control { min-height: 150px; resize: vertical; line-height: 1.9; }
.notification-compose-field .form-control:focus,.notification-compose-field .form-select:focus { border-color: #79aee2; box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .1); }
.notification-compose-field small { color: #7a8a9c; font-size: .72rem; line-height: 1.7; }
.notification-compose-actions { display: flex; justify-content: flex-end; gap: .6rem; padding-top: .9rem; border-top: 1px solid #edf1f5; }
.notification-compose-actions .btn { min-height: 44px; padding-inline: 1.1rem; }

.support-stats-hero { align-items: flex-end; }
.support-stats-hero-copy { display: grid; justify-items: start; gap: .3rem; }
.support-stats-hero-copy .notification-eyebrow { margin-top: .35rem; }
.support-stats-period-chip { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid #dce8f5; border-radius: 12px; color: #526d88; background: rgba(255, 255, 255, .85); font-size: .76rem; font-weight: 750; }
.support-stats-filter { display: grid; gap: 1rem; margin-bottom: 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid #e0e8f1; border-radius: 18px; background: #fff; box-shadow: 0 7px 20px rgba(15, 39, 72, .04); }
.support-stats-filter-heading { display: flex; align-items: center; gap: .65rem; }
.support-stats-filter-heading > div { display: grid; gap: .15rem; }
.support-stats-filter-heading h2 { margin: 0; color: #193752; font-size: .9rem; font-weight: 850; }
.support-stats-filter-heading p { margin: 0; color: #78899b; font-size: .72rem; }
.support-stats-filter-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: .75rem; }
.support-stats-date-field { display: grid; gap: .35rem; }
.support-stats-date-field .form-label { margin: 0; color: #52677e; font-size: .75rem; font-weight: 800; }
.support-stats-date-field .form-control { min-height: 43px; border: 1px solid #d8e2ed; border-radius: 10px; }
.support-stats-filter-actions { display: flex; gap: .5rem; }
.support-stats-filter-actions .btn { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; }
.support-stats-section { display: grid; gap: .85rem; margin-bottom: 1.5rem; }
.support-stats-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.support-stats-section-heading > div { display: grid; gap: .12rem; }
.support-stats-section-heading > div > span { color: #6b8cac; font-size: .69rem; font-weight: 850; }
.support-stats-section-heading h2 { margin: 0; color: #193752; font-size: 1.05rem; font-weight: 900; }
.support-stats-section-heading > p { margin: 0; color: #7a899b; font-size: .73rem; line-height: 1.65; text-align: left; }
.support-stats-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.support-stat-card { position: relative; display: grid; min-height: 175px; align-content: start; gap: .48rem; padding: 1rem; border: 1px solid #e1e9f1; border-radius: 17px; color: #334b63; background: #fff; box-shadow: 0 6px 18px rgba(15, 39, 72, .04); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.support-stat-card:hover { transform: translateY(-2px); border-color: #bdd5ee; color: #263f58; box-shadow: 0 11px 25px rgba(15, 39, 72, .075); }
.support-stat-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px; color: #2563eb; background: #eff6ff; font-size: 1rem; }
.support-stat-overdue .support-stat-icon { color: #bb4b43; background: #fff2f0; }
.support-stat-volume .support-stat-icon { color: #5964a8; background: #f2f3ff; }
.support-stat-rating .support-stat-icon { color: #a66c00; background: #fff8e8; }
.support-stat-label { color: #687d92; font-size: .74rem; font-weight: 750; }
.support-stat-card > strong { color: #173958; font-size: 1.65rem; font-weight: 900; line-height: 1.3; }
.support-stat-card > strong small { color: #8392a3; font-size: .72rem; font-weight: 750; }
.support-stat-caption { color: #8794a4; font-size: .68rem; }
.support-stat-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; color: #2769a5; font-size: .72rem; font-weight: 850; }
.support-stats-response-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.support-response-card { display: flex; align-items: flex-start; gap: .8rem; padding: 1.1rem; border: 1px solid #e1e9f1; border-radius: 17px; background: linear-gradient(130deg, #fff, #f7fbff); box-shadow: 0 6px 18px rgba(15, 39, 72, .04); }
.support-response-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border: 1px solid #dce9f8; border-radius: 14px; color: #2563eb; background: #eff6ff; font-size: 1.05rem; }
.support-response-resolution .support-response-icon { border-color: #d6eee2; color: #168155; background: #effaf4; }
.support-response-card > div { display: grid; gap: .2rem; }
.support-response-card > div > span { color: #637991; font-size: .78rem; font-weight: 750; }
.support-response-card strong { color: #163b5d; font-size: 1.45rem; font-weight: 900; }
.support-response-card strong small { color: #8292a3; font-size: .72rem; font-weight: 750; }
.support-response-card p { margin: 0; color: #8996a5; font-size: .68rem; }
.support-stats-categories { display: grid; gap: 1rem; padding: 1.2rem; border: 1px solid #e1e9f1; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(15, 39, 72, .04); }
.support-category-list { display: grid; gap: .85rem; }
.support-category-row { display: grid; gap: .35rem; }
.support-category-label { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #405971; font-size: .79rem; }
.support-category-label strong { display: inline-grid; min-width: 30px; height: 26px; place-items: center; padding-inline: .4rem; border-radius: 9px; color: #285f91; background: #edf5fd; font-size: .7rem; }
.support-category-row progress { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; direction: rtl; background: #edf2f7; }
.support-category-row progress::-webkit-progress-bar { border-radius: 999px; background: #edf2f7; }
.support-category-row progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #65a2d7, #2874b8); }
.support-category-row progress::-moz-progress-bar { border-radius: 999px; background: #2874b8; }
.support-stats-empty { display: grid; min-height: 130px; justify-items: center; align-content: center; gap: .5rem; color: #7c8da0; }
.support-stats-empty > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #6b8cac; background: #f1f6fb; font-size: 1.1rem; }
.support-stats-empty p { margin: 0; font-size: .8rem; }

@media (max-width: 991.98px) {
  .support-stats-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .notification-history-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .notification-history-table { display: block; min-width: 0; }
  .notification-history-table thead { display: none; }
  .notification-history-table tbody { display: grid; gap: .75rem; }
  .notification-history-table tbody tr { display: grid; gap: 0; padding: .35rem .85rem; border: 1px solid #e0e8f1; border-radius: 16px; background: #fff; box-shadow: 0 5px 15px rgba(15, 39, 72, .04); }
  .notification-history-table tbody td { display: grid; grid-template-columns: minmax(95px, 30%) minmax(0, 1fr); align-items: start; gap: .55rem; padding: .65rem .15rem; border-bottom: 1px solid #edf1f6; text-align: right; }
  .notification-history-table tbody td::before { content: attr(data-label); color: #74859a; font-size: .7rem; font-weight: 800; }
  .notification-history-table tbody td:last-child { border-bottom: 0; }
  .notification-history-table tbody td:first-child { display: block; }
  .notification-history-table tbody td:first-child::before { display: none; }
  .notification-history-message { max-width: none; }
  .notification-read-progress { max-width: 200px; }
  .notification-recipient-table tbody td:first-child { display: grid; }
  .notification-recipient-table tbody td:first-child::before { display: block; }
}
@media (max-width: 575.98px) {
  .notification-inbox-hero,.notification-history-hero,.support-stats-hero { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.1rem; border-radius: 18px; }
  .notification-inbox-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notification-overview-item { min-width: 0; padding: .65rem; }
  .notification-inbox-hero > .btn { width: 100%; justify-content: center; }
  .notification-toolbar-heading { align-items: stretch; flex-direction: column; }
  .notification-toolbar-heading .notification-mark-all-form,.notification-toolbar-heading .notification-mark-all-form .btn { width: 100%; }
  .notification-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notification-filters .form-select { width: 100%; min-width: 0; }
  .notification-filters > .btn { grid-column: 1 / -1; }
  .notification-filters > .btn-link { grid-column: 1 / -1; text-align: center; }
  .notification-reading-header { gap: .75rem; padding: 1rem; }
  .notification-reading-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; }
  .notification-reading-body { padding: 1rem; }
  .notification-reading-actions { align-items: stretch; flex-direction: column; margin: 0 1rem 1rem; padding: .85rem; }
  .notification-reading-actions .btn { width: 100%; justify-content: center; }
  .notification-history-hero-actions { width: 100%; flex-wrap: wrap; }
  .notification-history-total { flex: 1; }
  .notification-history-hero-actions > .btn { flex: 1; justify-content: center; }
  .notification-history-filter { align-items: stretch; flex-direction: column; }
  .notification-history-filter-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .notification-history-filter-actions .form-select { min-width: 0; }
  .notification-delivery-summary { grid-template-columns: 1fr; }
  .notification-delivery-metric { padding: .7rem .85rem; }
  .notification-compose-card-heading { align-items: flex-start; flex-wrap: wrap; padding: .9rem; }
  .notification-channel-badge { margin-inline-start: 0; }
  .notification-compose-form { padding: .9rem; }
  .notification-compose-actions { flex-direction: column-reverse; }
  .notification-compose-actions .btn { width: 100%; }
  .support-stats-period-chip { width: 100%; justify-content: center; }
  .support-stats-filter { padding: .9rem; }
  .support-stats-filter-fields { grid-template-columns: 1fr; }
  .support-stats-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .support-stats-filter-actions .btn { white-space: normal; }
  .support-stats-section-heading { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .support-stats-section-heading > p { text-align: right; }
  .support-stats-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .support-stat-card { min-height: 160px; padding: .8rem; }
  .support-stat-card > strong { font-size: 1.4rem; }
  .support-stats-response-grid { grid-template-columns: 1fr; }
  .support-stats-categories { padding: .9rem; }
}

@media (max-width: 767.98px) {
  .seller-notifications-page .notification-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seller-notifications-page .notification-filters > .btn,
  .seller-notifications-page .notification-filters > .btn-link { grid-column: 1 / -1; }
  .seller-notifications-page .notification-filters > .btn-link { text-align: center; }
}

@media (max-width: 575.98px) {
  .seller-notifications-page .notification-filters { grid-template-columns: minmax(0, 1fr); }
}

.notification-page-heading { align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.notification-page-size { display: flex; flex: 0 0 auto; align-items: center; gap: .6rem; }
.notification-page-size .form-select { width: auto; min-width: 128px; min-height: 42px; border-radius: 10px; }
.notification-list { display: grid; gap: .85rem; }
.notification-card { position: relative; display: flex; min-width: 0; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; overflow: hidden; border: 1px solid #e4eaf2; border-inline-start: 4px solid #94a3b8; border-radius: 16px; color: #334155; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .045); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.notification-card:hover { border-color: #bfdbfe; color: #1e293b; box-shadow: 0 10px 24px rgba(37, 99, 235, .09); transform: translateY(-1px); }
.notification-card:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.notification-card.is-unread { background: linear-gradient(105deg, #fff 72%, #f5f9ff); }
.notification-card.is-read { border-inline-start-color: #cbd5e1; }
.notification-type-trial { border-inline-start-color: #d69e22; }
.notification-type-subscription { border-inline-start-color: #dc655d; }
.notification-type-support,.notification-type-admin { border-inline-start-color: #2563eb; }
.notification-type-general { border-inline-start-color: #64748b; }
.notification-card-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #dbeafe; border-radius: 13px; color: #2563eb; background: #eff6ff; font-size: 1.05rem; }
.notification-type-trial .notification-card-icon { border-color: #f4e4b5; color: #a66d00; background: #fff9e8; }
.notification-type-subscription .notification-card-icon { border-color: #f4d4d1; color: #c2413a; background: #fff4f2; }
.notification-card-content { display: grid; min-width: 0; flex: 1; gap: .4rem; }
.notification-card-heading { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; color: #172554; line-height: 1.6; }
.notification-card-heading strong { font-size: .94rem; font-weight: 800; }
.notification-card-message { display: -webkit-box; overflow: hidden; color: #64748b; font-size: .84rem; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notification-card-date { display: inline-flex; align-items: center; gap: .35rem; color: #8290a3; font-size: .74rem; }
.notification-card-arrow { align-self: center; flex: 0 0 auto; color: #94a3b8; }
.notification-status-badge,.notification-type-badge { display: inline-flex; align-items: center; min-height: 24px; padding: .1rem .55rem; border: 1px solid #dbeafe; border-radius: 999px; color: #1d4ed8; background: #eff6ff; font-size: .69rem; font-weight: 800; }
.notification-status-badge { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.notification-count-summary { display: inline-flex; align-items: center; gap: .5rem; color: #64748b; font-size: .82rem; }
.notification-count-summary strong { color: #1d4ed8; font-size: 1rem; }
.notification-count-divider { width: 1px; height: 18px; margin-inline: .15rem; background: #dbe3ed; }
.notification-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; margin-bottom: 1rem; padding: .85rem 1rem; }
.notification-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.notification-filters .form-select { width: auto; min-width: 145px; min-height: 40px; border-radius: 10px; font-size: .8rem; }
.notification-toolbar > form[method="post"] { margin-inline-start: auto; }
.notification-mark-all-form { margin-inline-start: auto; }
.notification-empty { display: grid; justify-items: center; gap: .5rem; padding: 2.5rem 1.25rem; text-align: center; }
.notification-empty-icon { display: grid; width: 58px; height: 58px; margin-bottom: .25rem; place-items: center; border: 1px solid #e2e8f0; border-radius: 18px; color: #64748b; background: #f8fafc; font-size: 1.45rem; }
.notification-empty h2 { margin: 0; color: #1e293b; font-size: 1.05rem; font-weight: 800; }
.notification-empty p { margin: 0; color: #64748b; font-size: .86rem; line-height: 1.8; }
.notification-detail-card { padding: 1.25rem; }
.notification-detail-message { margin: 0; color: #334155; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-detail-card .btn { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; }
.notification-filter-card { padding: 1rem; }
.notification-filter-controls { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; align-items: center; gap: .6rem; }
.notification-filter-controls .form-control,.notification-filter-controls .form-select { min-height: 42px; border-radius: 10px; }
.notification-filter-controls .input-group-text { border-radius: 10px; }
.notification-history-table-wrap { overflow: hidden; border: 1px solid #e4eaf2; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .045); }
.notification-history-table { min-width: 760px; margin-bottom: 0; }
.notification-history-table thead th { padding: .85rem .9rem; border-bottom: 1px solid #dbe3ed; color: #475569; background: #f5f8fc; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.notification-history-table tbody td { padding: .8rem .9rem; border-color: #edf1f6; color: #334155; font-size: .82rem; vertical-align: middle; }
.notification-history-title { color: #1d4ed8; font-weight: 800; text-decoration: none; }
.notification-history-title:hover { text-decoration: underline; }
.notification-history-message { max-width: 28rem; margin-top: .25rem; line-height: 1.7; }
.notification-history-table .notification-type-badge.bg-primary { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff !important; }
.notification-history-table .notification-type-badge.bg-secondary { border-color: #e2e8f0; color: #475569; background: #f8fafc !important; }
.notification-history-table .notification-type-badge.bg-warning { border-color: #f4e4b5; color: #8a5a00; background: #fff9e8 !important; }
.notification-dashboard-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem; }
.notification-dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.notification-dashboard-heading h2 { display: flex; align-items: center; gap: .5rem; margin: 0; color: #172554; font-size: 1rem; font-weight: 800; }
.notification-dashboard-heading h2 i { color: #2563eb; }
.notification-dashboard-heading p { margin: .3rem 0 0; color: #64748b; font-size: .78rem; line-height: 1.7; }
.notification-dashboard-count { display: grid; min-width: 36px; height: 36px; place-items: center; padding: 0 .45rem; border: 1px solid #dbeafe; border-radius: 12px; color: #1d4ed8; background: #eff6ff; font-size: .85rem; font-weight: 800; }
.notification-dashboard-list { display: grid; gap: .25rem; }
.notification-dashboard-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .2rem; border-bottom: 1px solid #edf1f6; color: #334155; text-decoration: none; }
.notification-dashboard-item:last-child { border-bottom: 0; }
.notification-dashboard-item > span { display: grid; min-width: 0; gap: .15rem; }
.notification-dashboard-item strong,.notification-dashboard-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-dashboard-item strong { color: #1e293b; font-size: .82rem; }
.notification-dashboard-item small,.notification-dashboard-item time { color: #64748b; font-size: .72rem; }
.notification-dashboard-item time { flex: 0 0 auto; }
.notification-dashboard-item:hover strong { color: #1d4ed8; }
.notification-dashboard-empty { margin: auto 0; padding: .7rem 0; color: #64748b; font-size: .82rem; }
.notification-dashboard-link { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; margin-top: auto; color: #1d4ed8; font-size: .8rem; font-weight: 800; text-decoration: none; }
.notification-dashboard-link:hover { text-decoration: underline; }

@media (max-width: 575.98px) {
  .notification-page-heading { align-items: stretch; flex-direction: column; }
  .notification-page-size { width: 100%; }
  .notification-page-size .form-select { flex: 1; }
  .notification-card { gap: .65rem; padding: .85rem; }
  .notification-card-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .notification-card-heading strong { font-size: .87rem; }
  .notification-card-message { font-size: .78rem; }
  .notification-filter-controls { grid-template-columns: auto minmax(0, 1fr); }
  .notification-filter-controls .form-select,.notification-filter-controls .btn { grid-column: span 2; width: 100%; }
  .notification-count-summary { flex-wrap: wrap; }
  .notification-toolbar { align-items: stretch; }
  .notification-filters { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .notification-filters .form-select { width: 100%; min-width: 0; }
  .notification-filters .btn { grid-column: span 2; }
  .notification-mark-all-form,.notification-toolbar > form[method="post"] { width: 100%; margin-inline-start: 0; }
  .notification-mark-all-form .btn,.notification-toolbar > form[method="post"] .btn { width: 100%; }
}

.public-shell .public-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.public-shell .public-header .navbar {
  min-height: 78px;
  padding-block: .75rem;
  background-color: transparent !important;
}

.public-shell .public-header .app-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  padding-inline: 0;
}

.public-header .navbar-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  color: #172554;
  text-decoration: none;
}

.public-header .public-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #172554;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.035em;
}

.public-header .public-wordmark::before {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #0f9f9a);
  box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
  content: "ف";
  font-size: 1.15rem;
  font-weight: 900;
}

.public-nav-links {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.public-nav-links .nav-link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border-radius: 12px;
  color: #475569;
  font-size: .88rem;
  font-weight: 700;
  transition: color .18s ease, background-color .18s ease;
}

.public-nav-links .nav-link:hover {
  color: #1d4ed8;
  background: #f3f7ff;
}

.public-nav-links .nav-link.active {
  color: #1d4ed8;
  background: #eff6ff;
}

.public-nav-links .public-dashboard-link {
  color: #0f766e;
}

.public-account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
}

.public-account-actions > .btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  border-radius: 11px;
  font-size: .84rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.public-account-actions > .btn:hover {
  transform: translateY(-1px);
}

.public-account-actions > .btn-outline-primary {
  border-color: #dbe5f2;
  color: #334155;
  background: #fff;
}

.public-account-actions > .btn-outline-primary:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #f8fbff;
}

.public-account-actions > .btn-primary {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 14px rgba(37, 99, 235, .18);
}

.public-header .public-menu-toggle {
  width: 42px;
  height: 42px;
  padding: .55rem;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
}

.public-header .public-menu-toggle:focus {
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}

@media (max-width: 991.98px) {
  .public-shell .public-header .navbar {
    min-height: 70px;
  }

  .public-shell .public-header .app-header-inner {
    gap: .75rem;
  }

  .public-header .public-menu-toggle {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .public-shell .public-header .app-header-inner {
    width: min(100% - 1.25rem, 1240px);
  }

  .public-header .public-wordmark {
    gap: .45rem;
    font-size: 1.12rem;
  }

  .public-header .public-wordmark::before {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .public-account-actions {
    gap: .35rem;
  }

  .public-account-actions > .btn {
    min-height: 38px;
    padding-inline: .7rem;
    font-size: .78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-nav-links .nav-link,
  .public-account-actions > .btn {
    transition: none;
  }
}

.inventory-kpi-grid .report-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  justify-items: start;
  gap: .3rem;
  height: 100%;
  min-width: 0;
  min-height: 172px;
  padding: 1.15rem !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}

.inventory-kpi-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.inventory-kpi-grid > .col {
  display: flex;
  min-width: 0;
  grid-column: span 4;
}

.inventory-kpi-grid > .col > .report-summary-card { width: 100%; }
.inventory-kpi-grid > .col:nth-child(4) { grid-column: 3 / span 4; }
.inventory-kpi-grid > .col:nth-child(5) { grid-column: 7 / span 4; }

.inventory-kpi-grid .report-summary-card small {
  min-height: 2.8em;
  font-size: .85rem;
  font-weight: 750;
  line-height: 1.7;
}

.inventory-kpi-grid .report-summary-icon {
  margin-bottom: .1rem;
}

.inventory-kpi-grid .report-summary-card strong {
  margin-top: 0;
  color: #172554;
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.inventory-kpi-grid .report-summary-card > span:last-child {
  align-self: end;
  margin-top: .2rem;
  font-size: .8rem;
  line-height: 1.75;
}

.inventory-kpi-grid .inventory-value-card strong {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.inventory-filter-form .form-select {
  width: 100%;
  min-width: 0;
}

.inventory-filter-form {
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .045) !important;
}

.inventory-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #edf1f6;
}

.inventory-filter-heading > div {
  display: grid;
  gap: .15rem;
}

.inventory-filter-heading strong {
  color: #172554;
  font-size: .9rem;
  font-weight: 850;
}

.inventory-filter-heading span {
  color: #64748b;
  font-size: .82rem;
  line-height: 1.7;
}

.inventory-filter-heading > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 11px;
  color: #2563eb;
  background: #eff6ff;
}

.inventory-filter-fields {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(145px, .9fr) minmax(185px, 1.15fr);
  align-items: end;
  gap: .85rem;
}

.inventory-filter-fields > div { min-width: 0; }
.inventory-filter-fields > .inventory-filter-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: .8rem; border-top: 1px solid #edf1f6; }
.inventory-filter-fields .form-label { margin-bottom: .4rem; color: #334155; font-size: .76rem; font-weight: 750; }
.inventory-filter-fields .form-control,
.inventory-filter-fields .form-select { width: 100%; min-width: 0; min-height: 44px; border-color: #d7e0eb; border-radius: 10px; }
.inventory-filter-stock-status { grid-column: span 1; }
.inventory-filter-actions { display: flex; align-items: center; gap: .5rem; }
.inventory-filter-actions .btn { display: inline-flex; min-width: 132px; min-height: 42px; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; }

.inventory-products-card > .section-heading > .btn-accent {
  min-width: 138px;
  min-height: 42px;
  padding: .55rem .9rem;
  border-radius: 10px;
  font-weight: 750;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .12);
}

.inventory-mobile-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.inventory-mobile-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.inventory-mobile-card-heading > div,
.inventory-mobile-card-heading > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.inventory-mobile-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .85rem;
}

.inventory-mobile-card-stats > span {
  min-width: 0;
  padding: .55rem .65rem;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.inventory-mobile-card-stats strong {
  display: block;
  margin-top: .2rem;
  color: #1e293b;
  overflow-wrap: anywhere;
}

.inventory-mobile-supply-quantity {
  margin-top: .8rem;
  color: #475569;
}

.inventory-mobile-supply-quantity strong {
  color: #b45309;
}

@media (max-width: 991.98px) {
  .inventory-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-kpi-grid > .col,
  .inventory-kpi-grid > .col:nth-child(4),
  .inventory-kpi-grid > .col:nth-child(5) {
    grid-column: auto;
  }

  .inventory-kpi-grid > .col:last-child {
    grid-column: 1 / -1;
  }

  .inventory-products-card > .section-heading {
    align-items: flex-start;
  }

  .inventory-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-filter-search,
  .inventory-filter-category {
    grid-column: span 1;
  }

  .inventory-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .inventory-filter-stock-status { grid-column: span 1; }

  .inventory-supply-card > .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-supply-tools {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-supply-tools form {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-supply-tools form > div {
    grid-column: 1 / -1;
  }

  .inventory-supply-tools form .form-select {
    width: 100%;
  }

  .inventory-supply-export-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .inventory-supply-filterbar {
    margin-inline: 1rem;
  }

  .inventory-supply-export-actions .btn {
    min-width: 0;
    padding-inline: .55rem;
    font-size: .77rem;
  }

  .inventory-supply-context {
    padding-inline-start: 0;
  }

  .inventory-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .inventory-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  .inventory-kpi-grid > .col:last-child {
    grid-column: auto;
  }

  .inventory-kpi-grid .report-summary-card {
    min-height: 0;
    padding: 14px 12px !important;
  }

  .inventory-kpi-grid .report-summary-card small { min-height: 0; }

  .inventory-kpi-grid .report-summary-card strong {
    font-size: 1.15rem;
  }

  .inventory-mobile-card-heading .badge {
    flex: 0 0 auto;
    white-space: normal;
    text-align: center;
  }

  .inventory-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .inventory-supply-print,
  .inventory-supply-print[hidden] {
    display: block !important;
  }

  .inventory-tabs,
  .inventory-filter-form,
  .inventory-products-card,
  .inventory-no-sale-card,
  .inventory-movement-card,
  [data-inventory-tab-panel="products"],
  [data-inventory-tab-panel="summary"],
  [data-inventory-tab-panel="movements"] {
    display: none !important;
  }

  body:has(.inventory-supply-print) * {
    visibility: hidden !important;
  }

  .inventory-supply-print,
  .inventory-supply-print * {
    visibility: visible !important;
  }

  .inventory-supply-print {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .inventory-supply-print .no-print,
  .inventory-supply-print .inventory-supply-guide,
  .inventory-supply-print .inventory-mobile-list {
    display: none !important;
  }

  .inventory-supply-print .inventory-supply-table {
    display: block !important;
    overflow: visible !important;
  }

  .inventory-supply-print .inventory-print-skip {
    display: none !important;
  }

  .inventory-supply-print .inventory-pagination-panel {
    display: none !important;
  }

  .inventory-supply-print table {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 9pt;
  }

  .inventory-supply-print th,
  .inventory-supply-print td {
    padding: .35rem !important;
  }
}

.customer-page-heading,
.customer-form-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.customer-page-heading-copy { min-width: 0; }
.customer-page-eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .35rem; color: #64748b; font-size: .76rem; font-weight: 800; }
.customer-page-heading .app-page-title,
.customer-form-page-heading .app-page-title { margin: 0; color: #172554; font-size: 1.55rem; font-weight: 900; }
.customer-page-heading .app-page-subtitle,
.customer-form-page-heading .app-page-subtitle { margin: .35rem 0 0; color: #64748b; font-size: .86rem; }
.customer-page-heading-actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.customer-page-heading-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; }
.customer-page-heading-actions > .btn-primary { box-shadow: 0 5px 12px rgba(37, 99, 235, .18); }
.customer-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.customer-overview-card { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: 1rem 1.1rem; border: 1px solid #e5eaf1; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .035); }
.customer-overview-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; font-size: 1.15rem; }
.customer-overview-icon-primary { color: #2563eb; background: #eff6ff; }
.customer-overview-icon-success { color: #16845b; background: #eaf8f1; }
.customer-overview-icon-neutral { color: #64748b; background: #f1f5f9; }
.customer-overview-icon-warning { color: #a16207; background: #fef3c7; }
.customer-overview-card > div { display: grid; gap: .15rem; min-width: 0; }
.customer-overview-card-follow-up > div { display: flex; align-items: baseline; flex-direction: row-reverse; flex-wrap: wrap; gap: .15rem .45rem; }
.customer-overview-card-follow-up > div > span { min-width: 0; }
.customer-overview-card-follow-up strong { flex: 0 0 auto; white-space: nowrap; }
.customer-overview-card > div > span { color: #64748b; font-size: .84rem; font-weight: 650; }
.customer-overview-card strong { color: #172554; font-size: 1.28rem; font-weight: 900; line-height: 1.25; }
.customer-directory-card { overflow: hidden; border: 1px solid #e3eaf2; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .045); }
.customer-filter-panel { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid #edf1f6; background: #fbfcfe; }
.customer-search-field { display: flex; align-items: center; gap: .65rem; flex: 1 1 auto; min-width: 180px; min-height: 44px; padding: 0 .8rem; border: 1px solid #dbe3ed; border-radius: 11px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.customer-search-field:focus-within { border-color: #93b4f6; box-shadow: 0 0 0 3px rgba(37, 99, 235, .09); }
.customer-search-field > i { color: #94a3b8; }
.customer-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: #1e293b; background: transparent; font: inherit; }
.customer-search-field input::placeholder { color: #94a3b8; }
.customer-filter-actions { display: flex; align-items: center; gap: .5rem; }
.customer-filter-actions .form-select { min-height: 44px; border-color: #dbe3ed; border-radius: 11px; background-color: #fff; }
.customer-filter-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border-radius: 11px; white-space: nowrap; }
.customer-results-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; color: #64748b; font-size: .84rem; }
.customer-results-summary strong { color: #334155; font-weight: 850; }
.customer-results-summary-note { color: #94a3b8; }
.customer-list-table-wrap { width: 100%; min-width: 0; }
.customer-list-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.customer-list-table > thead > tr > th { padding: .9rem .75rem; border-bottom: 1px solid #e6edf5; color: #52647a; background: #f5f8fc; font-size: .76rem; font-weight: 800; line-height: 1.7; white-space: normal; }
.customer-list-table > tbody > tr > td,
.customer-list-table > tbody > tr > th { padding: .95rem .75rem; border-bottom: 1px solid #edf1f6; color: #475569; background: #fff; font-size: .8rem; font-weight: 400; line-height: 1.8; vertical-align: middle; }
.customer-list-table > tbody > tr:last-child > td { border-bottom: 0; }
.customer-list-table > tbody > tr { transition: background-color .15s ease; }
.customer-list-table > tbody > tr:hover > td { background: #f8faff; }
.customer-list-table .customer-identity-column { width: 25%; text-align: right; }
.customer-list-table .customer-location-column { width: 12%; text-align: center; overflow-wrap: anywhere; }
.customer-list-table .customer-count-column { width: 10%; text-align: center; }
.customer-list-table .customer-balance-column { width: 17%; text-align: center; }
.customer-list-table .customer-last-purchase-column { width: 13%; text-align: center; }
.customer-list-table .customer-actions-column { width: 23%; text-align: center; }
.customer-table-name { display: flex; align-items: flex-start; gap: .65rem; min-width: 0; }
.customer-table-name-copy { display: grid; min-width: 0; gap: .22rem; }
.customer-table-name strong { color: #1e293b; font-weight: 800; overflow-wrap: anywhere; }
.customer-table-contact-number { width: fit-content; max-width: 100%; color: #52647a; font-size: .75rem; font-variant-numeric: tabular-nums; text-align: left; text-decoration: none; }
.customer-table-contact-number:hover { color: #1d4ed8; text-decoration: underline; }
.customer-table-follow-ups-label { margin-top: .15rem; color: #64748b; font-size: .68rem; font-weight: 750; }
.customer-table-follow-ups { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-width: 0; }
.customer-type-badge { display: inline-flex; width: fit-content; align-items: center; padding: .12rem .45rem; border-radius: 999px; font-size: .64rem; font-weight: 750; line-height: 1.5; white-space: nowrap; }
.customer-type-badge-individual { color: #536273; background: #f1f5f9; }
.customer-type-badge-organization { color: #146b65; background: #e8f6f3; }
.customer-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #dbeafe; border-radius: 12px; color: #2563eb; background: #eff6ff; font-size: 1.05rem; }
.customer-purchase-count { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: .2rem .55rem; border-radius: 999px; color: #1d4ed8; background: #eff6ff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.customer-immediate-follow-ups { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.customer-table-balance { font-variant-numeric: tabular-nums; white-space: nowrap; }
.customer-row-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem; white-space: normal; }
.customer-row-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 38px; border-radius: 10px; font-size: .72rem; }
.customer-row-actions form { margin: 0; }
.customer-list-table a:focus-visible,
.customer-list-table button:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.customer-empty-state { display: grid; justify-items: center; gap: .55rem; padding: 3rem 1.25rem; text-align: center; }
.customer-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: .35rem; border-radius: 18px; color: #2563eb; background: #eff6ff; font-size: 1.4rem; }
.customer-empty-state h2 { margin: 0; color: #1e293b; font-size: 1.05rem; font-weight: 850; }
.customer-empty-state p { max-width: 440px; margin: 0 0 .5rem; color: #64748b; font-size: .82rem; line-height: 1.9; }
.customer-empty-state .btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
.customer-directory-card > .pagination-panel,
.customer-directory-card > .pagination-pane { margin: .25rem 1rem 1rem; border-radius: 12px; }
.customer-follow-up-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; max-width: 620px; padding: .85rem; border: 1px solid #e5eaf1; border-radius: 12px; background: #f8fafc; }
.customer-follow-up-form label { margin: 0; color: #475569; font-size: .78rem; font-weight: 750; }
.customer-follow-up-form input,
.customer-follow-up-form select,
.customer-follow-up-form textarea { min-width: 0; border-radius: 9px; }
.customer-follow-up-form textarea,
.customer-follow-up-form button { grid-column: 1 / -1; }
.customer-follow-up-form { overflow: visible; }
.customer-brief-actions:has(details[open]) { position: relative; z-index: 3; overflow: visible; }
.customer-follow-up-date-field { position: relative; grid-column: 1 / -1; min-width: 0; }
.customer-follow-up-date-field .persian-datepicker { right: 0; left: auto; z-index: 1080; width: min(280px, calc(100vw - 2rem)); }
.customer-follow-up-date-field .persian-datepicker-wrapper { position: relative; }
.customer-follow-up-status { display: inline-flex; align-items: center; min-height: 26px; padding: .25rem .6rem; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.customer-follow-up-status-open { border-color: #f1cf82; color: #805500; background: #fff3cd; }
.customer-follow-up-status-in-progress { border-color: #a9c8ff; color: #174ea6; background: #e8f1ff; }
.customer-follow-up-status-completed { border-color: #a7dfc2; color: #146c43; background: #dff4e8; }
.customer-follow-up-status-cancelled { border-color: #d8dee8; color: #475569; background: #e9edf2; }
.customer-brief-actions details[name="customer-timeline-action"] > summary { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .8rem; }
.customer-brief-actions details[name="customer-timeline-action"] > form { margin-top: .75rem !important; }
.customer-brief-actions .table-responsive { border: 1px solid #e8edf3; border-radius: 12px; }
.customer-brief-actions .table { margin: 0; }
.customer-brief-actions td { vertical-align: middle; }
.customer-brief-actions details > summary { cursor: pointer; list-style: none; }
.customer-brief-actions details > summary::-webkit-details-marker { display: none; }
.customer-timeline { position: relative; display: grid; gap: .8rem; margin: 0; padding: 0 1.25rem 0 0; list-style: none; }
.customer-timeline::before { position: absolute; top: .45rem; right: .3rem; bottom: .45rem; width: 2px; background: #dbeafe; content: ""; }
.customer-timeline li { position: relative; display: grid; gap: .25rem; min-width: 0; padding: .8rem 1rem; border: 1px solid #e8edf3; border-radius: 12px; background: #fff; }
.customer-timeline li.customer-timeline-day { padding: .2rem .25rem; border: 0; background: transparent; }
.customer-timeline-day::before { display: none; }
.customer-timeline-day h3 { margin: 0; color: #64748b; font-size: .82rem; font-weight: 800; }
.customer-timeline li::before { position: absolute; top: 1rem; right: -1.22rem; width: .65rem; height: .65rem; border: 2px solid #fff; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 2px #bfdbfe; content: ""; }
.customer-timeline li[data-timeline-type="invoice"],
.customer-timeline li[data-timeline-type="payment"],
.customer-timeline li[data-timeline-type="proforma"] { border-inline-start: 3px solid #93c5fd; }
.customer-timeline li[data-timeline-type="note"],
.customer-timeline li[data-timeline-type="interaction"] { border-inline-start: 3px solid #a7dfc2; }
.customer-timeline li[data-timeline-type="reschedule"] { border-inline-start: 3px solid #c4b5fd; }
.customer-timeline strong { color: #1e293b; }
.customer-timeline time,
.customer-timeline span { color: #64748b; font-size: .75rem; }
.customer-timeline p { margin: .15rem 0; overflow-wrap: anywhere; color: #475569; font-size: .83rem; line-height: 1.8; }
.customer-pagination { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; color: #64748b; font-size: .78rem; }
.customer-follow-up-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.customer-form-section input[list] { background-color: #fff; }
.customer-form-page { width: min(100%, 850px); margin-inline: auto; }
.customer-form-page-heading { align-items: center; }
.customer-form-page-title { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.customer-form-page-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid #dbeafe; border-radius: 16px; color: #2563eb; background: #eff6ff; font-size: 1.35rem; }
.customer-form { display: grid; gap: 1rem; width: 100%; max-width: none; margin: 0 auto; padding: 1.15rem; border: 1px solid #e3eaf2; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(15, 23, 42, .05); }
.customer-form-section { padding: .25rem 0 1rem; border: 0; border-bottom: 1px solid #edf1f6; border-radius: 0; background: transparent; }
.customer-form-section-heading { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #edf1f6; }
.customer-form-section-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #2563eb; background: #eff6ff; font-size: 1rem; }
.customer-form-section-heading h2 { margin: 0; color: #1e293b; font-size: .94rem; font-weight: 850; }
.customer-form-section-heading p { margin: .2rem 0 0; color: #64748b; font-size: .74rem; }
.customer-type-fieldset { min-width: 0; margin: 0 0 1rem; padding: 0; border: 0; }
.customer-type-fieldset legend { float: none; width: auto; }
.customer-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.customer-type-option { position: relative; display: block; min-width: 0; margin: 0; cursor: pointer; }
.customer-type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.customer-type-card { display: flex; min-height: 72px; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid #dbe3ed; border-radius: 12px; color: #475569; background: #fff; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.customer-type-card > i { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #64748b; background: #f1f5f9; font-size: 1.05rem; }
.customer-type-card > span { display: grid; gap: .16rem; }
.customer-type-card strong { color: #1e293b; font-size: .84rem; font-weight: 800; }
.customer-type-card small { color: #64748b; font-size: .72rem; }
.customer-type-option input:checked + .customer-type-card { border-color: #2563eb; color: #1d4ed8; background: #f6f9ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .08); }
.customer-type-option input:checked + .customer-type-card > i { color: #2563eb; background: #eaf1ff; }
.customer-type-option input:focus-visible + .customer-type-card { outline: 3px solid rgba(37, 99, 235, .22); outline-offset: 2px; }
.customer-form-address { padding: 0; border-bottom: 0; }
.customer-address-summary { display: flex; align-items: center; gap: .7rem; cursor: pointer; list-style: none; }
.customer-address-summary::-webkit-details-marker { display: none; }
.customer-address-summary > span:nth-child(2) { display: grid; gap: .18rem; flex: 1 1 auto; }
.customer-address-summary strong { color: #1e293b; font-size: .9rem; font-weight: 800; }
.customer-address-summary small { color: #64748b; font-size: .74rem; }
.customer-address-chevron { color: #64748b; transition: transform .16s ease; }
.customer-form-address[open] .customer-address-chevron { transform: rotate(180deg); }
.customer-address-content { padding-top: 1rem; }
.customer-form .form-label { margin-bottom: .4rem; color: #334155; font-size: .79rem; font-weight: 750; }
.customer-form .form-control,
.customer-form .form-select { min-height: 44px; border-color: #dbe3ed; border-radius: 10px; background-color: #fff; box-shadow: none; }
.customer-form textarea.form-control { min-height: 92px; resize: vertical; }
.customer-form .form-control:focus,
.customer-form .form-select:focus { border-color: #93b4f6; box-shadow: 0 0 0 3px rgba(37, 99, 235, .09); }
.customer-form .mobile-input,
.customer-form input[name="PostalCode"] { text-align: right; font-variant-numeric: tabular-nums; }
.customer-form .text-danger { display: block; min-height: 0; margin-top: .3rem; font-size: .73rem; }
.customer-required-mark { color: #dc2626; }
.customer-optional-label { margin-inline-start: .25rem; color: #94a3b8; font-size: .7rem; font-weight: 500; }
.customer-validation-summary { margin: 0; border-radius: 11px; font-size: .82rem; }
.customer-form-actions { display: flex; align-items: center; gap: .55rem; padding-top: .25rem; }
.customer-form-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 138px; min-height: 44px; border-radius: 10px; font-weight: 750; }

@media (min-width: 992px) and (max-width: 1399.98px) {
  .customer-list-table > thead > tr > th,
  .customer-list-table > tbody > tr > td,
  .customer-list-table > tbody > tr > th { padding-inline: .55rem; }
  .customer-list-table .customer-identity-column { width: 28%; }
  .customer-list-table .customer-location-column { width: 11%; }
  .customer-list-table .customer-count-column { width: 9%; }
  .customer-list-table .customer-balance-column { width: 18%; }
  .customer-list-table .customer-last-purchase-column { width: 13%; }
  .customer-list-table .customer-actions-column { width: 21%; }
  .customer-row-actions { gap: .3rem; }
  .customer-row-actions .btn { padding-inline: .35rem; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .customer-list-table .customer-location-column,
  .customer-list-table .customer-count-column,
  .customer-list-table .customer-last-purchase-column { display: none; }
  .customer-list-table .customer-identity-column { width: 44%; }
  .customer-list-table .customer-balance-column { width: 28%; }
  .customer-list-table .customer-actions-column { width: 28%; }
  .customer-list-table > thead > tr > th,
  .customer-list-table > tbody > tr > td,
  .customer-list-table > tbody > tr > th { padding-inline: .55rem; }
  .customer-row-actions { gap: .3rem; }
  .customer-row-actions .btn { min-height: 36px; padding-inline: .35rem; }
}

@media (max-width: 767.98px) {
  .customer-page-heading,
  .customer-form-page-heading { align-items: stretch; flex-direction: column; gap: .85rem; }
  .customer-page-heading-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-page-heading-actions .btn { width: 100%; }
  .customer-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-overview-grid { gap: .55rem; }
  .customer-overview-card { gap: .55rem; padding: .75rem .65rem; border-radius: 13px; }
  .customer-overview-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 11px; font-size: .95rem; }
  .customer-overview-card > div > span { font-size: .78rem; line-height: 1.5; }
  .customer-overview-card strong { font-size: 1.08rem; }
  .customer-filter-panel { align-items: stretch; flex-direction: column; padding: .8rem; }
  .customer-search-field { min-height: 46px; }
  .customer-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-filter-actions .form-select { min-width: 0; width: 100%; }
  .customer-results-summary { align-items: flex-start; flex-direction: column; gap: .2rem; padding: .8rem; }
  .customer-results-summary-note { display: none; }
  .customer-follow-up-form { grid-template-columns: 1fr; }
  .customer-follow-up-form textarea,
  .customer-follow-up-form button { grid-column: auto; }
  .customer-pagination { align-items: flex-start; flex-direction: column; }
  .customer-list-table { table-layout: fixed; }
  .customer-list-table .customer-location-column,
  .customer-list-table .customer-count-column,
  .customer-list-table .customer-last-purchase-column { display: none; }
  .customer-list-table .customer-identity-column { width: 43%; }
  .customer-list-table .customer-balance-column { width: 29%; }
  .customer-list-table .customer-actions-column { width: 28%; }
  .customer-list-table > thead > tr > th,
  .customer-list-table > tbody > tr > td,
  .customer-list-table > tbody > tr > th { padding: .65rem .35rem; font-size: .72rem; }
  .customer-table-name { gap: .45rem; }
  .customer-list-table .customer-avatar { flex-basis: 30px; width: 30px; height: 30px; border-radius: 10px; font-size: .88rem; }
  .customer-table-name-copy { gap: .16rem; }
  .customer-table-name strong { font-size: .76rem; }
  .customer-table-contact-number { font-size: .68rem; }
  .customer-table-follow-ups-label { font-size: .62rem; }
  .customer-table-follow-ups { gap: .2rem; }
  .customer-table-follow-ups .badge { max-width: 100%; font-size: .58rem; white-space: normal; }
  .customer-table-balance { font-size: .68rem; white-space: normal; overflow-wrap: anywhere; }
  .customer-row-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .customer-row-actions form { width: 100%; min-width: 0; }
  .customer-row-actions .btn { width: 100%; min-width: 0; min-height: 40px; padding: .2rem .1rem; font-size: .62rem; }
  .customer-row-actions .btn i { font-size: .82rem; }
  .customer-directory-card > .pagination-panel { align-items: center; margin: 0 .75rem .75rem; padding: .7rem; }
  .customer-form-page-heading { align-items: flex-start; }
  .customer-form { gap: .75rem; padding: .7rem; border-radius: 15px; }
  .customer-form-section { padding: .25rem 0 .85rem; }
  .customer-form-section-heading { align-items: flex-start; }
  .customer-form-section-heading p { line-height: 1.7; }
  .customer-type-options { grid-template-columns: 1fr; gap: .55rem; }
  .customer-type-card { min-height: 64px; padding: .7rem .8rem; }
  .customer-form-address { padding: 0; }
  .customer-address-summary { align-items: flex-start; }
  .customer-form-actions { position: sticky; bottom: .5rem; z-index: 5; padding: .65rem; border: 1px solid #e3eaf2; border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 4px 16px rgba(15, 23, 42, .1); backdrop-filter: blur(8px); }
  .customer-form-actions .btn { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 420px) {
  .customer-type-card small { font-size: .69rem; }
}

@media (max-width: 420px) {
  .customer-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-overview-card { padding: .65rem .8rem; }
  .customer-overview-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .customer-filter-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .customer-filter-actions .form-select { grid-column: 1 / -1; }
  .customer-filter-actions .btn { min-width: 0; }
  .customer-list-table .customer-identity-column { width: 41%; }
  .customer-list-table .customer-balance-column { width: 30%; }
  .customer-list-table .customer-actions-column { width: 29%; }
  .customer-list-table > thead > tr > th,
  .customer-list-table > tbody > tr > td,
  .customer-list-table > tbody > tr > th { padding-inline: .25rem; }
  .customer-list-table .customer-avatar { flex-basis: 27px; width: 27px; height: 27px; }
}

.customer-print-header { display: none; }

.customer-print-document { min-height: 100vh; margin: 0; padding: 2rem; color: #203047; background: #edf2f5; font-family: Vazirmatn, sans-serif; }
.customer-print-sheet { max-width: 1100px; margin: 0 auto; padding: 2.5rem; border: 1px solid #dce5eb; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(27, 48, 65, .08); }
.customer-print-cover { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 2px solid #244e5b; }
.customer-print-brand { display: flex; align-items: center; gap: .75rem; }
.customer-print-brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: #244e5b; font-size: 1.3rem; font-weight: 800; }
.customer-print-brand div,
.customer-print-meta { display: grid; gap: .2rem; }
.customer-print-brand strong { font-size: .92rem; }
.customer-print-brand div span,
.customer-print-meta span { color: #718096; font-size: .72rem; }
.customer-print-title { text-align: center; }
.customer-print-title > span { color: #558078; font-size: .72rem; font-weight: 700; }
.customer-print-title h1 { margin: .1rem 0; color: #183946; font-size: 1.8rem; font-weight: 800; }
.customer-print-title p { margin: 0; color: #68798a; font-size: .78rem; }
.customer-print-meta { justify-items: start; }
.customer-print-meta strong { color: #203047; font-size: .85rem; }
.customer-print-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.customer-print-summary > div { display: grid; gap: .35rem; padding: .8rem 1rem; border: 1px solid #e1e9ed; border-radius: 12px; background: #f8fafb; }
.customer-print-summary span { color: #718096; font-size: .7rem; }
.customer-print-summary strong { color: #203047; font-size: .9rem; }
.customer-print-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.customer-print-table th,
.customer-print-table td { padding: .65rem .5rem; border-bottom: 1px solid #e3e9ed; text-align: right; vertical-align: middle; overflow-wrap: anywhere; font-size: .75rem; }
.customer-print-table th { color: #fff; background: #315e68; font-weight: 700; }
.customer-print-table th:first-child { border-radius: 0 8px 0 0; }
.customer-print-table th:last-child { border-radius: 8px 0 0 0; }
.customer-print-table tbody tr:nth-child(even) { background: #f8fafb; }
.customer-print-table td small { display: block; margin-top: .15rem; color: #82909b; font-size: .65rem; }
.customer-print-table td[dir="ltr"] { text-align: left; font-variant-numeric: tabular-nums; }
.customer-print-index { color: #82909b; }
.customer-print-empty { padding: 3rem 1rem; border: 1px dashed #cbd6dc; border-radius: 12px; color: #657786; text-align: center; }
.customer-print-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid #e3e9ed; color: #82909b; font-size: .7rem; }
.customer-print-action { padding: .55rem 1rem; border: 0; border-radius: 9px; color: #fff; background: #244e5b; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }

@media (max-width: 767.98px) {
  .customer-print-document { padding: .75rem; }
  .customer-print-sheet { padding: 1rem; }
  .customer-print-cover { grid-template-columns: 1fr 1fr; }
  .customer-print-title { grid-column: 1 / -1; grid-row: 2; }
  .customer-print-meta { justify-items: end; }
  .customer-print-summary { grid-template-columns: 1fr; }
  .customer-print-table th,
  .customer-print-table td { padding: .4rem .25rem; font-size: .62rem; }
}

@media (max-width: 767.98px) {
  .customer-statement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  @page customer-list { size: A4 landscape; margin: 10mm; }
  body.customer-print-document { page: customer-list; }
  body:has(.customer-statement-page) { display: block !important; width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; }
  .content-wrapper.app-content:has(.customer-statement-page),
  .container:has(> main > .customer-statement-page) { position: static !important; display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  main:has(> .customer-statement-page) { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  body.customer-print-document { display: block !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; color: #203047 !important; background: #fff !important; font-family: Vazirmatn, sans-serif !important; }
  body.customer-print-document * { visibility: visible !important; }
  .customer-print-sheet { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .customer-print-cover { grid-template-columns: 1fr 1.5fr 1fr; padding-bottom: .8rem; }
  .customer-print-brand-mark { width: 36px; height: 36px; }
  .customer-print-title h1 { font-size: 17pt; }
  .customer-print-title p,
  .customer-print-brand div span,
  .customer-print-meta span { font-size: 7pt; }
  .customer-print-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .75rem 0; }
  .customer-print-summary > div { padding: .45rem; border-radius: 0; background: #fff !important; break-inside: avoid; }
  .customer-print-summary span { font-size: 7pt; }
  .customer-print-summary strong { font-size: 8pt; }
  .customer-print-table { table-layout: fixed; }
  .customer-print-table thead { display: table-header-group; }
  .customer-print-table tr { break-inside: avoid; }
  .customer-print-table th,
  .customer-print-table td { padding: .38rem .25rem; border: 1px solid #cbd5e1; color: #203047 !important; background: transparent !important; font-size: 7pt; }
  .customer-print-table th { color: #fff !important; background: #315e68 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .customer-print-table th:nth-child(1) { width: 6%; }
  .customer-print-table th:nth-child(2) { width: 22%; }
  .customer-print-table th:nth-child(3) { width: 14%; }
  .customer-print-table th:nth-child(4) { width: 13%; }
  .customer-print-table th:nth-child(5) { width: 8%; }
  .customer-print-table th:nth-child(6) { width: 19%; }
  .customer-print-table th:nth-child(7) { width: 18%; }
  .customer-print-table td small { font-size: 6pt; }
  .customer-print-footer { margin-top: .7rem; }
  .customer-print-action { display: none !important; }
  .customer-statement-page .no-print { display: none !important; }
  .customer-statement-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin-bottom: .6rem; }
  .customer-statement-summary > div { padding: .45rem; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff !important; break-inside: avoid; }
  .customer-statement-summary small { color: #475569; font-size: 8pt; }
  .customer-statement-summary strong { color: #172033; font-size: 9pt; }
  .customer-statement-table { padding: .5rem; border: 1px solid #cbd5e1; border-radius: 0; box-shadow: none; }
  .customer-statement-table .customer-brief-actions-head { margin-bottom: .25rem; }
  .customer-statement-table .customer-brief-actions-head h2 { font-size: 10pt; }
  .customer-statement-table .customer-brief-actions-head p { margin-bottom: .4rem; font-size: 8pt; }
  .customer-statement-table .table-responsive { overflow: visible !important; }
  .customer-statement-table .table { width: 100% !important; border-collapse: collapse; table-layout: fixed; }
  .customer-statement-table .table thead { display: table-header-group; }
  .customer-statement-table .table th,
  .customer-statement-table .table td { padding: .35rem; border: 1px solid #cbd5e1; color: #172033 !important; background: #fff !important; font-size: 8pt; }
  .customer-statement-table .table tbody tr { break-inside: avoid; }
}

.onboarding-guide { overflow: hidden; border: 1px solid #d7e4e9; border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(24, 53, 76, .08); }
.onboarding-guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem 1.1rem; border-bottom: 1px solid #edf2f5; background: #f8fbfc; }
.onboarding-guide-intro { display: flex; align-items: flex-start; gap: .9rem; min-width: 0; }
.onboarding-guide-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #d5e5e5; border-radius: 15px; color: #356d78; background: #eaf3f2; font-size: 1.2rem; }
.onboarding-guide-eyebrow { color: #4b777e; font-size: .7rem; font-weight: 800; }
.onboarding-guide-header h2 { margin: .12rem 0 .25rem; color: #19354b; font-size: 1.08rem; font-weight: 900; line-height: 1.65; }
.onboarding-guide-header p { margin: 0; color: #647789; font-size: .77rem; line-height: 1.8; }
.onboarding-guide-dismiss { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid #dce5eb; border-radius: 10px; color: #607283; background: #fff; font: inherit; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.onboarding-guide-dismiss:hover { color: #284f66; border-color: #c4d5dd; background: #f5f9fa; }
.onboarding-guide-progress { padding: 1rem 1.5rem .85rem; }
.onboarding-guide-progress-copy { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .45rem; color: #536a7c; font-size: .73rem; }
.onboarding-guide-progress-copy strong { color: #315f7c; font-weight: 800; }
.onboarding-guide-progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8eef1; direction: rtl; }
.onboarding-guide-progress-track span { display: block; height: 100%; border-radius: inherit; background: #5d9a8c; transition: width .3s ease; }
.onboarding-guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; padding: 0 1.5rem 1.5rem; }
.onboarding-guide-step { display: flex; min-width: 0; min-height: 190px; flex-direction: column; padding: .85rem; border: 1px solid #e3eaee; border-radius: 15px; background: #fff; }
.onboarding-guide-step.is-complete { border-color: #d5e8df; background: #fbfdfc; }
.onboarding-guide-step.is-optional { background: #f9fbfc; }
.onboarding-guide-step-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.onboarding-guide-step-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #3f7083; background: #edf4f6; font-size: .95rem; }
.onboarding-guide-step-state { color: #39755d; font-size: .63rem; font-weight: 800; white-space: nowrap; }
.onboarding-guide-step-state i { margin-inline-end: .2rem; }
.onboarding-guide-step-number { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #dce7ec; border-radius: 50%; color: #607789; background: #f7fafb; font-size: .67rem; font-weight: 800; }
.onboarding-guide-step h3 { margin: .65rem 0 .2rem; color: #243f54; font-size: .82rem; font-weight: 850; }
.onboarding-guide-step p { margin: 0 0 .7rem; color: #65788a; font-size: .69rem; line-height: 1.85; }
.onboarding-guide-step-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: #315f7c; font-size: .7rem; font-weight: 800; text-decoration: none; }
.onboarding-guide-step-link:hover { color: #234b64; text-decoration: underline; }
.onboarding-guide-reopen { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; border: 1px solid #dce7ec; border-radius: 14px; color: #506b7e; background: #fff; font-size: .78rem; }
@media (max-width: 1199.98px) {
  .onboarding-guide-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .onboarding-guide { border-radius: 17px; }
  .onboarding-guide-header { padding: 1rem; }
  .onboarding-guide-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
  .onboarding-guide-header h2 { font-size: .94rem; }
  .onboarding-guide-progress { padding: .8rem 1rem; }
  .onboarding-guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: 0 1rem 1rem; }
  .onboarding-guide-step { min-height: 184px; padding: .7rem; }
  .onboarding-guide-step p { font-size: .66rem; }
}

@media (max-width: 480px) {
  .onboarding-guide-header { flex-direction: column; }
  .onboarding-guide-header > form { align-self: flex-end; }
  .onboarding-guide-steps { grid-template-columns: 1fr; }
  .onboarding-guide-step { min-height: 0; }
  .onboarding-guide-reopen { align-items: stretch; flex-direction: column; }
}

.subscription-plans-page,.subscription-checkout-page,.payment-result-page{max-width:1120px;margin:0 auto;padding:clamp(1rem,3vw,2rem) 0 3rem;color:#20354a}
.public-page-content{width:100%;max-width:none;margin-inline:auto;padding-inline:clamp(16px,3vw,36px)}
.public-page-content>main{width:100%;max-width:1560px;margin-inline:auto}
.feedback-public-content>main{max-width:none}
.public-page-content .subscription-plans-page{max-width:1440px;padding-inline:0}
.subscription-plans-hero{margin-bottom:1.5rem;padding:clamp(1.35rem,4vw,2.5rem);border:1px solid #dce6e8;border-radius:24px;background:#f5f8f8;text-align:right}
.subscription-plans-eyebrow{display:inline-flex;align-items:center;gap:.45rem;color:#4f827c;font-size:.83rem;font-weight:800}
.subscription-plans-hero h1,.subscription-checkout-heading h1{margin:.7rem 0;color:#20354a;font-size:clamp(1.55rem,3vw,2.1rem);font-weight:900;line-height:1.5}
.subscription-plans-hero>p,.subscription-checkout-heading>p{max-width:760px;margin:0;color:#66788a;font-size:.94rem;line-height:2}
.subscription-plans-points{display:flex;flex-wrap:wrap;gap:.55rem 1.2rem;margin-top:1.15rem;color:#43596d;font-size:.81rem;font-weight:700}
.subscription-plans-points span{display:inline-flex;align-items:center;gap:.4rem}.subscription-plans-points i{color:#4f827c}
.subscription-plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));align-items:stretch;gap:1.1rem}
.subscription-plan-card{position:relative;display:flex;min-width:0;flex-direction:column;padding:1.3rem;border:1px solid #dce6e8;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(32,53,74,.055);text-align:right;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.subscription-plan-card:hover{transform:translateY(-3px);border-color:#9bb8bd;box-shadow:0 14px 30px rgba(32,53,74,.1)}
.subscription-plan-card.is-featured{border:2px solid #54877c;background:#f2f8f5;box-shadow:0 16px 34px rgba(47,105,91,.18)}
.subscription-plan-card.is-featured .subscription-plan-icon{color:#fff;background:#54877c}
.subscription-plan-card.is-featured .subscription-plan-price strong{color:#286a5b}
.subscription-plan-badge{position:absolute;top:-.72rem;right:50%;display:inline-flex;align-items:center;gap:.4rem;padding:.43rem .85rem;border:1px solid #397568;border-radius:999px;color:#fff;background:#397568;box-shadow:0 5px 14px rgba(43,105,91,.24);font-size:.78rem;font-weight:900;white-space:nowrap;transform:translateX(50%)}
.subscription-plan-card-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:1rem}
.subscription-plan-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#426e72;background:#edf4f4;font-size:1.12rem}
.subscription-plan-duration{padding:.35rem .62rem;border-radius:999px;color:#435f6f;background:#f1f5f6;font-size:.76rem;font-weight:800}
.subscription-plan-card h2{margin:0;color:#20354a;font-size:1.06rem;font-weight:900}
.subscription-plan-description{min-height:3.2rem;margin:.35rem 0 1rem;color:#66788a;font-size:.8rem;line-height:1.9}
.subscription-plan-price{display:flex;align-items:baseline;gap:.4rem;padding-bottom:.85rem;border-bottom:1px solid #e8eef0}
.subscription-plan-price strong{color:#315f7c;font-size:1.65rem;font-weight:900;letter-spacing:-.02em}
.subscription-plan-price span{color:#66788a;font-size:.78rem;font-weight:700}
.subscription-plan-monthly{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.75rem 0;color:#66788a;font-size:.75rem}
.subscription-plan-monthly strong{color:#36576a;font-size:.83rem}.subscription-plan-monthly small{font-size:.68rem;font-weight:600}
.subscription-plan-benefits{display:grid;gap:.45rem;margin:.2rem 0 1.1rem;padding:0;list-style:none;color:#4b6574;font-size:.78rem}
.subscription-plan-benefits li{display:flex;align-items:center;gap:.4rem}.subscription-plan-benefits i{color:#4f827c;font-size:.95rem}
.subscription-plan-select,.subscription-checkout-pay,.payment-result-primary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:46px;border:1px solid #315f7c;border-radius:11px;color:#fff;background:#315f7c;font-weight:800;text-decoration:none;transition:background-color .16s ease,border-color .16s ease}
.subscription-plan-select{width:100%;margin-top:auto;padding:.7rem}
.subscription-plan-select:hover,.subscription-checkout-pay:hover,.payment-result-primary:hover{border-color:#274d66;color:#fff;background:#274d66}
.subscription-plans-empty{max-width:680px;margin:2rem auto;padding:2rem;border:1px solid #dce6e8;border-radius:20px;background:#fff;text-align:center}
.subscription-plans-empty>span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto .8rem;border-radius:15px;color:#4f827c;background:#edf4f4;font-size:1.2rem}
.subscription-plans-empty h2{font-size:1.1rem;font-weight:850}.subscription-plans-empty p{color:#66788a;line-height:1.9}
.public-pricing-page .subscription-plans-hero{margin-bottom:1.25rem;border-color:#e2e9f1;border-radius:22px;background:linear-gradient(135deg,#f5f8fc 0%,#fff 100%)}
.public-pricing-page .subscription-plans-eyebrow{color:#2458d3}
.public-pricing-page .subscription-plans-hero h1{color:#172b4d;font-size:clamp(1.55rem,3vw,2.15rem);line-height:1.55}
.public-pricing-page .subscription-plans-hero>p{max-width:820px;color:#52647a}
.public-pricing-page .subscription-plans-points{color:#3f536b}
.public-pricing-page .subscription-plans-points i{color:#28745d}
.public-pricing-page .subscription-plans-grid{gap:1rem}
.public-pricing-page .subscription-plan-card{padding:1.25rem;border-color:#e2e9f1;border-radius:18px;box-shadow:0 8px 24px rgba(23,43,77,.06)}
.public-pricing-page .subscription-plan-card:hover{border-color:#a9bad3;box-shadow:0 14px 28px rgba(23,43,77,.1)}
.public-pricing-page .subscription-plan-card.is-featured{border:2px solid #28745d;background:#f1f8f4;box-shadow:0 12px 30px rgba(40,116,93,.13)}
.public-pricing-page .subscription-plan-card.is-featured .subscription-plan-price strong{color:#2458d3}
.public-pricing-page .subscription-plan-card-heading{min-height:2.5rem;margin-bottom:1.1rem}
.public-pricing-page .subscription-plan-card-heading h2{flex:1;min-width:0;color:#172b4d;font-size:1rem;line-height:1.6}
.public-pricing-page .subscription-plan-badge{position:static;flex:0 0 auto;padding:.36rem .62rem;border:1px solid #cde7d8;border-radius:999px;color:#28745d;background:#eaf5ef;box-shadow:none;font-size:.72rem;transform:none}
.public-pricing-page .subscription-plan-price{gap:.35rem;padding-bottom:0;border-bottom:0}
.public-pricing-page .subscription-plan-price strong{color:#2458d3;font-size:clamp(1.45rem,2vw,1.65rem)}
.public-pricing-page .subscription-plan-price span{color:#52647a;font-size:.82rem}
.public-pricing-page .subscription-plan-price-label{display:block;margin-top:.12rem;padding-bottom:.85rem;border-bottom:1px solid #e2e9f1;color:#52647a;font-size:.76rem;font-weight:700}
.public-pricing-page .subscription-plan-monthly{min-height:3.5rem;color:#52647a;font-size:.76rem}
.public-pricing-page .subscription-plan-monthly span small{display:block;margin-top:.12rem;color:#738197;font-size:.68rem;font-weight:500}
.public-pricing-page .subscription-plan-monthly strong{color:#314966;font-size:.84rem;white-space:nowrap}
.public-pricing-page .subscription-plan-select{border-color:#2458d3;border-radius:10px;background:#2458d3}
.public-pricing-page .subscription-plan-select:hover{border-color:#1d46ad;background:#1d46ad}
.public-pricing-page .subscription-plan-select:focus-visible{outline:3px solid rgba(36,88,211,.4);outline-offset:3px}
.public-pricing-page>.pricing-footer-breakout{position:relative;left:50%;width:100vw;max-width:none;margin:0;transform:translateX(-50%)}
.public-pricing-page>.pricing-footer-breakout>.home-footer{width:100%;max-width:none;margin:0}
.subscription-checkout-heading{margin-bottom:1.2rem;text-align:right}
.subscription-checkout-card{max-width:760px;margin:0 auto;padding:clamp(1rem,3vw,1.6rem);border:1px solid #dce6e8;border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(32,53,74,.08)}
.subscription-checkout-plan-heading{display:flex;align-items:center;gap:.8rem;padding-bottom:1.1rem;border-bottom:1px solid #e8eef0}
.subscription-checkout-plan-heading>div>span{color:#66788a;font-size:.76rem}.subscription-checkout-plan-heading h2{margin:.15rem 0 0;color:#20354a;font-size:1.12rem;font-weight:900}
.subscription-checkout-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0}
.subscription-checkout-details>div{min-width:0;padding:.8rem;border:1px solid #e5ecee;border-radius:12px;background:#f8fafb}
.subscription-checkout-details span,.subscription-checkout-details strong{display:block}.subscription-checkout-details span{color:#66788a;font-size:.72rem}.subscription-checkout-details strong{margin-top:.3rem;color:#20354a;font-size:.84rem}
.subscription-checkout-price{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border-radius:14px;color:#36576a;background:#edf4f4}
.subscription-checkout-price>span{font-size:.84rem;font-weight:750}.subscription-checkout-price strong{color:#315f7c;font-size:1.35rem;font-weight:900}.subscription-checkout-price small{font-size:.76rem}
.subscription-checkout-notice{display:flex;align-items:flex-start;gap:.55rem;margin:1rem 0;color:#66788a;font-size:.78rem;line-height:1.9}.subscription-checkout-notice i{margin-top:.22rem;color:#4f827c}
.subscription-checkout-actions{display:flex;justify-content:space-between;gap:.7rem;padding-top:.3rem}.subscription-checkout-actions form{flex:1}
.subscription-checkout-back,.payment-result-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.65rem 1rem;border:1px solid #cbd8dd;border-radius:11px;color:#43596d;background:#fff;font-weight:750;text-decoration:none}
.subscription-checkout-back:hover,.payment-result-secondary:hover{border-color:#9bb8bd;color:#274d66;background:#f5f8f8}
.subscription-checkout-pay{width:100%;padding:.7rem 1rem}
.payment-result-page{display:grid;min-height:62vh;place-items:center;padding-block:clamp(1.4rem,4vw,3rem)}
.payment-result-card{--result-accent:#466f82;--result-soft:#edf3f6;width:min(100%,660px);padding:clamp(1.2rem,3.5vw,2.2rem);border:1px solid #d5e0e5;border-radius:21px;background:#fff;box-shadow:0 14px 36px rgba(32,53,74,.11);text-align:center}
.payment-result-card.result-success{--result-accent:#34775f;--result-soft:#eaf5ef}
.payment-result-card.result-failed,.payment-result-card.result-cancelled{--result-accent:#a45e50;--result-soft:#fbefeb}
.payment-result-card.result-pending,.payment-result-card.result-blocked{--result-accent:#9a762f;--result-soft:#faf3df}
.payment-result-icon{display:grid;place-items:center;width:66px;height:66px;margin:0 auto .9rem;border:1px solid color-mix(in srgb,var(--result-accent) 24%,white);border-radius:20px;color:var(--result-accent);background:var(--result-soft);font-size:1.75rem;box-shadow:0 7px 16px color-mix(in srgb,var(--result-accent) 12%,transparent)}
.payment-result-eyebrow{display:inline-flex;align-items:center;justify-content:center;min-height:27px;margin-bottom:.35rem;padding:.2rem .65rem;border:1px solid color-mix(in srgb,var(--result-accent) 24%,white);border-radius:999px;color:var(--result-accent);background:var(--result-soft);font-size:.74rem;font-weight:850}
.payment-result-card h1{margin:.3rem 0 .75rem;color:#20354a;font-size:clamp(1.25rem,2.7vw,1.6rem);font-weight:900;line-height:1.55}
.payment-result-message{max-width:540px;margin:0 auto;padding:.9rem 1.05rem;border:1px solid color-mix(in srgb,var(--result-accent) 19%,white);border-radius:14px;color:#405b6b;background:var(--result-soft);font-size:.9rem;line-height:2;text-align:right}
.payment-result-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1.25rem 0 0;padding:0;text-align:right}
.payment-result-details>div{min-width:0;padding:.78rem .9rem;border:1px solid #dfe8ec;border-radius:12px;background:#f7f9fa}
.payment-result-details dt{margin-bottom:.3rem;color:#71818a;font-size:.75rem}
.payment-result-details dd{margin:0;color:#20354a;font-size:.9rem;font-weight:850;overflow-wrap:anywhere}
.payment-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid #e6ecef}
.payment-result-actions .btn{min-width:145px;min-height:44px;padding:.6rem .95rem;border-radius:11px;font-size:.84rem;font-weight:800}
@media(max-width:600px){.subscription-plans-page,.subscription-checkout-page{padding-top:.75rem}.public-page-content{padding-inline:14px}.subscription-plans-points{display:grid;gap:.45rem}.subscription-checkout-details{grid-template-columns:1fr}.subscription-checkout-actions{flex-direction:column-reverse}.subscription-checkout-actions>a,.subscription-checkout-actions form{width:100%}.payment-result-page{min-height:auto;padding-block:1.25rem 2.5rem}.payment-result-card{padding:1.35rem 1rem;border-radius:19px}.payment-result-icon{width:66px;height:66px;margin-bottom:1rem;font-size:1.7rem}.payment-result-message{padding:.95rem;line-height:2}.payment-result-details{grid-template-columns:1fr;gap:.6rem;margin-top:1.2rem}.payment-result-details>div{padding:.8rem .9rem}.payment-result-actions{display:grid;grid-template-columns:1fr;gap:.6rem;margin-top:1.25rem;padding-top:1rem}.payment-result-actions .btn{width:100%}.subscription-plan-card{padding:1.1rem}}

/* Public website shell */
.public-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #e5eaf1;
  background: #fff;
}

.public-header .navbar {
  min-height: 68px;
  box-shadow: none;
}

body.auth-background-shell .public-header .navbar {
  min-height: 56px;
  padding-block: .25rem;
  background-color: transparent !important;
}

body.auth-background-shell .public-header .public-wordmark::before {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 1rem;
}

.public-header .navbar > .container-fluid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-areas: "actions links brand";
  align-items: center;
  gap: .5rem 1.25rem;
  direction: ltr;
}

.public-menu-toggle {
  display: none;
}

.public-header .navbar-brand {
  color: #172b4d;
  letter-spacing: -.02em;
}

.public-header .navbar .navbar-brand {
  grid-area: brand;
  flex: 0 0 auto;
  direction: rtl;
  margin: 0;
}

.public-nav-links {
  grid-area: links;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: 0;
  direction: rtl;
}

.public-header .app-header-inner:not(.is-compact) .public-nav-links.collapse {
  display: flex !important;
}

.public-nav-links .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .8rem;
  color: #526174;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}

.public-nav-links .nav-link:hover,
.public-nav-links .nav-link:focus-visible {
  color: #173b66;
  background: #f3f6fa;
}

.public-nav-links .public-dashboard-link {
  color: var(--primary);
  font-weight: 800;
}

.public-header .public-account-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: .5rem;
  flex: 0 0 auto;
  margin: 0;
  direction: rtl;
}

@media (max-width: 991.98px) {
  .public-header .navbar > .container-fluid {
    gap: .45rem .75rem;
  }
}

.public-header .app-header-inner.is-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  grid-template-areas: "actions brand toggle" "links links links";
  row-gap: .2rem;
  padding-block: .45rem;
}

.public-header .app-header-inner.is-compact .public-menu-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: .55rem;
  border-radius: 11px;
}

.public-header .app-header-inner.is-compact .public-menu-toggle .navbar-toggler-icon {
  width: 1.25rem;
  height: 1.25rem;
  background-size: 100%;
}

.public-header .app-header-inner.is-compact .public-nav-links.collapse:not(.show) {
  display: none !important;
}

.public-header .app-header-inner.is-compact .public-nav-links.collapse.show {
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  grid-column: 1 / -1;
  width: 100%;
  max-height: min(60vh, 420px);
  padding: .5rem;
  overflow-y: auto;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.public-header .app-header-inner.is-compact .public-nav-links .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding-inline: .65rem;
}

@media (max-width: 420px) {
  .public-header .navbar > .container-fluid {
    gap: .15rem .4rem;
  }

  .public-header .app-header-inner.is-compact .public-menu-toggle {
    width: 34px;
    height: 34px;
    padding: .2rem;
    border-radius: 8px;
  }

  .public-header .app-header-inner.is-compact .public-menu-toggle .navbar-toggler-icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .public-header .app-header-inner.is-compact .public-nav-links .nav-link {
    padding-inline: .5rem;
    font-size: .8rem;
  }
}

@media (max-width: 575.98px) {
  .public-header .navbar > .container-fluid {
    gap: .15rem .4rem;
  }

  .public-nav-links {
    gap: .1rem;
  }

  .public-account-actions {
    gap: .25rem;
  }

  .public-account-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 .55rem;
    font-size: .75rem;
    line-height: 1;
    white-space: nowrap;
  }

  .public-user-menu-wrap .seller-user-trigger {
    width: 40px;
    min-height: 40px;
  }

  .public-user-menu-wrap .seller-user-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .public-header .navbar-brand {
    font-size: .92rem;
  }

  .public-nav-links .nav-link {
    padding-inline: .5rem;
    font-size: .8rem;
  }
}

/* Remove all seller logo frame styling */
.seller-sidebar .sidebar-logo-option,
.seller-sidebar .sidebar-logo-luxury,
.seller-sidebar .sidebar-logo-luxury:hover,
.seller-sidebar .sidebar-logo-luxury:focus-visible,
.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.seller-sidebar .sidebar-logo-luxury::before,
.seller-sidebar .sidebar-logo-luxury::after,
.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol::before,
.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.seller-sidebar .sidebar-head {
  border-bottom: 0 !important;
}

.seller-sidebar .sidebar-logo-luxury,
.seller-sidebar .sidebar-logo-luxury strong {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol i {
  display: inline-block;
  color: #dff7ff;
  animation: seller-diamond-shimmer 3.2s ease-in-out infinite;
}

@keyframes seller-diamond-shimmer {
  0%, 100% {
    color: #b9ddff;
    filter: drop-shadow(0 0 0 rgba(223, 247, 255, 0));
    text-shadow: none;
  }

  50% {
    color: #f5fdff;
    filter: drop-shadow(0 0 5px rgba(223, 247, 255, .72));
    text-shadow: 0 0 8px rgba(223, 247, 255, .62);
  }
}

/* Seller sidebar logo */
.seller-sidebar .sidebar-logo-luxury {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: min(100%, 150px);
  min-height: 52px;
  padding: .45rem .8rem;
  overflow: visible;
  border: 1px solid rgba(147, 197, 253, .18);
  border-radius: 18px;
  color: #f8fbff;
  background: transparent;
  box-shadow: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  color: #b9ddff;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: transform .3s ease, color .3s ease;
}

.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol::after {
  display: none;
  animation: none !important;
}

.seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol i {
  transition: transform .3s ease;
}

.seller-sidebar .sidebar-logo-luxury:hover,
.seller-sidebar .sidebar-logo-luxury:focus-visible {
  transform: translateY(-3px) scale(1.04);
  border-color: transparent;
  color: #fff;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.seller-sidebar .sidebar-logo-luxury:hover .sidebar-logo-symbol,
.seller-sidebar .sidebar-logo-luxury:focus-visible .sidebar-logo-symbol {
  transform: none;
  color: #fff;
}

.seller-sidebar .sidebar-logo-luxury:hover .sidebar-logo-symbol i,
.seller-sidebar .sidebar-logo-luxury:focus-visible .sidebar-logo-symbol i {
  transform: none;
}

.seller-sidebar .sidebar-logo-luxury:hover strong,
.seller-sidebar .sidebar-logo-luxury:focus-visible strong {
  transform: none;
  color: #fff;
}

.seller-sidebar .sidebar-logo-luxury strong {
  color: #f8fbff;
  transition: transform .3s ease, color .3s ease;
}

.seller-sidebar .sidebar-logo-luxury::after {
  display: none;
  content: '';
  position: absolute;
  z-index: 2;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8edf2;
  box-shadow: 0 0 3px #d8edf2, 0 0 8px rgba(165, 226, 244, .5);
  pointer-events: none;
  offset-path: inset(.5px round 0);
  offset-position: 0 0;
  offset-distance: 0%;
  offset-anchor: center;
  offset-rotate: 0deg;
  animation: none;
}

@keyframes seller-sidebar-logo-orbit {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .seller-sidebar .sidebar-logo-luxury,
  .seller-sidebar .sidebar-logo-luxury::after,
  .seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol,
  .seller-sidebar .sidebar-logo-luxury .sidebar-logo-symbol i,
  .seller-sidebar .sidebar-logo-luxury strong {
    animation: none;
    transition: none;
  }
}

/* Seller sidebar brand */
.seller-sidebar .sidebar-brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: .7rem 1rem;
  overflow: visible;
  border: 1px solid rgba(147, 197, 253, .42);
  border-radius: 14px;
  color: #f8fbff;
  background: #153958;
  box-shadow: 0 8px 20px rgba(8, 28, 48, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.seller-sidebar .sidebar-brand > :first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #b9ddff;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: transform .3s ease, color .3s ease;
}

.seller-sidebar .sidebar-brand:hover {
  transform: translateY(-2px) scale(1.045);
  border-color: rgba(186, 230, 253, .78);
  background: #194667;
  box-shadow: 0 12px 26px rgba(8, 28, 48, .3), 0 0 0 3px rgba(125, 211, 252, .08);
}

.seller-sidebar .sidebar-brand:hover > :first-child {
  animation: none !important;
  transform: scale(1.08);
  color: #fff;
}

.seller-sidebar .sidebar-brand::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: -3px;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9efff;
  box-shadow: 0 0 5px #d9efff, 0 0 12px rgba(125, 211, 252, .9);
  pointer-events: none;
  animation: seller-brand-light-orbit 12s linear infinite;
}

@keyframes seller-brand-light-orbit {
  0% { top: -3px; right: -3px; }
  24% { top: -3px; right: calc(100% - 3px); }
  25% { top: -3px; right: auto; left: -3px; }
  49% { top: calc(100% - 3px); right: auto; left: -3px; }
  50% { top: calc(100% - 3px); right: -3px; left: auto; }
  74% { top: calc(100% - 3px); right: -3px; left: auto; }
  75% { top: auto; right: -3px; bottom: -3px; }
  100% { top: -3px; right: -3px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .seller-sidebar .sidebar-brand,
  .seller-sidebar .sidebar-brand::after,
  .seller-sidebar .sidebar-brand > :first-child {
    animation: none;
    transition: none;
  }
}

.subscription-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e8edf3;
}

.subscription-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6f9f91;
  transition: width .45s ease;
}

.subscription-progress-meter { display: flex; align-items: center; gap: .55rem; direction: rtl; }
.subscription-progress-meter .subscription-progress-track { flex: 1 1 auto; min-width: 0; }
.subscription-progress-percent { color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.subscription-progress-percent-outside { flex: 0 0 auto; color: #536a7c; font-size: .74rem; font-weight: 800; white-space: nowrap; }

.subscription-status-page{max-width:1120px;margin:0 auto;padding-bottom:2rem}
.subscription-status-heading{align-items:flex-end;margin-bottom:1.25rem}
.eyebrow-label{display:inline-flex;align-items:center;gap:.35rem;margin-bottom:.45rem;color:#64748b;font-size:.75rem;font-weight:800}
.subscription-expired-notice{display:flex;align-items:flex-start;gap:.7rem;margin-bottom:1rem;padding:.9rem 1rem;border:1px solid #fed7aa;border-radius:14px;color:#9a3412;background:#fff7ed}
.subscription-expired-notice>i{margin-top:.15rem;font-size:1.1rem}
.subscription-expired-notice strong,.subscription-expired-notice span{display:block}
.subscription-expired-notice span{margin-top:.2rem;font-size:.82rem;color:#7c2d12}
.subscription-status-card{margin-bottom:1.5rem;padding:1.35rem;border:1px solid #dbe4f0;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.subscription-status-card.status-success{border-color:#bbf7d0;background:#fbfffc}
.subscription-status-card.status-warning{border-color:#fde68a;background:#fffdf5}
.subscription-status-card.status-attention{border-color:#fed7aa;background:#fffaf5}
.subscription-status-card.status-danger{border-color:#fecaca;background:#fffafa}
.subscription-status-card.status-warning .subscription-status-icon{color:#a16207;background:#fefce8}
.subscription-status-card.status-attention .subscription-status-icon{color:#c2410c;background:#fff7ed}
.subscription-status-card.status-danger .subscription-status-icon{color:#b91c1c;background:#fef2f2}
.subscription-status-page .subscription-status-card.status-success,
.subscription-status-page .subscription-status-card.status-warning,
.subscription-status-page .subscription-status-card.status-attention,
.subscription-status-page .subscription-status-card.status-danger{border-color:#dbe4f0;background:#fff}
.subscription-status-page .subscription-status-card.status-warning .subscription-status-icon{color:#2563eb;background:#eff6ff}
.subscription-status-card-top{display:flex;align-items:center;gap:1rem}
.subscription-status-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:16px;color:#2563eb;background:#eff6ff;font-size:1.4rem}
.status-success .subscription-status-icon{color:#15803d;background:#f0fdf4}.status-warning .subscription-status-icon{color:#a16207;background:#fefce8}.status-attention .subscription-status-icon{color:#c2410c;background:#fff7ed}.status-danger .subscription-status-icon{color:#b91c1c;background:#fef2f2}
.subscription-status-copy{min-width:0;flex:1}.subscription-status-label{color:#64748b;font-size:.76rem;font-weight:700}.subscription-status-copy h2{margin:.15rem 0 .25rem;color:#0f172a;font-size:1.25rem;font-weight:900}.subscription-status-copy p{margin:0;color:#64748b;font-size:.84rem}
.subscription-inactive-message{margin-top:1.2rem;color:#455b6b;text-align:center}.subscription-inactive-message strong,.subscription-inactive-message span{display:block}.subscription-inactive-message strong{font-size:.9rem;font-weight:800}.subscription-inactive-message span{margin-top:.2rem;color:#64748b;font-size:.82rem}
.subscription-previous-period{display:flex;flex-wrap:wrap;justify-content:center;gap:.55rem;margin:1rem 0 0}.subscription-previous-period>div{min-width:120px;padding:.55rem .75rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-align:right}.subscription-previous-period dt{color:#64748b;font-size:.72rem}.subscription-previous-period dd{margin:.2rem 0 0;color:#334155;font-size:.8rem;font-weight:750}.subscription-status-card.status-warning .subscription-previous-period>div{border-color:#f3e8b3;background:#fffef8}.subscription-status-card.status-attention .subscription-previous-period>div{border-color:#fed7aa;background:#fffdfa}
.subscription-remaining-pill{display:flex;flex-direction:column;align-items:center;min-width:104px;padding:.55rem .7rem;border-radius:14px;color:#1d4ed8;background:#eff6ff}.subscription-remaining-pill strong{font-size:1.35rem;line-height:1.4}.subscription-remaining-pill span{font-size:.72rem;font-weight:700}
.subscription-status-page .subscription-remaining-pill-high{color:#4d8569;background:#f0fdf4}
.subscription-status-page .subscription-remaining-pill-medium{color:#aa762f;background:#fffbeb}
.subscription-status-page .subscription-remaining-pill-low{color:#a95f5f;background:#fef2f2}
.subscription-progress-wrap{margin-top:2rem}
.subscription-progress-meta{display:flex;align-items:center;justify-content:space-between;column-gap:2.5rem;margin-bottom:.65rem;padding-inline:.35rem;direction:rtl;color:#3b82c4;font-size:.8rem;font-weight:700}.subscription-progress-meta>span{color:#3b82c4}.subscription-progress-meta .subscription-progress-total{color:#64748b;font-size:.74rem;font-weight:700}.subscription-progress-meta .subscription-progress-days{display:inline-flex;align-items:center;gap:.25rem;direction:rtl;flex-shrink:0;font-weight:800;white-space:nowrap}.subscription-progress-meta bdi{direction:rtl;unicode-bidi:isolate;white-space:nowrap}
.subscription-status-page .subscription-progress-meta>span{color:#64748b}
.subscription-progress-track{position:relative;height:22px;overflow:hidden;border:1px solid #d6e0ea;border-radius:999px;background:#f4f7fa;direction:rtl;box-shadow:inset 0 1px 2px rgba(71,85,105,.08)}.subscription-progress-track>.subscription-progress-fill{position:absolute;top:0;right:0;left:auto;display:flex;align-items:center;justify-content:center;height:100%;border-radius:0 999px 999px 0;transform-origin:right center;transition:width .4s ease}.subscription-progress-fill-high{background:#74a98e}.subscription-progress-fill-medium{background:#d4a45d}.subscription-progress-fill-low{background:#c97979}.subscription-progress-days{font-size:.8rem;font-weight:800;white-space:nowrap}.subscription-progress-days-high{color:#4d8569}.subscription-progress-days-medium{color:#aa762f}.subscription-progress-days-low{color:#a95f5f}
.subscription-plans-redirect{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border:1px solid #dbe4f0;border-radius:16px;background:#fff}
.subscription-recent-payments{margin-top:1.5rem}.subscription-status-page .subscription-recent-payments{margin-top:2rem}.subscription-section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.subscription-section-heading h2{margin:0;color:#0f172a;font-size:1.05rem;font-weight:900}.subscription-section-heading p{margin:.25rem 0 0;color:#64748b;font-size:.82rem}
.subscription-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:1.2rem}.subscription-details-grid>div{padding:.75rem .85rem;border:1px solid #e5eaf1;border-radius:12px;background:#f8fafc}.subscription-details-grid span,.subscription-details-grid strong{display:block}.subscription-details-grid span{color:#64748b;font-size:.74rem}.subscription-details-grid strong{margin-top:.25rem;color:#0f172a;font-size:.83rem}.subscription-status-page .subscription-details-grid.subscription-reserved-details-grid{margin-top:0}.subscription-status-page .subscription-reserved-details-grid>div{border-color:#d4e1e7;background:#edf4f7}
.subscription-status-page .subscription-next-action{display:flex;justify-content:flex-end;margin-top:1.25rem}.subscription-status-page .subscription-next-action-centered{justify-content:center}
.subscription-plans-heading{margin-bottom:.75rem}.subscription-plans-heading h2{margin:0;color:#0f172a;font-size:1.05rem;font-weight:900}.subscription-plans-heading p{margin:.25rem 0 0;color:#64748b;font-size:.82rem}
.subscription-plan-option{height:100%;display:flex;flex-direction:column;gap:.8rem;padding:1.1rem;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.subscription-plan-option:hover{border-color:#93c5fd;box-shadow:0 9px 24px rgba(37,99,235,.1);transform:translateY(-2px)}.subscription-plan-option-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#2563eb;background:#eff6ff}.subscription-plan-option h3{margin:0;color:#0f172a;font-size:.98rem;font-weight:900}.subscription-plan-option p{margin:.25rem 0 0;color:#64748b;font-size:.78rem}.subscription-plan-price{margin-top:auto;color:#1d4ed8;font-size:1.35rem}.subscription-plan-price small{color:#64748b;font-size:.72rem;font-weight:600}
.subscription-reserved-card{border-color:#cbd8e6;background:#fbfcfe}.subscription-reserved-heading{display:flex;align-items:center;gap:.8rem}.subscription-reserved-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;color:#416b8c;background:#eaf1f7;font-size:1.05rem}.subscription-reserved-heading h2{margin:0;color:#172b3d;font-size:1rem;font-weight:900}.subscription-reserved-heading p{margin:.25rem 0 0;color:#5d6d7d;font-size:.82rem}.subscription-paid-badge{display:inline-flex;align-items:center;gap:.35rem;margin-inline-start:auto;padding:.4rem .65rem;border:1px solid #c8dfd1;border-radius:999px;color:#35684b;background:#edf6f0;font-size:.76rem;font-weight:800;white-space:nowrap}.subscription-status-page .subscription-details-grid{direction:rtl;text-align:right}.subscription-status-page .subscription-progress-meta{direction:rtl}.subscription-status-page .subscription-progress-track{direction:rtl}
.subscription-reserved-list{display:grid;gap:.75rem;margin-top:1rem}.subscription-reserved-item{padding:.85rem;border:1px solid #e1e8ef;border-radius:14px;background:#fff}.subscription-reserved-item-title{display:flex;align-items:center;gap:.5rem;color:#172b3d}.subscription-reserved-item-title strong{font-size:.9rem}.subscription-reserved-item .subscription-details-grid{margin-top:.65rem}.subscription-overall-days{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.85rem;padding:.9rem 1rem;border:1px solid #c8d8e6;border-radius:12px;color:#294b65;background:#e8f0f6;font-size:.9rem;font-weight:800}.subscription-overall-days strong{font-size:1.15rem;font-weight:900}.subscription-history-section{margin-top:1.5rem}.subscription-history-list{display:grid;gap:.6rem}.subscription-history-item{display:flex;align-items:center;gap:.75rem;padding:.75rem .85rem;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.subscription-history-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;color:#496b86;background:#edf3f8}.subscription-history-main{display:grid;gap:.2rem;min-width:0;flex:1}.subscription-history-main strong{color:#172b3d;font-size:.86rem}.subscription-history-main span{color:#64748b;font-size:.76rem}.subscription-history-status{padding:.35rem .55rem;border-radius:999px;font-size:.72rem;font-weight:800;white-space:nowrap}.subscription-history-status.reserved{color:#35684b;background:#edf6f0}.subscription-history-status.current{color:#365f81;background:#edf3f8}.subscription-history-status.past{color:#64748b;background:#f1f3f5}.subscription-history-empty{padding:1.5rem;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;text-align:center}
.subscription-reserved-summary{overflow:hidden;margin-top:1.35rem;border:1px solid #aebfd0;border-radius:15px;background:#fff;box-shadow:0 3px 10px rgba(15,23,42,.045)}.subscription-reserved-banner{display:flex;align-items:center;gap:.8rem;padding:.9rem 1rem;color:#fff;background:#365f7d}.subscription-reserved-banner>i{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid rgba(255,255,255,.28);border-radius:11px;background:rgba(255,255,255,.12);font-size:1.1rem}.subscription-reserved-banner>div{display:grid;gap:.2rem}.subscription-reserved-banner span{font-size:.95rem;font-weight:900}.subscription-reserved-banner small{color:#e6eef4;font-size:.78rem}.subscription-reserved-content{display:flex;align-items:stretch;justify-content:space-between;gap:1rem;padding:.9rem 1rem}.subscription-reserved-plan{display:grid;align-content:center;gap:.3rem;min-width:0}.subscription-reserved-plan span{color:#64748b;font-size:.75rem;font-weight:700}.subscription-reserved-plan strong{color:#172b3d;font-size:1rem;font-weight:900;overflow-wrap:anywhere}.subscription-reserved-summary .subscription-overall-days{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.15rem;min-width:180px;margin:0;padding:.6rem .85rem;border:1px solid #d3e0ea;border-radius:11px;color:#36556d;background:#edf3f8;font-size:.76rem;font-weight:800}.subscription-reserved-summary .subscription-overall-days strong{color:#294b65;font-size:1.2rem;font-weight:900;white-space:nowrap}.subscription-reserved-summary .subscription-overall-days strong small{font-size:.75rem;font-weight:800}.subscription-next-action{display:flex;justify-content:flex-start;margin-top:-.5rem;margin-bottom:1.5rem}.subscription-next-action .btn{min-height:44px;padding:.65rem 1rem;font-weight:800}
.subscription-status-page .subscription-reserved-summary{margin-top:0;margin-bottom:1.5rem;border:1px solid #9fb5c8;border-radius:16px;box-shadow:0 8px 22px rgba(25,55,80,.09)}.subscription-status-page .subscription-reserved-banner{min-height:82px;padding:1rem 1.2rem;background:#315b79}.subscription-status-page .subscription-reserved-banner>div{gap:.15rem;min-width:0}.subscription-status-page .subscription-reserved-banner>div>span{color:#e8f0f5;font-size:.78rem;font-weight:700}.subscription-status-page .subscription-reserved-banner>div>strong{color:#fff;font-size:1.3rem;font-weight:900;line-height:1.5;overflow-wrap:anywhere}.subscription-status-page .subscription-reserved-state{margin-inline-start:auto;padding:.4rem .7rem;border:1px solid rgba(255,255,255,.35);border-radius:999px;color:#fff;font-size:.76rem;font-weight:800;white-space:nowrap}.subscription-status-page .subscription-reserved-content{align-items:stretch;padding:1rem 1.2rem}.subscription-status-page .subscription-reserved-activation{display:flex;align-items:center;gap:.55rem;color:#526779;font-size:.85rem;font-weight:700}.subscription-status-page .subscription-reserved-activation i{flex:0 0 auto;color:#527b98;font-size:1.05rem}.subscription-status-page .subscription-reserved-duration{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-width:180px;padding:.7rem .9rem;border:1px solid #c4d5e2;border-radius:11px;color:#526779;background:#edf3f8;font-size:.8rem;font-weight:700}.subscription-status-page .subscription-reserved-duration strong{color:#294b65;font-size:.95rem;font-weight:900;white-space:nowrap}
@media(max-width:767.98px){.subscription-status-heading{align-items:flex-start;gap:.8rem}.subscription-status-heading .btn{width:100%}.subscription-status-card-top{align-items:flex-start}.subscription-remaining-pill{min-width:88px}.subscription-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.subscription-status-card-top{flex-wrap:wrap}.subscription-status-copy{flex-basis:calc(100% - 68px)}.subscription-remaining-pill{margin-right:68px}.subscription-details-grid{grid-template-columns:1fr}.subscription-status-card{padding:1rem}}
@media(max-width:767.98px){.subscription-reserved-content{align-items:stretch}.subscription-reserved-summary .subscription-overall-days{min-width:155px}}
@media(max-width:767.98px){.subscription-status-page .subscription-reserved-content{align-items:stretch}}
@media(max-width:480px){.subscription-reserved-heading{align-items:flex-start;flex-wrap:wrap}.subscription-paid-badge{margin-inline-start:50px}.subscription-history-item{align-items:flex-start;flex-wrap:wrap}.subscription-history-status{margin-inline-start:50px}.subscription-overall-days{align-items:flex-start;flex-direction:column;gap:.25rem}.subscription-reserved-content{flex-direction:column}.subscription-reserved-summary .subscription-overall-days{align-items:flex-start;min-width:0}.subscription-next-action .btn{width:100%}}
@media(max-width:480px){.subscription-status-page .subscription-reserved-banner{align-items:flex-start;flex-wrap:wrap;padding:.9rem}.subscription-status-page .subscription-reserved-banner>div{flex:1}.subscription-status-page .subscription-reserved-state{margin-inline-start:46px}.subscription-status-page .subscription-reserved-content{gap:.75rem;padding:.85rem}.subscription-status-page .subscription-reserved-duration{min-width:0}}
.customer-history-page .customer-history-payment-chip.customer-history-payment-paid{color:#17613f!important;background:#e2f5e9!important}
.customer-history-page .customer-history-payment-chip.customer-history-payment-partial{color:#397548!important;background:#edf8df!important}
.customer-history-page .customer-history-payment-chip.customer-history-payment-unpaid{color:#4f8060!important;background:#f0f8f2!important}
.customer-history-page .customer-history-card{height:100%;border-color:#dbe4f0}
.customer-history-page .customer-history-card-title h2{font-size:1.05rem;line-height:1.8}
.customer-history-page .customer-history-card-title p{font-size:.8rem;line-height:1.85}
.customer-history-page .customer-history-eyebrow{letter-spacing:0;font-weight:800}
.customer-history-page .customer-value-label{display:inline-flex;align-items:center;padding:.22rem .75rem;border-radius:999px;color:#166534;background:#e8f6ed;font-size:.9rem;white-space:nowrap}
.customer-history-page .customer-value-score{display:flex;flex-direction:column;align-items:flex-end;gap:.15rem;color:#166534;font-size:1.35rem;line-height:1.4}
.customer-history-page .customer-value-score small{color:#64748b;font-size:.7rem;font-weight:800}
.customer-history-page .customer-value-score span{white-space:nowrap}
.customer-history-page .customer-value-score em{font-size:.72rem;font-style:normal;font-weight:800}
.customer-history-page .customer-value-summary{display:grid;gap:.65rem;margin:0 0 .8rem}
.customer-history-page .customer-value-summary>div{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding-bottom:.6rem;border-bottom:1px solid #eef2f7}
.customer-history-page .customer-value-summary dt{color:#64748b;font-size:.8rem;font-weight:700}
.customer-history-page .customer-value-summary dd{max-width:65%;margin:0;color:#0f172a;font-size:.8rem;font-weight:800;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-history-page .customer-value-summary dd span{font-size:.8rem;font-weight:800}
.customer-history-page .customer-history-today-score dd{color:#0f172a}
.customer-history-page .customer-history-detail-list{display:grid;gap:.65rem;margin:0}
.customer-history-page .customer-history-detail-list>div{display:flex;justify-content:space-between;gap:.5rem;padding-bottom:.6rem;border-bottom:1px solid #eef2f7}
.customer-history-page .customer-history-detail-list dt{color:#64748b;font-size:.78rem}
.subscription-reserved-card{overflow:hidden;margin-top:1.25rem;border:1px solid #e3edf2;border-radius:14px;background:#fbfeff;box-shadow:0 6px 20px rgba(15,23,42,.04)}
.subscription-reserved-card-inner{padding:1rem 1rem}
.subscription-reserved-header{display:flex;align-items:center;gap:1rem}
.subscription-reserved-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:12px;color:#1f5166;background:#eaf6fb;font-size:1.2rem}
.subscription-reserved-headcopy{min-width:0;flex:1}
.subscription-reserved-headcopy .muted-label{color:#54707f;font-size:.78rem;font-weight:800}
.reserved-plan-title{margin:.15rem 0;color:#0f172a;font-size:1.05rem;font-weight:900}
.reserved-subtitle{margin:0;color:#64748b;font-size:.82rem}
.subscription-reserved-state-pill{background:#fff;border:1px solid #d5e6ef;color:#2b5568;padding:.45rem .75rem;border-radius:999px;font-weight:800;white-space:nowrap}
.subscription-reserved-body{margin-top:1rem}
.reserved-footer{margin-top:.9rem;padding-top:.6rem;border-top:1px solid #eef6fa}
.reserved-note{display:flex;align-items:center;gap:.6rem;color:#4b6b7a;font-size:.86rem}
.reserved-note i{font-size:1rem;color:#6b9aa8}

.subscription-reserved-card .subscription-reserved-state-pill{margin-inline-start:0}

.customer-history-page .customer-history-detail-list dd{max-width:65%;margin:0;color:#0f172a;font-size:.8rem;font-weight:800;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-history-page .customer-value-reasons{margin-top:0}
.customer-history-page .customer-value-reasons dd{color:#0f172a}
.customer-history-page .customer-history-settlement-full,.customer-history-page .customer-history-invoices-full{width:100%;grid-column:1/-1}
.customer-history-page .customer-history-title-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:1.15rem 1.25rem;border:1px solid #dbe4f0;border-radius:18px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.06)}
.customer-history-page .customer-history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}
.customer-history-page .customer-history-metric-card{min-width:0;padding:1rem;border:1px solid #e2e8f0;border-radius:16px;background:#fff}
.customer-history-page .customer-history-metric-card span,.customer-history-page .customer-history-metric-card small{display:block;color:#64748b;font-size:.78rem;line-height:1.8}
.customer-history-page .customer-history-metric-card strong{display:block;margin:.3rem 0;color:#0f172a;font-size:1.25rem;line-height:1.5;white-space:nowrap}
.customer-history-page .customer-history-metric-card.metric-danger strong{color:#b91c1c}
@media(max-width:900px){.customer-history-page .customer-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media (min-width: 576px) and (max-width: 991.98px) {
  body.dashboard-shell .app-content .page-heading,
  body.dashboard-shell .app-content .app-page-heading,
  body.dashboard-shell .app-content .invoice-page-heading,
  body.dashboard-shell .app-content .dashboard-hero-heading,
  body.dashboard-shell .app-content .seller-dashboard-hero,
  body.dashboard-shell .app-content .list-toolbar {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
  body.dashboard-shell .app-content .page-heading > div:first-child,
  body.dashboard-shell .app-content .app-page-heading > div:first-child,
  body.dashboard-shell .app-content .dashboard-hero-heading > div:first-child,
  body.dashboard-shell .app-content .seller-dashboard-hero > div:first-child { text-align: right; }
  body.dashboard-shell .app-content .dashboard-hero-heading .page-actions,
  body.dashboard-shell .app-content .seller-dashboard-hero-actions,
  body.dashboard-shell .app-content .app-page-actions,
  body.dashboard-shell .app-content .list-actions { width: auto; flex: 0 0 auto; }
  body.dashboard-shell .app-content .dashboard-hero-heading .btn,
  body.dashboard-shell .app-content .seller-dashboard-hero-actions .btn,
  body.dashboard-shell .app-content .app-page-actions .btn,
  body.dashboard-shell .app-content .list-actions .btn,
  body.dashboard-shell .app-content .app-page-heading > .btn { width: auto; }
  body.dashboard-shell .app-content .seller-dashboard-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .5rem; }
}

@media (max-width: 575.98px) {
  body.dashboard-shell .bottom-nav { display: flex; }
}
@media (min-width: 576px) and (max-width: 699.98px) {
  body.dashboard-shell .app-sidebar { display: flex !important; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar { width: 82px; padding-inline: .65rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-brand > span:last-child,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user > span:last-of-type,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user-menu,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-section-label,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link > span { display: none; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-head { justify-content: center; padding-inline: 0; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-brand,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link { justify-content: center; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user { justify-content: center; padding-inline: .45rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link { justify-content: center; padding-inline: .5rem; }
  body.dashboard-shell.sidebar-collapsed .seller-sidebar .sidebar-menu > .sidebar-link:first-child { justify-content: center; }
  body.dashboard-shell.sidebar-collapsed .app-content { margin-right: 98px !important; padding-inline: 1.25rem; padding-bottom: 2.75rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar { width: 260px; padding: 1rem .75rem 1.25rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-brand > span:last-child,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-user > span:last-of-type,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-user-menu,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-section-label,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-link > span { display: revert; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-head,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-brand,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-user,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-link { justify-content: initial; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-head { padding-inline: .65rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-user { padding: .7rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-link { padding-inline: .8rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-content { margin-right: 276px !important; padding-inline: 1.5rem; }
  body.dashboard-shell .app-header-inner > .sidebar-toggle { display: none !important; }
  body.dashboard-shell .seller-utility-actions > .seller-sidebar-toggle { display: inline-flex !important; }
}
@media (min-width: 576px) and (max-width: 699.98px) {
  body.dashboard-shell:not(.sidebar-collapsed) .app-content .seller-dashboard-hero { align-items: stretch; flex-direction: column; gap: .65rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-content .seller-dashboard-hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-content .seller-dashboard-hero-actions .btn { width: 100%; }
}
@media (min-width: 700px) and (max-width: 991.98px) {
  body.dashboard-shell.sidebar-collapsed .app-sidebar { display: flex !important; width: 82px; padding-inline: .65rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-brand > span:last-child,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user > span:last-of-type,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user-menu,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-section-label,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link > span { display: none; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-head,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-brand,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user,
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link { justify-content: center; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-head { padding-inline: 0; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user { padding-inline: .45rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link { padding-inline: .5rem; }
  body.dashboard-shell.sidebar-collapsed .app-content { margin-right: 98px !important; padding-inline: 1.25rem; padding-bottom: 2.75rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar { display: flex !important; width: 260px; padding: 1rem .75rem 1.25rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-brand > span:last-child,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-user > span:last-of-type,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-user-menu,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-section-label,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-link > span { display: revert; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-head,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-brand,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-user,
  body.dashboard-shell:not(.sidebar-collapsed) .app-sidebar .sidebar-link { justify-content: initial; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-content { margin-right: 276px !important; padding-inline: 1.5rem; padding-bottom: 2.75rem; }
  body.dashboard-shell .app-header-inner > .sidebar-toggle { display: none !important; }
  body.dashboard-shell .seller-utility-actions > .seller-sidebar-toggle { display: inline-flex !important; }
}
@media (min-width: 576px) {
  body.seller-dashboard-shell .seller-utility-bar { box-sizing: border-box; width: auto; margin-right: 260px; margin-left: 0; left: auto; right: auto; }
  body.seller-dashboard-shell.sidebar-collapsed .seller-utility-bar { width: auto; margin-right: 82px; margin-left: 0; left: auto; right: auto; }
  body.seller-dashboard-shell .seller-sidebar .sidebar-menu > .sidebar-link:first-child { position: relative; display: flex; width: 100%; min-height: 46px; align-items: center; cursor: pointer; }
}
@media (min-width: 576px) and (max-width: 699.98px) {
  body.dashboard-shell:not(.sidebar-collapsed) .app-content .seller-dashboard-hero { align-items: stretch; flex-direction: column; gap: .65rem; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-content .seller-dashboard-hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  body.dashboard-shell:not(.sidebar-collapsed) .app-content .seller-dashboard-hero-actions .btn { width: 100%; }
  body.dashboard-shell.sidebar-collapsed .seller-sidebar .sidebar-menu > .sidebar-link:first-child { justify-content: center; }
}
@media (max-width: 575.98px) {
  body.seller-dashboard-shell .seller-utility-bar { width: 100%; margin-right: 0; }
}
@media(max-width:680px){.customer-history-page .customer-history-title-card{flex-direction:column;align-items:flex-start;padding:1rem}.customer-history-page .customer-history-metrics{grid-template-columns:1fr;gap:.65rem}.customer-history-page .customer-history-metric-card{padding:.9rem}}

@media (min-width: 576px) and (max-width: 991.98px), (min-width: 992px) {
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link { min-height: 54px; margin-block: .12rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; font-size: 1.55rem; }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-link.active i { background: rgba(255, 255, 255, .16); }
  body.dashboard-shell.sidebar-collapsed .app-sidebar .sidebar-user-avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.15rem; }
  body.dashboard-shell .seller-utility-actions > .seller-sidebar-toggle { width: 46px; height: 46px; flex: 0 0 46px; }
  body.dashboard-shell .seller-utility-actions > .seller-sidebar-toggle i { font-size: 1.25rem; }
}

.customer-history-page .customer-history-settlement-progress .customer-history-payment-fill{background:#35a66f!important}
.customer-history-page .customer-history-invoice-progress .customer-history-invoice-progress-fill{background:#35a66f!important}
.customer-history-page .customer-history-activity-high{background:#20b486!important}
.customer-history-page .customer-history-activity-medium{background:#22a6b3!important}
.customer-history-page .customer-history-activity-low{background:#e0a83b!important}
.customer-history-page .customer-history-activity-risk{background:#e07a68!important}
.customer-follow-up-summary .customer-overview-card { text-decoration: none; }
.customer-follow-up-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-follow-up-form { grid-template-columns: minmax(0, 1fr); gap: .7rem; max-width: 100%; }
.customer-follow-up-form label { margin: 0; }
.customer-follow-up-form input, .customer-follow-up-form select, .customer-follow-up-form textarea { width: 100%; min-width: 0; }
.customer-follow-up-form textarea, .customer-follow-up-form button { grid-column: auto; }
.customer-follow-up-form-actions { display: flex; flex-wrap: nowrap; gap: .5rem; }
.customer-follow-up-form-actions .btn { flex: 0 1 auto; white-space: nowrap; }
.customer-follow-up-modal .modal-header { position: relative; justify-content: flex-start; min-height: 60px; padding: 1rem 3.5rem; }
.customer-follow-up-modal .modal-title { text-align: right; }
.customer-follow-up-modal .modal-header .btn-close { position: absolute; top: 50%; left: 1rem; margin: 0; transform: translateY(-50%); }
.customer-brief-actions .modal-header { position: relative; justify-content: flex-start; min-height: 60px; padding: 1rem 3.5rem; }
.customer-brief-actions .modal-title { text-align: right; }
.customer-brief-actions .modal-header .btn-close { position: absolute; top: 50%; left: 1rem; margin: 0; transform: translateY(-50%); }
@media (min-width: 576px) and (max-width: 991.98px) {
.customer-follow-up-form-actions { flex-wrap: nowrap !important; }
.customer-follow-up-form-actions .btn { white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .customer-brief-actions .modal-header { padding-inline: 3rem; }
    .customer-brief-actions .modal-header .btn-close { left: .75rem; }
    .customer-brief-actions .customer-follow-up-form-actions { flex-direction: column; }
    .customer-brief-actions .customer-follow-up-form-actions .btn { flex: 1 1 auto; width: 100%; }
}
.customer-follow-up-row-actions { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 180px; }
.customer-follow-up-row-actions form { margin: 0; }
.customer-follow-up-status-overdue { border-color: #f1cf82; color: #805500; background: #fff3cd; }
.customer-follow-ups-table { min-width: 0; }
.customer-open-follow-ups-table { min-width: 0; }
.customer-open-follow-ups-table td { min-width: 0; overflow-wrap: anywhere; }
.customer-open-follow-ups-actions form { margin: 0; }
.customer-timeline-card-heading { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.customer-timeline-card-heading > div { display: grid; flex: 1 1 auto; gap: .15rem; min-width: 0; }
.customer-timeline-card-heading strong { color: #1e293b; font-size: .88rem; }
.customer-timeline-card-heading time { flex: 0 0 auto; color: #64748b; font-size: .72rem; white-space: nowrap; }
.customer-timeline-kind { color: #64748b; font-size: .68rem; font-weight: 800; }
.customer-timeline-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #2563eb; background: #eff6ff; }
.customer-timeline-due-date { width: fit-content; padding: .18rem .5rem; border-radius: 999px; color: #805500; background: #fff7e0; font-size: .72rem; font-weight: 750; }
.customer-timeline li[data-timeline-type="payment"] { border-inline-start: 3px solid #86d3aa; }
.customer-timeline li[data-timeline-type="note"] { border-inline-start: 3px solid #cbd5e1; }
.customer-timeline li[data-timeline-type="interaction"] { border-inline-start: 3px solid #7dd3c7; }
.customer-timeline li[data-timeline-type="followup"] { border-inline-start: 3px solid #f4c66b; }
.customer-timeline li[data-timeline-type="followupcancelled"] { border-inline-start: 3px solid #cbd5e1; }
.customer-timeline li[data-timeline-type="reschedule"] { border-inline-start: 3px solid #c4b5fd; }
.customer-timeline li[data-timeline-type="payment"] .customer-timeline-icon { color: #16845b; background: #eaf8f1; }
.customer-timeline li[data-timeline-type="note"] .customer-timeline-icon { color: #64748b; background: #f1f5f9; }
.customer-timeline li[data-timeline-type="interaction"] .customer-timeline-icon { color: #087c72; background: #e7f8f5; }
.customer-timeline li[data-timeline-type="followup"] .customer-timeline-icon { color: #a16207; background: #fff7e0; }
.customer-timeline li[data-timeline-type="followupcancelled"] .customer-timeline-icon { color: #64748b; background: #f1f5f9; }
.customer-timeline li[data-timeline-type="reschedule"] .customer-timeline-icon { color: #6d4bb3; background: #f3edff; }
@media (max-width: 767.98px) {
.customer-follow-up-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-follow-up-summary .customer-overview-card { align-items: flex-start; flex-direction: column; gap: .4rem; padding: .7rem; }
.customer-follow-up-summary .customer-overview-icon { flex-basis: 32px; width: 32px; height: 32px; }
.customer-open-follow-ups-wrap { overflow: visible; border: 0 !important; }
.customer-open-follow-ups-table,
.customer-open-follow-ups-table tbody { display: block; width: 100%; }
.customer-open-follow-ups-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.customer-open-follow-ups-table tbody { display: grid; gap: .7rem; }
.customer-open-follow-ups-table tbody tr { display: grid; gap: .25rem; margin: 0; padding: .75rem; border: 1px solid #e7edf4; border-radius: 14px; background: #fff; }
.customer-open-follow-ups-table tbody td { display: grid; grid-template-columns: minmax(4.5rem, .35fr) minmax(0, 1fr); align-items: start; gap: .5rem; width: 100%; padding: .35rem .1rem; border: 0; text-align: right; }
.customer-open-follow-ups-table tbody td::before { content: attr(data-label); color: #64748b; font-size: .73rem; font-weight: 800; }
.customer-open-follow-ups-table tbody td.customer-open-follow-ups-status { display: block; }
.customer-open-follow-ups-table tbody td.customer-open-follow-ups-status::before { display: block; margin-bottom: .35rem; }
.customer-open-follow-ups-actions { align-items: stretch; }
.customer-open-follow-ups-actions form,
.customer-open-follow-ups-actions > button { flex: 1 1 100%; }
.customer-open-follow-ups-actions form .btn,
.customer-open-follow-ups-actions > button { width: 100%; white-space: normal; }
.customer-follow-ups-table-wrap { overflow: visible; border: 0 !important; }
.customer-follow-ups-table { display: block; width: 100%; }
.customer-follow-ups-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.customer-follow-ups-table tbody { display: grid; gap: .7rem; }
.customer-follow-ups-table tbody tr { display: grid; gap: .35rem; padding: .8rem; border: 1px solid #e7edf4; border-radius: 14px; background: #fff; }
.customer-follow-ups-table tbody td { display: grid; grid-template-columns: minmax(5.5rem, .35fr) minmax(0, 1fr); gap: .5rem; padding: .35rem .1rem; border: 0; overflow-wrap: anywhere; }
  .customer-follow-ups-table tbody td::before { content: attr(data-label); color: #64748b; font-size: .82rem; font-weight: 800; }
.customer-follow-ups-table tbody .customer-follow-up-actions-cell { display: block; }
.customer-follow-ups-table tbody .customer-follow-up-actions-cell::before { display: block; margin-bottom: .45rem; }
.customer-follow-up-row-actions { min-width: 0; }
.customer-follow-up-row-actions .btn { min-height: 36px; }
.customer-timeline-card-heading { flex-wrap: wrap; }
.customer-timeline-card-heading time { margin-inline-start: 2.85rem; }
}
.customer-timeline li[data-timeline-type="payment"]::before { background: #16845b; box-shadow: 0 0 0 2px #c7eed8; }
.customer-timeline li[data-timeline-type="note"]::before, .customer-timeline li[data-timeline-type="followupcancelled"]::before { background: #64748b; box-shadow: 0 0 0 2px #e2e8f0; }
.customer-timeline li[data-timeline-type="interaction"]::before { background: #087c72; box-shadow: 0 0 0 2px #c8f1eb; }
.customer-timeline li[data-timeline-type="followup"]::before { background: #a16207; box-shadow: 0 0 0 2px #fde7b3; }
.customer-timeline li[data-timeline-type="reschedule"]::before { background: #6d4bb3; box-shadow: 0 0 0 2px #e4d8ff; }

.invoice-form-page { container-name: invoice-page; container-type: inline-size; }
.invoice-form-page .invoice-form { max-width: none; }
.invoice-form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.invoice-form-main, .invoice-form-sidebar, .invoice-description-section { min-width: 0; }
.invoice-form-main { container-name: invoice-main; container-type: inline-size; }
.invoice-form-main > .invoice-section { margin: 0; padding: 1.1rem; border: 1px solid #e3eaf2; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .035); }
.invoice-form-main > .invoice-section + .invoice-section { margin-top: .9rem; }
.invoice-form-main > .invoice-section .invoice-section-heading { margin-bottom: .85rem; }
.invoice-form-layout > .invoice-description-section { margin: 0; padding: 1.1rem; border: 1px solid #e3eaf2; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .035); }
.invoice-description-section .invoice-section-heading { margin-bottom: .85rem; }
.invoice-form-sidebar { position: static; }
.invoice-form-sidebar > .invoice-section { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.invoice-form-sidebar .invoice-summary-card { margin: 0; }
.invoice-form-page .invoice-form-sidebar .invoice-summary { width: 100%; margin: 0; }
.invoice-form-sidebar .invoice-summary > div { grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; white-space: normal; }
.invoice-form-sidebar .invoice-summary > div strong { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice-form-sidebar .invoice-summary > div > span:last-child { white-space: nowrap; }
.invoice-form-sidebar .invoice-form-actions { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .65rem; margin-top: .9rem; padding-top: .9rem; }
.invoice-form-sidebar .invoice-form-actions .btn { flex: 0 0 auto; width: 100%; min-width: 0; min-height: 44px; margin: 0; }
.invoice-form-sidebar .invoice-submit-button { box-shadow: 0 5px 14px rgba(37, 99, 235, .16); }
.invoice-form-header-actions { flex-wrap: wrap; }
.invoice-form-header-actions .btn:focus-visible, .invoice-guide-page a:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 3px; }

.invoice-guide-page { display: grid; max-width: 1040px; gap: 1rem; margin: 0 auto; padding-bottom: 1.5rem; }
.invoice-guide-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; border: 1px solid #dbe5f0; border-radius: 20px; background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%); box-shadow: 0 8px 24px rgba(15, 23, 42, .055); }
.invoice-guide-hero-copy { min-width: 0; }
  font-size: .84rem;
.invoice-guide-hero h1 { margin: 0; color: #172033; font-size: 1.55rem; font-weight: 900; }
.invoice-guide-hero p { max-width: 720px; margin: .55rem 0 0; color: #526276; font-size: .88rem; line-height: 1.9; }
.invoice-guide-primary-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; min-height: 44px; }
.invoice-guide-navigation { display: flex; flex-wrap: wrap; gap: .6rem; padding: .75rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.invoice-guide-navigation a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .5rem .75rem; border-radius: 10px; color: #334155; background: #f8fafc; font-size: .8rem; font-weight: 750; text-decoration: none; }
.invoice-guide-navigation a:hover { color: #1d4ed8; background: #eff6ff; }
.invoice-guide-section { min-width: 0; padding: 1.35rem; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .04); scroll-margin-top: 1rem; }
.invoice-guide-section-heading { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.invoice-guide-section-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; font-size: 1.05rem; }
.invoice-guide-icon-green { color: #15803d; background: #ecfdf3; }
.invoice-guide-icon-blue { color: #1d4ed8; background: #eff6ff; }
.invoice-guide-icon-purple { color: #6d28d9; background: #f5f3ff; }
.invoice-guide-step-label { color: #64748b; font-size: .72rem; font-weight: 800; }
.invoice-guide-section-heading h2 { margin: .15rem 0 .25rem; color: #172033; font-size: 1.1rem; font-weight: 900; }
.invoice-guide-section-heading p { margin: 0; color: #64748b; font-size: .82rem; line-height: 1.8; }
.invoice-guide-step-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.invoice-guide-step-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: .75rem; min-width: 0; padding: 1rem; border: 1px solid #e5eaf1; border-radius: 14px; background: #fbfcfe; }
.invoice-guide-step-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #1d4ed8; background: #eaf2ff; font-size: .9rem; font-weight: 900; }
.invoice-guide-step-content { min-width: 0; }
.invoice-guide-step-content h3 { margin: .1rem 0 .35rem; color: #26364a; font-size: .9rem; font-weight: 850; }
.invoice-guide-step-content p { margin: 0; color: #526276; font-size: .8rem; line-height: 1.95; }
.invoice-guide-step-content .btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; margin-top: .75rem; }
.invoice-guide-note { display: flex; align-items: flex-start; gap: .6rem; margin-top: .8rem; padding: .8rem .9rem; border: 1px solid #bfdbfe; border-radius: 12px; color: #1e40af; background: #eff6ff; }
.invoice-guide-note > i { flex: 0 0 auto; margin-top: .15rem; }
.invoice-guide-note p { margin: 0; font-size: .78rem; line-height: 1.85; }
.invoice-guide-section-action { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; color: #1d4ed8; font-size: .82rem; font-weight: 800; text-decoration: none; }
.invoice-guide-section-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.invoice-guide-footer-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e8edf3; }
.invoice-guide-footer-actions .btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; }

@container invoice-page (min-width: 820px) {
    .invoice-form-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .invoice-form-main { grid-column: 1 / -1; }
    .invoice-description-section { grid-column: 1; grid-row: 2; }
    .invoice-form-sidebar { grid-column: 2; grid-row: 2; }
    .invoice-form-sidebar .invoice-form-actions { flex-direction: row; }
    .invoice-form-sidebar .invoice-form-actions .btn { flex: 1 1 0; width: auto; }
}

@container invoice-page (min-width: 1120px) {
    .invoice-form-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 1.1rem; }
    .invoice-form-main { grid-column: 1; grid-row: 1; }
    .invoice-description-section { grid-column: 1; grid-row: 2; }
    .invoice-form-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; align-self: start; }
    .invoice-form-sidebar .invoice-form-actions { flex-direction: column; }
    .invoice-form-sidebar .invoice-form-actions .btn { flex: 0 0 auto; width: 100%; }
}

@container invoice-page (max-width: 767px) {
    .invoice-form-layout { gap: .8rem; }
    .invoice-form-main > .invoice-section,
    .invoice-form-layout > .invoice-description-section { padding: .9rem; border-radius: 14px; }
}

@container invoice-page (max-width: 575px) {
    .invoice-summary-card { padding: .75rem; }
    .invoice-summary-card .invoice-payable-row { font-size: .92rem; }
    .invoice-summary-card .invoice-payable-row strong { font-size: 1rem; }
}

@container invoice-main (max-width: 760px) {
    .invoice-form-main .invoice-item-entry-card .invoice-item-action { justify-content: flex-start; }
    .invoice-form-main .invoice-item-entry-card .invoice-add-item-button { width: auto; min-width: 112px; min-height: 44px; }
}

@media (max-width: 767.98px) {
    .invoice-guide-hero { align-items: stretch; flex-direction: column; padding: 1.1rem; }
    .invoice-guide-hero h1 { font-size: 1.25rem; }
    .invoice-guide-primary-action { align-self: flex-start; }
    .invoice-guide-section { padding: 1rem; }
    .invoice-guide-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .5rem; }
    .invoice-guide-navigation a { justify-content: center; padding-inline: .35rem; font-size: .72rem; }
}

@container invoice-main (max-width: 860px) {
    .invoice-form-main .invoice-items-table-wrapper { overflow: visible; border: 0; }
    .invoice-form-main .invoice-items-table,
    .invoice-form-main .invoice-items-table tbody { display: block; width: 100%; min-width: 0; }
    .invoice-form-main .invoice-items-table { table-layout: auto; }
    .invoice-form-main .invoice-items-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .invoice-form-main .invoice-items-table tbody { display: grid; gap: .7rem; }
    .invoice-form-main .invoice-items-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .7rem; margin: 0 !important; padding: .7rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
    .invoice-form-main .invoice-items-table tbody td { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; width: auto !important; min-width: 0; padding: .25rem; border: 0; overflow-wrap: anywhere; text-align: right; white-space: normal; }
    .invoice-form-main .invoice-items-table tbody td:nth-child(1) { grid-column: 1 / -1; }
    .invoice-form-main .invoice-items-table tbody td:nth-child(1)::before { content: "محصول"; }
    .invoice-form-main .invoice-items-table tbody td:nth-child(2)::before { content: "قیمت واحد"; }
    .invoice-form-main .invoice-items-table tbody td:nth-child(3)::before { content: "تعداد"; }
    .invoice-form-main .invoice-items-table tbody td:nth-child(4)::before { content: "تخفیف"; }
    .invoice-form-main .invoice-items-table tbody td:nth-child(5)::before { content: "جمع و عملیات"; }
    .invoice-form-main .invoice-items-table tbody td::before { color: #64748b; font-size: .7rem; font-weight: 800; }
    .invoice-form-main .invoice-items-table .invoice-product-name { display: block; min-height: 0; padding: .25rem 0; overflow-wrap: anywhere; }
    .invoice-form-main .invoice-items-table .item-price,
    .invoice-form-main .invoice-items-table .item-quantity,
    .invoice-form-main .invoice-items-table .item-discount { width: 100%; min-width: 0; font-size: .82rem; }
    .invoice-form-main .invoice-items-table .invoice-item-total-cell { min-width: 0; }
    .invoice-form-main .invoice-items-table .invoice-item-total-content { justify-content: space-between; flex-wrap: wrap; gap: .35rem; }
    .invoice-form-main .invoice-items-table .invoice-item-total-box { min-width: 0; overflow-wrap: anywhere; }
    .invoice-form-main .invoice-items-table .remove-item { flex: 0 0 auto; }
    .invoice-form-main .invoice-items-table .invoice-row-error { white-space: normal; }
    .invoice-form-main .invoice-entry-validation { min-width: 0; overflow-wrap: anywhere; }
}

@container invoice-main (max-width: 440px) {
    .invoice-form-main .invoice-items-table tbody tr { grid-template-columns: minmax(0, 1fr); }
    .invoice-form-main .invoice-items-table tbody td:nth-child(1) { grid-column: auto; }
    .invoice-form-main .invoice-items-table .invoice-item-total-content { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
    .invoice-form-header-actions { justify-content: flex-start; width: 100%; }
    .invoice-form-header-actions .btn { flex: 1 1 0; min-width: 0; }
    .invoice-number-badge { flex: 1 0 100%; justify-content: center; }
    .invoice-guide-step-card { grid-template-columns: 32px minmax(0, 1fr); gap: .6rem; padding: .8rem; }
    .invoice-guide-step-number { width: 30px; height: 30px; }
    .invoice-guide-navigation { grid-template-columns: 1fr; }
    .invoice-guide-navigation a { justify-content: flex-start; padding-inline: .7rem; }
    .invoice-guide-footer-actions { flex-direction: column; }
    .invoice-guide-footer-actions .btn { justify-content: center; width: 100%; }
}

@container invoice-main (max-width: 760px) {
    .invoice-form-main .invoice-item-entry-card {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .7rem;
        overflow: visible;
        padding: 1rem;
    }
    .invoice-form-main .invoice-item-entry-card > .product-cell { grid-column: 1 / -1; }
    .invoice-form-main .invoice-item-entry-card > .invoice-item-action { min-width: 0; }
    .invoice-form-main .invoice-item-entry-card .invoice-item-cell,
    .invoice-form-main .invoice-item-entry-card .invoice-item-action { box-sizing: border-box; }
    .invoice-form-main .invoice-item-entry-card > .invoice-item-cell:not(.product-cell) .form-control { text-align: center; font-variant-numeric: tabular-nums; }
    .invoice-form-main .invoice-item-entry-card .invoice-add-item-button { width: auto; min-width: 112px; min-height: 44px; justify-content: center; }
}

@container invoice-main (max-width: 520px) {
    .invoice-form-main .invoice-item-entry-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: .8rem; }
    .invoice-form-main .invoice-item-entry-card > .invoice-item-action { grid-column: 1 / -1; justify-content: flex-start; }
    .invoice-form-main .invoice-item-entry-card .invoice-add-item-button { width: auto; min-width: 112px; }
}

@container invoice-main (max-width: 420px) {
    .invoice-form-main .invoice-item-entry-card .invoice-add-item-button { width: 100%; }
}

body.dashboard-shell:has(.invoice-form-page) .app-content,
body.seller-dashboard-shell:has(.invoice-form-page) .app-content {
    display: flex !important;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
