:root {
    --portal-navy-950: #061d31;
    --portal-navy-900: #082b47;
    --portal-navy-800: #0c3a5b;

    --portal-gold-600: #c79242;
    --portal-gold-500: #d8a64f;
    --portal-gold-300: #f0ca83;

    --portal-ink: #10243b;
    --portal-muted: #6b7684;
    --portal-line: #d5dbe1;

    --portal-white: #ffffff;
    --portal-page: #f3f5f7;

    --portal-green: #21875b;
    --portal-green-bg: #e5f4ec;

    --portal-red: #a63f45;
    --portal-red-bg: #fbe9ea;

    --portal-warning: #8c621e;
    --portal-warning-bg: #fff3dc;

    --portal-header-height: 72px;

    --portal-shadow:
        0 18px 52px rgba(16, 36, 59, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    color-scheme: light;
}

body {
    margin: 0;

    color: var(--portal-ink);

    font-family:
        "Rajdhani",
        Arial,
        sans-serif;

    font-weight: 400;

    -webkit-font-smoothing: antialiased;
}

.login-hero-kicker,
.login-hero-content h1,
.login-eyebrow,
.login-card-heading h2,
.login-field label,
.login-submit {
    font-family:
        "Oxanium",
        Arial,
        sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid rgba(216, 166, 79, 0.55);
    outline-offset: 3px;
}

/*
 * PÁGINA DE LOGIN
 */

.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--portal-page);
}

/*
 * Cabeçalho superior
 */

.login-header {
    position: relative;
    z-index: 20;

    width: 100%;
    min-height: var(--portal-header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        8px clamp(24px, 3.5vw, 60px);

    background: rgba(255, 255, 255, 0.98);

    border-bottom:
        1px solid rgba(16, 36, 59, 0.15);

    box-shadow:
        0 3px 12px rgba(7, 28, 46, 0.07);
}

.login-header-logo {
    width: clamp(190px, 15vw, 245px);
    height: 54px;

    display: flex;
    align-items: center;
}

.login-header-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: left center;
}

.back-to-site {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--portal-navy-900);

    font-size: 0.93rem;
    font-weight: 500;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-to-site svg {
    width: 20px;
    height: 20px;
}

.back-to-site:hover {
    color: var(--portal-gold-600);
    transform: translateX(-3px);
}

/*
 * Divisão principal
 */

.login-layout {
    min-height:
        calc(100vh - var(--portal-header-height));

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(560px, 1fr);
}

/*
 * Área esquerda com o vídeo
 */

.login-hero {
    position: relative;

    min-height: 650px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    overflow: hidden;
    isolation: isolate;

    background: var(--portal-navy-950);
}

.login-hero video {
    position: absolute;
    inset: 0;
    z-index: -3;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(180deg,
            rgba(3, 18, 31, 0.02) 15%,
            rgba(3, 18, 31, 0.22) 48%,
            rgba(3, 18, 31, 0.96) 100%),
        linear-gradient(90deg,
            rgba(4, 24, 40, 0.08),
            rgba(4, 24, 40, 0.25));
}

.login-hero-content {
    width: min(620px, 84%);

    margin-bottom:
        clamp(8px, 1.2vh, 14px);

    color: var(--portal-white);
    text-align: center;

    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.42);
}

.login-hero-kicker {
    margin: 0 0 11px;

    color: var(--portal-gold-300);

    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.login-hero-content h1 {
    margin: 0;

    color: var(--portal-white);

    font-size:
        clamp(2rem, 3vw, 3.1rem);

    font-weight: 600;
    line-height: 1.15;

    letter-spacing: 0.015em;
}

.login-gold-line {
    width: 58px;
    height: 3px;

    display: block;

    margin: 22px auto 0;

    background: var(--portal-gold-500);
    border-radius: 999px;
}

.login-hero-content>p:last-child {
    max-width: 520px;

    margin: 20px auto 0;

    color: rgba(255, 255, 255, 0.82);

    font-size:
        clamp(1rem, 1.3vw, 1.15rem);

    line-height: 1.65;
}

/*
 * Área direita
 */

.login-form-area {
    min-height: 650px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 24px;

    padding:
        48px clamp(30px, 6vw, 88px) 28px;

    background:
        radial-gradient(circle at 100% 0%,
            rgba(216, 166, 79, 0.08),
            transparent 34%),
        linear-gradient(145deg,
            #fbfcfd,
            #eff2f5);
}

/*
 * Card de login
 */

.login-card {
    width: min(590px, 100%);

    padding:
        clamp(34px, 4vw, 48px);

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid rgba(16, 36, 59, 0.11);

    border-radius: 17px;

    box-shadow: var(--portal-shadow);
}

.login-card-heading {
    margin-bottom: 30px;
    text-align: center;
}

.login-eyebrow {
    margin: 0 0 12px;

    color: var(--portal-gold-600);

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.login-card-heading h2 {
    margin: 0;

    color: var(--portal-navy-950);

    font-size:
        clamp(2rem, 3vw, 2.75rem);

    font-weight: 600;
    line-height: 1.12;
}

.login-card-heading>p:last-child {
    margin: 11px 0 0;

    color: var(--portal-muted);

    font-size: 0.96rem;
    line-height: 1.5;
}

/*
 * Mensagens de retorno
 */

.login-alert {
    margin-bottom: 19px;
    padding: 12px 15px;

    color: var(--portal-navy-900);
    background: #eaf2f8;

    border: 1px solid #c8dbe8;
    border-radius: 9px;

    font-size: 0.82rem;
    line-height: 1.45;
}

.login-alert--error {
    color: var(--portal-red);
    background: var(--portal-red-bg);
    border-color: #efc6c9;
}

.login-alert--success {
    color: var(--portal-green);
    background: var(--portal-green-bg);
    border-color: #b9dfcc;
}

.login-alert--warning {
    color: var(--portal-warning);
    background: var(--portal-warning-bg);
    border-color: #efd39e;
}

/*
 * Formulário
 */

.login-form {
    display: grid;
    gap: 21px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: var(--portal-ink);

    font-size: 0.87rem;
    font-weight: 600;
}

.login-input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 17px;

    width: 21px;
    height: 21px;

    color: #87919c;

    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    height: 56px;

    padding:
        0 50px;

    color: var(--portal-ink);
    background: var(--portal-white);

    border:
        1px solid #cfd5db;

    border-radius: 8px;
    outline: none;

    font-size: 0.94rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-input-wrapper input::placeholder {
    color: #9ba3ac;
}

.login-input-wrapper input:hover {
    border-color: #b5bdc5;
}

.login-input-wrapper input:focus {
    border-color: var(--portal-gold-500);

    box-shadow:
        0 0 0 4px rgba(216, 166, 79, 0.13);
}

/*
 * Mostrar e ocultar senha
 */

.password-toggle {
    position: absolute;
    right: 9px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    padding: 0;

    color: #7e8893;
    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.password-toggle:hover {
    color: var(--portal-navy-900);
    background: #f1f3f5;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

/*
 * Lembrar e recuperar senha
 */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: -2px;

    font-size: 0.81rem;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--portal-muted);

    cursor: pointer;
}

.remember-option input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--portal-navy-900);
}

.login-options>a {
    color: var(--portal-navy-800);

    font-weight: 500;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-options>a:hover {
    color: var(--portal-gold-600);
}

/*
 * Botão entrar
 */

.login-submit {
    min-height: 60px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-top: 3px;

    color: var(--portal-gold-300);

    background:
        linear-gradient(135deg,
            var(--portal-navy-900),
            var(--portal-navy-950));

    border: 0;

    border-bottom:
        3px solid var(--portal-gold-500);

    border-radius: 8px;

    box-shadow:
        0 12px 25px rgba(8, 43, 71, 0.22);

    font-size: 0.88rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.login-submit svg {
    width: 20px;
    height: 20px;
}

.login-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 31px rgba(8, 43, 71, 0.28);

    filter: brightness(1.08);
}

.login-submit:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

/*
 * Ajuda
 */

.login-help {
    display: grid;
    gap: 8px;

    margin-top: 29px;
    padding-top: 24px;

    color: #858e98;

    border-top:
        1px solid var(--portal-line);

    text-align: center;
    font-size: 0.81rem;
}

.login-help a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: var(--portal-navy-800);

    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-help a:hover {
    color: var(--portal-gold-600);
}

.login-help strong {
    font-size: 1.2rem;
    text-decoration: none;
}

/*
 * Mensagem segura
 */

.login-secure-message {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 0;

    color: #8a939d;

    font-size: 0.77rem;
}

.login-secure-message svg {
    width: 20px;
    height: 20px;
}

/*
 * Toast de funcionalidades futuras
 */

.portal-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;

    max-width:
        min(390px,
            calc(100vw - 48px));

    padding: 14px 18px;

    color: var(--portal-white);
    background: var(--portal-navy-900);

    border-left:
        4px solid var(--portal-gold-500);

    border-radius: 10px;

    box-shadow:
        0 16px 38px rgba(6, 29, 49, 0.28);

    font-size: 0.82rem;
    line-height: 1.45;

    animation:
        portal-toast-in 0.25s ease both;
}

@keyframes portal-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
 * Tela temporária de validação do login
 */

.test-dashboard-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 25px;

    background:
        linear-gradient(135deg,
            var(--portal-navy-950),
            var(--portal-navy-800));
}

