:root {
    --color-deep: #1f3779;
    --color-ocean: #5fb5c0;
    --color-sky: #8bd3dc;
    --color-gold: #d7b66d;
    --color-cream: #fbf7ee;
    --color-sand: #efe4cb;
    --color-ink: #26304d;
    --color-line: rgba(31, 55, 121, 0.16);
    --color-white: #ffffff;
    --shadow-soft: 0 24px 60px rgba(31, 55, 121, 0.12);
    --shadow-card: 0 16px 36px rgba(31, 55, 121, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--color-ink);
    font-family: "Trebuchet MS", Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(215, 182, 109, 0.22), transparent 32%),
        linear-gradient(160deg, #fffefb 0%, #f7f1e4 52%, #eef7f7 100%);
}

/* ── Navbar Frosted Glass ─────────────────────────────── */

.topnav-wrap {
    padding: 1rem 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px rgba(31, 55, 121, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.topnav-brand-name {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-deep);
}

.topnav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    padding-left: 1.5rem;
}

.topnav-link {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.topnav-link:hover {
    background: rgba(31, 55, 121, 0.07);
    color: var(--color-deep);
}

.topnav-link.is-active {
    background: linear-gradient(135deg, var(--color-deep), #2f519e);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 55, 121, 0.22);
}

.topnav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.topnav-user {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(38, 48, 77, 0.65);
}

.topnav-perfil-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-ink);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.topnav-perfil-link:hover {
    background: rgba(31, 55, 121, 0.07);
}

.topnav-logout {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 55, 121, 0.20);
    background: transparent;
    color: var(--color-deep);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.topnav-logout:hover {
    background: rgba(31, 55, 121, 0.07);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .topnav-wrap {
        padding: 0.75rem 0.75rem 0;
    }

    .topnav {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .topnav-menu {
        padding-left: 0;
        order: 3;
        width: 100%;
    }

    .topnav-brand-name {
        font-size: 0.95rem;
    }
}

body.cadastros-page {
    background: #F4F6F9;
}

/* ── Módulo Cadastros ─────────────────────────────────── */

.cadastros-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cadastros-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cadastros-header .cadastros-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    line-height: 1.1;
    color: #ffffff;
}

.cadastros-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.cadastros-back-btn {
    flex-shrink: 0;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cadastros-back-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    color: #ffffff;
}

.cadastros-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(19, 78, 94, 0.10);
    box-shadow: 0 4px 16px rgba(19, 78, 94, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cadastros-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(19, 78, 94, 0.13);
}

.cadastros-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #134E5E, #71B280);
}

.cadastros-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cadastros-card-number {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #71B280;
}

.cadastros-card-title {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: #134E5E;
}

.cadastros-card-desc {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(38, 48, 77, 0.68);
    flex: 1;
}

.cadastros-card-btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #134E5E, #1d6b5f);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}

.cadastros-card-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .cadastros-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem 1.5rem;
    }
}

/* ── Identidade Cadastros: páginas internas ───────────── */

body.cadastros-page h1 {
    color: #134E5E;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body.cadastros-page .text-secondary {
    color: rgba(19, 78, 94, 0.65) !important;
}

/* Cards */
body.cadastros-page .card {
    border-radius: 16px;
    border: 1px solid rgba(19, 78, 94, 0.10) !important;
    box-shadow: 0 4px 16px rgba(19, 78, 94, 0.07) !important;
    border-top: 4px solid #134E5E !important;
}

/* Tabela */
body.cadastros-page .table-light th {
    background-color: rgba(19, 78, 94, 0.07) !important;
    color: #134E5E;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(19, 78, 94, 0.15) !important;
}

body.cadastros-page .table-hover tbody tr:hover {
    background-color: rgba(113, 178, 128, 0.06);
}

/* Links primários na tabela */
body.cadastros-page .link-primary {
    color: #134E5E !important;
}

body.cadastros-page .link-primary:hover {
    color: #71B280 !important;
}

