/* ============================================================================
   Wave 5 · PA — client portal in the approved design (computax/p-portal.html): the kit tokens of assets/css/app.css, the
   .pt-head / .pt-nav chrome and the portal's own page classes (.card, .kpi-card, .tab-btn, .p-table, .btn-gold …) restyled
   to the kit's panel / stat / table / badge look. Loaded AFTER portal.css / portal-mobile.css / portal-shell.css, only by the
   native portal pages (resources/views/portal/*). Light only, as the ERP shell.
   ========================================================================== */
body.pt-ob {
  --tc-red: #e31937; --tc-navy: #0a132b; --tc-navy-2: #16224a;
  --brand-700: #16224a; --brand-600: #24356b; --brand-500: #3a4f8f; --brand-100: #e1e5f0; --brand-50: #f1f3f9; --accent: #e31937;
  --k-bg: #f8f9fb; --k-surface: #fff; --k-surface-2: #fbfaf7; --k-surface-3: #f2f4f7; --k-border: #e4e7ec; --k-border-2: #d0d5dd;
  --k-text: #182230; --k-text-2: #344054; --k-muted: #5d6678; --k-faint: #5f6a7d;
  --k-green: #059669; --k-green-bg: #e7f7ef; --k-amber: #b45309; --k-amber-bg: #fdf3e1; --k-red: #b91c1c; --k-red-bg: #fdecec; --k-blue: #1d4ed8; --k-blue-bg: #e8effe;
  background: var(--k-bg); color: var(--k-text); font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.pt-ob .p-main { margin-left: 0 !important; width: 100%; }
body.pt-ob .p-topbar { display: none !important; }
body.pt-ob .p-sidebar { transform: translateX(-100%); box-shadow: none; }
body.pt-ob .p-sidebar.open { transform: none; box-shadow: 0 12px 40px rgba(15, 23, 42, .18); }
body.pt-ob .pms-rail-btn { display: none !important; }
body.pt-ob .lc { width: 16px; height: 16px; flex: none; }

/* chrome */
body.pt-ob .pt-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 24px; background: var(--k-surface); border-bottom: 1px solid var(--k-border); }
body.pt-ob .pt-head .logo { height: 22px; width: auto; display: block; }
body.pt-ob .pt-head .firm { font-size: 12px; color: var(--k-muted); border-left: 1px solid var(--k-border); padding-left: 12px; line-height: 1.25; }
body.pt-ob .pt-head .firm b { display: block; color: var(--k-text); font-size: 13px; }
body.pt-ob .pt-switch { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--k-border); border-radius: 10px; background: var(--k-surface-2); color: var(--k-text); text-decoration: none; max-width: 300px; }
body.pt-ob .pt-switch b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pt-ob .pt-switch > div { min-width: 0; line-height: 1.15; }
body.pt-ob .pt-switch > div span { font-size: 11px; color: var(--k-muted); display: block; }
body.pt-ob .avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tc-navy-2); color: #fff; font-size: 11px; font-weight: 700; flex: none; }
body.pt-ob .pt-head .grow { flex: 1; }
body.pt-ob .pt-search { display: flex; align-items: center; gap: 8px; width: 300px; height: 36px; padding: 0 10px; border: 1px solid var(--k-border); border-radius: 10px; background: var(--k-surface-2); color: var(--k-muted); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
body.pt-ob .pt-search span { flex: 1; }
body.pt-ob .pt-search kbd { font-size: 10.5px; border: 1px solid var(--k-border); border-radius: 5px; padding: 1px 5px; background: var(--k-surface); color: var(--k-muted); font-family: inherit; }
body.pt-ob .pt-ib { position: relative; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--k-border); background: var(--k-surface); display: grid; place-items: center; color: var(--k-text-2); text-decoration: none; }
body.pt-ob .pt-ib .lc { width: 17px; height: 17px; }
body.pt-ob .pt-ib .pip { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--tc-red); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
body.pt-ob .pt-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--k-text-2); text-decoration: none; }
body.pt-ob .pt-user .avatar { width: 32px; height: 32px; }
body.pt-ob .pt-nav { display: flex; gap: 2px; padding: 0 24px; background: var(--k-surface); border-bottom: 1px solid var(--k-border); overflow-x: auto; scrollbar-width: none; position: sticky; top: 60px; z-index: 39; }
body.pt-ob .pt-nav a, body.pt-ob .pt-nav .pt-more { display: inline-flex; align-items: center; gap: 7px; padding: 11px 12px; font-size: 13px; font-weight: 550; color: var(--k-muted); border: 0; border-bottom: 2px solid transparent; background: none; white-space: nowrap; cursor: pointer; text-decoration: none; font-family: inherit; }
body.pt-ob .pt-nav a:hover, body.pt-ob .pt-nav .pt-more:hover { color: var(--k-text); }
body.pt-ob .pt-nav a.active, body.pt-ob .pt-nav .pt-more.active { color: var(--brand-700); border-bottom-color: var(--accent); }
body.pt-ob .pt-nav .lc { width: 15px; height: 15px; }
body.pt-ob .pt-nav .badge { height: 18px; min-width: 18px; font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: var(--k-red-bg); color: var(--k-red); display: inline-grid; place-items: center; }
body.pt-ob .pt-nav .pt-more { margin-left: auto; }
body.pt-ob .p-content { padding: 22px 24px 40px; width: 100%; box-sizing: border-box; }

