html, body {
    height: 100%;
}

#app {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif !important;
}

.sidebar {
    width: 250px;
    /* height: 100vh; */
    background-color: #E7EFF7;
    transition: width 0.3s ease;
}

.sidebar .avatar {
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border-color: #083F88 !important;
    object-fit: cover;
    object-position: center;
    transition: width 0.5s ease, height 0.5s ease;
}

.sidebar .nav {
    width: 100% !important;
}

.sidebar .sidebar-item {
    color: black !important;
    transition: background-color 0.5s ease;
}

.sidebar .sidebar-item:hover {
    background-color: #AFC7E4 !important;
    font-weight: 500;
}

.sidebar.comprimindo {
    width: 60px;
}

.sidebar.comprimida {
    width: 60px;
    transition: none;
}

.sidebar.comprimindo .avatar {
    width: 40px;
    height: 40px;
}

.sidebar.comprimida .avatar {
    width: 40px;
    height: 40px;
    transition: none;
}

.nome-usuario {
    max-width: 200px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition:
        max-width 0.4s ease,
        opacity 0.3s ease 0.1s;
    display: inline-block;
}

.sidebar.comprimindo .nome-usuario {
    max-width: 0;
    opacity: 0;
    transition:
        max-width 0.2s ease,
        opacity 0.1s ease;
}

.sidebar.comprimida .nome-usuario {
    max-width: 0;
    opacity: 0;
    transition: none;
}

.label-item {
    opacity: 1;
    max-width: 200px;
    visibility: visible;
    transition:
        opacity 0.3s ease 0.2s,
        max-width 0.3s ease 0.2s,
        visibility 0.3s ease 0.2s;
    white-space: nowrap;
}

.sidebar.comprimindo .label-item {
    opacity: 0;
    max-width: 0;
    visibility: hidden;
    transition:
        opacity 0.1s ease,
        max-width 0.1s ease,
        visibility 0.1s ease;
}

.sidebar.comprimida .label-item {
    opacity: 0;
    max-width: 0;
    visibility: hidden;
    transition: none;
}

.logo-img {
    width: 100%;
    height: auto;
    transition: max-eidth 0.2s ease;
}

.sidebar.comprimindo .logo-img {
    max-width: 40%;
}

.sidebar.comprimida .logo-img {
    max-width: 40%;
    transition: none;
}

#botao-comprimir {
    color: #083F88;
}

.busca-symbol {
    color: #AFC7E4;
}

.busca-input {
    border-color: #AFC7E4 !important;
}

.box-conteudo {
    border-color: #F58220 !important;
}

#main {
    max-width: 1500px;
}

.circle {
    display: inline-block;
    width: 15px !important;
    height: 15px !important;
    border-color: #AFC7E4 !important;
}

.item-card-texto {
    color: #696969;
    border-color: #AFC7E4 !important;
}

.card-body {
    border-color: #AFC7E4 !important;
}

.concluido {
    background-color: #F3AF7F !important;
}

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

.card-tarefa {
    color: #696969;
}

.botao {
    background-color: #083F88;
    color: white;
}

.imagem-unidade {
    object-fit: cover;
}

.imagem-pessoa {
    border-color: #083F88 !important;
}

.collapsing {
  transition: height 200ms linear !important;
  /* transition: none !important; */
}

.ts-control {
    border: none !important;
    box-shadow: none !important;
}

.ts-wrapper.form-select {
  background-image: none !important;
  padding-right: 0 !important;
}


.conteudo-html table {
    width: 100%;
    table-layout: fixed;
    background-color: #f9f9f9; /* fundo geral da tabela */
}

.conteudo-html table th {
    background-color: #083F88;
    /* background-color: #007bff; */
    color: #fff;
}

.conteudo-html table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #e6f2ff;
}

.conteudo-html table.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

.auth-style {
    background-color: #E7EFF7;
}

.btn-gestao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F58220 !important;
    background: none;
    border: none;
    margin: 0;
    cursor: pointer;
    line-height: 1;
}

/* Links normais */
.pagination .page-link {
    color: #F58220;      /* cor laranja */
    background-color: transparent; /* fundo transparente */
    border: 1px solid #F58220;    /* borda laranja */
    border: none;
}

/* Hover */
.pagination .page-link:hover {
    background-color: #F58220;
    color: #fff;
    text-decoration: none;
}

/* Item ativo */
.pagination .page-item.active .page-link {
    background-color: #F58220;
    border-color: #F58220;
    color: #fff;
}






/* ============================
   Estilo Mobile (até 768px)
   ============================ */
@media (max-width: 768px) {

  /* força app empilhar barra e conteúdo */
  #app {
    flex-direction: column !important;
  }

  /* barra fixa no topo */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 60px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important; /* centraliza todos os itens verticalmente */
    padding: 0 10px !important;
    background-color: #E7EFF7;
    z-index: 1050;
  }

  /* botão sanduíche à esquerda */
  #botao-comprimir-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
  }

  /* logo centralizada */
  .sidebar .logo-img {
    height: 40px !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  /* container do avatar */
  .sidebar .position-relative.d-inline-block {
    height: 60px !important;           /* mesma altura da barra */
    display: flex !important;
    align-items: center !important;    /* centraliza verticalmente */
    justify-content: center !important;
    margin: 0 !important;
  }

  /* avatar */
  .sidebar #avatar {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  /* esconde botão de comprimir de desktop */
  #botao-comprimir {
    display: none !important;
  }

  /* menu suspenso (invisível por padrão) */
  .sidebar .nav {
    position: absolute;
    top: 60px;              /* colado logo abaixo da barra */
    left: 0;
    width: 100%;
    background-color: #E7EFF7;
    display: none;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #ccc;
    z-index: 1049;
  }

  /* menu aberto */
  .sidebar.mobile-aberto .nav {
    display: flex;
  }

  /* mostra texto dos itens no mobile */
  .sidebar .label-item {
    opacity: 1 !important;
    max-width: 200px !important;
    visibility: visible !important;
    display: inline !important;
  }

  /* esconde nome do usuário na barra */
  .sidebar .nome-usuario {
    display: none !important;
  }

  /* adiciona margem ao conteúdo para não ficar escondido atrás da barra */
  .w-100,
  main#main {
    margin-top: 20px !important;
  }

  #cabecalho {
    margin-top: 0 !important;
  }
}



