:root {
  --sw-navy-950: #01261f;
  --sw-navy-900: #0b2e27;
  --sw-navy-800: #1a3c34;
  --sw-blue-600: #1a3c34;
  --sw-blue-500: #285c50;
  --sw-blue-50: #eef5f2;
  --sw-bg: #fdfbf7;
  --sw-surface: #ffffff;
  --sw-border: #d8e0db;
  --sw-border-soft: #eaede9;
  --sw-text: #2d2d2d;
  --sw-muted: #667085;
  --sw-success: #15803d;
  --sw-success-bg: #dcfce7;
  --sw-warning: #b45309;
  --sw-warning-bg: #fef3c7;
  --sw-danger: #b91c1c;
  --sw-danger-bg: #fee2e2;
  --sw-info: #1d4ed8;
  --sw-info-bg: #dbeafe;
  --sw-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --sw-sidebar-width: 260px;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--sw-bg);
  color: var(--sw-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.925rem;
}

a {
  color: var(--sw-blue-600);
}

a:hover {
  color: #01261f;
}

.sw-app-shell {
  min-height: 100vh;
  background: var(--sw-bg);
}

.sw-sidebar {
  background: var(--sw-navy-950);
  color: #dbe7f5;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sw-main {
  min-width: 0;
}

.sw-topbar {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sw-border-soft);
  color: var(--sw-muted);
}

.sw-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.sw-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sw-page-title {
  margin: 0;
  color: var(--sw-text);
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem);
  font-weight: 760;
  letter-spacing: 0;
}

.sw-page-subtitle {
  color: var(--sw-muted);
  font-size: 0.875rem;
}

.sw-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sw-card,
.sw-filter-bar,
.sw-form-panel,
.sw-table-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  box-shadow: var(--sw-shadow);
}

.sw-card {
  padding: 1rem;
}

.sw-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sw-summary-card {
  position: relative;
  overflow: hidden;
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  box-shadow: var(--sw-shadow);
}

.sw-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--sw-border);
}

.sw-summary-card.sw-card-info::before,
.sw-summary-card.sw-card-neutral::before {
  background: #64748b;
}

.sw-summary-card.sw-card-success::before {
  background: var(--sw-success);
}

.sw-summary-card.sw-card-warning::before {
  background: var(--sw-warning);
}

.sw-summary-card.sw-card-danger::before {
  background: var(--sw-danger);
}

.sw-summary-card.sw-card-blue::before {
  background: var(--sw-blue-600);
}

.sw-summary-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.75rem;
}

.sw-summary-main > div {
  display: contents;
}

.sw-summary-main .sw-summary-label {
  grid-column: 1;
  grid-row: 1;
  min-height: 2rem;
}

.sw-summary-main .sw-summary-value,
.sw-summary-main .sw-summary-subtitle {
  grid-column: 1 / -1;
}

.sw-summary-main .sw-summary-icon {
  grid-column: 2;
  grid-row: 1;
}

.sw-summary-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475467;
  font-family: "Material Symbols Rounded";
  font-size: 1.15rem;
  line-height: 1;
}

.sw-card-success .sw-summary-icon {
  background: var(--sw-success-bg);
  color: var(--sw-success);
}

.sw-card-warning .sw-summary-icon {
  background: var(--sw-warning-bg);
  color: var(--sw-warning);
}

.sw-card-danger .sw-summary-icon {
  background: var(--sw-danger-bg);
  color: var(--sw-danger);
}

.sw-card-blue .sw-summary-icon {
  background: var(--sw-info-bg);
  color: var(--sw-info);
}

.sw-summary-label {
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sw-summary-value {
  margin-top: 0.3rem;
  color: var(--sw-text);
  font-family:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.45rem;
  font-weight: 700;
}

.sw-summary-subtitle {
  margin-top: 0.4rem;
  color: var(--sw-muted);
  font-size: 0.78rem;
}

.sw-filter-bar {
  padding: 1rem;
  margin-bottom: 1rem;
}

.sw-filter-status {
  margin-top: 0.85rem;
  color: var(--sw-muted);
  font-size: 0.8125rem;
}

.mapping-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mapping-view-tab {
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--sw-border);
  border-radius: 6px;
  background: var(--sw-surface);
  color: var(--sw-muted);
  font-weight: 650;
}

