﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.login {
    background-color: #f5f5f5;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
}

.vh-100 {
    height: 100vh !important;
}

/*NAV BAR*/

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e7e9ee;
    padding: 0 12px 0 0;
    height: 64px;
}

.brand {
    height: 34px;
}

.nav-tiles {
    margin-left: 12px;
}

.nav-tile {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-left: 1px solid #eef0f4;
    border-right: 1px solid #eef0f4;
    background: #ffffff;
    cursor: default;
    transition: background .15s ease, color .15s ease, filter .15s ease;
}

    .nav-tile .mud-icon-root {
        color: #6b7280;
        font-size: 26px;
    }

/* hover: ícone preto */
.nav-tile:hover {
    background: #f2f4f8;
}

    .nav-tile:hover .mud-icon-root {
        color: #000000;
    }

/* engrenagem clicável */
.nav-tile.gear {
    cursor: pointer;
}

    .nav-tile.gear.active {
        background: #2c313a;
    }

        .nav-tile.gear.active .mud-icon-root {
            color: #ffffff;
        }

.avatar {
    background: #c5c9d3;
    color: #fff;
}

/* ----- Megamenu (painel preto) ----- */
.mega-backdrop {
    position: fixed;
    inset: 64px 0 0 0; /* abaixo do appbar */
    background: transparent;
    z-index: 1000;
}

.mega-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 1001;
    background: #2c313a;
    color: #fff;
    padding: 24px 28px 36px;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    height: 100%;
}


.mega-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    gap: 24px;
}

.mega-col {
    text-align: center;
}

.mega-col header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ff9f45;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

    .mega-col header .mud-icon-root {
        font-size: 40px;
        color: #ff9f45;
    }

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col li {
    margin: 8px 0;
}

.mega-col a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

    .mega-col a:hover {
        text-decoration: underline;
    }

.mega-col.disabled {
    opacity: .35;
    pointer-events: none;
}


.maincontent {
    padding-top: 64px !important;
    padding-right: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 16px !important;
}

/* Borda vertical entre as colunas do HEADER */
.custom-grid .mud-table-head .mud-table-cell {
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

/* Tira a borda da última coluna pra não ficar dupla na borda externa */
.custom-grid .mud-table-head .mud-table-cell:last-child {
    border-right: none;
}

.custom-grid {
    --mud-palette-table-striped: rgba(0, 0, 0, 0.05);
}

.detro-custom-grid {
    --mud-palette-table-striped: rgba(0, 0, 0, 0.05);
}

/* Remove o fundo azul do preenchimento automático do Chrome/Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important; /* Muda o fundo para branco */
    -webkit-text-fill-color: #333 !important; /* Mantém a cor do texto */
    transition: background-color 5000s ease-in-out 0s; /* Evita que o fundo mude */
}