/* style.css */
:root {
    --azul-escuro: #2c3e50;
    --azul-medio: #3498db;
    --azul-claro: #e6f2ff;
    --azul-muito-claro: #f0f8ff;
    --branco: #ffffff;
    --cinza-claro: #f8f9fa;
    --cinza-medio: #e9ecef;
    --cinza-escuro: #495057;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--cinza-claro);
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 0 2rem;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000; /* aumente para garantir que fique acima de tudo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    box-sizing: border-box;
}


.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info-container {
    background-color: transparent;  /* ou utilize a mesma cor do body: #f4f4f4 */
    padding: 3px 10px;
    text-align: right;  /* Alinha as informações à direita, por exemplo */
    border-bottom: 1px solid #ccc; /* Opcional, para separação visual */
  }

.user-info {
    margin-left: auto; /* Empurra para a direita */
    margin-right: 3.0rem; /* Espaço entre o nome do usuário e a data/hora */
    white-space: nowrap;
	font-size: 1rem;
}

.user-info2 {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 0.3rem;
  }

.date-time {
    font-size: 0.95rem;
    color: var(--branco);
    white-space: nowrap;
	font-size: 0.9rem;
}

.date2-time2 {
    font-size: 0.8em;
    color: var(--branco);
    white-space: nowrap;
}

.toggle-sidebar-btn {
    background: transparent;
    border: none;
    color: var(--branco);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    transform: translateY(3px); /* Ajuste o valor conforme desejado */
}


.toggle-sidebar-btn:hover {
    color: var(--azul-claro);
}

.toggle-sidebar-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

.container {
    margin-top: 75px;
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
}

/* Menu Lateral Moderno */
.sidebar {
    width: 240px;
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.sidebar-header {
    padding: 0.5rem 1.5rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar ul li {
    padding: 0.85rem 1.5rem;
    margin: 0;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    border-left: 3px solid transparent;
}

.sidebar ul li:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--branco);
}

.sidebar ul li.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--azul-medio);
    color: var(--branco);
}

.sidebar ul li i {
    font-size: 1.05rem;
    color: inherit;
}


.main-content {
    flex: 1;
    padding: 0.5rem;
    background: var(--branco);
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

footer {
    background: var(--azul-escuro);
    color: var(--branco);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Estilos do dashboard */
.dashboard-resumo {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-resumo div {
    background: var(--azul-claro);
    padding: 1.5rem;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	max-height: 100px; /* Limite máximo de altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Opcional: esconde conteúdo que ultrapassar */

}

.dashboard-resumo h3 {
    color: var(--azul-escuro);
    margin-top: 0;
}

.dashboard-resumo p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--azul-medio);
    margin: 0;
}

.dashboard-tabela {
    background: var(--branco);
    border-radius: 8px;
    border: 1px solid var(--cinza-medio);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dashboard-tabela table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.dashboard-tabela th {
    background: var(--azul-medio);
    color: var(--branco);
    padding: 4px;
    text-align: left;
}

.dashboard-tabela td {
    padding: 4px;
    text-align: left;
}

.dashboard-tabela tr:not(.observations-row) td:last-child {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}


.dashboard-tabela tr {
    border-bottom: 1px solid rgba(172, 171, 171, 0.2);
}

/* Cores de status e hover */
.status-aberto {
    background: #e3f2fd;
    color: #2c3e50;
}
.status-aberto:hover {
    background: #c7e5fb !important;
}
.status-andamento {
    background: #fff3e0;
    color: #e65100;
}
.status-andamento:hover {
    background: #ffe0b2 !important;
}
.status-concluida {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-concluida:hover {
    background: #c8e6c9 !important;
}
.status-outro {
    background: #dce0e2;
    color: #2c3e50;
}
.status-outro:hover {
    background: #a3a5a7 !important;
}

.status-colaborando {
    background: #ffd6b5;
    color: #2c3e50;
}
.status-colaborando:hover {
    background: #ffae6b !important;
}

.icon-colaborando {
  cursor: default !important; /* força o cursor padrão (seta) */
}


.sidebar {
    /* ... (mantenha o que já tem) ... */
    transition: all 0.3s ease;
}

.sidebar.hidden {
    width: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

/* Barra de filtros e busca */
.filtro-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--azul-muito-claro);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.filtro-buttons {
    display: flex;
    gap: 0.5rem;
}
.filtro-btn {
    background: var(--branco);
    border: 1px solid var(--azul-medio);
    color: var(--azul-medio);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.filtro-btn:hover {
    background: var(--azul-medio);
    color: var(--branco);
}
.filtro-ativo {
    background: var(--azul-medio);
    color: var(--branco);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--azul-medio);
    border-radius: 20px;
    font-size: 0.95rem;
    min-width: 200px;
    transition: all 0.2s ease;
}
.search-input:focus {
    outline: none;
    border-color: var(--azul-escuro);
}
.search-btn {
    background: var(--azul-medio);
    border: none;
    color: var(--branco);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-btn:hover {
    background: var(--azul-escuro);
}
.btn-concluir {
    background: #28a745; /* Verde para concluir */
    border: none;
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
    margin-right: 0.5rem; /* Espaço entre os botões */
}
.btn-concluir:hover {
    background: #218838; /* Verde mais escuro no hover */
}
.btn-concluir i {
    font-size: 0.8rem;
}

.btn-editar {
    background: var(--azul-medio);
    border: none;
    color: var(--branco);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.btn-editar:hover {
    background: var(--azul-escuro);
}
.btn-editar i {
    font-size: 0.8rem;
}


/* Estilos específicos para a página de login */
.login-container {
    background: var(--branco);
    padding: 2rem 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.15);
    width: 100%;
    max-width: 380px;
    margin: 8rem auto;
    text-align: center;
	  max-height: 500px; /* Ajuste este valor conforme necessário */
    min-height: 400px;
    justify-content: center;
}

.login-container h2 {
    color: var(--azul-escuro);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1.0rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--azul-escuro);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--cinza-medio);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--azul-medio);
}

.login-btn {
    width: 100%;
    background: var(--azul-medio);
    color: var(--branco);
    border: none;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
}

.login-btn:hover {
    background: var(--azul-escuro);
}

.login-footer {
    margin-top: 0.5rem;
    color: var(--cinza-escuro);
    font-size: 0.85rem;
    text-align: center;
}

.login-footer a {
    color: var(--azul-medio);
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--azul-escuro);
}

