* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 12px;
}

.box-agenda {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#calendar {
    width: 100%;
    margin: 0 auto;
}

.title-page {
    font-family: inherit;
    font-size: 24px;
    width: 100%;
    color: #606060;
    border-bottom: 2px solid #cfcfcf;
    margin-top: 10px;
    margin-bottom: 15px;
}

.action-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 50px;
    padding: 0 10px 0 10px;
    border-radius: 15px;
    line-height: 1;
    transition: all 0.5s;
}

.tabela-lembrete {
    font-size: 12px;
    width: 90%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 10px;
}

.tabela-alerta {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 7px;
    text-align: center;
    font-size: 12px;
}

.btn_icone {
    border: none;
    color: inherit;
    background: none;
    display: inline-block;
    outline: none;
    position: relative;
}

.bg-dar_k{
    background-color: #0f1b2b;
}

.erro{
    color: red;
    font-size: medium;
}

input[readonly], .form-control-plaintext {
  background: #f6f9fa!important;
  border: none!important;
  font-weight: 600;
  color: #444!important;
}
hr.my-3 {
  border-top: 2px solid #e0e4ea;
  opacity: .85;
}
.modal-content {
  border-radius: 1.25rem;
}
input.form-control:focus, select.form-select:focus, textarea.form-control:focus {
  box-shadow: 0 0 0 0.15rem #b2e2dd50;
}

.texto-verde{
  color: #33a382;
}

.autocomplete-suggestions {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #eee;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.suggestion-item {
    padding: 7px 10px;
    cursor: pointer;
}
.suggestion-item:hover {
    background: #e6f2ff;
}

.suggestion-item.no-select {
    color: #888;
    cursor: not-allowed;
    background: #f7f7f7;
}

.col-custom{
box-shadow: 2px 6px 26px -6px rgba(0,0,0,0.21);
-webkit-box-shadow: 2px 6px 26px -6px rgba(0,0,0,0.21);
-moz-box-shadow: 2px 6px 26px -6px rgba(0,0,0,0.21);
}

 .meta-progress-container {
      display: flex;
      align-items: flex-end;
      min-height: 180px;
      width: 110px;
    }
    .progress-vertical-plain {
      width: 16px;
      height: 190px;
      background: #e9ecef;
      border: #fff solid 0.5px;
      border-radius: 9px;
      position: relative;
      margin-right: 12px;
      overflow: hidden;
    }
    .progress-vertical-bar {
      background: #198754;
      width: 100%;
      position: absolute;
      left: 0;
      bottom: 0;
      border-radius: 9px;
      z-index: 2;
      transition: height 0.4s;
    }
    .meta-marks {
      position: relative;
      height: 200px;
      width: 76px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    .meta-mark {
      display: flex;
      align-items: center;
      font-size: 0.95rem;
      position: absolute;
      left: 0;
      transform: translateY(50%);
      color: #ffffff;
      font-weight: 500;
      white-space: nowrap;
    }
    .meta-mark .bi-check-circle-fill {
      margin-right: 4px;
      font-size: 1rem;
    }
    .mark-facil   { bottom: 30%; }
    .mark-media   { bottom: 55%; }
    .mark-dificil { bottom: 75%; }

    @media (max-width: 575px) {
      .meta-progress-container { width: 80px; min-height: 100px;}
      .progress-vertical-plain, .meta-marks { height: 90px; }
      .meta-mark { font-size: 0.80rem; }
    }

/*menu*/

.menu {
    a:link, a:visited {
        color: inherit;
        text-decoration: none;
    }
    a:hover {
        text-decoration: none;
    }
    a:active {
        text-decoration: none;
    }
}

a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

.sidebar {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 165px;
    height: 100%;
    max-height: 100vh;
    padding: 40px 10px 30px 10px;
    background-color: #2c3e50;
    transition: all 0.35s;
    overflow-y: auto;
    box-shadow: -4px 3px 9px -5px rgba(0,0,0,1) inset;
}

/* Scroll estilizado */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #202d3a;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #1abc9c;
    border-radius: 10px;
}