.test-dashboard-card {
    width: min(580px, 100%);

    padding: 42px;

    background: var(--portal-white);

    border-radius: 18px;

    box-shadow: var(--portal-shadow);

    text-align: center;
}

.test-dashboard-card img {
    width: 230px;
    margin: 0 auto 28px;
}

.test-dashboard-card h1 {
    margin: 0 0 10px;

    color: var(--portal-navy-950);

    font-size: 2rem;
    font-weight: 600;
}

.test-dashboard-card p {
    color: var(--portal-muted);
    line-height: 1.55;
}

.test-dashboard-data {
    display: grid;
    gap: 7px;

    margin: 25px 0;
    padding: 18px;

    color: var(--portal-navy-900);
    background: #f3f5f7;

    border-radius: 10px;

    text-align: left;
    font-size: 0.85rem;
}

.test-dashboard-card form {
    margin: 0;
}

.test-dashboard-card button {
    width: 100%;
    min-height: 52px;

    color: var(--portal-gold-300);
    background: var(--portal-navy-900);

    border: 0;
    border-radius: 8px;

    font-weight: 600;
    cursor: pointer;
}

/*
 * Responsividade
 */

@media (max-width: 1050px) {
    .login-layout {
        grid-template-columns:
            minmax(410px, 0.9fr) minmax(520px, 1.1fr);
    }

    .login-form-area {
        padding-inline: 38px;
    }
}

@media (max-width: 900px) {
    .login-layout {
        display: block;
        position: relative;
        isolation: isolate;
    }

    .login-hero {
        position: absolute;
        inset: 0;
        z-index: -2;

        min-height: 100%;
    }

    .login-hero-overlay {
        background:
            rgba(4, 24, 40, 0.76);
    }

    .login-hero-content {
        display: none;
    }

    .login-form-area {
        min-height:
            calc(100vh - var(--portal-header-height));

        padding:
            38px 28px 26px;

        background:
            rgba(239, 242, 245, 0.76);

        backdrop-filter: blur(5px);
    }
}

@media (max-width: 620px) {
    :root {
        --portal-header-height: 64px;
    }

    .login-header {
        padding-inline: 17px;
    }

    .login-header-logo {
        width: 158px;
        height: 44px;
    }

    .back-to-site {
        gap: 6px;
        font-size: 0.75rem;
    }

    .back-to-site svg {
        width: 17px;
        height: 17px;
    }

    .login-form-area {
        padding:
            24px 14px;
    }

    .login-card {
        padding:
            28px 20px;

        border-radius: 14px;
    }

    .login-card-heading {
        margin-bottom: 24px;
    }

    .login-card-heading h2 {
        font-size: 2rem;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;

        gap: 13px;
    }

    .login-submit {
        min-height: 56px;
    }

    .login-secure-message {
        color: #5e6975;
    }

    .test-dashboard-card {
        padding:
            32px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

/*
 * DASHBOARD DO ENTREGADOR
 */

.dashboard-page {
    min-height: 100vh;

    overflow-x: hidden;

    color: var(--portal-ink);
    background: #f3f5f7;
}

.dashboard-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        292px minmax(0, 1fr);

    grid-template-rows:
        84px minmax(calc(100vh - 84px),
            auto);
}

/*
 * Cabeçalho
 */

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 50;

    grid-column: 1 / -1;
    grid-row: 1;

    min-height: 84px;

    display: grid;

    grid-template-columns:
        292px minmax(0, 1fr) auto;

    align-items: center;

    padding:
        0 clamp(24px, 3vw, 48px) 0 30px;

    background:
        rgba(255, 255, 255, 0.98);

    border-bottom:
        1px solid #dce1e5;

    box-shadow:
        0 4px 16px rgba(16, 36, 59, 0.06);
}

.portal-logo {
    width: 225px;
}

