*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; background: #FAFAF7; color: #1A1A1A; min-height: 100vh; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FAFAF7; }
::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 3px; }
.app-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 100; background: #FAFAF7; border-bottom: 1px solid #E5E7EB; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px 24px; }
.logo { font-family: 'DM Serif Display', serif; font-size: 22px; color: #1A1A1A; letter-spacing: -0.5px; white-space: nowrap; flex-shrink: 0; }
.logo span { color: #C9A96E; }
.month-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; min-width: 0; }
.month-btn { width: 36px; height: 36px; border: 1px solid #E5E7EB; background: #fff; border-radius: 10px; cursor: pointer; font-size: 13px; color: #6B7280; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; touch-action: manipulation; min-width: 44px; min-height: 44px; }
.month-btn:hover { background: #F5F3EF; border-color: #C9A96E66; color: #1A1A1A; }
.month-label { font-size: 15px; font-weight: 600; color: #1A1A1A; white-space: nowrap; min-width: 120px; text-align: center; }
.user-filter { display: flex; gap: 4px; flex-shrink: 0; }
.filter-btn { padding: 5px 10px; border: 1px solid #E5E7EB; background: #fff; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 500; color: #6B7280; transition: all .2s; white-space: nowrap; font-family: 'DM Sans', sans-serif; touch-action: manipulation; min-height: 36px; }
.filter-btn:hover { background: #F5F3EF; }
.filter-btn.active { background: #0D5C63; color: #fff; border-color: #0D5C63; }

/* TABS */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #E5E7EB; padding: 0 20px; margin: 0 -20px 20px; background: #FAFAF7; position: sticky; top: 56px; z-index: 99; }
.tab { padding: 12px 16px; font-size: 14px; font-weight: 500; color: #6B7280; text-decoration: none; border-bottom: 2px solid transparent; transition: all .2s; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.tab:hover { color: #1A1A1A; }
.tab.active { color: #0D5C63; border-bottom-color: #0D5C63; font-weight: 600; }

/* BADGES */
.data-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 500; margin-bottom: 20px; }
.data-badge.real { background: #2D6A4F22; color: #2D6A4F; }
.data-badge.demo { background: #D9770622; color: #D97706; }

/* SECTION TITLE */
.section-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: #1A1A1A; margin: 28px 0 14px; letter-spacing: -0.3px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.kpi-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 20px 18px; position: relative; overflow: hidden; transition: all .25s ease; cursor: default; }
.kpi-card:hover { background: #F5F3EF; border-color: #C9A96E44; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.kpi-icon { position: absolute; top: 14px; right: 14px; font-size: 18px; opacity: .45; }
.kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: #9CA3AF; margin-bottom: 6px; }
.kpi-value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -.5px; color: #1A1A1A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value.positive { color: #2D6A4F; }
.kpi-value.negative { color: #C1440E; }
.kpi-sub { font-size: 11px; color: #9CA3AF; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* CAT BAR */
.cat-bar-wrap { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 18px 20px; margin-bottom: 10px; }
.cat-bar { display: flex; height: 24px; border-radius: 8px; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.cat-bar-seg { height: 100%; border-radius: 4px; transition: opacity .2s; cursor: pointer; }
.cat-bar-seg:hover { opacity: .85; }
.cat-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.cat-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; cursor: default; }
.cat-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-legend-name { font-weight: 500; color: #1A1A1A; }
.cat-legend-pct { color: #9CA3AF; font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }

/* BUDGET */
.budget-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 18px 20px; }
.budget-total-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #E5E7EB; }
.budget-total-label { font-size: 12px; color: #9CA3AF; font-weight: 500; }
.budget-total-val { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: #1A1A1A; }
.budget-row { border-bottom: 1px solid #F3F4F6; }
.budget-row:last-child { border-bottom: none; }
.budget-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; user-select: none; gap: 10px; }
.budget-header:hover .budget-cat { color: #0D5C63; }
.budget-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.budget-arrow { font-size: 10px; color: #9CA3AF; transition: transform .25s; flex-shrink: 0; }
.budget-row.open .budget-arrow { transform: rotate(90deg); }
.budget-cat { font-size: 13px; font-weight: 500; color: #1A1A1A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.budget-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.budget-vals { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6B7280; white-space: nowrap; }
.budget-pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.budget-pct.ok { background: #2D6A4F15; color: #2D6A4F; }
.budget-pct.warn { background: #D9770615; color: #D97706; }
.budget-pct.over { background: #C1440E15; color: #C1440E; }
.budget-bar-wrap { width: 100%; height: 6px; background: #E5E7EB55; border-radius: 3px; overflow: hidden; margin-bottom: 2px; }
.budget-bar-fill { height: 100%; border-radius: 3px; transition: width .8s cubic-bezier(.22,1,.36,1); width: 0%; }
.budget-txn-list { display: none; padding: 0 0 10px 0; }
.budget-row.open .budget-txn-list { display: block; }
.budget-txn-item { display: flex; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 12px; gap: 8px; transition: background .12s; }
.budget-txn-item:hover { background: #F5F3EF; }
.budget-txn-desc { color: #1A1A1A; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.budget-txn-meta { color: #9CA3AF; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.budget-txn-val { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: #C1440E; white-space: nowrap; flex-shrink: 0; }
.budget-txn-more { font-size: 11px; color: #9CA3AF; padding: 4px 8px; }

/* SALDOS */
.saldos-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 18px 20px; }
.saldo-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #E5E7EB33; gap: 12px; }
.saldo-row:last-child { border-bottom: none; }
.saldo-info { flex: 1; min-width: 0; }
.saldo-name { font-size: 13px; font-weight: 500; color: #1A1A1A; }
.saldo-sub { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.saldo-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.saldo-badge { font-size: 10px; padding: 2px 6px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-weight: 500; display: inline-block; white-space: nowrap; }
.badge-deuda { background: #C1440E11; color: #C1440E; }
.badge-limite { background: #0D5C6311; color: #0D5C63; }
.badge-uso { background: #D9770611; color: #D97706; }
.saldo-val-wrap { text-align: right; flex-shrink: 0; }
.saldo-val { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; }
.saldo-val.positive { color: #2D6A4F; }
.saldo-val.negative { color: #C1440E; }
.saldo-val-label { font-size: 10px; color: #9CA3AF; margin-top: 2px; }
.uso-bar-wrap { width: 100%; height: 4px; background: #E5E7EB55; border-radius: 2px; overflow: hidden; margin-top: 6px; }
.uso-bar-fill { height: 100%; border-radius: 2px; }

/* TRANSACTIONS */
.txn-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; }
.txn-row { display: flex; align-items: center; padding: 13px 18px; border-bottom: 1px solid #E5E7EB33; gap: 12px; transition: background .15s; }
.txn-row:last-child { border-bottom: none; }
.txn-row:hover { background: #F5F3EF; }
.txn-emoji { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: #FAFAF7; border-radius: 10px; font-size: 20px; flex-shrink: 0; }
.txn-info { flex: 1; min-width: 0; }
.txn-desc { font-size: 14px; font-weight: 500; color: #1A1A1A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-meta { font-size: 11px; color: #9CA3AF; margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.parcela-badge { display: inline-block; padding: 1px 5px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500; background: #0D5C6322; color: #0D5C63; }
.txn-amount { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; flex-shrink: 0; }
.txn-amount.positive { color: #2D6A4F; }
.txn-amount.negative { color: #C1440E; }
.txn-actions { display: flex; gap: 4px; flex-shrink: 0; }
.txn-btn { width: 32px; height: 32px; border: 1px solid #E5E7EB; background: transparent; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; color: #9CA3AF; flex-shrink: 0; }
.txn-btn:hover { background: #F5F3EF; border-color: #C9A96E66; color: #1A1A1A; }
.txn-btn.delete:hover { background: #C1440E11; border-color: #C1440E44; color: #C1440E; }
.load-more-btn { width: 100%; padding: 12px; background: transparent; border: none; border-top: 1px solid #E5E7EB33; cursor: pointer; font-size: 13px; color: #0D5C63; font-family: 'DM Sans', sans-serif; font-weight: 500; transition: background .15s; }
.load-more-btn:hover { background: #F5F3EF; }

/* TRANSFERS */
.transfers-toggle { width: 100%; padding: 12px 18px; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 500; color: #6B7280; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; justify-content: space-between; transition: all .2s; margin-top: 12px; }
.transfers-toggle:hover { background: #F5F3EF; }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: 20px; padding: 28px 24px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.15); transform: scale(.95) translateY(10px); transition: transform .2s; }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-title { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 6px; }
.modal-desc { font-size: 13px; color: #6B7280; margin-bottom: 20px; line-height: 1.5; }
.modal-select { width: 100%; padding: 10px 14px; border: 1px solid #E5E7EB; border-radius: 10px; font-size: 14px; font-family: 'DM Sans', sans-serif; background: #FAFAF7; color: #1A1A1A; margin-bottom: 18px; appearance: none; cursor: pointer; }
.modal-select:focus { outline: none; border-color: #0D5C63; }
.modal-actions { display: flex; gap: 10px; }
.modal-form { display: grid; gap: 10px; margin-bottom: 18px; }
.modal-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6B7280; font-weight: 500; }
.modal-form input, .modal-form select { padding: 9px 12px; border: 1px solid #E5E7EB; border-radius: 10px; font-size: 14px; font-family: 'DM Sans', sans-serif; background: #FAFAF7; color: #1A1A1A; }
.modal-form input:focus, .modal-form select:focus { outline: none; border-color: #0D5C63; }
.modal-help { font-size: 11px; color: #9CA3AF; line-height: 1.4; padding: 4px 0; grid-column: 1 / -1; }
.txn-filter-bar { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.txn-filter-bar select, .txn-filter-bar input { padding: 8px 12px; border: 1px solid #E5E7EB; border-radius: 10px; font-size: 13px; font-family: 'DM Sans', sans-serif; background: #FAFAF7; color: #1A1A1A; }
.txn-filter-bar select { min-width: 180px; cursor: pointer; }
.txn-filter-bar input { flex: 1; min-width: 140px; }
.txn-filter-bar select:focus, .txn-filter-bar input:focus { outline: none; border-color: #0D5C63; }
.txn-filter-count { font-size: 12px; color: #6B7280; font-weight: 500; }
.budget-edit-btn { background: transparent; border: 1px solid #E5E7EB; color: #6B7280; border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .15s; margin-left: 4px; }
.budget-edit-btn:hover { background: #FAFAF7; border-color: #0D5C63; color: #0D5C63; }
.budget-edit-btn.budget-define { color: #0D5C63; border-color: #0D5C63; font-weight: 500; }
.btn-primary { flex: 1; padding: 11px; background: #0D5C63; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: #0a4a50; }
.btn-primary.danger { background: #C1440E; }
.btn-primary.danger:hover { background: #a33a0c; }
.btn-secondary { flex: 1; padding: 11px; background: transparent; color: #6B7280; border: 1px solid #E5E7EB; border-radius: 10px; font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all .2s; }
.btn-secondary:hover { background: #F5F3EF; color: #1A1A1A; }

/* UTILS */
.loading { text-align: center; padding: 40px 20px; color: #9CA3AF; font-size: 14px; }
.skeleton { background: linear-gradient(90deg, #F5F3EF 25%, #FAFAF7 50%, #F5F3EF 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: #1A1A1A; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 2000; transition: transform .3s cubic-bezier(.22,1,.36,1); pointer-events: none; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* MOBILE */
@media (max-width: 768px) {
  .header { padding: 0 16px; margin: 0 -16px 20px; }
  .tabs { padding: 0 16px; margin: 0 -16px 16px; gap: 2px; top: 56px; }
  .tab { padding: 10px 12px; font-size: 13px; }
  .app-container { padding: 0 16px 32px; }
  .logo { font-size: 18px; }
  .month-label { font-size: 13px; min-width: 90px; }
  .month-btn { width: 32px; height: 32px; min-width: 40px; min-height: 40px; font-size: 12px; }
  .filter-btn { padding: 4px 8px; font-size: 11px; min-height: 34px; }
  .kpi-grid { gap: 8px; }
  .kpi-card { padding: 12px 10px; border-radius: 12px; }
  .kpi-value { font-size: 15px; letter-spacing: -.3px; }
  .kpi-label { font-size: 9px; margin-bottom: 4px; }
  .kpi-sub { font-size: 9px; margin-top: 3px; }
  .kpi-icon { font-size: 14px; top: 10px; right: 10px; }
  .two-col { grid-template-columns: 1fr; gap: 12px; }
  .section-title { font-size: 17px; margin: 22px 0 12px; }
  .cat-legend-item .cat-legend-name { display: none; }
  .cat-legend-item .cat-legend-pct { font-size: 10px; }
  .txn-row { padding: 11px 14px; }
  .txn-emoji { width: 34px; height: 34px; font-size: 17px; border-radius: 8px; }
  .txn-desc { font-size: 13px; }
  .txn-amount { font-size: 12px; }
  .budget-card { padding: 14px 16px; }
}
@media (max-width: 390px) {
  .kpi-value { font-size: 14px; }
  .kpi-card { padding: 10px 8px; }
  .user-filter { gap: 3px; }
  .filter-btn { padding: 4px 6px; font-size: 10px; }
}

/* PENDINGS (P2d) */
.pendings-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 16px; }
.pending-row { display: grid; grid-template-columns: 140px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.pending-row:last-child { border-bottom: none; }
.pending-label { font-size: 13px; font-weight: 600; color: #1A1A1A; }
.pending-desc { font-size: 13px; color: #6B7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-field select { font-family: 'DM Sans', sans-serif; font-size: 12px; padding: 5px 8px; border: 1px solid #E5E7EB; border-radius: 8px; background: #fff; color: #1A1A1A; min-height: 32px; max-width: 180px; }
.pending-field-ro { font-size: 12px; color: #9CA3AF; font-style: italic; }
.pending-multiselect { display: flex; flex-direction: column; gap: 6px; }
.pending-multiselect .pending-field { display: flex; align-items: center; gap: 6px; }
.pending-field-label { font-size: 11px; color: #6B7280; min-width: 64px; text-transform: capitalize; }
.pending-btn { border: none; background: transparent; cursor: pointer; font-size: 18px; padding: 6px 8px; border-radius: 8px; transition: all .15s; min-width: 36px; min-height: 36px; }
.pending-btn.confirm { color: #2D6A4F; }
.pending-btn.confirm:hover { background: #2D6A4F22; }
.pending-btn.cancel { color: #C1440E; }
.pending-btn.cancel:hover { background: #C1440E22; }
.pending-btn.bool-yes, .pending-btn.bool-no { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; min-width: 48px; }
.pending-btn.bool-yes { color: #2D6A4F; border: 1px solid #2D6A4F44; }
.pending-btn.bool-yes:hover { background: #2D6A4F; color: #fff; }
.pending-btn.bool-no { color: #6B7280; border: 1px solid #E5E7EB; }
.pending-btn.bool-no:hover { background: #F3F4F6; }
.pending-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: #D9770622; color: #D97706; font-size: 11px; font-weight: 600; margin-left: 8px; vertical-align: middle; }
@media (max-width: 640px) {
  .pending-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .pending-field select { max-width: 100%; }
}

/* SALDOS (S-DASH-2c1) */
.patrimonio-header { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 16px 20px; margin-top: 8px; }
.patrimonio-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; align-items: center; }
.patrimonio-block { display: flex; flex-direction: column; gap: 4px; }
.patrimonio-label { font-size: 11px; color: #6B7280; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.patrimonio-value { font-size: 22px; font-weight: 600; font-family: 'DM Serif Display', serif; letter-spacing: -.5px; }
.patrimonio-value.positive { color: #2D6A4F; }
.patrimonio-value.negative { color: #C1440E; }
.patrimonio-skeleton { width: 100%; }

.saldos-section-title { display: flex; justify-content: space-between; align-items: center; }
.btn-section-action { background: #2D6A4F; color: #fff; border: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background .15s; }
.btn-section-action:hover { background: #1F4E37; }

.saldo-actions { display: flex; gap: 4px; align-items: center; }
.menu-dots { background: transparent; border: 1px solid #E5E7EB; color: #6B7280; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: all .15s; }
.menu-dots:hover { background: #F5F3EF; color: #1A1A1A; border-color: #D1D5DB; }
.checkpoint-info { font-size: 11px; color: #9CA3AF; margin-top: 4px; font-style: italic; }
.tarjeta-row { cursor: pointer; transition: background .15s; }
.tarjeta-row:hover { background: #F5F3EF44; }
.tarjeta-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.modal-wide { max-width: 560px; width: 92vw; }
.modal-list { max-height: 50vh; overflow-y: auto; margin: 12px 0; border: 1px solid #E5E7EB33; border-radius: 12px; }

@media (max-width: 640px) {
  .patrimonio-row { grid-template-columns: 1fr; gap: 12px; }
  .saldos-section-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-section-action { align-self: flex-end; }
  .saldo-actions { flex-direction: row; }
}

/* PENDIENTES — conciliación (S-DASH-2c2) */
.conciliacion-card { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.batch-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 14px 16px; }
.batch-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.batch-card-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-card-meta { font-size: 11px; color: #6B7280; margin-top: 4px; }
.batch-card-stats { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: #4B5563; }
.btn-chip { background: #F5F3EF; border: 1px solid #E5E7EB; color: #4B5563; padding: 4px 10px; border-radius: 999px; font-size: 12px; cursor: pointer; transition: all .15s; }
.btn-chip:hover { background: #fff; }
.btn-chip.active { background: #2D6A4F; color: #fff; border-color: #2D6A4F; }
.batch-lineas-card { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.batch-linea { border: 1px solid #E5E7EB; border-radius: 10px; padding: 10px 12px; background: #fff; }
.linea-tipo { font-weight: 600; font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.linea-detalle { font-size: 12px; color: #4B5563; line-height: 1.5; }
.linea-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.linea-actions label { display: flex; flex-direction: column; font-size: 11px; color: #6B7280; gap: 2px; }
.linea-actions input, .linea-actions select { padding: 4px 8px; border: 1px solid #E5E7EB; border-radius: 6px; font-size: 12px; min-width: 140px; }
.pill { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.pill-warning { background: #D9770622; color: #D97706; }
.pill-ok { background: #2D6A4F22; color: #2D6A4F; }
.linea-divergencia { border-left: 3px solid #D97706; }
.linea-nueva { border-left: 3px solid #1E40AF; }
.linea-orfa { border-left: 3px solid #C1440E; }
