/* ==========================================================================
   General Styles
   ========================================================================== */
a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fonte elegante */
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
    padding-top: calc(70px + env(safe-area-inset-top));
}

/* 1. Ajuste a Navbar para não bater no relógio */
.navbar-fixed-top {
    padding-top: env(safe-area-inset-top);
    min-height: calc(50px + env(safe-area-inset-top));
}

.spacer-navbar {
    /* Pega os 35px que você já usava e soma ao tamanho da barra de status */
    height: calc(35px + env(safe-area-inset-top));
    width: 100%;
    display: block;
}

.spacer-footer {
    /* Pega um respiro padrão (ex: 20px) e soma à altura da barra de navegação do Android */
    height: calc(20px + env(safe-area-inset-bottom));
    width: 100%;
    display: block;

    /* Opcional: Garante que nada suba por cima desse espaço */
    clear: both;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .push_button {
        display: none !important;
    }
}

/* ==========================================================================
   Links
   ========================================================================== */
.redlink {
    color: #dc3545;
    transition: color 0.3s ease;
}

.redlink:hover {
    color: #b02a37;
}

.whitelink {
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Cursors & Interactions
   ========================================================================== */
.pointer {
    cursor: pointer;
}

/* ==========================================================================
   Buttons - ESTILO ORIGINAL COM TOQUE GLOSSY (DIMENSÕES MANTIDAS)
   ========================================================================== */
.push_button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    /* Arredondado moderno */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fonte elegante */
    font-size: 16px;
    font-weight: 400;
    /* Sem negrito, mais limpo */
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 200px;
    /* Exatamente como o original */
    height: 50px;
    /* Exatamente como o original */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: gray;
    margin: 5px;
    line-height: 30px;
    /* Ajuste para centralizar o texto verticalmente na altura de 50px */
    text-decoration: none;

    /* EFEITO GLOSSY (Reflexo de vidro sutil) */
    background-image: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(0, 0, 0, 0.05) 51%,
            rgba(0, 0, 0, 0.1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.push_button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.push_button:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mantendo todas as suas classes de cores originais */
.push_button.green {
    background-color: #28a745;
}

.push_button.green:hover {
    background-color: #218838;
}

.push_button.red {
    background-color: #dc3545;
}

.push_button.red:hover {
    background-color: #b02a37;
}

.push_button.purple {
    background-color: #9b59b6;
}

.push_button.purple:hover {
    background-color: #8347a0;
}

.push_button.orange {
    background-color: #e67e22;
}

.push_button.orange:hover {
    background-color: #d0691c;
}

.push_button.yellow {
    background-color: #f1c40f;
    color: #fff !important;
}

.push_button.yellow:hover {
    background-color: #d9ad0d;
}

.push_button.blue {
    background-color: #007bff;
}

/* Mantendo o tamanho SMALL original */
.push_button.small {
    width: 100px;
    height: 25px;
    font-size: 9pt;
    padding: 5px 10px;
    line-height: 15px;
    /* Ajuste para o texto não subir no small */
}

/* Classe .btn original estilizada */
.btn {
    background-color: DodgerBlue;
    border: none;
    border-radius: 50px;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.btn:hover {
    background-color: RoyalBlue;
}

/* ==========================================================================
   Navbar Glossy Modern
   ========================================================================== */
.navbar {
    background-color: #1a1a1a;
    /* Fundo escuro base */
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 50px;
    margin-bottom: 20px;

    /* EFEITO GLOSSY: Reflexo superior na barra toda */
    background-image: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(0, 0, 0, 0.05) 51%,
            rgba(0, 0, 0, 0.1) 100%);

    /* Efeito de Vidro (Opcional, se o fundo do site não for branco puro) */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Estilizando o Botão sanduíche (navbar-toggle) para combinar */
.navbar-toggle {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.05);
}

.navbar-toggle .icon-bar {
    background-color: #fff !important;
    /* Barrinhas brancas para contraste */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ajuste nos links da Navbar para fonte elegante */
.navbar-nav>li>a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fonte elegante */
    font-weight: 300;
    letter-spacing: 1px;
    color: #eee !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-nav>li>a:hover {
    color: #fff !important;
    filter: brightness(1.2);
}

/* Notificação Estilo SOGSA Moderno */
.notify-bubble,
.notify-bubble2 {
    /* Degradê para não ficar chapado */
    background: linear-gradient(135deg, #ff5f6d, #d31027);
    color: #fff;
    font-size: 10px;
    /* Tamanho fixo em px é melhor para bolinhas pequenas */
    font-weight: 800;
    font-family: 'Segoe UI', Roboto, sans-serif;

    /* Círculo Perfeito com Sombra de Profundidade */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    /* Borda fina suave */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

    /* Centralização Total */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;

    /* Animação de Entrada */
    animation: pulse-red 2s infinite;
    transition: all 0.3s ease;
}

/* Ajuste específico para a absoluta (topo do menu) */
.notify-bubble2 {
    position: absolute;
    top: 2px;
    /* Ajustado para não ficar no meio da linha e sim "pendurado" no nome */
    right: -12px;
}

/* Efeito de Pulso Discreto */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Hover: Aumenta levemente quando passa o mouse no menu */
li:hover .notify-bubble {
    transform: scale(1.15);
    filter: brightness(1.2);
}

/* ==========================================================================
   Tables & Listings - SOGSA Modern Version
   ========================================================================== */

/* Estilo para listas tipo "Zebra" (usadas em cards ou divs) */
.zebra {
    padding: 12px 15px;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    /* Arredondado suave */
    margin-bottom: 4px;
}

.zebra:nth-of-type(even) {
    background-color: #f8fafc;
    /* Cinza claríssimo azulado */
}

.zebra:hover {
    background-color: #e7eeff;
    transform: translateX(0px);
    /* Pequeno slide ao passar o mouse */
    box-shadow: inset 2px 0 0 #7c92b1;
    /* Barra lateral azul no hover */
}

/* Container da Tabela */
.tabela {
    margin: 15px auto;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* Garante que o arredondamento funcione */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.tabela table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    /* Melhor para responsividade que o fixed */
}

.tabela th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 12px 10px;
    border-bottom: 2px solid #e2e8f0;
}

.tabela td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

/* Efeito de hover na linha da tabela */
.tabela tr:hover {
    background-color: #e50808 !important;
}

.tabela tr:last-child td {
    border-bottom: none;
}

/* Célula Ativa / Selecionada */
.activecell {
    background-color: #e2e8f0 !important;
    font-weight: bold;
}

/* Tabelas com Bordas (Estilo Planilha) */
.rich-table,
.com-borda {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
}

.com-borda td {
    border: 1px solid #e2e8f0 !important;
}

/* Ajuste para inputs dentro de tabelas (comum em lançamento de notas) */
.tabela input[type="text"],
.tabela input[type="number"] {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    transition: border-color 0.2s;
}

.tabela input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- Correção da Zebragem Automática --- */

/* 1. Garante fundo branco para todas as linhas por padrão */
.tabela tr {
    background-color: #ffffff !important;
}

/* 2. Aplica a cor nas linhas PARES (A Zebragem) */
.tabela tr:nth-child(even) {
    background-color: #f8fafc !important;
    /* Um cinza azulado bem sutil */
}

/* 3. Efeito de destaque ao passar o mouse */
.tabela tr:hover {
    background-color: #e7eeff !important;
    /* Um tom um pouco mais escuro no hover */
    transition: background-color 0.2s ease;
    box-shadow: inset 2px 0 0 #818790;
    border-radius: 10px;
}

/* 4. Garante que o cabeçalho (th) não entre na dança da zebra */
.tabela th {
    background-color: #f1f5f9 !important;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

/* ==========================================================================
   Tooltips
   ========================================================================== */
.ttip {
    position: relative;
}

.ttip .ttiptext {
    visibility: hidden;
    width: 120px;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px;
    transition: visibility 0s linear 0.1s;
}

.ttip:hover .ttiptext {
    visibility: visible;
    transition-delay: 0s;
}

/* ==========================================================================
   Text Styles
   ========================================================================== */
.sideways {
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-align: right;
}

.falta {
    color: #dc3545;
}

.divosa {
    font-size: 12pt;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    line-height: 16px;
}

.divosa ul li {
    list-style: none;
}

.active {
    color: #fff !important;
}

.overflow-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.input,
.select,
.textarea {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #c0c0c0;
    padding: 10px;
}

.input,
.select {
    height: 50px;
}

.textarea {
    min-width: 50%;
    max-width: 90%;
    height: 150px;
}

input:focus,
textarea:focus {
    outline: none;
}

.on-page-search {
    width: 100%;
    font-size: 14px;
    line-height: 26px;
    color: #787d85;
    background-color: #fcfcfc;
    border: 1px solid #e0e1e1;
    padding: 5px 15px;
}

.border {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
}

/* Custom Select */
.select-css {
    display: block;
    font-size: 11px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fonte elegante */
    color: #fff;
    line-height: 25px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #222222;
    appearance: none;
    background-color: #222222;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
        linear-gradient(to bottom, #222222 0%, #111111 100%);
    background-repeat: no-repeat, repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 0.65em auto, 100%;
}

.select-css::-ms-expand {
    display: none;
}

.select-css:hover {
    border-color: #888;
}

.select-css:focus {
    border-color: #aaa;
    color: #fff;
    outline: none;
}

.select-css option {
    font-weight: normal;
}

.select-css:disabled,
.select-css[aria-disabled=true] {
    color: graytext;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
        linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%);
}

/* Checkboxes & Radios */
.check-moderno-container {
    display: inline-flex;
    /* Faz o container se ajustar ao conteúdo */
    align-items: center;
    /* Alinha verticalmente no meio */
    gap: 8px;
    /* Dá o espaçamento perfeito entre eles */
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
}

.check-moderno {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    margin: 0;
    /* Remove margens chatas que o navegador põe */
    cursor: pointer;
}

/* Estilo para o texto ao lado (opcional) */
.label-check {
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    user-select: none;
    vertical-align: middle;
}

.checkbox label:after,
.radio label:after {
    content: '';
    display: table;
    clear: both;
}

.checkbox .cr,
.radio .cr {
    position: relative;
    border: 1px solid #a9a9a9;
    border-radius: .25em;
    width: 1.3em;
    height: 1.3em;
    float: left;
    margin-right: .5em;
}

.radio .cr {
    border-radius: 50%;
}

.checkbox .cr .cr-icon,
.radio .cr .cr-icon {
    position: absolute;
    font-size: .8em;
    line-height: 0;
    top: 50%;
    left: 20%;
}

.radio .cr .cr-icon {
    margin-left: 0.04em;
}

.checkbox label input[type="checkbox"],
.radio label input[type="radio"] {
    display: none;
}

.label {
    font-weight: 100 !important;
}

.label-info {
    background-color: #b3bec2
}

.checkbox label input[type="checkbox"]+.cr>.cr-icon,
.radio label input[type="radio"]+.cr>.cr-icon {
    transform: scale(3) rotateZ(-20deg);
    opacity: 0;
    transition: all .3s ease-in;
}

.checkbox label input[type="checkbox"]:checked+.cr>.cr-icon,
.radio label input[type="radio"]:checked+.cr>.cr-icon {
    transform: scale(1) rotateZ(0deg);
    opacity: 1;
}

/* ==========================================================================
   Layout & Positioning
   ========================================================================== */
.float {
    display: block;
    width: 100%;
}

.float-right {
    float: right;
}

.border-top,
.border-bottom {
    border-color: rgb(240, 240, 240) !important;
}

.border-top {
    border-top: 1px solid;
}

.border-bottom {
    border-bottom: 1px solid;
}

.centered {
    width: 800px;
    max-width: 100%;
    margin: 0 auto !important;
    overflow: auto;
}

.fixsize {
    display: block;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}

.inline {
    display: inline !important;
}

.large {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar-nav li .dropdown-menu {
    color: #c0c0c0;
    background-color: #222222;
}

.dd-item {
    float: right !important;
    padding: 10px;
    color: #c0c0c0;
    transition: color 0.3s ease;
}

.dd-item:hover {
    color: #fff;
}

.hl:hover {
    background-color: #e7eeff !important;
}

/* ==========================================================================
   Images & Thumbnails
   ========================================================================== */
.thumb {
    width: 40px;
    margin: 2px;
}

.thumbs {
    position: relative;
    left: 25px;
    top: -5px;
    font-size: 1.0em;
    font-weight: bold;
    color: white;
    -webkit-text-stroke-width: 1.0px;
}

.tgreen {
    -webkit-text-stroke-color: green;
}

.tred {
    -webkit-text-stroke-color: red;
}

.portrait {
    height: 240px;
    width: 240px;
    max-width: 90%;
    border: #c7c7c7 solid 8px;
    border-radius: 50%;
}

.p-30 {
    max-width: 30px;
    max-height: 30px;
    width: 30px;
    height: 30px;
}


.p-40 {
    max-width: 40px;
    max-height: 40px;
    width: 40px;
    height: 40px;
}

.p-50 {
    max-width: 50px;
    max-height: 50px;
    width: 50px;
    height: 50px;
}

.p-60 {
    max-width: 60px;
    max-height: 60px;
    width: 60px;
    height: 60px;
    background: white;
}

/* O fundo escuro que cobre toda a tela */
.lightbox-overlay {
    display: none;
    /* Começa escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Preto com 85% de opacidade */
    z-index: 9999;
    /* Garante que fique acima de TUDO */
    cursor: pointer;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Efeito suave de aparecer */
}

/* Quando o lightbox estiver ativo, mudamos o display */
.lightbox-overlay.ativo {
    display: flex;
    /* Ativa o Flexbox para centralizar */
    opacity: 1;
}

/* A imagem dentro do lightbox */
.lightbox-overlay img {
    max-width: 90%;
    /* Ocupa no máximo 90% da largura da tela */
    max-height: 90%;
    /* Ocupa no máximo 90% da altura da tela */
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;

    /* Garante que a imagem mantenha a proporção e não fique esticada */
    object-fit: contain;
}

/* ==========================================================================
   Transformations & Animations
   ========================================================================== */
.upward {
    transform: rotate(-90deg);
    font-weight: normal;
    font-size: 9pt;
    max-width: 15px;
    top: -5px;
    position: relative;
}

.zoom:hover {
    transform: scale(1.2);
}

.zoomx2:hover {
    transform: scale(4.0);
}

.magnify:hover {
    transform: scale(5);
    z-index: 1;
    position: relative;
    left: 45px;
    padding: 1px;
    margin: 10px;
}

.magnify2:hover {
    transform: scale(2.5);
    z-index: 1;
    position: relative;
    left: 30px;
}

/* ==========================================================================
   Overlays & Modals
   ========================================================================== */
.view {
    position: fixed;
    width: 320px;
    height: 320px;
    top: 30%;
    transform: translateY(-50%);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: #becbd2;
    border: #ffffff solid 8px;
    border-radius: 50%;
    text-align: center;
    display: none;
    overflow: hidden;
}

.overlay {
    position: fixed;
    top: -25%;
    left: -25%;
    right: 0;
    bottom: 0;
    /* Use as propriedades abaixo em vez de vh/vw para maior compatibilidade */
    width: 125%;
    height: 125%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
}

.div-editavel {
    background-color: white;
    border-radius: 5px;
    border: 1px solid silver !important;
    min-height: 100px;
    /* Altura mínima quando vazia */
    height: auto;
    /* Expande conforme o conteúdo */
    width: 100%;
    /* Ocupa toda a largura do contêiner pai */
    box-sizing: border-box;
    /* Inclui padding e border no cálculo */
    overflow: hidden;
    /* Evita barras de rolagem */
    padding: 8px;
    /* Espaço interno para melhor UX */
    display: block;
    /* Comportamento de bloco */
    resize: vertical;
    /* Opcional: permite redimensionamento vertical manual */
}

.auto-height {
    min-height: 100px;
    /* Altura mínima quando vazia */
    height: auto;
    /* Expande conforme o conteúdo */
    box-sizing: border-box;
    /* Inclui padding e border no cálculo */
    overflow: hidden;
    /* Evita barras de rolagem */
    padding: 8px;
    /* Espaço interno para melhor UX */
    display: block;
    /* Comportamento de bloco */
    resize: vertical;
    /* Opcional: permite redimensionamento vertical manual */
}

/* Garante que imagens se ajustem à largura da div */
.div-editavel img {
    max-width: 100%;
    /* Evita que imagens ultrapassem a largura */
    height: auto;
    /* Mantém proporção */
    display: block;
    /* Evita problemas de alinhamento */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fonte elegante */
    margin: 20px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.toolbar button,
.toolbar select {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.toolbar button:hover,
.toolbar select:hover {
    background-color: #e0e0e0;
}

div[contenteditable] {
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 150px;
    margin-top: 10px;
    border-radius: 4px;
    outline: none;
}

/* Estilos para mobile */
@media (max-width: 600px) {

    .toolbar button,
    .toolbar select {
        padding: 6px 10px;
        font-size: 12px;
    }
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Size Utilities
   ========================================================================== */
.w25 {
    width: 25px !important;
}

.w50 {
    width: 50px !important;
}

.w75 {
    width: 75px !important;
}

.w100 {
    width: 100px !important;
}

.w125 {
    width: 125px !important;
}

.w150 {
    width: 150px !important;
}

.w175 {
    width: 175px !important;
}

.w200 {
    width: 200px !important;
}

.w300 {
    width: 300px !important;
}

.w400 {
    width: 400px !important;
}

.w500 {
    width: 500px !important;
}

.w600 {
    width: 600px !important;
}

.w700 {
    width: 700px !important;
}

.w800 {
    width: 800px !important;
}

.h35 {
    height: 35px !important;
}

.h50 {
    height: 50px !important;
}

.h100 {
    height: 100px !important;
}

.h200 {
    height: 200px !important;
}

.h300 {
    height: 300px !important;
}

.h400 {
    height: 400px !important;
}

.h500 {
    height: 500px !important;
}

.h600 {
    height: 600px !important;
}

.h700 {
    height: 700px !important;
}

.h800 {
    height: 800px !important;
}

.lh35 {
    line-height: 35px !important;
}

.lh50 {
    line-height: 50px !important;
}

.f18 {
    font-size: 18pt;
}

.f16 {
    font-size: 16pt;
}

.f14 {
    font-size: 14pt;
}

.f12 {
    font-size: 12pt;
}

.f10 {
    font-size: 10pt;
}

.f9 {
    font-size: 9pt;
}

.f8 {
    font-size: 8pt;
}

/* ==========================================================================
   Miscellaneous
   ========================================================================== */
.chamela {
    text-align: left;
    font-size: 12pt;
}

.noscroll {
    /* Esconde a barra no Chrome, Safari e Edge */
    -webkit-overflow-scrolling: touch;
    /* Mantém o scroll suave no iOS */
    scrollbar-width: none;
    /* Esconde no Firefox */
    -ms-overflow-style: none;
    /* Esconde no IE/Edge antigo */
}

.noscroll::-webkit-scrollbar {
    display: none;
    /* Esconde no Chrome/Safari/Edge */
}

.chamada_cabecalho {
    margin: 0 auto;
    max-width: 800px;
}

.fadeOutWhite,
.fadeOutWhite a,
.fadeOutWhite td,
.fadeOutWhite div {
    color: white !important;
    background-color: white !important;
}

.results {
    background: #de1919;
    color: white;
}

.results:hover {
    background: #333;
}

.selected {
    background-color: #dcdcdc !important;
}

.min {
    width: 115px;
}

.searchable {
    max-width: 100%;
}

.container-foto-aluno {
    position: relative;
    display: block;
    /* Mudado de inline-block para block para respeitar a coluna */
    width: fit-content;
    margin-bottom: 5px;
}

.foto-aluno-min,
.p-30,
.p-40,
.p-50,
.p-60 {
    border-radius: 10px;
    cursor: pointer;
    display: block;
    max-width: 100%;
    height: auto;

    /* Adiciona a borda branca de 3px */
    border: 3px solid #ffffff;

    /* Opcional: uma sombra leve para a borda não "sumir" em fundos claros */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.faixa-ano-foto {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 153, 0.7);
    /* Azul SOGSA */
    color: #fff;
    text-align: center;
    font-size: 6px;
    /* Reduzi um pouco para colunas estreitas */
    font-weight: bold;
    padding: 2px 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    pointer-events: none;
    text-shadow: 1px 1px 2px #000;
    line-height: 1.2;
    /* Evita que a faixa fique muito alta */
}

.painel-atalhos {
    display: grid;
    /* No celular, ocupa a largura total disponível */
    width: 100%;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    padding: 15px;
    justify-content: center;
}

/* Aplica o limite de largura apenas em Tablets e Desktops */
@media (min-width: 768px) {
    .painel-atalhos {
        max-width: 75% !important;
    }
}

/* ------------------------
   WIDGETS
   ------------------------*/

@media (min-width: 767px) {
    .widgets-stack {
        position: fixed !important;
        top: auto !important;
        /* Isso manda o navegador ignorar qualquer script que tente forçar um 'top' */
        bottom: 20px !important;
        /* Isso trava ele no chão */
        right: 20px !important;
        z-index: 999 !important;

        gap: 15px;
        /* Aumentei o z-index por garantia */
    }
}

/* Desktop */
@media (min-width: 768px) {
    .widgets-stack {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 999;
        gap: 15px;
    }
}

.card-atalho {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 5px;
    text-decoration: none !important;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-atalho:hover {
    background: #f0f7ff;
    border-color: #3498db;
    transform: translateY(-3px);
}

.card-atalho i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #3498db;
}

.card-atalho span {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

/* Estilo para as funções PHP que geram botões internos */
.atalhos-extras {
    margin-bottom: 15px;
}

/* Estilo Base para os Círculos (Comum aos dois) */
.btn-like-circulo,
.btn-ocorrencia-circulo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;

    /* --- Efeito Glossy & 3D --- */
    /* O gradiente branco transparente no topo cria o reflexo de luz */
    background-image: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(0, 0, 0, 0.05) 51%,
            rgba(0, 0, 0, 0.15) 100%);

    /* Sombra interna (inset) no topo dá a impressão de volume */
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.25);

    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Like é Verde */
.btn-like-circulo {
    background-color: #27ae60;
}

.btn-like-circulo:hover {
    background-color: #2ecc71;
    transform: scale(1.1);
    /* No hover, o brilho fica um pouco mais intenso */
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.05) 51%, rgba(0, 0, 0, 0.15) 100%);
}

/* Ocorrência é Vermelho */
.btn-ocorrencia-circulo {
    background-color: #e74c3c;
}

.btn-ocorrencia-circulo:hover {
    background-color: #ff5e4d;
    transform: scale(1.1);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.05) 51%, rgba(0, 0, 0, 0.15) 100%);
}

/* O Número (Badge) em cima do círculo */
.badge-likes {
    position: absolute;
    top: 22px;
    /* Joga para cima */
    right: -12px;
    /* Joga para a direita */
    background-color: #fff;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #27ae60;
    /* Bordinha verde para combinar */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    min-width: 18px;
    text-align: center;
}

.thumbs-down {
    position: absolute;
    top: 4px;
    /* Joga para cima */
    right: -11px;
    /* Joga para a direita */
    background-color: #ff0000;
    background-image: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(0, 0, 0, 0.05) 51%,
            rgba(0, 0, 0, 0.15) 100%);
    color: #ffffff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #ae2727;
    /* Bordinha verde para combinar */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-align: center;
    z-index:100;
}

.thumbs-down:hover {
    transform: scale(1.1);
}

.avisos {
    display: block !important;
    background-color: #ffffff !important;
    width: 210mm !important;
    margin: 0 auto !important;

    /* Zera bordas arredondadas e força ponta seca */
    border-radius: 0 !important;
    border: 1px solid #ccc !important;

    /* FORÇANDO AS MARGENS INTERNAS */
    /* 1º valor: Topo/Base | 2º valor: Esquerda/Direita */
    padding: 5mm 8mm !important;

    /* Garante que o padding EMPURRE o texto para dentro e não aumente a largura da folha */
    box-sizing: border-box !important;

    /* Sombra para efeito de folha */
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1) !important;

    /* Ajuste de texto */
    line-height: 1.5 !important;
    word-wrap: break-word !important;
}

