:root {
  --cor-primaria-0: #FFF9F2;
  --cor-primaria-1: #FFE6CC;
  --cor-primaria-2: #FF936B;
  --cor-primaria-3: #F15A22;
  /*  Cor primária, predominante na aplicação  */
  --cor-primaria-4: #C74211;
  --cor-primaria-5: #982900;
  --cor-primaria-6: #7D1601;
  --cor-white: #FFFFFF;
  --cor-black: #000000;
  --cor-dark-gray: #141414;
  --cor-secundaria: #325565;
  
  --gradient-one: linear-gradient(#5CD8A4, #35B47F);
  --gradient-two: linear-gradient(#24CCB7, #00A793);
  --gradient-three: linear-gradient(#1CBCC5, #0097A0);
  --gradient-four: linear-gradient(#19A1C7, #0184A8);
  --gradient-five: linear-gradient(#1F92D5, #0070B1);
  --gradient-six: linear-gradient(#FFCC25, #FFAB00);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; 
}

.banner .card-group {
  padding-bottom: 60px;
  z-index: 4;
}

.bg-orange {
  background-color: var(--cor-primaria-3);
  border: none;
}

/* Navegação web */
@media (min-width: 1200px) {

  .banner {
    width: 100%;
    position: relative;
    padding: 140px 0 0 0;
  }

  #row-cards {
    padding-bottom: 40px;
  }

  /* #row-cards:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(18% + 20px);
    background-color: var(--default-color);
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  } */

  #page-top {
    display: none;
    visibility: hidden;
  }

  #menu {
    display: none;
  }

  /* -------Menu Desktop---------- */
  .menu-desktop {
    padding: 0;
  }

  .menu-desktop ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .menu-desktop li {
    position: relative;
  }

  .menu-desktop>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .menu-desktop>ul>li:last-child {
    padding-right: 0;
  }

  .menu-desktop a,
  .menu-desktop a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .menu-desktop a i,
  .menu-desktop a:focus i {
    font-size: 38px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  #shooping-cart-count {
    top: -20px;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
  }

  #shooping-cart-count span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 25px;
  }

  .text-excluir small {
    font-size: 10px !important;
  }

  .btn-excluir {
    vertical-align: middle;
  }

  /*Footer bottom*/
  #footer {
    /* position: fixed; */
    bottom: 0px;
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
  }
}

/* Navegacao mobile */
@media (max-width: 1199px) {
  #page-top {
    position: fixed;
    background-color: var(--cor-primaria-3);
    border-radius: 50%;
    height: 45px;
    width: 45px;
    bottom: 25px;
    right: 8%;
    color: var(--cor-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.33);
  }

  #page-top i {
    font-size: 2.5rem;
  }

  #link-logo {
    position: absolute;
    left: 34%;
  }

  .menu-desktop {
    padding-right: 4px;
  }

  .menu-desktop ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .menu-desktop li {
    position: relative;
  }

  .menu-desktop>ul>li {
    white-space: nowrap;
    /* padding: 15px 14px; */
  }

  .menu-desktop>ul>li:last-child {
    padding-right: 0;
  }

  .menu-desktop a,
  .menu-desktop a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .menu-desktop a i,
  .menu-desktop a:focus i {
    font-size: 1.4rem;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .menu {
    padding: 0;
    z-index: 9997;
  }

  .menu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .menu a,
  .menu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .menu a i,
  .menu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .menu a i:hover,
  .menu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .menu a:hover,
  .menu .active,
  .menu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .menu .active i,
  .menu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .menu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .menu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .menu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: var(--cor-white);
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .menu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .menu>ul {
    display: block;
    padding: 20px;
  }

  .mobile-nav-active .menu>ul>li {
    display: block;
    padding-block-start: 20px;
  }

  .mobile-nav-active .menu>ul {
    background-color: #009889;
  }

  .mobile-nav-active .menu>ul>li i {
    font-size: 1.4rem;
    padding-right: 20px;
  }

  .mobile-nav-active .menu>ul>li a {
    color: var(--cor-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 0;
    display: flex;
    justify-content: start;

  }

  .mobile-nav-active .menu-desktop {
    opacity: 0;
    visibility: hidden;
  }

  .btn-excluir {
    vertical-align: middle;
  }

}

@media (max-width: 991px) {
  /* #logo-text {
    display: none;
  } */

  #text-login {
    display: none;
  }

  #shooping-cart-count {
    top: -10px;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
  }

  #shooping-cart-count span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 25px;
  }

  #link-logo {
    position: absolute;
    left: 44%;
  }

  .text-excluir {
    display: none;
  }
}