.portal-logo img {
    width: 100%;
    height: 58px;

    object-fit: contain;
    object-position: left center;
}

.portal-title {
    justify-self: center;

    color: var(--portal-navy-950);

    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size:
        clamp(1.35rem, 2.2vw, 2rem);

    font-weight: 600;

    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.sidebar-toggle {
    display: none;
}

/*
 * Usuário do cabeçalho
 */

.portal-user {
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-user-avatar {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    color: var(--portal-gold-500);
    background: var(--portal-navy-900);

    border:
        2px solid var(--portal-gold-500);

    border-radius: 50%;
}

.portal-user-avatar svg {
    width: 27px;
    height: 27px;
}

.portal-user-name {
    color: var(--portal-ink);

    font-size: 1rem;
    font-weight: 600;
}

.portal-user-divider {
    width: 1px;
    height: 34px;

    display: block;

    margin-inline: 5px;

    background: #ccd2d8;
}

.portal-user form {
    margin: 0;
}

.portal-logout {
    padding: 9px 6px;

    color: var(--portal-gold-600);
    background: transparent;

    border: 0;

    font-weight: 600;

    cursor: pointer;
}

.portal-logout:hover {
    color: var(--portal-navy-900);
}

/*
 * Menu lateral
 */

.portal-sidebar {
    position: sticky;
    top: 84px;
    z-index: 40;

    grid-column: 1;
    grid-row: 2;

    height: calc(100vh - 84px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow-y: auto;

    color:
        rgba(255, 255, 255, 0.88);

    background:
        radial-gradient(circle at 0 0,
            rgba(25, 87, 126, 0.42),
            transparent 35%),
        linear-gradient(180deg,
            #073154,
            var(--portal-navy-950));

    box-shadow:
        8px 0 24px rgba(6, 29, 49, 0.12);
}

.portal-sidebar nav {
    display: grid;
    gap: 8px;

    padding: 38px 16px;
}

.portal-sidebar nav a {
    position: relative;

    min-height: 66px;

    display: flex;
    align-items: center;

    gap: 17px;

    padding: 14px 20px;

    border-radius: 10px;

    font-family:
        "Rajdhani",
        Arial,
        sans-serif;

    font-size: 1rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.portal-sidebar nav a::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: -16px;

    width: 5px;

    background: transparent;

    border-radius:
        0 8px 8px 0;
}

.portal-sidebar nav a svg {
    width: 28px;
    height: 28px;

    flex: 0 0 auto;
}

.portal-sidebar nav a:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.07);

    transform: translateX(2px);
}

.portal-sidebar nav a.active {
    color: var(--portal-gold-300);

    background:
        linear-gradient(90deg,
            rgba(20, 80, 115, 0.78),
            rgba(17, 71, 105, 0.44));

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.portal-sidebar nav a.active::before {
    background: var(--portal-gold-500);
}

.sidebar-base {
    display: grid;
    gap: 4px;

    margin: 0 20px 24px;
    padding: 16px 18px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 11px;
}

.sidebar-base span {
    color:
        rgba(255, 255, 255, 0.56);

    font-size: 0.7rem;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-base strong {
    color: var(--portal-gold-300);

    font-size: 0.95rem;
    font-weight: 600;
}

/*
 * Conteúdo
 */

.portal-content {
    grid-column: 2;
    grid-row: 2;

    min-width: 0;

    padding:
        clamp(28px, 3.4vw, 48px);
}

.dashboard-demo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 18px;
    padding: 10px 16px;

    color: #674c19;
    background: #fff7e6;

    border: 1px solid #ead19a;
    border-radius: 10px;

    font-size: 0.82rem;
}

.dashboard-demo-banner strong {
    color: var(--portal-navy-900);
}

.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 28px;

    margin-bottom: 24px;
}

.dashboard-eyebrow,
.dashboard-panel-heading p {
    margin: 0 0 7px;

    color: var(--portal-gold-600);

    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.dashboard-heading h1 {
    margin: 0;

    color: var(--portal-navy-950);

    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size:
        clamp(2rem, 3.4vw, 3rem);

    font-weight: 500;
    line-height: 1.05;
}

.dashboard-heading>div:first-child>p:last-child {
    margin: 9px 0 0;

    color: var(--portal-muted);

    font-size: 1rem;
}

/*
 * Seleção de mês
 */

.dashboard-period {
    min-width: 240px;

    display: grid;

    grid-template-columns:
        38px minmax(150px, 1fr) 38px;

    align-items: center;

    padding: 6px;

    background: #ffffff;

    border: 1px solid var(--portal-line);
    border-radius: 12px;

    box-shadow:
        0 8px 22px rgba(17, 34, 51, 0.06);
}

.dashboard-period a,
.dashboard-period>span {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    color: var(--portal-gold-600);

    border-radius: 8px;

    font-size: 1.5rem;
    font-weight: 500;
}

.dashboard-period a:hover {
    background: #fff7e9;
}

.dashboard-period>span {
    color: #c8ccd0;
}

.dashboard-period strong {
    font-size: 0.84rem;
    font-weight: 600;

    text-align: center;
}

/*
 * Cards superiores
 */

.dashboard-metrics {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap:
        clamp(15px, 2vw, 24px);

    margin-bottom: 24px;
}

.dashboard-metric-card {
    min-height: 128px;

    display: grid;

    grid-template-columns:
        82px minmax(0, 1fr);

    align-items: center;

    gap: 22px;

    padding: 23px 26px;

    background: #ffffff;

    border:
        1px solid rgba(16, 36, 59, 0.1);

    border-radius: 14px;

    box-shadow:
        0 9px 28px rgba(22, 39, 55, 0.07);
}

.dashboard-metric-icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    color: var(--portal-gold-600);

    border-right:
        1px solid var(--portal-line);
}

.dashboard-metric-icon svg {
    width: 46px;
    height: 46px;
}

.dashboard-metric-card>div {
    min-width: 0;

    display: grid;
    gap: 7px;
}

.dashboard-metric-card>div>span {
    color: var(--portal-muted);

    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.dashboard-metric-card strong {
    overflow-wrap: anywhere;

    color: var(--portal-navy-950);

    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size:
        clamp(1.45rem, 2.2vw, 2.05rem);

    font-weight: 600;
    line-height: 1.05;
}

/*
 * Grid inferior
 */

.dashboard-main-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(300px, 355px);

    align-items: stretch;

    gap: 24px;
}

.dashboard-panel {
    min-width: 0;

    background: #ffffff;

    border:
        1px solid rgba(16, 36, 59, 0.1);

    border-radius: 14px;

    box-shadow:
        0 9px 28px rgba(22, 39, 55, 0.07);
}

.dashboard-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    padding: 24px 26px 17px;

    border-bottom:
        1px solid var(--portal-line);
}

