:root {
  --sf-accent: #0d6efd;
  --sf-accent-2: #20c997;
  --sf-ink: #14213d;
  --sf-soft: #eef4ff;
}

.shopperflow-auth-body {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(32, 201, 151, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.shopperflow-auth-box {
  width: 400px;
}

.auth-brand-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sf-accent), #6ea8fe);
  color: #fff;
  font-size: 1.8rem;
}

.auth-brand-secondary {
  background: linear-gradient(135deg, var(--sf-accent-2), #4fd1b1);
}

.auth-brand-mark.auth-brand-logo {
  width: 86px;
  height: 86px;
  padding: 8px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(20, 33, 61, 0.12);
  overflow: hidden;
}

.auth-brand-mark.auth-brand-logo img,
.auth-brand-mark.auth-brand-logo .auth-company-logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.brand-image {
  object-fit: contain;
}

.preview-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(13, 110, 253, 0.08);
  border-radius: 1rem;
  padding: 1.1rem;
}

.preview-brand {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.preview-line,
.preview-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(20, 33, 61, 0.12);
}

.preview-box {
  display: block;
}

.preview-section-label {
  margin-bottom: 0.35rem;
  color: var(--sf-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-expense-line {
  padding: 0.55rem 0;
}

.preview-panel.is-thermal {
  max-width: 320px;
  margin: 0 auto;
  padding: 0.85rem;
}

.preview-panel.is-thermal .preview-brand {
  flex-direction: column;
}

.preview-panel.is-thermal .preview-photo-grid {
  display: none;
}

.preview-company-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  padding: 0.4rem;
}

.preview-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.75rem;
}

.preview-photo-card {
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
}

.preview-photo-card img {
  display: block;
  width: 100%;
  height: 82px;
  object-fit: cover;
}

