
/* ==========================================
   LAEF — HORÁRIOS DOS MONITORES
   Identidade editorial
   Desktop, tablet e celular
========================================== */


/* ==========================================
   BANNER PRINCIPAL
========================================== */

.monitores-hero {
    width: 100%;
    min-width: 0;

    background: var(--navy);
    color: var(--white);

    padding: 105px 0 115px;

    position: relative;
    overflow: hidden;
}

.monitores-hero .container {
    min-width: 0;
    max-width: 100%;
}

.monitores-hero .section-index {
    display: block;
    color: var(--orange-light);
    line-height: 1.6;
}

.monitores-hero h1 {
    font-family: var(--font-editorial);
    font-size: clamp(45px, 6vw, 76px);
    font-weight: 400;
    line-height: 1.1;

    max-width: 100%;
    margin: 28px 0;

    position: relative;
    z-index: 1;

    white-space: normal;
    overflow-wrap: break-word;
}

.monitores-hero h1 em {
    color: var(--blue-light);
}

.monitores-hero p {
    width: 100%;
    max-width: 520px;

    color: #c1ccd7;
    font-size: 14px;
    line-height: 1.9;

    overflow-wrap: break-word;
}


/* ==========================================
   CONTEÚDO PRINCIPAL
========================================== */

.monitores-content {
    width: 100%;
    min-width: 0;

    padding: 100px 0;
    background: var(--paper);
}

.monitores-content .container {
    min-width: 0;
    max-width: 100%;
}

.monitores-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 35px;
    margin-bottom: 45px;
}

.monitores-heading > div {
    min-width: 0;
}

.monitores-heading h2 {
    font-family: var(--font-editorial);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.25;

    margin-top: 18px;

    overflow-wrap: break-word;
}

.monitores-heading > p {
    max-width: 310px;

    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}


/* ==========================================
   FILTROS
========================================== */

.monitores-filtros {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 15px;
    margin-bottom: 22px;
}

.monitores-filtros label {
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.monitores-filtros select {
    min-width: 150px;
    max-width: 100%;
    min-height: 44px;

    padding: 11px 38px 11px 14px;

    border: 1px solid var(--border);
    border-radius: 0;

    background: var(--white);
    color: var(--navy);

    font: inherit;
    font-size: 12px;

    cursor: pointer;
    transition: border-color .2s ease;
}

.monitores-filtros select:hover {
    border-color: var(--blue);
}

.monitores-filtros select:focus {
    outline: none;
    border-color: var(--orange);

    box-shadow: 0 0 0 3px rgba(204, 88, 44, .12);
}


/* ==========================================
   CONTAINER DA TABELA
========================================== */

.monitores-tabela-container {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;

    background: var(--white);
    border: 1px solid var(--border);

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--paper);
}


/* BARRA DE ROLAGEM */

.monitores-tabela-container::-webkit-scrollbar {
    height: 6px;
}

.monitores-tabela-container::-webkit-scrollbar-track {
    background: var(--paper);
}

.monitores-tabela-container::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 4px;
}


/* ==========================================
   TABELA DE HORÁRIOS
========================================== */

.monitores-tabela {
    width: 100%;
    min-width: 850px;

    border-collapse: collapse;
    text-align: left;
}

.monitores-tabela th {
    background: var(--navy);
    color: var(--white);

    padding: 19px 16px;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .7px;

    text-transform: uppercase;
    white-space: nowrap;
}

.monitores-tabela th:first-child {
    background: var(--orange);
    min-width: 165px;
}

.monitores-tabela td {
    padding: 22px 16px;

    border-bottom: 1px solid var(--border);

    font-size: 12px;
    color: var(--text-muted);

    vertical-align: middle;
    white-space: nowrap;
}

.monitores-tabela tbody tr:last-child td {
    border-bottom: none;
}

.monitores-tabela tbody tr:hover {
    background: #f8f6f2;
}

.monitores-tabela td:first-child {
    color: var(--navy);
    font-weight: 700;
}

.monitores-tabela td[colspan],
.monitores-tabela .monitores-estado {
    padding: 45px 20px;

    text-align: center;
    font-weight: 400;
    white-space: normal;

    color: var(--text-muted);
}


/* ==========================================
   DISPONIBILIDADE DOS MONITORES
========================================== */

.monitores-tabela td.horario-disponivel {
    background: #e7edf1;
    color: var(--navy);

    font-weight: 700;

    border-left: 2px solid var(--orange);
}

.monitores-tabela td.horario-vazio {
    color: #a1a8ae;
    text-align: center;
}

.monitores-tabela tbody tr:hover td.horario-disponivel {
    background: #dce7ee;
}


