/**
 * GesTaxas - Simulação de Taxas Ambientais
 * © Otimizze Digital - Todos os Direitos Reservados
 * Por Michel Silveira Raupp
 * Arquivo: assets/css/style.css
 * Estilos globais unificados (público, admin e login) com visual de dashboard moderno.
 */

/* =======================================================================
   PALETA BASE E TOKENS
   - Você pode trocar apenas estas cores depois para rebrandings.
   ======================================================================= */
:root {
    --primary: #2563eb;          /* azul principal */
    --primary-soft: #e0edff;     /* fundo suave para cards/ícones */
    --primary-dark: #1d4ed8;     /* azul mais escuro */
    --accent: #f97316;           /* laranja para detalhes */
    --bg: #f3f4f6;               /* fundo da aplicação */
    --surface: #ffffff;          /* cards / painéis */
    --border-subtle: #e5e7eb;
    --text: #111827;
    --text-muted: #6b7280;
    --danger: #dc2626;
    --success: #16a34a;
    --radius-card: 12px;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* =======================================================================
   RESET BÁSICO
   ======================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* =======================================================================
   LINKS
   ======================================================================= */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* =======================================================================
   HEADER (PÚBLICO E ADMIN)
   ======================================================================= */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center; /* logo centralizada por padrão */
    position: relative;
}

.app-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-header-title img {
    height: 56px;
    width: auto;
}

/* Área do usuário / ações no header admin */
.header-userarea {
    position: absolute;
    right: 18px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #f9fafb;
    color: var(--primary-dark);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.header-btn:hover {
    background: #eef2ff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* =======================================================================
   LAYOUT PRINCIPAL
   ======================================================================= */
.app-main {
    flex: 1;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.app-main-public {
    flex: 1;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px; /* estava menor, aumenta esse valor */
}

/* Card genérico usado em todo o sistema */
.app-card {
    background-color: var(--surface);
    border-radius: var(--radius-card);
    padding: 20px 20px 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 0;         /* zera margem para não alongar mais que a sidebar */
}

.app-card h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}

/* Breadcrumb / título auxiliar no topo de telas admin */
.top-nav {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.top-nav a {
    color: var(--primary);
    margin-right: 8px;
}

.topback {
    margin: 0 0 12px 2px;
}

.topback a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.topback a:hover {
    background: #dcfce7;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
    transform: translateY(-1px);
}

.topback-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #d1fae5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.topback-right {
    text-align: right;   /* alinha o botão dentro da área do card */
}

.topback-right a {
    display: inline-flex; /* mantém a mesma pílula, só grudada à direita */
}



/* =======================================================================
   SIDEBAR / APP SHELL (ADMIN)
   ======================================================================= */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* página sempre pelo menos do tamanho da tela */
}

.app-shell {
    display: flex;
    align-items: stretch;      /* sidebar e main com mesma altura */
    gap: 18px;
    width: 100%;         /* remove limite centralizado */
    margin: 30px 0 30px;      /* margens só em cima/baixo */
    padding: 0 16px;          /* respiro interno */
    flex: 1;
}

/* Sidebar fixa, simples */
.app-sidebar {
    position: relative;
    width: 230px;
    background: #008596; /* já usa algo assim, mantenha porém com... */
    border-radius: 20px;
    padding: 20px 14px 20px;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55); /* sombra mais “card” */
}

.app-sidebar .app-menu {
    margin-top: 8px;  /* menu um pouco mais para baixo que o topo */
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: #e5e7eb;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.sidebar-link:hover {
    background: rgba(148, 163, 184, 0.20);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.45);
    transform: translateY(-1px);
}

.sidebar-link.is-active {
    background: #f9fafb;
    color: #020617;
}

/* topo da sidebar: botão de colapso ou logo pequena */
.sidebar-top {
    position: relative;
    height: 50px;              /* altura do topo para encaixar o botão */
    margin-bottom: 8px;
}

.sidebar-toggle {
    position: absolute;
    top: 6px;
    right: -14px;               /* quando ABERTA, botão fica à direita */
    width: 10px;
    height: 26px;
    border-radius: 999px;
    border: none;
    background: #037382;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: right .2s ease, transform .2s ease, background-color .2s ease;
    z-index: 5;
}

.sidebar-toggle:hover {
    background: #099AAD;
}

.sidebar-toggle-icon {
    line-height: 1;
}

/* itens com ícone + label */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: #e5e7eb;
    text-decoration: none;
    position: relative;
    transition: background .15s ease, color .15s ease, transform .1s ease;
}

