/* ===================================== */
/* Components */
/* ===================================== */
.anx-card,
.card {
  border: var(--anx-border-subtle);
  border-radius: var(--anx-radius-md);
  box-shadow: var(--anx-shadow-sm);
  background: var(--anx-color-surface);
}

.anx-card-header,
.card-header {
  background: #fff !important;
  border-bottom: var(--anx-border-subtle);
  padding: 0.875rem 1rem;
}

.anx-card-body,
.card-body {
  padding: 1rem;
}

.navbar {
  background: var(--anx-color-surface-glass) !important;
  backdrop-filter: blur(8px);
  box-shadow: var(--anx-shadow-xs);
}

.navbar-brand {
  color: var(--anx-color-text);
  letter-spacing: -0.01em;
}

.anx-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--anx-space-2);
}

.form-label {
  color: var(--anx-color-text-soft);
  font-size: 0.83rem;
  font-weight: var(--anx-font-weight-bold);
  margin-bottom: 0.45rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.anx-control,
.form-control,
.form-select {
  min-height: var(--control-height);
  border-color: var(--anx-color-border);
  border-radius: var(--anx-radius-sm);
  background: #fff;
  color: var(--anx-color-text);
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  padding-inline: 0.75rem;
}

.anx-control-sm,
.form-control-sm,
.form-select-sm {
  min-height: var(--control-height-sm);
  font-size: 0.92rem;
  padding-inline: 0.75rem;
}

.anx-control-lg,
.form-control-lg,
.form-select-lg {
  min-height: 40px;
  border-radius: var(--anx-radius-sm);
}

.form-control::placeholder {
  color: var(--anx-color-muted-soft);
  font-weight: var(--anx-font-weight-normal);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--anx-color-border-strong);
}

.form-control:focus,
.form-select:focus,
.cell-input:focus {
  border-color: var(--anx-color-primary) !important;
  box-shadow: 0 0 0 2px var(--anx-color-focus) !important;
  background: #fff;
}

.form-check-input {
  border-color: var(--anx-color-border-strong);
}

.form-check-input:checked {
  background-color: var(--anx-color-primary);
  border-color: var(--anx-color-primary);
}

.anx-btn,
.btn {
  border-radius: var(--anx-radius-sm);
  font-weight: var(--anx-font-weight-bold);
  transition: box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  box-shadow: none;
}

.btn:hover {
  transform: none;
}

.btn-sm {
  min-height: 32px;
  padding-inline: 0.75rem;
}

.btn-lg {
  min-height: 38px;
  padding-inline: 0.95rem;
}

.btn-primary {
  background: var(--anx-color-primary);
  border-color: var(--anx-color-primary);
  box-shadow: var(--anx-shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--anx-color-primary-hover);
  border-color: var(--anx-color-primary-hover);
  box-shadow: var(--anx-shadow-sm);
}

.btn-outline-secondary {
  background: #fff;
  border-color: var(--anx-color-border);
  color: var(--anx-color-text-secondary);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #fff;
  border-color: var(--anx-color-border-strong);
  color: var(--anx-color-primary-strong);
  box-shadow: var(--anx-shadow-xs);
}

.btn-success {
  background: var(--anx-color-primary);
  border-color: var(--anx-color-primary);
  box-shadow: var(--anx-shadow-sm);
}

.btn-success:hover,
.btn-success:focus {
  background: var(--anx-color-primary-hover);
  border-color: var(--anx-color-primary-hover);
}

