@import url(
    "https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
);

:root {
    /* Identidade oficial Vertiq */
    --vertiq-green: #8bc53f;
    --vertiq-green-dark: #2e7d32;
    --vertiq-navy: #0b1320;
    --vertiq-slate: #1d2633;
    --vertiq-light: #f2f4f7;

    /* Cores funcionais */
    --vertiq-white: #ffffff;
    --vertiq-border: #dfe3e8;
    --vertiq-muted: #68717d;
    --vertiq-danger: #c62828;
    --vertiq-warning: #f9a825;
    --vertiq-info: #1565c0;

    /* Estrutura */
    --vertiq-navbar-height: 64px;
    --vertiq-radius: 10px;
    --vertiq-shadow: 0 8px 24px rgba(11, 19, 32, 0.10);
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: var(--vertiq-light);
    color: var(--vertiq-slate);

    font-family:
        "Poppins",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 0.925rem;
}

/* =========================================================
   Navbar principal
========================================================= */

.vertiq-navbar {
    min-height: var(--vertiq-navbar-height);

    background:
        linear-gradient(
            105deg,
            var(--vertiq-navy) 0%,
            var(--vertiq-slate) 100%
        );

    border-bottom: 3px solid var(--vertiq-green);

    box-shadow:
        0 4px 16px rgba(11, 19, 32, 0.22);

    z-index: 1040;
}

.vertiq-navbar .container-fluid {
    min-height: var(--vertiq-navbar-height);
}

.vertiq-navbar .navbar-brand {
    margin-right: 1.5rem;
    color: var(--vertiq-white);
}

.vertiq-navbar .navbar-brand:hover,
.vertiq-navbar .navbar-brand:focus {
    color: var(--vertiq-white);
}

/* =========================================================
   Marca temporária
========================================================= */

.vertiq-brand-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    color: var(--vertiq-navy);

    background:
        linear-gradient(
            145deg,
            var(--vertiq-green),
            var(--vertiq-green-dark)
        );

    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;

    box-shadow:
        0 4px 12px rgba(139, 197, 63, 0.28);
}

