/*
Theme Name: Portal Instalometro
Autor: Cristiane Honora Millan, Philipp Kleer
Version: 1.0
*/

/**************** FONTE IMPORT *************************/
@import url("https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");


/**************** ELEMENTOS GERAIS ********************/
/*** USED DEFINITIONS ****/
body {
  font-family: "Exo";
  font-size: 1.2rem;
}

/******* Source note on landing page ***********/
.fonte-dados-cnes {
  margin: 20px 0 0 0;
  font-family: "Exo";
  font-size: 1.3rem;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.33;
  letter-spacing: 0.4px;
  color: #626f85;
}

/***** Título no landing page *************/
.titulo {
  margin-top: 57px;
  margin-bottom: 77px;
  opacity: 0.8;
  text-align: center !important;
  font-family: "Exo";
  font-size: 5rem;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #0093a2;
}

/************ Call out on Landing page **************/
.callout-update {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7e6;
  border: 1px solid rgba(255, 193, 7, .35);
  margin-top: 14px;
}

.callout-update .callout-icon {
  flex: 0 0 auto;
  width: 10rem;
  height: 10rem;
  font-size: 8rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 193, 7, .0);
}

.callout-update .callout-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 4px;
}

.callout-update .callout-body {
  opacity: .9;
  font-size: 1.5rem;
  line-height: 1.35;
}

.callout-update .callout-actions {
  opacity: .9;
  font-size: 1.5rem;
  line-height: 1.35;
}


.callout-update .callout-link {
  font-weight: 600;
  text-decoration: underline;
}

/******* VALUE BOX CLASSES: APPLYING ALPHA e CORES *************/

.small-box .icon-large {
  position: absolute !important;
  /* top: 30px !important; */
  top: 50% !important;
  right: 20px !important;
  z-index: 0;
  font-size: 60px;
  transform: translateY(-50%) !important;
  /* adjust as you like */
  line-height: 1;
  opacity: 1;
  text-align: right;
  /* classic faded icon look */
}

/* Keep text above the icon */
.small-box .inner {
  position: relative;
  z-index: 1;
  padding-right: 100px;
}

.box-quant-primeria .small-box {
  background: rgba(39, 179, 137, 0.25) !important;
  color: rgba(39, 179, 137, 1) !important;
  font-family: "Exo";
  border-radius: 3px;
  padding: 10px;
  margin: 10px;
  font-size: 2rem;
  position: relative;
  min-height: 170px;
  min-width: 300px;
  box-shadow: 0 2px 20px 0 rgba(39, 179, 137, 0.5) !important;
}

.box-quant-outros .small-box {
  background: rgba(39, 179, 137, 0.25) !important;
  color: rgba(39, 179, 137, 1) !important;
  font-family: "Exo";
  border-radius: 3px;
  padding: 10px;
  margin: 10px;
  font-size: 2rem;
  position: relative;
  min-height: 170px;
  min-width: 300px;
  box-shadow: 0 2px 20px 0 rgba(39, 179, 137, 0.5) !important;
}

.box-quant-primeira-simet .small-box {
  background: rgba(1, 158, 174, 0.25) !important;
  color: rgba(1, 158, 174, 1) !important;
  font-family: "Exo";
  border-radius: 3px;
  padding: 10px;
  margin: 10px;
  font-size: 2rem;
  position: relative;
  min-height: 170px;
  min-width: 300px;
  box-shadow: 0 2px 20px 0 rgba(1, 158, 174, 0.5) !important;
}

.box-quant-outros-simet .small-box {
  background: rgba(1, 158, 174, 0.25) !important;
  color: rgba(1, 158, 174, 1) !important;
  font-family: "Exo";
  border-radius: 3px;
  padding: 10px;
  margin: 10px;
  font-size: 2rem;
  position: relative;
  min-height: 170px;
  min-width: 300px;
  box-shadow: 0 2px 20px 0 rgba(1, 158, 174, 0.5) !important;
}

.box-quant-medicoes .small-box {
  background: rgba(253, 137, 0, 0.25) !important;
  color: rgba(253, 137, 0, 1) !important;
  font-family: "Exo";
  border-radius: 3px;
  padding: 10px;
  margin: 10px;
  font-size: 2rem;
  position: relative;
  min-height: 170px;
  min-width: 300px;
  box-shadow: 0 2px 20px 0 rgba(253, 137, 0, 0.5) !important;
}

.box-perc-municipios .small-box {
  background: rgba(253, 137, 0, 0.25) !important;
  color: rgba(253, 137, 0, 1) !important;
  font-family: "Exo";
  border-radius: 3px;
  padding: 10px;
  margin: 10px;
  font-size: 2rem;
  position: relative;
  min-height: 170px;
  min-width: 300px;
  box-shadow: 0 2px 20px 0 rgba(253, 137, 0, 0.5) !important;
}


