/* ISP360_UI_AUDIT_SPACING_20261021
   Scoped layout corrections; preserves module colours and table horizontal scrolling.
*/
.main{min-width:0}
.main :where(.stats,.cards,.card-grid,.stats-grid,.summary-grid,.kpi-grid){
  gap:clamp(12px,1.25vw,20px);
}
.main :where(.stat,.stat-card,.metric-card,.summary-card){
  min-width:0;
}
.main :where(.stat-label,.metric-label,.summary-label){
  font-size:11px!important;
  line-height:1.45!important;
  letter-spacing:.025em!important;
  color:#526477!important;
}
.main :where(.stat-value,.metric-value,.summary-value){
  line-height:1.2;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
.main :where(.panel,.card,.widget,.section-card,.summary-card,.metric-card,.stat-card){
  max-width:100%;
}
.main :where(.toolbar,.page-head,.filter-bar,.filters){
  column-gap:12px;
  row-gap:12px;
}
.main :where(.toolbar,.page-head){
  flex-wrap:wrap;
}
.main :where(.table-wrap,.table-responsive,.table-container){
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.main :where(input,select,textarea){
  max-width:100%;
}
.main :where(button,.btn,a.button):focus-visible,
.sidebar a:focus-visible{
  outline:3px solid #60a5fa!important;
  outline-offset:2px;
}
@media(max-width:900px){
 .main :where(.stats,.card-grid,.stats-grid,.summary-grid,.kpi-grid){
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:600px){
 .main{padding:18px 14px 28px!important}
 .main :where(.stats,.card-grid,.stats-grid,.summary-grid,.kpi-grid){
   grid-template-columns:minmax(0,1fr);
 }
 .main :where(.stat,.stat-card,.metric-card,.summary-card){
   padding:14px;
 }
 .main :where(.page-head h1,h1){font-size:24px!important;line-height:1.25}
 .main :where(.toolbar input,.search){width:100%;max-width:100%}
}