.certificado-btn {
    background: var(--branco);
    border: 1px solid var(--azul-medio);
    color: var(--azul-medio);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
	margin-top: 1rem;
}

.certificado-btn:hover {
    background: var(--azul-medio);
    color: var(--branco);
}
.filtro-tipo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}
.filtro-label {
    font-size: 0.95rem;
    color: var(--azul-escuro);
    font-weight: 500;
}
.popup-container {
    position: relative;
    display: inline-block;
}
.popup-btn {
    background: var(--branco);
    border: 1px solid var(--azul-medio);
    color: var(--azul-medio);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    white-space: nowrap;
	width: 135px;
}
.popup-btn:hover {
    background: var(--azul-medio);
    color: var(--branco);
}
.popup-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--branco);
    border: 1px solid var(--cinza-medio);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    display: none;
    min-width: 120px;
}
.popup-menu.show {
    display: block;
}
.popup-item {
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--azul-escuro);
    transition: background 0.2s;
}
.popup-item:hover {
    background: var(--azul-claro);
}

.stay-logged {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.97rem;
}

.stay-logged input[type="checkbox"] {
    accent-color: var(--azul-medio); /* Deixa o checkbox com a cor do sistema em navegadores modernos */
    width: 1rem;
    height: 1rem;
    margin: 0;
}

  /* CSS básico para o modal - você pode ajustar conforme seu design */
    .modal {
      display: none; /* Hidden por padrão */
      position: fixed;
      z-index: 10000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.4); /* Fundo semi-transparente */
    }
    .modal-content {
      background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border-radius: 8px;
      max-width: 400px;
      position: relative;
    }
    .close-modal {
      color: #aaa;
      float: right;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
    }
    .close-modal:hover,
    .close-modal:focus {
      color: #000;
    }
    .timer-container {
      position: fixed;
      top: 20px;
      right: 25px;
      width: 36px;
      height: 36px;
    }

    .circle-timer {
      transform: rotate(-90deg) scale(1, -1); /* sentido horário real */
    }

    svg {
      width: 100%;
      height: 100%;
    }

    .timer-text {
      position: absolute;
      top: 48%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 11px;
      font-weight: bold;
      color: #fff;
      letter-spacing: 0.7px;
    }

    @keyframes blink {
      0%, 100% { stroke: #e74c3c; 
      }
      50% {
    stroke: #ffb3b3; /* vermelho mais claro, mas visível */
  }
    }

    .alerta {
      animation: blink 2s infinite;
      stroke: #e74c3c;
    }
    .timer-wrapper {
    cursor: pointer;
  }

  .flash-messages {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 4.5rem; /* ou o mesmo left do seu conteúdo principal */
    max-width: 600px;
    text-align: left;
}