.btn-danger {
  background: #fff;
  color: var(--anx-color-danger);
  border-color: var(--anx-color-border-danger-soft);
  box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus {
  background: var(--anx-color-bg-danger);
  color: #A61B1B;
  border-color: var(--anx-color-border-danger-strong);
}

.btn-link {
  text-decoration: none;
}

.btn .bi,
.columns-trigger-btn .bi,
.payment-terms-help .bi,
.input-group-text .bi {
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}

.anx-badge,
.status-pill {
  font-size: 12px;
  padding: 0.28rem 0.7rem;
  border-radius: var(--anx-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  font-weight: var(--anx-font-weight-bold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.status-pill.text-bg-secondary-subtle,
.badge.text-bg-secondary-subtle {
  background: var(--anx-color-bg-secondary) !important;
  color: #4b5563 !important;
  border-color: var(--anx-color-border-secondary) !important;
}

.status-pill.text-bg-info-subtle,
.badge.text-bg-info-subtle {
  background: var(--anx-color-primary-soft) !important;
  color: var(--anx-color-primary-strong) !important;
  border-color: var(--anx-color-border-info-soft) !important;
}

.status-pill.text-bg-warning-subtle,
.badge.text-bg-warning-subtle {
  background: var(--anx-color-warning-soft) !important;
  color: var(--anx-color-warning-strong) !important;
  border-color: var(--anx-color-border-warning) !important;
}

.status-pill.text-bg-danger-subtle,
.badge.text-bg-danger-subtle {
  background: var(--anx-color-danger-soft) !important;
  color: var(--anx-color-danger-strong) !important;
  border-color: var(--anx-color-border-danger) !important;
}

.status-pill.text-bg-success-subtle,
.badge.text-bg-success-subtle {
  background: var(--anx-success-soft) !important;
  color: var(--anx-color-success-strong) !important;
  border-color: var(--anx-color-border-success) !important;
}

.status-pill.text-bg-dark-subtle,
.badge.text-bg-dark-subtle {
  background: var(--anx-color-bg-dark) !important;
  color: #344054 !important;
  border-color: var(--anx-color-border-dark) !important;
}

.anx-tabs-item,
.tabs-item {
  cursor: pointer;
  border-radius: var(--anx-radius-md);
  border-color: var(--anx-border) !important;
  box-shadow: var(--anx-shadow-xs);
}

.anx-tabs-item.active,
.tabs-item.active {
  border-color: rgba(22, 135, 114, 0.28) !important;
  background: var(--anx-primary-soft);
  box-shadow: var(--anx-shadow-xs);
  border-inline-start: 2px solid var(--anx-primary);
}

.tabs-item .card-body {
  padding: 0.75rem !important;
}

.tabs-item .status-pill {
  font-size: 11px;
  padding: 0.18rem 0.5rem;
}

.tab-total {
  font-size: 17px;
  line-height: 1.15;
  color: var(--anx-color-text);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
}

.tab-meta {
  font-size: 11px;
  color: var(--bs-secondary-color);
}

.insight-key {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.insight-value {
  font-size: 14px;
  font-weight: var(--anx-font-weight-bold);
}

.payment-terms-help {
  color: var(--anx-color-muted-soft) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: 1;
}

.payment-terms-help:hover,
.payment-terms-help:focus {
  color: var(--anx-color-primary-strong) !important;
}

.dropdown-menu {
  border: var(--anx-border-subtle);
  border-radius: var(--anx-radius-md);
  box-shadow: var(--anx-shadow-lg);
  padding: 0.5rem;
}

.dropdown-item-text {
  border-radius: var(--anx-radius-sm);
}

.dropdown-item-text:hover {
  background: var(--anx-color-surface-subtle);
}

.columns-menu {
  min-width: 14rem;
}

.columns-trigger-btn {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border-radius: var(--anx-radius-sm);
  background: #fff;
  border-color: var(--anx-color-border);
  color: var(--anx-color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.columns-trigger-btn:hover,
.columns-trigger-btn:focus {
  color: var(--anx-color-primary-strong);
  border-color: var(--anx-color-border-strong);
  background: #fff;
  box-shadow: var(--anx-shadow-xs);
}

.add-row-button {
  width: 2rem;
  height: 2rem;
  line-height: 1;
  padding: 0;
  border-radius: var(--anx-radius-sm);
  border-color: var(--anx-color-border);
  color: var(--anx-color-primary-strong);
  background: #fff;
}

.add-row-button:hover,
.add-row-button:focus {
  border-color: var(--anx-color-border-strong);
  background: var(--anx-color-surface-subtle);
  color: var(--anx-color-primary-strong);
}

.anx-table,
.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(22, 135, 114, 0.035);
  margin-bottom: 0;
}

.anx-table-responsive,
.table-responsive {
  position: relative;
  border-radius: var(--anx-radius-md);
}

.table thead th {
  background: var(--anx-color-surface-subtle) !important;
  color: var(--anx-color-text-soft);
  font-size: 0.8rem;
  font-weight: var(--anx-font-weight-extrabold);
  border-bottom: var(--anx-border-subtle);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  padding-inline: 0.65rem;
  white-space: nowrap;
  position: relative;
}

.table tbody td {
  border-color: var(--anx-color-border-soft);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  padding-inline: 0.55rem;
  vertical-align: middle;
}

.table .form-control-sm,
.table .form-select-sm {
  min-height: 32px;
  border-radius: var(--anx-radius-sm);
  padding-inline: 0.55rem;
  font-size: var(--anx-font-size-md);
  box-shadow: none;
}

.table td[data-col-key="base"],
.table td[data-col-key="tax"],
.table td[data-col-key="total"] {
  background: #FCFDFC;
  color: var(--anx-color-text);
  font-variant-numeric: tabular-nums lining-nums;
}

.table td[data-col-key="total"] {
  font-weight: var(--anx-font-weight-extrabold) !important;
}

.table td[data-col-key="actions"] .btn {
  min-height: 30px;
  min-width: 50px;
  padding-inline: 0.45rem;
}

.table th[data-col-key="line-ref"],
.table td[data-col-key="line-ref"] {
  width: 42px;
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--anx-color-muted);
}

.table th[data-col-key="product"],
.table td[data-col-key="product"] {
  width: 202px;
  min-width: 202px;
}

.table th[data-col-key="barcode"],
.table td[data-col-key="barcode"] {
  width: 168px;
  min-width: 168px;
}

.table th[data-col-key="unit"],
.table td[data-col-key="unit"] {
  width: 98px;
  min-width: 98px;
}

.table th[data-col-key="qty"],
.table td[data-col-key="qty"] {
  width: 86px;
  min-width: 86px;
}

.table th[data-col-key="price"],
.table td[data-col-key="price"] {
  width: 106px;
  min-width: 106px;
}

.table th[data-col-key="discount"],
.table td[data-col-key="discount"] {
  width: 102px;
  min-width: 102px;
}

.table th[data-col-key="base"],
.table td[data-col-key="base"] {
  width: 102px;
  min-width: 102px;
}

.table th[data-col-key="tax"],
.table td[data-col-key="tax"] {
  width: 98px;
  min-width: 98px;
}

.table th[data-col-key="total"],
.table td[data-col-key="total"] {
  width: var(--sticky-total-width);
  min-width: var(--sticky-total-width);
  position: sticky;
  inset-inline-end: calc(var(--sticky-settings-width) + var(--sticky-actions-width));
  z-index: 2;
  border-inline-start: var(--anx-border-subtle);
}

.table th[data-col-key="actions"],
.table td[data-col-key="actions"] {
  width: var(--sticky-actions-width);
  min-width: var(--sticky-actions-width);
  padding-inline: 0.25rem;
  position: sticky;
  inset-inline-end: var(--sticky-settings-width);
  z-index: 3;
  border-inline-start: var(--anx-border-subtle);
  text-align: center;
  vertical-align: middle;
}

.table th[data-col-key="columns-control"],
.table td[data-col-key="columns-control"] {
  width: var(--sticky-settings-width);
  min-width: var(--sticky-settings-width);
  text-align: center;
  padding-inline: 0.25rem;
  position: sticky;
  inset-inline-end: 0;
  z-index: 4;
  vertical-align: middle;
}

.table tbody td[data-col-key="actions"],
.table tbody td[data-col-key="columns-control"],
.table tbody td[data-col-key="total"] {
  background: var(--anx-color-surface-glass-strong);
  backdrop-filter: blur(4px);
}

.table thead th[data-col-key="actions"],
.table thead th[data-col-key="columns-control"],
.table thead th[data-col-key="total"] {
  z-index: 7;
}

.table th[data-col-key="columns-control"] .dropdown {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
}

.table thead th[data-col-key="actions"],
.table thead th[data-col-key="columns-control"] {
  padding-block: 0.55rem;
}

.table td[data-col-key="actions"],
.table td[data-col-key="columns-control"] {
  padding-block: 0.4rem;
}

.table tbody tr:hover td[data-col-key="actions"],
.table tbody tr:hover td[data-col-key="columns-control"],
.table tbody tr:hover td[data-col-key="total"] {
  background: var(--anx-color-surface-hover-strong);
}

.table td[data-col-key="product"] .form-select,
.table td[data-col-key="barcode"] .form-control,
.table td[data-col-key="unit"] .form-control,
.table td[data-col-key="qty"] .form-control,
.table td[data-col-key="price"] .form-control,
.table td[data-col-key="discount"] .form-control {
  width: 100%;
}

.line-add-row td {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  background: var(--anx-color-surface-disabled);
  border-top: 0;
}

.resizable-col {
  user-select: none;
}

.resizable-col-label {
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
}

.col-resize-handle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: -5px;
  width: 12px;
  cursor: col-resize;
  z-index: 9;
  touch-action: none;
}

.col-resize-handle::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  inset-inline-start: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: var(--anx-radius-pill);
  background: var(--anx-color-resize);
  opacity: 0;
  transition: opacity .15s ease, background-color .15s ease;
}

.table thead th:hover .col-resize-handle::before,
.table thead th.is-resizing .col-resize-handle::before,
body.column-resizing .col-resize-handle::before {
  opacity: 1;
}

.table thead th.is-resizing .col-resize-handle::before,
body.column-resizing .col-resize-handle::before {
  background: var(--anx-color-resize-active);
}

.barcode-group {
  width: 100%;
}

.barcode-group .input-group-text {
  background: var(--anx-color-surface-subtle);
  border-color: var(--anx-color-border);
  color: var(--anx-color-primary-strong);
  border-radius: 6px 0 0 6px;
  padding-inline: 0.75rem;
}

html[dir="rtl"] .barcode-group .input-group-text {
  border-radius: 0 6px 6px 0;
}

.barcode-group .form-control {
  font-weight: var(--anx-font-weight-semibold);
  background: #fff;
}

.barcode-suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  max-height: 260px;
  overflow: auto;
  display: none;
}

.barcode-suggestions.show {
  display: block;
}

.barcode-suggestion-item.active {
  background: var(--anx-accent-soft);
  color: var(--anx-primary-dark);
}

.barcode-suggestion-item .suggestion-code {
  font-size: 0.76rem;
  color: var(--anx-muted);
}

.anx-tabs .nav-link,
.nav-tabs .nav-link {
  color: var(--anx-color-muted);
}

.anx-tabs .nav-link:hover,
.anx-tabs .nav-link:focus,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  color: var(--anx-color-primary-strong);
  border-color: rgba(22, 135, 114, 0.18);
  background: var(--anx-color-surface-hover);
}

.anx-tabs .nav-link.active,
.nav-tabs .nav-link.active {
  color: var(--anx-color-primary-strong);
  background-color: var(--anx-color-primary-soft-alt);
  border-color: var(--anx-color-border-primary) var(--anx-color-border-primary) var(--anx-color-primary-soft-alt);
}

.finance-ref-item {
  width: 100%;
  border: var(--anx-border-subtle);
  border-radius: var(--anx-radius-md);
  background: #fff;
  padding: 0.625rem 0.75rem;
  text-align: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.finance-ref-item:hover,
.finance-ref-item:focus {
  border-color: rgba(22, 135, 114, 0.24);
  background: var(--anx-color-surface-hover);
  box-shadow: var(--anx-shadow-xs);
  outline: none;
}

.finance-ref-meta {
  font-size: 0.73rem;
  color: var(--anx-color-muted);
  line-height: 1.35;
}

.finance-ref-amount {
  font-weight: var(--anx-font-weight-extrabold);
  color: var(--anx-color-text);
}

.finance-ref-badge {
  font-size: 0.69rem;
  padding: 0.22rem 0.45rem;
  border-radius: var(--anx-radius-pill);
  white-space: nowrap;
}

.finance-ref-badge.is-paid {
  background: var(--anx-color-bg-success);
  color: var(--anx-color-success-strong);
}

.finance-ref-badge.is-due {
  background: var(--anx-color-warning-soft);
  color: var(--anx-color-warning-strong);
}

.finance-ref-badge.is-overdue {
  background: var(--anx-color-danger-soft);
  color: var(--anx-color-danger-strong);
}

.finance-ref-badge.is-draft {
  background: var(--anx-color-primary-soft-alt);
  color: var(--anx-color-primary-strong);
}

.anx-modal .modal-content {
  border: var(--anx-border-glass);
  border-radius: var(--anx-radius-lg);
  overflow: hidden;
  background: var(--anx-color-surface);
  box-shadow: var(--anx-shadow-xl);
}

.anx-modal .modal-header {
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  border-bottom: var(--anx-border-glass-soft);
  padding: 0.95rem 1rem 0.82rem;
  align-items: flex-start;
  gap: 0.9rem;
}

.anx-modal .modal-body {
  background: linear-gradient(180deg, #f8fafc 0%, #f5f9f8 100%);
  padding: 0.95rem 1rem 1rem;
}

.anx-modal .btn-close {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: var(--anx-radius-md);
  margin: 0;
  padding: 0.45rem;
  background-size: 0.75rem;
  opacity: 0.72;
  box-shadow: none;
}

.anx-modal .btn-close:hover,
.anx-modal .btn-close:focus {
  opacity: 1;
  background-color: #f3f4f6;
  box-shadow: none;
}

.reference-preview-modal .modal-dialog {
  max-width: min(1240px, calc(100vw - 2rem));
}

.reference-preview-modal .modal-content {
  border: var(--anx-border-glass-soft);
}

.reference-preview-modal .modal-header {
  padding: 1rem 1.15rem 0.92rem;
}

.reference-preview-modal .modal-body {
  padding: 0.95rem 1.15rem 1.15rem;
}

.reference-modal-heading,
.send-modal-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reference-modal-heading {
  gap: 0.18rem;
}

.send-modal-heading {
  gap: 0.14rem;
}

.reference-modal-kicker,
.send-modal-kicker {
  font-size: var(--anx-font-size-xs);
  font-weight: var(--anx-font-weight-bold);
  color: var(--anx-color-muted-strong);
}

.reference-modal-kicker {
  letter-spacing: 0.01em;
}

.reference-preview-modal .modal-title {
  font-size: 1.12rem;
  font-weight: var(--anx-font-weight-extrabold);
  color: var(--anx-color-text-strong);
  line-height: var(--anx-line-height-tight);
  letter-spacing: -0.01em;
}

.reference-modal-subtitle,
.send-modal-helper {
  font-size: 0.81rem;
  color: var(--anx-color-muted-strong);
  font-weight: var(--anx-font-weight-semibold);
  line-height: var(--anx-line-height-base);
}

.send-invoice-modal .modal-dialog {
  max-width: 420px;
}

.send-invoice-modal .modal-content {
  border: var(--anx-border-glass);
  box-shadow: var(--anx-shadow-lg);
}

.send-invoice-modal .modal-header {
  border-color: rgba(229, 231, 235, 0.95) !important;
  padding: 0.95rem 1rem 0.82rem;
}

.send-invoice-modal .modal-body {
  padding: 0.82rem 1rem 1rem;
  background: var(--anx-color-surface-soft);
}

.send-invoice-modal .modal-footer {
  display: none !important;
}

.send-invoice-modal .modal-title {
  font-size: 1rem;
  font-weight: var(--anx-font-weight-extrabold);
  color: var(--anx-color-text-strong);
  margin-bottom: 0;
  line-height: 1.3;
}

.send-method-grid {
  display: grid;
  gap: 0.65rem;
}

.send-method-card {
  display: block;
  cursor: pointer;
  margin: 0;
}

.send-method-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.send-method-card-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 76px;
  padding: 0.84rem 0.9rem;
  border: var(--anx-border-glass);
  border-radius: var(--anx-radius-md);
  background: #ffffff;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
  box-shadow: var(--anx-shadow-xs);
}

.send-method-card:hover .send-method-card-body,
.send-method-card:focus-within .send-method-card-body {
  border-color: rgba(15, 118, 110, 0.24);
  background: #f8fcfb;
  box-shadow: var(--anx-shadow-md);
  transform: translateY(-1px);
}

.send-method-input:checked + .send-method-card-body {
  border-color: rgba(15, 118, 110, 0.3);
  background: linear-gradient(180deg, #f5fcf9 0%, #ecfdf5 100%);
  box-shadow: var(--anx-shadow-primary);
}

.send-method-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--anx-radius-md);
  background: var(--anx-color-surface-subtle);
  color: var(--anx-color-primary-strong);
  border: var(--anx-border-glass-soft);
}

.send-method-icon .bi {
  font-size: 1.05rem;
}

.send-method-input:checked + .send-method-card-body .send-method-icon {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.14);
  color: var(--anx-color-primary-strong);
}

