/* Preço Raiz — visual system inspired by editorial colour and catalogue design. */
:root {
    --pr-paper: #f4f1e8;
    --pr-paper-light: #fbf9f2;
    --pr-surface: #fffdf7;
    --pr-ink: #29322b;
    --pr-muted: #687066;
    --pr-line: #ddd8ca;
    --pr-forest: #344a3c;
    --pr-forest-deep: #26382e;
    --pr-leaf: #9aa984;
    --pr-leaf-soft: #e6eadf;
    --pr-clay: #a7654c;
    --pr-radius: 16px;
    --pr-radius-control: 12px;
    --pr-shadow: 0 12px 30px rgba(39, 48, 39, 0.10);
}

/* Shared work portals: warm paper, calm typography, clear controls. */
body[data-layout] {
    background: var(--pr-paper) !important;
    color: var(--pr-ink);
}

body[data-layout] .app-header {
    background: rgba(251, 249, 242, 0.98) !important;
    border-color: var(--pr-line) !important;
    box-shadow: 0 2px 10px rgba(39, 48, 39, 0.035);
    backdrop-filter: none !important;
    height: 40px !important;
    min-height: 40px;
    position: sticky !important;
    top: 0;
    left: auto;
    right: auto;
    flex: 0 0 auto;
}

body[data-layout] .main-content {
    background: var(--pr-paper) !important;
    color: var(--pr-ink);
    margin-top: 0 !important;
    padding: 2rem 2.25rem;
}

body[data-layout] .main-content h1,
body[data-layout] .main-content .pe-page-title {
    color: var(--pr-ink) !important;
    font-family: Inter, "Segoe UI", sans-serif !important;
    font-size: clamp(1.8rem, 2.7vw, 2.35rem);
    font-weight: 700 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.16;
}

body[data-layout] .main-content h2,
body[data-layout] .main-content h3,
body[data-layout] .main-content h4 {
    font-family: Inter, "Segoe UI", sans-serif;
    letter-spacing: -0.025em;
}

body[data-layout] .main-content .pe-page-subtitle {
    color: var(--pr-muted) !important;
    font-size: 0.92rem;
}

body[data-layout] .main-content .pe-card-title {
    color: var(--pr-ink) !important;
    font-family: Inter, "Segoe UI", sans-serif;
    font-weight: 650;
}

body[data-layout] .pe-kpi-val {
    color: var(--pr-ink) !important;
}

body[data-layout] .pe-kpi-label,
body[data-layout] .text-muted {
    color: var(--pr-muted) !important;
}

body[data-layout] .step-circle-badge {
    background: var(--pr-leaf-soft) !important;
    border: 1px solid var(--pr-line) !important;
    color: var(--pr-forest) !important;
}

body[data-layout] .nav-link-pe {
    min-height: 40px;
    padding: 8px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0 !important;
    background: transparent !important;
    color: #4c584e !important;
    white-space: nowrap;
}

body[data-layout] .nav-link-pe:hover {
    background: transparent !important;
    border-bottom-color: var(--pr-leaf-soft);
    color: var(--pr-forest) !important;
}

body[data-layout] .nav-link-pe.active {
    background: transparent !important;
    border-bottom-color: #00a35c;
    color: #00684a !important;
}

body[data-layout] .nav-link-pe.active i {
    color: #00684a !important;
}

body[data-layout] .app-header .app-header-logo {
    height: 40px !important;
    max-width: 154px;
    object-fit: contain;
}

