/* CRM Lumia: compact navigation, readable controls, clear business hierarchy. */
:root{--muted:#526779;--bg:#f4f7f9;--shadow:0 2px 8px rgba(20,46,62,.035);--h-ctl:40px;--fs-xs:12px;--fs-sm:13px;--fs-md:14px;--w-nav:248px}
.sidebar{padding:20px 12px;scrollbar-width:thin;scrollbar-color:#507180 transparent}
.brand{padding-bottom:20px;margin-bottom:12px}
.nav-title{padding:8px 12px;color:#a2bcc7;font-size:11px}
.nav-link{min-height:44px;padding:10px 12px;gap:10px;font-size:13px}
.nav-link.active{box-shadow:inset 3px 0 #9de0d7;background:#205866}
.nav-section{margin-top:8px;border-top:1px solid #294857;padding-top:4px}
.nav-section summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:8px 12px;cursor:pointer;color:#b8ced7;font-size:12px;font-weight:700;border-radius:8px}
.nav-section summary::-webkit-details-marker{display:none}
.nav-section summary:hover{background:#1e4151;color:#fff}
.nav-chevron{font-size:18px;transition:transform .18s}
.nav-section[open] .nav-chevron{transform:rotate(180deg)}
.nav-section-links{padding:0 0 4px 8px}
.sidebar-foot{margin-top:16px;font-size:11px}
.content{padding:24px 28px 48px;max-width:1640px}
.page-head{margin-bottom:20px;align-items:center}
.overview-intro{color:var(--muted);margin:-8px 0 20px;font-size:14px}
.card{box-shadow:var(--shadow)}
.card-head h2,.card-head h3{font-weight:700}
.metric{min-height:112px;padding:18px 20px}
.metric-value{font-size:clamp(20px,1.65vw,28px);line-height:1.35;letter-spacing:-.035em;white-space:normal;overflow-wrap:anywhere}
.metric .delta{font-weight:400;color:var(--muted);font-size:12px}
.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quick-actions .btn{justify-content:flex-start;white-space:normal;min-height:44px;font-weight:600}
.quick-actions svg{width:18px;height:18px;flex:none}
.overview-charts{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:16px}
.overview-charts>div{min-width:0}
.tier-overview{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:24px}
.tier-overview .donut{flex-shrink:0}
.legend span{font-size:12px}
.overview-actions .list-row{align-items:center;flex-wrap:wrap}
.overview-actions .list-row strong{flex:1;min-width:160px;font-weight:600}
.btn,.field,.search-field,.role-select{min-height:40px}
.icon-btn{width:44px;height:44px;flex-shrink:0}
.data-table td{font-size:14px;padding-top:14px;padding-bottom:14px}
.data-table th{color:#526779;font-size:11px}
.table-wrap{max-width:100%;border-radius:8px;overscroll-behavior-x:contain}
.global-search{min-width:0}
.global-search input{height:44px;font-size:14px}
.global-search svg{top:14px}
.shortcut{top:12px}
.profile-stats{flex-wrap:wrap;row-gap:12px}
.card-head{flex-wrap:wrap}
.modal{max-height:calc(100dvh - 32px);overflow:auto}
@media (min-width:769px) and (max-width:1024px){
 .sidebar{width:248px;padding:16px 12px}
 .sidebar .brand strong,.sidebar .brand small,.sidebar .nav-title,.sidebar .nav-link span,.sidebar .nav-link em,.sidebar .sidebar-foot{display:block}
 .sidebar .brand,.sidebar .nav-link{justify-content:flex-start}
 .shell{margin-left:248px;width:calc(100% - 248px)}
 .content{padding:20px}
 .global-search{width:100%}
 .account div,.topbar .role-select,.topbar .hide-mobile{display:none}
 .topbar{gap:12px;padding:0 20px}
 .overview-actions,.overview-charts{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:768px){
 :root{--h-top:64px}
 .sidebar{width:min(296px,calc(100vw - 48px));height:100dvh;z-index:30;box-shadow:var(--shadow-xl)}
 .sidebar.open .brand{justify-content:flex-start}
 .sidebar.open .nav-link em{display:block}
 .topbar{height:64px;gap:8px;padding:0 12px}
 .top-right{gap:0;flex-shrink:0}
 .topbar .role-select,.topbar .account{display:none}
 .global-search{flex:1;width:auto}
 .global-search input,.field,.search-field,select,textarea{font-size:16px}
 .btn,.field,.search-field,.role-select{min-height:44px}
 .content{padding:20px 16px 40px}
 .page-head{display:flex;flex-wrap:wrap;gap:12px}
 .page-head h1{font-size:22px}
 .page-head .head-actions{margin-top:0}
 .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .metric{padding:14px 12px;min-height:120px}
 .metric-label{font-size:12px}
 .metric-value{font-size:16px}
 .metric .delta{font-size:11px}
 .overview-actions,.overview-charts{grid-template-columns:minmax(0,1fr)}
 .quick-actions{gap:8px}
 .quick-actions .btn{font-size:13px;padding:10px}
 .card-body{padding:16px}
 .range-tags{flex-wrap:wrap}
 .profile-head{top:64px}
 .profile-stats{justify-content:flex-start;gap:16px}
 .overview-charts .profile-stats>div{flex:1 1 40%}
 .search-field{max-width:100%}
 .data-table td{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.nav-chevron{transition:none}}

@media(max-width:768px){.dash-top .dash-tabs{width:100%;overflow:visible;display:flex}.dash-tabs .tab{flex:1;padding:12px 8px;font-size:13px}.dash-top{gap:8px}.dash-top .head-actions{padding-bottom:12px}}

.nav-close{display:none}@media(max-width:768px){.nav-close{display:grid;margin-left:auto;color:#fff;font-size:26px}.nav-close:hover{background:#1e4151}}
/* Fluid CRM workspace — 2026-11-02 */
.shell{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.content{width:100%;max-width:none;box-sizing:border-box;flex:1;min-width:0}
.content>*,.content .card,.content .card-body,.content .grid>*{min-width:0}
.content .table-wrap{width:100%;max-width:100%;overscroll-behavior-x:contain}
.content :is(img,video,iframe){max-width:100%}
.content :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.sidebar{max-height:100dvh}
@media(min-width:769px) and (max-width:1024px){
 .profile-layout,.filter-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:768px){
 .content .head-actions,.content .toolbar,.content .modal-foot{flex-wrap:wrap}
 .content .head-actions{max-width:100%;min-width:0}
 .content .head-actions .btn{white-space:normal}
 .content .card-head{gap:12px}
 .modal{width:100%;min-width:0}
}
@media(max-width:360px){
 .overview-metrics,.quick-actions{grid-template-columns:minmax(0,1fr)}
 .content{padding-inline:12px}
}
/* Fit a full 30-day chart without widening the page. */
.chart{min-width:0;gap:clamp(2px,.4vw,8px);padding-inline:16px}
.chart-col{min-width:0}
.chart-col span{white-space:nowrap}

/* Lumia touch filter containment 20261103 */
@media(max-width:768px){
 .dsk-menu.dsk-loc-menu{position:fixed;inset:80px 16px 16px;width:auto;max-width:none;max-height:none;display:flex;flex-direction:column;overflow:hidden;z-index:40;box-shadow:var(--shadow-xl)}
 .dsk-loc-menu .dsk-loc-dau,.dsk-loc-menu .dsk-loc-chan{position:static;flex:none}
 .dsk-loc-menu .dsk-loc-than{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .dsk-loc-menu .dsk-pill{min-height:44px;align-items:center}
 .dsk-loc-menu input:not([type=checkbox]):not([type=radio]),.dsk-loc-menu select{font-size:16px}
}

