body { background: #f7f8fa; }
.card { border-radius: .75rem; }
.table { background: #fff; }
.page-card { max-width: 1500px; min-height: 520px; }
.form-control, .form-select { max-width: 720px; }
.details-grid dt { color: #6c757d; font-weight: 600; }
.details-grid dd { margin-bottom: .75rem; }
.table td, .table th { vertical-align: middle; }

.login-page {
    min-height: calc(100vh - 4rem);
}

.login-card {
    border-radius: 12px;
    overflow: hidden;
}
.login-logo-wrap { background: #fff; padding: 1rem 2rem .7rem; text-align: center; }
.login-logo { width: min(300px, 90%); height: 92px; object-fit: contain; }
.public-content { min-height: 100vh; }
.landing-page { --dm-blue: #076ca8; --dm-cyan: #0899a5; color: #18334a; background: #fff; min-height: 100vh; }
.landing-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(1.25rem, 6vw, 6rem); background: rgba(255,255,255,.96); border-bottom: 1px solid #dce9ef; position: sticky; top: 0; z-index: 20; }
.landing-brand img { display: block; width: min(300px, 50vw); height: 58px; object-fit: contain; }
.landing-hero { min-height: 620px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; padding: 5rem clamp(1.25rem, 8vw, 8rem); background: linear-gradient(135deg, #f3fbfd 0%, #fff 55%, #e8f4fa 100%); overflow: hidden; }
.landing-hero-copy { max-width: 760px; }.landing-kicker { color: var(--dm-cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.landing-hero h1 { color: #123654; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.05; font-weight: 800; margin: 1rem 0 1.5rem; }
.landing-hero-copy > p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.7; color: #536a7a; max-width: 680px; margin-bottom: 2rem; }
.landing-visual { width: min(430px, 80vw); aspect-ratio: 1; position: relative; margin: auto; border: 2px solid rgba(8,153,165,.22); border-radius: 50%; animation: landingPulse 4s ease-in-out infinite; }
.landing-visual::before,.landing-visual::after { content: ''; position: absolute; inset: 14%; border: 1px solid rgba(7,108,168,.25); border-radius: 50%; }.landing-visual::after { inset: 29%; }
.mind-core { position: absolute; inset: 34%; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,var(--dm-blue),var(--dm-cyan)); color: #fff; font-size: 3rem; font-weight: 800; box-shadow: 0 1.5rem 3rem rgba(7,108,168,.28); }
.mind-orbit { position: absolute; background: #fff; color: var(--dm-blue); border-radius: 2rem; padding: .65rem 1rem; font-weight: 700; box-shadow: 0 .6rem 1.8rem rgba(31,78,104,.15); }.orbit-one { left: -5%; top: 23%; }.orbit-two { right: -7%; top: 43%; }.orbit-three { left: 13%; bottom: 3%; }
.landing-section { padding: 6rem clamp(1.25rem, 8vw, 8rem); }.landing-section-heading { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.landing-section h2,.landing-cta h2 { color: #123654; font-size: clamp(2rem,3.5vw,3.2rem); font-weight: 800; margin: .8rem 0 1rem; }.landing-section-heading p { color: #607483; font-size: 1.1rem; }
.landing-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 1200px; margin: auto; }.landing-features article { padding: 2rem; border: 1px solid #dce9ef; border-radius: 1.25rem; background: #fff; box-shadow: 0 .75rem 2rem rgba(28,75,99,.08); }.landing-features article span { color: var(--dm-cyan); font-weight: 800; }.landing-features h3 { margin: .8rem 0; color: #174c6c; }.landing-features p { color: #607483; margin: 0; line-height: 1.65; }
.landing-movie-section { background: #eef8fa; }.explainer-movie { --movie-progress: 33%; position: relative; max-width: 1000px; min-height: 430px; margin: auto; padding: 4rem; display: grid; place-items: center; text-align: center; overflow: hidden; border-radius: 1.5rem; color: #fff; background: radial-gradient(circle at 80% 10%,#13aeba 0,transparent 35%),linear-gradient(145deg,#0b3e63,#076ca8); box-shadow: 0 1.5rem 3rem rgba(10,66,101,.23); }
.youtube-video { position: relative; width: min(1100px,100%); aspect-ratio: 16/9; margin: 0 auto; overflow: hidden; border-radius: 1.5rem; background: #082f49; box-shadow: 0 1.5rem 3rem rgba(10,66,101,.23); }.youtube-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }.video-fallback { margin: 1.25rem 0 0; text-align: center; color: #607483; }.video-fallback a { font-weight: 700; }
.movie-progress { position: absolute; left: 2rem; right: 2rem; top: 2rem; height: 5px; background: rgba(255,255,255,.25); border-radius: 1rem; overflow: hidden; }.movie-progress span { display: block; width: var(--movie-progress); height: 100%; background: #fff; transition: width .5s ease; }
.movie-scene { position: absolute; max-width: 720px; opacity: 0; transform: translateY(30px); transition: .65s ease; pointer-events: none; }.movie-scene.active { opacity: 1; transform: translateY(0); }.movie-scene strong { display: block; font-size: clamp(2rem,5vw,4rem); line-height: 1.05; }.movie-scene p { font-size: 1.2rem; margin: 1.25rem 0 0; opacity: .9; }.movie-control { position: absolute; right: 2rem; bottom: 2rem; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 4.5rem clamp(1.25rem,8vw,8rem); background: linear-gradient(120deg,#076ca8,#0899a5); color: #fff; }.landing-cta .landing-kicker,.landing-cta h2 { color: #fff; }.landing-cta h2 { max-width: 800px; margin-bottom: 0; }
@keyframes landingPulse { 50% { transform: scale(1.025); box-shadow: 0 0 5rem rgba(8,153,165,.14); } }
@media (prefers-reduced-motion: reduce) { .landing-visual { animation: none; } }
@media (max-width:800px) { .landing-hero { grid-template-columns: 1fr; padding-top: 3.5rem; }.landing-features { grid-template-columns: 1fr; }.landing-cta { align-items: flex-start; flex-direction: column; }.explainer-movie { min-height: 380px; padding: 3rem 1.5rem; }.landing-login { font-size: .85rem; }.landing-brand img { width: 190px; } }

.home-menu .btn {
    min-height: 42px;
}


.cidade-card {
    max-width: 1280px;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
}

.cidade-card .form-control,
.cidade-card .form-select {
    max-width: 100%;
}

.ibge-card {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ibge-card .card-body {
    padding: 1rem;
}

.ibge-card .btn {
    min-height: 42px;
}

.topbar {
    height: 76px !important;
    min-height: 76px !important;
    padding: 8px 16px !important;
    overflow: hidden;
}

    .topbar .container-fluid {
        height: 100%;
        display: flex;
        align-items: center;
    }

.logo-container {
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin-left: 55px;
    height: 60px;
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 76px);
    position: relative;
}

.dm-topbar {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.dm-topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.dm-menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: .7rem;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease;
}

.dm-menu-toggle:hover,
.dm-menu-toggle:focus-visible {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.62);
    outline: none;
}

.dm-brand {
    display: flex;
    align-items: center;
    width: 240px;
    height: 60px;
    overflow: hidden;
    text-decoration: none;
}

.dm-brand img {
    display: block;
    width: 220px;
    height: 58px;
    max-width: 220px;
    max-height: 58px;
    object-fit: contain;
}

.sidebar {
    width: 72px;
    min-width: 72px;
    background: darkcyan;
    border-right: 1px solid rgba(0, 0, 0, .12);
    padding: .75rem .55rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width .2s ease, min-width .2s ease, transform .2s ease;
    z-index: 1030;
}

html.sidebar-expanded .sidebar {
    width: 268px;
    min-width: 268px;
}

.sidebar-heading {
    height: 35px;
    display: flex;
    align-items: center;
    padding: 0 .55rem;
    margin-bottom: .35rem;
    color: #d9ffff;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.sidebar-heading-text,
.sidebar-label,
.sidebar-chevron,
.sidebar-submenu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease;
}

html.sidebar-expanded .sidebar-heading-text,
html.sidebar-expanded .sidebar-label,
html.sidebar-expanded .sidebar-chevron,
html.sidebar-expanded .sidebar-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.sidebar-link,
.sidebar-group-summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 650;
    padding: .62rem .75rem;
    border-radius: .65rem;
    border-left: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.sidebar-group-summary {
    list-style: none;
}

.sidebar-group-summary::-webkit-details-marker {
    display: none;
}

.sidebar-icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1;
}

.sidebar-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-chevron {
    margin-left: auto;
    font-size: .78rem;
    transition: transform .15s ease, opacity .12s ease;
}

.sidebar-group[open] > .sidebar-group-summary .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-group-summary:hover,
.sidebar-group-summary:focus-visible {
    color: #064f59;
    background: #ffffff;
    border-left-color: #007c91;
    outline: none;
}

.sidebar-link.active,
.sidebar-group.active-group > .sidebar-group-summary {
    color: #064f59;
    background: #ffffff;
    border-left-color: #007c91;
    box-shadow: 0 .15rem .35rem rgba(0, 0, 0, .12);
}

.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: .18rem;
    padding: .25rem .15rem .4rem 2.65rem;
}

html.sidebar-expanded .sidebar-group[open] > .sidebar-submenu {
    display: flex;
}

.sidebar-sublink {
    display: block;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.25;
    padding: .55rem .65rem;
    border-radius: .5rem;
    border-left: 3px solid transparent;
}

.sidebar-sublink:hover,
.sidebar-sublink:focus-visible,
.sidebar-sublink.active {
    color: #064f59;
    background: #ffffff;
    border-left-color: #007c91;
    outline: none;
}

.app-content {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: hidden;
    transition: padding .2s ease;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 76px 0 0 0;
    border: 0;
    background: rgba(15, 23, 42, .42);
    z-index: 1020;
}

/* Tela de pessoas: aproveita a largura útil e mantém todas as ações visíveis. */
.pessoas-page {
    width: 100%;
    max-width: 100%;
}

.pessoas-card {
    max-width: none;
    min-height: auto;
    padding: .75rem;
    overflow-x: auto;
}

.pessoas-table {
    width: 100%;
    min-width: 1320px;
    table-layout: fixed;
    font-size: .9rem;
}

.pessoas-table th,
.pessoas-table td {
    padding: .65rem .5rem;
    overflow-wrap: anywhere;
}

.pessoas-table .col-tipo { width: 4%; }
.pessoas-table .col-nome { width: 10%; }
.pessoas-table .col-documento { width: 9%; }
.pessoas-table .col-telefone { width: 9%; }
.pessoas-table .col-email { width: 17%; }
.pessoas-table .col-empresa { width: 11%; }
.pessoas-table .col-departamento { width: 9%; }
.pessoas-table .col-cargo { width: 9%; }
.pessoas-table .col-endereco { width: 10%; }
.pessoas-table .col-ativo { width: 4%; }
.pessoas-table .col-acoes { width: 8%; }

.pessoas-acoes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    min-width: 78px;
}

.pessoas-acoes .btn {
    width: 100%;
    white-space: nowrap;
}

/* Mantém o CRUD visível mesmo quando a tabela precisa de rolagem horizontal. */
.pessoas-table th:last-child,
.pessoas-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: -.35rem 0 .5rem rgba(0, 0, 0, .08);
}

.pessoas-table thead th:last-child {
    z-index: 3;
}

.pessoas-table.table-striped > tbody > tr:nth-of-type(odd) > td:last-child {
    background: #f2f2f2;
}

.pessoas-table.table-hover > tbody > tr:hover > td:last-child {
    background: #eceff1;
}

.controle-operacoes-table {
    min-width: 720px;
}

.controle-operacoes-table th:not(:first-child),
.controle-operacoes-table td:not(:first-child) {
    width: 110px;
}

.controle-operacoes-table .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
        min-height: calc(100vh - 76px);
    }

    .sidebar {
        position: fixed;
        top: 76px;
        bottom: 0;
        left: 0;
        width: min(86vw, 300px);
        min-width: min(86vw, 300px);
        padding: .8rem .7rem 1.25rem;
        border-right: 1px solid rgba(0, 0, 0, .15);
        transform: translateX(-102%);
        box-shadow: .5rem 0 1.25rem rgba(0, 0, 0, .18);
    }

    html.sidebar-expanded .sidebar {
        width: min(86vw, 300px);
        min-width: min(86vw, 300px);
    }

    body.menu-mobile-open {
        overflow: hidden;
    }

    body.menu-mobile-open .sidebar {
        transform: translateX(0);
    }

    body.menu-mobile-open .sidebar-backdrop {
        display: block;
    }

    .sidebar-heading-text,
    .sidebar-label,
    .sidebar-chevron,
    .sidebar-submenu,
    html.sidebar-expanded .sidebar-heading-text,
    html.sidebar-expanded .sidebar-label,
    html.sidebar-expanded .sidebar-chevron,
    html.sidebar-expanded .sidebar-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-group[open] > .sidebar-submenu,
    html.sidebar-expanded .sidebar-group[open] > .sidebar-submenu {
        display: flex;
    }

    .app-content {
        padding: 1rem;
    }

    .pessoas-table {
        min-width: 1180px;
    }
}
.logo-topbar {
    display: block;
    width: auto;
    height: 58px;
    max-width: min(430px, 55vw);
    object-fit: contain;
}

@media (max-width: 576px) {
    .logo-topbar {
        height: 42px;
        max-width: 210px;
    }
}
.navbar-brand {
    background-color: #fff;
    border-radius: 8px;
    padding: 3px 10px !important;
}
.topbar {
    min-height: 76px;
    padding: 8px 16px;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 !important;
    margin: 0;
}

.logo-topbar {
    display: block;
    width: auto;
    height: 54px;
    max-width: 390px;
    object-fit: contain;
    background-color: white;
    border-radius: 6px;
}

@media (max-width: 576px) {
    .topbar {
        min-height: 62px;
    }

    .logo-container {
        height: 46px;
    }

    .logo-topbar {
        height: 42px;
        max-width: 230px;
    }
}
.topbar.bg-primary {
    background-color: darkcyan !important;
    }
.topbar {
    min-height: 76px;
    padding: 8px 16px;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 5px 12px !important;
    margin-left: 55px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
}

@media (max-width: 576px) {
    .logo-container {
        margin-left: 0;
        padding: 4px 8px !important;
    }
}

@media (max-width: 576px) {
    .dm-topbar { padding: 0 10px; }
    .dm-topbar-inner { gap: .45rem; }
    .dm-brand { width: 156px; height: 48px; }
    .dm-brand img { width: 154px; height: 46px; max-width: 154px; max-height: 46px; }
}


/* V17: marca positiva original em superfície clara; menu preservado. */
.dm-brand { background: #fff; border-radius: .5rem; justify-content: center; flex-shrink: 0; }
.dm-brand img { width: calc(100% - 16px); height: auto; max-height: 48px; }
@media (max-width: 800px) {
    .dm-brand img { width: calc(100% - 12px); height: auto; max-height: 40px; }
}

/* V17 final: fluxo assistido para atualização do consumo de IA. */
.consumo-ia-assistente {
    border: 1px solid rgba(15, 118, 110, .22);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(240, 253, 250, .98), #fff 62%);
    box-shadow: 0 .5rem 1.4rem rgba(15, 23, 42, .06);
}
.consumo-ia-assistente .btn-lg { white-space: nowrap; }
.consumo-ia-passo {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .82);
}
.consumo-ia-passo strong { color: #0f766e; }
.consumo-ia-passo span { color: #475569; font-size: .92rem; }
@media (max-width: 767.98px) {
    .consumo-ia-assistente .btn-lg { width: 100%; white-space: normal; }
}

/* V17 final: linguagem visual interna aproximada da Entrega Completa, sem alterar rotas ou regras de negócio. */
.app-content {
    background: #f8fafc;
}
.app-content h1,
.app-content .h1 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -.025em;
}
.app-content h2,
.app-content .h2,
.app-content .h3,
.app-content .h4,
.app-content .h5 {
    color: #1e293b;
}
.app-content .card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .05);
}
.app-content .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(241, 245, 249, .72);
    --bs-table-hover-bg: rgba(226, 232, 240, .66);
}
.app-content .table thead th {
    color: #334155;
    background: #f1f5f9;
    border-bottom-color: #cbd5e1;
    font-size: .78rem;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.app-content .form-control,
.app-content .form-select {
    border-color: #cbd5e1;
    border-radius: .7rem;
}
.app-content .form-control:focus,
.app-content .form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .12);
}
.app-content .btn {
    border-radius: .65rem;
    font-weight: 600;
}

/* =========================================================
   V18 - interface interna alinhada à Entrega Completa
   Mantém Bootstrap, rotas, permissões e regras de negócio.
   ========================================================= */
:root {
    --dm-navy: #002956;
    --dm-navy-2: #092e52;
    --dm-teal: #088384;
    --dm-gold: #b5841c;
    --dm-ink: #182536;
    --dm-muted: #66758a;
    --dm-paper: #f7f8fa;
    --dm-surface: #ffffff;
    --dm-line: #dfe5eb;
    --dm-soft: #eef3f6;
    --dm-radius: 16px;
    --dm-shadow: 0 10px 30px rgba(9,46,82,.08);
}

html, body { background: var(--dm-paper); color: var(--dm-ink); }
body { font-family: "Segoe UI", "Source Sans 3", Arial, sans-serif; }

.dm-topbar {
    min-height: 76px;
    padding: 8px 18px;
    background: rgba(255,255,255,.98) !important;
    border-bottom: 1px solid var(--dm-line);
    box-shadow: 0 4px 18px rgba(9,46,82,.06) !important;
    position: sticky;
    top: 0;
    z-index: 1035;
}
.dm-topbar-inner { min-height: 58px; }
.dm-menu-toggle {
    color: var(--dm-navy) !important;
    background: #f3f7fa !important;
    border: 1px solid var(--dm-line) !important;
    border-radius: 12px !important;
}
.dm-menu-toggle:hover { background: #eaf1f5 !important; }
.dm-brand {
    width: min(330px, 38vw) !important;
    height: 54px !important;
    padding: 4px 10px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
}
.dm-brand img {
    width: 100% !important;
    height: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    object-position: left center;
}
.dm-user-name { color: var(--dm-navy) !important; font-weight: 600; }
.dm-logout { border-color: #c8d5e0; color: var(--dm-navy); }
.dm-logout:hover { background: var(--dm-navy); border-color: var(--dm-navy); color: #fff; }

.sidebar {
    background: #fff !important;
    border-right: 1px solid var(--dm-line) !important;
    box-shadow: 8px 0 24px rgba(9,46,82,.035);
}
.sidebar-heading { color: #8190a0 !important; }
.sidebar-link, .sidebar-group-summary {
    color: #34465a !important;
    border-radius: 11px !important;
}
.sidebar-link:hover, .sidebar-group-summary:hover { background: #f1f6f8 !important; color: var(--dm-navy) !important; }
.sidebar-link.active, .sidebar-group.active-group > .sidebar-group-summary {
    background: #e8f2f3 !important;
    color: var(--dm-teal) !important;
    box-shadow: inset 3px 0 0 var(--dm-teal);
}
.sidebar-icon { color: currentColor !important; }
.sidebar-submenu { border-left-color: #d8e2e8 !important; }
.sidebar-sublink { color: #5c6d7f !important; }
.sidebar-sublink.active { color: var(--dm-teal) !important; font-weight: 700; }

.app-content {
    background: var(--dm-paper) !important;
    padding: clamp(18px, 2.2vw, 34px) !important;
}
.app-content > .container-fluid, .app-content > .container { max-width: 1540px; }
.app-content h1, .app-content h2, .app-content h3, .app-content h4 { color: var(--dm-navy-2) !important; }
.app-content h1 { font-size: clamp(1.65rem, 2.1vw, 2.35rem); font-weight: 750; letter-spacing: -.03em; }
.app-content h2 { font-weight: 700; }

.app-content .card, .page-card {
    background: #fff;
    border: 1px solid var(--dm-line) !important;
    border-radius: var(--dm-radius) !important;
    box-shadow: var(--dm-shadow) !important;
}
.app-content .card-header {
    background: #f7fafb;
    border-bottom: 1px solid var(--dm-line);
    border-radius: var(--dm-radius) var(--dm-radius) 0 0 !important;
}
.app-content .table-responsive {
    border-radius: var(--dm-radius);
    background: #fff;
}
.app-content .table { margin-bottom: 0; color: #26384b; }
.app-content .table thead th {
    background: #edf3f6 !important;
    color: #476075 !important;
    border-bottom: 1px solid #d4dee6 !important;
    padding-top: .9rem;
    padding-bottom: .9rem;
    font-size: .75rem !important;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    vertical-align: middle;
}
.app-content .table td { padding-top: .82rem; padding-bottom: .82rem; vertical-align: middle; border-color: #edf0f3; }
.app-content .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: #fafcfd; }
.app-content .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: #f0f7f8; }

.app-content .form-label { color: #385065; font-weight: 650; margin-bottom: .4rem; }
.app-content .form-control, .app-content .form-select {
    min-height: 44px;
    border: 1px solid #cbd7e0;
    border-radius: 11px;
    background-color: #fff;
}
.app-content textarea.form-control { min-height: 110px; }
.app-content .form-control:focus, .app-content .form-select:focus {
    border-color: var(--dm-teal);
    box-shadow: 0 0 0 .22rem rgba(8,131,132,.12);
}
.app-content .form-check-input:checked { background-color: var(--dm-teal); border-color: var(--dm-teal); }
.app-content .text-muted, .app-content small { color: #718095 !important; }

.app-content .btn { min-height: 40px; border-radius: 10px; font-weight: 700; }
.app-content .btn-sm { min-height: 34px; }
.app-content .btn-primary { background: var(--dm-navy); border-color: var(--dm-navy); }
.app-content .btn-primary:hover { background: #001f42; border-color: #001f42; }
.app-content .btn-success { background: var(--dm-teal); border-color: var(--dm-teal); }
.app-content .btn-success:hover { background: #066e70; border-color: #066e70; }
.app-content .btn-warning { background: #e7b548; border-color: #dca62f; color: #2f2715; }
.app-content .btn-outline-primary { color: var(--dm-navy); border-color: #9aafc0; }
.app-content .btn-outline-primary:hover { color: #fff; background: var(--dm-navy); border-color: var(--dm-navy); }

.app-content .alert { border-radius: 12px; border-width: 1px; }
.app-content .badge { border-radius: 999px; padding: .45em .7em; }

/* Login com logo positivo e linguagem visual pública. */
.login-page { min-height: calc(100vh - 3rem); padding: 2rem 0; }
.login-card { overflow: hidden; max-width: 520px; margin: 0 auto; }
.login-logo-wrap { padding: 1.45rem 2rem .9rem !important; background: #fff !important; }
.login-logo { width: min(360px, 92%) !important; height: auto !important; max-height: 86px; }
.login-card .card-header { background: var(--dm-navy) !important; border: 0; padding: .9rem 1.25rem; }
.login-card .card-body { padding: 1.5rem; }

/* Dashboard interno. */
.dm-dashboard { max-width: 1420px; margin: 0 auto; }
.dm-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(24px, 3vw, 42px);
    margin-bottom: 24px;
    border: 1px solid #dce5eb;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #eef6f7 58%, #f5f0e7 100%);
    box-shadow: var(--dm-shadow);
}
.dm-page-hero > div { max-width: 820px; }
.dm-page-hero h1 { margin: .35rem 0 .6rem; }
.dm-page-hero p { margin: 0; color: var(--dm-muted); font-size: 1.04rem; line-height: 1.65; }
.dm-eyebrow { color: var(--dm-teal); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dm-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.dm-quick-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    min-height: 132px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--dm-line);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(9,46,82,.055);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dm-quick-card:hover { transform: translateY(-2px); border-color: #a6c7c8; box-shadow: 0 12px 28px rgba(9,46,82,.09); color: inherit; }
.dm-quick-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: #e8f2f3; color: var(--dm-teal); font-size: 1.25rem; }
.dm-quick-card strong { display: block; color: var(--dm-navy); font-size: 1rem; margin-bottom: 6px; }
.dm-quick-card small { display: block; color: var(--dm-muted); line-height: 1.45; }
.dm-info-panel { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--dm-line); border-radius: 16px; }
.dm-info-icon { color: var(--dm-gold); font-size: 1.35rem; }
.dm-info-panel p { color: var(--dm-muted); }

/* Padrões responsivos para telas internas. */
@media (max-width: 1100px) {
    .dm-quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dm-brand { width: min(280px, 42vw) !important; }
}
@media (max-width: 767.98px) {
    .dm-topbar { min-height: 66px; padding: 6px 10px; }
    .dm-brand { width: min(205px, 58vw) !important; height: 46px !important; }
    .dm-brand img { height: 39px !important; }
    .dm-page-hero { align-items: stretch; flex-direction: column; }
    .dm-page-hero .btn { width: 100%; }
    .dm-quick-grid { grid-template-columns: 1fr; }
    .app-content { padding: 14px !important; }
    .app-content .d-flex.justify-content-between { align-items: stretch !important; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