.preview-photo-card small {
  display: block;
  padding: 0.45rem 0.55rem 0.6rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-dropzone {
  border: 1px dashed rgba(13, 110, 253, 0.35);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(13, 110, 253, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.invoice-dropzone:hover,
.invoice-dropzone.is-dragover {
  border-color: var(--sf-accent);
  background: rgba(13, 110, 253, 0.08);
}

.invoice-dropzone-body {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  text-align: center;
}

.invoice-dropzone-body i {
  font-size: 1.8rem;
  color: var(--sf-accent);
}

.invoice-attachments {
  display: grid;
  gap: 0.85rem;
}

.attachment-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 1rem;
  background: #fff;
}

.attachment-card.pending {
  border-style: dashed;
}

.attachment-thumb {
  width: 92px;
  height: 92px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-meta {
  min-width: 0;
}

.attachment-meta strong,
.attachment-meta small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-meta small {
  color: #64748b;
}

.attachment-actions {
  display: flex;
  gap: 0.5rem;
}

.company-logo-card {
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.company-logo-preview {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.small-box .small-box-icon {
  opacity: 0.25;
}

.select2-container--bootstrap-5 .select2-selection {
  min-height: calc(2.25rem + 2px);
}

.select2-container--default .select2-selection--single {
  min-height: calc(2.25rem + 2px);
  border-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-body-bg);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  color: var(--bs-body-color);
  line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 5px;
  right: 7px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-dropdown {
  overflow: hidden;
  border-color: var(--bs-border-color);
  border-radius: 0.65rem;
  background: var(--bs-body-bg);
  box-shadow: 0 12px 30px rgba(15, 42, 67, 0.14);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.select2-container--default .select2-results__option--selected {
  background: rgba(13, 110, 253, 0.1);
}

.iti {
  width: 100%;
}

.iti__tel-input {
  width: 100%;
}

.iti__flag {
  background-image: url("../vendor/intl-tel-input/img/flags.png") !important;
}

@media (min-resolution: 2dppx) {
  .iti__flag {
    background-image: url("../vendor/intl-tel-input/img/flags@2x.png") !important;
  }
}

.invoice-entry-table {
  min-width: 820px;
}

.invoice-expense-table {
  min-width: 560px;
}

.invoice-payment-table {
  min-width: 780px;
}

.shipment-box-table {
  min-width: 990px;
}

.invoice-entry-table td:first-child {
  min-width: 190px;
}

.invoice-entry-table .item-qty {
  min-width: 76px;
}

.invoice-entry-table .item-price,
.invoice-entry-table .item-tax,
.invoice-entry-table .item-total,
.invoice-expense-table .expense-amount,
.invoice-payment-table .payment-amount {
  min-width: 120px;
}

.shipment-box-table td:nth-child(1),
.shipment-box-table td:nth-child(2),
.shipment-box-table td:nth-child(5) {
  min-width: 150px;
}

.shipment-box-table td:nth-child(3) {
  min-width: 90px;
}

.shipment-box-table td:nth-child(4) {
  min-width: 235px;
}

.shipment-box-table .box-dimension {
  min-width: 68px;
}

.invoice-entry-table input[type="number"],
.invoice-expense-table input[type="number"],
.invoice-payment-table input[type="number"],
.shipment-box-table input[type="number"] {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 0.75rem;
  appearance: textfield;
  -moz-appearance: textfield;
}

.invoice-entry-table input[type="number"]::-webkit-inner-spin-button,
.invoice-entry-table input[type="number"]::-webkit-outer-spin-button,
.invoice-expense-table input[type="number"]::-webkit-inner-spin-button,
.invoice-expense-table input[type="number"]::-webkit-outer-spin-button,
.invoice-payment-table input[type="number"]::-webkit-inner-spin-button,
.invoice-payment-table input[type="number"]::-webkit-outer-spin-button,
.shipment-box-table input[type="number"]::-webkit-inner-spin-button,
.shipment-box-table input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.customer-portal-card {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.portal-access-preview {
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  font-family: Consolas, 'Courier New', monospace;
}

:root {
  --iti-path-flags-1x: url(../vendor/intl-tel-input/img/flags.png);
  --iti-path-flags-2x: url(../vendor/intl-tel-input/img/flags@2x.png);
}

@media (max-width: 992px) {
  .shopperflow-preview-card {
    position: static !important;
  }
}

@media (max-width: 767px) {
  .attachment-card {
    grid-template-columns: 1fr;
  }

  .attachment-thumb {
    width: 100%;
    height: 180px;
  }

  .attachment-actions {
    justify-content: flex-start;
  }
}

.report-workspace {
  --report-navy: #102a43;
  --report-blue: #1463ff;
  --report-teal: #0f9f8f;
  --report-amber: #d88908;
  --report-green: #16845b;
  display: grid;
  gap: 1.15rem;
}

.report-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 190px;
  padding: 2rem 2.25rem;
  border-radius: 1.4rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(81, 231, 213, 0.28), transparent 28%),
    linear-gradient(125deg, #0c2038 0%, #123f5a 55%, #0d756d 100%);
  box-shadow: 0 20px 45px rgba(15, 42, 67, 0.2);
}

.report-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -70px;
  bottom: -115px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04), 0 0 0 80px rgba(255, 255, 255, 0.025);
}

.report-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: #8ff3e6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.report-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.report-hero p {
  max-width: 650px;
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.report-hero-meta {
  min-width: 230px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.report-hero-meta span,
.report-hero-meta strong,
.report-hero-meta small {
  display: block;
}

.report-hero-meta span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.report-hero-meta strong {
  margin: 0.2rem 0 0.7rem;
  font-size: 1.35rem;
}

.report-hero-meta small {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.report-hero-meta b {
  float: right;
  color: #fff;
}

.report-filter-card,
.report-ledger-card {
  overflow: hidden;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(15, 42, 67, 0.07);
}

.report-filter-card .card-body,
.report-ledger-card .card-body {
  padding: 1.35rem;
}

.report-section-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.report-section-heading h3,
.report-section-heading p {
  margin: 0;
}

.report-section-heading h3 {
  color: var(--report-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.report-section-heading p {
  margin-top: 0.16rem;
  color: #6b7c8f;
  font-size: 0.86rem;
}

.report-section-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 0.85rem;
  color: var(--report-blue);
  background: rgba(20, 99, 255, 0.1);
}

.report-filter-actions {
  display: flex;
  gap: 0.55rem;
}

.report-filter-actions .btn {
  min-height: 38px;
  border-radius: 0.72rem;
  font-weight: 700;
}

.report-kpi-card {
  --kpi-color: var(--report-blue);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 138px;
  padding: 1.25rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 42, 67, 0.07);
}

.report-kpi-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--kpi-color) 8%, transparent);
}

.report-kpi-payments { --kpi-color: var(--report-green); }
.report-kpi-balance { --kpi-color: var(--report-amber); }
.report-kpi-profit { --kpi-color: var(--report-teal); }

.report-kpi-icon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 1rem;
  color: var(--kpi-color);
  background: color-mix(in srgb, var(--kpi-color) 11%, #fff);
  font-size: 1.35rem;
}

.report-kpi-card p,
.report-kpi-card h3,
.report-kpi-card small {
  margin: 0;
}

.report-kpi-card p {
  color: #637589;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.report-kpi-card h3 {
  margin: 0.18rem 0;
  color: var(--report-navy);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

.report-kpi-card small {
  color: #8a98a8;
}

.report-ledger-card .card-header {
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  background: linear-gradient(90deg, rgba(20, 99, 255, 0.045), transparent);
}

.report-table {
  min-width: 1160px;
  margin-bottom: 0;
}

.report-ledger-card .table-responsive {
  overflow-x: auto;
  scrollbar-color: rgba(20, 99, 255, 0.4) transparent;
}

#tblSalesReport thead th,
#tblSalesReport_wrapper thead th {
  padding: 0.85rem 0.7rem;
  border-bottom: 0;
  color: #fff !important;
  background: var(--report-navy) !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1 !important;
}

#tblSalesReport_wrapper thead th .dt-column-title,
#tblSalesReport_wrapper thead th .dt-column-order {
  color: #fff !important;
  opacity: 1 !important;
}

#tblSalesReport thead th:first-child {
  border-radius: 0.7rem 0 0 0;
}

#tblSalesReport thead th:last-child {
  border-radius: 0 0.7rem 0 0;
}

