/* Technosquare Hub 1.10.0 — partners.css (public partner page, partner workspace, admin partners + commissions). Builds on leads.css + deals.css. */
/* ---------- partner workspace shell ---------- */
.pw-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.pw-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.pw-top .in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 22px; }
.pw-top .lg { display: flex; align-items: center; gap: 12px; text-decoration: none; } .pw-top .lg img { height: 38px; width: auto; }
.pw-top .lg .cw { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; padding-left: 12px; border-left: 1.5px solid var(--line); }
.pw-top nav { display: flex; gap: 6px; } .pw-top nav a { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.pw-top nav a.on { color: var(--deep); background: var(--blue-bg); } .pw-top nav a:hover { color: var(--ink); }
.pw-top .rt { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pw-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 24px 70px; width: 100%; flex: 1 0 auto; }
.pw-bnav { display: none; }
@media (max-width: 860px) { .pw-top nav { display: none; } .pw-top .lg .cw { display: none; } .pw-top .in { padding: 10px 14px; gap: 10px; } .pw-wrap { padding: 16px 14px 96px; }
  .pw-bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; box-shadow: 0 -10px 30px rgba(11,31,58,.08); }
  .pw-bnav a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 2px; border-radius: 10px; text-decoration: none; }
  .pw-bnav a i { font-size: 20px; } .pw-bnav a.on { color: var(--primary); background: var(--blue-bg); } }