/* Botões do menu */
.sidebar button {
    height: 40px;
    width: 100%;
    background: transparent;
    border: 0;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 15px;
    transition: background 0.3s;
}

.sidebar button:hover {
    background: #33a382;
    color: black;
    height: 40px;
}

/* Ícones menores */
.sidebar button i {
    font-size: 20px; /* reduzido */
    margin-right: 8px;
}

/* Texto do menu */
.sidebar button span {
    font-size: 12px;
    flex: 1;
}


.sidebar-header {
    width: 100%;
    margin-bottom: 16px;
}

.submenu button span {
    padding-left: 0px;
    font-size: 12px;
    color: #7af7d1;
}

.submenu button:hover > span {
    background: #1abc9c;
    color: #000;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 300,
  'GRAD' 0,
  'opsz' 20
}

.master_logo {
    border: 1px solid #2c3e50;
    margin-left: 30%;
    width: 50px;
    min-height: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s;
    background-color: #fff;
    padding: 2px;
}

.master_logo:hover {
    transform: scale(1.5);
}

.sidebar button {
    height: 40px;
    width: 100%;
    background: transparent;
    border: 0;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.sidebar button>span {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    padding: 0 10px 0 10px;
    border-radius: 15px;
    line-height: 1;
    transition: all 0.5s;
}

.sidebar button:hover>span {
    background: #33a382;
    color: black;
    height: 40px;
}

.sidebar button i {
    position: relative;
    font-size: 28px;
    transition: 0.2s;
}

.sidebar button span {
    font-size: 12px;
}

.sidebar>nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;

}

.main {
    padding: 10px;
    min-height: 350px;
    margin-top: 10px;
    margin-left: 170px;
    margin-right: 10px;
    overflow: hidden;
    transition: margin 0.4s;

}


/*ajustando sidebar com apenas os icones*/
@media(width < 720px) {
    .sidebar {
        width: 50px;
        padding: 0;
    }

    .sidebar button>span {
        width: 100%;

    }

    .sidebar button>span>span {
        opacity: 0;
        visibility: hidden;
    }

    .master_logo {
        margin: 20% 20% 20% 20%;
        width: 60%;
        min-height: 60%;
    }

    .main {
        transition: margin 0.4s;
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .main {
        margin-left: 60px;
    }

    .sidebar {
        width: 60px;
    }

    .sidebar button>span>span {
        display: none;
    }
}

@media (min-width: 768px) {
  .dashboard-card-wide {
    max-width: 540px;
  }
}

@media (max-width: 600px) {
    .tabela-lembrete,
    .tabela-alerta {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}


@media (max-width: 768px) {
  .tabela-alerta {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tabela-alerta table, 
  .tabela-alerta thead, 
  .tabela-alerta tbody, 
  .tabela-alerta tr, 
  .tabela-alerta td {
    display: block;
  }

  .tabela-alerta tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
  }

  .tabela-alerta td {
    text-align: left;
    padding: 5px;
    border: none;
    font-size: 14px;
  }

    .btn_icone {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 4px;
  }
  /*oculta colunas desnecessarias*/
    #tabelaCarregada td:nth-child(1),
    #tabelaCarregada td:nth-child(3),
    #tabelaCarregada td:nth-child(4),
    #tabelaCarregada td:nth-child(5) {
    display: none;
  }

      .card-resumo {
        margin-bottom: 15px;
      }

}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
    width: auto;
  }

  .tabela-lembrete td {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .tabela-lembrete input,
  .tabela-lembrete textarea {
    width: 100%;
  }
}



.button-mobile {
    display: none;
    align-self: flex-start;
    align-items: center;
    margin: 16px;
    background: transparent;
    color: #2c3e50;
    border: 0;
}