body[data-layout] .pe-navbar-desktop { display: none; }
body[data-layout] .pe-mobile-toggle {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--pr-line);
    border-radius: 50%;
    background: transparent;
    color: var(--pr-forest);
    font-size: 1.05rem;
}
body[data-layout] .pe-mobile-toggle:hover { background: var(--pr-leaf-soft); color: var(--pr-forest-deep); }
body[data-layout] .pe-mobile-nav {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: 0;
    z-index: 1002;
    max-height: calc(100vh - 41px);
    overflow-y: auto;
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--pr-line);
    background: rgba(251, 249, 242, 0.99);
    box-shadow: 0 12px 24px rgba(39, 48, 39, 0.12);
}
body[data-layout] .pe-mobile-nav[hidden] { display: none !important; }
body[data-layout] .pe-mobile-nav:not([hidden]) { display: block; }
body[data-layout] .pe-mobile-nav .nav-link-pe {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--pr-line);
    font-size: 0.9rem;
}
body[data-layout] .pe-mobile-nav .nav-link-pe.active { border-bottom-color: var(--pr-forest); }

@media (min-width: 1280px) {
    body[data-layout] .pe-navbar-desktop { display: flex; }
    body[data-layout] .pe-mobile-toggle { display: none; }
    body[data-layout] .pe-navbar-desktop .nav-link-pe {
        box-sizing: border-box;
        height: 40px;
        min-height: 40px;
        padding: 0;
    }
}

@media (max-width: 1279.98px) {
    body[data-layout] .app-header .pe-navbar-desktop { display: none !important; }
    body[data-layout] .app-header .pe-mobile-toggle { display: inline-flex; }
}

@media (max-width: 760px) {
    body[data-layout] .app-header .app-header-logo { height: 36px !important; }
}

@media (max-width: 430px) {
    body[data-layout] .app-header .header-brand { min-width: 0; margin-right: 6px !important; }
    body[data-layout] .app-header .app-header-logo { max-width: 104px; }
    body[data-layout] .app-header .pe-header-actions { gap: 2px !important; }
    body[data-layout] .app-header .pe-header-actions > .d-flex { gap: 2px !important; }
    body[data-layout] .app-header .btn-icon-header { width: 29px; height: 29px; }
    body[data-layout] .app-header .btn-icon-header i { font-size: 18px; }
    body[data-layout] .app-header .theme-switch { padding: 2px !important; }
    body[data-layout] .app-header .btn-icon-round { width: 24px; height: 24px; }
    body[data-layout] .app-header .btn-profile { padding: 0 4px; }
}

@media (min-width: 1400px) {
    body[data-layout] .app-header .btn-profile {
        box-sizing: border-box;
        height: 36px;
        min-height: 36px;
        padding: 2px 8px !important;
        gap: 6px !important;
    }
    body[data-layout] .app-header .btn-profile .avatar-sm {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }
    body[data-layout] .app-header .btn-profile .avatar-sm img {
        width: 30px !important;
        height: 30px !important;
    }
    body[data-layout] .app-header .btn-profile > div.d-xxl-block p {
        line-height: 1 !important;
        white-space: nowrap;
    }
}

/* The XXL search placeholder and expanded profile label otherwise push the long buyer navigation beyond 1440px. */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    body[data-layout] .app-header .search-minimal { display: none !important; }
}

