/* SaaS. Parte 1: telas da equipe (aba SaaS), no visual do Hub. Parte 2: portal do assinante (body.sp), visual próprio.
   Nada aqui vale para o portal dos clientes da agência nem para as outras telas da equipe. */

/* ---------- 1. Equipe ---------- */
.ss-crumb{font-size:13px;color:var(--muted);margin:0 0 8px}
.ss-table{padding:0;overflow-x:auto}
.ss-table table{width:100%;min-width:900px;border-collapse:collapse}
.ss-table th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:14px 16px;border-bottom:1px solid var(--line)}
.ss-table td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:top;font-size:14px}
.ss-table tr:last-child td{border-bottom:0}
.ss-table td small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.ss-table .tag{margin:0 2px 4px 0}
.ss-off{opacity:.6}
.ss-warn{color:var(--amber)}
.ss-cols{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start}
.ss-col{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:20px}
.ss-cols>.ss-col:first-child{flex:3 1 520px}
.ss-cols>.ss-col:last-child{flex:2 1 340px}
section.ss-col{display:block}
.ss-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.ss-price{text-align:right}
.ss-price b{display:block;font-size:18px}
.ss-price small{color:var(--muted)}
.ss-switch{width:44px;height:26px;border-radius:999px;border:0;background:var(--line);position:relative;flex:none;cursor:pointer;padding:0}
.ss-switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--muted);transition:left .15s}
.ss-switch[aria-checked=true]{background:var(--accent)}
.ss-switch[aria-checked=true]::after{left:21px;background:var(--accent-ink)}
.ss-switch:disabled{cursor:default;opacity:.6}
.ss-uses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:12px}
.ss-use-top{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.ss-bar{height:8px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:8px}
.ss-bar i{display:block;height:100%;border-radius:999px;background:var(--accent)}
.ss-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.ss-plan{position:relative;display:block;cursor:pointer}
.ss-plan input{position:absolute;opacity:0}
.ss-plan span{display:block;height:100%;box-sizing:border-box;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel-2)}
.ss-plan b{display:block;font-size:15px}
.ss-plan strong{display:block;font-size:22px;margin:6px 0}
.ss-plan small{color:var(--muted)}
.ss-plan input:checked+span{border-color:var(--accent);background:var(--nv-soft,rgba(23,167,254,.2))}
.ss-plan input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.ss-total{font-size:22px}
.ss-steps{margin:8px 0 0;padding-left:18px;font-size:14px;line-height:1.6;color:var(--soft)}
.ss-combos{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-bottom:20px}
.ss-combo{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.ss-combo.rec{border-color:var(--accent)}
.ss-combo ul{margin:6px 0 12px;padding-left:18px;font-size:14px;line-height:1.7;color:var(--soft);flex:1}
.ss-big{font-size:32px;font-weight:600;margin:0}
.ss-big small{font-size:14px;font-weight:400;color:var(--muted)}
@media (max-width:700px){.ss-grid,.ss-uses{grid-template-columns:1fr}}

/* ---------- 2. Portal do assinante ---------- */
body.sp.sp.sp{--bg:#F0F3F9;--panel:#fff;--panel-2:#F6F8FC;--line:#E4E9F2;--ink:#0B1B3F;--soft:#33415F;--muted:#55648A;--link:#063CB9;--accent:#063CB9;--accent-ink:#fff;--green:#0B6B46;--amber:#7A4900;--red:#A2311B;--nv-solid:#fff;--nv-glow1:#E3ECFB;--nv-glow2:#E8F0FC;--nv-glow3:#F0F3F9;--nv-soft:rgba(6,60,185,.1);color-scheme:light}
body.sp .nv-top{display:none}
body.sp .shell{display:grid;grid-template-columns:240px minmax(0,1fr);padding:0;max-width:none;min-height:100vh}
body.sp .sidebar{display:flex;position:sticky;top:0;height:100vh;overflow-y:auto;background:#032160;border-right:0;padding:22px 14px 16px;gap:10px;color:#fff}
body.sp .brand{padding:0 6px;gap:2px}
body.sp .brand img{width:112px;height:auto}
body.sp .brand span{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:#B7C8EE}
body.sp .nav{gap:3px}
body.sp .nav a{min-height:42px;border-radius:12px;font-weight:500;font-size:14.5px;color:#DCE6FB}
body.sp .nav a:hover{background:rgba(255,255,255,.08);color:#fff}
body.sp .nav a.active{background:#DCEBFF;color:#032160;font-weight:600}
body.sp .nav .badge{background:#17A7FE;color:#04163F}
body.sp .nav-label{color:#9DB3E3;letter-spacing:.1em;font-weight:600}
body.sp .nav a.sp-locked{color:#9DB3E3}
body.sp .nav a.sp-locked .pill{background:none;border:1px solid #5F7DBF;color:#C9D8F5;font-weight:600;letter-spacing:0;font-size:11px}
.sp-wa{margin-top:auto;display:flex;gap:10px;align-items:center;padding:12px;border-radius:14px;background:#0B2F7A;font-size:12px;color:#B7C8EE}
.sp-wa b{display:block;color:#fff;font-size:13px}
.sp-wa>span{width:32px;height:32px;border-radius:10px;background:#12408F;color:#6FE3AE;display:grid;place-items:center;flex:none}
.sp-wa.off>span{color:#FFC661}
body.sp .sp-wa+.profile{margin-top:0}
body.sp .profile{background:none;border:0;padding:8px 6px 0;color:#B7C8EE}
body.sp .profile b{color:#fff}
body.sp .profile small{color:#B7C8EE}
body.sp .profile .link-btn{color:#B7C8EE}
body.sp .profile .avatar{background:#DCE6FA;color:#032160}
body.sp .workspace{min-width:0}
body.sp .content{max-width:1320px;margin:0 auto;padding:8px 28px 40px}
.sp-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 28px 0;max-width:1320px;width:100%;margin:0 auto;box-sizing:border-box}
.sp-tabs{display:none}
body.sp .card{border-radius:20px;border-color:#E4E9F2;box-shadow:0 1px 2px rgba(3,33,96,.04);backdrop-filter:none}
body.sp h1{font-weight:700;font-size:34px;letter-spacing:-.02em}
body.sp h2{font-weight:600}
body.sp .btn{border-radius:14px;background:#fff;border-color:#E1E7F2;font-weight:600}
body.sp .btn.primary{background:#063CB9;border-color:#063CB9;color:#fff;box-shadow:0 6px 16px rgba(6,60,185,.22)}
body.sp .btn.small{border-radius:10px}
body.sp .tag{background:#EEF2F8;color:#3D4C73;font-weight:600}
body.sp .tag.blue{background:#E3EEFF;color:#063CB9}
body.sp .tag.green{background:#DDF3E8;color:#0B6B46}
body.sp .tag.amber{background:#FBEBCB;color:#7A4900}
body.sp .tag.red{background:#FDE5E0;color:#A2311B}
body.sp .review{background:#FBEBCB;color:#7A4900}
.sp-hello{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:10px 0 18px}
.sp-hello h1{margin:2px 0 0}
.sp-date{margin:0;font-size:13px;font-weight:500;color:var(--muted)}
.sp-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.sp-kpi{padding:16px 18px}
.sp-kpi-l{display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:500;color:var(--muted)}
.sp-ic{width:30px;height:30px;border-radius:9px;background:#E3EEFF;color:#063CB9;display:grid;place-items:center;flex:none}
.sp-kpi-v{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:10px}
.sp-kpi-v b{font-size:32px;font-weight:700;letter-spacing:-.02em;line-height:1}
.sp-main{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-top:16px}
.sp-left{flex:5 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.sp-right{flex:3 1 320px;min-width:0;display:flex;flex-direction:column;gap:16px}
.sp-scroll{overflow-x:auto}
.sp-cols{display:grid;grid-template-columns:repeat(var(--n,4),minmax(190px,1fr));gap:12px}
.sp-col{background:#F6F8FC;border:1px solid #E4E9F2;border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:10px;min-width:0}
.sp-col-h{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13.5px;padding:4px 4px 2px}
.sp-col-h i{width:9px;height:9px;border-radius:50%;flex:none}
.sp-col-h span{margin-left:auto;font-size:12px;background:#fff;border:1px solid #E4E9F2;border-radius:8px;padding:1px 8px}
.sp-ct{background:#fff;border:1px solid #E4E9F2;border-radius:14px;padding:11px;display:flex;flex-direction:column;gap:8px}
.sp-ct-t{display:flex;gap:10px;align-items:center;min-width:0}
.sp-ct-t div{min-width:0}
.sp-ct-t b,.sp-ct-t small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-ct-t b{font-size:13.5px}
.sp-ct-t small{font-size:12px;color:var(--muted)}
.sp-ct-f{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sp-mini{white-space:nowrap;font:600 12px/1 inherit;font-family:inherit;border:0;border-radius:10px;padding:9px 11px;background:#E3EEFF;color:#063CB9;cursor:pointer;min-height:32px}
.sp-mini.dark{background:#032160;color:#fff}
.sp-none{margin:0;font-size:12.5px;color:var(--muted);text-align:center;padding:6px}
body.sp .avatar.sm{background:#E3EEFF;color:#032160}
.sp-inbox{padding-left:12px;padding-right:12px}
.sp-inbox .section-title,.sp-all{padding:0 8px}
.sp-msg{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:0;background:none;padding:11px 8px;border-radius:14px;cursor:pointer;font:inherit;color:inherit}
.sp-msg:hover{background:#F6F8FC}
.sp-msg.hot{background:#FFF1EE}
.sp-msg .grow{min-width:0}
.sp-msg b,.sp-msg small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-msg small{font-size:13px;color:var(--soft)}
.sp-msg time{font-size:11.5px;font-weight:600;color:#063CB9;flex:none}
.sp-all{display:block;margin-top:8px;font-size:13px;font-weight:600}
.sp-task{display:flex;align-items:center;gap:12px;padding:11px 2px;border-bottom:1px solid #EEF2F8;font-size:14px}
.sp-task:last-child{border-bottom:0}
.sp-task small{display:block;font-size:12.5px;color:var(--muted)}
.sp-box{width:20px;height:20px;border-radius:7px;border:2px solid #9AA8C7;flex:none}
.sp-late{color:var(--red)!important;font-weight:600}
.sp-mods{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.sp-mod{display:flex;flex-direction:column;gap:6px;align-items:flex-start;color:inherit;text-decoration:none}
.sp-mod p{margin:0 0 8px;color:var(--muted);flex:1}
.sp-plan{font-size:26px;font-weight:700;margin:2px 0 8px}
.sp-price{text-align:right}
.sp-price b{display:block;font-size:30px;font-weight:700;letter-spacing:-.02em}
.sp-price b small{font-size:14px;font-weight:500;color:var(--muted)}
.sp-price>small{color:var(--muted)}
.sp-chk{width:22px;height:22px;border-radius:50%;background:#E3EEFF;color:#063CB9;display:grid;place-items:center;flex:none}
.sp-chk.off{background:#EEF2F8;color:#7C8AA8}
.sp-uses{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-top:12px}
.sp-use{background:#F6F8FC;border:1px solid #E4E9F2;border-radius:16px;padding:14px}
.sp-use span{display:block;font-size:13px;color:var(--muted)}
.sp-use b{display:block;font-size:20px;font-weight:700;margin-top:4px}
.sp-up{background:#032160 radial-gradient(circle at 100% 0,#0B3FB0 0,rgba(11,63,176,0) 60%);color:#fff;border-radius:20px;padding:22px}
.sp-up h2{color:#fff;font-size:20px;margin:12px 0 0}
.sp-up p{color:#D7E3FB;line-height:1.55;margin:8px 0 16px}
body.sp .sp-up .tag{background:#17A7FE;color:#04163F}
body.sp .sp-up .btn{background:#fff;color:#032160;border-color:#fff}
@media (max-width:900px){
  body.sp .shell{display:block;padding-bottom:76px}
  body.sp .sidebar{display:none;position:fixed;inset:0 20% 0 0;z-index:40;height:auto}
  body.sp.menu-open .sidebar{display:flex}
  body.sp .content{padding:4px 16px 32px}
  .sp-top{padding:12px 16px 0}
  body.sp h1{font-size:28px}
  .sp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sp-kpi{padding:14px}
  .sp-kpi-v b{font-size:26px}
  body.sp .sp-tabs{display:flex;gap:4px;position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid #E4E9F2;padding:8px 10px calc(10px + env(safe-area-inset-bottom))}
  .sp-tabs a,.sp-tabs button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;border:0;background:none;border-radius:12px;font:500 11.5px/1.2 inherit;font-family:inherit;color:#55648A;text-decoration:none;cursor:pointer}
  .sp-tabs a.on{background:#DCEBFF;color:#032160;font-weight:600}
}
