* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f6f7f9; color: #1d1f23; font-size: 13px; }

a.link { color: #2c5fa3; text-decoration: none; margin-left: 16px; }
a.link:hover { text-decoration: underline; }

.flash { background: #ffe9a8; padding: 8px 16px; border-bottom: 1px solid #e0c870; }

/* Login */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.08); width: 360px; display: flex; flex-direction: column; gap: 12px; }
.login-card h1 { margin: 0 0 8px; font-size: 20px; }
.login-card input { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.login-card button { padding: 10px; background: #2c5fa3; color: #fff; border: 0; border-radius: 6px; font-size: 14px; cursor: pointer; }
.login-card button:hover { background: #234a82; }
.login-card .hint { color: #6b7280; font-size: 12px; margin: 0; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e5e7eb; gap: 16px; }
.topbar .page-title { margin: 0; font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; }
.month-picker select { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 13px; }

/* Layout 2-col */
.layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
.col { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); padding: 0 0 12px; overflow: hidden; }

.section-header { background: #fff3cd; color: #1d1f23; font-weight: 700; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; text-align: center; letter-spacing: .04em; font-size: 13px; }
.section-header.sub { background: #fde9a3; margin-top: 8px; border-top: 1px solid #e5e7eb; }
.section-total { font-variant-numeric: tabular-nums; color: #166534; font-weight: 800; margin-left: 4px; }
.section-matched { font-variant-numeric: tabular-nums; color: #1e40af; font-weight: 700; }

/* Tables */
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { padding: 4px 6px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
table.grid th { background: #f3f4f6; font-weight: 600; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
table.grid tbody tr:hover { background: #fafbfc; }

.col-fecha { width: 78px; }
.col-monto { width: 110px; text-align: right; }
.col-pct { width: 78px; }
.col-acuerdo { width: 90px; }
.col-meses { width: 60px; text-align: center; }
.col-date { width: 90px; text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; }
.col-actions { width: 80px; text-align: right; white-space: nowrap; }

.sino-select { font-size: 12px; padding: 3px 4px; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; }
.sino-si { background: #dcfce7; }
.sino-no { background: #fee2e2; }
.sino-blank { background: #fff; }

.tag-cancelado { display: inline-block; padding: 2px 6px; background: #fee2e2; color: #991b1b; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-dispute { display: inline-block; padding: 2px 6px; background: #fef3c7; color: #854d0e; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-pausado { display: inline-block; padding: 2px 6px; background: #fef08a; color: #713f12; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-devolucion { display: inline-block; padding: 2px 6px; background: #ddd6fe; color: #5b21b6; border-radius: 4px; font-size: 11px; font-weight: 600; }
.row-cancelado { background: #fff5f5; }
.row-cancelado:hover { background: #ffe9e9; }
.row-activo { background: #f0fdf4; }
.row-activo:hover { background: #e3fae9; }
.row-pausado { background: #fefce8; }
.row-pausado:hover { background: #fef9c3; }
.row-dispute { background: #fef9c3; }
.row-dispute:hover { background: #fde68a; }
.row-devolucion { background: #f5f3ff; }
.row-devolucion:hover { background: #ede9fe; }

/* Empty cells (incomplete data) */
.cell-input.is-empty { background: #fef9c3 !important; }
.cell-input.is-empty:focus { background: #fff !important; }

/* Expense rows: red if no fecha, green if fecha */
.row-no-fecha { background: #fef2f2; }
.row-no-fecha:hover { background: #fde8e8; }
.row-with-fecha { background: #f0fdf4; }
.row-with-fecha:hover { background: #e3fae9; }

/* Close month button */
.btn-action { padding: 6px 12px; border: 0; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; }
.btn-close { background: #1e40af; color: #fff; }
.btn-close:hover { background: #1e3a8a; }
.btn-switch { background: #7c3aed; color: #fff; text-decoration: none; display: inline-block; }
.btn-switch:hover { background: #6d28d9; color: #fff; }
.btn-stripe { background: #635bff; color: #fff; }
.btn-stripe:hover { background: #4f46e5; }
.btn-chart { background: #0891b2; color: #fff; }
.btn-chart:hover { background: #0e7490; }
.chart-wrap { position: relative; width: 100%; height: 360px; }
.ltv-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ltv-edit-grid label { display: flex; flex-direction: column; font-size: 11px; color: #6b7280; gap: 4px; }

/* Comisiones */
.comisiones-wrap { padding: 16px; max-width: 1200px; margin: 0 auto; }
.comisiones-table-wrap { padding: 16px; overflow-x: auto; }
.sales-grid { width: max-content; min-width: 100%; font-size: 11px; }
.sales-grid th, .sales-grid td { padding: 4px 8px; white-space: nowrap; }
.sales-grid .pct-row th { background: #f3f4f6; color: #6b7280; font-size: 10px; }
.sales-grid .pct-cell { background: #c7d2fe; color: #312e81; font-weight: 700; text-align: center; padding: 2px 4px; }
.sales-grid .role-col { background: #eef2ff !important; }
.sales-grid .role-col.role-name { background: #c7d2fe !important; color: #312e81; }
.sales-grid tbody td.role-col { background: #eef2ff !important; color: #1e3a8a; font-weight: 600; }
.sales-grid .totals-row-foot td.role-col { background: #c7d2fe !important; color: #1e1b4b; font-weight: 800; }
.sales-grid tbody td { background: #fff; }
.sales-grid tbody tr.row-excluded td { color: #9ca3af; text-decoration: line-through; }
.sales-grid tbody tr.row-excluded td.role-col { color: #9ca3af; }

/* Edit pencil + Cliente # column */
.sales-grid .btn-edit { background: transparent; border: 0; cursor: pointer; font-size: 14px; padding: 2px 4px; opacity: 0.6; }
.sales-grid .btn-edit:hover { opacity: 1; }
.sales-grid .cliente-num { text-align: center; }
.sales-grid .numero-chip { display: inline-block; background: #e0e7ff; color: #3730a3; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }

/* Match modal (Comisiones) — scoped to #match-modal so no clashes with Billing's .modal-backdrop */
#match-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
#match-modal .modal-card { background: #fff; border-radius: 10px; width: 540px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
#match-modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; }
#match-modal .modal-header h3 { margin: 0; font-size: 16px; }
#match-modal .modal-close { background: transparent; border: 0; font-size: 22px; cursor: pointer; color: #6b7280; line-height: 1; }
#match-modal .modal-body { padding: 14px 18px; overflow-y: auto; flex: 1; }
#match-modal .modal-footer { padding: 10px 18px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 8px; }
.btn-modal-secondary { background: #f3f4f6; border: 1px solid #d1d5db; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-modal-secondary:hover { background: #e5e7eb; }
.current-match { background: #ecfdf5; color: #065f46; padding: 6px 10px; border-radius: 6px; font-size: 12px; margin-bottom: 10px; }
.current-match.unmatched { background: #fef2f2; color: #991b1b; }
.search-row { position: relative; margin-bottom: 10px; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
#match-search { width: 100%; padding: 8px 10px 8px 32px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
#match-search:focus { outline: none; border-color: #6366f1; }
.match-results { max-height: 320px; overflow-y: auto; }
.match-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 4px; cursor: pointer; font-size: 13px; }
.match-result:hover { background: #f9fafb; border-color: #6366f1; }
.match-result.same-month { background: #fefce8; border-color: #fde047; }
.match-result.same-month:hover { background: #fef9c3; }
.result-numero { background: #e0e7ff; color: #3730a3; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 700; min-width: 40px; text-align: center; }
.result-name { flex: 1; }
.result-mes { color: #9ca3af; font-size: 11px; }
.hint { color: #9ca3af; padding: 12px; text-align: center; font-size: 13px; }
.sales-grid .totals-row-foot td { background: #fef9c3; font-weight: 700; border-top: 2px solid #facc15; }
.sales-grid .empty { text-align: center; color: #9ca3af; padding: 24px; background: #fff; }
.pct-input { width: 70px; padding: 3px 5px; border: 1px solid transparent; background: transparent; text-align: center; font-weight: 700; color: inherit; font-size: 11px; }
.pct-input:focus { background: #fff; border-color: #6366f1; outline: none; }
.btn-add-col { background: #6366f1; color: #fff; border: 0; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-weight: 700; line-height: 1; }
.btn-add-col:hover { background: #4f46e5; }
.btn-del-role { background: transparent; color: #b91c1c; border: 0; cursor: pointer; padding: 0 2px; font-size: 12px; vertical-align: middle; }
.btn-del-role:hover { color: #7f1d1d; }
.sale-form { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.sale-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 560px; }
.sale-grid label { display: flex; flex-direction: column; font-size: 12px; color: #6b7280; gap: 4px; font-weight: 600; }
.sale-grid input, .sale-grid select, .sale-grid textarea { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; }
.sale-grid-full { grid-column: 1 / -1; }
.sales-table { background: #fff; }
.sales-table .empty { text-align: center; color: #9ca3af; padding: 24px; }
.check-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.admin-wrap { max-width: 720px; margin: 24px auto; background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.admin-wrap h1, .admin-wrap h2 { margin: 0 0 12px; font-size: 18px; }
.admin-form { display: flex; gap: 8px; margin-top: 8px; }
.admin-form input { flex: 1; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.admin-form button { padding: 8px 16px; background: #2c5fa3; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
.admin-form button:hover { background: #234a82; }
.btn-finalize { background: #16a34a; color: #fff; }
.btn-finalize:hover { background: #15803d; }
.btn-restore { background: #f59e0b; color: #fff; }
.btn-restore:hover { background: #d97706; }
.btn-mini { background: #1e40af; color: #fff; border: 0; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; margin-left: 8px; }
.btn-mini:hover { background: #1e3a8a; }
.btn-banco { background: #ca8a04; }
.btn-banco:hover { background: #a16207; }
#banco-box { background: #fefce8; border-radius: 6px; padding: 6px 8px; margin-top: 4px; }
.banco-row { padding: 3px 0 !important; font-size: 12px; }
.btn-unlock { background: #b45309; color: #fff; }
.btn-unlock:hover { background: #92400e; }
.lock-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; background: #fee2e2; color: #991b1b; border-radius: 12px; font-size: 11px; font-weight: 600; }

/* LTV big number summary */
.ltv-summary { margin: 16px; padding: 24px; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 1px solid #bae6fd; border-radius: 8px; cursor: pointer; transition: all .15s; text-align: center; }
.ltv-summary:hover { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.ltv-num { font-size: 48px; font-weight: 700; color: #0369a1; line-height: 1; }
.ltv-label { font-size: 14px; color: #0c4a6e; margin-top: 4px; font-weight: 600; }
.ltv-hint { font-size: 11px; color: #6b7280; margin-top: 8px; }
.ltv-detail { margin: 0 16px 16px; max-height: 400px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 8px; }

.cell-input { width: 100%; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 4px; font-size: 13px; font-family: inherit; }
.cell-input:focus { outline: none; border-color: #2c5fa3; background: #fff; box-shadow: 0 0 0 2px rgba(44,95,163,.15); }
.cell-input.num, .cell-input.money-input { text-align: right; font-variant-numeric: tabular-nums; }
.cell-input[readonly] { color: #6b7280; cursor: default; }

.estado-select { font-size: 12px; padding: 3px 4px; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; }
.estado-activo { background: #dcfce7; }
.estado-cancelo { background: #fee2e2; }
.estado-dispute { background: #fef3c7; }
.cell-input.estado-pago_fallido,
.cell-input.estado-pago_fallido:disabled {
  background: #dc2626 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700;
  border-color: #b91c1c !important;
}
.estado-pausado { background: #fef08a; }
.estado-devolucion { background: #ddd6fe; }
.estado-sin_estado { background: #f3f4f6; }
.estado- { background: #f3f4f6; }

.tipo-select { font-size: 11px; padding: 2px 4px; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; width: auto; }

.tag-semanal { display: inline-block; padding: 2px 6px; background: #fde047; border-radius: 4px; font-size: 11px; font-weight: 600; }
.num-tag { display: inline-block; padding: 1px 6px; background: #e0e7ff; color: #1e40af; border-radius: 10px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 6px; vertical-align: middle; letter-spacing: 0.02em; }
.col-cliente { white-space: nowrap; }
.col-cliente .cell-input { display: inline-block; width: calc(100% - 50px); }
.col-cliente .cell-input:only-child { width: 100%; }

.btn-add { background: transparent; color: #2c5fa3; border: 1px dashed #b3c7e0; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; width: 100%; }
.btn-add:hover { background: #eef4fc; }

.btn-del { background: transparent; color: #b91c1c; border: 0; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; }
.btn-del:hover { background: #fee2e2; border-radius: 4px; }

.btn-edit { background: transparent; color: #6b7280; border: 0; cursor: pointer; font-size: 14px; line-height: 1; padding: 4px 8px; border-radius: 4px; }
.btn-edit:hover { background: #e0e7ff; color: #1e40af; }
tr.editing .btn-edit { background: #1e40af; color: #fff; }

.incomplete-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  margin-right: 4px;
  cursor: help;
  vertical-align: middle;
}
.incomplete-flag[hidden] { display: none; }

/* Lock state: cells appear as plain text when not editing */
.cell-input:disabled {
  color: inherit; opacity: 1; cursor: default;
  border-color: transparent !important; background: transparent !important;
  box-shadow: none !important; -webkit-text-fill-color: inherit;
}
.cell-input:disabled.is-empty { background: transparent !important; }
tr.editing .cell-input:not(:disabled) { border-color: #d1d5db; background: #fff; }

/* Detail panel */
.row-client-detail td { padding: 0; }
.detail-panel { display: flex; gap: 12px; padding: 12px 16px; background: #f9fafb; border-top: 1px solid #e5e7eb; align-items: flex-end; flex-wrap: wrap; }
.detail-panel label { display: flex; flex-direction: column; font-size: 11px; color: #6b7280; gap: 4px; flex: 0 1 auto; }
.detail-input { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; min-width: 130px; }
.detail-input.sino-select { min-width: 90px; }
.merge-label { min-width: 280px; }
.merge-select { background: #eef2ff !important; border-color: #c7d2fe !important; color: #1e40af; font-weight: 500; }

.merge-combo { position: relative; }
.merge-search { background: #eef2ff !important; border-color: #c7d2fe !important; color: #1e40af; }
.merge-search:focus { background: #fff !important; }
.merge-list {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 2px;
  max-height: 280px; overflow-y: auto;
  background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 50;
  font-size: 13px;
}
.merge-option { padding: 8px 12px; cursor: pointer; line-height: 1.3; }
.merge-option:hover { background: #eef2ff; color: #1e40af; }
.merge-option.special { background: #f0fdf4; font-weight: 600; }
.merge-option.special:hover { background: #dcfce7; }
.merge-option .muted { color: #6b7280; font-weight: normal; }
.merge-divider { height: 1px; background: #e5e7eb; margin: 4px 0; }
.btn-del-detail { padding: 8px 14px; background: #b91c1c; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 12px; margin-left: auto; }
.btn-del-detail:hover { background: #991b1b; }
.btn-del-detail:disabled { opacity: 0.5; cursor: not-allowed; }

.add-row td { padding: 8px 12px; }

/* Totals */
.totals-row { display: flex; gap: 24px; padding: 12px 16px; border-top: 2px solid #1d1f23; background: #d1fae5; flex-wrap: wrap; }
.totals-row .big { font-size: 14px; font-weight: 700; }

.estado-counts { display: flex; gap: 8px; padding: 10px 16px; flex-wrap: wrap; }
.estado-counts .badge { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.estado-counts .badge .amt { font-weight: 500; opacity: 0.85; font-variant-numeric: tabular-nums; }
.totals-row { margin-top: 0; border-top: 0; }
.estado-counts .badge.activo { background: #dcfce7; color: #166534; }
.estado-counts .badge.cancelo { background: #fee2e2; color: #991b1b; }
.estado-counts .badge.dispute { background: #fef3c7; color: #854d0e; }
.estado-counts .badge.pago_fallido { background: #fde2e7; color: #9d174d; }
.estado-counts .badge.pausado { background: #fef08a; color: #713f12; }
.estado-counts .badge.devolucion { background: #ddd6fe; color: #5b21b6; }
.estado-counts .badge.sin_estado { background: #f3f4f6; color: #374151; }

.totals-box { margin: 16px; padding: 12px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.totals-box .row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.totals-box .row.strong { border-top: 1px solid #d1d5db; padding-top: 8px; font-weight: 600; }
.totals-box .row.highlight { background: #d1fae5; padding: 8px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.totals-box .row b { font-variant-numeric: tabular-nums; }
.totals-box .money-input { width: 110px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px; text-align: right; font-variant-numeric: tabular-nums; background: #fff; }

/* LTV box */
.ltv-box { margin: 16px; max-height: 400px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 8px; }
.ltv-grid th { position: sticky; top: 0; z-index: 1; }
.ltv-grid td { padding: 6px 10px; }
.ltv-name { font-weight: 600; }
.ltv-sub { font-size: 11px; color: #6b7280; }
.ltv-grid .empty { text-align: center; color: #9ca3af; padding: 20px; }

/* Inactive section header */
.inactive-header { background: #fee2e2 !important; color: #991b1b !important; }
.muted-total { color: #6b7280; font-weight: 500; }

/* Stripe row in totals box */
.stripe-row { background: #ede9fe; padding: 6px 8px; border-radius: 4px; font-size: 12px; }
.stripe-row b { color: #4c1d95; }
.stripe-row.total { font-size: 13px; font-weight: 700; padding: 8px; }
.stripe-batch { display: grid; grid-template-columns: auto 8px auto 8px 1fr auto; gap: 6px; align-items: center; }
.stripe-batch .lbl { font-weight: 700; color: #4c1d95; }
.stripe-batch .date { font-variant-numeric: tabular-nums; }
.stripe-batch .sep { color: #a78bfa; font-weight: 600; }
.stripe-batch b { text-align: right; }
.btn-batch-del { background: transparent; color: #6b7280; padding: 0 6px; font-size: 14px; }
.btn-batch-del:hover { background: #fee2e2; color: #991b1b; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: #fff; border-radius: 8px; box-shadow: 0 24px 48px rgba(0,0,0,0.3); width: 100%; max-width: 1200px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #e5e7eb; }
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-close { background: transparent; border: 0; font-size: 24px; cursor: pointer; color: #6b7280; line-height: 1; padding: 0 8px; }
.modal-close:hover { color: #111827; }
.modal-body { padding: 16px 20px; }
.modal-actions { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-end; }
.payout-date-label { display: flex; flex-direction: column; font-size: 11px; color: #6b7280; gap: 4px; }
.payout-date { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; }

/* Stripe table */
.stripe-grid th { background: #f9fafb; }
.stripe-grid .col-match { width: 280px; }
.stripe-grid .row-matched { background: #dcfce7; }
.stripe-grid .row-matched:hover { background: #bbf7d0; }
.matched-tag { display: inline-block; padding: 3px 10px; background: #16a34a; color: #fff; border-radius: 12px; font-size: 11px; font-weight: 600; margin-right: 6px; }
.matched-tag.tag-ignored { background: #6b7280; }
.stripe-grid .row-ignored { background: #f3f4f6; }
.stripe-grid .row-ignored:hover { background: #e5e7eb; }
.btn-unmatch { background: transparent; border: 1px solid #d1d5db; cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.btn-unmatch:hover { background: #fee2e2; border-color: #fca5a5; }
.stripe-grid .empty { text-align: center; color: #9ca3af; padding: 32px; }
.stripe-combo { min-width: 240px; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
}