.send-method-content {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.send-method-title {
  font-size: 0.94rem;
  font-weight: var(--anx-font-weight-extrabold);
  color: var(--anx-color-text-strong);
  line-height: 1.35;
}

.send-method-caption {
  font-size: 0.77rem;
  font-weight: var(--anx-font-weight-semibold);
  color: var(--anx-color-muted-strong);
  line-height: 1.4;
}

.send-method-trailing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: var(--anx-radius-pill);
  background: var(--anx-color-surface-subtle);
  color: var(--anx-color-muted-subtle);
  border: 1px solid rgba(229, 231, 235, 0.92);
  margin-inline-start: auto;
  flex: 0 0 1.9rem;
}

.send-method-trailing .bi {
  font-size: 0.9rem;
}

.send-method-card:hover .send-method-trailing,
.send-method-card:focus-within .send-method-trailing,
.send-method-input:checked + .send-method-card-body .send-method-trailing {
  color: var(--anx-color-primary-strong);
  border-color: rgba(15, 118, 110, 0.12);
  background: rgba(15, 118, 110, 0.08);
}

.payment-screen .modal-header,
.payment-screen .modal-footer {
  background: #fff;
  border-color: rgba(216, 226, 234, 0.95) !important;
  padding: 0.9rem 1rem !important;
}