/* Botões primários */
body.cadastros-page .btn-primary {
    background: linear-gradient(135deg, #134E5E, #1d6b5f);
    border-color: transparent;
    color: #fff;
}

body.cadastros-page .btn-primary:hover,
body.cadastros-page .btn-primary:focus {
    background: linear-gradient(135deg, #0f3d4a, #165c50);
    border-color: transparent;
}

/* Botões outline-primary */
body.cadastros-page .btn-outline-primary {
    color: #134E5E;
    border-color: #134E5E;
}

body.cadastros-page .btn-outline-primary:hover {
    background-color: #134E5E;
    border-color: #134E5E;
    color: #fff;
}

/* Botão outline-success (visualizar impressão) */
body.cadastros-page .btn-outline-success {
    color: #71B280;
    border-color: #71B280;
}

body.cadastros-page .btn-outline-success:hover {
    background-color: #71B280;
    border-color: #71B280;
    color: #fff;
}

/* Paginação */
body.cadastros-page .page-link {
    color: #134E5E;
    border-color: rgba(19, 78, 94, 0.20);
}

body.cadastros-page .page-item.active .page-link {
    background-color: #134E5E;
    border-color: #134E5E;
    color: #fff;
}

body.cadastros-page .page-link:hover {
    background-color: rgba(19, 78, 94, 0.07);
    color: #134E5E;
}

/* Formulários */
body.cadastros-page .form-label {
    color: #134E5E;
    font-weight: 600;
    font-size: 0.9rem;
}

body.cadastros-page .form-control:focus,
body.cadastros-page .form-select:focus {
    border-color: #71B280;
    box-shadow: 0 0 0 3px rgba(113, 178, 128, 0.18);
}

/* Card footer */
body.cadastros-page .card-footer {
    background: rgba(19, 78, 94, 0.03) !important;
    border-top: 1px solid rgba(19, 78, 94, 0.10);
}

h1,
h2,
strong,
.eyebrow,
.user-badge {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

code {
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    background: rgba(31, 55, 121, 0.08);
}

.message-stack {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    display: grid;
    gap: 0.75rem;
}

.message {
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
}

.message.success {
    border-color: rgba(62, 139, 110, 0.24);
}

.message.error {
    border-color: rgba(159, 44, 44, 0.24);
}

.eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-deep);
}

.login-page {
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(95, 181, 192, 0.18), transparent 34%),
        linear-gradient(rgba(251, 247, 238, 0.78), rgba(251, 247, 238, 0.92)),
        linear-gradient(135deg, rgba(31, 55, 121, 0.10), rgba(113, 178, 128, 0.08));
    pointer-events: none;
    opacity: 0.6;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card,
.topbar,
.sidebar-card,
.panel-hero,
.workspace-card {
    backdrop-filter: blur(10px);
}

.login-card {
    width: min(100%, 480px);
    padding: 2.2rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.login-card-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.login-card-header h2 {
    margin: 0;
    font-size: 2rem;
}

.login-symbol {
    min-width: 160px;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    background: linear-gradient(135deg, var(--color-deep), #2f519e);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-form {
    display: grid;
    gap: 1.25rem;
}

.form-field {
    display: grid;
    gap: 0.55rem;
}

.form-field label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-deep);
}

.auth-input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(31, 55, 121, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    font: inherit;
    color: var(--color-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-ocean);
    box-shadow: 0 0 0 4px rgba(95, 181, 192, 0.15);
    transform: translateY(-1px);
}

.primary-button,
.ghost-button {
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font: inherit;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--color-deep), #2f519e);
    color: var(--color-white);
    box-shadow: 0 18px 28px rgba(31, 55, 121, 0.18);
}

.ghost-button {
    border: 1px solid rgba(31, 55, 121, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-deep);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.form-alert,
.field-error {
    color: #8f3030;
}

.form-alert {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(191, 72, 72, 0.08);
    border: 1px solid rgba(191, 72, 72, 0.12);
}

.field-error {
    font-size: 0.85rem;
}

.login-note {
    margin: 1.5rem 0 0;
    color: rgba(38, 48, 77, 0.82);
    line-height: 1.7;
    text-align: center;
}

.login-note p {
    margin: 0;
}

.login-note cite {
    display: block;
    margin-top: 0.45rem;
    font-style: normal;
    font-weight: 700;
    color: var(--color-deep);
}

.dashboard-page {
    padding: 1.5rem;
}

.topbar,
.sidebar-card,
.panel-hero,
.workspace-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 28px;
    position: sticky;
    top: 1.5rem;
    z-index: 10;
}

.topbar-brand,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-brand img {
    width: 170px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(95, 181, 192, 0.12);
    color: var(--color-deep);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.sidebar-card {
    position: sticky;
    top: 7.5rem;
    padding: 1.35rem;
    border-radius: var(--radius-xl);
}

.sidebar-head h2,
.section-head h2 {
    margin: 0;
    color: var(--color-deep);
}

.sidebar-head h2 {
    font-size: 1.65rem;
}

.sidebar-nav {
    display: grid;
    gap: 1.35rem;
    margin-top: 1.5rem;
}

.nav-group {
    display: grid;
    gap: 0.55rem;
}

.nav-group-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(38, 48, 77, 0.58);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-ink);
    background: rgba(31, 55, 121, 0.04);
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    transform: translateX(3px);
    border-color: rgba(31, 55, 121, 0.12);
    background: rgba(31, 55, 121, 0.07);
}