.dashboard-panel-heading h2 {
    margin: 0;

    color: var(--portal-navy-950);

    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size: 1.12rem;
    font-weight: 600;

    text-transform: uppercase;
}

.dashboard-panel-heading a {
    color: var(--portal-gold-600);

    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-panel-heading a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/*
 * Tabela de entregas
 */

.dashboard-table-scroll {
    overflow-x: auto;
}

.dashboard-table-scroll table {
    width: 100%;

    border-collapse: collapse;

    white-space: nowrap;
}

.dashboard-table-scroll th,
.dashboard-table-scroll td {
    padding: 14px 16px;

    border-bottom:
        1px solid #e8ebee;

    text-align: left;
    font-size: 0.82rem;
}

.dashboard-table-scroll th:first-child,
.dashboard-table-scroll td:first-child {
    padding-left: 26px;
}

.dashboard-table-scroll th:last-child,
.dashboard-table-scroll td:last-child {
    padding-right: 26px;
}

.dashboard-table-scroll th {
    color: var(--portal-navy-900);
    background: #fafbfc;

    font-weight: 600;
}

.dashboard-table-scroll td {
    color: #4e5d6c;
}

.dashboard-table-scroll td strong {
    color: var(--portal-navy-800);
    font-weight: 600;
}

.dashboard-table-scroll tbody tr:hover td {
    background: #fbfcfd;
}

.delivery-status {
    min-width: 92px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    border-radius: 7px;

    font-size: 0.7rem;
    font-weight: 600;
}

.delivery-status--success {
    color: var(--portal-green);
    background: var(--portal-green-bg);
}

.delivery-status--danger {
    color: var(--portal-red);
    background: var(--portal-red-bg);
}

.delivery-status--warning {
    color: var(--portal-warning);
    background: var(--portal-warning-bg);
}

.dashboard-panel-note,
.dashboard-privacy-note {
    margin: 0;

    padding: 15px 26px 18px;

    color: #89929c;

    font-size: 0.73rem;
    line-height: 1.45;
}

/*
 * Resumo mensal e SLA
 */

.month-panel {
    display: flex;
    flex-direction: column;
}

.dashboard-sla-chart {
    position: relative;

    width: 210px;
    height: 210px;

    margin: 27px auto 18px;
}

.dashboard-sla-chart>svg {
    width: 100%;
    height: 100%;
}

.sla-track {
    stroke: #e7ebee;
}

.sla-progress {
    stroke: var(--portal-gold-500);
    stroke-linecap: round;
}

.dashboard-sla-chart>img {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 54px;
    height: 48px;

    object-fit: contain;

    transform:
        translate(-50%, -72%);
}

.dashboard-sla-chart>div {
    position: absolute;

    bottom: 47px;
    left: 50%;

    display: grid;

    color: var(--portal-navy-900);

    text-align: center;

    transform: translateX(-50%);
}

.dashboard-sla-chart strong {
    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size: 1.02rem;
    font-weight: 600;
}

.dashboard-sla-chart span {
    color: var(--portal-muted);

    font-size: 0.63rem;
    font-weight: 600;

    letter-spacing: 0.1em;
}

.dashboard-month-stats {
    margin: 0;
    padding: 0 26px;
}

.dashboard-month-stats>div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 12px 0;

    border-bottom:
        1px solid #e9ecef;
}

.dashboard-month-stats dt {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #536170;

    font-size: 0.81rem;
}

.dashboard-month-stats dd {
    margin: 0;

    color: var(--portal-navy-950);

    font-family:
        "Oxanium",
        Arial,
        sans-serif;

    font-size: 0.85rem;
    font-weight: 600;
}

.stat-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.stat-dot--gold {
    background: var(--portal-gold-500);
}

.stat-dot--green {
    background: #38a873;
}

.stat-dot--red {
    background: #d55d63;
}

.stat-dot--orange {
    background: #e1a344;
}

.stat-dot--blue {
    background: #3b8cb7;
}

.stat-dot--navy {
    background: var(--portal-navy-800);
}

.dashboard-privacy-note {
    margin-top: auto;
    text-align: center;
}

/*
 * Responsividade do dashboard
 */

@media (max-width: 1220px) {
    .dashboard-shell {
        grid-template-columns:
            250px minmax(0, 1fr);
    }

    .portal-topbar {
        grid-template-columns:
            250px minmax(0, 1fr) auto;

        padding-left: 24px;
    }

    .portal-logo {
        width: 195px;
    }

    .portal-content {
        padding: 30px;
    }

    .dashboard-metric-card {
        grid-template-columns:
            62px minmax(0, 1fr);

        gap: 15px;
        padding-inline: 20px;
    }

    .dashboard-metric-icon {
        width: 60px;
    }

    .dashboard-metric-icon svg {
        width: 40px;
        height: 40px;
    }

    .dashboard-main-grid {
        grid-template-columns:
            minmax(0, 1fr) 315px;
    }
}