.payment-screen .modal-content {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.payment-screen .modal-body {
  background: var(--anx-color-surface-subtle);
}

.payment-screen .card {
  border-radius: var(--anx-radius-md);
  box-shadow: var(--anx-shadow-sm);
}

.payment-screen .card-body {
  padding: 1rem !important;
}

.payment-screen .form-label {
  font-size: 0.82rem;
  margin-bottom: 0.35rem !important;
}

.payment-screen .form-control,
.payment-screen .form-select,
.payment-screen .form-control-lg,
.payment-screen .form-select-lg {
  min-height: 36px;
  border-radius: var(--anx-radius-sm);
  font-size: var(--anx-font-size-base);
  padding-inline: 0.75rem;
}

.payment-screen .btn,
.payment-screen .btn-lg {
  min-height: 36px;
  padding-inline: 0.9rem;
  border-radius: var(--anx-radius-sm);
}

.payment-screen .modal-title {
  font-size: 1.2rem !important;
}

.anx-summary-block,
.review-total-card,
.payment-difference-box {
  border: var(--anx-border-subtle);
  border-radius: var(--anx-radius-md);
  background: var(--anx-color-surface-glass);
  box-shadow: var(--anx-shadow-xs);
}

.sticky-review-panel {
  border: var(--anx-border-subtle);
  padding: 0.6rem;
  box-shadow: 0 -1px 2px rgba(15, 23, 42, 0.04);
  background: var(--anx-color-surface-glass);
  border-radius: var(--anx-radius-md);
}

.review-total-card {
  padding: 0.65rem 0.8rem;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.review-total-card.primary {
  background: var(--anx-primary-soft);
  border-color: rgba(15, 118, 110, 0.16);
}

.review-total-label {
  font-size: 0.77rem;
  line-height: 1.25;
  color: var(--anx-muted);
}

.review-total-value {
  font-weight: var(--anx-font-weight-extrabold);
  font-size: 1.08rem;
  line-height: 1.2;
}

.review-total-card.primary .review-total-label,
.review-total-card.primary .review-total-value {
  color: var(--anx-primary-dark);
}

.review-total-card.primary .review-total-value {
  font-size: 1.2rem;
  font-weight: var(--anx-font-weight-black);
}

.reference-summary-card,
.reference-total-card,
.reference-note-card,
.reference-lines-card {
  border: var(--anx-border-glass);
  border-radius: var(--anx-radius-md);
  background: var(--anx-color-surface-glass);
  box-shadow: var(--anx-shadow-xs);
}

.reference-summary-card {
  padding: 0.82rem 0.88rem;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
}

.reference-summary-card.primary {
  background: linear-gradient(180deg, #f3fbf8 0%, #ecfdf5 100%);
  border-color: rgba(15, 118, 110, 0.16);
}

.reference-meta-label {
  font-size: 0.72rem;
  font-weight: var(--anx-font-weight-bold);
  color: var(--anx-color-muted-strong);
  margin-bottom: 0.22rem;
  line-height: 1.35;
}

.reference-meta-value {
  font-weight: var(--anx-font-weight-bold);
  line-height: 1.35;
  color: var(--anx-color-text-strong);
  font-size: 0.98rem;
}

.reference-meta-value.amount {
  font-size: 1.16rem;
  font-weight: var(--anx-font-weight-black);
  color: var(--anx-primary-dark);
}

.reference-summary-card .status-pill {
  width: fit-content;
}

.reference-lines-card {
  padding: 0.82rem 0.92rem 0.92rem;
  background: var(--anx-color-surface-glass-strong);
}

.reference-lines-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.reference-lines-title {
  font-size: 0.95rem;
  font-weight: var(--anx-font-weight-extrabold);
  color: var(--anx-color-text-strong);
}

.reference-lines-meta {
  font-size: 0.76rem;
  font-weight: var(--anx-font-weight-bold);
  color: var(--anx-color-muted-strong);
}

.reference-lines-table {
  border-collapse: separate;
  border-spacing: 0;
}

.reference-lines-table thead th {
  background: var(--anx-color-surface-subtle) !important;
  color: var(--anx-color-muted);
  font-size: 0.75rem;
  font-weight: var(--anx-font-weight-extrabold);
  border-bottom: var(--anx-border-subtle);
  padding: 0.68rem 0.78rem;
}

.reference-lines-table tbody td {
  padding: 0.72rem 0.78rem;
  border-bottom: var(--anx-border-soft);
  color: var(--anx-color-text-strong);
  background: transparent;
  font-size: var(--anx-font-size-md);
}

.reference-lines-table tbody tr:last-child td {
  border-bottom: 0;
}

.reference-lines-table tbody tr:hover td {
  background: rgba(236, 253, 245, 0.55);
}

.reference-lines-table th.numeric {
  text-align: center;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.reference-lines-table td.numeric {
  text-align: left;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  direction: ltr;
}

.reference-lines-table td.product-cell {
  min-width: 220px;
  font-weight: var(--anx-font-weight-bold);
  line-height: 1.5;
}

.reference-total-card {
  padding: 0.76rem 0.82rem;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
}

.reference-total-card.primary {
  background: linear-gradient(180deg, #f3fbf8 0%, #ecfdf5 100%);
  border-color: rgba(15, 118, 110, 0.18);
}

.reference-total-card.primary .reference-meta-value {
  color: var(--anx-primary-dark);
}

.reference-note-card {
  padding: 0.8rem 0.88rem;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
}

.reference-note-text {
  font-size: 0.9rem;
  color: var(--anx-color-text);
  font-weight: var(--anx-font-weight-semibold);
  line-height: 1.55;
}

.payment-difference-box {
  background: #fff;
  padding: 0.9rem 1rem;
}

.payment-difference-box .difference-value {
  font-weight: var(--anx-font-weight-black);
  color: var(--anx-primary-dark);
}

.payment-difference-box .form-check-label {
  font-size: 0.9rem;
  color: var(--anx-text);
}

#validationArea {
  border: 1px solid rgba(194, 65, 59, 0.16);
  background: linear-gradient(180deg, #fff6f5 0%, #fef0ef 100%);
  color: var(--anx-color-danger-strong);
  border-radius: var(--anx-radius-md);
}

#subTotal,
#discountTotal,
#taxTotal,
#grandTotal,
#paymentDueAmount,
#invoiceNumber {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
}

#subTotal,
#discountTotal,
#taxTotal {
  font-weight: var(--anx-font-weight-extrabold);
}

#grandTotal {
  font-weight: var(--anx-font-weight-black);
}

#invoiceNumber,
.text-primary-emphasis,
.text-primary,
.text-info-emphasis,
.text-info {
  color: var(--anx-primary-dark) !important;
}

.bg-primary-subtle,
.bg-info-subtle {
  background-color: var(--anx-color-primary-soft-alt) !important;
}

.border-primary-subtle,
.border-info-subtle {
  border-color: var(--anx-color-border-primary) !important;
}

/* ===================================== */
/* Modernization Overrides */
/* ===================================== */
header.border-bottom {
  border-bottom: var(--anx-border-header) !important;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.navbar {
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
}

.navbar-brand {
  color: var(--anx-color-text-strong);
  font-size: clamp(1.08rem, 0.96rem + 0.24vw, 1.2rem);
  font-weight: var(--anx-font-weight-extrabold);
  letter-spacing: -0.03em;
}

.card,
.anx-card {
  border: var(--anx-border-glass);
  border-radius: var(--anx-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: var(--anx-shadow-md);
}

.card.shadow-sm,
.anx-card.shadow-sm,
.workspace-shell.shadow-sm,
.tabs-container.shadow-sm {
  box-shadow: var(--anx-shadow-md) !important;
}

.card-header,
.anx-card-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.94) 100%) !important;
  border-bottom: var(--anx-border-glass-soft);
  padding: 1rem 1.08rem;
}

.card-body,
.anx-card-body {
  padding: 1.05rem;
}

.bg-body-tertiary {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.86) 0%, rgba(245, 247, 250, 0.94) 100%) !important;
}