.sogsa-status-bar {
    background: #ffffff;
    padding: 15px;
    /* Aumentado levemente para melhor respiro ao centralizar */
    border-left: 4px solid #16a34a;

    /* Centralização Flexbox */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Centraliza verticalmente os itens de alturas diferentes */
    justify-content: center;
    /* Centraliza horizontalmente o conteúdo no card */
    gap: 30px;
    /* Espaçamento fixo entre as seções */
    text-align: center;
    /* Centraliza o texto internamente nas seções */
}

.sogsa-status-bar.bloqueado {
    border-left-color: #dc2626;
}

/* Garante que os grupos de controle (inputs/botões) também se centralizem */
.status-control-group {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centraliza botões e inputs */
    gap: 8px;
}

/* No Mobile, forçamos o empilhamento centralizado */
@media (max-width: 767px) {
    .sogsa-status-bar {
        flex-direction: column;
        justify-content: center;
    }

    .status-section {
        margin-right: 0 !important;
        /* Remove a margem direita do desktop */
        width: 100%;
    }
}

/* ==========================================================================
   Listagem de Chamada - SOGSA
   ========================================================================== */
.diario-lista {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14pt;
}

.diario-lista td {
    padding: 10px 5px;
    border-bottom: 1px solid #ccc;
    vertical-align: middle;
}

