/* ═══════════════════════════════════════════════════════════
   Receipt Manager — Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Receipt Manager Header ── */
.rm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rm-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}
.rm-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Tab Navigation ── */
.rm-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
  overflow-x: auto;
}
.rm-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font);
}
.rm-tab:hover {
  color: var(--dark);
  background: var(--gray-50);
}
.rm-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.rm-panel {
  display: none;
}
.rm-panel.active {
  display: block;
}

/* ── Filters Bar ── */
.rm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.rm-filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
}
.rm-filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rm-filter-group input,
.rm-filter-group select {
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font);
  background: #fff;
  color: var(--dark);
}
.rm-filter-group input:focus,
.rm-filter-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.rm-search-input {
  flex: 1;
  min-width: 200px;
}

/* ── Receipt Table ── */
.rm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
}
.rm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.835rem;
}
.rm-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.rm-table thead th:hover {
  color: var(--dark);
}
.rm-table thead th .sort-arrow {
  margin-left: 4px;
  font-size: 0.7rem;
  opacity: 0.4;
}
.rm-table thead th .sort-arrow.active {
  opacity: 1;
  color: var(--blue);
}
.rm-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.rm-table tbody tr:hover {
  background: rgba(37,99,235,.03);
}
.rm-table tbody tr.selected {
  background: rgba(37,99,235,.06);
}
.rm-table .cb-cell {
  width: 36px;
  text-align: center;
}
.rm-table .cb-cell input[type="checkbox"] {
  accent-color: var(--blue);
  cursor: pointer;
}
.rm-table .amount-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* ── Status Badges ── */
.rm-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.rm-status.submitted { background: #DBEAFE; color: #1E40AF; }
.rm-status.approved  { background: #D1FAE5; color: #065F46; }
.rm-status.rejected  { background: #FEE2E2; color: #991B1B; }
.rm-status.flagged   { background: #FEF3C7; color: #92400E; }
.rm-status.pending   { background: #E0E7FF; color: #3730A3; }
.rm-status.matched   { background: #D1FAE5; color: #065F46; }
.rm-status.unmatched { background: #FEE2E2; color: #991B1B; }
.rm-status.partial   { background: #FEF3C7; color: #92400E; }
.rm-status.ignored   { background: var(--gray-100); color: var(--gray-500); }

/* ── Bulk Actions Bar ── */
.rm-bulk-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.rm-bulk-bar.visible {
  display: flex;
}
.rm-bulk-bar .bulk-count {
  margin-right: auto;
}
.rm-bulk-btn {
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
}
.rm-bulk-btn:hover {
  background: rgba(255,255,255,.25);
}

/* ── Pagination ── */
.rm-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.rm-page-btns {
  display: flex;
  gap: 4px;
}
.rm-page-btn {
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font);
}
.rm-page-btn:hover { background: var(--gray-50); }
.rm-page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.rm-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Reconciliation Upload Zone ── */
.rm-upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-50);
  margin-bottom: 1.25rem;
}
.rm-upload-zone:hover,
.rm-upload-zone.drag-over {
  border-color: var(--blue);
  background: rgba(37,99,235,.04);
}
.rm-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  opacity: 0.5;
}
.rm-upload-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--dark);
}
.rm-upload-hint {
  font-size: 0.82rem;
  color: var(--gray-400);
}
.rm-upload-config {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 1rem;
}

/* ── Reconciliation Summary Cards ── */
.rm-recon-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 1.25rem;
}
.rm-summary-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: #fff;
  text-align: center;
}
.rm-summary-card .sc-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}
.rm-summary-card .sc-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.rm-summary-card.matched .sc-value { color: var(--green); }
.rm-summary-card.unmatched .sc-value { color: var(--red); }
.rm-summary-card.total .sc-value { color: var(--blue); }