/* page heads */
body.pt-ob .p-page-hd h1, body.pt-ob .p-page-hd-row h1 { font-size: 22px; font-weight: 650; letter-spacing: -.2px; color: var(--k-text); font-family: inherit; }
body.pt-ob .p-page-hd p, body.pt-ob .p-page-hd-row p { color: var(--k-muted); font-size: 13px; }

/* panels, KPI tiles */
body.pt-ob .card { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 14px; box-shadow: none; }
body.pt-ob .card-head { padding: 12px 16px; border-bottom: 1px solid var(--k-border); font-weight: 650; font-size: 14px; color: var(--k-text); background: none; }
body.pt-ob .card-body { padding: 14px 16px; }
body.pt-ob .kpi-card { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 12px; box-shadow: none; padding: 12px 14px; }
body.pt-ob .kpi-card::before, body.pt-ob .kpi-card::after { display: none; }
body.pt-ob .kpi-label { font-size: 12px; color: var(--k-muted); font-weight: 550; text-transform: none; letter-spacing: 0; }
body.pt-ob .kpi-val { font-size: 22px; font-weight: 650; color: var(--k-text); font-family: inherit; font-variant-numeric: tabular-nums; }
body.pt-ob .kpi-sub { font-size: 11.5px; color: var(--k-muted); }
body.pt-ob .kpi-icon { background: var(--brand-50); color: var(--brand-600); border-radius: 10px; }