section#tutorial {
  background-color: var(--cor-white);
  padding: 40px 0;
}

.footer .foot-text {
  padding-top: 10px;
  padding-bottom: 10px;
  /* border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); */
}

#footer p {
  margin: 0;
}

.footer {
  color: var(--cor-white);
  background-color: var(--cor-secundaria);
  font-size: 14px;
  position: relative;

}

/* Select 2 */

.select2-container .select2-selection--single {
  height: 34px;
  border: 1px solid rgba(43, 61, 81, 0.3);
  outline: none !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 32px !important;
  padding-left: 12px;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: 32px;
  width: 30px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #64b0f2;
  color: var(--cor-white);
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid rgba(43, 61, 81, 0.3);
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0 12px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: 1px solid rgba(43, 61, 81, 0.3);
}

.select2-dropdown {
  border: 1px solid rgba(43, 61, 81, 0.3);
  box-shadow: 0 2px 2px rgba(43, 61, 81, 0.15);
}

.select2-search--dropdown {
  padding: 7px;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid rgba(43, 61, 81, 0.3);
  outline: none !important;
}

#text-select2 {
  font-weight: 600;
}

.menu-card {
  height: 10.8rem;
  width: 100%;
}

.menu-card:hover {
  background-color: var(--cor-primaria-4);
  transition: all 0.2s ease-in-out;
}

.card-box {
  padding: 20px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  background-clip: padding-box;
  margin-bottom: 20px;
  background-color: var(--cor-white);
  box-shadow: 0 0px 24px 0 rgba(0, 0, 0, 0.06), 0 1px 0px 0 rgba(0, 0, 0, 0.02);
  color: var(--cor-black);
  position: relative;
  z-index: 20;
}

.wrapper-page .card-box {
  box-shadow: 0 0px 24px 0 rgba(0, 0, 0, 0.06), 0 1px 0px 0 rgba(0, 0, 0, 0.02);
  border: 5px solid #64b0f2;
}

.icon-farmaco {
  width: 2.8rem;
}

.card-box {
  box-shadow: 0px 15px 32px -15px var(--cor-black);
}

#forma_farmaceutica {
  font-size: 0.8rem;
}

.btn-carrinho {
  font-size: 0.9rem;
}

.input-file {
  cursor: pointer;
}

.btn-orange {
  color: var(--cor-white);
  border-color: var(--cor-primaria-3);
  background-color: var(--cor-primaria-3);
}

.btn-orange:hover {
  color: var(--cor-white);
  border-color: #c53500;
  background-color: #c53500;
}

.btn-orange:active {
  color: var(--cor-white) !important;
  border-color: #e03f04 !important;
  background-color: #e03f04 !important;
}

.btn-outline-orange {
  border: 1px solid var(--cor-primaria-3);
  background-color: none;
  color: var(--cor-primaria-3);
}

.btn-outline-orange:hover {
  background-color: var(--cor-primaria-3);
  color: var(--cor-white);
}

.btn-outline-orange:active {
  background-color: var(--cor-primaria-3) !important;
  border: 1px solid var(--cor-primaria-3) !important;
  color: var(--cor-white) !important;
}

.text-orange {
  color: #de4a14;
}