/* ── Unmatched Charge Cards ── */
.rm-charge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: #fff;
  transition: border-color 0.15s;
}
.rm-charge-card:hover {
  border-color: var(--gray-300);
}
.rm-charge-card .charge-info {
  flex: 1;
  min-width: 0;
}
.rm-charge-card .charge-vendor {
  font-weight: 700;
  font-size: 0.9rem;
}
.rm-charge-card .charge-meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.rm-charge-card .charge-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.rm-charge-card .charge-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Request Cards ── */
.rm-request-card {
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #fff;
}
.rm-request-card.overdue {
  border-left-color: var(--red);
}
.rm-request-card.submitted {
  border-left-color: var(--green);
}
.rm-request-card .req-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.rm-request-card .req-employee {
  font-weight: 700;
  font-size: 0.95rem;
}
.rm-request-card .req-details {
  font-size: 0.82rem;
  color: var(--gray-500);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.rm-request-card .req-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ── Reconciliation Progress ── */
.rm-recon-progress {
  padding: 30px;
  text-align: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 1rem;
}
.rm-recon-progress h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.rm-recon-progress p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.rm-progress-bar-track {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}
.rm-progress-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── Stats Panel ── */
.rm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
.rm-stat-card {
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
}
.rm-stat-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.rm-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Notification Bell ── */
.notif-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: inherit;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.notif-badge:empty,
.notif-badge.hidden {
  display: none;
}
.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: none;
}
.notif-dropdown.open {
  display: block;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.1s;
}
.notif-item:hover {
  background: var(--gray-50);
}
.notif-item.unread {
  background: rgba(37,99,235,.04);
  border-left: 3px solid var(--blue);
}
.notif-item .notif-title {
  font-weight: 700;
  margin-bottom: 2px;
}
.notif-item .notif-body {
  color: var(--gray-500);
  font-size: 0.78rem;
}
.notif-item .notif-time {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ── Settings / Permissions Modal Content ── */
.rm-perm-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 16px 0;
}
.rm-perm-grid th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}
.rm-perm-grid td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
}
.rm-perm-grid .perm-toggle {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.rm-perm-grid .perm-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Matched Charges (collapsible) ── */
.rm-matched-section {
  margin-top: 1.25rem;
}
.rm-matched-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-600);
  font-family: var(--font);
}
.rm-matched-toggle:hover { color: var(--dark); }
.rm-matched-list {
  display: none;
}
.rm-matched-list.open {
  display: block;
}
.rm-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--gray-100);
}
.rm-match-row .match-conf {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  min-width: 40px;
}

/* ── Shared Buttons (reuse existing btn patterns) ── */
.rm-btn-primary {
  padding: 8px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
}
.rm-btn-primary:hover { background: var(--blue-hover); }
.rm-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.rm-btn-secondary {
  padding: 8px 20px;
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.rm-btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }

.rm-btn-sm {
  padding: 5px 12px;
  font-size: 0.78rem;
}

.rm-btn-danger {
  padding: 5px 12px;
  background: none;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.rm-btn-danger:hover { background: rgba(220,38,38,.06); }

/* ── Class Badges (Accounting Class / Job Code) ── */
.rm-class-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.rm-class-badge.job        { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.rm-class-badge.overhead   { background: #E0E7FF; color: #3730A3; border-color: #C7D2FE; }
.rm-class-badge.equipment  { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.rm-class-badge.vehicle    { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.rm-class-badge.office     { background: #F3E8FF; color: #6B21A8; border-color: #E9D5FF; }

/* ── Memo / Notes Row (expandable inline) ── */
.rm-memo-row td {
  padding: 0 14px 12px 50px !important;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.rm-memo-row.hidden { display: none; }
.rm-memo-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rm-memo-content .memo-icon {
  flex-shrink: 0;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-top: 2px;
}
.rm-memo-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
  min-height: 28px;
}
.rm-memo-text:empty::before {
  content: 'No memo — click to add';
  color: var(--gray-400);
  font-style: italic;
}
.rm-memo-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font);
  resize: vertical;
  min-height: 56px;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.rm-memo-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  justify-content: flex-end;
}
.rm-memo-toggle {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font);
}
.rm-memo-toggle:hover { color: var(--blue); background: rgba(37,99,235,.06); }
.rm-memo-toggle.has-memo { color: var(--blue); }

/* ── Bank Details Panel ── */
.rm-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}
.rm-bank-card {
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.rm-bank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.rm-bank-card.visa::before    { background: linear-gradient(90deg, #1A1F71, #4B92DB); }
.rm-bank-card.mastercard::before { background: linear-gradient(90deg, #EB001B, #F79E1B); }
.rm-bank-card.amex::before    { background: linear-gradient(90deg, #006FCF, #00A1E4); }
.rm-bank-card.default::before { background: var(--gray-300); }
.rm-bank-card .bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rm-bank-card .bank-card-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.rm-bank-card .bank-card-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--gray-500);
  letter-spacing: 1px;
}
.rm-bank-card .bank-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rm-bank-card .bank-stat {
  text-align: center;
  padding: 8px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}
.rm-bank-card .bank-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
}
.rm-bank-card .bank-stat-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}
.rm-bank-card .bank-card-assigned {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--gray-500);
}
.rm-bank-card .bank-card-assigned strong {
  color: var(--dark);
}

/* ── Section Dividers ── */
.rm-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-200);
}

/* ── Empty State ── */
.rm-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
  font-size: 0.9rem;
}
.rm-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  opacity: 0.4;
}