/* Colunas com nomes específicos */
.col-num-aluno {
    width: 85px;
    text-align: right;
    white-space: nowrap;
}

.col-nome-aluno {
    width: auto;
}

.col-acao-check {
    width: 45px;
    text-align: center;
}

/* Classes de Estado */
.linha-inativa {
    color: silver;
}

/* --- ESTRUTURA E CARDS --- */
.chamada-container {
    margin-top: 20px;
}

.chamada-header-comp {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid #b8b8b8;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #e2e8f0;
}

.pl-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    margin-bottom: 12px;
    padding: 15px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pl-card-pendente {
    background: #f9fafb;
    border-style: dashed;
    opacity: 0.8;
}

/* --- TIPOGRAFIA --- */
.pl-info-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pl-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.pl-data-destaque {
    color: #bcbcbc;
    font-size: 12px;
    text-transform: uppercase;
}

/* --- BADGES --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 5px;
}

.status-presencial {
    background: #dcfce7;
    color: #15803d;
}

.status-anp {
    background: #fef9c3;
    color: #854d0e;
}

.status-vazio {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-acao {
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
}

/* --- RESPONSIVIDADE --- */

/* Telas Grandes (Desktop/Tablet) */
@media (min-width: 768px) {
    .flex-row-md {
        display: flex !important;
        align-items: center;
        width: 100%;
    }

    .border-right-md {
        border-right: 1px solid #f0f0f0;
        margin-right: 15px;
    }

    .text-right-md {
        text-align: right !important;
    }

    .col-md-custom-data {
        width: 12%;
    }

    .col-md-custom-info {
        width: 18%;
    }

    .col-md-custom-freq {
        width: 25%;
    }

    .col-md-custom-cont {
        width: 30%;
    }

    .col-md-custom-acao {
        width: 15%;
    }
}