.text-orange:hover {
  color: #b83a10;
}

.borda-decorador {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .borda-decorador {
    border-bottom: 0;
    border-right: 1px solid #e0e0e0;
    padding-bottom: 0;
    padding-right: 30px;
  }
}

.info-label {
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: #6c757d;
}

.bg-p-0 {
  background: var(--cor-primaria-0)
}

.bg-p-1 {
  background: var(--cor-primaria-1);
}

.bg-p-2 {
  background: var(--cor-primaria-2);
}

.bg-p-3 {
  background: var(--cor-primaria-3)
}

.bg-p-4 {
  background: var(--cor-primaria-4);
}

.bg-p-5 {
  background: var(--cor-primaria-5);
}

.bg-p-6 {
  background: var(--cor-primaria-6);
}

.cor-p-0 {
  color: var(--cor-primaria-0);
}

.cor-p-1 {
  color: var(--cor-primaria-1);
}

.cor-p-2 {
  color: var(--cor-primaria-2);
}

.cor-p-3 {
  color: var(--cor-primaria-3);
}

.cor-p-4 {
  color: var(--cor-primaria-4);
}

.cor-p-5 {
  color: var(--cor-primaria-5);
}

.cor-p-6 {
  color: var(--cor-primaria-6);
}

.hide {
  display: none !important;
}

.block {
  display: block !important;
}

.farmacias {
  margin-top: -50px;
}

.breadcrumb {
  margin: 0px 10px 8px 12px;
}

.ver-mapa {
  margin: 60px 5px 0px 5px;
  padding: 5px 15px 5px 15px;
}

.botao-buscar {
  margin: 0px 0px 0px 12px;
  padding: 5px 18px 5px 18px;
}

.lista-farmacia {
  height: 490px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  #map {}
}

.text-dark {
  margin: 0px 20px 10px 12px;
}

.search, .nome-farmacias {
  margin: 0;
  padding: 0;
}

#map {
  width: 100%;
  height: 450px;
}

@media(max-width:768px) {
  #map {
    height: 350px;
  }
}

.select2-selection__clear {
  position: relative;
  right: 2%;
  top: 10%
}

.card-farmacia.selecionado {
  background-color: #ffe6cb;
  border-left: 4px solid #fd7e14;
  border-right: 4px solid #fd7e14;
}

.bg-white-icons {
  color: var(--cor-white);
}

@media (max-width: 768px) {
  .card-adequacao {
    display: flex;
    flex-direction: column !important;
  }

  .card-body-itens {
    padding: 0px !important;
    border-radius: 15px;
  }

  .show-desktop {
    display:none;
    margin: 10px !important;
  }

  .show-mobile {
    display: block;
    margin: 20px !important;
  }
  
  .step-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .show-desktop {
    display:block;
    margin: 10px !important;
  }

  .show-mobile {
    display: none;
  }
}

.textarea {
  resize: none;
}

.white-space-nowrap {
  white-space: nowrap;
}

.fa-home{
  color: var(--cor-primaria-3);
  margin-left: 7px;
}

.inicio{
  color: var(--cor-primaria-3);
}

.titulo{
  color: var(--cor-black);
  margin-left: 18px;
}

.subtitulo{
  color: rgb(90, 87, 87);
  margin-left: 18px;
}

.fa-file-text-o{
  color: rgb(90, 87, 87);
}

.svg-pilula-cinza{
  content: url('../images/pilula.svg');
  width: 15px;
  height: 12px;
  margin-left: 2px;  
  filter: brightness(0) saturate(100%) invert(35%);
}

.icon-box{
   margin-bottom: 10px;
}
.svg-pilula{
  content: url('../images/pilula.svg');
  width: 22px;
  height: 14px;
  filter: invert(43%) sepia(99%) saturate(1200%) hue-rotate(3deg) brightness(101%);
  margin-top: 3px;
}