/* ── Dark Mode Overrides ── */
/* Job Soup uses .light on <html> for light mode; default is dark */
html:not(.light) .rm-table-wrap,
html:not(.light) .rm-charge-card,
html:not(.light) .rm-request-card,
html:not(.light) .rm-summary-card,
html:not(.light) .rm-stat-card,
html:not(.light) .rm-recon-progress,
html:not(.light) .notif-dropdown,
html:not(.light) .rm-filters {
  background: #1c1c1c;
  border-color: rgba(46,46,46,.6);
}
html:not(.light) .rm-table thead th {
  background: #141414;
  border-color: rgba(46,46,46,.6);
  color: #999;
}
html:not(.light) .rm-table tbody td {
  border-color: rgba(46,46,46,.4);
}
html:not(.light) .rm-table tbody tr:hover {
  background: rgba(20,184,166,.04);
}
html:not(.light) .rm-filter-group input,
html:not(.light) .rm-filter-group select {
  background: rgba(36,36,36,.5);
  border-color: rgba(46,46,46,.6);
  color: #e8e8e8;
}
html:not(.light) .rm-filter-group input:focus,
html:not(.light) .rm-filter-group select:focus {
  border-color: var(--blue);
}
html:not(.light) .rm-upload-zone {
  background: rgba(36,36,36,.3);
  border-color: rgba(46,46,46,.6);
}
html:not(.light) .rm-upload-zone:hover,
html:not(.light) .rm-upload-zone.drag-over {
  border-color: var(--blue);
  background: rgba(37,99,235,.06);
}
html:not(.light) .rm-tab {
  color: #999;
  border-bottom-color: transparent;
}
html:not(.light) .rm-tab:hover {
  color: #e8e8e8;
  background: rgba(255,255,255,.03);
}
html:not(.light) .rm-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
html:not(.light) .rm-tabs {
  border-bottom-color: rgba(46,46,46,.6);
}
html:not(.light) .notif-item:hover {
  background: rgba(255,255,255,.04);
}
html:not(.light) .notif-item.unread {
  background: rgba(37,99,235,.08);
}
html:not(.light) .rm-btn-secondary {
  background: #1c1c1c;
  color: #e8e8e8;
  border-color: rgba(46,46,46,.6);
}
html:not(.light) .rm-btn-secondary:hover {
  background: rgba(255,255,255,.06);
}
html:not(.light) .rm-match-row {
  border-color: rgba(46,46,46,.4);
}
html:not(.light) .rm-section-title {
  border-color: rgba(46,46,46,.6);
}
html:not(.light) .rm-memo-row td {
  background: #141414;
  border-color: rgba(46,46,46,.4);
}
html:not(.light) .rm-memo-text {
  color: #ccc;
}
html:not(.light) .rm-memo-text:empty::before {
  color: #666;
}
html:not(.light) .rm-memo-input {
  background: rgba(36,36,36,.5);
  color: #e8e8e8;
  border-color: var(--blue);
}
html:not(.light) .rm-bank-card {
  background: #1c1c1c;
  border-color: rgba(46,46,46,.6);
}
html:not(.light) .rm-bank-card .bank-stat {
  background: #141414;
}
html:not(.light) .rm-bank-card .bank-stat-value {
  color: #e8e8e8;
}
html:not(.light) .rm-class-badge {
  background: rgba(46,46,46,.5);
  color: #ccc;
  border-color: rgba(58,58,58,.6);
}
html:not(.light) .rm-class-badge.job { background: rgba(30,64,175,.2); color: #93c5fd; border-color: rgba(59,130,246,.3); }
html:not(.light) .rm-class-badge.overhead { background: rgba(55,48,163,.2); color: #a5b4fc; border-color: rgba(99,102,241,.3); }
html:not(.light) .rm-class-badge.equipment { background: rgba(146,64,14,.2); color: #fcd34d; border-color: rgba(245,158,11,.3); }
html:not(.light) .rm-class-badge.vehicle { background: rgba(6,95,70,.2); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
html:not(.light) .rm-class-badge.office { background: rgba(107,33,168,.2); color: #d8b4fe; border-color: rgba(168,85,247,.3); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .rm-upload-config { grid-template-columns: 1fr; }
  .rm-charge-card { flex-direction: column; align-items: flex-start; }
  .rm-charge-card .charge-actions { width: 100%; justify-content: flex-end; }
  .rm-recon-summary { grid-template-columns: 1fr 1fr; }
  .rm-filters { flex-direction: column; }
  .rm-filter-group { width: 100%; }
  .notif-dropdown { width: 300px; right: -40px; }
}
