:root {
    --success-color: #D6FFD6;
    --success-bgc: #198754;
    --danger-color: #ffdfe4;
    --danger-bgc: #dc3545;
    --warning-color: #ffc107;
    --highlight-color: #ff8700;
    --gray-dark: #333;
    --gray-light: #ccc;
    --gray-bg: #ececec;
}

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 0;
    margin:0;
    height: 100%;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    background-color: black;
    padding: 0.4em;
    padding-bottom: 0.1em;
}

/* Estilos gerais das notificações */
.notificacao {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    transform: translateY(20px);
    z-index: 9999999999;
}

.notificacao.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos específicos dos tipos */
.notificacao-sucesso {
    background-color: #4CAF50;
}

.notificacao-erro {
    background-color: #F44336;
}

.notificacao-aviso {
    background-color: #FF9800;
}

.notificacao-info {
    background-color: #2196F3;
}

.avatar {
    height: 2em;
    width:  2em;
    border-radius: 50%;
    object-fit: cover; 
}

.userInfo{
    display: flex ;
    justify-content: end;
    padding-right: 1em;
}

#loading {
    display: none; /* escondido por padrão */
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgba(255,255,255,0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999999;
}

/* animação girando */
#loading img {
    width: 4em;
    animation: spinPause 2s ease-in-out infinite;
}

@keyframes spinPause {
    0%   { transform: rotate(0deg); }
    60%  { transform: rotate(360deg); }  /* termina a volta rápido */
    80%  { transform: rotate(360deg); }  /* pausa em pé */
    100% { transform: rotate(360deg); }  /* mantém em pé até repetir */
}

.dcontainer {
    padding: 0 0.5em;
}

.dtable-container {
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}

.dtable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-color: #ff990050;
}

.dtable thead {
    background: #454848;
    color: #fff;
}

.dtable th, 
.dtable td {
    padding: 0.3rem 0.5rem;
    text-align: left;
}

.dtable tbody tr:nth-child(even) {  /* zebra‑striping suave */
    background: #ff9f0024;
}

.linha-par {  /* zebra‑striping suave */
    background: #ff9f0024;
}

.dtable tbody tr:hover {
    background: #ff9f0066;
}

.dtable tbody {
    cursor: pointer;
}

.dbutton {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 8px;
    background-color: var(--gray-bg);
    color: var(--gray-dark);
    border:1px solid var(--gray-light);
}

.cordestaque {
    background-color: var(--highlight-color) !important;
    color: white !important;
}

.dmodal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    justify-content: center; 
    align-items: center;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    padding: 10px; /* espaço para não colar nas bordas da tela */
}

.dform-container {
    background: #fff;
    border-radius: 10px;
    width: 40%;
    min-width: 500px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1em 1.5em;
    box-sizing: border-box;
}

.dformcontainer-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #333;
    text-align: center;
}

.dform {
    display: flex ;
    flex-direction: column;
}

.dform-div-campos {
    display: flex ;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    word-break: break-word;
}

.dform label {
    font-weight: 600;
    font-size: .8em;
    color: #444;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dform input:not([type="checkbox"]):not([type="radio"]),
.dform select {
    /* --- Propriedades Essenciais para a Consistência --- */
    
    /* Garante que padding e borda fiquem DENTRO da altura/largura total */
    box-sizing: border-box; 
    
    /* Remove os estilos padrão do navegador (o passo mais importante para o select) */
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;

    /* --- Suas propriedades originais --- */
    padding: .2em .4em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .8em;
    transition: border-color 0.3s;
    margin-bottom: .5em;
    
    /* Garante a mesma fonte e altura de linha, o que também impacta a altura final */
    font-family: inherit; /* Herda a fonte do elemento pai */
    line-height: inherit; /* Herda a altura da linha */
}

.dform-button {
    margin-top: 12px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.cor-destaque {
    color: white;
    background-color: #ff8700;
    transition: background-color 0.3s;   
}

.cor-destaque:hover {
    background-color: #db7500;
}

.cor-normal {
    background-color: #ccc;
    color: #333;
}

.cor-normal:hover {
    background-color: #ccc;
    color: #333;
}

.dform-image-preview {
    display: none; /* Começa escondido */
    margin-top: 15px;
    border: 1px solid #ddd;
    padding: 5px;
    width: 200px; /* Ou o tamanho que preferir */
    height: 200px;
    margin: auto;
}

.dform-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha a área sem distorcer */
}

.dform-div-input-checkbox {
    display: flex ;
    justify-content: space-between;
    /* height: 2em; */
    border-bottom: 1px #ccc solid;
    margin-bottom: .5em;
    padding: 0 0.1em;
    height: 39px !important;
}

.dform-div-input-checkbox input {
    margin-left: auto;
}

.dform-logo-img {
    object-fit: cover;
    height: 2em;
    width: 2em;
}

.dform-field {
    display: flex ;
    flex-direction: column;
    height: 40px;
    margin-bottom:.5em;
}

.filepond--credits {
    display: none  !important;
}

.dform-field select {
    max-height: 150px;
}

.dform-table-image {
    margin-right: .6em;
}

.dform-table-span {
    vertical-align: super;
}

.dtable-row-action {

}

/* 2. Definir um tamanho para o seu carrossel */
.meu-swiper {
    width: 80%;
    max-width: 600px;
    height: 300px; /* Definir uma altura é uma boa prática */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.swiper-slide img {
    /* width: 100%; */
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o slide */
}

.dtooltip {
    position: relative; /* Importante para posicionar o tooltip corretamente */
    display: inline-block; /* Garante que o botão e o tooltip se comportem como blocos inline */
}

.dtooltip .dtooltiptext {
    visibility: hidden;
    /* width: 200px; */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 120%; /* Posiciona o tooltip acima do elemento */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.8em;
}

.dtooltiptext {
    font-family: "'Segoe UI', Tahoma, Geneva, Verdana, sans-serif'";
}

.dtooltip:hover .dtooltiptext {
    visibility: visible;
    opacity: 1;
}