.svg-medicamentos{
  content: url('../images/medicamentos.svg');
  width: 75px;
  height: 70px;
  background-color: #3c87f8;
  border-radius: 15px;
  display: block;
}

.svg-substituir{
  content: url('../images/substituir.svg');
  filter: brightness(0) saturate(100%) invert(35%);
  width: 14px;
  height: 14px;
  filter: invert(43%) sepia(99%) saturate(1200%) hue-rotate(3deg) brightness(101%);
  margin-right: 4px;
  position: relative;
  top: -1px;
}

.svg-quadrado{
  content: url('../images/quadrado.svg');
  height: 3.5em;
  width: 4.5em;
  filter: brightness(0) saturate(100%) invert(43%) sepia(86%) saturate(4649%) hue-rotate(193deg) brightness(101%) contrast(106%);
}

.medicamento-solicitado-wrapper {
  border-left: 4px solid var(--cor-primaria-3);
  background: #FFF8F1;
  border-radius: 6px;
  padding: 14px 16px;
  color: #1a1a1a;
  font-weight: 500;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.medicamento-solicitado {
  border-bottom: solid var(--cor-primaria-3);
  padding: 0px 0px;
  margin-bottom: 100;
  min-height: 30px;
  display: flex;
  align-items: center;

}
.medicamento-texto{
  color: #ee561f;
  margin: 0px;
  padding: 0px 0px;
}

.linha-medicamentos{
  margin-top: 0px;
  margin-bottom: 10px; 
}

.stepper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid #E5D5C4;
  background: #FBEEE3;
}

.stepper-steps {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin: 0;
}

.step-circle.active {
  background: var(--cor-primaria-3);
  color: var(--cor-white);
}

.step-circle.inactive {
  background: #D9D2C9;
  color: var(--cor-white);
}

.step-label {
  font-size: .9rem;
  color: #9CA3AF;
  margin: 0;
} 

.step-label.active {
  color: var(--cor-primaria-3);
  margin: 0px;
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;        
  gap: 0;
  padding: 0;
}

.nav-item {
  flex-shrink: 0; 
}

.nav-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 3px solid transparent !important; 
  border-radius: 0 !important;
}

.nav-link.active {
  border-bottom: 2px solid var(--cor-primaria-3) !important; 
}

.step-divider {
  color: #D1D5DB;
  font-size: 1rem;
  padding: 0 6px;
  margin: 0;
  align-self: center;
}

@media (max-width: 576px) {
  .nav-link    { padding: 4px 4px; gap: 4px; }
  .step-circle { width: 22px; height: 22px; font-size: .7rem; }
  .step-label  { font-size: .75rem; }
  .step-divider{ font-size: .85rem; padding: 0 4px; }
  .select2 {width: 100% !important; max-width: 240px;}       
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  padding-right: 5px;
}

.th-width-1 {
  width: 1%;
}

.th-width-10 {
  width: 10%;
}

.th-width-20 {
  width: 20%;
}

.th-width-30 {
  width: 30%;
}

.th-width-40 {
  width: 40%;
}

.th-width-50 {
  width: 50%;
}

.th-width-60 {
  width: 60%;
}

.th-width-70 {
  width: 70%;
}

.th-width-80 {
  width: 80%;
}

.th-width-90 {
  width: 90%;
}

.th-width-100 {
  width: 100%;
}

.pl-40 {
  padding-left: 40px !important;
}

.width-800 {
  width: 800px;
}

.tooltip-info {
  color: #414042;
}

.th-min-width-200 {
  min-width: 200px !important;
}

/* botao login fortaleza */

.login-fortaleza-digital {
    display: flex;
    flex-flow: row;
    width: 150px;
    min-height: 30px;
    text-decoration: none;
    background: #7C8017;
    font-family: sans-serif;
    font-size: 12px;
    align-items: center;
    color: var(--cor-white);
    padding: 0;
}

.login-fortaleza-digital:hover {
    background-color: #505412;
    color: #eee;
    transition: 300ms;
}