#emptyState {
  background:
    radial-gradient(circle at top, rgba(15, 118, 110, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.h6,
h6,
.modal-title,
.reference-lines-title {
  letter-spacing: -0.02em;
}

.form-label {
  color: var(--anx-color-muted-strong);
  font-size: 0.78rem;
  font-weight: var(--anx-font-weight-bold);
  margin-bottom: 0.42rem !important;
}

.small,
small,
.text-secondary,
.text-body-secondary {
  color: var(--anx-color-muted) !important;
}

.form-control,
.form-select,
.anx-control {
  min-height: var(--control-height);
  border-color: rgba(216, 226, 234, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 253, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(15, 23, 42, 0.02);
  color: var(--anx-color-text-strong);
}

.form-control[readonly],
.form-control:disabled,
.form-select:disabled {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(243, 246, 249, 0.95) 100%);
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(201, 212, 224, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 10px rgba(15, 23, 42, 0.04);
}

.form-control:focus,
.form-select:focus,
.cell-input:focus {
  border-color: rgba(15, 118, 110, 0.44) !important;
  box-shadow:
    0 0 0 4px rgba(15, 118, 110, 0.1) !important,
    0 12px 24px rgba(15, 118, 110, 0.08) !important;
  background: rgba(255, 255, 255, 0.98);
}

.input-group-text {
  border-color: rgba(216, 226, 234, 0.92);
}

.btn,
.anx-btn {
  border-radius: 12px;
  font-weight: var(--anx-font-weight-bold);
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn-sm {
  min-height: 34px;
  padding-inline: 0.88rem;
}

.btn-lg {
  min-height: 40px;
  padding-inline: 1rem;
}

.btn-primary {
  background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
  border-color: rgba(11, 93, 87, 0.92);
  box-shadow: var(--anx-shadow-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #1ac7b3 0%, #0f766e 100%);
  border-color: rgba(11, 93, 87, 0.96);
  box-shadow:
    0 22px 36px rgba(15, 118, 110, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(216, 226, 234, 0.98);
  color: var(--anx-color-text-secondary);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 118, 110, 0.18);
  color: var(--anx-color-primary-strong);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
  border-color: rgba(11, 93, 87, 0.92);
  box-shadow: var(--anx-shadow-primary);
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(180deg, #18c2b0 0%, #0f766e 100%);
  border-color: rgba(11, 93, 87, 0.96);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fff5f4 100%);
  color: var(--anx-color-danger-strong);
  border-color: rgba(229, 184, 179, 0.88);
  box-shadow:
    0 6px 16px rgba(194, 65, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.btn-danger:hover,
.btn-danger:focus {
  background: linear-gradient(180deg, #fff2f1 0%, #fee8e7 100%);
  color: #9f1f1a;
  border-color: rgba(194, 65, 59, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
  border-color: rgba(216, 226, 234, 0.92);
  color: var(--anx-color-text-secondary);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.62;
  box-shadow: none;
  transform: none !important;
}

.status-pill,
.anx-badge {
  padding: 0.34rem 0.76rem;
  border-radius: var(--anx-radius-pill);
  font-size: 0.73rem;
  font-weight: var(--anx-font-weight-extrabold);
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.dropdown-menu {
  border: var(--anx-border-glass);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--anx-shadow-lg);
}

.dropdown-item-text {
  border-radius: 12px;
}

.tabs-item,
.anx-tabs-item {
  border: var(--anx-border-glass) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tabs-item.active,
.anx-tabs-item.active {
  border-color: rgba(15, 118, 110, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.92) 0%, rgba(236, 253, 245, 0.96) 100%);
  border-inline-start: 3px solid var(--anx-primary);
  box-shadow:
    0 14px 30px rgba(15, 118, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tab-total {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.finance-ref-item {
  border: var(--anx-border-glass);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 253, 0.94) 100%);
  box-shadow: var(--anx-shadow-sm);
}

.finance-ref-item:hover,
.finance-ref-item:focus {
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 252, 251, 0.98) 0%, rgba(243, 248, 247, 0.96) 100%);
  box-shadow: var(--anx-shadow-md);
}

.columns-trigger-btn,
.add-row-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  border-color: rgba(216, 226, 234, 0.92);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.columns-trigger-btn:hover,
.columns-trigger-btn:focus,
.add-row-button:hover,
.add-row-button:focus {
  border-color: rgba(15, 118, 110, 0.16);
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.table-responsive,
.anx-table-responsive {
  border: var(--anx-border-glass);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 253, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--anx-shadow-sm);
}

.table,
.anx-table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(15, 118, 110, 0.035);
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background:
    linear-gradient(180deg, rgba(249, 251, 253, 0.98) 0%, rgba(242, 246, 250, 0.94) 100%) !important;
  color: var(--anx-color-muted-strong);
  font-size: 0.74rem;
  font-weight: var(--anx-font-weight-extrabold);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(223, 231, 239, 0.95);
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.table tbody td {
  border-color: rgba(233, 239, 245, 0.92);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--anx-color-text);
}

.table tbody tr {
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.table tbody tr:hover td {
  background: rgba(15, 118, 110, 0.028);
}

.table td[data-col-key="base"],
.table td[data-col-key="tax"] {
  background: rgba(250, 252, 253, 0.92);
  color: var(--anx-color-text-secondary);
}

.table td[data-col-key="total"] {
  background: rgba(246, 250, 249, 0.98);
  color: var(--anx-color-text-strong);
  font-size: 0.94rem;
}

.table tbody td[data-col-key="actions"],
.table tbody td[data-col-key="columns-control"],
.table tbody td[data-col-key="total"] {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.table tbody tr:hover td[data-col-key="actions"],
.table tbody tr:hover td[data-col-key="columns-control"],
.table tbody tr:hover td[data-col-key="total"] {
  background: rgba(244, 251, 249, 0.94);
}

.line-add-row td {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(244, 247, 250, 0.94) 100%);
}

.barcode-group .input-group-text {
  background:
    linear-gradient(180deg, rgba(247, 251, 250, 0.96) 0%, rgba(240, 248, 246, 0.94) 100%);
  border-color: rgba(216, 226, 234, 0.92);
  color: var(--anx-color-primary-strong);
}

.barcode-group .form-control {
  background: rgba(255, 255, 255, 0.98);
}

.barcode-suggestions {
  border: var(--anx-border-glass);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--anx-shadow-lg);
  padding: 0.3rem;
}

.barcode-suggestion-item {
  border-radius: 12px;
}

.barcode-suggestion-item.active,
.barcode-suggestion-item:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--anx-primary-dark);
}

.anx-tabs .nav-link,
.nav-tabs .nav-link {
  border-radius: 12px 12px 0 0;
  font-weight: var(--anx-font-weight-bold);
}

.anx-modal .modal-content,
.modal-content {
  border: var(--anx-border-glass);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow: var(--anx-shadow-xl);
}

.modal-backdrop.show {
  opacity: 1;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
}

.anx-modal .modal-header,
.modal-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 251, 253, 0.92) 100%);
  border-bottom: var(--anx-border-glass-soft);
}

.anx-modal .modal-body,
.modal-body {
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.92) 0%, rgba(243, 247, 250, 0.94) 100%);
}

