/* Techo Client Portal: Techo purple (#2F0084) and green (#00C389), the same fonts and buttons as TQT (base.css) */
:root { --brand: #2F0084; --brand-ink: #2F0084; --brand-50: #f6f3fc; --brand-100: #ece6f8; --brand-200: #d6caf0; --brand-700: #24006a;
  --accent: #00C389; --accent-700: #00a874; --on-accent: #2F0084; --bg: #f5f4f9; --card: #fff; }
body.cp { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.cp-top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(47,0,132,.18); }
.cp-top-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cp-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 16px; white-space: nowrap; }
.cp-brand img { width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 3px; }
.cp-brand strong { font-weight: 750; letter-spacing: -.01em; }
.cp-top-right { display: flex; align-items: center; gap: 14px; font-size: 13px; min-width: 0; }
.cp-company { font-weight: 650; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.cp-company:empty { display: none; }
.cp-me { opacity: .85; white-space: nowrap; }
.cp-out { color: #c9f5e6; text-decoration: none; font-weight: 600; }
.cp-out:hover { text-decoration: underline; }
.cp-nav { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cp-tab { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 550; padding: 10px 12px 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.cp-tab:hover { color: #fff; }
.cp-tab.is-on { color: #fff; border-bottom-color: var(--accent); }
.cp-viewas { background: #ffd23f; color: #3b2a00; font-size: 14px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 16px; position: sticky; top: 0; z-index: 30; }
.cp-va-exit { appearance: none; border: 1.5px solid #3b2a00; background: #fff8d6; color: #3b2a00; font: 700 13px/1 var(--ui-font); border-radius: 7px; padding: 6px 14px; cursor: pointer; }
.cp-banners { max-width: 1180px; width: 100%; margin: 16px auto 0; padding: 0 24px; display: grid; gap: 8px; }
.cp-banners:empty { display: none; }
.cp-banner { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid; font-size: 14px; line-height: 1.4; background: #fff; }
.cp-banner.is-info { border-color: #c8d6fb; background: #f1f5ff; color: #1b3a8a; }
.cp-banner.is-warning { border-color: #f6d58c; background: #fff8e6; color: #7a4b00; }
.cp-banner.is-critical { border-color: #f3b4b4; background: #fff1f1; color: #8f1d1d; }
.cp-banner-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.cp-banner-msg { flex: 1; }
.cp-banner-link { color: inherit; font-weight: 700; white-space: nowrap; }
.cp-banner-x { appearance: none; border: 0; background: transparent; color: inherit; font: 600 13px/1 var(--ui-font); cursor: pointer; padding: 4px 6px; border-radius: 6px; opacity: .75; }
.cp-banner-x:hover { opacity: 1; background: rgba(0,0,0,.06); }
.cp-banner-x[disabled] { cursor: not-allowed; opacity: .35; }
.cp-main { flex: 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: 24px 24px 48px; outline: none; }
.cp-loading { color: var(--muted); padding: 40px 0; }
.cp-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.cp-h h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; color: var(--ink); flex-basis: 100%; }
.cp-h .cp-sub { margin: 4px 0 0; }
.cp-h .cp-pill { margin-top: 2px; }
.cp-h:has(.cp-pill) h1, .cp-h:has(.cp-toggle) h1 { flex-basis: auto; }
.cp-sub { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.cp-fine { color: var(--muted); font-size: 12px; margin: 8px 0 0; line-height: 1.45; }
.cp-back { display: inline-block; color: var(--brand); text-decoration: none; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.cp-toggle { color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none; align-self: center; }
.cp-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,41,.04); margin-bottom: 16px; }
.cp-card h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: -.01em; }
.cp-card h3 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.cp-kpi { display: grid; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--accent); transition: box-shadow .15s, transform .05s; }
.cp-kpi:hover { box-shadow: 0 6px 22px rgba(47,0,132,.10); }
.cp-kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cp-kpi-value { font-size: 28px; font-weight: 750; letter-spacing: -.02em; color: var(--brand); }
.cp-kpi-sub { font-size: 12.5px; color: var(--muted); }
.cp-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; box-shadow: 0 1px 2px rgba(15,23,41,.04); }
.cp-card .cp-table-wrap { border: 0; box-shadow: none; border-radius: 0; margin: 0 -20px -18px; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #faf9fd; white-space: nowrap; }
.cp-table td { padding: 12px 14px; border-bottom: 1px solid #f0eff4; vertical-align: middle; }
.cp-table tr:last-child td { border-bottom: 0; }
.cp-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-table tr.is-link { cursor: pointer; }
.cp-table tr.is-link:hover td { background: var(--brand-50); }
.cp-empty { color: var(--muted); text-align: center; padding: 28px !important; }
.cp-actions { display: inline-flex; gap: 6px; }
.cp-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--brand-100); color: var(--brand); white-space: nowrap; }
.cp-pill.is-done { background: #e3f8ef; color: #0f6b47; }
.cp-pill.is-warn { background: #fff3d6; color: #8a5600; }
.cp-pill.is-bad { background: #fde7e7; color: #a02323; }
.cp-pill.is-muted { background: #eef0f3; color: #556070; }
.cp-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 18px; margin: 0 0 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cp-meta dt { font-size: 12px; color: var(--muted); font-weight: 600; } .cp-meta dd { margin: 2px 0 0; font-size: 14px; }
.cp-note { border-left: 3px solid var(--brand-200); padding: 6px 0 6px 14px; margin: 10px 0; }
.cp-note-by { font-size: 12px; color: var(--muted); font-weight: 600; } .cp-note-text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; margin-top: 3px; }
.cp-quote { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.cp-line { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #f0eff4; font-size: 14px; }
.cp-line-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-totals { display: grid; gap: 6px; margin-bottom: 16px; }
.cp-tot { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cp-tot.is-strong { font-weight: 750; color: var(--ink); font-size: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.cp-approve { width: 100%; }
a.cp-review { box-sizing: border-box; }
a.cp-review::after { content: '\2197'; font-size: 14px; opacity: .85; }
a.cp-review.is-disabled { opacity: .55; pointer-events: none; }
.cp-link { display: inline-block; margin-top: 12px; color: var(--brand); font-size: 13px; font-weight: 600; }
.cp-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cp-progress { height: 8px; border-radius: 99px; background: var(--brand-100); overflow: hidden; margin-top: 14px; }
.cp-progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.cp-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cp-form-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 22px 16px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(15,23,41,.05); transition: border-color .15s, box-shadow .15s, transform .08s; }
.cp-form-btn:hover, .cp-form-btn:focus-visible { border-color: var(--accent); box-shadow: 0 10px 26px rgba(47,0,132,.12); transform: translateY(-2px); outline: none; }
.cp-form-btn.is-disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.cp-form-icon { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--brand) 0%, #5a1fd1 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.cp-form-icon svg { width: 28px; height: 28px; }
.cp-form-name { font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.cp-soon { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed var(--brand-200); border-radius: 16px; }
.cp-soon-badge { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--accent); color: var(--brand); font-weight: 750; font-size: 13px; letter-spacing: .03em; margin-bottom: 14px; }
.cp-soon h2 { margin: 0 0 6px; font-size: 20px; }
.cp-user { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0eff4; align-items: center; }
.cp-user:last-child { border-bottom: 0; }
.cp-user-who { display: grid; gap: 2px; } .cp-user-who .cp-sub { font-size: 12.5px; }
.cp-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chk { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; background: #fff; cursor: pointer; }
.cp-chk.is-custom { border-style: dashed; }
.cp-chk input { accent-color: var(--brand); }
.cp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-chip { appearance: none; border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 6px 12px; font: 600 13px/1 var(--ui-font); color: var(--ink-2); cursor: pointer; }
.cp-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cp-ask { max-width: 520px; margin: 40px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; box-shadow: 0 10px 40px rgba(47,0,132,.08); }
.cp-ask-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--brand-100); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.cp-ask-icon svg { width: 30px; height: 30px; }
.cp-ask h1 { margin: 0 0 8px; font-size: 22px; }
.cp-ask-who { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.cp-field { display: grid; gap: 6px; text-align: left; margin: 18px 0 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cp-field textarea { font: 400 14px/1.45 var(--ui-font); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.cp-ask .btn { width: 100%; }
.cp-ask-msg { font-size: 14px; margin: 12px 0 0; } .cp-ask-msg.is-ok { color: #0f6b47; font-weight: 600; } .cp-ask-msg.is-err { color: #a02323; }
.cp-ask-out { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted); }
.cp-error { background: #fff1f1; border: 1px solid #f3b4b4; color: #8f1d1d; border-radius: 10px; padding: 12px 14px; }
.cp-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px; } .cp-foot a { color: inherit; }
/* sign-in page */
body.cp-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 600px at 20% -10%, #4b18b8 0%, var(--brand) 45%, #1d0057 100%); padding: 20px; }
.cp-login-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 38px 32px 30px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); border-top: 6px solid var(--accent); }
.cp-login-logo { height: 42px; margin-bottom: 14px; }
.cp-login-card h1 { margin: 0; font-size: 26px; color: var(--brand); letter-spacing: -.02em; }
.cp-login-lead { color: var(--muted); font-size: 14.5px; margin: 8px 0 24px; line-height: 1.5; }
.cp-sso { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15px; margin-top: 10px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.cp-sso:hover { border-color: var(--brand-200); box-shadow: 0 6px 18px rgba(47,0,132,.12); }
.cp-sso svg { width: 20px; height: 20px; }
.cp-login-note { font-size: 12.5px; color: var(--muted); margin: 20px 0 0; line-height: 1.5; }
@media (max-width: 760px) {
  .cp-top-in { padding: 10px 14px; } .cp-me, .cp-brand span { display: none; }
  .cp-main { padding: 18px 14px 40px; } .cp-banners { padding: 0 14px; }
  .cp-quote { grid-template-columns: 1fr; } .cp-user { grid-template-columns: 1fr; }
  .cp-table thead { display: none; } .cp-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .cp-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 14px; }
  .cp-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; }
  .cp-table .num { text-align: right; }
}