.login-fortaleza-digital .login-fortaleza-digital-img-container {
    flex: 1;
    align-items: center;
    justify-content: center;
    display: flex;
    border-right: 0.2px solid rgba(255, 255, 255, .5);
}

.login-fortaleza-digital .login-fortaleza-digital-img-container .login-fortaleza-digital-img {
    height: 16px;
}

.login-fortaleza-digital .login-fortaleza-digital-txt-container {
    flex: 5;
    text-align: center;
}

.btn-edit-fortaleza-digital {
  width: 240px;
  padding: 5px 0px;
}

.height-badge {
  height: 38px;
}

.badge-flex {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.label-farmacia {
  font-size: .875rem;
  color: var(--cor-primaria-3);
  font-style: italic;
  font-weight: 500;
}

.chevron {
  transition: transform 0.3s ease;
  display: inline-block;
  font-size: 12px;
  margin-left: 4px;
}

.ativo .chevron {
  transform: rotate(180deg);
}

#form-title {
  display: flex;
  justify-content:space-between;
  align-items:center
}

.min-height-60vh {
  min-height: 60vh;
}

.max-width-520px {
  max-width: 520px;
}

.font-size-12 {
  font-size: 12px;
}

.line-height-15 {
  line-height: 1.5;
}

.gap-20px {
  gap:20px;
}

.font-size-14px {
  font-size: 14px;
}

.line-height-16 {
  line-height: 1.6;
}

.cursor-pointer{
  cursor: pointer;
}

.btn-without-style {
  background: none;
  border: none;
}

/* CONFIGURAÇÕES GERAIS E CORES */
.content-wrapper, body {
  background-color: #ffffff;
}

/* CAIXA DE PESQUISA E FILTROS (HEADER) */
.search-card-wrapper {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 30px;
  margin-bottom: 40px;
}

.search-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 20px;
}

.search-footer-info {
  font-size: 0.85rem;
  color: #868e96;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f1f3f5;
  display: flex;
  align-items: center;
}


/* CARD PRINCIPAL (MEDICAMENTOS) */
.card-medicamento {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #dee2e6 !important;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #ffffff !important;
}

.protocolo-header {
  transition: all 0.3s ease;
  cursor: pointer;
}

.badge-protocolo {
  background-color: #fff1e6;
  color: #fd7e14;
  font-size: 0.8rem; 
  font-weight: 600; 
  transition: all 0.3s ease;
  border: none !important;
}