/************ Toggle switch for sidebar ************************/
/* Put labels + switch in a 3-column layout with equal gaps */
.mode-toggle {
  display: inline-grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  /* left text | switch | right text */
  align-items: center;
  column-gap: 2rem;
  /* same distance on both sides */
}

.mode-toggle .pretty.p-switch .state {
  padding: 0 !important;
  margin: 0 !important;
}

.mode-toggle .pretty.p-switch .state label {
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

/* --- prettySwitch sizing (keep knob inside track) --- */
.mode-toggle .pretty.p-switch {
  /* optional: scale text + spacing */
  font-size: 2rem;
  width: 5rem;
  height: 5rem;
  margin: 0 !important;
  align-self: center;
  /* grid/flex item */
  line-height: 1.5rem !important;
}

/* 1) Remove the extra layer that becomes the “2nd knob” in your theme */
.mode-toggle .pretty.p-switch .state label:before {
  content: none !important;
}

/* 2) Make sure .state is a positioning context */
.mode-toggle .pretty.p-switch .state {
  position: relative !important;
}

/* 3) Style the TRACK on .state:before */
.mode-toggle .pretty.p-switch .state:before {
  border: 1.5px solid #fff !important;
  box-shadow: none !important;
}

/* ON knob */
.mode-toggle .pretty.p-switch input:checked~.state label:after {
  /* left: 20px !important; */
  background: #0cde9f !important;
}

/* OFF knob */
.mode-toggle .pretty.p-switch .state label:after {
  background: #0cde9f !important;
  /* knob when OFF */
}

/* make prettySwitch margins symmetric */
.mode-toggle .pretty {
  display: inline-flex;
  /* participate in vertical centering */
  align-items: center;
  vertical-align: middle;
  margin: 0 0 !important;
  /* transform: translateY(50%); */
  transform: none !important;
}

.mode-toggle .label-left {
  justify-self: end;
  color: white;
  font-size: 1.75rem;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mode-toggle .label-right {
  justify-self: start;
  color: white;
  font-size: 1.75rem;
  text-align: right;
  margin: 0 !important;
  padding: 0 !important;
}

/********** SIDEBAR  ************/
.input-labels {
  font-family: "Exo";
  font-size: 2.5rem;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.71;
  margin-top: 0;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.87) !important;
  background-image: linear-gradient(to top, #009ea0 99%, #008fa3);
}


.ou {
  width: 15%;
  position: relative;
  top: -35px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Exo";
  font-size: 16px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.71;
  letter-spacing: 0.1px;
  text-align: center;
  color: rgba(255, 255, 255, 0.87);
  background-image: linear-gradient(to top, #009ea0 99%, #008fa3);

}

/* --- CNES search button  ---------------------------------------- */
.cnes-actions {
  margin-top: 10px;
}

.btn-cnes-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 18px;
  border-radius: 10px;

  font-family: "Exo";
  font-size: 1.8rem;
  font-weight: 600;

  color: #083b3f !important;
  /* texto escuro, combina com o tema */
  background: #0cde9f !important;
  /* verde do tema */
  border: 1px solid rgba(255, 255, 255, .25) !important;

  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn-cnes-search:hover {
  opacity: .95;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.btn-cnes-search:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .18);
}

.btn-cnes-search:focus,
.btn-cnes-search:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(12, 222, 159, .35), 0 6px 14px rgba(0, 0, 0, .18);
}

/* ícone com tamanho mais “clean” */
.btn-cnes-search .fa,
.btn-cnes-search i {
  font-size: 1.6rem;
}

/*********************** MENU DE ABAS INTERNO *****************/
.nav-tabs {
  border-bottom: none;
  font-size: 2rem;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
  color: #0cde9f;
  border-width: 0 0 5px !important;
  border-bottom-style: solid;
  border-bottom-color: #0cde9f !important;
  padding-bottom: 0;
}


/************ Headers panorama ******************/
.title-panorama {
  text-align: center;
  color: #0093a2;
  margin-top: 50px;
  margin-bottom: 50px;
  font-size: 4rem;
}

.subtitle-panorama {
  text-align: center;
  color: #0093a2;
  margin-top: 50px;
  margin-bottom: 0px;
  font-size: 3rem;
}


/******************* MENU LATERAL **************************/
.menu-lateral {
  margin-bottom: 0;
  padding: 24px 23.5px 155px 27.5px;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(to top, #009ea0 99%, #008fa3);
  height: 100vh;
}

.control-label {
  height: 22px;
  margin: 18px 13.5px 18px 5.5px;
  font-family: "Exo";
  font-size: 20px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 0.57;
  letter-spacing: normal;
  color: #fff;
}

/* Loose padding for sidebar */
.col-sm-3 {
  padding: 0;
}

/* button refresh */
.shiny-download-link {
  border: none !important;
  box-shadow: none !important;
}