@media (max-width: 1040px) {
    .dashboard-metrics {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }

    .dashboard-metric-card:last-child {
        grid-column: 1 / -1;
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .month-panel {
        min-height: 430px;

        display: grid;

        grid-template-columns:
            280px minmax(0, 1fr);

        grid-template-rows:
            auto 1fr auto;

        align-items: center;
    }

    .month-panel .dashboard-panel-heading {
        grid-column: 1 / -1;
    }

    .dashboard-sla-chart {
        grid-column: 1;
        grid-row: 2;
    }

    .dashboard-month-stats {
        grid-column: 2;
        grid-row: 2;

        width: 100%;
    }

    .dashboard-privacy-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dashboard-shell {
        display: block;

        padding-top: 72px;
    }

    .portal-topbar {
        position: fixed;
        inset: 0 0 auto;

        min-height: 72px;

        display: grid;

        grid-template-columns:
            48px 150px minmax(0, 1fr) auto;

        padding:
            0 16px;
    }

    .sidebar-toggle {
        width: 42px;
        height: 42px;

        display: grid;
        place-content: center;

        gap: 5px;

        padding: 0;

        background:
            var(--portal-navy-900);

        border: 0;
        border-radius: 50%;

        cursor: pointer;
    }

    .sidebar-toggle span {
        width: 19px;
        height: 2px;

        background:
            var(--portal-gold-300);

        border-radius: 999px;

        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .sidebar-toggle[aria-expanded="true"] span:nth-child(1) {
        transform:
            translateY(7px) rotate(45deg);
    }

    .sidebar-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .sidebar-toggle[aria-expanded="true"] span:nth-child(3) {
        transform:
            translateY(-7px) rotate(-45deg);
    }

    .portal-logo {
        width: 140px;
        margin-left: 8px;
    }

    .portal-logo img {
        height: 48px;
    }

    .portal-title {
        font-size: 1.15rem;
    }

    .portal-sidebar {
        position: fixed;

        top: 72px;
        bottom: 0;
        left: 0;

        z-index: 90;

        width: min(310px, 86vw);
        height: auto;

        transform:
            translateX(-105%);

        transition:
            transform 0.25s ease;
    }

    .portal-sidebar.is-open {
        transform:
            translateX(0);
    }

    .sidebar-overlay {
        position: fixed;

        inset: 72px 0 0;

        z-index: 80;

        width: 100%;
        height: auto;

        padding: 0;

        background:
            rgba(2, 17, 29, 0.52);

        border: 0;

        cursor: pointer;
    }

    .portal-content {
        padding:
            28px 22px 40px;
    }
}

@media (max-width: 700px) {
    .portal-topbar {
        grid-template-columns:
            45px 128px minmax(0, 1fr) auto;

        padding-inline: 10px;
    }

    .portal-logo {
        width: 120px;
        margin-left: 4px;
    }

    .portal-title {
        overflow: hidden;

        font-size: 0.88rem;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .portal-user {
        gap: 4px;
    }

    .portal-user-avatar {
        width: 40px;
        height: 40px;
    }

    .portal-user-name,
    .portal-user-divider {
        display: none;
    }

    .portal-logout {
        font-size: 0.8rem;
    }

    .dashboard-demo-banner {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;

        gap: 18px;
    }

    .dashboard-period {
        width: 100%;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-metric-card:last-child {
        grid-column: auto;
    }

    .month-panel {
        display: flex;
        min-height: 0;
    }

    .dashboard-month-stats {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .portal-content {
        padding:
            22px 14px 32px;
    }

    .portal-title {
        display: none;
    }

    .portal-topbar {
        grid-template-columns:
            45px minmax(0, 1fr) auto;
    }

    .dashboard-metric-card {
        min-height: 112px;

        grid-template-columns:
            56px minmax(0, 1fr);

        padding: 18px;
    }

    .dashboard-metric-icon {
        width: 54px;
        height: 60px;
    }

    .dashboard-metric-icon svg {
        width: 36px;
        height: 36px;
    }

    .dashboard-panel-heading {
        padding-inline: 18px;
    }

    .dashboard-table-scroll th:first-child,
    .dashboard-table-scroll td:first-child {
        padding-left: 18px;
    }

    .dashboard-panel-note,
    .dashboard-privacy-note,
    .dashboard-month-stats {
        padding-inline: 18px;
    }
}
/* =========================================================
   ÁREA INTERNA DO PORTAL
   ========================================================= */

.app-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #0a2943;
    background: #f2f5f8;
    font-family: "Rajdhani", Arial, sans-serif;
}

.app-body *,
.app-body *::before,
.app-body *::after {
    box-sizing: border-box;
}

.app-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    align-items: center;
    min-height: 96px;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid #dbe2e8;
    box-shadow: 0 2px 14px rgba(7, 35, 58, .07);
}

.app-header-brand,
.app-user {
    display: flex;
    align-items: center;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.app-logo img {
    display: block;
    width: 220px;
    max-height: 72px;
    object-fit: contain;
}

.app-header-title {
    text-align: center;
    color: #092946;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.app-user {
    justify-content: flex-end;
    gap: 12px;
}

.app-user-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #efb64f;
    background: #082f4d;
    border: 2px solid #efb64f;
    border-radius: 50%;
    font-family: "Oxanium", Arial, sans-serif;
    font-weight: 600;
}

.app-user-info {
    display: flex;
    flex-direction: column;
    min-width: 72px;
}

.app-user-info strong {
    font-size: 1.05rem;
}

.app-user-info span {
    color: #778491;
    font-size: .8rem;
}

.app-logout-form {
    margin: 0 0 0 8px;
    padding-left: 18px;
    border-left: 1px solid #d4dce3;
}

.app-logout-button {
    padding: 8px;
    color: #ba7b1d;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.app-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    padding: 9px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.app-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #082f4d;
    border-radius: 999px;
}

.app-layout {
    min-height: 100vh;
    padding-top: 96px;
}

.app-sidebar {
    position: fixed;
    z-index: 90;
    top: 96px;
    bottom: 0;
    left: 0;
    display: flex;
    width: 280px;
    flex-direction: column;
    overflow-y: auto;
    color: #fff;
    background:
        linear-gradient(180deg, #073656 0%, #02243c 100%);
}

.app-sidebar-user {
    display: flex;
    flex-direction: column;
    padding: 28px 30px 22px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.app-sidebar-user span {
    color: #e7b459;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.app-sidebar-user strong {
    margin-top: 7px;
    font-size: 1.12rem;
}

.app-sidebar-user small {
    margin-top: 3px;
    color: rgba(255,255,255,.62);
}

.app-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 25px 14px;
}

.app-nav-link {
    position: relative;
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: rgba(255,255,255,.82);
    border-radius: 9px;
    text-decoration: none;
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.app-nav-link::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -14px;
    width: 5px;
    content: "";
    background: transparent;
    border-radius: 0 5px 5px 0;
}

.app-nav-link svg {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
}

.app-nav-link span {
    font-size: 1.04rem;
    font-weight: 600;
}

.app-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
    transform: translateX(2px);
}

.app-nav-link.is-active {
    color: #f5bf5b;
    background: rgba(20, 87, 129, .48);
}

.app-nav-link.is-active::before {
    background: #f0b84f;
}

.app-sidebar-footer {
    display: flex;
    flex-direction: column;
    padding: 20px 30px 26px;
    color: rgba(255,255,255,.55);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .78rem;
}

.app-sidebar-footer strong {
    color: rgba(255,255,255,.78);
}

.app-sidebar-overlay {
    display: none;
}

.app-main {
    width: calc(100% - 280px);
    min-height: calc(100vh - 96px);
    margin-left: 280px;
    padding: 42px clamp(24px, 4vw, 64px) 60px;
}

.app-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.app-page-heading h1 {
    margin: 0;
    color: #092b48;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 500;
}

.app-page-heading p {
    margin: 6px 0 0;
    color: #647280;
    font-size: 1.08rem;
}

.app-demo-badge {
    padding: 8px 13px;
    color: #916014;
    background: #fff2d7;
    border: 1px solid #efcf91;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-metric-grid {
    display: grid;
    gap: 22px;
    margin-bottom: 24px;
}

.app-metric-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-metric-card,
.app-quick-card,
.app-kpi-card,
.app-compact-metrics article,
.app-profile-summary {
    background: #fff;
    border: 1px solid #dce3e8;
    box-shadow: 0 5px 18px rgba(14, 46, 71, .07);
}

.app-metric-card {
    display: flex;
    min-height: 128px;
    align-items: center;
    gap: 24px;
    padding: 25px 28px;
    border-radius: 13px;
}

.app-metric-icon {
    display: grid;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    place-items: center;
    color: #d69c37;
    border-right: 1px solid #dce2e7;
}

.app-metric-icon svg {
    width: 43px;
    height: 43px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-metric-card div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.app-metric-card span,
.app-quick-card span,
.app-kpi-card > span,
.app-compact-metrics span {
    color: #425568;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.app-metric-card strong {
    margin-top: 6px;
    color: #092946;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.app-panel {
    padding: 25px;
    background: #fff;
    border: 1px solid #dce3e8;
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(14, 46, 71, .07);
}

.app-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 19px;
}

.app-panel-header h2 {
    margin: 0;
    color: #0a2943;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.app-panel-header p {
    margin: 4px 0 0;
    color: #7a8791;
}

.app-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(300px, .9fr);
    gap: 24px;
}

.app-text-link,
.app-row-button {
    color: #a96f19;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.app-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.app-table th,
.app-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e9ed;
    text-align: left;
}

.app-table th {
    color: #425467;
    background: #f7f9fa;
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.app-table td {
    color: #3e5265;
}

.app-table tbody tr:hover {
    background: #fbfcfd;
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-table td strong {
    color: #0a2943;
}

.app-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-status--concluida,
.app-status--no-prazo,
.app-status--fechado,
.app-status--ativo {
    color: #1d7049;
    background: #dff2e7;
}

.app-status--atrasada,
.app-status--analise {
    color: #8a5b13;
    background: #fff0d2;
}

.app-status--falha,
.app-status--ocorrencia {
    color: #9b3535;
    background: #fde3e3;
}

.app-sla-ring {
    position: relative;
    display: grid;
    width: 195px;
    height: 195px;
    margin: 5px auto 22px;
    place-items: center;
}

.app-sla-ring svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.app-sla-ring circle {
    fill: none;
    stroke-width: 10;
}

.app-sla-ring-background {
    stroke: #e7edf1;
}

.app-sla-ring-progress {
    stroke: #d9a03e;
    stroke-linecap: round;
}

.app-sla-ring > div {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.app-sla-ring strong {
    color: #082f4d;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.55rem;
}

.app-sla-ring span {
    color: #72808d;
}

.app-summary-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.app-summary-list div {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #e4e8eb;
}

.app-summary-list span {
    color: #657381;
}

.app-summary-list strong {
    color: #0a2943;
}

.app-primary-button,
.app-secondary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Oxanium", Arial, sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.app-primary-button {
    color: #f7c261;
    background: #082f4d;
    border: 1px solid #082f4d;
}

.app-secondary-button {
    color: #8f5d12;
    background: #fff;
    border: 1px solid #d8a650;
}

.app-secondary-button--small {
    min-height: 37px;
    padding: 7px 14px;
    font-family: "Rajdhani", Arial, sans-serif;
    font-size: .86rem;
}

.app-primary-button:hover,
.app-secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(8, 47, 77, .13);
}

.app-month-summary .app-secondary-button {
    width: 100%;
}

.app-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.app-quick-card {
    display: flex;
    min-height: 135px;
    flex-direction: column;
    padding: 24px;
    border-radius: 13px;
}

.app-quick-card strong {
    margin: 8px 0 5px;
    color: #082f4d;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.8rem;
}

.app-quick-card small {
    color: #74818d;
}

.app-compact-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 24px;
}

.app-compact-metrics article {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border-radius: 11px;
}

.app-compact-metrics strong {
    margin-top: 5px;
    color: #082f4d;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.65rem;
}

.app-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(145px, .8fr)
        minmax(145px, .8fr)
        minmax(160px, .9fr)
        minmax(240px, 1.5fr)
        auto;
    align-items: end;
    gap: 14px;
    padding: 18px;
    margin-bottom: 15px;
    background: #f6f8fa;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
}

.app-filter-grid label,
.app-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-filter-grid label > span,
.app-form-grid label > span {
    color: #193a54;
    font-weight: 700;
}

.app-filter-grid input,
.app-filter-grid select,
.app-form-grid input,
.app-form-grid select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #18364e;
    background: #fff;
    border: 1px solid #cfd8df;
    border-radius: 7px;
    outline: 0;
    font: inherit;
}