/* Estado ativo/aberto do card principal */
.protocolo-header.active { background-color: #fd7e14 !important; }
.protocolo-header.active h5, .protocolo-header.active .text-dark { color: white !important; }
.protocolo-header.active .badge-protocolo { background-color: #ffffff !important; color: #fd7e14 !important; }
.protocolo-header.active .chevron-icon { color: white !important; }
.protocolo-header.active .bg-orange-light { background-color: white !important; }
.protocolo-header.active .bg-orange-light i { color: #fd7e14 !important; }


/* CARD INTERNO (DOENÇAS E CIDs ASSOCIADOS) */
.card-protocolo-novo {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.header-protocolo-novo {
  background: #ffffff;
  color: #343a40;
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s;
}

.header-protocolo-novo:hover { background: #f8f9fa; }

.box-cids { 
  height: 100%; 
  padding-right: 15px; 
}


   /* ÁREA DE DOWNLOAD (ANEXOS) E ORIENTAÇÕES */
.box-download {
  border: 1px solid #ffd8b8; 
  border-radius: 10px;
  padding: 24px;
  background-color: #fffdfa; 
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.04);
}

.box-download.empty-download {
  background-color: #f8f9fa !important;
  border: 1px dashed #dee2e6 !important;
  box-shadow: none !important;
}

.box-orientacoes {
  background-color: #fffaf6; 
  border: 1px solid #ffe8d6;
  border-radius: 8px;
  padding: 20px;
}

.icon-info-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #fd7e14;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.divider-sutil {
  border-top: 1px dashed #e9ecef;
  margin: 25px 0;
}

.footer-protocolo {
  z-index: 9999;
}

.breadcrumb-pl {
  padding-left: 10px;
}

.label-filtro {
  font-size: 0.85rem;
}

.icon-circle-54 {
  width: 54px;
  height: 54px;
  background-color: #fff1e6;
}

.icon-pills {
  font-size: 1.5rem;
}

.titulo-medicamento {
  font-size: 1.15rem;
}

.chevron-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.inner-chevron-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.card-body-protocolo {
  background-color: #f4f6f9;
  border-top: 1px solid #eaeef2;
}

.subtitulo-protocolos-associados {
  font-size: 0.9rem;
}

.icon-square-40 {
  width: 40px;
  height: 40px;
}

.icon-stetoscopio {
  font-size: 1.2rem;
}

.titulo-doenca-protocolo {
  font-size: 1.05rem;
}

.texto-ver-detalhes {
  font-size: 0.85rem;
}

.titulo-cids-atendidos {
  font-size: 0.95rem;
}

.item-cid {
  font-size: 0.9rem;
}

.bullet-cid {
  font-size: 0.6rem;
}

.msg-sem-cid {
  font-size: 0.9rem;
}

.titulo-documento-apoio {
  font-size: 0.95rem;
}

.icon-pdf {
  font-size: 1.4rem;
}

.btn-download-radius {
  border-radius: 6px;
  padding: 12px 15px;
}

.icon-pdf-vazio {
  font-size: 2rem;
  opacity: 0.4;
}

.titulo-sem-anexo {
  font-size: 0.9rem;
}

.titulo-orientacoes {
  font-size: 0.95rem;
}

.texto-protocolo {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057 !important;
}

.card-vazio {
  max-width: 550px;
  padding: 50px 20px;
}

.icon-circle-80 {
  width: 80px;
  height: 80px;
  background-color: #fff1e6;
}

.icon-folder-open {
  font-size: 2.2rem;
}

.texto-vazio {
  font-size: 0.95rem;
}

.btn-limpar-radius {
  border-radius: 6px;
  font-weight: 600;
}

.pagination .page-link {
    color: #fd7e14;
    border-radius: 6px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #ffffff;
}

.pagination .page-link:hover {
    background-color: #fff3e6;
    color: #d35400;
    border-color: #fd7e14;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.25);
}

.d-sm-flex.align-items-sm-center.justify-content-sm-between > div:last-child {
    width: 100%;
    text-align: center;
}

.d-sm-flex.align-items-sm-center.justify-content-sm-between > div:first-child {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* RESPONSIVIDADE MOBILE  */
@media (max-width: 768px) {
    
  /* Layout da Caixa de Pesquisa */
  .search-card-wrapper {
    padding: 20px 15px;
  }
  
  .search-card-wrapper button {
    margin-top: 15px;
  }

  /* Ajustes do Card Principal (Medicamentos) no Mobile */
  .protocolo-header {
    padding: 15px !important;
    align-items: flex-start !important;
  }
  
  .protocolo-header > div:first-child {
    width: calc(100% - 30px); 
    align-items: flex-start !important; 
  }

  .protocolo-header h5 {
    font-size: 1.05rem !important;
    margin-bottom: 0 !important; 
  }

  .badge-protocolo {
    margin-left: 0 !important;
    margin-top: 8px !important; 
    display: inline-block;
    width: fit-content;
    white-space: normal;
    text-align: left;
  }

  .protocolo-header > div:last-child {
    margin-top: 4px; 
  }

  /* Ajustes do Card Interno (Doenças/CIDs) no Mobile */
  .header-protocolo-novo {
    padding: 15px !important;
    align-items: flex-start !important; 
  }
  
  .header-protocolo-novo > div:first-child {
    width: calc(100% - 30px);
    align-items: flex-start !important;
  }
  
  .header-protocolo-novo h5 {
    font-size: 1rem !important;
    line-height: 1.3;
    margin-top: 10px !important;
  }
  
  .header-protocolo-novo > div:last-child {
    margin-top: 8px;
  }

  .select2-container .select2-selection--single {
    height: 40px !important;
    position: relative !important; 
  }
  
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 12px !important;
    padding-right: 60px !important; 
  }
  
  .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 32px !important; 
    top: 0 !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    float: none !important;
    font-size: 1.2rem !important; 
    z-index: 10;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 8px !important;
    top: 1px !important;
  }

  .pagination {
        justify-content: center !important;
        margin-top: 15px;
  }
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
}

.step-item {
  display: flex;
  background-color: #F5F5F5;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #F2F2F2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .1);
  transition: 300ms;
}

.step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.step-item .step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--cor-white);
  font-size: 24px;
  position: absolute;
  top: -35px;
  box-shadow:  0 0 0 8px var(--cor-white);
  border: none;
}