.mapping-view-tab:hover,
.mapping-view-tab:focus-visible {
  border-color: var(--sw-blue-500);
  color: var(--sw-blue-600);
}

.mapping-view-tab:focus-visible {
  outline: 3px solid rgba(26, 60, 52, 0.18);
  outline-offset: 1px;
}

.mapping-view-tab.active {
  border-color: var(--sw-blue-600);
  background: var(--sw-blue-50);
  color: var(--sw-blue-600);
}

.mapping-tab-count {
  display: inline-flex;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin-left: 0.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sw-blue-600);
  color: #fff;
  font-size: 0.72rem;
}

.mapping-candidate-list {
  display: grid;
  gap: 0.65rem;
}

.mapping-candidate {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(15rem, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 0.9rem;
  border: 1px solid var(--sw-border-soft);
  border-radius: 7px;
  background: #fbfcfe;
}

.mapping-candidate > * {
  min-width: 0;
}

.mapping-candidate-name {
  margin: 0;
  color: var(--sw-text);
  font-size: 0.95rem;
  font-weight: 720;
}

.mapping-suggestion-note {
  margin-top: 0.35rem;
  color: var(--sw-success);
  font-size: 0.78rem;
}

.mapping-technical-details summary {
  color: var(--sw-muted);
  cursor: pointer;
  font-size: 0.78rem;
}

.mapping-candidate-action .btn {
  white-space: nowrap;
}

.mapping-row-actions {
  white-space: nowrap;
}

.mapping-row-actions .btn + .btn {
  margin-left: 0.35rem;
}

.sw-form-panel {
  padding: 1rem;
}

.receipt-upload-location-name {
  font-weight: 650;
}

.receipt-upload-file-input {
  min-height: 2.8rem;
  font-size: 0.95rem;
}

.receipt-upload-submit-btn {
  min-height: 2.75rem;
  font-size: 0.98rem;
  font-weight: 720;
}

.ocr-suggestions-mobile {
  display: none;
}

.receipt-details-page,
.receipt-review-layout,
.receipt-review-layout > * {
  min-width: 0;
  max-width: 100%;
}

.receipt-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.receipt-review-layout > [class*="col-"] {
  width: 100%;
  padding: 0;
}

.receipt-details-page .ocr-suggestions-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.sw-card .mapping-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.ocr-suggestions-table {
  width: 100%;
  table-layout: fixed;
}

.ocr-suggestions-table .ocr-col-use {
  width: 3.5rem;
}

.ocr-suggestions-table .ocr-col-source {
  width: 24%;
}

.ocr-suggestions-table .ocr-col-map {
  width: 31%;
}

.ocr-suggestions-table .ocr-col-receive {
  width: 24%;
}

.ocr-suggestions-table th,
.ocr-suggestions-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.ocr-source-line {
  display: block;
  color: var(--sw-text);
  font-weight: 650;
}

.ocr-map-cell .form-select,
.ocr-receive-cell .input-group {
  min-width: 0;
}

.ocr-review-warning {
  margin-top: 0.35rem;
  color: var(--sw-warning);
  font-size: 0.78rem;
  line-height: 1.3;
}

.ocr-suggestion-high-confidence {
  background: #f7fcf8;
}

.ocr-suggestion-excluded {
  background: #fffaf0;
}

.ocr-suggestion-card {
  margin-bottom: 0.75rem;
}

.ocr-suggestion-description {
  font-size: 0.94rem;
  line-height: 1.35;
}

.ocr-suggestion-actions .btn {
  min-height: 2.4rem;
  flex: 1 1 auto;
}

.receipt-confirm-btn {
  min-height: 2.6rem;
  font-size: 0.95rem;
  font-weight: 720;
}

.receipt-add-suggestions-btn {
  min-height: 2.4rem;
}

.sw-section {
  margin-bottom: 1.25rem;
}

.sw-section-title {
  color: var(--sw-text);
  font-size: 1rem;
  font-weight: 720;
}

.table-responsive {
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  background: var(--sw-surface);
  box-shadow: var(--sw-shadow);
}

.sw-data-table,
.table {
  margin-bottom: 0;
  color: var(--sw-text);
}

.sw-data-table > :not(caption) > * > *,
.table > :not(caption) > * > * {
  padding: 0.68rem 0.85rem;
  border-bottom-color: var(--sw-border-soft);
}

.sw-compact-table {
  font-size: 0.84rem;
}

.sw-compact-table > :not(caption) > * > * {
  padding: 0.55rem 0.6rem;
}

.inventory-table,
.ledger-table {
  table-layout: fixed;
}

.inventory-table th:nth-child(1),
.inventory-table td:nth-child(1) {
  width: 15%;
}

.inventory-table th:nth-child(4),
.inventory-table td:nth-child(4),
.inventory-table th:nth-child(5),
.inventory-table td:nth-child(5),
.inventory-table th:nth-child(6),
.inventory-table td:nth-child(6) {
  width: 9%;
}

.inventory-table th:last-child,
.inventory-table td:last-child {
  width: 11.75rem;
}

.inventory-table th.actions-cell,
.inventory-table td.actions-cell {
  padding-left: 0.75rem;
  padding-right: 1.1rem;
}

.ledger-table th:nth-child(1),
.ledger-table td:nth-child(1) {
  width: 108px;
}

.ledger-table th:nth-child(4),
.ledger-table td:nth-child(4) {
  width: 132px;
}

.ledger-table th:nth-child(5),
.ledger-table td:nth-child(5),
.ledger-table th:nth-child(6),
.ledger-table td:nth-child(6) {
  width: 78px;
}

.ledger-table th:nth-child(7),
.ledger-table td:nth-child(7) {
  width: 70px;
}

.ledger-table th:nth-child(8),
.ledger-table td:nth-child(8) {
  width: 118px;
}

.ledger-created-cell {
  font-size: 0.78rem;
}

.ledger-details-cell {
  max-width: 220px;
}

.cell-wrap {
  overflow-wrap: anywhere;
}

.cell-muted {
  color: var(--sw-muted);
  font-size: 0.74rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.cell-truncate {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions-cell {
  white-space: nowrap;
  overflow: visible;
}

.sw-data-table thead th,
.table thead th {
  background: #f8fafc;
  color: #475467;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sw-data-table tbody tr:hover,
.table-hover tbody tr:hover {
  background: #f8fbff;
}

.sw-num,
.text-end {
  font-family:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.sw-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.45rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sw-status-badge::before {
  font-family: "Material Symbols Rounded";
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
}

.sw-status-healthy,
.sw-status-active {
  color: var(--sw-success);
  background: var(--sw-success-bg);
}

.sw-status-healthy::before,
.sw-status-active::before {
  content: "check_circle";
}

.sw-status-below-par {
  color: #1e40af;
  background: #dbeafe;
}

.sw-status-below-par::before {
  content: "trending_down";
}

.sw-status-warning {
  color: var(--sw-warning);
  background: var(--sw-warning-bg);
}

.sw-status-warning::before,
.sw-status-low-stock::before {
  content: "warning";
}

.sw-status-low-stock {
  color: #9a3412;
  background: #ffedd5;
}

.sw-status-out-of-stock,
.sw-status-inactive {
  color: var(--sw-danger);
  background: var(--sw-danger-bg);
}

.sw-status-out-of-stock::before {
  content: "error";
}

.sw-status-inactive::before {
  content: "block";
}

.sw-status-info {
  color: #475467;
  background: #eef2f7;
}

.sw-status-mapped {
  color: var(--sw-info);
  background: var(--sw-info-bg);
}

.sw-status-mapped::before {
  content: "link";
}

.sw-status-unmapped {
  color: #475467;
  background: #eef2f7;
}

.sw-status-unmapped::before {
  content: "link_off";
}

.sw-status-sale-deduction {
  color: #6d28d9;
  background: #ede9fe;
}

.sw-status-sale-deduction::before {
  content: "shopping_cart";
}

.sw-status-received {
  color: var(--sw-success);
  background: var(--sw-success-bg);
}

.sw-status-received::before {
  content: "move_to_inbox";
}

.sw-status-adjustment {
  color: var(--sw-info);
  background: var(--sw-info-bg);
}

.sw-status-adjustment::before {
  content: "edit";
}

.sw-status-source::before,
.sw-status-info::before {
  content: none;
}

.sw-btn,
.sw-btn-primary,
.sw-btn-secondary,
.sw-btn-danger {
  border-radius: 6px;
  font-weight: 650;
}

.sw-btn-primary {
  background: var(--sw-blue-600);
  border-color: var(--sw-blue-600);
  color: #ffffff;
}

.sw-btn-secondary {
  background: var(--sw-surface);
  border-color: var(--sw-border);
  color: #344054;
}

.sw-btn-danger {
  background: var(--sw-danger);
  border-color: var(--sw-danger);
  color: #ffffff;
}

.sw-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
}

.sw-action-btn {
  min-width: 4.8rem;
  min-height: 2rem;
}

.inventory-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: 100%;
  white-space: nowrap;
}

.btn-row-action {
  min-width: 4.65rem;
  min-height: 2rem;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.1;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-receive {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.btn-receive:hover,
.btn-receive:focus {
  color: #14532d;
  background: #dcfce7;
  border-color: #4ade80;
}

.btn-adjust {
  color: #475467;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-adjust:hover,
.btn-adjust:focus {
  color: #334155;
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-row-action:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(26, 60, 52, 0.18);
}

.sw-empty-state {
  padding: 1.1rem;
  color: var(--sw-muted);
  background: var(--sw-surface);
  border: 1px dashed var(--sw-border);
  border-radius: 8px;
}

.sw-inline-section-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.sw-inline-section-error-title {
  margin: 0 0 0.2rem;
  color: #78350f;
  font-size: 0.95rem;
  font-weight: 700;
}

.sw-inline-section-error-message {
  margin: 0;
  color: #92400e;
  font-size: 0.9rem;
}

.sw-kicker {
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sw-table {
  width: 100%;
}

.sw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 17, 31, 0.48);
}

.sw-modal,
.sw-modal-panel,
.sw-drawer-panel {
  width: min(100%, 560px);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: auto;
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.18);
}

.sw-modal-header,
.sw-modal-body,
.sw-modal-footer {
  padding: 1rem;
}

.sw-modal-header {
  border-bottom: 1px solid var(--sw-border-soft);
}

.sw-modal-footer {
  border-top: 1px solid var(--sw-border-soft);
}

.sw-drawer-panel {
  margin-left: auto;
  height: calc(100vh - 2rem);
  border-radius: 8px;
}

.btn {
  border-radius: 6px;
  font-weight: 650;
}

.btn-primary {
  background: var(--sw-blue-600);
  border-color: var(--sw-blue-600);
}

.btn-primary:hover {
  background: #01261f;
  border-color: #01261f;
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-success {
  background: var(--sw-surface);
  border-color: var(--sw-border);
  color: #344054;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover {
  background: var(--sw-blue-50);
  border-color: #bfdbfe;
  color: #01261f;
}

.form-label {
  color: #344054;
  font-size: 0.78rem;
  font-weight: 720;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-color: var(--sw-border);
  border-radius: 6px;
  color: var(--sw-text);
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--sw-blue-500);
  box-shadow: 0 0 0 0.2rem rgba(26, 60, 52, 0.16);
}

.validation-message {
  color: var(--sw-danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.alert {
  border-radius: 8px;
  border-width: 1px;
}

.alert-info {
  background: var(--sw-info-bg);
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.alert-warning {
  background: var(--sw-warning-bg);
  border-color: #fde68a;
  color: #92400e;
}

.alert-success {
  background: var(--sw-success-bg);
  border-color: #bbf7d0;
  color: #166534;
}

.alert-danger {
  background: var(--sw-danger-bg);
  border-color: #fecaca;
  color: #991b1b;
}

@media (min-width: 641px) {
  .sw-app-shell {
    display: grid;
    grid-template-columns: var(--sw-sidebar-width) minmax(0, 1fr);
  }

  .sw-sidebar {
    width: var(--sw-sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .sw-topbar {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

@media (min-width: 768px) {
  .sw-page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .table-responsive {
    overflow-x: visible;
  }
}

@media (max-width: 640.98px) {
  .sw-sidebar {
    position: relative;
  }

  .sw-content {
    padding-top: 1rem;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .inventory-table th:nth-child(1),
  .inventory-table td:nth-child(1),
  .inventory-table th:nth-child(4),
  .inventory-table td:nth-child(4),
  .inventory-table th:nth-child(5),
  .inventory-table td:nth-child(5),
  .inventory-table th:nth-child(7),
  .inventory-table td:nth-child(7) {
    display: none;
  }

  .inventory-table th:last-child,
  .inventory-table td:last-child {
    width: 7.9rem;
  }

  .inventory-actions {
    gap: 0.35rem;
  }

  .btn-row-action {
    min-width: 3.7rem;
    min-height: 2.2rem;
    padding: 0.36rem 0.5rem;
  }

  .receipts-table th:nth-child(5),
  .receipts-table td:nth-child(5),
  .receipts-table th:nth-child(6),
  .receipts-table td:nth-child(6) {
    display: none;
  }

  .receipts-table td:last-child .btn {
    min-height: 2.2rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .ledger-grouped-table th:nth-child(6),
  .ledger-grouped-table td:nth-child(6),
  .ledger-grouped-table th:nth-child(7),
  .ledger-grouped-table td:nth-child(7) {
    display: none;
  }

  .ledger-detailed-table th:nth-child(8),
  .ledger-detailed-table td:nth-child(8),
  .ledger-detailed-table th:nth-child(9),
  .ledger-detailed-table td:nth-child(9) {
    display: none;
  }

  .ledger-expanded-detail-table th:nth-child(6),
  .ledger-expanded-detail-table td:nth-child(6),
  .ledger-expanded-detail-table th:nth-child(7),
  .ledger-expanded-detail-table td:nth-child(7) {
    display: none;
  }

  .daily-alert-table th:nth-child(5),
  .daily-alert-table td:nth-child(5) {
    display: none;
  }

  .daily-activity-detail-table th:nth-child(6),
  .daily-activity-detail-table td:nth-child(6) {
    display: none;
  }

  .recommendations-table th:nth-child(1),
  .recommendations-table td:nth-child(1),
  .recommendations-table th:nth-child(7),
  .recommendations-table td:nth-child(7) {
    display: none;
  }

  .sales-preview-table th:nth-child(2),
  .sales-preview-table td:nth-child(2),
  .sales-preview-table th:nth-child(5),
  .sales-preview-table td:nth-child(5) {
    display: none;
  }

  .receipt-upload-form {
    padding: 0.9rem;
  }

  .receipt-upload-picker-card {
    padding: 0.85rem;
  }

  .receipt-upload-file-input {
    min-height: 3rem;
  }

  .receipt-upload-submit-btn {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
  }

  .ocr-suggestions-desktop {
    display: none;
  }

  .ocr-suggestions-mobile {
    display: block;
  }

  .ocr-suggestion-card {
    padding: 0.85rem;
  }

  .ocr-suggestion-actions {
    flex-wrap: wrap;
  }

  .ocr-suggestion-actions .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.6rem;
  }

  .receipt-add-suggestions-btn {
    width: 100%;
    min-height: 2.8rem;
  }

  .receipt-confirm-btn {
    width: 100%;
    min-height: 2.9rem;
    font-size: 1rem;
  }

  .receipt-line-items-table th:nth-child(4),
  .receipt-line-items-table td:nth-child(4),
  .receipt-line-items-table th:nth-child(5),
  .receipt-line-items-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .receipt-details-page .ocr-suggestions-desktop {
    display: none;
  }

  .receipt-details-page .ocr-suggestions-mobile {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .mapping-candidate {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .mapping-candidate-action .btn {
    width: 100%;
  }
}

@media (max-width: 640.98px) {
  .mapping-view-tabs,
  .mapping-view-tab {
    width: 100%;
  }

  .mapping-view-tab {
    justify-content: space-between;
    text-align: left;
  }

  .mapping-table th:nth-child(3),
  .mapping-table td:nth-child(3),
  .mapping-table th:nth-child(4),
  .mapping-table td:nth-child(4) {
    display: none;
  }

  .mapping-row-actions {
    white-space: normal;
  }

  .mapping-row-actions .btn {
    display: block;
    width: 100%;
  }

  .mapping-row-actions .btn + .btn {
    margin-top: 0.35rem;
    margin-left: 0;
  }
}
