/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1e3a5f;
  --blue:   #2563eb;
  --green:  #059669;
  --green-tint: #f0faf4;
  --red:    #dc2626;
  --bg:     #f1f5f9;
  --card:   #ffffff;
  --border: #e2e8f0;
  --text:   #1e293b;
  --muted:  #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --radius: 6px;
  --font:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 52px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand a {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.2px;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  color: rgba(255,255,255,.75);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
.nav-user a { color: rgba(255,255,255,.65); }
.nav-user a:hover { color: #fff; }

/* ── Flash messages ───────────────────────────────────────────────────────── */
.flash-container { padding: 0 20px; margin-top: 12px; }
.flash {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 13px;
}
.flash-error   { background: #fef2f2; color: var(--red);   border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.flash-warning { background: #fffbeb; color: #92400e;      border: 1px solid #fde68a; }
.flash-info    { background: #eff6ff; color: #1e40af;      border: 1px solid #bfdbfe; }

/* ── Main layout ──────────────────────────────────────────────────────────── */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 { font-size: 20px; font-weight: 600; }

.breadcrumb {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.breadcrumb:hover { color: var(--blue); }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

/* ── Claim header ─────────────────────────────────────────────────────────── */
.claim-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.header-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.header-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-actions { align-self: flex-start; }
.label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
}
.value { font-size: 15px; }
.bold { font-weight: 600; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { margin-top: 28px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-header h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.table-scroll { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f8fafc; }

.table-compact th, .table-compact td { padding: 6px 8px; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.capitalize { text-transform: capitalize; }
.text-small { font-size: 12px; }
.text-muted { color: var(--muted); }

.row-link { cursor: pointer; }
.row-link:hover td { background: #eff6ff !important; }

.actions-col { width: 80px; white-space: nowrap; }

/* ── Summary grid ─────────────────────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.summary-card.highlight {
  border-color: var(--blue);
  background: #eff6ff;
}
.summary-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
}
.summary-value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.summary-card.highlight .summary-value { color: var(--blue); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 3px;
  line-height: 1;
}
.btn-icon:hover { background: #f1f5f9; color: var(--blue); }
.btn-icon-danger:hover { background: #fef2f2; color: var(--red); }
.btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s;
}
.btn-toggle:hover { border-color: #94a3b8; color: var(--text); }
.btn-toggle-on {
  background: #f0fdf4;
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}

/* ── Disbursement percentage indicator ────────────────────────────────────── */
.disburse-pct {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}
.pct-exact { color: var(--green); }
.pct-over  { color: var(--red); }
.pct-under { color: #d97706; }  /* amber */

/* ── Form elements ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }

input[type="text"], input[type="password"], input[type="number"],
input[type="date"], input[type="email"], select, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  width: 100%;
  transition: border-color .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
/* Prevent browser dark-mode autofill from making text invisible */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #1e293b !important;
}
input[list] {
  color: #1e293b;
  background-color: #fff;
}

.input-sm {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
  width: 100%;
  min-width: 50px;
}
.input-num { text-align: right; min-width: 80px; max-width: 110px; }
.input-seq { max-width: 50px; }
.input-notes { min-width: 140px; }
.input-narrow { max-width: 90px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

.select-sm {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
  width: auto;
  max-width: 220px;
}

/* ── Login page ───────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.login-card h1 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.login-card .field label { font-size: 13px; color: var(--text); font-weight: 500; }
.login-card .btn { margin-top: 8px; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state p { margin-bottom: 16px; font-size: 15px; }

/* ── Badge ────────────────────────────────────────────────────────────────── */
.badge {
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ── HTMX loading indicator ───────────────────────────────────────────────── */
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.text-green { color: var(--green); }

/* ── Transaction detail layout ────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}
.detail-main {}
.detail-sidebar {
  position: sticky;
  top: 76px;
}
.detail-sidebar .card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-top: 8px;
}
.sidebar-label:first-child { margin-top: 0; }
.sidebar-value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sidebar-value.highlight { color: var(--blue); }
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

/* ── Transaction type badge ───────────────────────────────────────────────── */
.tx-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: #e2e8f0;
  color: var(--text);
}
.tx-type-escrow          { background: #dbeafe; color: #1d4ed8; }
.tx-type-escrow-endorsed { background: #ede9fe; color: #6d28d9; }
.tx-type-carrier         { background: #d1fae5; color: #065f46; }
.tx-type-draw            { background: #fef3c7; color: #92400e; }
.tx-type-fee-invoice     { background: #fce7f3; color: #9d174d; }
.tx-type-waypoint-expense { background: #fee2e2; color: #991b1b; }
.tx-type-client-expense  { background: #ffedd5; color: #9a3412; }
.tx-type-void            { background: #f1f5f9; color: var(--muted); text-decoration: line-through; }

/* ── Transaction row left-border type colors ──────────────────────────────── */
.tx-type-row { border-left: 3px solid transparent; }
.tx-border-carrier          { border-left-color: #059669; }
.tx-border-escrow           { border-left-color: #2563eb; }
.tx-border-escrow-endorsed  { border-left-color: #6d28d9; }
.tx-border-draw             { border-left-color: #0d9488; }
.tx-border-fee-invoice      { border-left-color: #d97706; }
.tx-border-waypoint-expense { border-left-color: #dc2626; }
.tx-border-client-expense   { border-left-color: #e11d48; }
.tx-border-void             { border-left-color: #94a3b8; }

/* ── Status badges ────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}
.status-planned        { background: #ccfbf1; color: #0f766e; }
.status-warning        { background: #fef3c7; color: #92400e; }
.status-released       { background: #d1fae5; color: #065f46; }
.status-fee-pending    { background: #fed7aa; color: #9a3412; }
.status-client-pending { background: #ede9fe; color: #5b21b6; }
.status-void           { background: #fee2e2; color: #991b1b; font-weight: 700; letter-spacing: .5px; }

/* ── Void row ─────────────────────────────────────────────────────────────── */
.tx-row-void { opacity: .6; }

/* ── Coverage pivot ──────────────────────────────────────────────────────── */
.coverage-pivot-details {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.coverage-pivot-details > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
  padding: 2px 0;
}
.coverage-pivot-table th { white-space: nowrap; vertical-align: bottom; }
.tx-row-void td { text-decoration: line-through; color: var(--muted); }
.tx-row-void .void-stamp,
.tx-row-void .status-badge { text-decoration: none; }
.void-stamp {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #991b1b;
  border: 1.5px solid #991b1b;
  border-radius: 3px;
  vertical-align: middle;
  text-decoration: none;
}

/* ── Summary card variants ────────────────────────────────────────────────── */
.summary-released {
  border-color: #059669;
  background: #f0fdf4;
}
.summary-released .summary-value { color: #059669; }
.summary-escrow {
  border-color: #2563eb;
  background: #eff6ff;
}
.summary-escrow .summary-value { color: #1d4ed8; }
.summary-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.summary-warning { border-color: #dc2626; background: #fef2f2; }
.summary-warning .summary-value { color: #dc2626; }

/* ── Disbursement table ────────────────────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-insured { background: #dbeafe; color: #1d4ed8; }
.badge-vendor  { background: #ede9fe; color: #6d28d9; }

.text-center { text-align: center; }

.totals-row td {
  background: #f8fafc;
  font-size: 12px;
  border-top: 2px solid var(--border);
}

/* ── Escrow notice banner ─────────────────────────────────────────────────── */
.escrow-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 12px;
}

/* ── Linked escrow warning card ───────────────────────────────────────────── */
.escrow-warning-card {
  background: var(--card);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.escrow-warning-card summary {
  cursor: pointer;
  font-size: 13px;
  color: #92400e;
  user-select: none;
}
.escrow-warning-card summary:hover { color: var(--text); }
.escrow-checklist {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.escrow-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}
.check-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.escrow-check-item.covered .check-icon { color: var(--green); }
.escrow-check-item.missing .check-icon { color: var(--red); }
.check-missing-note {
  font-size: 11px;
  color: var(--red);
  margin-left: 4px;
}
.escrow-row-partial td { background: #fffbeb; }
.escrow-row-missing td { background: #fef2f2; }
.text-red { color: var(--red); }

/* ── Fee Invoice status badge ─────────────────────────────────────────────── */
.status-inv-pending  { background: #fef3c7; color: #92400e; }
.status-inv-partial  { background: #fed7aa; color: #9a3412; }
.status-inv-unpaid   { background: #fee2e2; color: #991b1b; }

/* ── Deferred fee banner in splits section ───────────────────────────────── */
.deferred-splits-banner {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ── Claims list — amber tint + unpaid invoice pill ──────────────────────── */
.claim-row-unpaid-inv { background: #fffbeb !important; }
.badge-unpaid-inv {
  display: inline-block;
  font-size: 11px;
  background: #fde68a;
  color: #92400e;
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 600;
  margin-left: 6px;
}
.badge-expense-payee {
  display: inline-block;
  font-size: 11px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 600;
  margin-left: 6px;
}
.badge-expense-reimburse {
  display: inline-block;
  font-size: 11px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 600;
  margin-left: 6px;
}
.badge-expense-wp-reimburse {
  display: inline-block;
  font-size: 11px;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 10px;
  padding: 1px 7px;
  font-weight: 600;
  margin-left: 6px;
}

/* ── Import page ──────────────────────────────────────────────────────────── */
.import-upload-form {
  max-width: 480px;
  margin-top: 20px;
}
.import-upload-form .form-group { margin-bottom: 16px; }
.import-upload-form input[type="file"] {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.import-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 20px;
}

.section-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.form-grid { display: grid; gap: 14px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .form-grid-3 { grid-template-columns: 1fr 1fr; } }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text);
  text-decoration: none;
}
.btn-secondary:hover { background: #f1f5f9; }

.import-table { margin-top: 4px; }
.import-table th, .import-table td { vertical-align: middle; }

.col-check { width: 60px; text-align: center; }
.col-money { width: 130px; }
.col-pct   { width: 90px; }
.col-date  { width: 140px; }

.input-money { width: 110px; text-align: right; }
.input-pct   { width: 75px; text-align: right; }
.input-md    { width: 180px; }
.input-date  { width: 130px; }

.import-hint { font-size: 12px; color: var(--muted); margin-bottom: 8px; margin-top: -6px; }

/* Check block */
.import-check-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.import-check-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 13px;
}
.import-check-summary::-webkit-details-marker { display: none; }
.import-check-summary::before { content: "▶"; font-size: 10px; color: var(--muted); }
details[open] .import-check-summary::before { content: "▼"; }
.import-include-label { display: flex; align-items: center; gap: 4px; }
.import-check-num  { font-weight: 600; }
.import-check-date { color: var(--muted); font-size: 12px; }
.import-check-amt  { margin-left: auto; font-weight: 600; }
.import-warn-badge {
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  padding: 1px 7px;
}

.import-warn-inline {
  padding: 6px 14px;
  font-size: 12px;
  color: #92400e;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}
.import-warn-list { margin-left: 18px; margin-top: 4px; font-size: 13px; }

.import-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.import-check-grid .form-group { margin: 0; }
.import-check-grid label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 3px; }

.import-sub-heading {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px 4px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.import-sub-table {
  margin: 0 14px 12px;
  font-size: 12px;
  width: calc(100% - 28px);
}
.import-sub-table th { font-size: 11px; }

.import-splits-display { opacity: 0.75; }
.import-row-warn { background: #fffbeb; }

.import-submit-bar {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  z-index: 10;
}

/* Type badges for import page */
.badge-fee-invoice   { background: #fef3c7; color: #92400e; }
.badge-escrow        { background: #e0f2fe; color: #0369a1; }
.badge-escrow-endorsed { background: #dbeafe; color: #1d4ed8; }
.badge-draw          { background: #f0fdf4; color: #15803d; }
.badge-carrier       { background: #ede9fe; color: #7c3aed; }

/* Shared numeric column alignment */
.num-col { text-align: right; white-space: nowrap; }

/* Status page notes */
.status-note-input {
  width: 100%;
  min-width: 180px;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.8rem;
  resize: vertical;
  background: #fafafa;
  font-family: inherit;
  color: #374151;
}
.status-note-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
}

/* ===== Payroll Runs ===== */
.row-in-run  { background: #f0fdf4; }
.row-other-run { background: #fffbeb; }

/* ===== Vendor Activity ===== */
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-success  { background: #d1fae5; color: #065f46; }
.row-warning td { background: #fffbeb; }
.row-highlight td { background: #f0f9ff; }
.text-link { color: var(--primary); text-decoration: underline; }
.text-link:hover { color: var(--primary-dark, #1d4ed8); }