.report-table tbody td {
  padding: 0.78rem 0.7rem;
  border-color: rgba(16, 42, 67, 0.065);
}

.report-table tbody tr:nth-child(even) td {
  background: rgba(20, 99, 255, 0.025);
}

.report-table tfoot th {
  padding: 0.9rem 0.7rem;
  border-top: 2px solid rgba(20, 99, 255, 0.3);
  color: var(--report-navy);
  background: #edf5ff;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-money-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-profit-cell {
  color: var(--report-green);
  font-weight: 700;
}

.report-invoice-number {
  color: var(--report-blue);
  letter-spacing: 0.01em;
}

.report-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}

.report-status-paid {
  color: #0c6a48;
  background: #dbf7eb;
}

.report-status-pending {
  color: #925b00;
  background: #fff0c9;
}

.report-status-neutral {
  color: #526476;
  background: #e9eef4;
}

[data-bs-theme="dark"] .report-filter-card,
[data-bs-theme="dark"] .report-ledger-card,
[data-bs-theme="dark"] .report-kpi-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #172331;
}

[data-bs-theme="dark"] .report-section-heading h3,
[data-bs-theme="dark"] .report-kpi-card h3 {
  color: #eff7ff;
}

[data-bs-theme="dark"] .report-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

[data-bs-theme="dark"] .report-table tfoot th {
  color: #eff7ff;
  background: #1d3348;
}

@media (max-width: 767px) {
  .report-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
  }

  .report-hero-meta {
    min-width: 0;
  }
}

.agenda-workspace {
  --agenda-ink: #102a43;
  --agenda-blue: #1769ff;
  --agenda-mint: #0f9f8f;
  --agenda-sand: #f4b942;
  display: grid;
  gap: 1.15rem;
}

.agenda-hero,
.agenda-detail-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 180px;
  padding: 2rem 2.25rem;
  border-radius: 1.4rem;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(91, 240, 208, 0.25), transparent 25%),
    linear-gradient(125deg, #0b2138 0%, #174c68 58%, #0b8176 100%);
  box-shadow: 0 20px 45px rgba(15, 42, 67, 0.18);
}

.agenda-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04), 0 0 0 80px rgba(255, 255, 255, 0.025);
}

.agenda-hero-query {
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 185, 66, 0.25), transparent 25%),
    linear-gradient(125deg, #18283d 0%, #344d69 58%, #8b5d16 100%);
}

