/* Estilo geral da página */
/* IGNORAR FONTE PREFCG COM ERRO 
body {
    font-family: 'Goldplay-Bold', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@font-face {
    font-family: 'Goldplay-Black';
    src: url('fonts/Goldplay-Black.woff2') format('woff2'),
        url('fonts/Goldplay-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Goldplay-Bold';
    src: url('fonts/Goldplay-Bold.woff2') format('woff2'),
        url('fonts/Goldplay-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
*/
body {
    font-family:Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-wrap: wrap; /* Permitir quebra de linha em telas menores */
    padding: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.col {
    flex: 0 0 48%; /* Cada coluna ocupa aproximadamente metade da linha */
}


.user-greeting {
    padding: 6px 5px; /* Adds padding around the text */
    background-color: #f0f0f0; /* Light grey background */
    color: #333; /* Darker text color */
    border-radius: 5px; /* Rounded corners */
    display: inline-block; /* Ensures it displays inline */
    margin: 2px 0; /* Adds some margin for spacing */
    font-weight: bold; /* Makes the text bold */
    font-size: 1rem; /* Adjusts the font size */
}

.user-greeting i {
    margin-right: 2px; /* Adds space between the icon and text */
    color: #007BFF; /* Icon color (blue in this case) */
}

/* Estilo do cabeçalho */
header {
}

header h1 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h4 {
    padding: 20px;
}

textarea#motivo {
    width: 100%; /* Altera a largura para ocupar todo o espaço do contêiner */
    box-sizing: border-box; /* Inclui o padding e a borda na largura total */
    max-width: 600px; /* Define uma largura máxima para campos grandes */
}


/* Navegação */
nav {
    background-color: #d0d3d6;
    color: #fff;
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    display: block;
}

nav ul li a:hover {
    background-color: #b5babf;
}

nav ul li ul {
    display: none;
    position: absolute;
    background-color: #d0d3d6;
    top: 100%;
    left: 0;
    padding: 10px 0;
    width: 200px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    width: 100%;
}



.success-container {
    text-align: center;
    padding: 20px;
    background-color: #d4edda; /* Verde claro para sucesso */
    color: #155724; /* Verde escuro para texto */
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #007bff; /* Azul para o botão */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.button:hover {
    background-color: #0056b3; /* Azul escuro ao passar o mouse */
}


/* Estilo geral da tabela */

.table-wrapper {
    display: flex;
    gap: 10px; /* Espaço entre as tabelas */
	margin: 5px;
	padding: 10px;
}

.table-container {
    width: 100%;
	font-weight: bold;
    max-width: 1000px; /* Limite a largura máxima da tabela */
    margin: 20px auto; /* Centraliza a tabela horizontalmente */
    border-collapse: collapse; /* Remove os espaços entre as células */
    background-color: #fff; /* Fundo branco para melhor contraste */
    border-radius: 8px; /* Bordas arredondadas */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Estilo das células da tabela */
.table-container td {
    border: 1px solid #ddd; /* Borda leve */
    padding: 12px; /* Espaçamento interno das células */
    text-align: center; /* Alinha o texto ao centro */
    vertical-align: middle; /* Alinha o texto verticalmente ao meio */
	font-weight: bold;
}

/* Estilo para os cabeçalhos da tabela */
.table-container th {
    background-color: #173b57; /* Fundo claro para os cabeçalhos */
    color: #ffff; /* Cor do texto dos cabeçalhos */
    font-weight: bold; /* Texto em negrito */
}

.table-container tr:nth-child(even) {
    background-color: #f9f9f9; /* Cor de fundo alternada */
}

.table-container tr:hover {
    background-color: #e2e2e2; /* Cor de fundo ao passar o mouse */
}

.div.report-container {
	width: 100%;
	font-weight: bold;
    max-width: 1000px; /* Limite a largura máxima da tabela */
    margin: 20px auto; /* Centraliza a tabela horizontalmente */
    border-collapse: collapse; /* Remove os espaços entre as células */
    background-color: #fff; /* Fundo branco para melhor contraste */
    border-radius: 8px; /* Bordas arredondadas */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.div.report-container2 {
	width: 100%;
	font-weight: bold;
    max-width: 1000px; /* Limite a largura máxima da tabela */
    margin: 20px auto; /* Centraliza a tabela horizontalmente */
    border-collapse: collapse; /* Remove os espaços entre as células */
    background-color: #fff; /* Fundo branco para melhor contraste */
    border-radius: 8px; /* Bordas arredondadas */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.div.report-container3 {
	width: 100%;
	font-weight: bold;
    max-width: 1000px; /* Limite a largura máxima da tabela */
    margin: 20px auto; /* Centraliza a tabela horizontalmente */
    border-collapse: collapse; /* Remove os espaços entre as células */
    background-color: #fff; /* Fundo branco para melhor contraste */
    border-radius: 8px; /* Bordas arredondadas */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.section h3 {
			text-align: center;
            border-bottom: 2px solid #fab43c;
            padding-bottom: 10px;
            margin-bottom: 20px;
            color: #1c3652;
        }

/* Estilo do formulário */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.form-container h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #173b57;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-container input[type="number"],
.form-container input[type="time"],
.form-container button {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.form-container button {
    background-color: #173b57;
    color: #fff;
    border: none;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #0d2d44;
}

/* Mensagens de sucesso e erro */
.success {
    color: #28a745; /* Verde */
    font-weight: bold;
    text-align: center;
}

.error {
    color: #dc3545; /* Vermelho */
    font-weight: bold;
    text-align: center;
}

/* Cores das classificações de risco */

.amarela {
    background-color: #FFFF99 !important; /* Amarelo claro */
    color: #000000; /* Preto */
}

.verde {
    background-color: #99FF99 !important; /* Verde claro */
    color: #000000; /* Preto */
}

.azul {
    background-color: #99CCFF !important; /* Azul claro */
    color: #000000; /* Preto */
}

.fast-track {
    background-color: #f28dde !important; /* Rosa */
    color: #000000; /* Preto */
}

.classificacao {
    background-color: #FFFFFF !important; /* Branco */
    color: #000000; /* Preto */
}

.na-caixa {
    background-color: #DEFFFD; /* Turquesa */
    color: #000000; /* Preto */
}

.fast-ped {
    background-color: #f28dde !important; /* Rosa */
    color: #000000; /* Preto */
}

.caixa-ped {
    background-color: #DEFFFD; /* Turquesa */
    color: #000000; /* Preto */
}

/* Rodapé */
footer {
    background-color: #303884; /* Cor de fundo azul escuro */
    color: #fff; /* Cor do texto branca */
    padding: 20px;
    text-align: center;
}

/* Container para os textos de cima */
.footer-top {
    display: flex; /* Habilita o Flexbox para alinhar os itens */
    justify-content: space-between; /* Espaça os itens para as pontas */
    align-items: flex-start; /* Alinha os itens ao topo */
    margin-bottom: 20px;
}

/* Estilos para a div do lado esquerdo */
.footer-left {
    text-align: left;
    font-size: 14px;
}

/* Estilos para a div do lado direito */
.footer-right {
    text-align: right;
    font-size: 14px;
}

/* Linha divisória */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5); /* Linha branca semi-transparente */
    margin: 20px 0;
}

/* Estilos para a imagem da logo */
.footer-logos {
    width: 350px; /* Largura da imagem, ajuste se necessário */
    height: auto;
}

/* Estilos para mobile */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column; /* Em telas menores, os itens ficam um embaixo do outro */
        align-items: center; /* Centraliza o texto */
    }
    .footer-left, .footer-right {
        text-align: center;
        margin-bottom: 10px;
    }
}

#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 310px;
    height: 350px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
	transition: height 0.3s ease-in-out, width 0.3s ease-in-out;
    font-family: Arial, sans-serif; /* Adicionado para consistência */
	font-size: 14px;
    z-index: 1000; /* Garante que fique acima de outros elementos */
}

