.eletron-access-app,.eletron-access-header,.eletron-access-section{box-sizing:border-box}
.eletron-access-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap}
.eletron-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.eletron-section-title h5,.eletron-access-section h5{font-weight:700;margin:0 0 10px;color:#253642}
.epa-kpi{border:1px solid #e4e8ec;border-radius:6px;padding:12px 14px;background:#fff;min-height:70px}
.epa-kpi small{display:block;color:#7b8793;margin-bottom:7px;text-transform:uppercase;font-size:10px;letter-spacing:.4px}
.epa-kpi strong{display:block;color:#253642;font-size:15px;line-height:1.25}
.epa-simulation{display:flex;gap:8px;flex-wrap:wrap}
.epa-sim-item{border:1px solid #e5e7eb;border-radius:5px;padding:8px 10px;background:#fafafa}
.epa-sim-item.allowed{border-color:#b7e2c2;background:#f3fbf5}
.epa-sim-item.denied{border-color:#f0c2c0;background:#fff6f5}
.epa-status{display:inline-block;border-radius:12px;padding:3px 8px;font-size:11px;font-weight:700;text-transform:uppercase}
.epa-status-programmed{background:#eef2ff;color:#4453a6}.epa-status-active{background:#e9f8ee;color:#1f7a3d}.epa-status-extended{background:#fff6dd;color:#9a6b00}.epa-status-awaiting_return{background:#fff0e5;color:#a64f00}.epa-status-expired{background:#fdecec;color:#a83333}.epa-status-closed{background:#edf0f2;color:#59636d}.epa-status-cancelled{background:#edf0f2;color:#59636d}
.epa-project-checks{border:1px solid #e5e7eb;border-radius:5px;padding:10px;max-height:260px;overflow:auto;background:#fafafa}
.epa-project-check{display:block;padding:5px 4px;border-bottom:1px solid #eee}.epa-project-check:last-child{border-bottom:0}
.epa-help-block{border-left:3px solid #03a9f4;padding:4px 12px;margin-bottom:18px}.epa-help-block h5{font-weight:700;margin:0 0 5px}.epa-help-block p{margin:0;color:#65727e;line-height:1.55}
.epa-muted-box{border:1px dashed #cfd8df;background:#fafcfd;padding:10px;border-radius:5px;color:#65727e}
#epa-project-access-table td,#epa-project-access-table th,#epa-central-roles-table td,#epa-central-roles-table th{vertical-align:middle!important}
.epa-inline-actions .btn{margin-right:4px;margin-bottom:4px}
@media(max-width:767px){.eletron-access-header,.eletron-section-title{display:block}.eletron-access-header>div:last-child,.eletron-section-title>button{margin-top:10px}.epa-kpi{margin-bottom:10px}}

/* V3.9.8 — Central Unificada */
.epa-unified-toolbar{background:#f8fafb;border:1px solid #dfe6eb;border-radius:6px;padding:12px;position:sticky;top:0;z-index:20}
.epa-unified-panel{height:100%;margin-bottom:0}
.epa-unified-panel .panel-heading{min-height:40px}
.epa-compact-body{padding:8px}
.epa-scroll-table{max-height:290px;overflow:auto}
.epa-kpi-compact{min-height:62px;padding:9px 12px}
.epa-layer-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;margin-top:8px}
.epa-layer-toggle{display:flex;align-items:center;gap:7px;border:1px solid #e7ebee;border-radius:4px;padding:6px 8px;margin:0;background:#fafcfd;font-weight:400;cursor:pointer}
.epa-layer-toggle input{margin:0}
.epa-inline-checkbox{display:inline-block;margin:0}
#epa-central-projects-table td,#epa-central-projects-table th,#epa-central-contracts-table td,#epa-central-contracts-table th,#epa-central-project-access-table td,#epa-central-project-access-table th{vertical-align:middle!important}
#epa-central-projects-table .badge{min-width:28px;background:#51647a}
#epaCentralProjectAccessModal .modal-dialog{width:min(1050px,94vw)}
@media(max-width:991px){
  .epa-layer-grid{grid-template-columns:1fr}
  .epa-unified-toolbar{position:static}
}

/* Estabilização 3.9.8 — diagnóstico, filtros e preflight */
.epa-health-row{margin-left:-5px;margin-right:-5px}
.epa-health-row>[class*="col-"]{padding-left:5px;padding-right:5px}
.epa-health-card{background:#fff;border:1px solid #dfe6eb;border-radius:6px;padding:10px 12px;min-height:66px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.epa-health-card small{display:block;color:#6b7785;text-transform:uppercase;font-size:10px;letter-spacing:.3px}
.epa-health-card strong{display:block;font-size:20px;line-height:24px;margin-top:3px}
.epa-section-actions{display:flex;align-items:center;gap:8px}
.epa-inline-filter{width:220px;display:inline-block}
#epa-preflight-alert{margin-top:10px;margin-bottom:0}
@media(max-width:767px){
  .epa-section-actions{display:block}
  .epa-inline-filter{width:100%;margin-bottom:6px}
}

/* Build STABILIZATION-B — Gestor/Técnico */
.epa-role-base,.epa-central-permission-role,.epa-permission-role{min-width:130px}
#epa-central-project-access-table select.form-control,
#epa-project-access-table select.form-control{height:30px;padding:4px 8px}

/* Build STABILIZATION-C — Controle Completo */
.epa-full-control-label{font-size:10px}
#epa-policy-mode{font-weight:600}
