:root{
  --primary:#273cff;
  --primary-dark:#1628d8;
  --dark:#08184a;
  --text:#5f6780;
  --soft:#eef2ff;
  --line:#dcdff5;
  --cyan:#04bdd3;
  --success:#16a34a;
  --shadow:0 18px 50px rgba(8,24,74,.10);
}

*{margin:0;padding:0;box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  font-family:Arial,Helvetica,sans-serif;
  color:var(--dark);
  background:#eef3f5;
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(1180px,94%);
  margin:auto;
}

.header-wrap{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:50;
}

.header{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo-img{
  width:178px;
  display:block;
}

.nav{
  display:flex;
  gap:25px;
  font-size:14px;
  font-weight:800;
  color:#18245a;
}

.nav a:hover{
  color:var(--primary);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--primary);
  color:#fff;
  padding:12px 18px;
  border-radius:10px;
  border:0;
  font-weight:900;
  cursor:pointer;
  transition:.25s;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(39,60,255,.25);
}

.btn-light{
  background:#fff;
  color:var(--primary);
  border:1px solid var(--line);
  box-shadow:none;
}

.btn-cyan{
  background:var(--cyan);
}

.page{
  padding:30px 0 70px;
}

.hero{
  background:linear-gradient(135deg,#fff,#f5f7ff);
  border:1px solid var(--line);
  border-radius:26px;
  padding:34px 38px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}

.eyebrow{
  color:var(--primary);
  font-size:12px;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:12px;
}

.hero h1{
  font-size:34px;
  line-height:1.15;
  margin-bottom:12px;
}

.hero p{
  color:var(--text);
  font-size:16px;
  line-height:1.55;
  max-width:860px;
}

.search-layout{
  display:grid;
  grid-template-columns:310px 1fr;
  gap:26px;
  align-items:start;
}

.filter-card{
  background:#fff;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 10px 30px rgba(8,24,74,.08);
  overflow:hidden;
}

.filter-title{
  background:#f7f7f7;
  padding:16px 20px;
  text-align:center;
  font-size:18px;
  font-weight:900;
  color:#7a838c;
  border-bottom:1px solid var(--line);
}

.filter-body{
  padding:20px 18px 22px;
}

.field{
  margin-bottom:12px;
}

.field label{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#00476a;
  margin-bottom:6px;
}

.input-icon{
  position:relative;
}

.input-icon i{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:15px;
  height:15px;
  color:#9aa2b4;
}

#estado:disabled{
  background:#f7f9ff;
  color:#23305f;
  font-weight:700;
  cursor:not-allowed;
  opacity:1;
}

input,select{
  width:100%;
  height:36px;
  border:1px solid #cfd5df;
  border-radius:4px;
  padding:8px 10px;
  font-size:13px;
  outline:none;
  background:#fff;
  color:#27324f;
}

.input-icon input{
  padding-left:32px;
}

input:focus,select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(39,60,255,.10);
}

.divider{
  height:1px;
  background:var(--line);
  margin:18px 0;
}

.toggle-row{
  display:flex;
  align-items:center;
  gap:8px;
  color:#00476a;
  font-size:12px;
  margin:12px 0;
}

.switch{
  width:30px;
  height:18px;
  position:relative;
  display:inline-block;
  flex-shrink:0;
}

.switch input{
  display:none;
}

.slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:#e8e8e8;
  border-radius:999px;
  transition:.2s;
  border:1px solid #d6d6d6;
}

.slider:before{
  content:"";
  position:absolute;
  width:16px;
  height:16px;
  left:0;
  top:0;
  background:#fff;
  border-radius:50%;
  transition:.2s;
  box-shadow:0 1px 3px rgba(0,0,0,.18);
}

.switch input:checked + .slider{
  background:#16bfd7;
  border-color:#16bfd7;
}

.switch input:checked + .slider:before{
  transform:translateX(12px);
}