.agenda-hero-shopper {
  background:
    radial-gradient(circle at 88% 12%, rgba(78, 164, 255, 0.28), transparent 25%),
    linear-gradient(125deg, #10233c 0%, #174e7a 58%, #1463ff 100%);
}

.agenda-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #86f1df;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agenda-hero h2,
.agenda-detail-hero h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.agenda-hero p,
.agenda-detail-hero p {
  max-width: 680px;
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.agenda-hero-code {
  min-width: 210px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.agenda-hero-code span,
.agenda-hero-code strong {
  display: block;
}

.agenda-hero-code span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.agenda-hero-code strong {
  margin-top: 0.25rem;
  font-size: 1.15rem;
}

.agenda-form-card,
.agenda-preview-card,
.agenda-filter-card,
.agenda-table-card,
.agenda-detail-card,
.agenda-status-card {
  overflow: hidden;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 42, 67, 0.07);
}

.agenda-form-card .card-body,
.agenda-preview-card .card-body,
.agenda-detail-card .card-body {
  padding: 1.5rem;
}

.agenda-section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.agenda-section-title > span {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--agenda-blue);
  background: rgba(23, 105, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.agenda-section-title h3,
.agenda-section-title p {
  margin: 0;
}

.agenda-section-title h3 {
  color: var(--agenda-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.agenda-section-title p {
  color: #718096;
  font-size: 0.86rem;
}

.agenda-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1rem 1.5rem;
  background: #f8fbff;
}

.agenda-action-bar .btn {
  border-radius: 0.7rem;
  font-weight: 700;
}

.agenda-preview-card {
  top: 1rem;
  background:
    radial-gradient(circle at top right, rgba(23, 105, 255, 0.1), transparent 34%),
    linear-gradient(180deg, #fff, #f8fbff);
}

.agenda-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.agenda-preview-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--agenda-blue), var(--agenda-mint));
  font-size: 1.35rem;
}

.agenda-preview-label {
  margin: 0 0 0.25rem;
  color: #718096;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-preview-card h3 {
  color: var(--agenda-ink);
  font-weight: 800;
}

.agenda-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.agenda-money-grid > div {
  padding: 0.9rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 0.9rem;
  background: #fff;
}

.agenda-money-grid span,
.agenda-money-grid strong {
  display: block;
}

.agenda-money-grid span {
  color: #718096;
  font-size: 0.72rem;
  font-weight: 700;
}

.agenda-money-grid strong {
  margin-top: 0.15rem;
  color: var(--agenda-ink);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.agenda-money-grid .agenda-money-balance {
  grid-column: 1 / -1;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #0d796e, var(--agenda-mint));
}

.agenda-money-grid .agenda-money-balance span,
.agenda-money-grid .agenda-money-balance strong {
  color: #fff;
}

.agenda-preview-list {
  margin: 1.25rem 0;
}

.agenda-preview-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(16, 42, 67, 0.12);
}

.agenda-preview-list dt {
  color: #718096;
  font-weight: 600;
}

.agenda-preview-list dd {
  margin: 0;
  color: var(--agenda-ink);
  font-weight: 700;
  text-align: right;
}

.agenda-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.agenda-badges .badge {
  padding: 0.5rem 0.7rem;
  color: #31526f !important;
  border: 1px solid rgba(23, 105, 255, 0.12);
  background: #eef5ff !important;
}

.agenda-table-card table {
  min-width: 1450px;
}

#tblAgendaQuery thead th {
  padding: 0.85rem 0.75rem;
  color: #fff;
  background: var(--agenda-ink);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.agenda-table-interests {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-shopper-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #fff, #f8fbff);
  box-shadow: 0 12px 28px rgba(15, 42, 67, 0.07);
}

.agenda-shopper-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--agenda-blue);
}