.menu-mobile {
    display: none;
}

.button-mobile span {
    font-size: 24px;
    margin-left: 8px;
}

.button-close span i {
    font-size: 24px;

}

.menu-mobile-active {
    width: 100vw;
    height: 100vw;
    color: #fff;
    background-color: #2c3e50;
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-mobile-active button {
    background: transparent;
    border: 0;
    color: inherit;
    margin-bottom: 16px;
}

.menu-mobile-active button span {
    display: inline-flex;
    align-items: center;
}

.mobile-text {
    font-size: 18px;
    margin-left: 8px;
}

@media(max-width: 480px) {
    .sidebar {
        display: none;
    }

    .button-mobile {
        display: flex;
    }

    .main {
        margin-left: 6px;
    }
}

 .card-resumo {
      border-radius: 1rem;
      padding: 20px;
      background: #fff;
      box-shadow: 0 3px 10px rgba(0,0,0,0.05);
      display: flex;
      align-items: center;
      gap: 15px;
    }
    .card-resumo .material-symbols-outlined {
      font-size: 36px;
      color: #0d6efd;
    }
    .agenda-item {
      border-bottom: 1px solid #e9ecef;
      padding: 10px 0;
      font-size: 0.95rem;
    }
    .btn-atalho {
      width: 100%;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .btn-atalho .material-symbols-outlined {
      font-size: 20px;
    }


/*pagina home*/

/*lembretes da home*/
.text-truncate {
  display: inline-block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}

.linha-painel {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.lembretes ul {
  padding-left: 16px;
  font-size: 13px;
  margin: 0;
}

.meta {
  background-color: #d1e7dd;
  color: #0f5132;
  flex: 1 1 300px;
}

.atalho-verde {
  background-color: #198754;
  color: #fff;
  flex: 1 1 220px;
}

.atalho-amarelo {
  background-color: #ffc107;
  color: #000;
  flex: 1 1 220px;
}

.grafico-procedimentos {
  max-width: 600px;
  margin-bottom: 30px;
}

.titulo-grafico {
  margin-bottom: 10px;
  display: block;
}

.leve-sombra {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.titulo-grafico {
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
  font-size: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-card span.material-symbols-outlined {
  font-size: 28px;
}

.dashboard-card-expand {
  min-width: 520px;
  flex-grow: 2;
}

.dashboard-card-wide {
  grid-column: span 2;
  min-width: 100%;
}


.shortcut {
  text-decoration: none;
  color: inherit;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.lista-dashboard {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 14px;
}

.grafico-box {
  background: #fff;
  border-radius: 12px;
  border: solid 1px rgb(228, 228, 228);
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.solid-blue    { background-color: #0d6efd; color: white; }
.solid-purple  { background-color: #6f42c1; color: white; }
.solid-teal    { background-color: #20c997; color: white; }
.solid-green   { background-color: #198754; color: white; }
.solid-orange  { background-color: #fd7e14; color: white; }
.solid-cyan    { background-color: #0dcaf0; color: white; }
.solid-indigo  { background-color: #6610f2; color: white;}
.solid-gray    { background-color: #2c3e50; color: rgb(136, 130, 130);}
.solid-dark    { background-color: #afafaf; color: rgb(44, 44, 44); }

.atalhos-home{
  padding: 5px;
  margin-top: 5px;
  box-shadow: -1px 10px 5px -7px rgba(0,0,0,0.32);
  -webkit-box-shadow: -1px 10px 5px -7px rgba(0,0,0,0.32);
  -moz-box-shadow: -1px 10px 5px -7px rgba(0,0,0,0.32);
}
.hclinix-botao{
  border-radius: 0.5rem;
  border: none;
  background-color: #0f1b2b;
  color: #31a580;
  min-height: 50px;
  min-width: 50px;
}

.hclinix-botao :hover{
  color: #e5e3d7;
}

.btn-home{
max-width: 160px;
font-size: 14px;
margin-top: 5px;
margin-bottom: 5px;
}

.grafico-limite {
  max-width: 400px;
  margin: 0 auto;
}

.small-shortcut {
  width: 48px;
  height: 48px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  display: flex;
}


/*variações das cores

1. Clássico Neutro
Ícone: Verde (#28B07B)
Texto: Cinza escuro (#222B38)
Fundo: Branco (#FFFFFF)

2. Moderno Azul
Ícone: Azul royal (#2574A9)
Texto: Cinza claro (#F6F8F9)
Fundo: Azul escuro (#1A2233)

3. Minimalista Light
Ícone: Preto (#222222)
Texto: Cinza médio (#595959)
Fundo: Cinza muito claro (#F8F8F8)

4. Pastel Aconchegante
Ícone: Verde menta (#90D7B8)
Texto: Cinza azulado (#6E7582)
Fundo: Off white (#FAFAF6)

5. Vibrante
Ícone: Laranja (#FF8A4C)
Texto: Azul escuro (#283345)
Fundo: Branco puro (#FFFFFF)

6. High Contrast Dark
Ícone: Branco (#FFFFFF)
Texto: Verde claro (#3EF09E)
Fundo: Preto puro (#181B22)

7. Saúde e Natureza
Ícone: Verde folha (#49C88B)
Texto: Marrom claro (#8B6F4E)
Fundo: Bege claro (#F8ECDC)

8. Tech Clean
Ícone: Azul piscina (#3EC6E0)
Texto: Preto suave (#23272F)
Fundo: Cinza claro (#F3F7F9)
*/

.estilo-classico {
  background: #FFFFFF;
  color: #222B38;
}
.estilo-classico .material-symbols-outlined {
  color: #28B07B;
}

.estilo-moderno {
  background: #1A2233;
  color: #F6F8F9;
}
.estilo-moderno .material-symbols-outlined {
  color: #2574A9;
}

.estilo-minimalista {
  background: #F8F8F8;
  color: #595959;
}
.estilo-minimalista .material-symbols-outlined {
  color: #222222;
}

.estilo-pastel {
  background: #FAFAF6;
  color: #6E7582;
}
.estilo-pastel .material-symbols-outlined {
  color: #90D7B8;
}

.estilo-vibrante {
  background: #FFFFFF;
  color: #283345;
}
.estilo-vibrante .material-symbols-outlined {
  color: #FF8A4C;
}

.estilo-dark {
  background: #181B22;
  color: #3EF09E;
}
.estilo-dark .material-symbols-outlined {
  color: #FFFFFF;
}

.estilo-natureza {
  background: #F8ECDC;
  color: #8B6F4E;
}
.estilo-natureza .material-symbols-outlined {
  color: #49C88B;
}

.estilo-tech {
  background: #F3F7F9;
  color: #23272F;
}
.estilo-tech .material-symbols-outlined {
  color: #3EC6E0;
}

/* Para todos os seus modais bootstrap */
.modal-content {
  font-size: 14px;
  padding: 10px 16px;
}

/* Títulos menores */
.modal-title {
  font-size: 16px !important;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Inputs, selects e textareas mais baixos e letra menor */
.modal-content input,
.modal-content select,
.modal-content textarea {
  font-size: 14px !important;
  height: 32px !important;
  padding: 4px 8px !important;
  margin-bottom: 8px !important;
}

/* Textarea pode ser um pouco mais alto, mas ainda compacto */
.modal-content textarea {
  min-height: 40px;
  height: 54px;
  resize: vertical;
}

/* Botões menores dentro do modal */
.modal-content .btn, 
.modal-content button {
  font-size: 13px !important;
  padding: 5px 14px !important;
  height: 32px !important;
}

/* Labels menores */
.modal-content label {
  font-size: 13px;
  margin-bottom: 2px;
}