.anx-modal .btn-close,
.btn-close {
  border-radius: 12px;
  background-color: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(225, 233, 242, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.anx-modal .btn-close:hover,
.anx-modal .btn-close:focus,
.btn-close:hover,
.btn-close:focus {
  background-color: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 118, 110, 0.14);
}

.reference-summary-card,
.reference-total-card,
.reference-note-card,
.reference-lines-card,
.review-total-card,
.anx-summary-block,
.payment-difference-box {
  border: var(--anx-border-glass);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 251, 253, 0.92) 100%);
  box-shadow: var(--anx-shadow-sm);
}

.reference-summary-card.primary,
.reference-total-card.primary,
.review-total-card.primary {
  background:
    linear-gradient(180deg, rgba(241, 253, 250, 0.98) 0%, rgba(236, 253, 245, 0.94) 100%);
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow:
    0 16px 28px rgba(15, 118, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.reference-summary-card,
.reference-total-card,
.review-total-card {
  padding: 0.9rem 0.95rem;
}

.review-total-label,
.reference-meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--anx-color-muted-strong);
}

.review-total-value,
.reference-meta-value,
.reference-note-text,
.finance-ref-amount,
#paymentDueAmount {
  color: var(--anx-color-text-strong);
  letter-spacing: -0.02em;
}

