/* Shared commercial spacing. Natural height, legible type and local table
   scrolling remain intact in both installed appearances and all modules. */
body #content .card{margin-bottom:14px;border-radius:12px;min-width:0}
body #content .card-head{padding:12px 16px;gap:8px 12px}
body #content .card-head h2{font-size:15px;line-height:1.4}
body #content .card-body{padding:14px 16px}
body #content :is(.kpis,.company-stats95){gap:10px;margin-bottom:14px;align-items:stretch}
body #content .kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
body #content :is(.pr-kpi82,.kpis>.kpi){min-height:98px;padding:14px 14px 14px 66px;gap:4px}
body #content :is(.pr-kpi82,.kpis>.kpi) .kpi-icon{left:14px;top:18px;padding:9px;width:40px;height:40px;display:grid;place-items:center}
body #content :is(.pr-kpi82,.kpis>.kpi)>strong{font-size:clamp(21px,1.7vw,26px);line-height:1.25;font-variant-numeric:tabular-nums;word-break:normal;overflow-wrap:anywhere}
body #content :is(.kpis>.kpi,.pr-kpi82) :is(.caption,small){font-size:12px;line-height:1.4}
body #content .company-stats95 .card{padding:13px;margin:0;gap:10px}
body #content .company-stats95 strong{font-size:23px}
body #content :is(.filters,.filter-row,.company-filters95,.platform-search){padding:12px 16px;gap:10px;align-items:end}
body #content .filter-search{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:40px;padding:0 10px;max-width:680px}
body #content .filter-search>svg{flex:0 0 18px;width:18px;height:18px}
body #content .filter-search>input{flex:1;min-width:0;min-height:40px;padding:8px 0;border:0;background:transparent}
body #content :is(.card-head,.filters,.filter-row,.company-filters95) button{min-height:38px;padding:8px 12px;font-size:13px}
body #content :is(.card,.sf-card83,.dd-card85){container-type:normal}
body #content .stat-line{padding:8px 0;gap:12px}
body #content .table-footer{padding:10px 14px}
body #content .row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
body #content :is(.row-actions,.invoice-row-actions5) button{min-height:34px;padding:7px 10px;font-size:12px;white-space:nowrap}
body #content :is(.backup-type94,.team-stat93){padding:16px;min-width:0}
body #content .backup-type94 h2{font-size:17px}
body #content .backup-spacer94{min-height:12px}
body #content .backup-types94{gap:12px}
body #content .trial-banner92{padding:10px 14px;margin-bottom:14px}
body #content .sf-card83{margin-bottom:14px}
body #content :is(.sf-body83,.dd-card-body85){padding:14px 16px}
body #content .dd-card-head85{padding:12px 16px}
body #content .dd-main85{gap:14px}
body #content .dd-summary85{gap:12px}
body #content .sf-items-head83{padding:14px 16px;gap:12px}
body #content .sf-additional83{gap:12px}
body #content .sf-additional83 textarea{min-height:68px;font-size:13px}
body #content #quote-lines83 [data-quote-select83]{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:left;line-height:1.4}
body #content :is(.cel-card87,.cel-kpi87){min-width:0}
body #content .card :is(input,select):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]){min-height:38px;min-width:0;max-width:100%}
body #content :is(.card,.sf-card83,.dd-card85) :is(h2,h3,strong){max-width:100%}
body .company-enter96 .check-label{display:flex;flex-direction:row;gap:9px;align-items:center}
body .company-enter96 input[type=checkbox]{width:17px;min-height:0;height:17px;flex:none}
body .company-popover5{max-width:calc(100vw - 24px)}
body .company-popover5 .company-search96{width:100%;min-height:38px;margin:8px 0;font-size:13px}
body .company-picker-list96{max-height:min(380px,55dvh);overflow-y:auto}
body .company-picker-list96 button{width:100%;text-align:left;display:flex;gap:9px;align-items:center;min-height:48px}
body .company-picker-list96 button>span{min-width:0;white-space:normal;overflow-wrap:anywhere}
body .company-picker-list96 small{display:block;font-size:12px}
/* Keep existing module-specific columns; collapse only when they cannot fit. */
@media(max-width:1100px){body #content .company-stats95{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}
@media(max-width:767px){body #content .card-head,body #content .card-body,body #content :is(.sf-body83,.dd-card-body85,.sf-items-head83){padding:12px}body #content :is(.kpis,.company-stats95){grid-template-columns:repeat(2,minmax(0,1fr))}body #content :is(.pr-kpi82,.kpis>.kpi){padding:12px;min-height:92px}body #content :is(.pr-kpi82,.kpis>.kpi) .kpi-icon{display:none}body #content :is(.row-actions,.invoice-row-actions5) button{min-height:40px}body #content .filter-search{max-width:100%;flex-basis:100%}body #content .trial-banner92{padding:12px}body #content .card :is(input,select):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]){min-height:42px}}
@media(max-width:380px){body #content :is(.kpis,.company-stats95){grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){body[data-ui-experience82=premium_renewed] .topbar .company-wrap5{flex:1 1 88px;min-width:0}body[data-ui-experience82=premium_renewed] .topbar{gap:6px;padding:8px 10px;min-height:56px}body[data-ui-experience82=premium_renewed] .topbar .company-menu5{padding:8px;min-height:38px}body[data-ui-experience82=premium_renewed] .topbar .company-menu5 span{font-size:12px}}