.actions{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

.actions .btn{
  border-radius:0;
  height:38px;
  padding:0 14px;
  font-size:12px;
}

.actions .btn:first-child{
  border-radius:4px 0 0 4px;
}

.actions .btn:last-child{
  border-radius:0 4px 4px 0;
}

.content-area{
  background:#fff;
  border-radius:16px;
  border:1px solid var(--line);
  min-height:620px;
  box-shadow:0 10px 30px rgba(8,24,74,.06);
  overflow:hidden;
}

.content-head{
  padding:24px 30px;
  border-bottom:1px solid var(--line);
}

.content-head h2{
  font-size:17px;
  color:#00476a;
  margin-bottom:10px;
}

.content-head p{
  color:#00476a;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
}

.content-head p::before{
  content:"";
  width:9px;
  height:6px;
  border-radius:2px;
  background:#12bfd5;
  display:inline-block;
}

.regulatory-note{
  margin:18px 30px 0;
  background:#f8faff;
  border:1px solid #dbe1ff;
  border-radius:14px;
  padding:14px 16px;
  color:#37415f;
  font-size:12px;
  line-height:1.5;
}

.results{
  padding:24px 30px 34px;
}

.empty-state{
  background:#f8faff;
  border:1px dashed #ccd6ff;
  border-radius:18px;
  padding:34px;
  text-align:center;
  color:var(--text);
}

.empty-state i{
  width:46px;
  height:46px;
  color:var(--primary);
  margin-bottom:12px;
}

.empty-state strong{
  display:block;
  color:var(--dark);
  font-size:18px;
  margin-bottom:8px;
}

.loading{
  display:none;
  margin-bottom:18px;
}

.skeleton{
  height:136px;
  border-radius:18px;
  background:linear-gradient(90deg,#f2f4ff 25%,#e8ecff 37%,#f2f4ff 63%);
  background-size:400% 100%;
  animation:skeleton 1.4s ease infinite;
  margin-bottom:14px;
  border:1px solid #e4e8ff;
}

@keyframes skeleton{
  0%{background-position:100% 50%}
  100%{background-position:0 50%}
}

.client-box{
  background:#eef2ff;
  border:1px solid #d7ddff;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:18px;
  color:#23305f;
}

.client-box strong{
  color:var(--primary);
}

.provider-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  margin-bottom:16px;
  background:#fff;
  box-shadow:0 8px 22px rgba(8,24,74,.05);
  transition:.25s ease;
  overflow:hidden;
}

.provider-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(8,24,74,.10);
  border-color:#cbd4ff;
}

.provider-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.provider-title-row h3,
.provider-card h3{
  font-size:19px;
  color:var(--dark);
  margin-bottom:0;
  letter-spacing:.1px;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#d1fae5;
  color:#065f46;
  border:1px solid #bbf7d0;
  border-radius:999px;
  padding:7px 12px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

.provider-meta{
  display:grid;
  gap:12px;
  color:var(--text);
  font-size:14px;
}

.meta-line{
  display:flex;
  gap:9px;
  align-items:flex-start;
}

.meta-line i{
  width:17px;
  height:17px;
  color:var(--primary);
  flex-shrink:0;
  margin-top:1px;
}

.small-meta{
  font-size:12px;
  color:#6b7280;
}

.badge-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:2px;
  min-width:0;
}

.badge{
  display:inline-flex;
  align-items:center;
  background:var(--soft);
  color:var(--primary);
  border-radius:999px;
  padding:8px 14px;
  font-size:12px;
  font-weight:900;
  line-height:1;
  border:1px solid #dbe1ff;
  font-style:normal;
  white-space:normal;
  max-width:100%;
}

.badge-green{
  background:#ecfdf3;
  color:#15803d;
  border-color:#bbf7d0;
}

.badge-red{
  background:#fff1f2;
  color:#be123c;
  border-color:#fecdd3;
}

.badge-blue{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}

.address-list{
  display:grid;
  gap:10px;
}

.address-card{
  display:grid;
  gap:8px;
  background:#fafbff;
  border:1px solid #edf0ff;
  border-radius:14px;
  padding:12px 14px;
}

