*{box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#f0f2f5;margin:0;padding:12px;color:#1a252f}
.container{max-width:480px;margin:0 auto}
.topbar{display:flex;flex-direction:column;gap:8px;margin:4px 0 10px}
.topbar-row{display:flex;justify-content:center;align-items:center;gap:8px;text-align:center}
#welcome{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:linear-gradient(135deg,#036 0%,#0056b3 100%);cursor:pointer;transition:opacity .3s;padding:24px}
#welcome.hidden{opacity:0;pointer-events:none;visibility:hidden}
.seo-content {
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    padding: 23px;
    margin: 14px 0 30px;
    max-width: 460px;
    margin: 0 auto;
}
.seo-content h2{margin:0 0 6px;color:#036;font-size:16px}
.seo-content p{margin:6px 0;color:#444;line-height:1.6;font-size:13.5px}
#welcome-logo{max-width:min(78vw,340px);max-height:46vh;object-fit:contain;border-radius:12px}
.welcome-title{color:#fff;font-size:22px;font-weight:800;letter-spacing:-.01em;line-height:1.25;margin:0;max-width:560px;text-align:center;text-wrap:balance}
.welcome-desc{color:rgba(255,255,255,.92);font-size:14px;line-height:1.55;margin:0;max-width:560px;text-align:center}
.welcome-tap{color:#fff;font-size:15px;font-weight:800;background:rgba(255,255,255,.15);border:1.5px solid rgba(255,255,255,.6);padding:10px 22px;border-radius:999px;animation:welcomePulse 1.6s infinite}
@keyframes welcomePulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.85}}
body.welcome-open{overflow:hidden}
.brand-logo{display:block;width:100%;/* max-width:340px; */height:auto;/* max-height:76px; */object-fit:contain;margin:0 auto;/* background:#fff; */border-radius:10px;padding:6px 12px}
.topbar h1{font-size:23px;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin:0;background:linear-gradient(135deg,#036 0%,#0056b3 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-wrap:balance}
.sub{display:inline-block;font-size:12.5px;font-weight:600;color:#036;background:#e3eefb;border:1px solid #b8daff;border-radius:999px;padding:6px 14px;margin:8px 0 0;line-height:1.35}
.ad-slot{margin:10px 0;text-align:center}
.ad-slot small{font-size:10px;color:#999;text-transform:uppercase}
.ad-box{background:#e9ecef;border:1px dashed #adb5bd;border-radius:8px;min-height:90px;display:flex;align-items:center;justify-content:center;color:#6c757d;font-size:13px;padding:10px}
.ad-box.ad-compact{min-height:52px;font-size:12px;padding:6px 10px}
.location-bar{background:linear-gradient(135deg,#036 0%,#0056b3 100%);padding:12px 14px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;border:1.5px solid #dcdfe6;font-size:13px;cursor:pointer;box-shadow:0 4px 14px rgba(0,51,102,.28);transition:border-color .15s,box-shadow .15s;color:#ffff}
.location-bar:hover{border-color:#b8daff;box-shadow:0 2px 8px rgba(0,51,102,.10)}
.location-bar:focus-within{border-color:#036;box-shadow:0 0 0 3px rgba(0,51,102,.15)}
.loc-uf-wrap{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center}
#sel-uf{flex:0 1 auto;min-width:0;font-size:15px;font-weight:800;color:#fff;border:none;background:transparent;cursor:pointer;max-width:100%;appearance:none;-webkit-appearance:none;padding:0 30px;margin:0;text-align:center;text-align-last:center}
#sel-uf:focus{outline:none}
#sel-uf option{padding:12px 5px;color:#6c757d;background:#f1f3f5;text-align:left}
#sel-uf-big option{padding:12px 5px;text-align:left}
.loc-chevron{flex:none;color:#fff;font-size:13px;font-weight:800;pointer-events:none;transition:transform .15s}
.location-bar:focus-within .loc-chevron{transform:rotate(180deg)}
#mun-wrap{flex:1;min-width:0;text-align:right}
#mun-wrap[hidden]{display:none}
#sel-mun{width:100%;max-width:220px;font-size:14px;font-weight:600;color:#1a252f;padding:9px 12px;border:1.5px solid #dcdfe6;border-radius:10px;background:#f8fafc;transition:border-color .15s,box-shadow .15s}
#sel-mun:focus{outline:none;border-color:#036;box-shadow:0 0 0 3px rgba(0,51,102,.15);background:#fff}
.location-bar.loc-mun #sel-mun{border-color:#036;font-weight:700;color:#036}
.location-bar button{background:none;border:none;color:#0056b3;font-weight:bold;cursor:pointer;text-decoration:underline}
.colinha-slot{background:#fff;border:1.5px solid #b8daff;border-radius:8px;padding:10px 12px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.colinha-slot:hover{border-color:#036;box-shadow:0 2px 8px rgba(0,51,102,.12)}
.colinha-slot:active{transform:scale(.995)}
.colinha-slot.is-filled{border-color:#036;background:linear-gradient(180deg,#f2f8ff 0%,#fff 70%);box-shadow:0 1px 4px rgba(0,51,102,.10)}
.colinha-slot.is-filled .slot-cargo{color:#036;font-weight:800;letter-spacing:.04em}
.colinha-slot.is-filled .slot-candidate-name{font-size:15.5px;font-weight:800;color:#0a2540}
.colinha-slot.is-empty{border-color:#e1e5ea;background:#f7f9fb;box-shadow:none}
.colinha-slot.is-empty:hover{border-color:#b8daff}
.colinha-slot.is-empty .slot-cargo{font-size:10.5px;color:#9aa4ae}
.colinha-slot.is-empty .slot-candidate-name{font-size:12.5px;font-weight:600;color:#9aa4ae}
.colinha-slot.is-empty .slot-go{color:#c3ccd4}
body.no-digits .colinha-slot.is-filled .slot-candidate-name{font-size:19px;font-weight:800;color:#0a2540}
body.no-digits .colinha-slot.is-filled .slot-cargo{font-size:16px;font-weight:bold;color:rgb(0 35 103)}
body.no-digits .colinha-slot.is-empty .slot-candidate-name{font-size:13px;font-weight:600;color:#9aa4ae}
body.no-digits .colinha-slot.is-empty .slot-cargo{font-size:12px;color:#9aa4ae}
.slot-ord{flex:none;width:24px;height:24px;background:#eef5fc;color:#036;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
body.no-slotord .slot-ord{display:none !important}
span.slot-go{display:none}
.word-box{border:1.5px solid #036;border-radius:4px;padding:4px 8px;font-size:11px;font-weight:800;color:#036;background:#eef5fc;white-space:nowrap}
.link-btn{background:none;border:none;color:#ffe27a;font-size:11px;text-decoration:underline;cursor:pointer;padding:0}
.modal-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.modal-title{flex:1;font-size:18px;font-weight:800;letter-spacing:.01em;text-align:center;background:linear-gradient(135deg,#036 0%,#0056b3 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
#btn-close{width:32px;height:32px;border:none;border-radius:50%;background:#f1f3f5;color:#495057;font-size:18px;line-height:1;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;transition:background .15s;flex:none}
#btn-close:hover{background:#dee2e6}
    .quick-row {
    display: inline-grid;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}
    .esp-row {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0 12px 0;
    gap: 8px;
}
.quick-row button,.esp-row button{flex:1 1 0;min-height:0;white-space:nowrap;font-size:12.5px;font-weight:800;line-height:1.2;padding:6px 8px;border-radius:8px;cursor:pointer}
    button#btn-list-all {
    font-size: 13px;
    font-weight: 800;
    color: rgb(255, 255, 255);
    cursor: pointer;
    box-shadow: rgba(0, 51, 102, 0.25) 0px 2px 6px;
    background: linear-gradient(135deg, rgb(0, 51, 102) 0%, rgb(0, 86, 179) 100%);
    border-width: 1.5px;
    border-style: solid;
    border-color: rgb(0, 51, 102);
    border-image: none;
    padding: 5px 175px;
    border-radius: 10px;
    flex: 0 0 auto;
    transition: transform 0.1s, box-shadow 0.15s;
    margin: 0 0 5px;
    justify-content: space-between;
    flex-direction: row;
}
#btn-list-all:hover{box-shadow:0 3px 10px rgba(0,51,102,.35)}
#btn-list-all:active{transform:scale(.97)}
.esp-row button{color:#036;background:linear-gradient(180deg,#f2f8ff,#e7f0fb);border:1.5px solid #b8daff;box-shadow:0 1px 3px rgba(0,51,102,.10);transition:background .15s,color .15s,transform .1s}
.esp-row button:hover{background:#036;border-color:#036;color:#fff}
.esp-row button:active{transform:scale(.98)}
.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.filter-row[hidden]{display:none}
#filter-toggle{display:block;margin:0 auto 8px;min-height:0;background:none;border:none;color:#036;font-size:12.5px;font-weight:700;line-height:1.2;cursor:pointer;padding:4px 12px;text-decoration:underline;white-space:nowrap}
#filter-toggle::before{content:'▸ ';font-size:11px}
#filter-toggle.open::before{content:'▾ '}
.filter-sel{font-size:13px;padding:8px 26px 8px 10px;border:1.5px solid #dcdfe6;border-radius:8px;background:#fff;color:#1a252f;flex:1 1 140px;min-width:0;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23036' stroke-width='1.8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.filter-sel.on{border-color:#036;background:#e7f0fb;font-weight:800;color:#036}
.filter-clear{font-size:12px;font-weight:700;color:#495057;background:#f1f3f5;border:none;border-radius:999px;cursor:pointer;padding:7px 14px;transition:background .15s}
.filter-clear:hover{background:#dee2e6}
.result-count:empty{display:none}
.result-count{align-self:center;font-size:12px;font-weight:700;color:#036;background:#eef5fc;border:1px solid #b8daff;border-radius:999px;padding:4px 14px;margin-bottom:8px;min-height:16px;max-width:100%}
.slot-info{flex-grow:1;min-width:0}
.slot-cargo{font-size:11px;font-weight:bold;color:#6c757d;text-transform:uppercase}
.slot-candidate-name{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot-candidate-name.is-esp{text-align:center}
.slot-digits{display:flex;gap:3px}
body.no-digits .slot-digits{display:none !important}
body.no-digits .slot-candidate-name{font-size:19px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
body.no-digits .slot-cargo{font-size:16px;font-weight:bold;color:rgb(0 35 103);text-transform:uppercase}
.digit-box{width:22px;height:28px;border:1.5px solid #036;background:#eef5fc;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-weight:bold;color:#036}
button.btn-clear{color:rgb(213 213 213);cursor:pointer;font-size:39px;background:none;border-width:medium;border-style:none;border-color:currentcolor;border-image:none;padding:4px 6px}
#results-list li.hint{color:#888;cursor:default}
#results-list li.cand{display:flex;gap:10px;align-items:center}
#results-list li.cand div{flex:1;min-width:0}
.thumb{width:40px;height:53px;max-height:100%;border-radius:4px;object-fit:cover;object-position:top center;background:#dee2e6;flex:none;align-self:center;display:block}
.thumb.nofoto,.mini.nofoto{display:inline-flex;align-items:center;justify-content:center;color:#fff;background:#6c757d;font-weight:800}
span.mini.nofoto{width:50px;min-height:60px;font-size:18px}
img.mini{width:50px;height:auto;max-height:100%;object-fit:cover;object-position:center top;align-self:center;display:block;border-radius:4px;flex:0 0 auto;background:rgb(222,226,230)}
.print-action-section{margin:20px 0;padding:16px;background:linear-gradient(135deg,#036 0%,#0056b3 100%);border-radius:12px;color:#fff}
.print-options-bar{display:flex;justify-content:center;margin-bottom:12px;font-size:13px;flex-direction:row;align-items:center;gap:20px}
.print-options-bar select{padding:6px 10px;border-radius:6px;border:1px solid #fff;color:#036;font-weight:bold}
.btn-print-main{width:100%;background:#fc0;color:#02243f;border:none;border-radius:10px;padding:35px;font-weight:800;cursor:pointer;font-size:15px}
.fine{font-size:11px;opacity:.9;margin:8px 0 0}
.footer{font-size:11px;color:#888;text-align:center;margin:14px 0 30px}
.footer a{color:#036}
#screen-state{max-width:480px;margin:0 auto;padding:12px}
#screen-state[hidden],#screen-main[hidden]{display:none}
.state-card{background:#fff;border:1px solid #dcdfe6;border-radius:12px;padding:18px 16px;text-align:center}
.state-card h2{margin:0 0 2px;font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.2;background:linear-gradient(135deg,#036 0%,#0056b3 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-wrap:balance}
.state-card .sub{text-align:center}
.state-text{font-size:13.5px;color:#444;line-height:1.6;margin:10px 0 0;text-align:left}
.state-label{display:block;font-size:13px;font-weight:800;color:#036;margin:12px 0 6px;text-align:left}
#sel-uf-big{width:100%;font-size:17px;font-weight:800;color:#036;padding:14px 40px 14px 14px;text-align:left;text-align-last:left;border:2px solid #036;border-radius:10px;background-color:#eef5fc;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23036' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;cursor:pointer}
#sel-uf-big:focus{outline:none;box-shadow:0 0 0 3px rgba(0,51,102,.15)}
#btn-to-main{margin-top:14px}
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:none;justify-content:center;padding:12px;z-index:1000}
.modal-overlay.open{display:flex}
.modal-content{background:#fff;width:100%;max-width:440px;border-radius:12px;padding:12px 14px;max-height:92vh;max-height:92dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.modal-top,.search-input,.quick-row,#filter-toggle,.filter-row,.result-count{flex:none}
.modal-content h3{margin:0 0 10px;color:#036}
.search-input:focus{outline:none;/* border-color:#0b85ff; */background:#fff;box-shadow:0 0 0 0px rgb(123 125 137 / 68%)}
.search-input{padding:11px 12px;border:2px solid #d8e6ed;border-radius:10px;margin-bottom:8px;font-size:16px;background:#f8fafc;transition:border-color .15s,box-shadow .15s,background .15s;width:100%}
#results-list {
    list-style: none;
    padding: 0;
    /* margin: 0 0 8px; */
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 80px;
    scrollbar-width: thin;
    scrollbar-color: #b8daff transparent;
}
#results-list::-webkit-scrollbar{width:6px}
#results-list::-webkit-scrollbar-track{background:transparent}
#results-list::-webkit-scrollbar-thumb{background:#b8daff;border-radius:3px}
#results-list li{padding:10px;border:1px solid #eee;border-radius:8px;margin-bottom:8px;cursor:pointer}
.thumb.nofoto{width:40px;height:53px;font-size:18px}
#results-list li.pg-spacer{padding:0;border:none;margin:0;cursor:default;overflow:hidden}
#results-list li.pg-sentinel{cursor:default;text-align:center}
#results-list li strong{display:block}
#results-list li span{font-size:12px;color:#555}
@media (max-width:560px){
  .modal-overlay{padding:0;align-items:flex-start;justify-content:center}
  .modal-content{border-radius:0 0 14px 14px;max-width:100%;width:100%;max-height:94vh;max-height:94dvh;padding:10px 12px}
  .quick-row button,.esp-row button{font-size:12px;padding:5px 6px}
}
#a4-print-area{display:none}
@page{size:A4 portrait;margin:4mm}
@media print{
 body{background:#fff;margin:0;padding:0}
 .no-print,.ad-slot{display:none !important}
  #a4-print-area{display:grid !important;gap:6mm;min-height:288mm;align-content:center;justify-content:center}
  .a4-page.qty-1{grid-template-columns:1fr}
  .a4-page.qty-2{grid-template-columns:repeat(2,70mm);gap:4mm}
  .a4-page.qty-3,.a4-page.qty-4{grid-template-columns:repeat(2,70mm);gap:4mm}
  .a4-page.qty-6{grid-template-columns:repeat(2,95mm);column-gap:2mm;row-gap:4mm}
   .colinha-card{width:70mm;height:95mm;border:2px solid #036;border-radius:6px;padding:8px;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .colinha-header{background:#036 !important;color:#fff !important;text-align:center;font-weight:bold;font-size:12px;padding:4px;border-radius:3px;margin-bottom:6px}
  .colinha-header + .cargo-row{margin-top:20px}
  .colinha-title{display:block}
  .cargo-row{border:1px solid #b8daff;padding:4px;margin-bottom:4px;border-radius:3px}
  .cargo-label{font-size:9px;font-weight:bold;color:#555;text-transform:uppercase}
  .cargo-val{font-size:12px;font-weight:bold}
  .cargo-val.is-esp{text-align:center}
  .cargo-nr{display:inline-block;font-size:14px;font-weight:800;color:#036 !important;border:1.5px solid #036;border-radius:3px;padding:0 6px;margin-right:2px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .cargo-nome{font-weight:800;color:#000 !important}
  .cargo-part{font-weight:400;color:#444 !important;font-size:10px}
  .cargo-blank{color:#888 !important;font-weight:400}
  .colinha-footer{font-size:9px;color:#888 !important;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .a4-page.qty-6 .colinha-footer{font-size:8px;margin-top:2px}
  .a4-page.qty-6{gap:2mm}
  .a4-page.qty-6 .colinha-card{width:95mm;height:70mm;padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
  .a4-page.qty-6 .colinha-rotate{width:70mm;height:95mm;flex:none;transform:rotate(90deg);display:flex;flex-direction:column;justify-content:center;padding:5px}
  .a4-page.qty-6 .colinha-header{font-size:10px;padding:3px;margin-bottom:4px}
  .a4-page.qty-6 .colinha-header + .cargo-row{margin-top:16px}
  .a4-page.qty-6 .cargo-row{padding:2px 4px;margin-bottom:2px}
  .a4-page.qty-6 .cargo-label{font-size:8px}
  .a4-page.qty-6 .cargo-val{font-size:11px}
  .a4-page.qty-6 .cargo-nr{font-size:12px;padding:0 5px}
  .a4-page.qty-6 .cargo-part{font-size:9px}
}
