/* Portal de terceros — Cuentas por pagar. */
:root {
  --tp-brand: var(--brand-blue, #1882CD);
  --tp-brand-dark: var(--brand-blue-dark, #11468A);
  --tp-line: #dfe6ee;
  --tp-ink: #1d2b3a;
  --tp-muted: #6c7a89;
  --tp-bg: #f4f7fb;
}
.tp-body { background: var(--tp-bg); color: var(--tp-ink); min-height: 100vh; }
.tp-topbar { background: var(--tp-brand-dark); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.tp-topbar-inner { max-width: 1180px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: .75rem; }
.tp-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; }
.tp-brand img { height: 36px; max-width: 120px; object-fit: contain; background: #fff; border-radius: .4rem; padding: .2rem .4rem; }
.tp-user { display: flex; align-items: center; gap: .45rem; font-size: .85rem; }
.tp-icon-btn { color: #fff; opacity: .85; padding: .35rem .5rem; border-radius: .45rem; text-decoration: none; }
.tp-icon-btn:hover { opacity: 1; background: rgba(255,255,255,.12); color: #fff; }
.tp-main { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.tp-title { font-size: 1.35rem; font-weight: 700; color: var(--tp-brand-dark); }
.tp-card { border: 1px solid var(--tp-line); border-radius: .8rem; box-shadow: 0 4px 16px rgba(17,70,138,.05); }
.tp-card .card-header { background: #fff; border-bottom: 1px solid var(--tp-line); font-weight: 600; color: var(--tp-brand-dark); }
.tp-stat { background: #fff; border: 1px solid var(--tp-line); border-radius: .7rem; padding: .65rem .8rem; height: 100%; }
.tp-footer { text-align: center; color: var(--tp-muted); font-size: .78rem; padding: .75rem 1rem 1.5rem; }
.tp-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.tp-login-card { width: 100%; max-width: 420px; border-radius: 1rem; }
.tp-login-card .brand-accent { height: 5px; background: linear-gradient(90deg, var(--tp-brand-dark), var(--tp-brand)); border-radius: 1rem 1rem 0 0; }
.btn-brand { background: var(--tp-brand); border-color: var(--tp-brand); color: #fff; }
.btn-brand:hover { background: var(--tp-brand-dark); border-color: var(--tp-brand-dark); color: #fff; }
.table > :not(caption) > * > * { padding: .5rem .45rem; }
[data-bs-theme="dark"] .tp-body { background: #101720; color: #e6edf5; }
[data-bs-theme="dark"] .tp-card,
[data-bs-theme="dark"] .tp-stat { background: #1a2431; border-color: #2d3d4f; }
[data-bs-theme="dark"] .tp-card .card-header { background: #1a2431; border-color: #2d3d4f; color: #8fc4ef; }
[data-bs-theme="dark"] .table { color: #e6edf5; }