/* hero tint for partner pages: warmer green-blue so a partner always knows where they are */
.hx.pw { background: radial-gradient(900px 380px at 100% 0%, rgba(61,187,138,.30), transparent 60%), linear-gradient(135deg, #0B1F3A, #0E3A55 55%, #0D7A53); }
.reflink { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); max-width: 620px; }
.reflink .u { flex: 1; min-width: 0; font-weight: 700; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .reflink .u small { display: block; font-size: 11px; color: #BFE9D6; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.terms-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #E3FFF3; font-size: 12.5px; font-weight: 700; }
/* protection countdown */
.prot { min-width: 120px; } .prot .t { font-size: 12.5px; font-weight: 700; } .prot .t small { color: var(--muted); font-weight: 600; }
.prot .bar2 { margin-top: 5px; height: 6px; } .prot .bar2 i { background: linear-gradient(90deg, #3DBB8A, #6AD1A8); } .prot.warn .bar2 i { background: linear-gradient(90deg, #F5B544, #F7C873); } .prot.late .bar2 i { background: #E8675C; }
/* partner-visible stage chips */
.pst { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pst::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pst.reg { background: #F1F4FA; color: #5B6B86; } .pst.acc { background: var(--blue-bg); color: var(--primary); } .pst.talk { background: var(--purple-bg); color: var(--purple); }
.pst.quote { background: var(--amber-bg); color: var(--amber); } .pst.won { background: var(--green-bg); color: var(--green); } .pst.lost, .pst.rej { background: var(--red-bg); color: var(--red); } .pst.rel { background: #EEF0F4; color: #7A8597; }
/* register a lead */
.rl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.rl-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; } .chk .ci { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--blue-bg); color: var(--primary); }
.dupbox { white-space: normal; border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.dupbox .vi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.dupbox.d-ok { background: var(--green-bg); color: #0A5C3F; } .dupbox.d-ok .vi { background: linear-gradient(135deg, #0D7A53, #3DBB8A); }
.dupbox.d-no { background: var(--red-bg); color: #8A231B; } .dupbox.d-no .vi { background: linear-gradient(135deg, #B42E24, #E8675C); }
.dupbox.d-wait { background: #F1F4FA; color: #3B4270; } .dupbox.d-wait .vi { background: linear-gradient(135deg, #12336A, #4A90F0); }
.dupbox b { display: block; font-size: 13.5px; }
/* agreement reader */
.agr { max-height: 52vh; overflow-y: auto; border: 1px solid #E6ECF5; border-radius: 16px; padding: 22px 24px; background: #FBFCFE; font-size: 14px; line-height: 1.7; color: #26324A; }
.agr h4 { font-size: 15px; font-weight: 800; margin: 18px 0 6px; color: var(--deep); } .agr h4:first-child { margin-top: 0; } .agr ol { padding-left: 20px; margin: 0; } .agr li { margin-bottom: 6px; }
.agr-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.agr-meta span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 10px; background: #F1F4FA; }
.agr-prog { height: 4px; border-radius: 4px; background: #E6ECF5; overflow: hidden; margin-top: 10px; } .agr-prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #3DBB8A, #4A90F0); }
/* earnings */
.ebal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid #E6ECF5; border-radius: 18px; overflow: hidden; background: #fff; }
.ebal > div { padding: 18px 20px; border-left: 1px solid #EDF1F7; } .ebal > div:first-child { border-left: 0; }
.ebal small { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .ebal b { font-size: 24px; font-family: var(--head-font); color: var(--deep); } .ebal span { font-size: 12.5px; color: var(--muted); }
.ebal .g b { color: var(--green); } .ebal .a b { color: var(--amber); }
.cst { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.cst.accrued { background: var(--amber-bg); color: var(--amber); } .cst.approved { background: var(--blue-bg); color: var(--primary); } .cst.paid { background: var(--green-bg); color: var(--green); } .cst.void { background: #EEF0F4; color: #7A8597; text-decoration: line-through; }
.basis { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.payrow { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #EDF1F7; } .payrow:first-child { border-top: 0; }
.payrow .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); font-size: 20px; }
.payrow .t1 { font-weight: 800; } .payrow .t2 { font-size: 12.5px; color: var(--muted); } .payrow .amt { font-weight: 800; font-family: var(--head-font); font-size: 17px; color: var(--deep); text-align: right; }
/* resources */
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resc { border: 1px solid #E6ECF5; border-radius: 18px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.resc .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; }
.resc .t1 { font-weight: 800; } .resc p { font-size: 13px; color: var(--muted); margin: 0; flex: 1; }
.msgbox { border-radius: 14px; background: #F6F8FC; border: 1px solid #E6ECF5; padding: 12px 14px; font-size: 13px; line-height: 1.55; white-space: pre-line; }
/* admin partners */
.ptab-av { width: 40px; height: 40px; }
.termsg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.termsg div { border-radius: 14px; padding: 12px 14px; background: #F6F8FC; border: 1px solid #E6ECF5; } .termsg small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .termsg b { font-size: 17px; color: var(--deep); }
.typep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.typep label { border: 1.5px solid #E1E7F1; border-radius: 16px; padding: 14px; cursor: pointer; display: flex; gap: 10px; } .typep label.on { border-color: rgba(47,111,228,.45); background: #F6F9FF; box-shadow: 0 0 0 3px rgba(47,111,228,.08); }
.typep b { display: block; font-size: 14px; } .typep small { color: var(--muted); font-size: 12px; line-height: 1.45; display: block; }
.typep .rd { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9D3EA; flex-shrink: 0; margin-top: 2px; } .typep label.on .rd { box-shadow: inset 0 0 0 5px var(--primary); }
.match { border-radius: 14px; padding: 10px 12px; background: var(--red-bg); color: #8A231B; font-size: 12.5px; display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.match a { color: #8A231B; font-weight: 800; text-decoration: underline; }
.selbar { position: sticky; bottom: 14px; z-index: 5; margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 18px; background: #0B1F3A; color: #fff; box-shadow: 0 20px 40px rgba(11,31,58,.35); }
.selbar b { font-size: 15px; } .selbar .sp { flex: 1; }
.ck { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 2px #C9D3EA; display: inline-block; vertical-align: middle; cursor: pointer; background: #fff; } .ck.on { background: var(--primary); box-shadow: none; position: relative; } .ck.on::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.costline { border-radius: 14px; background: #FFF8EA; border: 1px solid #F6DFAE; padding: 12px 14px; font-size: 13px; }
.costline .r { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; } .costline .r b { font-family: var(--head-font); }
/* public programme page */
.pp { background: #fff; }
.pp-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1000px 500px at 85% -10%, rgba(61,187,138,.35), transparent 60%), radial-gradient(900px 600px at 0% 120%, rgba(74,144,240,.35), transparent 60%), linear-gradient(140deg, #0B1F3A, #12336A 60%, #0E4B5A); }
.pp-nav { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .pp-nav img { height: 40px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.pp-in { max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; position: relative; z-index: 1; }
.pp-in h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 16px; font-weight: 800; } .pp-in h1 em { font-style: normal; color: #7FE3B8; }
.pp-in p.lead { font-size: 17px; line-height: 1.65; color: #D6E4FF; max-width: 54ch; }
.pp-eye { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pp-proof { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; } .pp-proof b { display: block; font-size: 26px; font-weight: 800; } .pp-proof span { font-size: 12.5px; color: #BFD3F7; }
.pp-form { background: #fff; color: var(--ink); border-radius: 26px; padding: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.pp-form h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; } .pp-form .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.pp-sec { max-width: 1180px; margin: 0 auto; padding: 64px 24px; } .pp-sec h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; } .pp-sec > p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.pp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pp-step { border-radius: 20px; padding: 20px; background: linear-gradient(180deg, #F7FAFF, #fff); border: 1px solid #E3EBF7; } .pp-step .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #12336A, #2F6FE4); margin-bottom: 12px; }
.pp-step b { display: block; font-size: 15.5px; margin-bottom: 4px; } .pp-step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.pp-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.pp-type { border-radius: 22px; padding: 24px; border: 1px solid #E3EBF7; background: #fff; box-shadow: 0 20px 40px rgba(11,31,58,.06); }
.pp-type .big { font-size: 38px; font-weight: 800; font-family: var(--head-font); color: var(--deep); letter-spacing: -.02em; } .pp-type .big small { font-size: 15px; color: var(--muted); font-weight: 700; }
.pp-type ul { padding-left: 18px; margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: #3B4270; }
.pp-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; } .pp-faq div { border-radius: 16px; background: #F7F9FD; padding: 16px 18px; } .pp-faq b { display: block; margin-bottom: 4px; } .pp-faq p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.pp-foot { background: #0B1F3A; color: #9DB3D8; font-size: 13px; text-align: center; padding: 22px 16px; }
@media (max-width: 1099.98px) { .rl-grid { grid-template-columns: minmax(0, 1fr); } .rl-side { position: static; } .res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .pp-in { grid-template-columns: minmax(0, 1fr); } .pp-in h1 { font-size: 36px; } .pp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .ebal { grid-template-columns: minmax(0, 1fr); } .ebal > div { border-left: 0; border-top: 1px solid #EDF1F7; } .ebal > div:first-child { border-top: 0; }
  .res, .pp-types, .pp-faq, .pp-steps, .termsg, .typep { grid-template-columns: minmax(0, 1fr); } .pp-in h1 { font-size: 30px; } .pp-sec { padding: 44px 16px; } .pp-in { padding: 18px 16px 50px; } .pp-nav { padding: 14px 16px; } .pp-form { padding: 20px; border-radius: 22px; }
  .reflink { flex-wrap: wrap; } .reflink .btn-x { flex: 1; } }
/* tables that turn into cards below desktop width (partner + admin partner screens) */
@media (max-width: 1099.98px) {
  .lt.cardt { border-spacing: 0; margin-top: 0; } .lt.cardt thead { display: none; }
  .lt.cardt, .lt.cardt tbody { display: block; width: 100%; }
  .lt.cardt tbody tr { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; border: 1px solid #E6ECF5; border-radius: 16px; padding: 14px; margin-bottom: 12px; background: #fff; box-shadow: 0 6px 18px rgba(11,31,58,.05); }
  .lt.cardt tbody tr:hover { transform: none; } .lt.cardt tbody tr:hover td:first-child { box-shadow: none; }
  .lt.cardt tbody td, .lt.cardt tbody td:first-child, .lt.cardt tbody td:last-child { display: block; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent !important; min-width: 0; }
  .lt.cardt td[data-l]::before { content: attr(data-l); display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7A8AA3; margin-bottom: 5px; }
  .lt.cardt td.num { text-align: left; } .lt.cardt td.t { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid #EDF1F7 !important; }
  .lt.cardt td.act { grid-column: 1 / -1; text-align: left; } .lt.cardt td.act .d-flex { justify-content: flex-start !important; }
  .lt.cardt td.cb { position: absolute; top: 16px; right: 14px; } .lt.cardt .hide-t { display: block; }
}
.segp.wrap { height: auto; flex-wrap: wrap; } .segp.wrap button { height: 38px; flex: 1 1 40%; }
@media (max-width: 860px) { .pw-wrap .kpis { margin: 0 -14px; padding: 4px 14px 10px; } }
.dupbox > div { min-width: 0; flex: 1; } .fg > div { min-width: 0; }
.pw-top nav a { white-space: nowrap; }
.pw-top .cl-user { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px; }
.pw-top .cl-user .nm { line-height: 1.15; } .pw-top .cl-user .nm b { font-size: 13px; display: block; white-space: nowrap; } .pw-top .cl-user .nm span { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1199.98px) { .pw-top .cl-user .nm { display: none !important; } .pw-top .cl-user { padding: 3px; } }
.opt.locked { opacity: .6; } .opt.locked .sw2 { opacity: .5; }