.vertiq-brand-name {
    color: var(--vertiq-white);

    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

/* =========================================================
   Links da navegação
========================================================= */

.vertiq-navbar .navbar-nav {
    gap: 0.15rem;
}

.vertiq-navbar .nav-link {
    padding: 0.55rem 0.7rem;

    border-radius: 7px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 0.88rem;
    font-weight: 500;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.vertiq-navbar .nav-link:hover,
.vertiq-navbar .nav-link:focus,
.vertiq-navbar .nav-link.show {
    color: var(--vertiq-white);

    background-color:
        rgba(139, 197, 63, 0.16);
}

.vertiq-navbar .nav-link.active {
    color: var(--vertiq-white);

    background-color:
        var(--vertiq-green-dark);
}

/* =========================================================
   Dropdown principal
========================================================= */

.vertiq-navbar .dropdown-menu {
    min-width: 220px;

    margin-top: 0.6rem;
    padding: 0.45rem;

    border:
        1px solid rgba(11, 19, 32, 0.10);

    border-radius:
        var(--vertiq-radius);

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

    box-shadow:
        var(--vertiq-shadow);
}

.vertiq-navbar .dropdown-item {
    padding: 0.65rem 0.75rem;

    border-radius: 7px;

    color:
        var(--vertiq-slate);

    font-size: 0.875rem;
    font-weight: 400;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.vertiq-navbar .dropdown-item:hover,
.vertiq-navbar .dropdown-item:focus {
    color:
        var(--vertiq-navy);

    background-color:
        rgba(139, 197, 63, 0.14);

    padding-left: 0.95rem;
}

.vertiq-navbar .dropdown-divider {
    border-color:
        var(--vertiq-border);
}

/* =========================================================
   Menu com terceiro nível
========================================================= */

.dropdown-submenu {
    position: relative;
}

/*
Botões Cadastros, Movimentos e Relatórios
dentro de cada módulo.
*/

.dropdown-submenu > .submenu-toggle {
    position: relative;

    display: block;

    width: 100%;

    padding: 0.65rem 2.4rem 0.65rem 0.75rem;

    border: 0;
    border-radius: 7px;

    background-color: transparent;

    color: var(--vertiq-slate);

    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-submenu > .submenu-toggle:hover,
.dropdown-submenu > .submenu-toggle:focus {
    color:
        var(--vertiq-navy);

    background-color:
        rgba(139, 197, 63, 0.14);

    padding-left: 0.95rem;

    outline: none;
}

/*
Seta lateral indicando que existe outro nível.
*/

.dropdown-submenu > .submenu-toggle::after {
    content: "";

    position: absolute;

    top: 50%;
    right: 0.9rem;

    width: 7px;
    height: 7px;

    border-top:
        2px solid currentColor;

    border-right:
        2px solid currentColor;

    transform:
        translateY(-50%)
        rotate(45deg);

    transition:
        transform 0.2s ease;
}

/*
O Bootstrap aplica display:none em dropdown-menu.
O submenu somente será exibido quando o JavaScript
adicionar a classe submenu-open.
*/

.dropdown-submenu > .vertiq-menu-level-2 {
    position: absolute;

    top: -0.45rem;
    left: calc(100% + 0.2rem);

    display: none;

    min-width: 230px;

    margin: 0;

    z-index: 1060;
}

.dropdown-submenu.submenu-open
> .vertiq-menu-level-2 {
    display: block !important;
}

.dropdown-submenu.submenu-open
> .submenu-toggle {
    color:
        var(--vertiq-navy);

    background-color:
        rgba(139, 197, 63, 0.14);
}

/*
Evita que o submenu lateral fique escondido
por limitações de área do menu principal.
*/

.vertiq-menu-level-1 {
    overflow: visible;
}

.vertiq-menu-level-2 {
    overflow: visible;
}

/* =========================================================
   Menu do usuário
========================================================= */

.vertiq-user-menu {
    max-width: 220px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

/* =========================================================
   Botão mobile
========================================================= */

.vertiq-navbar .navbar-toggler {
    border-color:
        rgba(139, 197, 63, 0.65);

    box-shadow: none;
}

.vertiq-navbar .navbar-toggler:focus {
    box-shadow:
        0 0 0 0.2rem
        rgba(139, 197, 63, 0.22);
}

/* =========================================================
   Conteúdo
========================================================= */

.main-content {
    flex: 1 0 auto;

    padding-top:
        calc(
            var(--vertiq-navbar-height) + 24px
        );

    padding-bottom: 28px;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    color:
        var(--vertiq-navy);

    font-weight: 600;
}

/* =========================================================
   Cards
========================================================= */

.card {
    border-color:
        var(--vertiq-border);

    border-radius:
        var(--vertiq-radius);
}

.card.shadow-sm {
    box-shadow:
        0 5px 18px rgba(11, 19, 32, 0.08)
        !important;
}

.card-header {
    border-bottom-color:
        var(--vertiq-border);

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

    color:
        var(--vertiq-navy);

    font-weight: 600;
}

/* =========================================================
   Botões oficiais
========================================================= */

.btn-primary {
    --bs-btn-color:
        var(--vertiq-white);

    --bs-btn-bg:
        var(--vertiq-green-dark);

    --bs-btn-border-color:
        var(--vertiq-green-dark);

    --bs-btn-hover-color:
        var(--vertiq-white);

    --bs-btn-hover-bg:
        #256c2a;

    --bs-btn-hover-border-color:
        #256c2a;

    --bs-btn-focus-shadow-rgb:
        46, 125, 50;

    --bs-btn-active-color:
        var(--vertiq-white);

    --bs-btn-active-bg:
        #205f25;

    --bs-btn-active-border-color:
        #205f25;
}

.btn-success {
    --bs-btn-color:
        var(--vertiq-navy);

    --bs-btn-bg:
        var(--vertiq-green);

    --bs-btn-border-color:
        var(--vertiq-green);

    --bs-btn-hover-color:
        var(--vertiq-white);

    --bs-btn-hover-bg:
        var(--vertiq-green-dark);

    --bs-btn-hover-border-color:
        var(--vertiq-green-dark);
}

.btn-outline-primary {
    --bs-btn-color:
        var(--vertiq-green-dark);

    --bs-btn-border-color:
        var(--vertiq-green-dark);

    --bs-btn-hover-color:
        var(--vertiq-white);

    --bs-btn-hover-bg:
        var(--vertiq-green-dark);

    --bs-btn-hover-border-color:
        var(--vertiq-green-dark);
}

/* =========================================================
   Links
========================================================= */

a {
    color:
        var(--vertiq-green-dark);
}

a:hover {
    color:
        var(--vertiq-navy);
}

/* =========================================================
   Campos
========================================================= */

.form-control:focus,
.form-select:focus {
    border-color:
        var(--vertiq-green);

    box-shadow:
        0 0 0 0.2rem
        rgba(139, 197, 63, 0.18);
}

/* =========================================================
   Mensagens
========================================================= */

.messages-container {
    margin-bottom: 1rem;
}

.alert {
    border-radius:
        var(--vertiq-radius);
}

/* =========================================================
   Rodapé
========================================================= */

.vertiq-footer {
    flex-shrink: 0;

    padding: 14px 0;

    border-top:
        1px solid var(--vertiq-border);

    border-bottom:
        3px solid var(--vertiq-green);

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

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 0.8rem;
}

.vertiq-footer span:first-child {
    color:
        var(--vertiq-green);

    font-weight: 600;
}

/* =========================================================
   Tablets e celulares
========================================================= */

@media (max-width: 1199.98px) {
    .vertiq-navbar .navbar-collapse {
        max-height:
            calc(
                100vh - var(--vertiq-navbar-height)
            );

        margin-top: 0.55rem;
        padding: 0.7rem;

        overflow-y: auto;
        overflow-x: hidden;

        border-top:
            1px solid rgba(255, 255, 255, 0.12);

        background-color:
            var(--vertiq-navy);
    }

    .vertiq-navbar .navbar-nav {
        gap: 0.2rem;
    }

    .vertiq-navbar .nav-link {
        padding:
            0.72rem 0.8rem;
    }

    .vertiq-navbar .dropdown-menu {
        position: static;

        width: 100%;
        min-width: 100%;

        margin:
            0.25rem 0 0.45rem;

        padding: 0.35rem;

        border: 0;

        box-shadow: none;

        background-color:
            rgba(255, 255, 255, 0.06);
    }

    .vertiq-navbar .dropdown-item {
        color:
            rgba(255, 255, 255, 0.84);
    }

    .vertiq-navbar .dropdown-item:hover,
    .vertiq-navbar .dropdown-item:focus {
        color:
            var(--vertiq-white);

        background-color:
            rgba(139, 197, 63, 0.14);
    }

    .vertiq-navbar .dropdown-divider {
        border-color:
            rgba(255, 255, 255, 0.14);
    }

    /*
    Terceiro nível no tablet e celular.
    Em vez de abrir para o lado, abre para baixo.
    */

    .dropdown-submenu {
        width: 100%;
    }

    .dropdown-submenu > .submenu-toggle {
        color:
            rgba(255, 255, 255, 0.84);
    }

    .dropdown-submenu > .submenu-toggle:hover,
    .dropdown-submenu > .submenu-toggle:focus {
        color:
            var(--vertiq-white);

        background-color:
            rgba(139, 197, 63, 0.14);
    }

    .dropdown-submenu > .submenu-toggle::after {
        transform:
            translateY(-65%)
            rotate(135deg);
    }

    .dropdown-submenu.submenu-open
    > .submenu-toggle::after {
        transform:
            translateY(-35%)
            rotate(-45deg);
    }

    .dropdown-submenu.submenu-open
    > .submenu-toggle {
        color:
            var(--vertiq-white);

        background-color:
            rgba(139, 197, 63, 0.14);
    }

    .dropdown-submenu
    > .vertiq-menu-level-2 {
        position: static;

        display: none;

        width: 100%;
        min-width: 100%;

        margin:
            0.2rem 0 0.35rem;

        padding:
            0.3rem 0 0.3rem 0.7rem;

        border-left:
            2px solid var(--vertiq-green);

        background-color:
            rgba(255, 255, 255, 0.05);
    }

    .dropdown-submenu.submenu-open
    > .vertiq-menu-level-2 {
        display: block !important;
    }

    .vertiq-menu-level-2
    .dropdown-item {
        padding-left: 0.85rem;
    }

    .vertiq-menu-level-2
    .dropdown-item:hover,
    .vertiq-menu-level-2
    .dropdown-item:focus {
        padding-left: 1.05rem;
    }

    .vertiq-user-menu {
        max-width: 100%;
    }
}

/* =========================================================
   Celulares menores
========================================================= */

@media (max-width: 575.98px) {
    :root {
        --vertiq-navbar-height: 60px;
    }

    body {
        font-size: 0.875rem;
    }

    .vertiq-brand-symbol {
        width: 34px;
        height: 34px;

        font-size: 1.2rem;
    }

    .vertiq-brand-name {
        font-size: 1.08rem;
    }

    .main-content {
        padding-top:
            calc(
                var(--vertiq-navbar-height) + 18px
            );
    }
}