.flash-message {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    margin-bottom: 1rem;
    position: relative;
    animation: fadeIn 0.5s;
}

.flash-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.flash-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.flash-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.flash-message.warning {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffe082;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centraliza verticalmente */
}

.flash-toast {
    position: fixed;
    top: 120px; /* Ajuste conforme a altura da sua top-bar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 220px;
    max-width: 450px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, top 0.5s;
    display: none;
}
.flash-toast.show {
    opacity: 1;
    display: block;
    pointer-events: auto;
}
.flash-toast.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.flash-toast.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}
.flash-toast.warning {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffe082;
}

a {
    text-decoration: none;
}

.btn-nova-demanda {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #1565c0);
    color: #fff;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    margin-bottom: 15px;
}

.btn-nova-demanda:hover {
    background: var(--azul-escuro, #0d47a1);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
}

 /* Keyframes para demanda em vermelho (prazo < 5 dias ou vencida) */
  @keyframes blink-danger {
    0%   { background-color: #f8d7da; }
    50%  { background-color: #f1aeb5; }
    100% { background-color: #f8d7da; }
    0%, 100% { color: #c62828; }
    50%      { color: #1b1b1b; }
  }

 /* Aplica a animação diretamente nos <td> das linhas piscantes */
  .status-alerta{
    background: #f8d7da;
  }
  .status-alerta:hover {
    background: #f1aeb5 !important;
}

.status-alerta-piscando{
   animation: blink-danger 1.5s infinite ease-in-out;
   font-weight: bold;
  }

 .status-alerta-piscando:hover {
    background: #f1aeb5 !important;
}

.pagination-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0.2rem 0 0 0;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--azul-escuro, #2c3e50);
    color: #fff;
}

.pagination-btn.disabled,
.pagination-btn[aria-disabled="true"] {
    background: var(--cinza-medio, #e9ecef);
    color: var(--cinza-escuro, #495057);
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--azul-escuro, #2c3e50);
    font-weight: 500;
    background: var(--cinza-medio, #e9ecef);
    border-radius: 16px;
    padding: 0.3rem 1rem;
}

.observations-wrapper {
  display: block;
  width: 100%;
}

.observations-inner {
  display: block !important;
  width: 100% !important;
  background: #f3f6fa;
  padding: 1.2rem 2rem;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
}


.observations-row td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
}
.observations-block-outside-table {
  display: block;
  background: #f3f6fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Corrige célula expandida */
.observations-row td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  display: table-cell !important;
}


.dashboard-tabela-scroll {
  width: 100%;
  overflow-x: auto;
}

.dashboard-tabela {
  min-width: 1120px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.observations-row td.observations-cell {
    padding: 0;
    border: none;
    background: transparent;
}

.observations-inner {
    display: block !important;
    background: #f3f6fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin: 0.2rem 0;
    padding: 0.3rem 0.6rem;   /* Reduzido */
    font-size: 0.7rem;       /* Um pouco menor */
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    width: 100%;
    box-sizing: border-box;
}

.obs-bloco {
    margin-bottom: 0.2rem;    /* Reduzido */
    gap: 0.15rem;
}

.obs-label {
    font-weight: 600;
    color: var(--azul-medio, #3498db);
    margin-bottom: 0.1rem;    /* Reduzido */
    font-size: 0.85rem;
}

.obs-info {
    color: #2c3e50;
    font-weight: 400;
    font-size: 0.8rem;
}

.obs-list {
    margin: 0.1rem 0 0 0.4rem; /* Reduzido */
    padding: 0;
    list-style: disc inside;
    color: #495057;
    font-size: 0.8rem;
}

.obs-list li {
    margin-bottom: 0.1rem;    /* Reduzido */
}

.obs-empty {
    color: #b0b0b0;
    font-style: italic;
    font-size: 0.7rem;
}

.divider {
    border-bottom: 1px dashed var(--azul-medio, #3498db);
    margin: 0.5rem 0;         /* Reduzido */
    width: 100%;
    opacity: 0.22;
}

.btn-historico {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
   padding: 0.4rem 0.8rem;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}
.btn-historico:hover {
    background: var(--azul-escuro, #2c3e50);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
}


/* Modal Overlay */
.modal-custom {
    position: fixed;
    z-index: 1200;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.modal-overlay {
    position: fixed;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 62, 80, 0.25);
    z-index: 0;
}

.modal-content-custom {
    position: relative;
    z-index: 1;
    background: var(--branco, #fff);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    padding: 2.2rem 2.5rem 2rem 2.5rem;
    max-width: 420px;
    width: 95vw;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: modalFadeIn 0.25s;
}


@keyframes modalFadeIn {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal-btn {
    position: absolute;
    top: 18px; right: 18px;
    background: none;
    border: none;
    color: var(--azul-medio, #3498db);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}
.close-modal-btn:hover {
    color: var(--azul-escuro, #2c3e50);
}

.modal-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--azul-escuro, #2c3e50);
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.modal-info p {
    margin: 0.2rem 0 0.2rem 0;
    color: #495057;
    font-size: 1.01rem;
}

.modal-label {
    font-weight: 600;
    color: var(--azul-medio, #3498db);
    margin-right: 0.4rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.modal-select {
    width: 100%;
    padding: 0.5rem 0.9rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
    color: #2c3e50;
    transition: border 0.2s;
}

.modal-select:focus {
    border-color: var(--azul-medio, #3498db);
    outline: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    padding: 0.5rem 1.4rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    gap: 0.4rem;
}
.btn-primary:hover {
    background: var(--azul-escuro, #2c3e50);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--cinza-medio, #e9ecef);
    color: var(--azul-escuro, #2c3e50);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    gap: 0.4rem;
    max-width: 80%;
}
.btn-secondary:hover {
    background: var(--azul-medio, #3498db);
    color: #fff;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color:  #757474;
    text-align: left;
    margin-bottom: 0.3em;
    margin-left: 3.8rem;
    letter-spacing: 0.02em;
}

.demanda-form {
    max-width: 840px;
    margin: 0 0 0 3.5rem;
    padding-left: 1.2rem;
    background-color: #f4f4f4;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.1rem;
}

.form-label {
    font-weight: 600;
    color: var(--azul-escuro, #2c3e50);
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
}

.form-input {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    color: #2c3e50;
    background: #fff;
    transition: border 0.2s;
    letter-spacing: 0.015em;
    font-weight: 500;
}

.form-input:disabled {
    background: #f1f1f1;
    color: #b0b0b0;
    opacity: 1;
}

.form-input:focus {
    border-color: var(--azul-medio, #3498db);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    gap: 0.1rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    letter-spacing: 0.02em;
}
.btn-primary:hover {
    background: var(--azul-escuro, #2c3e50);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--cinza-medio, #e9ecef);
    color: var(--azul-escuro, #2c3e50);
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    gap: 0.4rem;
    letter-spacing: 0.02em;
}
.btn-secondary:hover {
    background: var(--azul-medio, #3498db);
    color: #fff;
}

.anexos-container {
    max-width: 840px;
    margin: 0.5rem 0 0 3.5rem;
    background: #ebf5fa;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    padding: 0.5rem 1rem 0 1rem;
}

.anexos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.anexos-table th,
.anexos-table td {
    border: none;
    padding: 0.3rem 0.2rem;
}

.anexos-table th {
    color: var(--azul-escuro, #2c3e50);
    font-weight: 600;
    background: #f7fafc;
}

.anexo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anexo-img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.anexo-icon {
    color: var(--azul-medio, #3498db);
    font-size: 1.15rem;
}

.anexo-link {
    color: var(--azul-medio, #3498db);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.anexo-link:hover {
    color: var(--azul-escuro, #2c3e50);
    text-decoration: underline;
}

.btn-excluir-anexo {
    display: inline-flex;
    align-items: center;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.3rem 0.68rem;
    border-radius: 18px;
    font-size: 0.69rem;
    font-weight: 600;
    cursor: pointer;
    gap: 0.4rem;
    transition: background 0.2s;
    letter-spacing: 0.02rem;
}
.btn-excluir-anexo:hover {
    background: #b52a37;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 0.25rem 0.69rem;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto 0 3.5rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    transition: background 0.2s;
    letter-spacing: 0.02rem;
}
.upload-btn:hover {
    background: var(--azul-escuro, #2c3e50);
}

.uploads-list {
    max-width: 540px;
    margin: 0.5rem 0 0 3.8rem;
    font-size: 0.79rem;
    letter-spacing: 0.02rem;
    font-weight: 550;
}

.anexos-table th:first-child {
    text-align: left;
    padding-left: 0.6rem; /* ou ajuste conforme seu padrão */
}

.text-center { text-align: center; }

.usuarios-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    padding: 1.2rem 1.7rem 1.1rem 1.7rem;
    margin-top: 1.2rem;
}

.usuarios-table {
    border-radius: 12px; 
    width: 100%;
    font-size: 0.97rem;
    border-collapse: separate;
    border-spacing: 0;
}

.usuarios-table th,
.usuarios-table td {
    border: none;
    padding: 0.4rem 0.5rem;
    text-align: left;
}

.usuarios-table th.text-center,
.usuarios-table td.text-center {
    text-align: center;
}

.usuarios-table th {
    color: #fff;
    font-weight: 600;
    background: #3498db; /* Azul claro no cabeçalho */
}

.usuarios-table tr:nth-child(even) {
    background: var(--azul-muito-claro, #f0f8ff); /* Azul muito claro nas linhas pares */
}

.usuarios-table tr:nth-child(odd) {
    background: #fff; /* Branco nas linhas ímpares */
}

.no-data {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
    font-size: 1.01rem;
}

.btn-sm {
    font-size: 0.93rem;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
}

.perfil-label {
    display: inline-block;
    padding: 0.18em 0.7em;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    background: #e9ecef;
    color: #2c3e50;
}
.perfil-admin, .perfil-admin_master {
    background: #fff3cd;
    color: #856404;
}
.perfil-user {
    background: #e6f2ff;
    color: #1565c0;
}

.usuarios-table th:first-child {
    border-top-left-radius: 12px;
}

.usuarios-table th:last-child {
    border-top-right-radius: 12px;
}

.relatorio-filtros {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.dashboard-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-button {
    background: var(--cinza-claro, #f8f9fa);
    border: 1.5px solid var(--cinza-medio, #e9ecef);
    color: var(--azul-escuro, #2c3e50);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-button:hover {
    background: var(--azul-claro, #e6f2ff);
    border-color: var(--azul-medio, #3498db);
    color: var(--azul-medio, #3498db);
}

.filter-button.active {
    background: var(--azul-medio, #3498db);
    border-color: var(--azul-medio, #3498db);
    color: #fff;
}

.filtro-pesquisa {
    flex-grow: 1;
    padding: 0.5rem 0.9rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    color: #2c3e50;
    background: #f8f9fa;
    transition: border 0.2s;
}

.filtro-pesquisa:focus {
    border-color: var(--azul-medio, #3498db);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    padding: 0.4rem 1.0rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.btn-primary:hover {
    background: var(--azul-escuro, #2c3e50);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: var(--cinza-medio, #e9ecef);
    color: var(--azul-escuro, #2c3e50);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    gap: 0.3rem;
}

.btn-secondary:hover {
    background: var(--azul-medio, #3498db);
    color: #fff;
}

.demandas-table-container {
    max-width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    padding: 1.2rem 1.7rem 1.1rem 1.7rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.demandas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
    table-layout: auto;
}

.demandas-table th,
.demandas-table td {
    border: none;
    padding: 0.4rem 0.5rem;
    text-align: left;
    vertical-align: middle;
}

.demandas-table th.text-center,
.demandas-table td.text-center {
    text-align: center;


}

.demandas-table th {
    color: #fff;
    font-weight: 600;
    background: var(--azul-medio);
   
}

.demandas-table tr:nth-child(even) {
    background: var(--azul-muito-claro);
    
}

.demandas-table tr:nth-child(odd) {
    background: #eff7ff;
}

.demandas-table tbody tr:hover {
    background: #d0e5fa;
    cursor: pointer;
}


.no-data {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
    font-size: 1.01rem;
}

.demandas-table tr:not(:first-child) td {
    border-top: 0.08rem solid #fff; /* Define o espaço entre as linhas */
}

.contatos-section {
  max-width: 1100px;
  margin: 0 0 0 3.5rem;
}

.contatos-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.btn-excluir-contato {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.2rem 0.7rem;
  border-radius: 18px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  gap: 0.5rem;
  transition: background 0.2s;
}
.btn-excluir-contato:hover {
  background: #b52a37;
}

.contatos-table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 1.2rem 1.7rem 1.1rem 1.7rem;
  margin-top: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.contatos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: auto;
}

.contatos-table th,
.contatos-table td {
  border: none;
  padding: 0.5rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.contatos-table th {
  color: #fff;
  font-weight: 600;
  background: var(--azul-medio);
  text-align: center;
}

.contatos-table tr:nth-child(even) {
  background: var(--azul-muito-claro, #f0f8ff);
}

.contatos-table tr:nth-child(odd) {
  background: #fff;
}

.contatos-table tr:hover {
  background: var(--azul-claro, #e6f2ff);
  
}

.inquilino-divider {
  border: none;
  border-top: 1px dashed var(--azul-medio, #3498db);
  margin: 0.3em 0;
  opacity: 0.3;
}

.contatos-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-sm {
  font-size: 0.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 16px;
}

:root {
  --azul-escuro: #2c3e50;
  --azul-medio: #3498db;
  --azul-claro: #e6f2ff;
  --azul-muito-claro: #f0f8ff;
  --branco: #ffffff;
  --cinza-claro: #f8f9fa;
  --cinza-medio: #e9ecef;
  --cinza-escuro: #495057;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cinza-escuro, #495057);
  text-align: left;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.historico-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  gap: 1.2rem;
}

.historico-subtitle {
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--azul-medio,#3498db);
  margin-left: 0.5rem;
}

.historico-actions {
  display: flex;
  gap: 0.5rem;
}


.timeline-container {
  max-width: 650px;
  margin: 0 0 0 3.5rem;
  padding-bottom: 2rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding-left: 2.2rem;
  border-left: 3px solid var(--azul-medio, #3498db);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
  min-height: 40px;
}

.timeline-marker {
  position: absolute;
  left: -1.36rem;
  top: 0.6rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--azul-medio, #3498db);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  z-index: 2;
}

.timeline-content {
  background: var(--azul-claro, #e6f2ff);
  border-radius: 10px;
  padding: 1.1rem 1.5rem 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  margin-left: 0.5rem;
  position: relative;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--azul-escuro, #2c3e50);
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: inline-block;
}

.timeline-user {
  font-size: 0.85rem;
  color: var(--azul-escuro, #2c3e50);
  margin-bottom: 0.1rem;
}

.timeline-email {
  font-size: 0.8rem;
  color: #888;
  margin-left: 0.3rem;
  font-weight: 400;
}

.timeline-action {
  font-size: 0.91rem;
  color: var(--azul-medio, #3498db);
  margin-bottom: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.02rem;
}

.timeline-note {
  background: #fff;
  color: var(--azul-escuro, #2c3e50);
  border-left: 3px solid var(--azul-medio, #3498db);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  margin-top: 0.3rem;
  font-size: 0.87rem;
  font-style: italic;
  box-shadow: 0 1px 4px rgba(44,62,80,0.04);
  font-weight: 450;
  letter-spacing: 0.02rem;
}

@media (max-width: 700px) {
  .timeline-container {
    margin: 0 0.5rem;
    padding: 0;
  }
  .timeline {
    padding-left: 1.1rem;
  }
  .historico-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

.novo-contato-section {
  max-width: 620px;
  margin: 0 0 0 3.5rem;
}

.email-item,
.inquilino-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn-excluir-email,
.btn-excluir-inquilino {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 0.9rem;
  height: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 0.1rem;
}
.btn-excluir-email:hover,
.btn-excluir-inquilino:hover {
  background: #b52a37;
}

.contato-form {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(44,62,80,0.07);
  padding: 2rem 2.2rem 1.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.email-item input[type="email"].form-input {
    width: 60%;
}


@media (max-width: 700px) {
  .novo-contato-section {
    margin: 0 0.5rem;
    max-width: 100%;
  }
  .contato-form {
    padding: 1.1rem 0.7rem 1rem 0.7rem;
  }
}

.organizacoes-section, .usuarios-section {
  max-width: 1000px;
  margin: 0 0 0 3.5rem;
}

.organizacao-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-end;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.35rem 1rem;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  gap: 0.4rem;
  transition: background 0.2s;
  margin-top: 0.9rem;
}
.btn-danger:hover {
  background: #b52a37;
}

.btn-disabled {
  display: inline-block;
  background: #eee;
  color: #aaa;
  border-radius: 16px;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: not-allowed;
}

.inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.organizacoes-table-container, .usuarios-table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 0.8rem 0.6rem 0.8rem 0.6rem;
  margin-top: 0.6rem;
  overflow-x: auto;
}

.organizacoes-table, .usuarios-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  table-layout: auto;
}

.organizacoes-table th, .usuarios-table th,
.organizacoes-table td, .usuarios-table td {
  border: none;
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: middle;
}

.organizacoes-table th, .usuarios-table th {
  color: var(--azul-escuro, #2c3e50);
  font-weight: 600;
  background: var(--azul-claro, #e6f2ff);
}

.organizacoes-table tr:nth-child(even), .usuarios-table tr:nth-child(even) {
  background: var(--azul-muito-claro, #f0f8ff);
}

.organizacoes-table tr:nth-child(odd), .usuarios-table tr:nth-child(odd) {
  background: #fff;
}

.organizacoes-table tr:hover, .usuarios-table tr:hover {
  background: var(--azul-claro, #e6f2ff);
  
}

.page-title-admin {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--azul-medio, #3498db);
  text-align: left;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.form-input-org {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    color: #2c3e50;
    background: #fff;
    transition: border 0.2s;
    letter-spacing: 0.015em;
    font-weight: 500;
    min-width: 40%
}

.limpeza-section {
  max-width: 650px;
  margin: 0 0 0 3.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(44,62,80,0.07);
  padding: 2rem 2.2rem 1.4rem 2.2rem;
}

.limpeza-status {
  margin-bottom: 1.2rem;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.status-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-ativo {
  color: var(--verde, #2e7d32);
}
.status-inativo {
  color: var(--vermelho, #c62828);
}
.intervalo-info {
  font-size: 0.97em;
  color: var(--azul-escuro, #2c3e50);
  margin-left: 0.7em;
  font-weight: 500;
}

.limpeza-agendar,
.limpeza-remover {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.form-input-small {
  width: 70px;
  min-width: 50px;
  padding: 0.45rem 0.7rem;
  font-size: 0.97rem;
}

.form-input:focus {
  border-color: var(--azul-medio, #3498db);
  outline: none;
}

.limpeza-divisor {
  margin: 2.2rem 0 1.4rem 0;
  border: none;
  border-top: 1px dashed var(--azul-medio, #3498db);
  opacity: 0.3;
}

.limpeza-subtitle {
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--azul-escuro, #2c3e50);
  margin-bottom: 0.7rem;
}

.limpeza-list {
  list-style: disc inside;
  color: #495057;
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
  margin-left: 1.2rem;
}

.limpeza-msg {
  color: #b0b0b0;
  font-style: italic;
  font-size: 0.97rem;
  margin-top: 0.8rem;
}

.auth-section {
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(44,62,80,0.07);
  padding: 2.2rem 2rem 1.6rem 2rem;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Remova as margens automáticas */
  margin: 0;
  max-height: 40%;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-input.auth-input {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1.15rem;
  color: #2c3e50;
  background: #f8f9fa;
  text-align: center;
  letter-spacing: 0.2em;
  font-weight: 600;
  transition: border 0.2s;
}

.form-input.auth-input:focus {
  border-color: var(--azul-medio, #3498db);
  outline: none;
}

.btn-primary-agendamento {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    gap: 0.4rem;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
}
.btn-primary-agendamento:hover {
    background: var(--azul-escuro, #2c3e50);
}

.sms-section {
  max-width: 800px;
  margin: 0 0 0 3.5rem;
}

.sms-filtros {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: flex-end;
}

.sms-table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 1.2rem 1.7rem 1.1rem 1.7rem;
  margin-bottom: 1.3rem;
  overflow-x: auto;
}

.sms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.90rem;
  table-layout: auto;
}

.sms-table th,
.sms-table td {
  border: none;
  padding: 0.5rem 0.4rem;
  text-align: left;
  vertical-align: middle;
}

.sms-table th {
  color: var(--azul-escuro, #2c3e50);
  font-weight: 600;
  background: var(--azul-claro, #e6f2ff);
}

.sms-table tr:nth-child(even) {
  background: var(--azul-muito-claro, #f0f8ff);
}

.sms-table tr:nth-child(odd) {
  background: #fff;
}

.sms-table tr:hover {
  background: var(--azul-claro, #e6f2ff);
  cursor: pointer;
}

.sms-checkbox {
  width: 1.1em;
  height: 1.1em;
}

.sms-char-count {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.1rem;
  text-align: right;
}

.btn-primary-sms {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    padding: 0.4rem 1.0rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    gap: 0.4rem;
}
.btn-primary-sms:hover {
    background: var(--azul-escuro, #2c3e50);
}

.form-input-sms {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    color: #2c3e50;
    background: #fff;
    transition: border 0.2s;
    letter-spacing: 0.015em;
    font-weight: 500;
    min-width: 40%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modelos-list-section {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 1.5rem 1.7rem 1.2rem 1.7rem;
}

.modelos-list-title {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--azul-escuro, #2c3e50);
  margin-bottom: 1.1rem;
}

.modelos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.modelos-table th,
.modelos-table td {
  border: none;
  padding: 0.5rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.modelos-table th {
  color: var(--azul-escuro, #2c3e50);
  font-weight: 600;
  background: var(--azul-claro, #e6f2ff);
}

.modelos-table tr:nth-child(even) {
  background: var(--azul-muito-claro, #f0f8ff);
}

.modelos-table tr:nth-child(odd) {
  background: #fff;
}

.modelos-table tr:hover {
  background: var(--azul-claro, #e6f2ff);
}

table.modelos-table td {
    padding: 0.28rem 0.5rem !important;
}

.btn-secondary-demandas {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: auto;         /* Garante largura automática */
    max-width: none;     /* Remove qualquer limitação herdada */
    flex: 0 0 auto;      /* Impede que o botão cresça para preencher o container flex */
    box-sizing: border-box;
}

.btn-secondary-demandas:hover {
    background: var(--azul-escuro, #2c3e50);
    color: var(--cinza-medio, #e9ecef);
}

.email-section {
  max-width: 820px;
  margin: 0 0 0 3.5rem;
}

.email-filtros {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: flex-end;
}

.email-table-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  padding: 0.2rem 0.2rem 0.5rem 0.8rem;
  margin-bottom: 1.3rem;
  overflow-x: auto;
}

.email-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  table-layout: auto;
}

.email-table th,
.email-table td {
  border: none;
  padding: 0.4rem 0.3rem;
  text-align: left;
  vertical-align: middle;
}

.email-table th {
  color: var(--azul-escuro, #2c3e50);
  font-weight: 700;
  background: var(--azul-claro, #e6f2ff);
}

.email-table tr:nth-child(even) {
  background: var(--azul-muito-claro, #f0f8ff);
}

.email-table tr:nth-child(odd) {
  background: #fff;
}

.email-table tr:hover {
  background: var(--azul-claro, #e6f2ff);
  cursor: pointer;
}

.email-checkbox {
  width: 1.0em;
  height: 1.0em;
}

/* Campo de assunto e selects */
.form-input-email,
.form-input-assunto,
#modelo-email-select {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 0.3rem 0.4rem;
  font-size: 0.8rem;
  color: #2c3e50;
  background: #fff;
  transition: border 0.2s;
  letter-spacing: 0.015em;
  font-weight: 500;
  min-width: 40%;
  margin-bottom: 0.7rem;
  width: 100%;
  box-sizing: border-box;
}

/* Botão principal */
.btn-primary-email {
    display: inline-flex;
    align-items: center;
    background: var(--azul-medio, #3498db);
    color: #fff;
    border: none;
    padding: 0.4rem 1.0rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    gap: 0.4rem;
}
.btn-primary-email:hover {
    background: var(--azul-escuro, #2c3e50);
}

/* Editor HTML (TinyMCE ou similar) */
.tox-tinymce {
  border-radius: 8px !important;
  border: 1px solid #d0d7de !important;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.tox .tox-toolbar,
.tox .tox-statusbar {
  background: var(--azul-muito-claro, #f0f8ff) !important;
}

/* Formulário geral */
.email-form .form-row {
  margin-bottom: 0.5rem;
}
.form-label {
  font-weight: 650;
  color: #2c3e50;
  margin-bottom: 0.2rem;
  display: block;
}

/* Ações do formulário */
.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
/* .btn-secondary {
  background: #f0f8ff;
  color: #2c3e50;
  border: 1px solid #d0d7de;
  border-radius: 20px;
  padding: 0.4rem 1.0rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: #e6f2ff;
} */

/* Overlay de loading */
#loading-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255,255,255,0.85);
  z-index: 9999;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
}
.spinner {
  border: 4px solid #e6f2ff;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Responsividade */
@media (max-width: 700px) {
  .email-section {
    padding: 1rem 0.3rem;
    margin: 0;
  }
  .email-table th, .email-table td {
    padding: 0.35rem 0.2rem;
    font-size: 0.86rem;
  }
  .form-actions {
    flex-direction: column;
    gap: 0.6rem;
  }
}

.tox-toolbar__primary {
  min-height: 8px !important;
  padding: 2px 4px !important;
}

.tox .tox-toolbar__group {
  margin: 0 1px !important;
}

.tox .tox-tbtn {
  height: 8px !important;
  padding: 1px 2px !important;
  font-size: 10px !important;
}
.btn-terciario.btn-sm {
  background-color: var(--azul-medio, #3498db);
  color: #fff;
  border: 2px solid var(--azul-medio, #3498db);
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  user-select: none;
}

.btn-terciario.btn-sm:hover,
.btn-terciario.btn-sm:focus {
  background-color: var(--azul-escuro, #2c3e50);
  color: #fff;
  border-color: var(--azul-escuro, #2c3e50);
  outline: none;
}

.btn-terciario.btn-sm:disabled,
.btn-terciario.btn-sm[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--azul-medio, #3498db);
  color: #fff;
  border-color: var(--azul-medio, #3498db);
}



/* Ícones (Font Awesome recomendado) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');