.app-filter-grid input:focus,
.app-filter-grid select:focus,
.app-form-grid input:focus,
.app-form-grid select:focus {
    border-color: #d7a343;
    box-shadow: 0 0 0 3px rgba(215, 163, 67, .14);
}

.app-filter-clear {
    min-height: 44px;
    padding: 8px 14px;
    color: #7f581a;
    background: transparent;
    border: 1px solid #d6bd8b;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.app-table-counter {
    margin: 4px 0 9px;
    color: #74818c;
}

.app-empty-row td {
    padding: 38px;
    text-align: center;
}

.app-dialog {
    width: min(720px, calc(100% - 28px));
    padding: 0;
    color: #15354e;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(3, 28, 47, .3);
}

.app-dialog::backdrop {
    background: rgba(2, 25, 43, .65);
    backdrop-filter: blur(3px);
}

.app-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 26px;
    color: #fff;
    background: #082f4d;
}

.app-dialog-header span {
    color: #e8b653;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-dialog-header h2 {
    margin: 5px 0 0;
    font-family: "Oxanium", Arial, sans-serif;
}

.app-dialog-header button {
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.app-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: #e1e7eb;
}

.app-dialog-grid div {
    display: flex;
    min-height: 95px;
    flex-direction: column;
    padding: 19px 22px;
    background: #fff;
}

.app-dialog-grid span {
    color: #74818b;
    font-size: .8rem;
    text-transform: uppercase;
}

.app-dialog-grid strong {
    margin-top: 5px;
}

.app-dialog-note {
    margin: 0;
    padding: 20px 25px;
    color: #657380;
    background: #f6f8fa;
}

.app-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.app-kpi-card {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    padding: 24px;
    border-radius: 12px;
}

.app-kpi-card--featured {
    border-top: 4px solid #dba541;
}

.app-kpi-card strong {
    margin: 8px 0 5px;
    color: #082f4d;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.8rem;
}

.app-kpi-card small {
    color: #75828d;
}

