/* Layout repair, scoped to dashboard and Mail & RFQ. */
html.app-active .v471-dashboard,html.app-active .v471-mail{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;width:100%}
html.app-active .v471-dashboard>*,html.app-active .v471-mail>*{min-width:0;max-width:100%;margin-top:0!important;margin-bottom:0!important}
html.app-active .v471-dashboard .v46-command{padding:11px 16px;gap:12px}
html.app-active .v471-dashboard .v46-command>div:first-child{min-width:0}
html.app-active .v471-dashboard .v46-command h2{font-size:18px;margin:3px 0}
html.app-active .v471-dashboard .v40-dashboard{padding:12px 14px}
html.app-active .v471-dashboard .v40-crm-grid{align-items:start;gap:12px;margin:6px 0 0!important}
html.app-active .v471-dashboard .v40-module-card{min-height:0!important;height:auto!important;padding:10px 12px!important}
html.app-active .v471-dashboard .v40-card-head{padding-bottom:5px;margin-bottom:4px}
html.app-active .v471-dashboard .v40-listitem{padding:7px 0!important;gap:8px}
html.app-active .v471-dashboard .v40-listitem:last-child{border-bottom:0}
html.app-active .v471-dashboard .v40-listitem small{margin-top:2px;line-height:1.35}
/* The global .select rule forces width:100%!important. Grid confines it to its own track. */
html.app-active .v471-mail .v41-mail-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,300px) auto;align-items:center!important;gap:12px!important;padding:12px 15px!important;min-height:0!important;height:auto!important}
html.app-active .v471-mail .v41-mail-toolbar>div{min-width:0;width:auto!important;max-width:100%;flex:none!important}
html.app-active .v471-mail .v41-mail-toolbar strong,html.app-active .v471-mail .v41-mail-toolbar small{word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important}
html.app-active .v471-mail #v41MailFilter{width:100%!important;min-width:0!important;max-width:100%!important}
html.app-active .v471-mail .v41-mail-toolbar>.btn{white-space:nowrap;justify-self:end;max-width:100%}
html.app-active .v471-mail .v41-notice{padding:8px 12px!important;line-height:1.5;min-height:0!important;height:auto!important;font-size:11px!important;overflow-wrap:anywhere}
html.app-active .v471-mail .mail-layout{min-height:0!important;align-items:start;gap:10px}
html.app-active .v471-mail .mail-layout>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(min-width:1200px){html.app-active .v471-mail .mail-layout{display:grid!important;grid-template-columns:minmax(200px,.85fr) minmax(0,1.55fr) minmax(280px,1fr)!important}}
@media(min-width:721px) and (max-width:1199px){html.app-active .v471-mail .mail-layout{display:grid!important;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr)!important}html.app-active .v471-mail .ai-panel{grid-column:1/-1}}
@media(max-width:900px){html.app-active .v471-mail .v41-mail-toolbar{grid-template-columns:minmax(0,1fr) auto!important}html.app-active .v471-mail .v41-mail-toolbar>div{grid-column:1/-1}html.app-active .v471-mail .v41-mail-toolbar>.btn{white-space:normal}}
@media(max-width:720px){html.app-active .v471-dashboard,html.app-active .v471-mail{gap:9px}html.app-active .v471-dashboard .v40-crm-grid{grid-template-columns:minmax(0,1fr)!important}html.app-active .v471-mail .v41-mail-toolbar{grid-template-columns:minmax(0,1fr)!important;padding:10px!important;gap:8px!important}html.app-active .v471-mail .v41-mail-toolbar>.btn{justify-self:start}html.app-active .v471-mail .mail-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important}html.app-active .v471-mail .mail-layout>*{margin:0!important}html.app-active .v471-dashboard .v46-command{padding:10px!important}}