.agenda-shopper-card.priority-urgente::before { background: #dc3545; }
.agenda-shopper-card.priority-alta::before { background: #f2a900; }
.agenda-shopper-card.priority-baja::before { background: #7b8794; }

.agenda-shopper-head,
.agenda-shopper-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.agenda-shopper-head span:first-child {
  color: var(--agenda-blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.agenda-shopper-head h3 {
  margin: 0.2rem 0 0;
  color: var(--agenda-ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.agenda-shopper-date {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0;
  color: #52687d;
}

.agenda-shopper-money {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.agenda-shopper-money div {
  padding: 0.7rem;
  border-radius: 0.75rem;
  background: #eef5ff;
}

.agenda-shopper-money span,
.agenda-shopper-money strong {
  display: block;
}

.agenda-shopper-money span {
  color: #718096;
  font-size: 0.65rem;
}

.agenda-shopper-money strong {
  color: var(--agenda-ink);
  font-size: 0.86rem;
}

.agenda-shopper-footer {
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 42, 67, 0.08);
}

.agenda-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  padding: 2rem;
  border: 1px dashed rgba(23, 105, 255, 0.25);
  border-radius: 1.1rem;
  color: #718096;
  background: rgba(23, 105, 255, 0.025);
  text-align: center;
}

.agenda-empty i {
  color: var(--agenda-blue);
  font-size: 2rem;
}

.agenda-empty h3,
.agenda-empty p {
  margin: 0.35rem 0 0;
}

.agenda-empty.compact {
  min-height: 145px;
}

.agenda-detail-hero {
  min-height: 145px;
  color: var(--agenda-ink);
  background:
    radial-gradient(circle at right top, rgba(23, 105, 255, 0.12), transparent 32%),
    linear-gradient(135deg, #fff, #eef7ff);
  box-shadow: 0 12px 30px rgba(15, 42, 67, 0.08);
}

.agenda-detail-hero p {
  color: #64778b;
}

.agenda-detail-money {
  grid-template-columns: repeat(4, 1fr);
}

.agenda-detail-money .agenda-money-balance {
  grid-column: auto;
}

.agenda-product-list {
  display: grid;
  gap: 0.85rem;
}

.agenda-product-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 1rem;
  background: #fff;
}

.agenda-product-photo {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  overflow: hidden;
  border-radius: 0.8rem;
  color: #7b8da0;
  background: #edf3f8;
  font-size: 1.5rem;
}

.agenda-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agenda-product-copy h4,
.agenda-product-copy p {
  margin: 0;
}

.agenda-product-copy h4 {
  color: var(--agenda-ink);
  font-size: 1rem;
  font-weight: 800;
}

.agenda-product-copy p,
.agenda-product-copy small {
  color: #718096;
}

.agenda-product-copy p {
  margin: 0.3rem 0;
}

.agenda-product-total {
  text-align: right;
}

.agenda-product-total strong {
  color: var(--agenda-ink);
  font-size: 1.1rem;
}

.agenda-timeline {
  display: grid;
  gap: 0;
}

.agenda-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  padding-bottom: 1rem;
}

.agenda-timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: #dbe7f3;
}

.agenda-timeline-item > span {
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid #dbeaff;
  border-radius: 50%;
  background: var(--agenda-blue);
}

.agenda-timeline-item p,
.agenda-timeline-item small {
  margin: 0.15rem 0 0;
  color: #718096;
}

.agenda-timeline-item small {
  font-size: 0.72rem;
}

[data-bs-theme="dark"] .agenda-form-card,
[data-bs-theme="dark"] .agenda-preview-card,
[data-bs-theme="dark"] .agenda-filter-card,
[data-bs-theme="dark"] .agenda-table-card,
[data-bs-theme="dark"] .agenda-detail-card,
[data-bs-theme="dark"] .agenda-status-card,
[data-bs-theme="dark"] .agenda-shopper-card,
[data-bs-theme="dark"] .agenda-product-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #172331;
}

[data-bs-theme="dark"] .agenda-section-title h3,
[data-bs-theme="dark"] .agenda-preview-card h3,
[data-bs-theme="dark"] .agenda-shopper-head h3,
[data-bs-theme="dark"] .agenda-product-copy h4,
[data-bs-theme="dark"] .agenda-product-total strong {
  color: #eff7ff;
}

@media (max-width: 1199px) {
  .agenda-preview-card {
    position: static !important;
  }
}

@media (max-width: 767px) {
  .agenda-hero,
  .agenda-detail-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1.45rem;
  }

  .agenda-hero-code {
    min-width: 0;
  }

  .agenda-action-bar .btn {
    flex: 1 1 calc(50% - 0.55rem);
  }

  .agenda-detail-money {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda-detail-money .agenda-money-balance {
    grid-column: auto;
  }

  .agenda-shopper-money {
    grid-template-columns: 1fr;
  }

  .agenda-product-card {
    grid-template-columns: 72px 1fr;
  }

  .agenda-product-photo {
    width: 72px;
    height: 72px;
  }

  .agenda-product-total {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.portal-agenda-card {
  overflow: hidden;
  border: 1px solid rgba(23, 105, 255, 0.1);
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(15, 42, 67, 0.07);
}

.portal-shopping-agenda {
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 1rem;
  background: linear-gradient(145deg, #fff, #f5faff);
}

.portal-shopping-agenda > p {
  min-height: 42px;
  color: #64778b;
}

.portal-agenda-money {
  display: grid;
  gap: 0.4rem;
}

.portal-agenda-money span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(16, 42, 67, 0.1);
  color: #64778b;
}

.portal-agenda-money b {
  color: #102a43;
  font-variant-numeric: tabular-nums;
}