.app-kpi-card progress,
.app-performance-progress progress {
    width: 100%;
    height: 9px;
    margin-top: 12px;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 999px;
}

.app-kpi-card progress::-webkit-progress-bar,
.app-performance-progress progress::-webkit-progress-bar {
    background: #e8edf0;
    border-radius: 999px;
}

.app-kpi-card progress::-webkit-progress-value,
.app-performance-progress progress::-webkit-progress-value {
    background: #d9a03e;
    border-radius: 999px;
}

.app-kpi-card progress::-moz-progress-bar,
.app-performance-progress progress::-moz-progress-bar {
    background: #d9a03e;
    border-radius: 999px;
}

.app-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 24px;
    margin-bottom: 24px;
}

.app-performance-list {
    display: flex;
    flex-direction: column;
}

.app-performance-row {
    display: grid;
    grid-template-columns: minmax(130px, .8fr) minmax(230px, 1.6fr) 80px;
    align-items: center;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid #e4e9ed;
}

.app-performance-row:last-child {
    border-bottom: 0;
}

.app-performance-title,
.app-performance-progress,
.app-performance-ranking {
    display: flex;
    flex-direction: column;
}

.app-performance-title span,
.app-performance-ranking span {
    color: #75828e;
}

.app-performance-progress > div {
    display: flex;
    justify-content: space-between;
}

.app-performance-ranking {
    text-align: right;
}

.app-ranking-card {
    display: flex;
    min-height: 225px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 25px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(145deg, #0b3c5e, #052841);
    border-radius: 12px;
}

.app-ranking-card > span {
    color: #e8b650;
    font-weight: 700;
    text-transform: uppercase;
}

.app-ranking-card strong {
    margin: 10px 0;
    color: #fff;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 3.6rem;
}

.app-ranking-card small {
    max-width: 250px;
    color: rgba(255,255,255,.75);
}

.app-privacy-note {
    padding: 17px;
    margin-top: 17px;
    color: #5f6f7d;
    background: #f4f7f9;
    border-left: 4px solid #ddb052;
    border-radius: 7px;
}

.app-privacy-note p {
    margin: 5px 0 0;
}

.app-rule-panel {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.4fr);
    gap: 30px;
    align-items: center;
    margin-top: 24px;
}

.app-rule-panel > div > span {
    color: #b2781f;
    font-weight: 700;
    text-transform: uppercase;
}

.app-rule-panel h2 {
    margin: 5px 0 0;
    font-family: "Oxanium", Arial, sans-serif;
}

.app-rule-panel ul {
    margin: 0;
    padding-left: 22px;
    color: #5e6f7c;
}

.app-rule-panel li + li {
    margin-top: 7px;
}

.app-info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-left: 5px solid #dba440;
}

.app-info-banner strong {
    font-family: "Oxanium", Arial, sans-serif;
}

.app-info-banner p {
    margin: 4px 0 0;
    color: #64727e;
}

.app-info-banner > span {
    padding: 7px 12px;
    color: #38624d;
    background: #e2f3e9;
    border-radius: 999px;
    font-weight: 700;
}

.app-closing-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
}

.app-closing-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce3e8;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(14, 46, 71, .06);
}

.app-closing-card summary {
    display: grid;
    grid-template-columns: minmax(200px, 1.4fr) minmax(140px, .7fr) auto 25px;
    align-items: center;
    gap: 22px;
    padding: 22px 25px;
    cursor: pointer;
    list-style: none;
}

.app-closing-card summary::-webkit-details-marker {
    display: none;
}

.app-closing-main,
.app-closing-summary-value {
    display: flex;
    flex-direction: column;
}

.app-closing-main span,
.app-closing-summary-value span {
    color: #71808c;
}

.app-closing-main strong,
.app-closing-summary-value strong {
    margin-top: 4px;
    color: #0a2d49;
}

.app-closing-summary-value strong {
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.22rem;
}

.app-closing-arrow {
    color: #b57b22;
    font-size: 1.5rem;
    transition: transform .2s ease;
}

.app-closing-card[open] .app-closing-arrow {
    transform: rotate(180deg);
}

.app-closing-content {
    padding: 0 25px 24px;
    border-top: 1px solid #e3e8eb;
}

.app-closing-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 0;
}

.app-closing-values > div {
    display: flex;
    flex-direction: column;
    padding: 17px;
    background: #f6f8fa;
    border-radius: 8px;
}

.app-closing-values span,
.app-closing-footer span {
    color: #73818d;
}

.app-closing-values strong {
    margin-top: 4px;
    color: #0a2d49;
    font-size: 1.15rem;
}

.app-closing-values small {
    margin-top: 3px;
    color: #8b969e;
}

.app-closing-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 17px;
    padding-top: 20px;
    border-top: 1px solid #e4e9ed;
}

.app-closing-footer > div {
    display: flex;
    flex-direction: column;
}

.app-value-breakdown {
    display: flex;
    flex-direction: column;
}

.app-value-breakdown > div {
    display: flex;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid #e4e8eb;
}

.app-value-breakdown-total {
    color: #082f4d;
    font-size: 1.2rem;
    border-bottom: 0 !important;
}

.app-value-breakdown-total strong {
    font-family: "Oxanium", Arial, sans-serif;
}

.app-profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border-radius: 13px;
}

.app-profile-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    place-items: center;
    color: #efb451;
    background: #082f4d;
    border-radius: 50%;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.25rem;
}

.app-profile-summary > div:nth-child(2) {
    flex: 1;
}

.app-profile-summary h2 {
    margin: 3px 0;
    color: #082f4d;
    font-family: "Oxanium", Arial, sans-serif;
}

.app-profile-summary p,
.app-profile-summary span:first-child {
    margin: 0;
    color: #74818d;
}

.app-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
    gap: 24px;
}

.app-profile-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.app-form-grid--single {
    grid-template-columns: 1fr;
}

.app-form-full {
    grid-column: 1 / -1;
}

.app-form-grid input[readonly] {
    color: #697782;
    background: #f2f5f7;
}

.app-form-grid small {
    color: #87929a;
}

.app-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid #e3e8eb;
}

.app-support-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 24px;
    border-left: 5px solid #dca541;
}

.app-support-panel span {
    color: #ad741d;
    font-weight: 700;
    text-transform: uppercase;
}

.app-support-panel h2 {
    margin: 4px 0;
    font-family: "Oxanium", Arial, sans-serif;
}

.app-support-panel p {
    max-width: 680px;
    margin: 0;
    color: #657480;
}