.sidebar-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #037382;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: rgba(148, 163, 184, 0.18);
    transform: translateY(-1px);
}

.sidebar-link.is-active {
    background: #f9fafb;
    color: #020617;
}

.sidebar-link.is-active .sidebar-icon {
    background: #E6E7E8;
    color: #e5e7eb;
}

.sidebar-label {
    white-space: nowrap;
}


/* ==== ESTADO COLAPSADO ==== */
.app-sidebar.is-collapsed {
    width: 72px;                 /* só a coluna de ícones */
}

.app-sidebar.is-collapsed .sidebar-label {
    display: none;               /* some apenas o texto */
}

.app-sidebar.is-collapsed .sidebar-link {
    justify-content: center;
    padding-inline: 0;
}

.app-sidebar.is-collapsed .sidebar-toggle {
    right: 50%;
    transform: translateX(50%);
}


/* =======================================================================
   FORMULÁRIOS
   ======================================================================= */
.form-row {
    margin-bottom: 18px; /* mais espaço entre campos */
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    font-size: 0.92rem;
    background: #f9fafb;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

input[type="email-login"],
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    font-size: 0.92rem;
    background: #f9fafb;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background: #ffffff;
}

input[type="checkbox"] {
    transform: scale(1.1);
}

/* Centralizar rótulo e texto do campo de e-mail na recuperação de senha */
label[for="email"] {
    text-align: left;
}

label[for="email-login"] {
    text-align: center;
}

#email {
    text-align: left;
}

#email-login {
    text-align: center;
}


/* Botões primários e links estilo botão */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

button:hover,
.btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-primary-res {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(16,185,129,0.35);
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.btn-primary-res:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 14px rgba(16,185,129,0.40);
    transform: translateY(-1px);
}

.btn-secondary-res {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background-color: #111827;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.btn-secondary-res:hover {
    background-color: #020617;
    box-shadow: 0 4px 10px rgba(15,23,42,0.40);
    transform: translateY(-1px);
}



.btn-secondary {
    background-color: #111827;
}

.btn-secondary:hover {
    background-color: #020617;
}

.btn-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    color: #374151;
    cursor: pointer;
    transition: background-color .15s ease;
}

.btn-toggle-password:hover {
    background: #d1d5db;
}

/* =======================================================================
   MENSAGENS DE FEEDBACK
   ======================================================================= */
.msg {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.msg-ok {
    background-color: #ecfdf3;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.msg-erro {
    background-color: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

/* =======================================================================
   TABELAS (ADMIN)
   ======================================================================= */
.app-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.83rem;
}

.app-table th,
.app-table td {
    border-bottom: 1px solid var(--border-subtle);
    padding: 7px 8px;
    text-align: left;
}

.app-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--text-muted);
}

.table-actions a {
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 6px;
    color: var(--primary-dark);
}

.placeholder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.placeholder-table thead th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.placeholder-table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.placeholder-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.placeholder-table tbody tr:hover {
    background-color: #eef2ff;
}

.table-footer-link {
    margin-top: 6px;
    text-align: right;
}

.link-inline {
    font-size: 0.84rem;
    color: #2563eb;
    text-decoration: none;
}

.link-inline:hover {
    text-decoration: underline;
}