.address-text,
.address-phone{
  display:flex;
  gap:8px;
  align-items:flex-start;
  color:#4c5774;
}

.address-text i,
.address-phone i{
  width:17px;
  height:17px;
  color:var(--primary);
  flex-shrink:0;
  margin-top:1px;
}

.address-phone{
  font-size:13px;
  font-weight:800;
  color:#23305f;
}

.card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}

.action-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #dbe1ff;
  background:#fff;
  color:var(--primary);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  transition:.25s ease;
}

.action-link:hover{
  background:var(--primary);
  color:#fff;
  transform:translateY(-1px);
}

.action-link i{
  width:14px;
  height:14px;
}

.action-link.phone{
  color:#273cff;
  border-color:#dbe1ff;
}

.action-link.phone:hover{
  background:#273cff;
  color:#fff;
}

.action-link.whats{
  color:var(--success);
  border-color:#c9f3d8;
}

.action-link.whats:hover{
  background:var(--success);
  color:#fff;
}

.provider-phone{
  display:flex;
  gap:8px;
  align-items:center;
  color:#4c5774;
  font-weight:800;
}

.provider-phone i{
  width:17px;
  height:17px;
  color:var(--primary);
}

.footer{
  background:#eef0fb;
  padding:34px 0 22px;
  margin-top:60px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr 1fr;
  gap:30px;
  font-size:14px;
}

.footer-logo{
  width:165px;
  margin-bottom:12px;
}

.footer strong{
  display:block;
  margin-bottom:8px;
}

.footer p{
  line-height:1.6;
  color:#23315f;
}

.footer-bottom{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:13px;
  color:#5f6780;
}

.footer-bottom p{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  align-items:center;
}

.pdf-tools{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.pdf-tools .btn-pdf{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#fff;
  color:var(--primary);
  border:1px solid #dbe1ff;
  border-radius:999px;
  padding:11px 16px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition:.25s ease;
}

.pdf-tools .btn-pdf:hover{
  background:var(--primary);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(39,60,255,.18);
}

.pdf-tools .btn-pdf i{
  width:16px;
  height:16px;
}

.pdf-tools-sidebar{
  margin-top:14px;
  margin-bottom:0;
}

.pdf-tools-sidebar .btn-pdf{
  width:100%;
  border-radius:10px;
  padding:12px 14px;
}

/* Correção de preservação visual da página Rede */
body.rede-page .page{padding:30px 0 70px;}
body.rede-page .hero{
  display:block !important;
  background:linear-gradient(135deg,#fff,#f5f7ff) !important;
  border:1px solid var(--line) !important;
  border-radius:26px !important;
  padding:34px 38px !important;
  margin:0 auto 24px !important;
  box-shadow:var(--shadow) !important;
  min-height:auto !important;
}
body.rede-page .hero h1{font-size:34px;line-height:1.15;margin-bottom:12px;max-width:860px;}
body.rede-page .hero p{font-size:16px;line-height:1.55;max-width:860px;color:var(--text);}
body.rede-page .search-layout{margin-top:0;}

@media(max-width:980px){
  .nav{display:none}

  .search-layout,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:28px;
  }

  .content-area{
    min-height:420px;
  }
}

@media(max-width:560px){
  .hero{
    padding:28px 22px;
  }

  .results,
  .content-head{
    padding-left:20px;
    padding-right:20px;
  }

  .regulatory-note{
    margin-left:20px;
    margin-right:20px;
  }

  .badge{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  .actions{
    flex-direction:column;
  }

  .actions .btn,
  .actions .btn:first-child,
  .actions .btn:last-child{
    border-radius:8px;
    width:100%;
  }

  .provider-title-row{
    flex-direction:column;
  }

  .status-pill{
    width:max-content;
  }
}


.client-note{
  display:inline-block;
  margin-top:6px;
  font-size:12px;
  color:#5f6780;
  font-weight:700;
}
