﻿/* ===============================
   🎨 ESTILOS PARA A TELA DE EVENTOS
   =============================== */

.evento-container {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px 64px 16px;
    box-sizing: border-box;
    min-height: calc(100vh - 104px);
    background-color: #f9f9f9;
    overflow-y: auto;
}

.evento-card {
    width: 100%;
    max-width: 1200px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.evento-header {
    color: white;
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    position: relative;
}

.evento-titulo {
    font-size: 2.0rem;
    font-weight: 700;
    width: 100%;
}

.evento-local {
    font-size: 1.5rem;
    opacity: 0.85;
    width: 100%;
}

.evento-botao-pos {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    z-index: 10;
}

.evento-mobile-bottom-space {
    height: 0;
}

.evento-mobile-bottom-space-two {
    height: 0;
}

.grid-template-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background-color: #f1f5f9;
}

.evento-info-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease;
}

    .evento-info-card:hover {
        transform: scale(1.02);
        border-color: #3b82f6;
    }

.evento-info-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.evento-info-value {
    font-size: 1.75rem;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

.nao-gerado {
    color: #4169E1;
}

.imprimir-color {
    color: #4169E1;
}

.titulo-tabela {
    background-color: #0284c7;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 1rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    margin: 0 0 0.5rem 0;
}

.mud-table {
    font-size: 1.05rem;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin: 0;
}

    .mud-table thead th {
        background-color: white;
        color: black;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .mud-table tbody tr:hover {
        background-color: #f1f5f9;
    }

    .mud-table td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        color: #1e293b;
    }

.mud-icon-button {
    min-width: 40px;
    font-size: 1.3rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    transition: 0.2s ease;
}

    .mud-icon-button:hover {
        transform: scale(1.05);
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    }

.nao-autorizado-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
}

.mensagem-nao-autorizado {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acoes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.mud-table th:last-child,
.mud-table td:last-child {
    text-align: center;
    vertical-align: middle;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .evento-header {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    /* Remove o espaço lateral que o MudTable cria no modo card */
    .mud-table-container,
    .mud-table {
        overflow-x: hidden !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }

        /* Faz cada linha ocupar 100% sem criar recorte lateral */
        .mud-table tr {
            width: 100% !important;
            margin: 0 !important;
        }

        .mud-table td {
            width: 100% !important;
            box-sizing: border-box;
        }

        /* Espaçamento só no último card */
        .mud-table tr.last-row {
            padding-bottom: 120px !important;
            background-clip: padding-box;
        }

    .evento-titulo {
        font-size: 1.6rem;
    }

    .evento-local {
        font-size: 1.1rem;
    }

    .evento-mobile-bottom-space {
        height: 50px;
    }

    .evento-mobile-bottom-space-two {
        height: 20px;
    }

    .evento-botao-pos {
        position: static;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .grid-template-3 {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .evento-info-card {
        padding: 1rem;
    }

    .mud-table {
        font-size: 0.95rem;
        margin: 0 0.5rem;
    }

        .mud-table td,
        .mud-table th {
            padding: 0.5rem;
        }
}

/* 📱 MOBILE MODELO ANTIGO */
/*@media (max-width: 768px) {
    .evento-header {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .last-row {
        padding-bottom: 50px !important;
        background-clip: padding-box;
    }

    .evento-titulo {
        font-size: 1.6rem;
    }

    .evento-local {
        font-size: 1.1rem;
    }

    .evento-botao-pos {
        position: static;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .grid-template-3 {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .evento-info-card {
        padding: 1rem;
    }

    .mud-table {
        margin: 0 0.5rem;
        font-size: 0.95rem;
    }

        .mud-table td,
        .mud-table th {
            padding: 0.5rem;
        }
}*/

/* 💻 1366x768 notebooks */
@media (min-width: 769px) and (max-width: 1366px) {
    .evento-header {
        padding: 2.5rem 1.25rem;
    }

    .grid-template-3 {
        grid-template-columns: repeat(3, 1fr);
        padding: 1.25rem 1.5rem;
    }

    .evento-info-value {
        font-size: 1.5rem;
    }
}

/* 🖥️ 1920x1080 desktop */
@media (min-width: 1367px) and (max-width: 1439px) {
    .evento-header {
        padding: 3rem 2rem;
    }

    .grid-template-3 {
        padding: 1.5rem 2rem;
    }
}

/* 🖥️ 2K+ */
@media (min-width: 1440px) {
    .evento-header {
        padding: 3.5rem 2.5rem;
    }

    .evento-titulo {
        font-size: 2.4rem;
    }

    .evento-local {
        font-size: 1.7rem;
    }

    .evento-info-value {
        font-size: 1.9rem;
    }

    .mud-table td,
    .mud-table th {
        font-size: 1.1rem;
        padding: 1rem;
    }
}
