
  /* V4 — painel executivo denso + formulários progressivos em janelas */
  #dashboard .stats{
    grid-template-columns:repeat(5,minmax(150px,1fr))!important;
  }
  #dashboard .stats>.stat:nth-child(n+5){display:block!important}
  #executiveDashboard{display:block!important}
  #dashboard .hero{display:block!important}
  #dashboard .dashboard-overview-pane>.hero{
    margin-bottom:14px!important;
  }
  #dashboard .dashboard-overview-pane>.hero::before{
    content:"VISÃO EXECUTIVA";
    position:relative;
    z-index:1;
    display:block;
    margin-bottom:9px;
    color:rgba(255,255,255,.66);
    font-size:9px;
    font-weight:900;
    letter-spacing:1.35px;
  }
  #dashboard .executive-dashboard{
    display:block!important;
    padding-top:2px;
  }
  #dashboard .executive-kpi-grid{
    grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  }

  body.ui-wizard-open{overflow:hidden!important}
  .ui-wizard-backdrop{
    position:fixed;
    inset:0;
    z-index:145;
    display:none;
    background:rgba(9,18,35,.58);
    backdrop-filter:blur(10px);
  }
  body.ui-wizard-open .ui-wizard-backdrop{display:block}

  .ui-wizard-overlay-host:not(.hidden){
    position:fixed!important;
    inset:0!important;
    z-index:160!important;
    display:grid!important;
    place-items:center!important;
    overflow:auto!important;
    padding:22px!important;
    background:transparent!important;
  }
  .ui-wizard-floating-card:not(.hidden){
    position:fixed!important;
    z-index:160!important;
    top:50%!important;
    left:50%!important;
    width:min(980px,calc(100vw - 44px))!important;
    max-height:calc(100vh - 44px)!important;
    margin:0!important;
    transform:translate(-50%,-50%)!important;
  }
  .ui-wizard-card{
    width:min(980px,calc(100vw - 44px))!important;
    max-height:calc(100vh - 44px)!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.85)!important;
    border-radius:24px!important;
    background:#fff!important;
    box-shadow:0 32px 90px rgba(3,18,45,.35)!important;
  }
  .ui-wizard-card>.card-head{display:none!important}
  .ui-wizard-card form{
    min-height:0;
    max-height:calc(100vh - 44px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .ui-wizard-header{
    flex:none;
    padding:20px 24px 17px;
    border-bottom:1px solid #e9edf3;
    background:
      radial-gradient(circle at 92% -20%,rgba(10,167,223,.14),transparent 15rem),
      linear-gradient(180deg,#fff,#fbfdff);
  }
  .ui-wizard-title-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
  }
  .ui-wizard-eyebrow{
    display:block;
    margin-bottom:6px;
    color:#087fd1;
    font-size:9px;
    font-weight:950;
    letter-spacing:1px;
    text-transform:uppercase;
  }
  .ui-wizard-title{
    margin:0;
    color:#102a56;
    font-size:22px;
    letter-spacing:-.5px;
  }
  .ui-wizard-description{
    margin:6px 0 0;
    max-width:690px;
    color:#667085;
    font-size:11px;
    line-height:1.55;
  }
  .ui-wizard-close{
    width:38px;
    height:38px;
    flex:none;
    border:1px solid #e1e7ef;
    border-radius:12px;
    background:#fff;
    color:#475467;
    font-size:22px;
    line-height:1;
  }
  .ui-wizard-progress-meta{
    margin-top:17px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    color:#667085;
    font-size:10px;
    font-weight:800;
  }
  .ui-wizard-progress-track{
    height:6px;
    margin-top:7px;
    overflow:hidden;
    border-radius:999px;
    background:#eaf0f6;
  }
  .ui-wizard-progress-fill{
    width:0;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,#063e96,#0aa7df);
    transition:width .22s ease;
  }
  .ui-wizard-stepper{
    margin-top:14px;
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(116px,1fr);
    gap:7px;
    overflow-x:auto;
    padding-bottom:3px;
  }
  .ui-wizard-step-button{
    min-height:42px;
    padding:8px 9px;
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid transparent;
    border-radius:11px;
    background:transparent;
    color:#667085;
    text-align:left;
    font-size:9px;
    font-weight:850;
    white-space:nowrap;
  }
  .ui-wizard-step-button span{
    width:23px;
    height:23px;
    flex:none;
    display:grid;
    place-items:center;
    border:1px solid #dce5ee;
    border-radius:999px;
    background:#fff;
    color:#667085;
    font-size:9px;
  }
  .ui-wizard-step-button.active{
    border-color:#cce9fb;
    background:#eff9ff;
    color:#075fa8;
  }
  .ui-wizard-step-button.active span{
    border-color:#087fd1;
    background:#087fd1;
    color:#fff;
  }
  .ui-wizard-step-button.complete{color:#067647}
  .ui-wizard-step-button.complete span{
    border-color:#a8e4c3;
    background:#e7f8ee;
    color:#067647;
  }
  .ui-wizard-step-button:disabled{cursor:default;opacity:.62}
  .ui-wizard-content{
    min-height:0;
    flex:1;
    overflow:auto;
    padding:24px;
    background:#fff;
  }
  .ui-wizard-content .grid{
    align-items:start;
    gap:14px!important;
  }
  .ui-wizard-content .grid>[data-ui-wizard-step]:not(.ui-step-active){display:none!important}
  .ui-wizard-step-intro{
    margin-bottom:18px;
    padding-bottom:14px;
    border-bottom:1px solid #edf1f5;
  }
  .ui-wizard-step-intro h3{
    margin:0;
    color:#102a56;
    font-size:17px;
    letter-spacing:-.2px;
  }
  .ui-wizard-step-intro p{
    margin:5px 0 0;
    color:#667085;
    font-size:11px;
    line-height:1.5;
  }
  .ui-wizard-content label{
    margin-bottom:7px!important;
    color:#344054!important;
    font-size:10px!important;
    font-weight:850!important;
  }
  .ui-wizard-content input,
  .ui-wizard-content select,
  .ui-wizard-content textarea{
    min-height:45px!important;
    border-color:#d8e1eb!important;
    border-radius:11px!important;
    background:#fff!important;
  }
  .ui-wizard-content textarea{min-height:112px!important}
  .ui-wizard-content .access-config-card{
    margin:0!important;
    padding:17px!important;
    border-color:#d8e5f1!important;
    background:#f8fbfe!important;
  }
  .ui-wizard-content .form-manager-note,
  .ui-wizard-content .attendance-guide{
    font-size:10px!important;
  }
  .ui-wizard-review{display:none}
  .ui-wizard-review.active{display:block}
  .ui-review-note{
    margin-bottom:15px;
    padding:12px 14px;
    border:1px solid #b9e1fb;
    border-radius:12px;
    background:#eff9ff;
    color:#164b70;
    font-size:10px;
    line-height:1.5;
  }
  .ui-review-section{
    margin-bottom:13px;
    overflow:hidden;
    border:1px solid #e3e9f0;
    border-radius:14px;
    background:#fff;
  }
  .ui-review-section-head{
    padding:11px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border-bottom:1px solid #edf1f5;
    background:#f8fafc;
  }
  .ui-review-section-head strong{color:#102a56;font-size:11px}
  .ui-review-edit{
    padding:4px 7px;
    border:0;
    border-radius:7px;
    background:#eaf6ff;
    color:#075fa8;
    font-size:9px;
    font-weight:900;
  }
  .ui-review-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .ui-review-item{
    min-width:0;
    padding:11px 13px;
    border-bottom:1px solid #f0f3f6;
  }
  .ui-review-item:nth-child(odd){border-right:1px solid #f0f3f6}
  .ui-review-item span{
    display:block;
    color:#7b8798;
    font-size:8px;
    font-weight:900;
    letter-spacing:.35px;
    text-transform:uppercase;
  }
  .ui-review-item strong{
    display:block;
    margin-top:5px;
    overflow-wrap:anywhere;
    color:#172033;
    font-size:11px;
    line-height:1.45;
  }
  .ui-review-empty{color:#98a2b3!important;font-weight:700!important}
  .ui-wizard-footer{
    flex:none;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-top:1px solid #e9edf3;
    background:rgba(255,255,255,.97);
    box-shadow:0 -12px 30px rgba(16,24,40,.045);
  }
  .ui-wizard-footer-left,.ui-wizard-footer-right{
    display:flex;
    align-items:center;
    gap:8px;
  }
  .ui-wizard-footer .btn{min-width:104px}
  .ui-wizard-footer .ui-wizard-next{min-width:126px}
  .ui-wizard-autosave{
    color:#7b8798;
    font-size:9px;
  }
  .ui-wizard-card form > .actions{display:none!important}

  @media(max-width:1250px){
    #dashboard .stats{grid-template-columns:repeat(3,1fr)!important}
    #dashboard .executive-kpi-grid{grid-template-columns:repeat(2,1fr)!important}
  }
  @media(max-width:760px){
    .ui-wizard-overlay-host:not(.hidden){padding:0!important;align-items:stretch!important}
    .ui-wizard-floating-card:not(.hidden),.ui-wizard-card{
      width:100vw!important;
      max-width:none!important;
      max-height:100vh!important;
      min-height:100vh!important;
      border-radius:0!important;
    }
    .ui-wizard-floating-card:not(.hidden){top:0!important;left:0!important;transform:none!important}
    .ui-wizard-card form{max-height:100vh!important;min-height:100vh}
    .ui-wizard-header{padding:16px 16px 13px}
    .ui-wizard-title{font-size:19px}
    .ui-wizard-stepper{grid-auto-columns:minmax(102px,1fr)}
    .ui-wizard-content{padding:18px 16px}
    .ui-wizard-content .c8,.ui-wizard-content .c6,.ui-wizard-content .c5,.ui-wizard-content .c4,.ui-wizard-content .c3,.ui-wizard-content .c2{grid-column:span 12!important}
    .ui-review-grid{grid-template-columns:1fr}
    .ui-review-item:nth-child(odd){border-right:0}
    .ui-wizard-footer{padding:12px;align-items:stretch}
    .ui-wizard-footer-left{display:none}
    .ui-wizard-footer-right{width:100%;display:grid;grid-template-columns:1fr 1fr}
    .ui-wizard-footer .btn{width:100%;min-width:0}
    #dashboard .stats,#dashboard .executive-kpi-grid{grid-template-columns:1fr!important}
  }

