/* CodeAnansi fluid authenticated workspace
   Replaces fixed page zoom with true viewport-responsive sizing. */
html,body.dashboard{width:100%;min-width:0;min-height:100%;overflow-x:hidden}
body.dashboard{zoom:1!important;transform:none!important;font-size:clamp(14px,.72vw,16px)}
body.dashboard .app-shell{
 width:100%;
 max-width:none;
 min-width:0;
 height:100dvh;
 min-height:100vh;
 grid-template-columns:clamp(245px,15.2vw,292px) minmax(0,1fr);
}
body.dashboard .app-sidebar{width:auto;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden}
body.dashboard .app-content{width:100%;min-width:0;max-width:none;overflow-x:hidden;overflow-y:auto}
body.dashboard .customer-page,
body.dashboard .dashboard-body,
body.dashboard .pipeline-page{
 width:100%;
 max-width:none!important;
 margin:0!important;
 padding:clamp(28px,2.3vw,48px) clamp(22px,2.6vw,56px) clamp(56px,5vw,90px)!important;
}
body.dashboard .customer-layout{
 width:100%;
 min-width:0;
 grid-template-columns:minmax(0,1fr) clamp(320px,22vw,430px)!important;
 gap:clamp(16px,1.2vw,24px)!important;
}
body.dashboard .data-card,
body.dashboard .create-card,
body.dashboard .admin-card,
body.dashboard .premium-activity,
body.dashboard .premium-actions,
body.dashboard .commerce-section,
body.dashboard .customer-layout>*{min-width:0;max-width:100%}
body.dashboard .table-scroll{width:100%;max-width:100%;min-width:0;overflow:auto}
body.dashboard .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body.dashboard .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.dashboard .premium-command-grid{grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr)}
body.dashboard .product-grid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}
body.dashboard .service-grid{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
body.dashboard .provider-grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
body.dashboard .plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}
body.dashboard .finance-summary{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
body.dashboard .member-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
body.dashboard dialog,
body.dashboard .row-actions[open]>div,
body.dashboard .new-lead[open]>.lead-popover{
 max-width:calc(100vw - 32px)!important;
 max-height:calc(100dvh - 32px)!important;
}
body.dashboard .row-actions[open]>div{
 position:fixed;z-index:999;left:50vw!important;top:50dvh!important;right:auto!important;
 width:min(500px,calc(100vw - 32px))!important;overflow:auto;transform:translate(-50%,-50%)!important;
 padding:24px;border-radius:20px;background:var(--solid);border:1px solid var(--line);box-shadow:0 38px 120px #0008;
}
body.dashboard .row-actions[open]::before{content:"";position:fixed;z-index:998;inset:0;background:#0009;backdrop-filter:blur(10px)}
body.dashboard .row-actions[open]>div>form:first-of-type{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.dashboard .row-actions[open]>div label{min-width:0;display:flex;flex-direction:column;gap:7px;margin:0}
body.dashboard .row-actions[open]>div input,
body.dashboard .row-actions[open]>div select{width:100%;margin:0}
@media(max-width:1280px){
 body.dashboard .app-shell{grid-template-columns:240px minmax(0,1fr)}
 body.dashboard .customer-layout{grid-template-columns:minmax(0,1fr) 330px!important}
 body.dashboard .premium-command-grid{grid-template-columns:1fr}
 body.dashboard .admin-grid{grid-template-columns:1fr}
 body.dashboard .admin-card.wide{grid-column:auto}
}
@media(max-width:980px){
 body.dashboard .customer-layout{grid-template-columns:1fr!important}
 body.dashboard .metric-grid,
 body.dashboard .ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.dashboard .create-card{width:100%}
}
@media(max-width:850px){
 body.dashboard .app-shell{grid-template-columns:82px minmax(0,1fr)}
 body.dashboard .app-sidebar .brand>span:last-child,
 body.dashboard .tenant-chip span,
 body.dashboard .app-sidebar nav span,
 body.dashboard .app-sidebar nav>small{display:none}
 body.dashboard .app-sidebar nav a{justify-content:center}
}
@media(max-width:760px){
 body.dashboard{font-size:15px}
 body.dashboard .app-shell{display:block;height:auto;min-height:100dvh;overflow:visible}
 body.dashboard .app-sidebar{display:flex;position:fixed;width:min(310px,86vw);height:100dvh}
 body.dashboard .app-content{overflow:visible}
 body.dashboard .customer-page,
 body.dashboard .dashboard-body,
 body.dashboard .pipeline-page{padding:26px 16px 60px!important}
 body.dashboard .metric-grid,
 body.dashboard .ops-metrics,
 body.dashboard .finance-summary{grid-template-columns:1fr 1fr}
 body.dashboard .admin-grid,
 body.dashboard .form-grid{grid-template-columns:1fr}
 body.dashboard .row-actions[open]>div>form:first-of-type{grid-template-columns:1fr}
}
@media(max-width:480px){
 body.dashboard .metric-grid,
 body.dashboard .ops-metrics,
 body.dashboard .finance-summary{grid-template-columns:1fr}
 body.dashboard .app-content>header>span{max-width:55vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