/* ==========================================
   TABELA COM DIA ESPECÍFICO

   Classe utilizada pelo JavaScript quando
   apenas um dia da semana estiver selecionado.
========================================== */

.monitores-tabela.filtro-ativo {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.monitores-tabela.filtro-ativo th:first-child {
    width: 50%;
    min-width: 0;
}

.monitores-tabela.filtro-ativo td {
    white-space: normal;
    overflow-wrap: break-word;
}

.monitores-tabela th[hidden],
.monitores-tabela td[hidden],
.monitores-tabela tr[hidden] {
    display: none !important;
}


/* ==========================================
   LEGENDA
========================================== */

.monitores-legenda {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 10px;
    padding-top: 20px;

    color: var(--gray);
    font-size: 11px;
    line-height: 1.7;
}


/* ==========================================
   TABLETS
========================================== */

@media (max-width: 1000px) {

    .monitores-hero {
        padding: 85px 0 95px;
    }

    .monitores-content {
        padding: 80px 0;
    }

    .monitores-tabela {
        min-width: 800px;
    }

}


/* ==========================================
   TABLETS MENORES E CELULARES
========================================== */

@media (max-width: 768px) {

    /* BANNER */

    .monitores-hero {
        padding: 60px 0 65px;
    }

    .monitores-hero .section-index {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .monitores-hero h1 {
        font-size: clamp(36px, 7vw, 50px);
        line-height: 1.15;

        margin: 20px 0;
    }

    .monitores-hero p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* CONTEÚDO */

    .monitores-content {
        padding: 55px 0;
    }

    .monitores-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
        margin-bottom: 30px;
    }

    .monitores-heading h2 {
        font-size: clamp(30px, 6vw, 38px);
        margin-top: 12px;
    }


    /* FILTROS */

    .monitores-filtros {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
        margin-bottom: 20px;
    }

    .monitores-filtros select {
        width: 100%;
        min-width: 0;

        /* Evita zoom automático do Safari */
        font-size: 16px;

        min-height: 46px;
    }


    /* TABELA */

    .monitores-tabela-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow-x: auto;

        border: 1px solid var(--border);
        background: var(--white);
    }

    .monitores-tabela {
        min-width: 750px;
    }

    .monitores-tabela th {
        padding: 16px 12px;
    }

    .monitores-tabela td {
        padding: 18px 12px;
    }


    /* COLUNA DOS NOMES FIXA */

    .monitores-tabela th:first-child {
        position: sticky;
        left: 0;

        z-index: 3;
        min-width: 130px;
    }

    .monitores-tabela td:first-child:not([colspan]) {
        position: sticky;
        left: 0;

        z-index: 2;

        background: var(--white);

        box-shadow: 1px 0 0 var(--border);
    }


    /* DIA ESPECÍFICO */

    .monitores-tabela.filtro-ativo {
        min-width: 0;
    }

    .monitores-tabela.filtro-ativo th:first-child {
        position: static;
        min-width: 0;
    }

    .monitores-tabela.filtro-ativo td:first-child {
        position: static;
        box-shadow: none;
    }


    /* LEGENDA */

    .monitores-legenda {
        font-size: 11px;
        line-height: 1.7;
    }

}


/* ==========================================
   CELULARES
========================================== */

@media (max-width: 600px) {

    .monitores-hero {
        padding: 50px 0 55px;
    }

    .monitores-hero h1 {
        font-size: 38px;
    }

    .monitores-content {
        padding: 45px 0;
    }

    .monitores-content .container {
        width: 90%;
    }

    .monitores-heading h2 {
        font-size: 32px;
    }

    .monitores-tabela {
        min-width: 720px;
    }

    .monitores-tabela th {
        padding: 15px 12px;
        font-size: 10px;
    }

    .monitores-tabela td {
        padding: 18px 12px;
        font-size: 12px;
    }

    .monitores-tabela.filtro-ativo {
        min-width: 0;
    }

}


/* ==========================================
   CELULARES PEQUENOS
========================================== */

@media (max-width: 400px) {

    .monitores-hero {
        padding: 40px 0 45px;
    }

    .monitores-hero h1 {
        font-size: 33px;
    }

    .monitores-hero p {
        font-size: 13px;
    }

    .monitores-heading h2 {
        font-size: 28px;
    }

    .monitores-heading {
        margin-bottom: 25px;
    }

    .monitores-tabela.filtro-ativo th,
    .monitores-tabela.filtro-ativo td {
        padding: 16px 10px;
    }

}


/* ==========================================
   ACESSIBILIDADE
========================================== */

@media (prefers-reduced-motion: reduce) {

    .monitores-filtros select {
        transition: none;
    }

}