/* tabs, chips, buttons, badges */
body.pt-ob .tab-bar { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 12px; padding: 4px; gap: 2px; }
body.pt-ob .tab-btn { border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--k-muted); box-shadow: none; }
body.pt-ob .tab-btn.active { background: var(--brand-50); color: var(--brand-700); box-shadow: none; }
body.pt-ob .tab-count { background: var(--k-surface-3); color: var(--k-text-2); border-radius: 999px; font-size: 11px; }
body.pt-ob .chip { border: 1px solid var(--k-border); background: var(--k-surface); border-radius: 999px; color: var(--k-text-2); }
body.pt-ob .btn { border-radius: 9px; font-weight: 600; box-shadow: none; }
body.pt-ob .btn-gold { background: var(--tc-red); color: #fff; box-shadow: none; }
body.pt-ob .btn-gold:hover { background: #c01029; }
body.pt-ob .btn-navy { background: var(--tc-navy); color: #fff; }
body.pt-ob .badge { border-radius: 999px; font-weight: 600; font-size: 11px; }

/* tables */
body.pt-ob .p-table th { background: var(--k-surface-2); color: var(--k-muted); font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: 0; font-family: inherit; border-bottom: 1px solid var(--k-border); }
body.pt-ob .p-table td { border-bottom: 1px solid var(--k-border); color: var(--k-text); font-size: 13px; }
body.pt-ob .p-table tr:hover td { background: var(--brand-50); }

/* rows of the read pages */
body.pt-ob .inv-row, body.pt-ob .notice-card, body.pt-ob .task-card { border-color: var(--k-border); border-radius: 12px; box-shadow: none; background: var(--k-surface); }
body.pt-ob .inv-icon { background: var(--brand-50); color: var(--brand-600); border-radius: 10px; }
body.pt-ob .inv-amount, body.pt-ob .inv-num { font-variant-numeric: tabular-nums; }
body.pt-ob .prog-track { background: var(--k-surface-3); }
body.pt-ob .prog-fill { background: var(--k-green); }
body.pt-ob .empty-state { color: var(--k-muted); }
body.pt-ob .empty-ico { background: var(--brand-50); color: var(--brand-600); border-radius: 14px; }
body.pt-ob .empty-title { color: var(--k-text); font-weight: 650; }

@media (max-width: 1100px) { body.pt-ob .pt-search { display: none; } body.pt-ob .pt-head .firm { display: none; } }
@media (max-width: 760px) {
  body.pt-ob .pt-head { padding: 0 16px; gap: 10px; }
  body.pt-ob .pt-user .nm, body.pt-ob .pt-switch > div span { display: none; }
  body.pt-ob .pt-switch { max-width: 160px; }
  body.pt-ob .pt-nav { display: none; }
  body.pt-ob .p-content { padding: 16px 16px 80px; }
}
/* sign-in, OTP and master switch (p-portal.html #signin #otp #switch): the kit's .pt-auth card on the page background */
body.pt-auth { background: #f8f9fb; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #182230; }
body.pt-auth .card { border: 1px solid #e4e7ec; border-radius: 16px; box-shadow: none; background: #fff; }
body.pt-auth .card-head { background: #fff; border-bottom: 1px solid #e4e7ec; }
body.pt-auth .eyebrow { color: #5d6678; letter-spacing: .4px; }
body.pt-auth .btn, body.pt-auth .pbtn { border-radius: 10px; box-shadow: none; }
body.pt-auth .btn { background: #e31937; color: #fff; }
body.pt-auth .btn:hover { background: #c01029; }
body.pt-auth input[type="text"], body.pt-auth input[type="email"], body.pt-auth input[type="password"], body.pt-auth input[type="tel"], body.pt-auth input[type="search"] { border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; }
body.pt-auth input:focus { outline: 0; border-color: #3a4f8f; box-shadow: 0 0 0 3px #f1f3f9; }
body.pt-auth .chip { border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; color: #344054; }
body.pt-auth .ms-bar { background: #0a132b; }
body.pt-auth .row { border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; }
body.pt-auth .row:hover { border-color: #3a4f8f; background: #f1f3f9; }
body.pt-auth .av { background: #16224a; color: #fff; }
body.pt-ob .portal-layout, body.pt-ob .p-main, body.pt-ob .p-content { background: var(--k-bg); }
body.pt-ob .empty-ico { width: 56px; height: 56px; margin: 0 auto 10px; display: grid; place-items: center; }
body.pt-ob .empty-ico svg { width: 26px; height: 26px; }   /* line icon, not an emoji (25-Nov) */

/* Wave 5 · PP — the rest of the portal (dashboard, work, actions, organizer, upload, cfo, ai, profile, services, contacts,
   doc-requests): their own panels (.ya / .wk-* / .ac-* / .tl-* / .og-* / .dr-* / pulse / ci) on the same kit surfaces. */
body.pt-ob .ya, body.pt-ob .wk-item, body.pt-ob .wk-done, body.pt-ob .wk-empty, body.pt-ob .ac-card, body.pt-ob .tl-card,
body.pt-ob .pulse-card, body.pt-ob .ai-panel, body.pt-ob .fin-strip { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 14px; box-shadow: none; }
body.pt-ob .ya-hd h2, body.pt-ob .tl-hd h2, body.pt-ob .ac-title, body.pt-ob .wk-title { font-weight: 650; color: var(--k-text); }
body.pt-ob .ya-btn, body.pt-ob .wk-btn, body.pt-ob .ac-btn, body.pt-ob .tl-btn { background: var(--tc-navy); border-radius: 9px; font-weight: 600; }
body.pt-ob .ya-btn:hover, body.pt-ob .wk-btn:hover, body.pt-ob .ac-btn:hover, body.pt-ob .tl-btn:hover { background: var(--tc-red); }
body.pt-ob .tl-btn.ghost { background: var(--k-surface); color: var(--k-text-2); border: 1px solid var(--k-border-2); }
body.pt-ob .ya-count { background: var(--tc-red); }
body.pt-ob .ya-count.zero { background: var(--k-green); }
body.pt-ob .wk-chip { border-color: var(--k-border); color: var(--k-text-2); }
body.pt-ob .wk-chip.amber { background: var(--k-amber-bg); color: var(--k-amber); border-color: #f1d39a; }
body.pt-ob .wk-chip.on { box-shadow: 0 0 0 2px var(--brand-100); }
body.pt-ob .ci-hdr { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 14px 14px 0 0; }
body.pt-ob .ci-tabs-nav { border: 1px solid var(--k-border); border-top: 0; border-radius: 0 0 14px 14px; margin-bottom: 16px; background: var(--k-surface-2); }
body.pt-ob .ci-tab-item.active { color: var(--brand-700); border-bottom-color: var(--accent); background: none; }
body.pt-ob .ac-body textarea, body.pt-ob .tl-f input[type=text], body.pt-ob .tl-f input[type=email], body.pt-ob .tl-f input[type=password],
body.pt-ob .tl-acts input[type=password], body.pt-ob .fg input, body.pt-ob .fg select, body.pt-ob .fg textarea { border: 1px solid var(--k-border-2); border-radius: 10px; background: #fff; }
body.pt-ob .alert-strip { border-radius: 10px; }
@media (max-width: 900px) {
  body.pt-ob .pp-split, body.pt-ob .pp-split2 { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 560px) { body.pt-ob .pp-two { grid-template-columns: minmax(0, 1fr) !important; } }

/* OD-B6: the portal pages' panels (.panel / .panel-head / .panel-body — were Bootstrap-named .card / .card-head / .card-body on
   ai, cfo, dashboard, profile, services, upload). Same box, header row and body padding as the restyled .card above. */
body.pt-ob .panel { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 14px; box-shadow: none; margin-bottom: 14px; }
body.pt-ob .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--k-border); font-weight: 650; font-size: 14px; color: var(--k-text); background: none; }
body.pt-ob .panel-head h2 { font-size: 14px; font-weight: 650; color: var(--k-text); margin: 0; }
body.pt-ob .panel-body { padding: 14px 16px; }
body.pt-ob .panel-body.p0 { padding: 0; overflow-x: auto; }
body.pt-ob .panel-body.p16 { padding: 14px; }
body.pt-ob .panel.mb20 { margin-bottom: 20px; }
body.pt-ob .panel.mt20 { margin-top: 20px; }
body.pt-ob .risk-radar .panel-head, body.pt-ob .ca-feed .panel-head { padding: 12px 16px; }
@media (max-width: 640px) { body.pt-ob .panel { border-radius: 14px; } body.pt-ob .panel-body { padding: 14px; } }