.step-number {
  margin-top: 32px;
  font-size: 2rem;
  font-weight: 800;
}

.step-divider {
  display: block;
  width: 30px;
  height: 4px;
  margin: 0 auto 16px auto;
  border-radius: 4px;
}

.step-number-one,
.step-gradient-one   { background: var(--gradient-one); }

.step-number-two,
.step-gradient-two   { background: var(--gradient-two); }

.step-number-three,
.step-gradient-three { background: var(--gradient-three); }

.step-number-four,
.step-gradient-four  { background: var(--gradient-four); }

.step-number-five,
.step-gradient-five  { background: var(--gradient-five); }

.step-number-six,
.step-gradient-six   { background: var(--gradient-six); }

.step-number-one,
.step-number-two,
.step-number-three,
.step-number-four,
.step-number-five,
.step-number-six {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-title {
  text-align: center;
  margin: 0 0 8px 0;
  color: var(--cor-dark-gray);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.5;
}

.step-text {
  margin: 0;
  padding: 0;
  color: #5C5C5C;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .step-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

#container-tutorial {
  scroll-margin-top: 100px;
}

.card-mobile-informativo-passo-passo {
  width:38px;
  height:38px;
  background:#F9E4D0;
}

#link-logo {
    display: flex;
    align-items: center;
}

#logo-text {
    padding-right: 25px;
    border-right: 2px solid #ffffff;
    margin-right: 25px;
}

#logo-symbol {
    max-height: none !important; 
    max-width: none !important;

    height: 60px;
    width: auto;
}

header.fixed-top {
    height: auto !important;
    padding: 10px 0;
}

@media (max-width: 991px) {
    header #logo-symbol {
        display: none;
    }

    header #logo-text {
        padding-right: 30px;
        margin-right: 0;
        border-right: none;
        max-height: 40px;
        width: auto;
        height: auto;
    }

    header #link-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 420px) {
    header #logo-text {
      max-height: 34px;
    }
}

.mt-container-mapa {
  margin-top: .5rem !important;
}

@media (max-width: 1199px) {
  .mt-container-mapa {
    margin-top: 1.8rem !important;
  }
}

.icon-documento {
    width: clamp(45px, 8vw, 60px);
    height: auto;
}

.icon-documento-menor {
    width: clamp(30px, 6vw, 45px);
    height: auto;
}

@media (max-width: 991px) {
  .logout-desktop {
    display: none !important;
  }
}

@media (min-width: 991px) {
  .logout-mobile {
    display: none !important;
  }
}

@media(min-width: 991px) {
  .logout-desktop {
    margin-right: 0.1rem !important;
    margin-left: 0.1rem !important;
  }
}

@media(max-width: 400px) {
  .logout-mobile {
    left: 20px;
  }
}

.alert-btn-sair {
  width: 70%;
  justify-content: space-between;
}