/* Customer portal — clean, professional theme (Inter, square-ish corners, light background) */
:root {
  --navy: #12304a; --navy-2: #1b4166; --brand-gold: #d9b345; --gold-ink: #8a6a12; --gold-bg: #fbf5e3; --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --bg: #f3f5f8;
  --blue: #1d4ed8; --blue-bg: #eff4ff; --teal: #0f766e; --teal-bg: #ecfdf8; --amber: #b45309; --amber-bg: #fff7eb;
  --red: #c62828; --red-bg: #fdecec; --green: #15803d; --green-bg: #ecfdf3; --gold: #f5b301;
}
body.pt { background: var(--bg); color: var(--ink); font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
.pt h1, .pt h2, .pt h3, .pt h4, .pt h5 { font-family: inherit; color: var(--ink); letter-spacing: -0.01em; }
.pt a { color: var(--blue); }
.pt .btn { font-weight: 600; border-radius: 6px; }

/* Top bar */
.pt-bar { background: var(--navy); color: #fff; border-bottom: 3px solid var(--brand-gold); }
.pt-bar .inner { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none !important; }
.pt-brand:hover { color: #fff; }
.pt-logo { width: 36px; height: 36px; border-radius: 6px; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.pt-logo i { color: var(--gold); font-size: 18px; }
.pt-brand img { height: 46px; width: auto; }
.pt-brand .lbl { border-left: 1px solid rgba(255,255,255,.3); padding-left: 12px; font-size: 13px; font-weight: 600; color: #e6ebf2; letter-spacing: .02em; }
.pt-brand small { display: block; font-weight: 500; font-size: 11px; color: #c7d2e1; letter-spacing: .02em; }
.pt-out { color: #fff; border: 1px solid rgba(255,255,255,.35); background: transparent; padding: 6px 12px; font-size: 13px; }
.pt-out:hover { background: rgba(255,255,255,.1); color: #fff; }

.pt-wrap { max-width: 960px; margin: 0 auto; padding: 20px 16px 32px; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.pt-card + .pt-card, .pt-section { margin-top: 16px; }
.pt-card .hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-card .hd h2 { font-size: 16px; font-weight: 700; margin: 0; }
.pt-card .hd .sub { font-size: 13px; color: var(--muted); }
.pt-card .bd { padding: 18px; }

/* Account summary */
.pt-acct { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pt-acct .name { font-size: 22px; font-weight: 700; margin: 0; }
.pt-acct .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pt-acct .meta b { color: var(--ink); font-weight: 600; }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pt-chip.ok { background: var(--green-bg); color: var(--green); }
.pt-chip.bad { background: var(--red-bg); color: var(--red); }
.pt-chip i { font-size: 8px; }

.pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.pt-stat { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.pt-stat .k { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pt-stat .v { font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pt-stat .s { font-size: 12px; color: var(--muted); }
.pt-stat.due { border-color: #f3c4c4; background: var(--red-bg); }
.pt-stat.due .v { color: var(--red); }
.pt-stat.clear { border-color: #bfe7cf; background: var(--green-bg); }
.pt-stat.clear .v { color: var(--green); }

/* Pay box */
.pt-pay { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pt-pay .amt { display: flex; align-items: center; border: 1px solid #cfd6e0; border-radius: 6px; overflow: hidden; background: #fff; }
.pt-pay .amt span { padding: 0 12px; color: var(--muted); font-weight: 600; background: #f8fafc; align-self: stretch; display: flex; align-items: center; border-right: 1px solid #cfd6e0; }
.pt-pay .amt input { border: 0; outline: 0; padding: 10px 12px; width: 140px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-pay .btn-pay { background: #0070e0; border-color: #0070e0; color: #fff; padding: 10px 18px; }
.pt-pay .btn-pay:hover { background: #005fc0; color: #fff; }
.pt-pay .note { font-size: 12px; color: var(--muted); flex-basis: 100%; }
.pt-alt { margin-top: 12px; font-size: 13px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: #374151; }

/* Document tiles */
.pt-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pt-doc { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none !important; color: var(--ink) !important; border-left-width: 5px; transition: box-shadow .15s, transform .15s; }
.pt-doc:hover { box-shadow: 0 6px 16px rgba(16,24,40,.08); transform: translateY(-1px); }
.pt-doc .ic { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.pt-doc .t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.pt-doc .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pt-doc .go { margin-left: auto; color: #9ca3af; }
.pt-doc.blue { border-left-color: var(--navy); } .pt-doc.blue .ic { background: var(--navy); color: var(--brand-gold); }
.pt-doc.teal { border-left-color: var(--teal); } .pt-doc.teal .ic { background: var(--teal-bg); color: var(--teal); }
.pt-doc.amber { border-left-color: var(--brand-gold); } .pt-doc.amber .ic { background: var(--gold-bg); color: var(--gold-ink); }
.pt-doc.off { opacity: .55; pointer-events: none; }

/* Lists (table on desktop, stacked rows on phones) */
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fafbfc; text-align: left; }
.pt-table td { padding: 12px 18px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.pt-table tr:last-child td { border-bottom: 0; }
.pt-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-table .ref { font-size: 12.5px; color: var(--muted); }
.pt-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue) !important; text-decoration: none !important; white-space: nowrap; background: #fff; }
.pt-dl:hover { background: var(--blue-bg); border-color: #c7d6fb; }
.pt-empty { padding: 18px; color: var(--muted); font-size: 14px; }
.pt-more { display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); }

.pt-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }

/* Login */
.pt-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(180deg, var(--navy) 0, var(--navy) 40%, var(--bg) 40%); }
.pt-login .pt-card { border-top: 4px solid var(--brand-gold); }
.pt-login .box { width: 100%; max-width: 420px; }
.pt-login .brand { text-align: center; color: #fff; margin-bottom: 18px; }
.pt-login .brand .pt-logo { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 10px; }
.pt-login .brand .pt-logo i { font-size: 26px; }
.pt-login .brand img { width: 230px; max-width: 70%; height: auto; margin-bottom: 6px; }
.pt-login .brand h1 { color: #fff; font-size: 20px; font-weight: 700; margin: 0; }
.pt-login .brand p { color: #c7d2e1; font-size: 13px; margin: 2px 0 0; }
.pt-login label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.pt-login .form-control { height: 46px; border-radius: 6px; border-color: #cfd6e0; font-size: 16px; }
.pt-login .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.pt-login .btn-primary { background: var(--navy); border-color: var(--navy); height: 46px; font-size: 15px; color: #fff; }
.pt-login .btn-primary:hover { background: var(--navy-2); }
.pt-login .help { font-size: 13px; color: var(--muted); }

@media (max-width: 767px) {
  .pt-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pt-stat .v { font-size: 18px; }
  .pt-docs { grid-template-columns: 1fr; gap: 10px; }
  .pt-acct .name { font-size: 20px; }
  .pt-pay { flex-direction: column; align-items: stretch; }
  .pt-pay .amt input { width: 100%; }
  .pt-pay .btn-pay { width: 100%; padding: 12px; }
  /* tables become stacked rows */
  .pt-table thead { display: none; }
  .pt-table, .pt-table tbody, .pt-table tr, .pt-table td { display: block; width: 100%; }
  .pt-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; padding: 12px 16px; border-bottom: 1px solid #f0f2f5; }
  .pt-table tr:last-child { border-bottom: 0; }
  .pt-table td { padding: 0; border: 0; }
  .pt-table td.c1 { font-weight: 600; }
  .pt-table td.c2 { grid-column: 1; font-size: 13px; color: var(--muted); }
  .pt-table td.n { grid-column: 2; grid-row: 1; font-weight: 700; }
  .pt-table td.act { grid-column: 2; grid-row: 2; text-align: right; }
  .pt-table td.hide-sm { display: none; }
  .pt-card .bd { padding: 16px; }
  .pt-wrap { padding: 14px 12px 28px; }
}
.pt .pt-brand, .pt .pt-brand:hover { color: #fff; }
.pt-table th.n { text-align: right; }
@media (max-width: 767px) { .pt-card .hd .sub { display: none; } }

/* Brand accents */
.pt-card .hd h2 { position: relative; padding-left: 12px; }
.pt-card .hd h2:before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--brand-gold); }
.pt-stat .k { color: var(--navy); opacity: .75; }
.pt-dl { color: var(--navy) !important; }
.pt-dl:hover { background: var(--gold-bg); border-color: #ecd9a0; }
.pt-more { color: var(--navy); }
