
/* SAHAY AI external CRM portal */
body:has(.sahay-login-page),body:has(.sahay-portal-shell){background:#f3f6fb}
.sahay-login-page{min-height:100vh;display:grid;grid-template-columns:minmax(380px,48%) 1fr;background:#f5f7fb;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172b49;margin:0}
.sahay-login-card{width:min(440px,calc(100% - 48px));margin:auto;padding:42px;background:#fff;border:1px solid #e3eaf3;border-radius:22px;box-shadow:0 24px 70px #142e5012}
.sahay-login-brand,.sahay-portal-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.sahay-brand-mark{width:43px;height:43px;border-radius:13px;background:linear-gradient(145deg,#4c91ed,#0c3a70);display:grid;place-items:center;color:#fff;font-size:22px;font-weight:900;box-shadow:0 7px 18px #1a5ba53b}
.sahay-login-brand strong,.sahay-portal-brand strong{display:block;font-size:18px;letter-spacing:1.2px;color:#122c50}
.sahay-login-brand small,.sahay-portal-brand small{display:block;font-size:9px;letter-spacing:1.6px;color:#8392a8;margin-top:3px}
.sahay-login-intro{margin:48px 0 26px}.sahay-portal-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#4381c7}
.sahay-login-intro h1{font-size:34px;letter-spacing:-1px;color:#142d50;margin:10px 0}.sahay-login-intro p{color:#718198;line-height:1.65;font-size:14px}
#sahay-portal-loginform p{margin:0 0 16px}#sahay-portal-loginform label{display:block;font-size:12px;font-weight:700;color:#40536d;margin-bottom:7px}
#sahay-portal-loginform input[type=text],#sahay-portal-loginform input[type=password]{width:100%;height:46px;border:1px solid #dce4ee;border-radius:9px;padding:0 13px;box-sizing:border-box;background:#fbfcfe;color:#172b49;outline:none}
#sahay-portal-loginform input:focus{border-color:#397bd0;box-shadow:0 0 0 3px #397bd01a}
#sahay-portal-loginform .login-remember label{display:flex;align-items:center;gap:8px;font-weight:500;color:#687b93}
#sahay-portal-loginform .button-primary{width:100%;height:47px;border:0;border-radius:9px;background:#285eea;color:#fff;font-weight:700;font-size:14px;cursor:pointer;text-shadow:none;box-shadow:0 7px 16px #285eea30}
.sahay-login-links{text-align:center;margin-top:15px}.sahay-login-links a{font-size:12px;color:#2866c4;text-decoration:none}
.sahay-login-security{border-top:1px solid #edf1f6;margin-top:28px;padding-top:18px;color:#8290a2;font-size:11px;line-height:1.5}.sahay-login-security span{margin-right:5px}
.sahay-login-side{background:radial-gradient(circle at 78% 18%,#28568c 0,#173c68 32%,#0b1e39 80%);color:#fff;padding:8vw 7vw;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.sahay-login-side:after{content:"";position:absolute;width:480px;height:480px;border:1px solid #ffffff14;border-radius:50%;right:-170px;bottom:-200px;box-shadow:0 0 0 45px #ffffff08,0 0 0 90px #ffffff05}
.sahay-login-side-content{max-width:510px;margin:auto 0;position:relative;z-index:1}.sahay-login-side .sahay-portal-eyebrow{color:#a9ceff}
.sahay-login-side h2{font-size:clamp(32px,4vw,54px);line-height:1.12;letter-spacing:-1.7px;margin:20px 0;color:#fff}
.sahay-login-side-content>p{color:#c1d0e2;line-height:1.8;max-width:430px;font-size:15px;margin-bottom:35px}
.sahay-login-feature{display:flex;align-items:center;gap:13px;color:#e1ebf8;margin:17px 0;font-size:14px}.sahay-login-feature span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#ffffff16;color:#b8d7ff}
.sahay-login-side-foot{position:relative;z-index:1;color:#9bb2cf;font-size:9px;letter-spacing:2px}
.sahay-login-notice{padding:11px 13px;background:#eaf8ef;color:#167343;border-radius:8px;margin-bottom:15px;font-size:12px}
.sahay-portal-shell{display:flex;min-height:100vh;background:#f3f6fb;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172b49;margin:0}
.sahay-portal-sidebar{width:258px;flex:0 0 258px;background:#101f35;color:#d5e0ef;display:flex;flex-direction:column;padding:22px 15px;box-sizing:border-box;min-height:100vh}
.sahay-portal-brand{padding:4px 9px 25px;border-bottom:1px solid #ffffff16}.sahay-portal-brand strong{color:#fff}.sahay-portal-brand small{color:#8ea5c2}
.sahay-portal-workspace{margin:20px 4px 18px;padding:13px;border:1px solid #ffffff1a;border-radius:10px;background:#ffffff09}.sahay-portal-workspace small{display:block;color:#8fa6c4;font-size:9px;letter-spacing:1.5px;margin-bottom:7px}.sahay-portal-workspace strong{color:#fff;font-size:13px}
.sahay-portal-nav{display:grid;gap:5px}.sahay-portal-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:8px;color:#b7c6d9;text-decoration:none;font-size:13px;font-weight:600;transition:.15s}.sahay-portal-nav a span{width:20px;text-align:center;font-size:17px;color:#8faed3}.sahay-portal-nav a:hover{background:#ffffff0c;color:#fff}.sahay-portal-nav a.active{background:#285eea;color:#fff;box-shadow:0 6px 16px #0b153b55}.sahay-portal-nav a.active span{color:#fff}
.sahay-portal-sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff17;padding:17px 4px 0}.sahay-portal-user{display:flex;align-items:center;gap:10px;margin-bottom:15px}.sahay-portal-user-avatar{width:34px;height:34px;border-radius:50%;background:#285eea;color:#fff;display:grid;place-items:center;font-weight:800}.sahay-portal-user strong,.sahay-portal-user small{display:block}.sahay-portal-user strong{font-size:12px;color:#fff}.sahay-portal-user small{font-size:10px;color:#8fa6c4;margin-top:3px}.sahay-portal-logout{color:#aebed2;text-decoration:none;font-size:12px;display:block;padding:9px 4px}
.sahay-portal-content{min-width:0;flex:1;padding:28px 34px 20px}.sahay-portal-header{display:flex;align-items:center;justify-content:space-between;padding:22px 27px;border-radius:15px;background:linear-gradient(115deg,#102746,#1b4779);color:#fff;box-shadow:0 12px 30px #18385b20}.sahay-portal-header h1{font-size:25px;margin:7px 0 3px;color:#fff}.sahay-portal-header p{margin:0;color:#c4d5e9;font-size:12px}.sahay-portal-header .sahay-portal-eyebrow{color:#a8cfff}.sahay-portal-header-right{font-size:11px;color:#d7e4f4;background:#ffffff12;padding:10px 13px;border:1px solid #ffffff20;border-radius:8px}.sahay-online-dot{display:inline-block;width:7px;height:7px;background:#4bd18a;border-radius:50%;margin-right:7px}
.sahay-portal-main{padding-top:22px;min-height:65vh}.sahay-portal-main .sahay-wrap{max-width:none;margin:0}.sahay-portal-main .sahay-top{display:none}.sahay-portal-main .sahay-tabs{display:none}.sahay-portal-main .sahay-main{min-height:0}.sahay-portal-main .sahay-footer{display:none}
.sahay-portal-footer{border-top:1px solid #e1e8f1;padding:17px 0 0;margin-top:22px;color:#8997aa;font-size:10px}
.sahay-portal-alert,.sahay-portal-denied{background:#fff;border:1px solid #dfe7f1;border-radius:13px;padding:28px;max-width:700px}.sahay-portal-alert h2,.sahay-portal-denied h2{margin-top:0;color:#18385e}.sahay-portal-alert p,.sahay-portal-denied p{color:#718198}
@media(max-width:850px){.sahay-login-page{grid-template-columns:1fr}.sahay-login-side{display:none}.sahay-login-card{margin:35px auto}.sahay-portal-shell{display:block}.sahay-portal-sidebar{width:100%;min-height:0;padding:12px}.sahay-portal-brand{padding-bottom:12px}.sahay-portal-workspace,.sahay-portal-sidebar-bottom{display:none}.sahay-portal-nav{display:flex;overflow:auto;padding:8px 0}.sahay-portal-nav a{white-space:nowrap}.sahay-portal-content{padding:14px}.sahay-portal-header{padding:17px}.sahay-portal-header-right{display:none}}


/* v0.7.2: full-screen portal overlay; removes theme/Elementor header gaps */
html:has(.sahay-portal-shell), html:has(.sahay-login-page) {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
body:has(.sahay-portal-shell), body:has(.sahay-login-page) {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}
.sahay-portal-shell {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.sahay-portal-sidebar {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    flex-shrink: 0 !important;
}
.sahay-portal-content {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-width: none !important;
    width: auto !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
.sahay-portal-main {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}
.sahay-login-page {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: auto !important;
}
@media(max-width:850px) {
    .sahay-portal-shell { display:flex !important; flex-direction:column !important; }
    .sahay-portal-sidebar { width:100% !important; height:auto !important; min-height:0 !important; }
    .sahay-portal-content { height:auto !important; min-height:0 !important; flex:1 1 auto !important; }
}


/* SAHAY AI v0.8.0 — unified enterprise design system */
:root{--sahay-navy:#0b1d36;--sahay-blue:#2463eb;--sahay-ink:#142b4c;--sahay-muted:#71829b;--sahay-line:#e3eaf3;--sahay-bg:#f4f7fc}
.sahay-portal-shell{background:var(--sahay-bg)!important;color:var(--sahay-ink)!important}
.sahay-portal-sidebar{width:252px!important;flex:0 0 252px!important;background:linear-gradient(180deg,#0c1e38 0%,#071a33 100%)!important;padding:18px 14px 14px!important}
.sahay-portal-brand{padding:5px 10px 22px!important;border-bottom:1px solid #ffffff18!important}
.sahay-portal-brand .sahay-brand-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#3385f6,#1450a7)!important;font-size:22px}
.sahay-portal-brand strong{font-size:19px!important;letter-spacing:.7px!important}
.sahay-portal-brand small{font-size:9px!important;letter-spacing:1.8px!important}
.sahay-portal-workspace{margin:17px 1px 15px!important;padding:13px 12px!important;background:#ffffff0c!important;border:1px solid #ffffff18!important}
.sahay-portal-nav{gap:4px!important}
.sahay-portal-nav-label{padding:15px 10px 5px;color:#8fa6c3;font-size:9px;font-weight:800;letter-spacing:1.5px}
.sahay-portal-nav>a{padding:10px 11px!important;border-radius:8px!important;font-size:12px!important;color:#d3deed!important}
.sahay-portal-nav>a span{font-size:16px!important;color:#9cb5d3!important}
.sahay-portal-nav>a.active{background:#2463eb!important;color:#fff!important}
.sahay-portal-subnav{margin:0 0 5px 25px;padding:1px 0 3px 12px;border-left:1px solid #ffffff24;display:grid;gap:1px}
.sahay-portal-subnav a{display:flex;align-items:center;gap:8px;padding:6px 5px;color:#aebfd4;text-decoration:none;font-size:10px;border-radius:5px}
.sahay-portal-subnav a:hover{background:#ffffff0c;color:#fff}
.sahay-mini-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#9fb0c4}
.sahay-mini-dot.fb{background:#3983f7}.sahay-mini-dot.tt{background:#111}.sahay-mini-dot.yt{background:#f04444}.sahay-mini-dot.in{background:#2876b9}.sahay-mini-dot.tg{background:#39a9dc}
.sahay-portal-sidebar-bottom{padding-top:13px!important}
.sahay-portal-content{padding:0 27px 18px!important;background:#f5f7fc!important}
.sahay-portal-header{position:sticky!important;top:0!important;z-index:50!important;min-height:76px!important;margin:0 -27px 20px!important;padding:12px 27px!important;border-radius:0!important;background:#fff!important;color:#142b4c!important;border-bottom:1px solid #e5ebf3!important;box-shadow:0 2px 8px #0d25400a!important;display:flex!important;align-items:center!important;gap:24px!important}
.sahay-portal-header .sahay-portal-eyebrow,.sahay-portal-header-right{display:none!important}
.sahay-portal-header h1{font-size:22px!important;line-height:1.2!important;margin:0 0 3px!important;color:#132a4a!important;font-weight:800!important;letter-spacing:-.5px}
.sahay-portal-header p{font-size:11px!important;color:#71829b!important;margin:0!important}
.sahay-portal-header-tools{display:flex;align-items:center;gap:13px;margin-left:auto}
.sahay-global-search{width:min(390px,34vw);height:40px;border:1px solid #dfe6f0;border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 12px;background:#fbfcff}
.sahay-global-search span{font-size:21px;color:#6f829c}.sahay-global-search input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;width:100%;font-size:11px!important;color:#243a59!important;padding:0!important}
.sahay-header-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#2463eb;color:#fff;font-weight:800;font-size:13px}
.sahay-header-user strong,.sahay-header-user small{display:block;white-space:nowrap}.sahay-header-user strong{font-size:11px;color:#1b2f4d}.sahay-header-user small{font-size:9px;color:#7a8ba2;margin-top:2px}
.sahay-portal-main{padding:0!important;min-height:0!important}
.sahay-portal-footer{font-size:9px!important;margin-top:22px!important;padding-top:12px!important}
.sahay-v8-dashboard{max-width:1600px;margin:0 auto}
.sahay-v8-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:17px}
.sahay-v8-kpi{min-height:98px;border:1px solid #e0e8f3;border-radius:13px;padding:17px 18px;background:#fff;display:flex;align-items:center;gap:15px;box-shadow:0 3px 12px #19385b08;box-sizing:border-box}
.sahay-v8-kpi.blue{background:linear-gradient(120deg,#f0f7ff,#fff);border-color:#dceafa}.sahay-v8-kpi.green{background:linear-gradient(120deg,#effcf6,#fff);border-color:#d9f1e5}.sahay-v8-kpi.purple{background:linear-gradient(120deg,#f7f2ff,#fff);border-color:#e9defb}.sahay-v8-kpi.orange{background:linear-gradient(120deg,#fff7ef,#fff);border-color:#f7e5d5}
.sahay-v8-kpi-icon{width:54px;height:54px;flex:0 0 54px;border-radius:13px;display:grid;place-items:center;font-size:25px;font-weight:800;background:#e1efff;color:#1765dd}.sahay-v8-kpi.green .sahay-v8-kpi-icon{background:#d9f9e9;color:#08a85c}.sahay-v8-kpi.purple .sahay-v8-kpi-icon{background:#eee4ff;color:#8547e8}.sahay-v8-kpi.orange .sahay-v8-kpi-icon{background:#ffead8;color:#f07a24}
.sahay-v8-kpi small,.sahay-v8-kpi strong,.sahay-v8-kpi em{display:block}.sahay-v8-kpi small{font-size:11px;color:#536780;font-weight:650}.sahay-v8-kpi strong{font-size:27px;line-height:1.35;color:#102b50;font-weight:850;letter-spacing:-.8px}.sahay-v8-kpi em{font-style:normal;font-size:9px;color:#8392a6}
.sahay-v8-middle{display:grid;grid-template-columns:minmax(0,2fr) minmax(245px,1.18fr) minmax(190px,.78fr);gap:15px;margin-bottom:15px}
.sahay-v8-lower{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(235px,.92fr) minmax(235px,1fr);gap:15px;margin-bottom:15px}
.sahay-v8-bottom{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.95fr);gap:15px}
.sahay-v8-card{background:#fff;border:1px solid #e1e8f2;border-radius:13px;padding:17px 18px;box-shadow:0 3px 12px #19385b08;min-width:0;box-sizing:border-box}
.sahay-v8-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}
.sahay-v8-card-head h3{font-size:14px!important;color:#152c4c!important;font-weight:800!important;margin:0 0 4px!important}
.sahay-v8-card-head p{font-size:10px!important;color:#8291a6!important;margin:0!important}
.sahay-v8-card-head>a{font-size:10px;color:#2162dc;text-decoration:none;font-weight:700;white-space:nowrap}
.sahay-v8-period{font-size:9px;color:#61748e;padding:6px 9px;border:1px solid #e1e8f1;border-radius:7px;background:#fbfcfe}
.sahay-v8-chart{height:164px;display:flex;position:relative;border-bottom:1px solid #e7edf5;background:repeating-linear-gradient(to bottom,transparent 0,transparent 39px,#edf1f7 40px)}
.sahay-v8-chart-grid{display:flex;flex-direction:column;justify-content:space-between;padding:0 9px 0 0;color:#93a0b2;font-size:8px}
.sahay-v8-chart-empty{flex:1;display:grid;place-items:center}
.sahay-v8-chart-placeholder{text-align:center;color:#91a0b4;display:flex;align-items:center;flex-direction:column;gap:5px}
.sahay-v8-chart-placeholder span{font-size:25px;color:#b5c7df}.sahay-v8-chart-placeholder strong{font-size:10px;color:#5e718a}.sahay-v8-chart-placeholder small{font-size:9px;max-width:260px;line-height:1.5}
.sahay-v8-legend{display:flex;gap:18px;flex-wrap:wrap;padding-top:12px}.sahay-v8-legend span{font-size:9px;color:#697b92;display:flex;align-items:center;gap:6px}.sahay-v8-legend b{color:#19375c}.sahay-v8-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.sahay-v8-legend .blue-dot{background:#2463eb}.sahay-v8-legend .violet-dot{background:#8b4de8}
.sahay-v8-channel-list{display:grid;gap:13px;padding:3px 0}.sahay-v8-channel-row{display:grid;grid-template-columns:27px 1fr auto;align-items:center;gap:9px;font-size:10px;color:#4e627d}.sahay-v8-channel-row strong{font-size:11px;color:#1b3455}
.sahay-v8-channel-icon{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:#edf4ff;color:#2563d9;font-size:10px;font-weight:800}.sahay-v8-channel-icon.whatsapp{background:#e5f9ed;color:#0aa65c}.sahay-v8-channel-icon.tiktok{background:#f1f2f5;color:#111}.sahay-v8-channel-icon.youtube{background:#fff0f0;color:#e33333}.sahay-v8-channel-icon.linkedin{background:#eaf4fc;color:#176ca7}
.sahay-v8-empty-mini{min-height:160px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.sahay-v8-empty-mini>span{font-size:26px;color:#9db4d2}.sahay-v8-empty-mini strong{font-size:10px;color:#4e627d}.sahay-v8-empty-mini p{font-size:9px;color:#8a99ad;max-width:190px;line-height:1.5}.sahay-v8-empty-mini a{font-size:10px;color:#2463eb;text-decoration:none;font-weight:700}
.sahay-v8-quick{display:flex;flex-direction:column;gap:8px}.sahay-v8-quick .sahay-v8-card-head{margin-bottom:4px}.sahay-v8-quick>a{height:34px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #dfe7f1;border-radius:8px;text-decoration:none;color:#314762;font-size:10px;font-weight:700;background:#fff}.sahay-v8-quick>a.primary{background:#2463eb;border-color:#2463eb;color:#fff;box-shadow:0 5px 12px #2463eb26}.sahay-v8-quick>a:hover{border-color:#2463eb}
.sahay-v8-recent-list{display:grid;gap:4px}.sahay-v8-recent-item{display:flex;align-items:center;gap:10px;padding:8px 9px;border-radius:8px;background:#fbfcff;text-decoration:none;min-width:0}.sahay-v8-recent-item:hover{background:#f0f6ff}.sahay-v8-provider-badge{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;background:#e7f0ff;color:#2463eb;font-size:10px;font-weight:800}.sahay-v8-provider-badge.whatsapp{background:#e4f9ec;color:#0b9f59}.sahay-v8-provider-badge.tiktok{background:#edf0f3;color:#151515}.sahay-v8-provider-badge.youtube{background:#ffeded;color:#e33636}.sahay-v8-provider-badge.linkedin{background:#e7f3fc;color:#14689e}.sahay-v8-recent-copy{min-width:0;flex:1}.sahay-v8-recent-copy strong,.sahay-v8-recent-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sahay-v8-recent-copy strong{font-size:10px;color:#203955}.sahay-v8-recent-copy small{font-size:9px;color:#71829a;margin-top:3px}.sahay-v8-recent-item time{font-size:8px;color:#8998aa;white-space:nowrap}
.sahay-v8-empty-row{padding:25px 12px;text-align:center;color:#8493a7;font-size:10px;line-height:1.6;background:#fbfcfe;border-radius:8px}
.sahay-v8-snapshot-row{display:flex;align-items:center;justify-content:space-between;padding:12px 1px;border-bottom:1px solid #edf1f6;font-size:10px;color:#64778f}.sahay-v8-snapshot-row b{font-size:13px;color:#1a3558}.sahay-v8-snapshot-foot{display:flex;justify-content:space-between;padding-top:13px;font-size:9px;color:#71829b}.sahay-v8-snapshot-foot strong{color:#0a9b57}
.sahay-v8-task-row{display:grid;grid-template-columns:13px 1fr auto;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid #edf1f6;font-size:9px;color:#435872}.sahay-v8-task-check{width:12px;height:12px;border:1px solid #aab8ca;border-radius:3px}.sahay-v8-task-row time{font-size:8px;color:#8191a7;white-space:nowrap}
.sahay-v8-active{padding:6px 10px;border-radius:20px;background:#e8f9ef;color:#0b9d54;font-size:9px;font-weight:800}
.sahay-v8-workspace-info{display:flex;align-items:center;gap:16px}.sahay-v8-workspace-symbol{width:39px;height:39px;border-radius:10px;background:#eaf2ff;color:#2868dc;display:grid;place-items:center;font-size:20px}.sahay-v8-workspace-name{flex:1;min-width:130px}.sahay-v8-workspace-name strong,.sahay-v8-workspace-name small,.sahay-v8-workspace-info>div:not(.sahay-v8-workspace-name) strong,.sahay-v8-workspace-info>div:not(.sahay-v8-workspace-name) small{display:block}.sahay-v8-workspace-name strong{font-size:11px;color:#1d3656}.sahay-v8-workspace-name small{font-size:8px;color:#8493a8;margin-top:3px}.sahay-v8-workspace-info>div:not(.sahay-v8-workspace-name){text-align:center}.sahay-v8-workspace-info>div:not(.sahay-v8-workspace-name) strong{font-size:15px;color:#172f50}.sahay-v8-workspace-info>div:not(.sahay-v8-workspace-name) small{font-size:8px;color:#8493a8}
.sahay-v8-integration-icons{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.sahay-v8-integration-icons span{min-width:43px;height:37px;padding:0 8px;border:1px solid #e2e9f2;border-radius:8px;display:grid;place-items:center;color:#a4b1c2;font-size:10px;font-weight:800;background:#fbfcfe}.sahay-v8-integration-icons span.connected{color:#0b9f57;border-color:#ccefdc;background:#f1fbf5}
.sahay-portal-main .sahay-panel,.sahay-portal-main .sahay-empty,.sahay-portal-main .sahay-heading{border-radius:12px!important}
.sahay-portal-main .sahay-panel{border:1px solid #e1e8f2!important;box-shadow:0 3px 12px #19385b08!important;background:#fff!important;padding:18px!important}
.sahay-portal-main input:not([type=checkbox]),.sahay-portal-main select,.sahay-portal-main textarea{border:1px solid #dce5f0!important;border-radius:8px!important;min-height:39px;padding:8px 11px!important;box-shadow:none!important;font-size:12px!important}
.sahay-portal-main button,.sahay-portal-main .button{border-radius:8px!important;min-height:38px;padding:8px 14px!important;font-weight:700!important;font-size:11px!important}
@media(max-width:1150px){.sahay-v8-middle{grid-template-columns:1.4fr 1fr}.sahay-v8-quick{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr)}.sahay-v8-quick .sahay-v8-card-head{grid-column:1/-1}.sahay-v8-lower{grid-template-columns:1fr 1fr}.sahay-v8-tasks{grid-column:1/-1}}
@media(max-width:850px){.sahay-portal-shell{display:flex!important;flex-direction:column!important}.sahay-portal-sidebar{width:100%!important;flex:0 0 auto!important;height:auto!important;padding:10px!important}.sahay-portal-nav{display:flex!important;overflow-x:auto!important;gap:4px!important}.sahay-portal-nav-label,.sahay-portal-subnav{display:none!important}.sahay-portal-nav>a{white-space:nowrap!important;flex:0 0 auto!important}.sahay-portal-content{height:auto!important;min-height:0!important;padding:0 13px 16px!important}.sahay-portal-header{margin:0 -13px 14px!important;padding:12px 14px!important;position:relative!important;flex-wrap:wrap!important}.sahay-portal-header-tools{width:100%;margin-left:0}.sahay-global-search{width:100%}.sahay-header-user{display:none}.sahay-v8-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sahay-v8-kpi{padding:12px;min-height:82px;gap:9px}.sahay-v8-kpi-icon{width:40px;height:40px;flex-basis:40px;font-size:19px}.sahay-v8-kpi strong{font-size:21px}.sahay-v8-middle,.sahay-v8-lower,.sahay-v8-bottom{grid-template-columns:1fr;gap:10px}.sahay-v8-quick{grid-column:auto;display:flex}.sahay-v8-quick>a{height:38px}.sahay-v8-tasks{grid-column:auto}.sahay-v8-workspace-info{flex-wrap:wrap}.sahay-v8-workspace-name{min-width:calc(100% - 65px)}}


/* v0.9.0 WhatsApp Center — three-workspace layout */
.sahay-wa-center{max-width:1500px;margin:0 auto}
.sahay-wa-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;margin-bottom:17px;border-radius:14px;background:linear-gradient(115deg,#102b4d,#1b4a7c);color:#fff;box-shadow:0 8px 22px #0b2d501a}
.sahay-wa-hero>div>span{font-size:9px;font-weight:800;letter-spacing:1.6px;color:#9dc7f4}
.sahay-wa-hero h2{margin:7px 0 4px!important;color:#fff!important;font-size:23px!important;font-weight:800!important}
.sahay-wa-hero p{margin:0!important;color:#d0def0!important;font-size:11px!important}
.sahay-wa-live{font-size:10px;color:#d7fbe6;background:#ffffff16;border:1px solid #ffffff24;border-radius:20px;padding:9px 12px;white-space:nowrap}
.sahay-wa-tabs{display:flex;gap:5px;border-bottom:1px solid #dfe7f1;margin-bottom:17px;padding:0 3px}
.sahay-wa-tabs a{display:inline-flex;align-items:center;padding:12px 18px;margin-bottom:-1px;text-decoration:none!important;color:#63758e!important;font-size:11px;font-weight:750;border-bottom:3px solid transparent}
.sahay-wa-tabs a.active{color:#2163e9!important;border-bottom-color:#2163e9}
.sahay-wa-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.sahay-wa-center .sahay-panel{background:#fff!important;border:1px solid #e1e8f2!important;border-radius:13px!important;padding:19px!important;box-shadow:0 3px 12px #19385b08!important}
.sahay-wa-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}
.sahay-wa-panel-head h3{font-size:15px!important;font-weight:800!important;color:#183354!important;margin:0 0 4px!important}
.sahay-wa-panel-head p{font-size:10px!important;color:#8291a6!important;margin:0!important}
.sahay-wa-tag{font-size:9px;font-weight:750;color:#2262d8;background:#edf4ff;padding:7px 10px;border-radius:20px;white-space:nowrap}
.sahay-wa-channel{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #edf1f6}
.sahay-wa-channel>div{display:flex;flex-direction:column;gap:3px;flex:1;min-width:130px}
.sahay-wa-channel strong{font-size:11px;color:#243c5c}.sahay-wa-channel small{font-size:9px;color:#8b9aae}
.sahay-wa-result{font-size:9px;color:#55708f}
.sahay-wa-template-results{overflow-x:auto;margin:8px 0 14px}
.sahay-wa-template-results table{font-size:10px;border:1px solid #e7edf5}
.sahay-wa-send-card{display:grid;gap:12px;padding:14px;background:#f9fbfe;border:1px solid #e8eef6;border-radius:10px;margin-bottom:12px}
.sahay-wa-send-card label{display:grid;gap:6px;font-size:10px;font-weight:700;color:#526782}
.sahay-wa-send-card input:not([type=checkbox]),.sahay-wa-send-card select,.sahay-wa-send-card textarea{width:100%;box-sizing:border-box;border:1px solid #dce5f0!important;border-radius:7px!important;background:#fff!important;padding:9px 10px!important;font-size:11px!important;color:#203956}
.sahay-wa-send-card .sahay-wa-consent{display:flex;align-items:flex-start;gap:8px;line-height:1.5}
.sahay-wa-send-card .sahay-wa-consent input{margin-top:2px}
.sahay-wa-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sahay-wa-send-card button{justify-self:start}
.sahay-wa-send-result,.sahay-wa-call-result{font-size:10px;color:#46627f;overflow-wrap:anywhere}
.sahay-wa-empty{text-align:center;padding:55px 20px!important}
.sahay-wa-empty h3{color:#193654;font-size:18px}
.sahay-wa-empty p{color:#71839a;font-size:11px}
.sahay-wa-event{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #edf1f6}
.sahay-wa-event-icon{width:32px;height:32px;border-radius:9px;background:#edf4ff;color:#2463dc;display:grid;place-items:center;font-size:16px}
.sahay-wa-event>div{display:flex;flex-direction:column;gap:3px;flex:1}.sahay-wa-event strong{font-size:10px;color:#243c5b}.sahay-wa-event small{font-size:9px;color:#8796a9}
.sahay-wa-event time{font-size:9px;color:#8796a9;white-space:nowrap}
.sahay-wa-blank{padding:28px 12px;text-align:center;font-size:10px;color:#8494a8;background:#fafcff;border-radius:8px}
.sahay-wa-controls{margin-top:16px}
.sahay-wa-control-list{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.sahay-wa-control-list button{border:1px solid #dfe6ef!important;border-radius:8px!important;background:#f5f7fa!important;color:#97a4b4!important;padding:9px 16px!important;font-size:10px!important;cursor:not-allowed!important}
.sahay-wa-controls>small{font-size:9px;color:#8a99ad}
.sahay-wa-table-wrap{overflow-x:auto}
.sahay-wa-history{border:1px solid #e6edf5!important;border-collapse:collapse!important;font-size:10px!important}
.sahay-wa-history th{background:#f5f8fc!important;color:#536a85!important;font-size:9px!important}
.sahay-wa-history td{padding:12px 10px!important;color:#425873!important;vertical-align:middle!important}
.sahay-wa-history td small{display:block;color:#9aa7b8;font-size:8px;margin-top:3px}
.sahay-wa-direction,.sahay-wa-status{display:inline-block;padding:5px 8px;border-radius:20px;background:#edf4ff;color:#2562cf;font-size:9px;font-weight:750}
.sahay-wa-direction.in{background:#e9f9ef;color:#0c9a54}
.sahay-wa-direction.out{background:#edf4ff;color:#2463dc}
@media(max-width:1050px){.sahay-wa-layout{grid-template-columns:1fr}}
@media(max-width:600px){.sahay-wa-hero{padding:17px;align-items:flex-start;flex-direction:column}.sahay-wa-tabs a{padding:11px 12px;font-size:10px}.sahay-wa-two{grid-template-columns:1fr}.sahay-wa-channel{align-items:flex-start}.sahay-wa-channel button{width:100%}}


/* v1.0.0 WebRTC calling workspace */
.sahay-wa-incoming{margin:10px 0 16px;padding:12px;border:1px solid #e4ebf4;border-radius:9px;background:#fbfcff}
.sahay-wa-incoming>strong{font-size:10px;color:#29425f}
.sahay-wa-incoming-list{display:grid;gap:8px;margin-top:8px;font-size:9px;color:#8292a7}
.sahay-wa-incoming-call{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:9px;background:#fff;border:1px solid #e3eaf3;border-radius:8px}
.sahay-wa-incoming-call strong{font-size:10px;color:#1c3858;flex:1}
.sahay-wa-live-call{margin-top:13px;padding:14px;border-radius:11px;border:1px solid #b9e8ce;background:#f1fbf5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sahay-wa-live-call[hidden]{display:none!important}
.sahay-wa-live-call>div:first-child{display:flex;flex-direction:column;gap:4px}
.sahay-wa-live-call strong{font-size:11px;color:#12653d}
.sahay-wa-live-call span{font-size:18px;font-weight:800;color:#155b3b;font-variant-numeric:tabular-nums}
.sahay-wa-live-call audio{width:100%;height:28px}
.sahay-wa-live-call .sahay-wa-control-list{margin:0}
.sahay-wa-live-call .sahay-wa-control-list button{cursor:pointer!important;background:#fff!important;color:#36536f!important}
.sahay-wa-live-call #sahay-wa-end{background:#fff0f0!important;color:#c43d3d!important;border-color:#f4d4d4!important}
.sahay-wa-history td:last-child{white-space:nowrap}
.sahay-wa-history .button{font-size:9px!important;min-height:29px!important;padding:5px 9px!important}