.review-total-value {
  font-size: 1.12rem;
}

.review-total-card.primary .review-total-value,
.reference-meta-value.amount,
#grandTotal {
  color: var(--anx-primary-dark);
}

.sticky-review-panel {
  border: var(--anx-border-glass);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 -8px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.reference-lines-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.94) 100%);
}

.reference-lines-table thead th {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(243, 247, 250, 0.94) 100%) !important;
  color: var(--anx-color-muted-strong);
}

.reference-lines-table tbody tr:hover td {
  background: rgba(15, 118, 110, 0.045);
}

.send-method-card-body {
  min-height: 82px;
  border: var(--anx-border-glass);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 253, 0.94) 100%);
  box-shadow: var(--anx-shadow-sm);
}

.send-method-card:hover .send-method-card-body,
.send-method-card:focus-within .send-method-card-body {
  border-color: rgba(15, 118, 110, 0.2);
  background:
    linear-gradient(180deg, rgba(248, 252, 251, 0.98) 0%, rgba(243, 248, 247, 0.95) 100%);
  box-shadow: var(--anx-shadow-md);
}

.send-method-input:checked + .send-method-card-body {
  border-color: rgba(15, 118, 110, 0.24);
  background:
    linear-gradient(180deg, rgba(242, 253, 249, 0.98) 0%, rgba(236, 253, 245, 0.96) 100%);
  box-shadow:
    0 18px 32px rgba(15, 118, 110, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.payment-screen .modal-header,
.payment-screen .modal-footer {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(170%);
  border-color: rgba(223, 231, 239, 0.88) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.payment-screen .modal-content {
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(242, 246, 249, 0.98) 100%);
}

.payment-screen .modal-body {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.06), transparent 20%),
    linear-gradient(180deg, #f6f9fc 0%, #eff4f8 100%);
}

.payment-screen .card {
  border: var(--anx-border-glass);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 253, 0.92) 100%);
  box-shadow: var(--anx-shadow-md);
}

.payment-difference-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 253, 0.94) 100%);
}

.offcanvas {
  border-inline-start: var(--anx-border-glass);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 252, 0.94) 100%);
  box-shadow: var(--anx-shadow-xl);
  backdrop-filter: blur(22px) saturate(160%);
}

.offcanvas-header {
  border-bottom: var(--anx-border-glass-soft);
}

.offcanvas-body .bg-body-tertiary {
  border: var(--anx-border-glass);
  box-shadow: var(--anx-shadow-xs);
}

.toast-wrap > div {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(31, 41, 55, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px !important;
  box-shadow: var(--anx-shadow-lg);
  backdrop-filter: blur(16px);
}

#validationArea {
  border: 1px solid rgba(194, 65, 59, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 247, 245, 0.98) 0%, rgba(254, 241, 239, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(194, 65, 59, 0.08);
}