.nav-link.is-active {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-deep), #2f519e);
    box-shadow: 0 14px 28px rgba(31, 55, 121, 0.18);
}

.main-panel {
    display: grid;
    gap: 1.5rem;
}

.panel-hero {
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) minmax(220px, 0.8fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(31, 55, 121, 0.96), rgba(31, 55, 121, 0.82)),
        linear-gradient(90deg, rgba(95, 181, 192, 0.3), rgba(215, 182, 109, 0.18));
    color: var(--color-white);
}

.panel-hero .eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.panel-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
}

.panel-copy p:last-child {
    max-width: 48rem;
    margin-top: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.panel-illustration {
    display: flex;
    align-items: stretch;
}

.panel-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.9;
}

.workspace-board,
.module-sections {
    display: grid;
    gap: 1.25rem;
}

.workspace-board {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.workspace-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
}

.workspace-card p,
.module-section small {
    line-height: 1.75;
    color: rgba(38, 48, 77, 0.82);
}

.workspace-card p {
    margin: 0;
}

.focus-list {
    margin: 1.15rem 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.6rem;
}

.focus-list li {
    line-height: 1.7;
}

.workspace-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.workspace-card-image img {
    width: min(100%, 220px);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.module-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-section {
    scroll-margin-top: 8rem;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(95, 181, 192, 0.16);
    color: var(--color-deep);
    font-size: 0.85rem;
    font-weight: 700;
}

.module-section small {
    display: block;
    margin-top: 0.9rem;
}

@media (max-width: 1080px) {
    .dashboard-layout,
    .panel-hero,
    .workspace-board,
    .module-sections {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .login-shell,
    .dashboard-page {
        padding: 1rem;
    }

    .login-card,
    .sidebar-card,
    .panel-hero,
    .workspace-card {
        padding: 1.35rem;
    }

    .topbar,
    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-brand img {
        width: 150px;
    }

    .panel-copy h1 {
        font-size: 2.3rem;
    }
}

/* ── Módulo Configurações ─────────────────────────────── */

body.configuracoes-page {
    background: #F4F6F9;
}

.config-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #2d2d2d 0%, #4a4a4a 60%, #6b6b6b 100%);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.config-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: #ffffff;
}

.config-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.70);
}

/* Avatar pequeno — tabela */
.config-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.config-avatar-placeholder-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a4a4a, #6b6b6b);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Avatar grande — perfil */
.config-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.config-avatar-placeholder-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a4a4a, #6b6b6b);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar topnav */
.topnav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.7);
}

.topnav-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f3779, #2f519e);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.configuracoes-page h1 {
    color: #2d2d2d;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body.configuracoes-page .card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
    border-top: 4px solid #4a4a4a !important;
}

body.configuracoes-page .table-light th {
    background-color: rgba(0,0,0,0.04) !important;
    color: #2d2d2d;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(0,0,0,0.10) !important;
}

body.configuracoes-page .btn-primary {
    background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
    border-color: transparent;
    color: #fff;
}

body.configuracoes-page .btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
    border-color: transparent;
}

body.configuracoes-page .btn-outline-primary {
    color: #2d2d2d;
    border-color: #2d2d2d;
}

body.configuracoes-page .btn-outline-primary:hover {
    background-color: #2d2d2d;
    border-color: #2d2d2d;
    color: #fff;
}

body.configuracoes-page .form-label {
    color: #2d2d2d;
    font-weight: 600;
    font-size: 0.9rem;
}

body.configuracoes-page .form-control:focus,
body.configuracoes-page .form-select:focus {
    border-color: #6b6b6b;
    box-shadow: 0 0 0 3px rgba(107,107,107,0.18);
}

@media (max-width: 768px) {
    .config-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem 1.5rem;
    }
}

/* ── Dashboard Principal ──────────────────────────────── */

.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 3rem 2.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #1f3779 0%, #2f519e 55%, #3a6ab5 100%);
    color: #ffffff;
    margin-bottom: 2rem;
}

.dash-hero-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.dash-hero-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    line-height: 1.1;
    color: #ffffff;
}

.dash-hero-sub {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
}

.dash-hero-stats {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}

.dash-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 80px;
}

.dash-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: #ffffff;
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.dash-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dash-module-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(31, 55, 121, 0.08);
    box-shadow: 0 4px 16px rgba(31, 55, 121, 0.07);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(31, 55, 121, 0.13);
}

.dash-module-accent {
    height: 5px;
}

