:root{
  --blue:#083f7f;
  --blue-dark:#063367;
  --green:#58ef00;
  --cyan:#20e6e8;
  --line:#0b4c90;
  --paper:#fff;
  --muted:#9099a3;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#073a78;font-family:Arial,Helvetica,sans-serif}
body{display:flex;justify-content:center;min-height:100vh}
.app{
  width:min(100%,480px);
  min-height:100vh;
  background:#073a78;
  border-left:5px solid var(--blue-dark);
  border-right:5px solid var(--blue-dark);
}
.header{
  height:154px;
  position:relative;
  overflow:hidden;
  background:#073a78;
  border-top:5px solid var(--blue-dark);
}
.header:after{
  content:"";
  position:absolute;
  right:0;top:0;
  width:0;height:0;
  border-left:46px solid transparent;
  border-bottom:52px solid var(--green);
}
.brand{
  position:absolute;
  left:24px;
  top:12px;
  z-index:3;
}
.title{
  font-size:55px;
  line-height:.9;
  font-weight:1000;
  letter-spacing:-2px;
  color:#fff;
  margin:0;
  white-space:nowrap;
}
.subtitle{
  margin-top:10px;
  margin-left:55px;
  font-size:22px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.5px;
  color:var(--green);
  white-space:nowrap;
}
.headerCandidate{
  position:absolute;
  right:14px;
  bottom:0;
  width:104px;
  height:124px;
  object-fit:cover;
  object-position:center top;
  border-radius:52px 52px 0 0;
  z-index:2;
}
.candidateText{
  position:absolute;
  right:126px;
  bottom:12px;
  width:145px;
  text-align:right;
  color:#fff;
  font-size:10px;
  line-height:1.05;
  font-weight:800;
  z-index:4;
}
.candidateText strong{
  display:block;
  margin-top:3px;
  color:var(--green);
  font-size:16px;
  line-height:1;
}
.candidateText b{
  display:block;
  color:#fff;
  font-size:19px;
  line-height:1;
  margin-top:2px;
}
.card{
  margin:0 7px 10px 20px;
  background:#fff;
  border:3px solid var(--blue-dark);
  position:relative;
}
.vertical{
  position:absolute;
  left:-21px;
  top:0;bottom:0;
  width:21px;
  background:var(--green);
  border-right:1px solid var(--blue-dark);
  overflow:hidden;
}
.vertical span{
  position:absolute;
  left:2px;
  bottom:8px;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  white-space:nowrap;
  font-size:9px;
  font-weight:1000;
  color:#083e79;
}
.row{
  min-height:98px;
  display:grid;
  grid-template-columns:40% 60%;
  position:relative;
  border-bottom:1.5px solid var(--line);
}
.row:last-child{border-bottom:0}
.row:before{
  content:"";
  position:absolute;
  left:0;top:0;
  width:0;height:0;
  border-top:13px solid var(--cyan);
  border-right:13px solid transparent;
}
.office{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:8px;
  border-right:1.5px solid var(--line);
  font-size:24px;
  line-height:1.14;
  font-weight:1000;
  color:var(--blue-dark);
}
.office small{font-size:14px;margin-left:3px}
.choice{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  min-width:0;
  padding:7px 10px;
}
.editWrap{
  width:100%;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.searchInput{
  width:94%;
  border:0;
  outline:0;
  background:transparent;
  text-align:center;
  font-size:20px;
  font-weight:800;
  color:var(--blue);
  padding:16px 30px 16px 8px;
}
.searchInput::placeholder{color:var(--muted);opacity:1}
.clear{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#8e969d;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  display:none;
}
.selectedNumber{
  display:none;
  font-size:53px;
  line-height:.88;
  font-weight:1000;
  color:var(--blue);
}
.selectedName{
  display:none;
  margin-top:7px;
  font-size:20px;
  line-height:1;
  font-weight:1000;
  color:var(--blue-dark);
  text-transform:uppercase;
  white-space:nowrap;
  max-width:96%;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dropdown{
  position:absolute;
  left:5px;
  right:5px;
  top:79px;
  max-height:240px;
  overflow:auto;
  z-index:100;
  background:#fff;
  border:2px solid var(--blue);
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  display:none;
}
.option{
  padding:9px 10px;
  border-bottom:1px solid #d7e0e9;
  cursor:pointer;
  background:#fff;
  text-align:left;
}
.option:hover{background:#eef6ff}
.option .n{font-size:21px;font-weight:1000;color:var(--blue);margin-right:8px}
.option .nm{font-size:14px;font-weight:1000;color:var(--blue-dark)}
.option .p{font-size:10px;color:#6f7780;margin:3px 0 0 64px}
.option.empty{
  text-align:center;
  font-size:12px;
  color:#777;
  line-height:1.35;
  cursor:default;
}
.status{
  margin:8px 18px 10px;
  padding:8px 10px;
  border-radius:7px;
  background:#fff;
  color:#39434d;
  font-size:10px;
  line-height:1.35;
  text-align:center;
}
.status b{color:var(--blue)}
.controls{
  padding:0 14px 18px;
  display:flex;
  gap:7px;
  justify-content:center;
  flex-wrap:wrap;
}
.controls button{
  border:0;
  border-radius:7px;
  padding:9px 12px;
  font-size:11px;
  font-weight:1000;
  cursor:pointer;
}
.controls .print{background:var(--green);color:var(--blue-dark)}
.controls .reset{background:#fff;color:var(--blue);border:2px solid #fff}
#importCsv{display:none}
@media(max-width:440px){
  .header{height:146px}
  .title{font-size:49px}
  .subtitle{font-size:19px;margin-left:46px}
  .headerCandidate{width:93px;height:116px;right:10px}
  .candidateText{right:110px;width:125px;font-size:9px}
  .candidateText strong{font-size:14px}
  .candidateText b{font-size:17px}
  .office{font-size:21px}
  .row{min-height:94px}
  .selectedNumber{font-size:48px}
  .selectedName{font-size:18px}
  .searchInput{font-size:18px}
}
@media print{
  @page{
    size:A4 portrait;
    margin:10mm;
  }
  html,body{
    background:#fff !important;
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }
  body{
    display:block !important;
    margin:0 !important;
  }
  .app{
    width:100% !important;
    max-width:480px !important;
    min-height:auto !important;
    margin:0 auto !important;
    border-left:4px solid var(--blue-dark) !important;
    border-right:4px solid var(--blue-dark) !important;
    box-shadow:none !important;
    page-break-inside:avoid;
  }
  .header,.card,.row,.office,.choice,.vertical{
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }
  .controls,.status,.dropdown,.clear{
    display:none !important;
  }
  .row{
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .header{
    break-inside:avoid;
    page-break-inside:avoid;
  }
}

/* V2 - edição, reset e compartilhamento */
.selectedNumber,
.selectedName{
  cursor:pointer;
}
.choice.has-selection{
  cursor:pointer;
}
.choice.has-selection:hover{
  background:#f3f8fd;
}
.choice.has-selection:hover .selectedName{
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
}
.choice.is-editing{
  background:#f3f8fd;
}
.controls{
  padding-bottom:10px;
}
.controls .whatsapp{
  background:#25D366;
  color:#083f3a;
}
.controls .imageBtn{
  background:#fff;
  color:var(--blue);
  border:2px solid #fff;
}
.toast{
  min-height:28px;
  margin:0 18px 14px;
  color:#fff;
  text-align:center;
  font-size:11px;
  font-weight:700;
  opacity:0;
  transition:opacity .2s ease;
}
.toast.show{opacity:1}
@media(max-width:440px){
  .controls button{
    flex:1 1 calc(50% - 8px);
    min-height:40px;
  }
}
@media print{
  .toast{display:none !important}
}
