﻿/* Exemplo de pequenas melhorias e variáveis. */
:root {
    --circle-size: clamp(1.5rem, 5vw, 2.7rem);
    --spacing: clamp(0.25rem, 2vw, 0.5rem);
}

body {
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.page-loader {
    z-index: 999999 !important;
}

.row > div {
    margin-bottom: 8px;
}

.image-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 150px; /* Garante um espaço adequado */
}

    /* Ícone centralizado */
    .image-input-wrapper i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }


/* Cartões do modo "cards" (exemplo que já existia) */
.cards tbody tr {
    float: left;
    width: 22.6rem;
    margin: 0.6rem;
    border: 0.0625rem solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}

.cards tbody td {
    display: block;
    margin: 0 auto;
    text-align: center !important;
}

.cards .avatar {
    width: 150px;
    height: 150px;
    margin: 15px;
}

/* Exemplos de responsividade adicional, se quiser:
@media (max-width: 576px) {
   #status-container {
       font-size: 14px;
   }
   ...
}
*/

/* Exemplo de override para text-danger */
.text-danger {
    color: #c00 !important; /* um vermelho mais vivo */
    font-weight: bold; /* opcional, para destacar */
}

/* Exemplo de override para text-success */
.text-success {
    color: #008000 !important; /* verde mais forte */
    font-weight: bold; /* idem */
}

.skeleton-avatar {
    position: relative;
    overflow: hidden;
    background-color: #757575; /* cinza para exibir skeleton */
}

    .skeleton-avatar::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(220,220,220,0.4), transparent);
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}



/* SOFIA ALERTAS ***************************************************************/
#painel-alerta.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999999 !important;
}

.sofia-alerta {
    position: fixed;
    width: 405px !important;
    top: 25px;
    right: 30px;
    border-radius: 12px;
    padding: 20px 12px 20px 16px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    z-index: 999998 !important;
}

    .sofia-alerta.active {
        transform: translateX(0%);
    }


.sofia-alerta-content {
    display: flex;
    align-items: center;
}

    .sofia-alerta-content i {
        display: flex;
        align-items: center;
    }

.sofia-alerta-message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

    .sofia-alerta-message .text {
        font-size: 14px;
        font-weight: 400;
    }

        .sofia-alerta-message .text.text-1 {
            font-weight: 600;
        }

.sofia-alerta-close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

    .sofia-alerta-close:hover {
        opacity: 1;
    }

.sofia-alerta-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #ddd;
}

    .sofia-alerta-progress:before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        height: 100%;
        width: 100%;
        background-color: #4070f4;
    }

    .sofia-alerta-progress.active:before {
        animation: progress 5s linear forwards;
    }


    /*BOTAO VERMELHO SESI*/
.btn-vermelho-sesi {
    background-color: #E40520;
    color: #fff;
    font-size: .875rem; /* um pouco menor que o fs-1 do Portaria */
    line-height: 1.2; /* centraliza verticalmente */
    font-weight: 600; /* consistente com outros textos fortes */
    padding: 1.25rem .75rem; /* altura enxuta */
    border-radius: .25rem; /* cantos suaves */
    display: inline-flex;
    align-items: center; /* icon + texto no meio */
    height: calc(1.2em + .5rem); /* garante alinhamento exato */
    transition: background-color .2s, transform .1s;

}
    .btn-vermelho-sesi  {
        font-size: 1.0rem; /* deixa o ícone proporcional */
    }
    .btn-vermelho-sesi i {
        font-size: 1.0rem; /* deixa o ícone proporcional */
    }

    .btn-vermelho-sesi:hover {
        background-color: #c3041b; /* hover mais escuro */
        text-decoration: none;
    }

    .btn-vermelho-sesi:active {
        transform: translateY(1px);
    }


/* garante que o botão-<span> do nome não estoure e mostre "..." */
.nome-unidade {
    max-width: 400px; /* ajuste conforme seu layout */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* só pra garantir espaçamento no mobile */
@media (max-width: 576px) {
    .nome-unidade {
        max-width: 100%;
        text-align: center;
    }

    /* espaçamento vertical dentro do header */
    #kt_app_header .d-flex.flex-column {
        gap: 1.5rem;
    }

    /* ===========================
       NOVO: gap entre header e body
       =========================== */
    #kt_app_header {
        margin-bottom: 1.5rem;
    }

    /* ou, se preferir, joga um padding-top no main */
    #kt_app_main {
        padding-top: 1.5rem;
    }
    .w-lg-500px {
        width: auto !important; /* não ficar preso a 500px */
        max-width: 100% !important; /* no máximo toda a largura */
        margin: 1rem !important; /* folga de 1rem em volta */
        /* padding interno extra, se quiser: */
        padding: 1rem !important;
    }
    #modal-carga-unidade-login .modal-dialog,
    #modal-seleciona-unidade .modal-dialog {
        margin: 3rem !important;
        max-width: calc(100% - 3rem) !important; /* 100% menos 2 × 3rem */
    }
}

.bg-danger {
    background-color: #E40520 !important;
}

.text-danger {
    color: #E40520 !important;
}