.dash-module-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dash-module-number {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.dash-module-title {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.dash-module-desc {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(38, 48, 77, 0.65);
    flex: 1;
}

.dash-module-btn {
    display: inline-block;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    align-self: flex-start;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dash-module-card:hover .dash-module-btn {
    opacity: 0.88;
    transform: translateX(2px);
}

/* Cadastros */
.dash-module-cadastros .dash-module-accent {
    background: linear-gradient(90deg, #134E5E, #71B280);
}

.dash-module-cadastros .dash-module-number {
    color: #71B280;
}

.dash-module-cadastros .dash-module-title {
    color: #134E5E;
}

.dash-module-cadastros .dash-module-btn {
    background: linear-gradient(135deg, #134E5E, #1d6b5f);
}

/* Financeiro */
.dash-module-financeiro .dash-module-accent {
    background: linear-gradient(90deg, #C2561A, #E8963F);
}

.dash-module-financeiro .dash-module-number {
    color: #D97130;
}

.dash-module-financeiro .dash-module-title {
    color: #C2561A;
}

.dash-module-financeiro .dash-module-btn {
    background: linear-gradient(135deg, #C2561A, #D97130);
}

@media (max-width: 768px) {
    .dash-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }

    .dash-hero-stats {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .dash-stat {
        flex: 1;
        min-width: unset;
        padding: 0.75rem 0.5rem;
    }
}

/* ── Módulo Financeiro ────────────────────────────────── */

body.financeiro-page {
    background: #F4F7FA;
}

.financeiro-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #C2561A 0%, #D97130 60%, #E8963F 100%);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.financeiro-header-copy {
    display: flex;
    flex-direction: column;
}

.financeiro-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    line-height: 1.1;
    color: #ffffff;
}

.financeiro-back-btn {
    flex-shrink: 0;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.financeiro-back-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    color: #ffffff;
}

.financeiro-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(31, 55, 121, 0.10);
    box-shadow: 0 4px 16px rgba(31, 55, 121, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.financeiro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(31, 55, 121, 0.14);
}

.financeiro-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #C2561A, #E8963F);
}

.financeiro-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.financeiro-card-number {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #D97130;
}

.financeiro-card-title {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: #C2561A;
}

.financeiro-card-desc {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(38, 48, 77, 0.68);
    flex: 1;
}

.financeiro-card-btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #C2561A, #D97130);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}

.financeiro-card-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .financeiro-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem 1.5rem;
    }
}

/* ── Identidade Financeiro: páginas internas ──────────── */

body.financeiro-page h1 {
    color: #C2561A;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.financeiro-header .financeiro-title {
    color: #ffffff;
}

body.financeiro-page .text-secondary {
    color: rgba(194, 86, 26, 0.65) !important;
}

body.financeiro-page .card {
    border-radius: 16px;
    border: 1px solid rgba(194, 86, 26, 0.10) !important;
    box-shadow: 0 4px 16px rgba(194, 86, 26, 0.07) !important;
    border-top: 4px solid #C2561A !important;
}

body.financeiro-page .table-light th {
    background-color: rgba(194, 86, 26, 0.07) !important;
    color: #C2561A;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(194, 86, 26, 0.15) !important;
}

body.financeiro-page .table-hover tbody tr:hover {
    background-color: rgba(232, 150, 63, 0.06);
}

body.financeiro-page .link-primary {
    color: #C2561A !important;
}

body.financeiro-page .link-primary:hover {
    color: #E8963F !important;
}

body.financeiro-page .btn-primary {
    background: linear-gradient(135deg, #C2561A, #D97130);
    border-color: transparent;
    color: #fff;
}

body.financeiro-page .btn-primary:hover,
body.financeiro-page .btn-primary:focus {
    background: linear-gradient(135deg, #a34516, #bf6025);
    border-color: transparent;
}

body.financeiro-page .btn-outline-primary {
    color: #C2561A;
    border-color: #C2561A;
}

body.financeiro-page .btn-outline-primary:hover {
    background-color: #C2561A;
    border-color: #C2561A;
    color: #fff;
}

body.financeiro-page .page-link {
    color: #C2561A;
    border-color: rgba(194, 86, 26, 0.20);
}

body.financeiro-page .page-item.active .page-link {
    background-color: #C2561A;
    border-color: #C2561A;
    color: #fff;
}

body.financeiro-page .page-link:hover {
    background-color: rgba(194, 86, 26, 0.07);
    color: #C2561A;
}

body.financeiro-page .form-label {
    color: #C2561A;
    font-weight: 600;
    font-size: 0.9rem;
}

body.financeiro-page .form-control:focus,
body.financeiro-page .form-select:focus {
    border-color: #E8963F;
    box-shadow: 0 0 0 3px rgba(232, 150, 63, 0.18);
}

body.financeiro-page .card-footer {
    background: rgba(194, 86, 26, 0.03) !important;
    border-top: 1px solid rgba(194, 86, 26, 0.10);
}
