*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f4f7fb url("fundo-positivistas.jpg") center center / cover fixed no-repeat;color:#152033;position:relative}body::before{content:"";position:fixed;inset:0;background:rgba(244,247,251,.40);z-index:-1;pointer-events:none}
header{height:70px;background:rgba(255,255,255,.94);border-bottom:1px solid #e6eaf0;display:flex;align-items:center;justify-content:space-between;padding:0 7%;position:sticky;top:0;z-index:5}
.brand{font-weight:900;letter-spacing:1px;color:#174ea6}
nav a{margin-left:20px;text-decoration:none;color:#334155;font-weight:600}
.hero{padding:90px 7%;background:linear-gradient(135deg,rgba(234,242,255,.66),rgba(255,255,255,.64));min-height:390px;display:flex;align-items:center}
.hero>div{max-width:760px}
.tag{font-size:12px;font-weight:800;letter-spacing:1.2px;color:#174ea6}
.hero h1{font-size:56px;margin:12px 0}
.hero p{font-size:20px;line-height:1.5;color:#526174}
.actions{display:flex;gap:12px}
.btn{border:0;background:#174ea6;color:white;padding:13px 20px;border-radius:9px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-block}
.secondary{background:#fff;color:#174ea6;border:1px solid #174ea6}
.card{background:rgba(255,255,255,.96);max-width:1000px;margin:28px auto;padding:30px;border-radius:16px;box-shadow:0 5px 25px #183b6a12}
.card h2{margin-top:0}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
form{display:grid;gap:14px}
input,select,textarea{width:100%;padding:13px;border:1px solid #cbd5e1;border-radius:9px;font:inherit;background:#fff}
textarea{min-height:130px;resize:vertical}
.msg{min-height:20px}
.hidden{display:none!important}
.roomHead{display:flex;justify-content:space-between;align-items:center}
.linkBtn{border:0;background:none;color:#174ea6;font-weight:800;cursor:pointer}
.statusBox{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}
.statusBox>div{padding:22px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.statusBox small{display:block;color:#64748b;font-weight:700}
.statusBox strong{display:block;font-size:27px;margin-top:5px}
.red{color:#d11a2a}
.stats{margin:20px 0}
.stats:empty{display:none}
.stat{padding:18px;border:1px solid #e2e8f0;border-radius:12px}
.stat b{font-size:26px}
.roomGrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.roomGrid article{border:1px solid #e2e8f0;border-radius:12px;padding:20px}
.payMethods{display:flex;gap:10px}
.payMethods button{padding:12px 18px;border:1px solid #174ea6;background:#fff;color:#174ea6;border-radius:8px;cursor:pointer;font-weight:800}
table{width:100%;border-collapse:collapse;margin-top:20px}
th,td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left}
footer{text-align:center;padding:40px;color:#64748b}
.listControls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px}
.listControls select{max-width:240px}
.downloadOptions{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px;margin-bottom:16px}
.downloadChoices{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:700px){
  nav{display:none}
  .hero h1{font-size:40px}
  .grid,.roomGrid,.statusBox{grid-template-columns:1fr}
  .card{margin:16px;padding:20px}
  .listControls{flex-direction:column;align-items:stretch}
  .listControls select{max-width:100%}
}

#paymentRef{background:#f0f7ff;border:1px solid #c5d9f5;border-radius:10px;padding:14px;margin:12px 0;line-height:1.6;font-size:15px;white-space:pre-line}
#paymentRef strong{color:#174ea6}

.publicStats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 22px}
.statBox{background:#f0f7ff;border:1px solid #c5d9f5;border-radius:12px;padding:18px;text-align:center}
.statBox small{display:block;color:#64748b;font-weight:700;font-size:11px;letter-spacing:.5px}
.statBox strong{display:block;font-size:28px;color:#174ea6;margin-top:6px}
.statsByProvince{margin-bottom:20px}
.statsByProvince h3{font-size:15px;margin:0 0 10px;color:#334155}
.statsByProvince table{margin-top:0}
@media(max-width:700px){.publicStats{grid-template-columns:1fr}}

.installHint{margin-top:14px;font-size:14px;color:#64748b;max-width:520px;line-height:1.4}
.actions{flex-wrap:wrap}


.noticeOverlay{position:fixed;inset:0;background:rgba(9,22,43,.28);z-index:1000;display:flex;align-items:flex-start;justify-content:flex-end;padding:88px 22px 18px;overflow-y:auto}
.noticeCard{position:relative;background:#fff;width:min(460px,100%);max-height:82vh;overflow-y:auto;border-radius:16px;padding:24px;box-shadow:0 20px 70px #0004;border:1px solid #dbe6f5}
.noticeCard h2{margin:10px 38px 14px 0;color:#174ea6}
.noticeCard p{line-height:1.55;color:#334155}
.noticeClose{position:absolute;right:14px;top:10px;border:0;background:#eef2f7;color:#1e293b;border-radius:50%;width:38px;height:38px;font-size:28px;line-height:1;cursor:pointer}
.noticeRef{background:#f0f7ff;border:1px solid #c5d9f5;border-radius:10px;padding:12px 14px;margin:10px 0;line-height:1.7}
.noticeDisclaimer{font-size:12px;color:#64748b!important}

.noticePayChoices{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 16px}.noticePayChoices .btn{flex:1;text-align:center;min-width:130px}.noticeCard ul{padding-left:22px;margin:0 0 14px;line-height:1.45}.noticeCard li{margin:5px 0}@media(max-width:600px){.noticeOverlay{padding:78px 10px 10px;justify-content:center}.noticeCard{padding:20px;max-height:84vh}.noticeCard h2{font-size:21px}}

/* Melhor legibilidade das informações dos candidatos nas listas */
#listTable table,
.statsByProvince table{background:rgba(255,255,255,.96);border-radius:10px;overflow:hidden}
#listTable th,
.statsByProvince th{color:#123b70;font-weight:900;background:#eaf2ff}
#listTable td,
.statsByProvince td{color:#123b70;font-weight:800;text-shadow:0 1px 0 rgba(255,255,255,.7)}
#listTable tbody tr:nth-child(even),
.statsByProvince tbody tr:nth-child(even){background:rgba(235,243,255,.96)}
#listTable tbody tr:nth-child(odd),
.statsByProvince tbody tr:nth-child(odd){background:rgba(255,255,255,.96)}
#listTable td,
#listTable th,
.statsByProvince td,
.statsByProvince th{border-bottom:1px solid #c5d6ee}


/* Destaque da autorização institucional */
.authorizationTop{display:inline-block;margin:8px 0 12px;font-size:12px;font-weight:600;color:#174a78;background:rgba(255,255,255,.88);padding:6px 10px;border:1px solid rgba(23,74,120,.16);border-radius:20px;line-height:1.35}
footer{font-size:12px;font-weight:500;line-height:1.6;text-align:center;padding:20px 14px;color:#64748b}
.footerCredential{display:inline-block;margin-bottom:5px;color:#174a78;font-size:11px;font-weight:600;line-height:1.4}
footer a{color:inherit;font-weight:700}


.deadlineNotice p{margin:0}

.positiveCounter{display:inline-flex;flex-direction:column;gap:3px;margin:10px 0 8px;padding:12px 18px;background:rgba(255,255,255,.94);border:1px solid #b8d4f5;border-left:4px solid #174ea6;border-radius:12px;box-shadow:0 5px 18px rgba(23,78,166,.08);min-width:230px}
.positiveCounterLabel{font-size:13px;color:#42546a;font-weight:700}.positiveCounter strong{font-size:30px;line-height:1.1;color:#174ea6}.positiveCounter small{font-size:11px;color:#64748b}

.candidateSearchResults{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:16px}.candidateResult{border:1px solid #c5d9f5;border-radius:12px;background:#f8fbff;padding:16px;overflow-wrap:anywhere}.candidateResult h3{margin:0 0 12px;color:#174ea6}.candidateResult dl{display:grid;grid-template-columns:minmax(100px, .8fr) 1.2fr;gap:8px;margin:0}.candidateResult dt{font-weight:800;color:#526174}.candidateResult dd{margin:0;font-weight:600}


/* Resultado da consulta individual: dados alinhados e valores em destaque */
.candidateResult{background:#fff;border:1px solid #cbd8e8;box-shadow:0 5px 18px rgba(20,55,95,.08);padding:20px}
.candidateResult h3{font-size:18px;font-weight:900;line-height:1.35;padding-bottom:10px;border-bottom:1px solid #e2e8f0}
.candidateResult dl{grid-template-columns:minmax(112px,.85fr) minmax(0,1.15fr);gap:0 12px;align-items:center}
.candidateResult dt,.candidateResult dd{padding:9px 0;border-bottom:1px solid #edf1f6;line-height:1.35}
.candidateResult dt{font-weight:900;color:#334155}
.candidateResult dd{font-weight:900;color:#172b49}
.candidateResult .candidateScoreValue{color:#16803c;font-size:17px;font-weight:900}
.candidateResult .candidateStatusValue{font-weight:900}
.candidateResult .candidateStatusNotAdmitted{color:#c62828;background:#fff0f0;border:1px solid #ffcaca;border-radius:7px;padding:7px 9px}
.candidateResult .candidateStatusOther{color:#174ea6}
@media(max-width:420px){.candidateResult dl{grid-template-columns:1fr;gap:0}.candidateResult dt{padding-bottom:2px;border-bottom:0}.candidateResult dd{padding-top:2px}}



/* Inscrição encerrada: opção visualmente bloqueada */
.signup-closed{background:#c62828!important;color:#fff!important;opacity:1!important;cursor:not-allowed!important;pointer-events:none!important;filter:none!important;text-decoration:none!important;border:0!important}

/* PWA install control */
#installApp { cursor: pointer; }
.installHint { line-height: 1.5; }