/* Telas Pequenas (Mobile) */
@media (max-width: 767px) {
    .flex-row-md {
        display: block !important;
    }

    .col-sm-12 {
        padding: 0;
    }

    .pl-card {
        padding: 18px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .mobile-mb-15 {
        margin-bottom: 15px;
    }

    .border-right-md {
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .btn-acao {
        width: 48%;
        margin-top: 10px;
    }

    .chamada-header-comp {
        flex-direction: column;
        text-align: center;
    }

    .chamada-header-comp .text-right {
        width: 100%;
        text-align: center !important;
    }
}

/* --- Base Comum para Cartões Flutuantes --- */
.float-card {
    width: 240px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-header {
    background: linear-gradient(90deg, #f8f9fa, #e9ecef);
    color: #333;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.float-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
}

/* --- Seção de Aniversários (Niver) --- */
.niver-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.025);
    transition: all 0.2s ease;
}

.niver-item:hover {
    background: rgba(0, 0, 0, 0.055);
}

.niver-item-hoje {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.10), transparent);
    border-left: 4px solid #dc3545;
}

.niver-name {
    font-size: 13.2px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 148px;
}

.niver-item-hoje .niver-name {
    color: #c82333;
    font-weight: 700;
}

.badge-hoje {
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 700;
    animation: pulse-red 2s infinite;
}