.app-toast {
    position: fixed;
    z-index: 500;
    right: 24px;
    bottom: 24px;
    max-width: min(390px, calc(100% - 32px));
    padding: 14px 18px;
    color: #fff;
    background: #082f4d;
    border-left: 4px solid #e0aa47;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(5, 35, 56, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .app-header {
        grid-template-columns: 240px 1fr 240px;
        padding: 0 22px;
    }

    .app-logo img {
        width: 185px;
    }

    .app-sidebar {
        width: 250px;
    }

    .app-main {
        width: calc(100% - 250px);
        margin-left: 250px;
    }

    .app-metric-grid--three,
    .app-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-dashboard-grid,
    .app-two-column,
    .app-profile-grid {
        grid-template-columns: 1fr;
    }

    .app-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-filter-clear {
        width: max-content;
    }

    .app-closing-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .app-header {
        grid-template-columns: 1fr auto;
        min-height: 78px;
        padding: 0 16px;
    }

    .app-header-title {
        display: none;
    }

    .app-logo img {
        width: 165px;
        max-height: 58px;
    }

    .app-menu-toggle {
        display: block;
    }

    .app-user-info,
    .app-logout-form {
        display: none;
    }

    .app-layout {
        padding-top: 78px;
    }

    .app-sidebar {
        top: 78px;
        width: min(310px, 86vw);
        transform: translateX(-105%);
        transition: transform .25s ease;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-sidebar-overlay {
        position: fixed;
        z-index: 80;
        inset: 78px 0 0;
        display: block;
        visibility: hidden;
        background: rgba(2, 24, 41, .62);
        opacity: 0;
        transition:
            opacity .2s ease,
            visibility .2s ease;
    }

    .app-sidebar-overlay.is-visible {
        visibility: visible;
        opacity: 1;
    }

    .app-main {
        width: 100%;
        min-height: calc(100vh - 78px);
        margin-left: 0;
        padding: 28px 18px 45px;
    }

    .app-quick-grid,
    .app-compact-metrics,
    .app-closing-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-closing-card summary {
        grid-template-columns: 1fr auto;
    }

    .app-closing-summary-value {
        grid-column: 1;
    }

    .app-closing-card summary > .app-status {
        grid-column: 2;
        grid-row: 1;
    }

    .app-closing-arrow {
        grid-column: 2;
        grid-row: 2;
    }

    .app-rule-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 570px) {
    .app-page-heading {
        flex-direction: column;
    }

    .app-metric-grid--three,
    .app-kpi-grid,
    .app-quick-grid,
    .app-compact-metrics,
    .app-filter-grid,
    .app-closing-values,
    .app-closing-footer,
    .app-form-grid,
    .app-dialog-grid {
        grid-template-columns: 1fr;
    }

    .app-metric-card {
        min-height: 105px;
        padding: 19px;
    }

    .app-metric-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .app-metric-icon svg {
        width: 34px;
        height: 34px;
    }

    .app-panel {
        padding: 19px;
    }

    .app-panel-header,
    .app-info-banner,
    .app-support-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-performance-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .app-performance-ranking {
        text-align: left;
    }

    .app-profile-summary {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 20px;
    }

    .app-profile-summary > .app-status {
        margin-left: 92px;
    }

    .app-closing-card summary {
        padding: 18px;
    }

    .app-closing-content {
        padding: 0 18px 18px;
    }

    .app-toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
    }
}
.app-table-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    white-space: nowrap;
}

.app-table-actions form {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
}

.app-table-actions .app-row-button {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
/* Importação de planilhas */
.app-alert {
    padding: 15px 18px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 9px;
}

.app-alert--success {
    color: #1d7049;
    background: #e3f3e9;
    border-color: #bde2cb;
}

.app-alert--warning,
.app-alert--info {
    color: #80540f;
    background: #fff3d9;
    border-color: #efd49e;
}

.app-alert--error {
    color: #943535;
    background: #fde6e6;
    border-color: #efbcbc;
}

.app-import-panel,
.app-import-result {
    margin-bottom: 24px;
}

.app-upload-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(300px, .7fr);
    gap: 22px;
}

.app-file-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.app-file-field > span {
    color: #0a2943;
    font-weight: 700;
}

.app-file-field input[type="file"] {
    width: 100%;
    padding: 15px;
    color: #405468;
    background: #f8fafb;
    border: 1px dashed #b8c7d2;
    border-radius: 9px;
}

.app-file-field small {
    color: #7a8791;
}

.app-import-notes {
    padding: 17px 19px;
    color: #4c5f70;
    background: #f6f8fa;
    border-left: 4px solid #dba440;
    border-radius: 8px;
}

.app-import-notes strong {
    color: #0a2943;
}

.app-import-notes ul {
    padding-left: 20px;
    margin: 9px 0 0;
}

.app-import-notes li + li {
    margin-top: 5px;
}

.app-import-actions {
    grid-column: 1 / -1;
    gap: 12px;
}

.app-import-metrics {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.app-import-metrics > div {
    display: flex;
    flex-direction: column;
    padding: 17px;
    background: #f6f8fa;
    border-radius: 8px;
}

.app-import-metrics span {
    color: #71808c;
    font-size: .8rem;
    text-transform: uppercase;
}

.app-import-metrics strong {
    margin-top: 5px;
    color: #082f4d;
    font-family: "Oxanium", Arial, sans-serif;
    font-size: 1.35rem;
}

.app-import-pendencies,
.app-import-empty {
    margin-top: 8px;
}

.app-import-empty {
    padding: 20px;
    color: #506273;
    background: #f6f8fa;
    border-radius: 8px;
}

.app-import-empty p {
    margin: 5px 0 0;
}

.app-table td small {
    display: block;
    margin-top: 3px;
    color: #7a8791;
}

@media (max-width: 820px) {
    .app-upload-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 570px) {
    .app-import-metrics {
        grid-template-columns: 1fr;
    }

    .app-import-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-import-actions a,
    .app-import-actions button {
        width: 100%;
    }
}
.app-validation-deliveries {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid #e1e7eb;
}

.app-validation-deliveries .app-panel-header {
    margin-bottom: 14px;
}

.app-validation-deliveries h3,
.app-validation-detail-body h3 {
    margin: 0;
    color: #0a2943;
    font-family: "Oxanium", Arial, sans-serif;
}

.app-validation-deliveries p {
    margin: 4px 0 0;
    color: #6c7b87;
}

.app-dialog--validation {
    width: min(1040px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
}

.app-dialog--validation .app-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
}

.app-validation-detail-body > section {
    padding: 22px;
}

.app-validation-detail-body > section + section {
    padding-top: 0;
}

.app-validation-detail-body h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.app-validation-detail-body .app-dialog-grid {
    border: 1px solid #e1e7eb;
}