#chat-widget.minimized {
    height: 40px !important;
}

/* Esconde o corpo e o rodapé */
#chat-widget.minimized #chat-body-container,
#chat-widget.minimized #chat-footer {
    display: none !important;
}

#chat-widget.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    bottom: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important; /* Remova margin-left daqui */
    padding: 0 !important; /* Remova padding-left daqui */
    box-sizing: border-box; /* Garante que padding não estoure a largura */
}

#chat-fullscreen {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-left: 20px;
	padding-left: 15px;  /* Margem esquerda */
	overflow-wrap: break-word; /* Quebra palavras longas */
	word-break: break-all; /* Quebra palavras se necessário */
}

#chat-header {
    background: #173B57;
    color: white;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* Mantém itens nas pontas */
    align-items: center;
    user-select: none; /* Impede seleção de texto ao clicar/arrastar */
}

#chat-widget.fullscreen #chat-header {
    padding-left: 20px !important;
}

#chat-title {
    font-weight: bold;
    margin-left: 10px; /* Espaçamento entre Voltar e o título */
}

#chat-back {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

/* Corrigido para #chat-body-container */
#chat-body-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Garante que os filhos não transbordem */
}

/* Estilos para as visualizações (lista e mensagens) */
.chat-view {
    flex: 1;
    padding: 10px 15px 10px 25px !important; /* 25px na esquerda para afastar o texto */
    overflow-y: auto;
    box-sizing: border-box;
}

.chat-list-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.chat-list-item:hover {
    background-color: #f0f0f0;
}

#chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 5px; /* Adicionado padding para melhor visual */
}

#chat-input {
    flex: 1;
    border: 1px solid #ccc; /* Adicionado borda para visualização */
    border-radius: 4px;
    padding: 8px;
    margin-right: 5px;
}

#chat-send {
    border: none;
    background: #173B57;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

#chat-send:hover {
    background: #0044aa;
}

/* Estilos para as mensagens (se você quiser diferenciar remetente/destinatário) */
.message-self {
    text-align: right;
    margin-bottom: 5px;
    background-color: #dcf8c6;
    padding: 5px;
    border-radius: 5px;
}
.message-other {
    text-align: left;
    margin-bottom: 5px;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.chat-list-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-list-item:hover {
    background-color: #f5f5f5;
}

.conversa-nao-lida {
    font-weight: bold;
    background-color: #e6f7ff;
    border-left: 5px solid #007bff;
}

.status-visualizado {
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 5px;
    line-height: 1;
}

.status-lido {
    color: #4CAF50;
}

.status-nao-lido {
    color: #999;
}

#chat-participants-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#chat-participant-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.chat-participant-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.chat-participant-item button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

#chat-add-participant {
    margin-top: 10px;
}

#chat-user-select {
    padding: 8px;
    width: 70%;
}

#chat-add-participant-button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#chat-manage-participants {
  /* Outras propriedades */
  color: white !important; /* Adicione !important para forçar a cor, se necessário */
  
  /* Você já tinha: */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-left: 10px;
}