/* --- Seção de Horários --- */
.horario-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 4px solid #adb5bd;
    font-size: 11.5px;
}

.horario-item.is-plan {
    opacity: 0.8;
    border-left-color: #dee2e6;
}

.horario-item span {
    display: block;
    font-size: 9px;
    color: #777;
    font-weight: 700;
    text-transform: uppercase;
}

.horario-turno-header {
    font-size: 10px;
    font-weight: bold;
    color: #666;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 4px 6px;
    border-left: 3px solid #999;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    text-transform: uppercase;
}

/* --- Botões e Helpers --- */
.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-full-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Responsividade */
@media (max-width: 767px) {
    .float-card {
        width: 100%;
        position: relative;
        margin-bottom: 15px;
    }
}


.ticket-list {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ticket-header {
    display: grid;
    grid-template-columns: 80px 140px 1fr 140px 120px 100px;
    background: #f8f9fa;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.ticket-row {
    display: grid;
    grid-template-columns: 80px 140px 1fr 140px 120px 100px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-col {
    padding: 12px 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Ajustes responsivos opcionais */
@media (max-width: 992px) {
    .ticket-header, .ticket-row {
        grid-template-columns: 70px 1fr 120px 100px;
    }
    
    .col-user, .col-updated {
        display: none;
    }
}

.div-editavel img {
    max-width: 100%;
    transition: outline 0.2s ease;
}

.div-editavel img:hover {
    outline: 2px dashed #999;
    cursor: se-resize; /* Muda o cursor para setas de redimensionamento */
}

.auto-height {
    resize: none;
    overflow: hidden;
    min-height: 50px; /* Altura mínima inicial */
    line-height: 1.5;
}