@media (min-width: 1600px) {
    body[data-layout] .app-header .search-minimal {
        display: flex !important;
        flex: 0 1 140px;
        width: 140px;
        max-width: 140px;
        min-width: 0;
        height: 34px;
        box-sizing: border-box;
        align-items: center;
    }
    body[data-layout] .app-header .search-minimal:focus-within { width: 140px; }
    body[data-layout] .app-header .search-minimal .form-control {
        min-height: 32px;
        height: 32px;
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

body[data-layout] .pe-navbar {
    margin-left: 1rem;
}

body[data-layout] .search-minimal,
body[data-layout] .btn-profile {
    background-color: #f1eee4 !important;
    border-color: var(--pr-line) !important;
    border-radius: var(--pr-radius) !important;
}

body[data-layout] .search-minimal:focus-within {
    border-color: var(--pr-forest) !important;
    box-shadow: 0 0 0 3px rgba(52, 74, 60, 0.12) !important;
}

body[data-layout] .glass-card,
body[data-layout] .card-custom,
body[data-layout] .main-content .card:not(.official-sheet),
body[data-layout] .inner-subcard,
body[data-layout] .slot-card,
body[data-layout] .kpi-mini-card,
body[data-layout] .partner-admin-card {
    background: var(--pr-surface) !important;
    border: 1px solid var(--pr-line) !important;
    border-radius: var(--pr-radius) !important;
    box-shadow: 0 4px 14px rgba(39, 48, 39, 0.055) !important;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
    body[data-layout] .main-content .glass-card:hover,
    body[data-layout] .main-content .card-custom:hover,
    body[data-layout] .main-content .card:not(.official-sheet):hover,
    body[data-layout] .main-content .slot-card:hover,
    body[data-layout] .main-content .kpi-mini-card:hover,
    body[data-layout] .main-content .partner-admin-card:hover {
        background: #fffefb !important;
        border-color: var(--pr-forest) !important;
        box-shadow: 0 12px 26px rgba(39, 48, 39, 0.14) !important;
        transform: translateY(-2px);
    }

    body.pr-editorial .card-mongodb:hover,
    body.pr-editorial .card-mongodb-featured:hover {
        border-color: var(--pr-forest) !important;
        box-shadow: 0 14px 30px rgba(29, 42, 32, 0.20) !important;
        transform: translateY(-2px);
    }
}

body[data-layout] .inner-subcard {
    background: var(--pr-paper-light) !important;
    box-shadow: none !important;
    border-radius: var(--pr-radius-control) !important;
}

body[data-layout] .b2b-sponsor-card,
body[data-layout] .google-ad-card-infeed {
    background: #f5f1e6 !important;
    border-color: #b1b99a !important;
    border-radius: var(--pr-radius) !important;
    box-shadow: none !important;
}

body[data-layout] .b2b-sponsor-banner {
    background: var(--pr-forest) !important;
    border-color: var(--pr-forest) !important;
    border-radius: var(--pr-radius) !important;
    box-shadow: none !important;
}

body[data-layout] .b2b-ad-badge,
body[data-layout] .google-ad-badge {
    background: var(--pr-forest) !important;
    color: #f4f1e8 !important;
    border-radius: 2px !important;
}

body[data-layout] .btn-primary,
body[data-layout] .btn-success,
body[data-layout] .btn-mongodb,
body[data-layout] .btn-secondary-mongodb {
    background: var(--pr-forest) !important;
    border: 1px solid var(--pr-forest) !important;
    border-radius: 9999px !important;
    color: #fffdf7 !important;
    box-shadow: none !important;
}

body[data-layout] .btn-primary:hover,
body[data-layout] .btn-success:hover,
body[data-layout] .btn-mongodb:hover,
body[data-layout] .btn-secondary-mongodb:hover {
    background: var(--pr-forest-deep) !important;
    border-color: var(--pr-forest-deep) !important;
    color: #fffdf7 !important;
    transform: translateY(-1px);
}

body[data-layout] .btn-outline-dark,
body[data-layout] .btn-outline-primary,
body[data-layout] .btn-outline-success {
    background: transparent !important;
    border: 1px solid #aeb4a6 !important;
    border-radius: 9999px !important;
    color: var(--pr-forest) !important;
}

body[data-layout] .btn-outline-dark:hover,
body[data-layout] .btn-outline-primary:hover,
body[data-layout] .btn-outline-success:hover {
    background: var(--pr-forest) !important;
    border-color: var(--pr-forest) !important;
    color: #fffdf7 !important;
}

/* Legacy admin controls use the same editorial brand as the shared portals. */
body[data-layout] .admin-nav-tabs .nav-link {
    background: var(--pr-surface) !important;
    border-color: var(--pr-line) !important;
    border-radius: var(--pr-radius-control) !important;
    color: var(--pr-ink) !important;
}

body[data-layout] .admin-nav-tabs .nav-link:hover:not(.active) {
    background: var(--pr-leaf-soft) !important;
    border-color: var(--pr-leaf) !important;
    color: var(--pr-forest) !important;
}

body[data-layout] .admin-nav-tabs .nav-link.active {
    background: var(--pr-forest) !important;
    border-color: var(--pr-forest) !important;
    color: var(--pr-surface) !important;
    box-shadow: 0 4px 14px rgba(39, 48, 39, 0.15) !important;
}

body[data-layout] .btn-info {
    background: var(--pr-forest) !important;
    border-color: var(--pr-forest) !important;
    border-radius: 9999px !important;
    color: var(--pr-surface) !important;
}

body[data-layout] .btn-info:hover {
    background: var(--pr-forest-deep) !important;
    border-color: var(--pr-forest-deep) !important;
    color: var(--pr-surface) !important;
}

body[data-layout] .modal-header.bg-primary,
body[data-layout] .modal-header.bg-info {
    background: var(--pr-forest) !important;
    border-color: var(--pr-forest) !important;
    color: var(--pr-surface) !important;
}

body[data-layout] .modal-header.bg-primary .modal-title,
body[data-layout] .modal-header.bg-info .modal-title {
    color: var(--pr-surface) !important;
}

body[data-layout] .text-primary {
    color: var(--pr-forest) !important;
}

body[data-layout] .text-success {
    color: var(--pr-forest) !important;
}

body[data-layout] .bg-primary {
    background-color: var(--pr-forest) !important;
    color: var(--pr-surface) !important;
}

body[data-layout] .bg-success {
    background-color: var(--pr-forest) !important;
    color: var(--pr-surface) !important;
}

body[data-layout] .bg-primary-subtle,
body[data-layout] .bg-info-subtle,
body[data-layout] .bg-success-subtle {
    background-color: var(--pr-leaf-soft) !important;
    color: var(--pr-forest-deep) !important;
}

body[data-layout] .alert-success {
    background-color: var(--pr-leaf-soft) !important;
    color: var(--pr-forest) !important;
}

body[data-layout] .form-control,
body[data-layout] .form-select,
body[data-layout] .search-minimal input {
    background-color: var(--pr-surface) !important;
    border-color: var(--pr-line) !important;
    border-radius: var(--pr-radius-control) !important;
    color: var(--pr-ink) !important;
}

body[data-layout] .form-control:focus,
body[data-layout] .form-select:focus {
    border-color: var(--pr-forest) !important;
    box-shadow: 0 0 0 3px rgba(52, 74, 60, 0.12) !important;
}

body[data-layout] .table-mongodb thead th,
body[data-layout] .main-content .table thead th {
    background: #eeebdf !important;
    border-color: var(--pr-line) !important;
    color: #536052 !important;
}

body[data-layout] .main-content .table tbody td {
    border-color: #e8e3d7 !important;
}

body[data-layout] .main-content .table tbody tr:hover > * {
    background: #f6f3ea !important;
}

body[data-layout] .dropdown-menu,
body[data-layout] .modal-content {
    background: var(--pr-surface) !important;
    border: 1px solid var(--pr-line) !important;
    border-radius: 20px !important;
    box-shadow: var(--pr-shadow) !important;
}

body[data-layout] .modal-header:first-child {
    border-radius: 20px 20px 0 0;
}

body[data-layout] .modal-footer:last-child {
    border-radius: 0 0 20px 20px;
}

body[data-layout] .dropdown-item:hover {
    background: var(--pr-leaf-soft) !important;
    color: var(--pr-forest) !important;
}

body[data-layout] .pe-app-sidebar {
    background: var(--pr-surface) !important;
    border-right: 1px solid var(--pr-line) !important;
    box-shadow: none !important;
}

body[data-layout] .pe-app-sidebar .pe-nav-link {
    border-radius: 3px !important;
}

body[data-layout] .pe-app-sidebar .pe-nav-link.active {
    background: var(--pr-leaf-soft) !important;
    box-shadow: none !important;
    color: var(--pr-forest) !important;
}

body[data-layout] .pe-app-sidebar .pe-nav-link.active .pe-nav-icon {
    color: var(--pr-forest) !important;
}

body[data-layout] .pe-app-sidebar .pe-menu-title {
    color: var(--pr-muted) !important;
    opacity: 0.9 !important;
}

body[data-layout] .pe-sidebar {
    background: var(--pr-forest) !important;
    box-shadow: none !important;
}

body[data-layout] .pe-sidebar .nav-link.active {
    background: #f4f1e8 !important;
    border-radius: 3px !important;
    color: var(--pr-forest) !important;
    box-shadow: none !important;
}

body[data-layout] .b2b-newsletter-dock {
    background: var(--pr-forest) !important;
    border-color: var(--pr-leaf) !important;
    border-radius: 4px !important;
}

body[data-layout] a:focus-visible,
body[data-layout] button:focus-visible,
body[data-layout] input:focus-visible,
body.pr-editorial a:focus-visible,
body.pr-editorial button:focus-visible,
body.pr-editorial input:focus-visible,
body.pr-editorial select:focus-visible {
    outline: 3px solid rgba(154, 169, 132, 0.75);
    outline-offset: 2px;
}

/* Public landing and authentication: editorial surfaces, existing content retained. */
body.pr-editorial {
    background: var(--pr-paper);
    color: var(--pr-ink);
}

body.pr-editorial:not(.pr-auth) > header.sticky {
    background: rgba(251, 249, 242, 0.98) !important;
    border-color: var(--pr-line) !important;
    box-shadow: none;
    backdrop-filter: none !important;
}

body.pr-editorial:not(.pr-auth) > header nav a {
    color: #4d584e !important;
}

body.pr-editorial:not(.pr-auth) > header nav a:hover {
    color: var(--pr-forest) !important;
}

body.pr-editorial:not(.pr-auth) main > section:first-of-type {
    background-color: var(--pr-forest-deep) !important;
    background-image: linear-gradient(90deg, rgba(38, 56, 46, 0.97) 0%, rgba(38, 56, 46, 0.9) 55%, rgba(38, 56, 46, 0.7) 100%), url("images/industrial_facility_angola_1778619157498.png") !important;
    background-size: cover !important;
    background-position: center 46% !important;
    border-color: rgba(232, 234, 220, 0.22) !important;
}

body.pr-editorial main > section:first-of-type h1,
body.pr-editorial main > section:last-of-type h2,
body.pr-editorial main h2 {
    font-family: Inter, "Segoe UI", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
}

body.pr-editorial main > section:not(:first-of-type):not(:last-of-type):nth-of-type(odd) {
    background: var(--pr-paper) !important;
    border-color: var(--pr-line) !important;
}

body.pr-editorial main > section:not(:first-of-type):not(:last-of-type):nth-of-type(even) {
    background: var(--pr-paper-light) !important;
    border-color: var(--pr-line) !important;
}

body.pr-editorial main > section:last-of-type {
    background: var(--pr-forest) !important;
    border-color: var(--pr-forest) !important;
}

body.pr-editorial .bg-brand-teal-deep {
    background-color: var(--pr-forest) !important;
}

body.pr-editorial .text-brand-green {
    color: #c1cda9 !important;
}

body.pr-editorial .text-brand-green-dark,
body.pr-editorial .text-brand-green-mid {
    color: var(--pr-forest) !important;
}

body.pr-editorial .bg-brand-green,
body.pr-editorial .bg-brand-green-soft,
body.pr-editorial .bg-surface-feature {
    background-color: var(--pr-leaf-soft) !important;
}

body.pr-editorial .border-brand-green {
    border-color: var(--pr-leaf) !important;
}

body.pr-editorial .card-mongodb,
body.pr-editorial .card-mongodb-featured,
body.pr-editorial .terminal-mockup {
    border-radius: var(--pr-radius) !important;
    box-shadow: 0 6px 18px rgba(29, 42, 32, 0.11) !important;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.pr-editorial .card-mongodb {
    background: var(--pr-surface) !important;
    border-color: var(--pr-line) !important;
}

body.pr-editorial .card-mongodb-featured {
    background: var(--pr-leaf-soft) !important;
    border-color: var(--pr-leaf) !important;
}

body.pr-editorial .terminal-mockup {
    background: rgba(31, 46, 37, 0.96) !important;
    border: 1px solid rgba(220, 224, 204, 0.28) !important;
}

body.pr-editorial [class~="bg-[#00141e]"] {
    background-color: #26382e !important;
}

body.pr-editorial [class~="bg-[#000d14]"] {
    background-color: #1e2d24 !important;
}

body.pr-editorial [class~="bg-[#003d4f]"],
body.pr-editorial [class~="bg-[#002838]"] {
    background-color: #405746 !important;
}

body.pr-editorial [class~="border-[#1c2d38]"] {
    border-color: rgba(220, 224, 204, 0.28) !important;
}

body.pr-editorial [class~="text-[#a8b3bc]"] {
    color: #dedbce !important;
}

body.pr-editorial [class~="text-[#5c6c7a]"] {
    color: #b9c0ae !important;
}

body.pr-editorial footer {
    background: #26382e !important;
    border-color: rgba(232, 234, 220, 0.2) !important;
}

body.pr-auth > main > section:first-of-type {
    background-color: var(--pr-forest) !important;
    border-color: rgba(232, 234, 220, 0.18) !important;
}

body.pr-auth > main > section:first-of-type > div.absolute.inset-0 {
    background: linear-gradient(145deg, #2f4739, #485b46) !important;
    opacity: 0.96 !important;
}

body.pr-auth > main > section:first-of-type .text-brand-green {
    color: #d1d9bd !important;
}

body.pr-auth > main > section:last-of-type {
    background: var(--pr-paper) !important;
}

body.pr-auth h1,
body.pr-auth h2 {
    color: var(--pr-ink) !important;
    font-family: Inter, "Segoe UI", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
}

body.pr-auth .card-auth {
    background: var(--pr-surface) !important;
    border: 1px solid var(--pr-line) !important;
    border-radius: 20px !important;
    box-shadow: var(--pr-shadow) !important;
}

body.pr-auth .btn-mongodb-primary {
    background: var(--pr-forest) !important;
    border: 1px solid var(--pr-forest) !important;
    border-radius: 9999px !important;
    color: #fffdf7 !important;
}

body.pr-auth .btn-mongodb-primary:hover {
    background: var(--pr-forest-deep) !important;
    border-color: var(--pr-forest-deep) !important;
    color: #fffdf7 !important;
}

body.pr-auth .btn-mongodb-outline {
    border-color: #aeb4a6 !important;
    border-radius: 9999px !important;
    color: var(--pr-forest) !important;
}

body.pr-auth .bg-brand-teal-deep {
    background-color: var(--pr-forest) !important;
}

body.pr-auth .text-brand-green,
body.pr-auth .text-brand-green-dark {
    color: var(--pr-forest) !important;
}

body.pr-auth .bg-brand-green,
body.pr-auth .bg-surface-feature {
    background-color: var(--pr-leaf-soft) !important;
}

body.pr-auth .border-brand-green {
    border-color: var(--pr-leaf) !important;
}

body.pr-auth [class~="bg-[#00141e]"] {
    background-color: #26382e !important;
}

body.pr-auth [class~="bg-[#003d4f]"] {
    background-color: #405746 !important;
}

body.pr-auth input:not([type="checkbox"]),
body.pr-auth select,
body.pr-auth textarea {
    background-color: var(--pr-surface) !important;
    border-color: #c9c5b8 !important;
    border-radius: var(--pr-radius-control) !important;
    color: var(--pr-ink) !important;
}

body.pr-auth input:focus,
body.pr-auth select:focus,
body.pr-auth textarea:focus {
    border-color: var(--pr-forest) !important;
    box-shadow: 0 0 0 3px rgba(52, 74, 60, 0.12) !important;
}

/* Keep the dark work theme warm while preserving its existing toggle and states. */
html[data-bs-theme="dark"] body[data-layout] {
    background: #20251f !important;
    color: #ece8dc !important;
}

html[data-bs-theme="dark"] body[data-layout] .app-header,
html[data-bs-theme="dark"] body[data-layout] .pe-app-sidebar {
    background: #252d26 !important;
    border-color: #414a3e !important;
}

html[data-bs-theme="dark"] body[data-layout] .main-content {
    background: #20251f !important;
    color: #ece8dc !important;
}

html[data-bs-theme="dark"] body[data-layout] .glass-card,
html[data-bs-theme="dark"] body[data-layout] .card-custom,
html[data-bs-theme="dark"] body[data-layout] .main-content .card:not(.official-sheet),
html[data-bs-theme="dark"] body[data-layout] .inner-subcard,
html[data-bs-theme="dark"] body[data-layout] .slot-card,
html[data-bs-theme="dark"] body[data-layout] .kpi-mini-card,
html[data-bs-theme="dark"] body[data-layout] .partner-admin-card,
html[data-bs-theme="dark"] body[data-layout] .modal-content,
html[data-bs-theme="dark"] body[data-layout] .dropdown-menu {
    background: #29332b !important;
    border-color: #414a3e !important;
    color: #ece8dc !important;
}

html[data-bs-theme="dark"] body[data-layout] .main-content .pe-page-title,
html[data-bs-theme="dark"] body[data-layout] .main-content h1,
html[data-bs-theme="dark"] body[data-layout] .main-content h2,
html[data-bs-theme="dark"] body[data-layout] .main-content h3,
html[data-bs-theme="dark"] body[data-layout] .main-content h4,
html[data-bs-theme="dark"] body[data-layout] .pe-card-title {
    color: #f2efe5 !important;
}

html[data-bs-theme="dark"] body[data-layout] .pe-kpi-val {
    color: #f2efe5 !important;
}

html[data-bs-theme="dark"] body[data-layout] .pe-kpi-label,
html[data-bs-theme="dark"] body[data-layout] .text-muted {
    color: #b1b6a8 !important;
}

html[data-bs-theme="dark"] body[data-layout] .step-circle-badge {
    background: #3a493b !important;
    border-color: #4b5648 !important;
    color: #d7ddc9 !important;
}

@media (hover: hover) {
    html[data-bs-theme="dark"] body[data-layout] .main-content .glass-card:hover,
    html[data-bs-theme="dark"] body[data-layout] .main-content .card-custom:hover,
    html[data-bs-theme="dark"] body[data-layout] .main-content .card:not(.official-sheet):hover,
    html[data-bs-theme="dark"] body[data-layout] .main-content .slot-card:hover,
    html[data-bs-theme="dark"] body[data-layout] .main-content .kpi-mini-card:hover,
    html[data-bs-theme="dark"] body[data-layout] .main-content .partner-admin-card:hover {
        background: #303b31 !important;
        border-color: var(--pr-leaf) !important;
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28) !important;
    }
}

html[data-bs-theme="dark"] body[data-layout] .form-control,
html[data-bs-theme="dark"] body[data-layout] .form-select {
    background: #242d26 !important;
    border-color: #4b5648 !important;
    color: #f0ede3 !important;
}

html[data-bs-theme="dark"] body[data-layout] .table-mongodb thead th,
html[data-bs-theme="dark"] body[data-layout] .main-content .table thead th {
    background: #2d392f !important;
    border-color: #414a3e !important;
    color: #d7ddc9 !important;
}

html[data-bs-theme="dark"] body[data-layout] .main-content .table tbody td {
    border-color: #394338 !important;
}

html[data-bs-theme="dark"] body[data-layout] .nav-link-pe.active {
    background: transparent !important;
    border-bottom-color: #9aa984 !important;
    color: #f2efe5 !important;
}

html[data-bs-theme="dark"] body[data-layout] .nav-link-pe.active i {
    color: #d7ddc9 !important;
}

html[data-bs-theme="dark"] body[data-layout] .pe-mobile-nav {
    border-color: #414a3e;
    background: #252d26;
    color: #ece8dc;
}

html[data-bs-theme="dark"] body[data-layout] .pe-mobile-nav .nav-link-pe {
    border-bottom-color: #414a3e;
    color: #d7ddc9 !important;
}

html[data-bs-theme="dark"] body[data-layout] .admin-nav-tabs .nav-link {
    background: #29332b !important;
    border-color: #414a3e !important;
    color: #d7ddc9 !important;
}

html[data-bs-theme="dark"] body[data-layout] .admin-nav-tabs .nav-link.active {
    background: #657759 !important;
    border-color: #657759 !important;
    color: #fffdf7 !important;
}

html[data-bs-theme="dark"] body[data-layout] .alert-success {
    background-color: #3a493b !important;
    color: #d7ddc9 !important;
}

html[data-bs-theme="dark"] body[data-layout] .text-primary {
    color: #b8c6a3 !important;
}

html[data-bs-theme="dark"] body[data-layout] .text-success {
    color: #b8c6a3 !important;
}

html[data-bs-theme="dark"] body[data-layout] .bg-primary-subtle,
html[data-bs-theme="dark"] body[data-layout] .bg-info-subtle,
html[data-bs-theme="dark"] body[data-layout] .bg-success-subtle {
    background-color: #3a493b !important;
    color: #d7ddc9 !important;
}

html[data-bs-theme="dark"] body[data-layout] .pe-app-sidebar .pe-nav-link.active {
    background: #3b4b3c !important;
    color: #e5eadb !important;
}

@media (max-width: 767.98px) {
    body[data-layout] .main-content {
        padding: 1.25rem 1rem;
    }

    body.pr-editorial:not(.pr-auth) main > section:first-of-type h1 {
        font-size: clamp(2.25rem, 9vw, 4rem);
    }

    body.pr-editorial:not(.pr-auth) main > section:first-of-type {
        background-position: 58% center !important;
    }

    body[data-layout] .b2b-newsletter-dock {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

@media print {
    body[data-layout] .app-header,
    body[data-layout] .pe-app-sidebar,
    body[data-layout] .b2b-newsletter-dock {
        display: none !important;
    }

    body[data-layout],
    html[data-bs-theme="dark"] body[data-layout],
    body[data-layout] .main-content,
    html[data-bs-theme="dark"] body[data-layout] .main-content,
    body[data-layout] .main-content .glass-card,
    html[data-bs-theme="dark"] body[data-layout] .main-content .glass-card,
    body[data-layout] .main-content .card-custom,
    html[data-bs-theme="dark"] body[data-layout] .main-content .card-custom,
    body[data-layout] .main-content .inner-subcard,
    html[data-bs-theme="dark"] body[data-layout] .main-content .inner-subcard,
    body[data-layout] .main-content .card:not(.official-sheet),
    html[data-bs-theme="dark"] body[data-layout] .main-content .card:not(.official-sheet) {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    body[data-layout] .official-sheet,
    html[data-bs-theme="dark"] body[data-layout] .official-sheet {
        background: #fff !important;
        color: var(--pr-ink) !important;
        box-shadow: none !important;
    }

    html[data-bs-theme="dark"] body[data-layout] .main-content .table thead th {
        background: #f1f1f1 !important;
        color: #000 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-layout] *,
    body.pr-editorial * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
