diff --git a/web/cobranza.html b/web/cobranza.html index 00a80a4..1655618 100644 --- a/web/cobranza.html +++ b/web/cobranza.html @@ -60,7 +60,7 @@ .header p { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; } .tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 1.4rem; animation: fadeUp 0.62s ease both; } - .tab { flex: 1; padding: 9px 8px; border: none; background: transparent; border-radius: 9px; font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif; color: var(--text-secondary); cursor: pointer; transition: all 0.18s ease; } + .tab { flex: 1; padding: 9px 4px; border: none; background: transparent; border-radius: 9px; font-size: 12.5px; font-weight: 600; font-family: 'DM Sans', sans-serif; color: var(--text-secondary); cursor: pointer; transition: all 0.18s ease; white-space: nowrap; } .tab:hover { color: var(--text-primary); } .tab.active { background: var(--surface); box-shadow: 0 1px 2px rgba(18,24,38,.08), 0 0 0 1px var(--line); color: var(--accent); } @@ -209,6 +209,34 @@ .btn-danger-soft { background: var(--surface); color: var(--danger); border-color: var(--line); } .btn-danger-soft:hover { background: var(--danger-soft); border-color: transparent; } + /* Vista Cuentas: acordeón por cliente con subcuentas seleccionables */ + .cta-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--nm-out); margin-bottom: 12px; animation: fadeUp 0.5s ease both; overflow: hidden; } + .cta-head { display: flex; align-items: center; gap: 10px; padding: 0.95rem 1.1rem; cursor: pointer; user-select: none; } + .cta-head:hover { background: var(--surface-2); } + .cta-chev { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; } + .cta-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.25; } + .cta-sub { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-top: 2px; } + .cta-selbadge { color: var(--accent); font-weight: 700; } + .cta-tot { flex: 0 0 auto; text-align: right; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; } + .cta-mora { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; color: var(--warning); margin-top: 1px; } + .cta-body { border-top: 1px solid var(--line); padding: 0.85rem 1rem 1rem; background: var(--surface-2); } + .cta-seltodo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; margin-bottom: 10px; } + .cta-seltodo input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; } + .sub-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--nm-subtle); margin-bottom: 10px; overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; } + .sub-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 6px 14px -6px var(--accent-glow); } + .sub-row { display: flex; align-items: center; gap: 10px; padding: 0.75rem 0.85rem; cursor: pointer; } + .sub-check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--line-strong); background: var(--surface); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s ease; } + .sub-check.on { background: var(--accent); border-color: var(--accent); } + .sub-main { flex: 1; min-width: 0; } + .sub-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; } + .sub-meta { font-size: 11px; color: var(--text-secondary); margin-top: 3px; } + .sub-saldo { flex: 0 0 auto; font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; } + .sub-actions { display: flex; gap: 7px; padding: 0 0.85rem 0.8rem; } + .sub-actions .btn { padding: 8px 10px; font-size: 11.5px; border-radius: 10px; } + .cta-foot { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.2rem 0; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); } + .cta-foot .val { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; } + .cta-foot.empty { justify-content: center; font-weight: 500; font-size: 11.5px; color: var(--text-tertiary); } + /* Modo edición inline */ .edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; } .edit-field label { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 5px; font-weight: 700; } @@ -362,6 +390,7 @@