/* =======================================================================
   BADGES
   ======================================================================= */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-ativo {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-inativo {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-pot {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-tipo {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-porte {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* =======================================================================
   DASHBOARD (KPIs E MÓDULOS)
   ======================================================================= */
.stats-grid,
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;                  /* mais espaço entre cards */
    margin-bottom: 20px;
}

/* Cartões de KPI do dashboard */
.kpi-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-value {
    margin-top: 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.kpi-footer {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.kpi-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    opacity: 0.15;
    font-size: 1.4rem;
}

/* Cards de módulos / atalhos do admin */
.modulos-grid,
.module-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colunas */
    gap: 16px;
}

/* Responsivo */
@media (max-width: 1000px) {
    .modulos-grid,
    .module-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .modulos-grid,
    .module-row {
        grid-template-columns: 1fr;
    }
}

.modulo-card,
.module-card {
    background-color: var(--surface);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.modulo-card:hover,
.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.18);
}

.modulo-card h3,
.module-card h3 {
    font-size: 0.98rem;
    margin-bottom: px;
    color: var(--text);
}

.modulo-card p,
.module-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modulo-card,
.module-card {
    margin-bottom: 0;  /* garante que o espaçamento venha do gap da grid */
}


.module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.module-icon {
    width: 42px;                  /* largura fixa */
    height: 42px;                 /* altura fixa -> quadrado */
    border-radius: 12px;          /* cantos arredondados */
    background: rgba(37, 99, 235, 0.06); /* fundo suave */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;            /* aumenta tamanho do emoji */
    flex-shrink: 0;               /* impede de “apertar” em layouts mais justos */
}


.module-footer {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.module-actions {
    display: flex;
    gap: 6px;
}

.module-action {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;      /* aumenta o ícone */
    color: #374151;
    text-decoration: none;
    transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
    box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.module-action:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15,23,42,0.18);
}

/* Remove sublinhado dos ícones de ação dos cards */
.module-actions a,
.module-actions a:hover,
.module-actions a:focus,
.module-action,
.module-action:hover,
.module-action:focus {
    text-decoration: none !important;
}

.two-column {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 16px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

.two-column .app-card h2 {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.two-column .result-help {
    font-size: 0.86rem;
    color: #6b7280;
    margin: 0;
}

.card-header-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.chart-range-toggle {
    display: inline-flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 2px;
    border-radius: 999px;
}

.range-pill {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}

.range-pill.is-active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 600;
}

.range-pill:hover {
    text-decoration: none;
}

.perfil-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 20px;
    margin-top: 14px;
}

@media (max-width: 900px) {
    .perfil-grid {
        grid-template-columns: 1fr;
    }
}



/* =======================================================================
   SIMULADOR PÚBLICO – TEXTOS E RESULTADO
   ======================================================================= */
.result-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;                  /* mais espaço entre cards de resultado */
    margin-top: 18px;
}

/* Card individual de resultado (LAP, LAI, LAO) */
.result-card {
    border-radius: 12px;
    padding: 14px 16px;
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 4px;
}

.result-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Barra de ações abaixo do resultado */
.result-actions {
    margin-top: 20px;           /* mais espaço do resultado para os botões */
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =======================================================================
   LOGIN
   ======================================================================= */

/* Layout de página cheia para a tela de login */
body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Wrapper central do cartão de login */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;  /* mais respiro vertical */
    background: radial-gradient(circle at top left, #dbeafe 0, transparent 55%),
                radial-gradient(circle at bottom right, #fee2e2 0, transparent 55%),
                var(--bg);
}

/* Cartão de login */
.login-card {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 28px 28px 24px;    /* mais espaço interno */
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.login-card h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    text-align: center;
    color: var(--text);
}

.login-card p.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;        /* mais espaço abaixo do subtítulo */
}

/* =======================================================================
   FOOTER PADRÃO (PÚBLICO E ADMIN)
   ======================================================================= */
.app-footer {
    background-color: #008596;
    color: #e5e7eb;
    padding: 10px 18px;
    margin-bottom: 0px;
}

.app-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    text-align: center;
}

.app-footer-logo {
    height: 22px;
    width: auto;
    display: block;
}

/* =======================================================================
   RESPONSIVIDADE GERAL
   ======================================================================= */
@media (max-width: 900px) {
    .app-main {
        margin-top: 30px;
    }
}

@media (max-width: 700px) {
    .stats-grid,
    .kpi-grid,
    .modulos-grid,
    .module-row {
        grid-template-columns: 1fr;
    }

    .app-header-title img {
        height: 44px;
    }

    .header-userarea {
        right: 8px;
    }
}

/* =======================================================================
   TABELA RESPONSIVA EM MOBILE (ADMIN)
   ======================================================================= */
@media (max-width: 750px) {
    .app-table,
    .app-table thead,
    .app-table tbody,
    .app-table th,
    .app-table td,
    .app-table tr {
        display: block;
    }

    .app-table thead {
        display: none;
    }

    .app-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        background-color: var(--surface);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .app-table td {
        border: none;
        border-bottom: 1px solid var(--border-subtle);
        position: relative;
        padding: 8px 8px 8px 45%;
        font-size: 0.8rem;
    }

    .app-table td:last-child {
        border-bottom: none;
    }

    .app-table td::before {
        position: absolute;
        left: 8px;
        top: 6px;
        width: 40%;
        white-space: nowrap;
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--text-muted);
        content: attr(data-label);
    }
}

/* =======================================================================
   MODAL RESULTADO SIMULADOR (PÚBLICO)
   ======================================================================= */

.modal-close-res {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color .15s ease, background-color .15s ease;
}

.modal-close-res:hover {
    color: #4b5563;
    background-color: #f3f4f6;
    border-radius: 999px;
}

