/* Responsive rules */

@media (max-width:1366px){
  .gov-header .gov-title{ font-size:1.5rem; }
  .gov-header .gov-left img, .gov-header .gov-right img{ height:52px; }
}

@media (max-width:1200px){
  .insights-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:1024px){
  .dashboard-grid{ grid-template-columns:1fr; }
  .insights-grid{ grid-template-columns:1fr; }
}

@media (max-width:992px){
  .gov-header{ flex-wrap:wrap; justify-content:center; text-align:center; }
  .gov-header .gov-title{ order:3; width:100%; margin-top:8px; font-size:1.3rem; }
  .kpi-row{ gap:10px; }
  .kpi-card{ flex:1 1 45%; }
  .cvpms-table-wrap{ overflow-x:auto; }
  table.cvpms-table{ min-width:820px; }
  .filters-bar{ flex-direction:column; align-items:stretch; }
}

@media (max-width:768px){
  .gov-header .gov-left{ flex-direction:column; text-align:center; }
  .page-wrap{ padding:14px; }
  .gov-nav .nav-items{ flex-wrap:nowrap; }
  .modal-dialog{ margin:0.5rem; }
  .kpi-card{ flex:1 1 100%; }
  .project-header-band{ flex-direction:column; align-items:flex-start; }
  .filter-card{ flex-direction:column; align-items:stretch; gap:12px; }
  .filter-field:first-child{ max-width:none; }
  .filter-field{ min-width:0; }
}

@media (max-width:576px){
  .gov-header .gov-title{ font-size:1.1rem; }
  .tab-pill{ padding:8px 12px; font-size:.85rem; }
  table.cvpms-table{ font-size:.8rem; }
  .modal-header-cvpms, .modal-body-cvpms, .modal-footer-cvpms{ padding-left:16px; padding-right:16px; }
}

@media print{
  .gov-nav, .no-print, .toast-stack{ display:none !important; }
}
