:root {
    --sidebar-width: 270px;
    --nexus-bg-start: #020c24;
    --nexus-bg-end: #051c39;
    --nexus-bg-highlight: rgba(30, 90, 255, 0.35);
    --nexus-surface: rgba(10, 20, 40, 0.82);
    --nexus-surface-strong: rgba(12, 24, 46, 0.92);
    --nexus-border: rgba(82, 132, 255, 0.22);
    --nexus-border-strong: rgba(82, 132, 255, 0.4);
    --nexus-text: #e6edff;
    --nexus-text-muted: rgba(204, 214, 243, 0.78);
    --nexus-accent: #0d6efd;
    --nexus-accent-alt: #0a58ca;
    --nexus-shadow: 0 28px 65px rgba(2, 12, 34, 0.65);
    --nexus-radius-lg: 1.5rem;
}

@media (max-width: 1600px) {
    :root {
        --sidebar-width: 256px;
    }
}

@media (max-width: 1400px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 1200px) {
    :root {
        --sidebar-width: 220px;
    }
}

@media (max-width: 1080px) {
    :root {
        --sidebar-width: 208px;
    }
}

body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.modal-body {
    max-height: min(70vh, calc(100vh - 12rem));
    overflow-y: auto;
    scrollbar-gutter: stable;
}

@media (max-width: 576px) {
    .modal-body {
        max-height: min(60vh, calc(100vh - 8rem));
    }
}

body[data-protect-content="true"] {
    -webkit-touch-callout: none;
}

body[data-protect-content="true"] *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body[data-protect-content="true"] ::selection {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

body[data-protect-content="true"] ::-moz-selection {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(2, 8, 18, 0.35);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity .25s ease;
    opacity: 0;
    pointer-events: none;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.loading-overlay .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
    color: #eef3ff;
}

.loading-overlay .loading-caption {
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .9rem;
    color: #f8f9ff;
}

.loading-spinner {
    width: 96px;
    height: 96px;
    position: relative;
}

.loading-spinner span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #d3dcff;
    box-shadow: 0 0 8px rgba(222, 230, 255, 0.4);
    transform-origin: 0 38px;
    opacity: 0;
    animation: loading-dots 1.1s linear infinite;
}

.loading-spinner span:nth-child(1) {
    transform: rotate(0deg) translate(0, -38px);
    animation-delay: -1s;
}

.loading-spinner span:nth-child(2) {
    transform: rotate(30deg) translate(0, -38px);
    animation-delay: -.9s;
}

.loading-spinner span:nth-child(3) {
    transform: rotate(60deg) translate(0, -38px);
    animation-delay: -.8s;
}

.loading-spinner span:nth-child(4) {
    transform: rotate(90deg) translate(0, -38px);
    animation-delay: -.7s;
}

.loading-spinner span:nth-child(5) {
    transform: rotate(120deg) translate(0, -38px);
    animation-delay: -.6s;
}

.loading-spinner span:nth-child(6) {
    transform: rotate(150deg) translate(0, -38px);
    animation-delay: -.5s;
}

.loading-spinner span:nth-child(7) {
    transform: rotate(180deg) translate(0, -38px);
    animation-delay: -.4s;
}

.loading-spinner span:nth-child(8) {
    transform: rotate(210deg) translate(0, -38px);
    animation-delay: -.3s;
}

.loading-spinner span:nth-child(9) {
    transform: rotate(240deg) translate(0, -38px);
    animation-delay: -.2s;
}

.loading-spinner span:nth-child(10) {
    transform: rotate(270deg) translate(0, -38px);
    animation-delay: -.1s;
}

.loading-spinner span:nth-child(11) {
    transform: rotate(300deg) translate(0, -38px);
    animation-delay: 0s;
}

.loading-spinner span:nth-child(12) {
    transform: rotate(330deg) translate(0, -38px);
    animation-delay: .1s;
}

@keyframes loading-dots {
    0%,
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

body.landing-page {
    background: radial-gradient(140% 140% at 15% 0%, #f1f5ff 0%, #ffffff 45%, #f8fbff 100%);
    color: #111;
}

body.dashboard-shell {
    font-size: 0.9rem;
    color: var(--nexus-text);
    --bs-body-color: var(--nexus-text);
    --bs-body-bg: transparent;
    --bs-primary: var(--nexus-accent);
    --bs-primary-rgb: 13, 110, 253;
    --bs-primary-text-emphasis: #052c65;
    --bs-primary-bg-subtle: rgba(13, 110, 253, 0.14);
    --bs-primary-border-subtle: rgba(13, 110, 253, 0.45);
    --bs-link-color: var(--nexus-accent);
    --bs-link-hover-color: var(--nexus-accent-alt);
    --bs-link-color-rgb: 13, 110, 253;
    --bs-link-hover-color-rgb: 10, 88, 202;
    background:
        radial-gradient(120% 140% at 15% 0%, rgba(0, 122, 255, 0.18), transparent 60%),
        radial-gradient(120% 160% at 85% 10%, rgba(0, 225, 255, 0.12), transparent 60%),
        linear-gradient(145deg, var(--nexus-bg-start) 0%, var(--nexus-bg-end) 100%);
}

body.dashboard-shell a {
    color: var(--nexus-accent);
}

body.dashboard-shell a:hover,
body.dashboard-shell a:focus {
    color: var(--nexus-accent-alt);
}

body.dashboard-shell .text-muted,
body.dashboard-shell .form-text,
body.dashboard-shell .text-secondary {
    color: var(--nexus-text-muted) !important;
}

body.dashboard-shell .card,
body.dashboard-shell .modal-content,
body.dashboard-shell .offcanvas,
body.dashboard-shell .dropdown-menu,
body.dashboard-shell .toast {
    background: var(--nexus-surface);
    color: var(--nexus-text);
    border: 1px solid var(--nexus-border);
    box-shadow: var(--nexus-shadow);
    backdrop-filter: blur(18px);
}

body.dashboard-shell .card,
body.dashboard-shell .modal-content,
body.dashboard-shell .offcanvas {
    border-radius: var(--nexus-radius-lg);
}

body.dashboard-shell .card-header,
body.dashboard-shell .modal-header,
body.dashboard-shell .offcanvas-header {
    border-bottom: 1px solid rgba(120, 160, 255, 0.16);
    background: transparent;
}

body.dashboard-shell .card-footer,
body.dashboard-shell .modal-footer,
body.dashboard-shell .offcanvas-footer {
    border-top: 1px solid rgba(120, 160, 255, 0.16);
    background: transparent;
}

body.dashboard-shell .dropdown-item {
    color: var(--nexus-text);
}

body.dashboard-shell .dropdown-item:hover,
body.dashboard-shell .dropdown-item:focus,
body.dashboard-shell .dropdown-item.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.35), rgba(10, 88, 202, 0.35));
    color: #fff;
}

body.dashboard-shell .btn-primary {
    background: linear-gradient(135deg, var(--nexus-accent), var(--nexus-accent-alt));
    border: none;
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.35);
    letter-spacing: 0.3px;
    font-weight: 600;
}

body.dashboard-shell .btn-primary:hover,
body.dashboard-shell .btn-primary:focus {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(10, 88, 202, 0.95));
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.45);
}

body.dashboard-shell .btn-outline-primary {
    color: var(--nexus-accent);
    border-color: var(--nexus-accent);
    font-weight: 600;
}

body.dashboard-shell .btn-outline-primary:hover,
body.dashboard-shell .btn-outline-primary:focus {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(10, 88, 202, 0.2));
    border-color: var(--nexus-accent-alt);
    color: #fff;
}

body.dashboard-shell.theme-dark .btn,
body.dashboard-shell.theme-dark .btn-primary,
body.dashboard-shell.theme-dark .btn-secondary,
body.dashboard-shell.theme-dark .btn-success,
body.dashboard-shell.theme-dark .btn-danger,
body.dashboard-shell.theme-dark .btn-warning,
body.dashboard-shell.theme-dark .btn-info,
body.dashboard-shell.theme-dark .btn-light,
body.dashboard-shell.theme-dark .btn-dark,
body.dashboard-shell.theme-dark .btn-outline-primary,
body.dashboard-shell.theme-dark .btn-outline-secondary,
body.dashboard-shell.theme-dark .btn-outline-success,
body.dashboard-shell.theme-dark .btn-outline-danger,
body.dashboard-shell.theme-dark .btn-outline-warning,
body.dashboard-shell.theme-dark .btn-outline-info,
body.dashboard-shell.theme-dark .btn-outline-light,
body.dashboard-shell.theme-dark .btn-outline-dark {
    color: var(--nexus-accent) !important;
    background: rgba(13, 110, 253, 0.08) !important;
    border: 1px solid var(--nexus-accent) !important;
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.2);
    font-weight: 600;
}

body.dashboard-shell.theme-dark .btn:hover,
body.dashboard-shell.theme-dark .btn:focus,
body.dashboard-shell.theme-dark .btn-primary:hover,
body.dashboard-shell.theme-dark .btn-primary:focus,
body.dashboard-shell.theme-dark .btn-secondary:hover,
body.dashboard-shell.theme-dark .btn-secondary:focus,
body.dashboard-shell.theme-dark .btn-success:hover,
body.dashboard-shell.theme-dark .btn-success:focus,
body.dashboard-shell.theme-dark .btn-danger:hover,
body.dashboard-shell.theme-dark .btn-danger:focus,
body.dashboard-shell.theme-dark .btn-warning:hover,
body.dashboard-shell.theme-dark .btn-warning:focus,
body.dashboard-shell.theme-dark .btn-info:hover,
body.dashboard-shell.theme-dark .btn-info:focus,
body.dashboard-shell.theme-dark .btn-light:hover,
body.dashboard-shell.theme-dark .btn-light:focus,
body.dashboard-shell.theme-dark .btn-dark:hover,
body.dashboard-shell.theme-dark .btn-dark:focus,
body.dashboard-shell.theme-dark .btn-outline-primary:hover,
body.dashboard-shell.theme-dark .btn-outline-primary:focus,
body.dashboard-shell.theme-dark .btn-outline-secondary:hover,
body.dashboard-shell.theme-dark .btn-outline-secondary:focus,
body.dashboard-shell.theme-dark .btn-outline-success:hover,
body.dashboard-shell.theme-dark .btn-outline-success:focus,
body.dashboard-shell.theme-dark .btn-outline-danger:hover,
body.dashboard-shell.theme-dark .btn-outline-danger:focus,
body.dashboard-shell.theme-dark .btn-outline-warning:hover,
body.dashboard-shell.theme-dark .btn-outline-warning:focus,
body.dashboard-shell.theme-dark .btn-outline-info:hover,
body.dashboard-shell.theme-dark .btn-outline-info:focus,
body.dashboard-shell.theme-dark .btn-outline-light:hover,
body.dashboard-shell.theme-dark .btn-outline-light:focus,
body.dashboard-shell.theme-dark .btn-outline-dark:hover,
body.dashboard-shell.theme-dark .btn-outline-dark:focus {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.22), rgba(10, 88, 202, 0.22)) !important;
    border-color: var(--nexus-accent-alt) !important;
    color: #fff !important;
    box-shadow: 0 18px 36px rgba(13, 110, 253, 0.28);
}

body.dashboard-shell #modalProposta #proposta-servico-add {
    padding: 0.5rem 1rem;
    border-width: 1px;
    white-space: nowrap;
}

body.dashboard-shell .btn-light {
    background: rgba(15, 28, 52, 0.72);
    color: var(--nexus-text);
    border: 1px solid rgba(120, 160, 255, 0.2);
}

body.dashboard-shell .btn-light:hover,
body.dashboard-shell .btn-light:focus {
    background: rgba(23, 40, 74, 0.9);
    color: #fff;
    border-color: rgba(120, 160, 255, 0.4);
}

body.dashboard-shell.theme-dark .bg-white,
body.dashboard-shell.theme-dark .text-bg-light,
body.dashboard-shell.theme-dark .kpi-card,
body.dashboard-shell.theme-dark .border-light-subtle {
    color: #0f172a !important;
    --bs-body-color: #0f172a;
    --bs-body-color-rgb: 15, 23, 42;
    --bs-heading-color: #0f172a;
    --bs-card-color: #0f172a;
    --bs-secondary-color: rgba(15, 23, 42, 0.82);
    --bs-secondary-color-rgb: 15, 23, 42;
    --bs-link-color: #0f172a;
    --bs-link-hover-color: #0f172a;
}

body.dashboard-shell.theme-dark .bg-white *,
body.dashboard-shell.theme-dark .text-bg-light *,
body.dashboard-shell.theme-dark .kpi-card *,
body.dashboard-shell.theme-dark .border-light-subtle * {
    color: inherit !important;
}

body.dashboard-shell.theme-dark .kpi-card .text-muted,
body.dashboard-shell.theme-dark .text-bg-light .text-muted,
body.dashboard-shell.theme-dark .border-light-subtle .text-muted {
    color: rgba(15, 23, 42, 0.7) !important;
}

body.dashboard-shell.theme-dark .kpi-card h2,
body.dashboard-shell.theme-dark .kpi-card strong {
    color: #0b1220;
}

body.dashboard-shell.theme-dark .kpi-card,
body.dashboard-shell.theme-dark .kpi-card * {
    color: #0a0a0a !important;
}

body.dashboard-shell.theme-dark .kpi-card h2,
body.dashboard-shell.theme-dark .kpi-card .text-muted,
body.dashboard-shell.theme-dark .kpi-card strong {
    color: #0a0a0a !important;
}

/* Painel Geral: reforça contraste do texto nos KPIs em tema escuro */
body.dashboard-shell.theme-dark .kpi-card {
    background: #fff !important;
    color: #0b152a !important;
    --bs-body-color: #0b152a;
    --bs-body-color-rgb: 11, 21, 42;
    --bs-heading-color: #0b152a;
    --bs-card-color: #0b152a;
    --bs-secondary-color: rgba(11, 21, 42, 0.8);
    --bs-secondary-color-rgb: 11, 21, 42;
    --bs-link-color: #0b152a;
    --bs-link-hover-color: #0b152a;
}

body.dashboard-shell.theme-dark .kpi-card *:not(i):not(.text-primary) {
    color: #0b152a !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #0b152a;
}

body.dashboard-shell.theme-dark .kpi-card .text-muted {
    color: #1f2937 !important;
}

body.dashboard-shell.theme-dark .kpi-card i.text-primary {
    color: var(--nexus-accent) !important;
}

/* Painel Geral: mantém contraste dos cards de alertas em tema escuro */
body.dashboard-shell.theme-dark .alerta-card,
body.dashboard-shell.theme-dark .alerta-card * {
    color: var(--nexus-text) !important;
}

body.dashboard-shell.theme-dark .alerta-card .text-muted {
    color: var(--nexus-text-muted) !important;
}

body.dashboard-shell .form-label,
body.dashboard-shell legend {
    color: var(--nexus-text);
    font-weight: 500;
}

body.dashboard-shell .form-control,
body.dashboard-shell .form-select,
body.dashboard-shell .form-control:focus,
body.dashboard-shell .form-select:focus,
body.dashboard-shell textarea,
body.dashboard-shell textarea:focus {
    background: rgba(9, 20, 42, 0.85);
    border: 1px solid var(--nexus-border);
    color: var(--nexus-text);
    box-shadow: none;
}

body.dashboard-shell .form-control:focus,
body.dashboard-shell .form-select:focus,
body.dashboard-shell textarea:focus {
    border-color: var(--nexus-accent-alt);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
    background: rgba(12, 26, 52, 0.92);
}

body.dashboard-shell .form-control::placeholder,
body.dashboard-shell textarea::placeholder {
    color: rgba(205, 214, 240, 0.55);
}

body.dashboard-shell .form-select option {
    color: #0f172a;
}

body.dashboard-shell .form-check-input {
    background-color: rgba(10, 22, 44, 0.85);
    border-color: var(--nexus-border);
}

body.dashboard-shell .form-check-input:checked {
    background-color: var(--nexus-accent-alt);
    border-color: var(--nexus-accent-alt);
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.25);
}

body.dashboard-shell .input-group-text {
    background: rgba(12, 26, 52, 0.8);
    border: 1px solid var(--nexus-border);
    color: var(--nexus-text-muted);
}

body.dashboard-shell .alert {
    background: rgba(12, 28, 54, 0.82);
    border: 1px solid rgba(90, 140, 255, 0.25);
    color: var(--nexus-text);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body.dashboard-shell .alert-success {
    background: rgba(16, 90, 78, 0.45);
    border-color: rgba(45, 200, 160, 0.5);
    color: #e9fff4;
}

body.dashboard-shell .alert-danger {
    background: rgba(80, 18, 32, 0.55);
    border-color: rgba(255, 99, 132, 0.55);
    color: #ffe9f0;
}

body.dashboard-shell .alert-warning {
    background: rgba(80, 58, 14, 0.55);
    border-color: rgba(255, 199, 92, 0.55);
    color: #fff5dc;
}

body.dashboard-shell .badge {
    letter-spacing: .04em;
    font-weight: 600;
    border-radius: .65rem;
}

body.dashboard-shell .nav-pills .nav-link,
body.dashboard-shell .nav-tabs .nav-link {
    color: rgba(224, 232, 255, 0.75);
    border-radius: .75rem;
    border: 1px solid transparent;
}

body.dashboard-shell .nav-pills .nav-link.active,
body.dashboard-shell .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.35), rgba(10, 88, 202, 0.35));
    border-color: rgba(90, 140, 255, 0.4);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

body.dashboard-shell .list-group-item {
    background: rgba(10, 22, 44, 0.78);
    color: var(--nexus-text);
    border-color: rgba(120, 160, 255, 0.18);
}

body.dashboard-shell .list-group-item.active,
body.dashboard-shell .list-group-item:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.35), rgba(10, 88, 202, 0.35));
    color: #fff;
}

body.dashboard-shell .modal {
    z-index: 1200;
    pointer-events: auto;
}

body.dashboard-shell .modal-dialog {
    margin: 1.75rem auto;
}

body.dashboard-shell .modal-dialog.modal-lg {
    --bs-modal-width: min(760px, calc(100vw - 2rem));
}

body.dashboard-shell .modal-dialog.modal-xl {
    --bs-modal-width: min(900px, calc(100vw - 2rem));
}

body.dashboard-shell .modal-backdrop {
    z-index: 1190;
    pointer-events: none;
}

body.dashboard-shell .modal-backdrop.show {
    background: rgba(6, 12, 26, 0.18);
    opacity: 1;
    backdrop-filter: none;
}

body.dashboard-shell .dashboard-navbar {
    background: linear-gradient(140deg, rgba(7, 18, 40, 0.92), rgba(12, 28, 56, 0.9)) !important;
    border-bottom: 1px solid var(--nexus-border) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    color: var(--nexus-text);
}

body.dashboard-shell .dashboard-navbar .navbar-brand {
    color: var(--nexus-text);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.dashboard-shell .dashboard-navbar .btn,
body.dashboard-shell .dashboard-navbar .dropdown-toggle {
    border-color: rgba(120, 160, 255, 0.35);
    color: var(--nexus-text);
    background: rgba(10, 22, 44, 0.6);
}

body.dashboard-shell .dashboard-navbar .btn:hover,
body.dashboard-shell .dashboard-navbar .btn:focus {
    background: rgba(20, 40, 72, 0.8);
    color: #fff;
    border-color: rgba(120, 160, 255, 0.6);
}

body.dashboard-shell .offcanvas .btn-close,
body.dashboard-shell .modal .btn-close {
    filter: invert(1) brightness(1.4);
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    max-height: 100vh;
    background: linear-gradient(165deg, rgba(7, 18, 40, 0.95) 0%, rgba(3, 12, 28, 0.96) 60%, rgba(12, 30, 60, 0.92) 100%);
    color: var(--nexus-text);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--nexus-border);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem .75rem;
    overflow-y: hidden;
    font-size: .9rem;
}

body.dashboard-shell .theme-toggle-floating {
    position: fixed;
    bottom: 1.5rem;
    right: 3.75rem;
    z-index: 1080;
    pointer-events: none;
}

body.dashboard-shell .fullscreen-toggle-floating {
    position: fixed;
    top: 0.75rem;
    left: calc((var(--sidebar-width) / 2) - 19px);
    right: auto;
    z-index: 1080;
    pointer-events: none;
}

body.dashboard-shell.modal-open .theme-toggle-floating,
body.dashboard-shell.modal-open .fullscreen-toggle-floating {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.92);
}

body.dashboard-shell.modal-open .fullscreen-toggle-floating {
    top: 0.5rem;
}

body.dashboard-shell .btn-fullscreen-toggle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 44, 0.72);
    border: 1px solid rgba(108, 150, 230, 0.3);
    color: rgba(233, 239, 255, 0.88);
    box-shadow: 0 14px 34px rgba(2, 12, 34, 0.45);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    pointer-events: auto;
}

body.dashboard-shell .btn-fullscreen-toggle:hover,
body.dashboard-shell .btn-fullscreen-toggle:focus {
    transform: translateY(-2px);
    background: rgba(24, 56, 112, 0.8);
    box-shadow: 0 22px 48px rgba(2, 12, 34, 0.55);
    color: #ffffff;
}

body.dashboard-shell .btn-fullscreen-toggle i {
    font-size: 1rem;
}

body.dashboard-shell .theme-toggle-floating__form {
    pointer-events: auto;
}

body.dashboard-shell .btn-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 44, 0.7);
    border: 1px solid rgba(108, 150, 230, 0.28);
    color: rgba(233, 239, 255, 0.88);
    box-shadow: 0 14px 34px rgba(2, 12, 34, 0.42);
    backdrop-filter: blur(10px);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

body.dashboard-shell .btn-theme-toggle:hover,
body.dashboard-shell .btn-theme-toggle:focus {
    transform: translateY(-2px);
    background: rgba(24, 56, 112, 0.78);
    box-shadow: 0 22px 48px rgba(2, 12, 34, 0.5);
    color: #ffffff;
}

body.dashboard-shell .btn-theme-toggle i {
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    body.dashboard-shell .theme-toggle-floating {
        bottom: 1rem;
        right: 1rem;
    }

    body.dashboard-shell .fullscreen-toggle-floating {
        top: 4.75rem;
        left: 1rem;
        right: auto;
    }
}

.sidebar nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: .25rem;
    padding-bottom: .5rem;
}

.sidebar .sidebar-footer {
    border-top: 1px solid var(--nexus-border);
    padding-top: 1rem;
}

.sidebar .sidebar-footer .nav-link {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar .logo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .9rem;
    color: #fff;
}

.sidebar .user-meta {
    font-size: .85rem;
    line-height: 1.25;
    margin-bottom: 1rem !important;
    color: rgba(224, 232, 255, 0.8);
}

.sidebar .nav-link {
    color: rgba(230, 238, 255, 0.78);
    border-radius: .55rem;
    padding: .4rem .65rem;
    margin-bottom: .15rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 500;
    font-size: .84rem;
    background: transparent;
    border: 0;
    text-align: left;
    width: 100%;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.sidebar .nav-link i {
    font-size: .95rem;
}

.sidebar .nav-group {
    margin-bottom: .4rem;
}

.sidebar .nav-link-group {
    justify-content: space-between;
    cursor: pointer;
}

.sidebar .nav-link-group:focus {
    outline: none;
    box-shadow: none;
}

.sidebar .nav-link-group .toggle-icon {
    font-size: .75rem;
    transition: transform .2s ease;
}

.sidebar .nav-link-group[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.sidebar .nav-sub {
    padding-left: .25rem;
    margin-top: .15rem;
    margin-bottom: .5rem;
}

.sidebar .nav-link-sub {
    font-size: .78rem;
    padding-left: 2.1rem;
    color: rgba(222, 232, 255, 0.72);
}

.sidebar .nav-link-sub:hover,
.sidebar .nav-link-sub.active {
    color: #fff;
}

.sidebar .nav-link-sub i {
    font-size: .8rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.65), rgba(10, 88, 202, 0.6));
    color: #fff;
    box-shadow: 0 15px 25px rgba(13, 110, 253, 0.25);
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem 2.25rem;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

body.dashboard-shell .main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2.5rem 0 0 2.5rem;
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(13, 110, 253, 0.15), transparent 70%),
        radial-gradient(120% 120% at 100% 20%, rgba(10, 88, 202, 0.12), transparent 70%),
        linear-gradient(160deg, rgba(5, 15, 32, 0.8), rgba(6, 20, 42, 0.88));
    filter: saturate(110%);
    box-shadow: inset 0 0 0 1px rgba(120, 160, 255, 0.05);
    backdrop-filter: blur(16px);
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 991px) {
    body.dashboard-shell .main-content::before {
        border-radius: 1.75rem;
    }
}

@media (max-width: 1400px) {
    .main-content {
        padding: 1.75rem;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 991px) {
    .main-content {
        padding-top: 4.5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding: 1.15rem 1rem 2rem;
    }
}

@media (max-height: 860px) {
    .sidebar {
        padding: .85rem .65rem;
    }

    .sidebar .logo {
        font-size: 1.05rem;
        margin-bottom: .75rem;
    }

    .sidebar .user-meta {
        font-size: .8rem;
        margin-bottom: .75rem !important;
    }

    .sidebar .nav-link {
        padding: .32rem .55rem;
        gap: .45rem;
        font-size: .8rem;
    }
}

@media (max-height: 720px) {
    .sidebar {
        padding: .7rem .55rem;
    }

    .sidebar .logo {
        margin-bottom: .6rem;
    }

    .sidebar .user-meta {
        font-size: .76rem;
        margin-bottom: .65rem !important;
    }

    .sidebar .nav-link {
        padding: .28rem .5rem;
        font-size: .78rem;
    }
}

@media (max-width: 1199px) {
    .sidebar {
        font-size: .85rem;
    }

    .sidebar .nav-link {
        padding: .4rem .65rem;
    }

    .sidebar .nav-link-sub {
        padding-left: 1.8rem;
    }
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 1040;
        width: min(260px, 78vw);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 575px) {
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
}

.hero {
    background: #05193c;
    color: #fff;
    position: relative;
    padding-top: 7rem;
    min-height: 34rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 25, 60, 0.82), rgba(13, 110, 253, 0.55));
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 3;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .hero-slide {
    height: 100%;
}

.hero-carousel .carousel-item {
    transition: opacity 1.25s ease-in-out;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: saturate(75%) brightness(0.78);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 0.5rem rgba(5, 25, 60, 0.5));
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-prev:focus,
.hero-carousel .carousel-control-next:hover,
.hero-carousel .carousel-control-next:focus {
    background: rgba(255, 255, 255, 0.5);
}

.card-service {
    transition: transform .2s ease, box-shadow .2s ease;
    border: none;
    border-radius: 1rem;
}

.card-service .service-icon {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-service .service-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 60%);
    opacity: .9;
    mix-blend-mode: screen;
}

.card-service .service-icon i {
    font-size: 2.25rem;
    position: relative;
    z-index: 1;
}

.service-icon--dedetizacao {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 1.5rem 3rem rgba(249, 115, 22, 0.3);
}

.service-icon--descupinizacao {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    box-shadow: 0 1.5rem 3rem rgba(245, 158, 11, 0.28);
}

.service-icon--desratizacao {
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 1.5rem 3rem rgba(220, 38, 38, 0.32);
}

.service-icon--fauna {
    background: linear-gradient(135deg, #6d28d9, #a855f7);
    box-shadow: 0 1.5rem 3rem rgba(104, 49, 215, 0.28);
}

.service-icon--agua {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 1.5rem 3rem rgba(2, 132, 199, 0.3);
}

.service-icon--hidrojateamento {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
    box-shadow: 0 1.5rem 3rem rgba(29, 78, 216, 0.3);
}

.service-icon--desentupimento {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.4);
}

.service-icon--programas {
    background: linear-gradient(135deg, #15803d, #22c55e);
    box-shadow: 0 1.5rem 3rem rgba(21, 128, 61, 0.32);
}

.card-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.5rem 3rem rgba(13, 110, 253, 0.15);
}

.top-nav {
    background: rgba(5, 25, 60, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.75rem 2rem rgba(5, 25, 60, 0.2);
}

.top-nav .navbar-brand {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.top-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.top-nav .nav-link:hover,
.top-nav .nav-link:focus {
    color: #fff;
}

@media (max-width: 1199px) {
    .hero .display-4 {
        font-size: 2.75rem;
    }

    .hero .lead {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .hero .display-4 {
        font-size: 2.2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero .btn {
        width: 100%;
    }

    .hero .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
}

.top-nav .btn {
    box-shadow: 0 .5rem 1.5rem rgba(13, 110, 253, 0.25);
}

.whatsapp-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 1.5rem 3rem rgba(37, 211, 102, 0.35);
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 1050;
}

.whatsapp-fab:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 2rem 3.5rem rgba(37, 211, 102, 0.4);
}

body.dashboard-shell .table-responsive {
    background: rgba(10, 22, 44, 0.78);
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--nexus-border);
    box-shadow: var(--nexus-shadow);
    backdrop-filter: blur(14px);
}

body.dashboard-shell .table {
    color: var(--nexus-text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--nexus-text);
    --bs-table-border-color: rgba(120, 160, 255, 0.2);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
    --bs-table-striped-color: var(--nexus-text);
    --bs-table-hover-bg: rgba(13, 110, 253, 0.08);
    --bs-table-hover-color: var(--nexus-text);
    --bs-table-active-bg: rgba(13, 110, 253, 0.12);
    --bs-table-active-color: var(--nexus-text);
}

body.dashboard-shell .table thead th {
    border-bottom-color: rgba(120, 160, 255, 0.25);
    color: rgba(233, 239, 255, 0.86);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.92rem;
}

body.dashboard-shell .table > :not(caption) > * > * {
    border-bottom-color: rgba(120, 160, 255, 0.16);
    font-size: 0.92rem;
    line-height: 1.4;
}

@media (max-width: 1500px) {
    body.dashboard-shell .table thead th {
        font-size: 0.88rem;
    }

    body.dashboard-shell .table > :not(caption) > * > * {
        font-size: 0.88rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

@media (max-width: 1280px) {
    body.dashboard-shell .table thead th {
        font-size: 0.83rem;
        letter-spacing: 0.035em;
    }

    body.dashboard-shell .table > :not(caption) > * > * {
        font-size: 0.83rem;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    body.dashboard-shell .table-responsive {
        padding: 1rem;
        border-radius: 1rem;
    }
}

@media (max-width: 1100px) {
    body.dashboard-shell .table thead th {
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }

    body.dashboard-shell .table > :not(caption) > * > * {
        font-size: 0.8rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    body.dashboard-shell .table-responsive {
        padding: 0.85rem;
    }
}

.table-responsive {
    background-color: #fff;
    border-radius: .75rem;
    padding: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.05);
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.08);
    font-size: 1.1rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 1.1rem;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.contact-social-link:hover {
    color: #0a58ca;
    background: rgba(13, 110, 253, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 2rem rgba(13, 110, 253, 0.15);
}

.kpi-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 1.5rem 3rem rgba(13, 110, 253, 0.1);
}

/* Painel Geral (tema escuro): garante contraste máximo nos KPIs de fundo branco */
body.dashboard-shell.theme-dark .kpi-card--dark-text,
body.dashboard-shell.theme-dark .kpi-card--dark-text * {
    color: #0b152a !important;
    -webkit-text-fill-color: #0b152a;
    --bs-body-color: #0b152a;
    --bs-heading-color: #0b152a;
    --bs-card-color: #0b152a;
    --bs-link-color: #0b152a;
    --bs-link-hover-color: #0b152a;
    --bs-secondary-color: rgba(11, 21, 42, 0.9);
    --bs-secondary-color-rgb: 11, 21, 42;
    --bs-text-opacity: 1 !important;
}

body.dashboard-shell.theme-dark .kpi-card--dark-text .text-muted,
body.dashboard-shell.theme-dark .kpi-card--dark-text .small {
    color: #0f172a !important;
    opacity: 1 !important;
    --bs-text-opacity: 1 !important;
}

.badge-status {
    text-transform: uppercase;
    letter-spacing: .05em;
}

.landing-page p {
    text-align: justify;
}

.landing-page .section {
    position: relative;
    overflow: hidden;
}

.landing-page .section .container {
    position: relative;
    z-index: 2;
}

.landing-page .section-services {
    border-radius: 2.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(99, 102, 241, 0.12) 55%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 2.5rem 4.5rem rgba(15, 23, 42, 0.16);
    margin: 0 1.25rem 4rem;
}

.landing-page .section-services::before,
.landing-page .section-services::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.landing-page .section-services::before {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.55), transparent 65%);
    top: -140px;
    left: -120px;
}

.landing-page .section-services::after {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.55), transparent 65%);
    bottom: -120px;
    right: -80px;
}

.landing-page .card-service {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(6px);
}

.landing-page .card-service:hover {
    box-shadow: 0 1.75rem 3.5rem rgba(37, 99, 235, 0.18);
}

.landing-page .card-service h3 {
    color: #0f172a;
}

.landing-page .card-service p {
    color: #475569 !important;
}

.landing-page .section-about,
.landing-page .section-conformidade,
.landing-page .section-contato,
.landing-page .section-diferenciais {
    border-radius: 2.5rem;
    margin: 0 1.25rem 4rem;
    box-shadow: 0 2rem 3.5rem rgba(15, 23, 42, 0.1);
}

.landing-page .section-about {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.85), rgba(255, 255, 255, 0.92));
}

.landing-page .section-diferenciais {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.16), rgba(255, 255, 255, 0.94));
}

.landing-page .section-conformidade {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0.94));
}

.landing-page .section-contato {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.95));
}

.landing-page .section-about::before,
.landing-page .section-diferenciais::before,
.landing-page .section-conformidade::before,
.landing-page .section-contato::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 10% 0%, rgba(255, 255, 255, 0.4), transparent 55%);
    opacity: 0.6;
    z-index: 1;
}

.landing-page .section-about::after,
.landing-page .section-diferenciais::after,
.landing-page .section-conformidade::after,
.landing-page .section-contato::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 90% 100%, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0.6;
    z-index: 1;
}

.landing-page .section-about .kpi-card,
.landing-page .section-conformidade .doc-card,
.landing-page .section-contato .card,
.landing-page .section-diferenciais .card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(4px);
}

.landing-page .section-contato .contact-list__icon {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e !important;
}

.landing-page .section-contato .contact-social-link {
    background: rgba(14, 165, 233, 0.15);
    color: #2563eb;
}

.landing-page .section-contato .contact-social-link:hover {
    background: rgba(14, 165, 233, 0.25);
    color: #1d4ed8;
}

@media (max-width: 991px) {
    .landing-page .section-about .row,
    .landing-page .section-conformidade .row,
    .landing-page .section-contato .row {
        row-gap: 2rem;
    }

    .landing-page .section-title {
        font-size: 2.05rem;
    }
}

@media (max-width: 767px) {
    .landing-page .section-title {
        font-size: 1.8rem;
    }

    .landing-page .card-service {
        text-align: center;
    }

    .landing-page .section-contato .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.landing-page footer {
    border-radius: 2rem 2rem 0 0;
    margin: 4rem 0 0;
    box-shadow: 0 -1.5rem 3.5rem rgba(15, 23, 42, 0.25);
}

@media (max-width: 991px) {
    .landing-page .section,
    .landing-page .section-services,
    .landing-page .section-about,
    .landing-page .section-diferenciais,
    .landing-page .section-conformidade,
    .landing-page .section-contato {
        margin: 0 0 3rem;
        border-radius: 1.5rem;
    }
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: .3rem;
    width: 2px;
    background: #0d6efd;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: .75rem;
    height: .75rem;
    background: #0d6efd;
    border-radius: 50%;
    left: -.05rem;
    top: .3rem;
}

.doc-card {
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, .15);
    background: #fff;
    padding: 1.25rem;
    height: 100%;
}

.doc-card .btn-primary,
.doc-card .btn-outline-primary {
    background: linear-gradient(135deg, var(--nexus-accent), var(--nexus-accent-alt));
    border-color: var(--nexus-accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
}

.doc-card .btn-primary:hover,
.doc-card .btn-primary:focus,
.doc-card .btn-outline-primary:hover,
.doc-card .btn-outline-primary:focus {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.92), rgba(10, 88, 202, 0.92));
    border-color: var(--nexus-accent-alt);
    color: #fff;
}

.doc-card .btn-link {
    color: var(--nexus-accent);
    font-weight: 600;
}

.doc-card .btn-link:hover,
.doc-card .btn-link:focus {
    color: var(--nexus-accent-alt);
}

.folder-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.2);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.04));
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 0;
    cursor: pointer;
}

.folder-card .stretched-link {
    border-radius: inherit;
}

.folder-card:hover,
.folder-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 1.5rem 2.5rem rgba(13, 110, 253, 0.18);
    border-color: rgba(13, 110, 253, 0.32);
    text-decoration: none;
}

.folder-card .folder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: rgba(13, 110, 253, 0.18);
    color: var(--nexus-accent);
    font-size: 1.45rem;
    flex-shrink: 0;
}

.folder-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.folder-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.folder-card__name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.folder-card__counter {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.22);
    color: var(--nexus-accent);
}

.folder-card__meta {
    letter-spacing: 0.02em;
}

.folder-card__actions {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.folder-card__actions .btn {
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.upload-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 2px dashed rgba(13, 110, 253, 0.3);
    border-radius: 1.25rem;
    background: rgba(13, 110, 253, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus,
.upload-dropzone.is-dragover {
    border-color: rgba(13, 110, 253, 0.55);
    background: rgba(13, 110, 253, 0.1);
    box-shadow: 0 1.5rem 3rem rgba(13, 110, 253, 0.15);
}

.upload-dropzone__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(13, 110, 253, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--nexus-accent);
    flex-shrink: 0;
}

.upload-dropzone__content {
    flex: 1;
    min-width: 0;
}

.upload-dropzone.is-uploading::after {
    content: 'Enviando arquivos...';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nexus-accent);
}

.empty-folder {
    border: 2px dashed rgba(13, 110, 253, 0.25);
    background: rgba(13, 110, 253, 0.06);
}

.contratos-header-actions {
    gap: 0.75rem;
}

.contratos-search-wrapper {
    position: relative;
}

.contratos-search-wrapper .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: rgba(13, 110, 253, 0.7);
    pointer-events: none;
}

.contratos-header-actions .contratos-search-input {
    min-width: 220px;
    max-width: 280px;
    padding: 0.5rem 0.75rem 0.5rem 2.35rem;
}

@media (max-width: 575.98px) {
    .contratos-header-actions {
        width: 100%;
    }

    .contratos-header-actions .contratos-search-input {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.site-footer {
    background: #031633;
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
}

.signature-link a {
    color: #66b2ff;
    font-weight: 600;
    text-decoration: none;
}

.signature-link a:hover,
.signature-link a:focus {
    color: #fff;
    text-decoration: underline;
}

.app-footer {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    pointer-events: none;
}

.app-footer__text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
    opacity: 0.8;
    pointer-events: auto;
}

.app-footer__text a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.app-footer__text a:hover,
.app-footer__text a:focus {
    opacity: 0.9;
}

body.dashboard-shell .app-footer__text {
    color: rgba(222, 230, 255, 0.7);
}

body.landing-page .app-footer__text {
    color: rgba(15, 23, 42, 0.55);
}

body.dev-login .app-footer__text {
    color: rgba(226, 232, 240, 0.7);
}

@media (max-width: 575px) {
    .app-footer {
        bottom: 0.75rem;
    }

    .app-footer__text {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }
}

.table-responsive {
    --table-scrollbar-size: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: var(--table-scrollbar-size);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.35);
    border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
}

@media (max-width: 767px) {
    .table-responsive {
        margin-bottom: 1.25rem;
        padding: 0.75rem;
    }

    .table-responsive > table {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .table-responsive {
        padding: 0.5rem;
    }

    .table-responsive > table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .table-responsive > table thead {
        display: none;
    }

    .table-responsive > table tbody tr {
        display: block;
        background-color: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 0.85rem;
        box-shadow: 0 1.35rem 2.25rem rgba(15, 23, 42, 0.08);
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .table-responsive > table tbody tr:last-child {
        margin-bottom: 0;
    }

    .table-responsive > table tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        white-space: normal;
        word-break: break-word;
    }

    .table-responsive > table tbody tr td:last-child {
        border-bottom: 0;
    }

    .table-responsive > table tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(15, 23, 42, 0.78);
        flex: 0 0 45%;
        max-width: 55%;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.75rem;
    }

    .table-responsive > table tbody tr td[data-label=""]::before {
        content: '';
    }

    .table-responsive > table tbody tr td .btn-group,
    .table-responsive > table tbody tr td .d-flex.gap-2,
    .table-responsive > table tbody tr td .d-flex.gap-3 {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    body.dashboard-shell .table-responsive {
        padding: 0.75rem;
    }

    body.dashboard-shell .table-responsive > table tbody tr {
        background: rgba(12, 26, 52, 0.88);
        border: 1px solid rgba(120, 160, 255, 0.22);
        box-shadow: 0 1.5rem 2.5rem rgba(2, 12, 36, 0.38);
    }

    body.dashboard-shell .table-responsive > table tbody tr td {
        border-bottom: 1px solid rgba(120, 160, 255, 0.18);
        color: var(--nexus-text);
    }

    body.dashboard-shell .table-responsive > table tbody tr td::before {
        color: rgba(220, 228, 255, 0.75);
    }
}

@media (max-width: 767px) {
    .main-content > .d-flex.justify-content-between,
    .main-content .card-header .d-flex.justify-content-between,
    .main-content .d-flex.justify-content-between.flex-wrap-sm,
    .main-content .d-flex.justify-content-between.flex-lg-nowrap {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem;
    }

    .main-content > .d-flex.justify-content-between > *:last-child,
    .main-content .card-header .d-flex.justify-content-between > *:last-child {
        align-self: stretch;
    }
}

.responsive-stretch,
.main-content .card,
.main-content .collapse,
.main-content .alert,
.main-content .table-responsive {
    width: 100%;
}

@media (max-width: 575px) {
    .hero {
        padding-top: 6rem;
        min-height: 28rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }

    .top-nav .btn {
        margin-top: .75rem;
        width: 100%;
    }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1f3b73 0%, #2f6ed9 50%, #5fa4ff 100%);
}

.bg-gradient-primary .badge.bg-light {
    color: #1f3b73 !important;
}

.shape.shape-bottom {
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35), transparent 70%);
    pointer-events: none;
}

.shape.shape-bottom::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 59, 115, 0) 0%, rgba(31, 59, 115, 0.25) 100%);
}

.support-icon {
    width: 96px;
    height: 96px;
    background: rgba(47, 110, 217, 0.12);
}

.letter-spacing-2 {
    letter-spacing: 0.2rem;
}

/* Manual do Nexus */
.manual-container .markdown-body {
    line-height: 1.7;
    color: #212529;
    font-size: 0.92rem;
}

.manual-container .markdown-body h1,
.manual-container .markdown-body h2,
.manual-container .markdown-body h3,
.manual-container .markdown-body h4,
.manual-container .markdown-body h5,
.manual-container .markdown-body h6 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.manual-container .markdown-body h1 { font-size: 2rem; }
.manual-container .markdown-body h2 { font-size: 1.75rem; }
.manual-container .markdown-body h3 { font-size: 1.5rem; }
.manual-container .markdown-body h4 { font-size: 1.25rem; }
.manual-container .markdown-body h5 { font-size: 1.1rem; }
.manual-container .markdown-body h6 { font-size: 1rem; }

.manual-container .markdown-body p,
.manual-container .markdown-body ul,
.manual-container .markdown-body ol {
    margin-bottom: 1rem;
}

.manual-container .markdown-body ul,
.manual-container .markdown-body ol {
    padding-left: 1.6rem;
}

.manual-container .markdown-body blockquote {
    border-left: 4px solid var(--bs-primary);
    margin: 1.5rem 0;
    padding-left: 1rem;
    color: #495057;
    background: rgba(208, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.manual-container .markdown-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.manual-container .markdown-body table th,
.manual-container .markdown-body table td {
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1rem;
    background-color: #fff;
}

.manual-container .markdown-body table thead th {
    background-color: rgba(208, 0, 0, 0.08);
    color: #a00000;
    font-weight: 600;
}

.manual-container .markdown-body code {
    background-color: rgba(15, 23, 42, 0.05);
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    color: #d00000;
}

.manual-container .markdown-body pre code {
    display: block;
    padding: 1rem;
    background: #0f172a;
    color: #f8fafc;
    overflow-x: auto;
    border-radius: 0.75rem;
}

.manual-container .markdown-body a {
    color: var(--bs-primary);
    text-decoration: none;
}

.manual-container .markdown-body a:hover {
    text-decoration: underline;
}

.manual-container .markdown-body img {
    max-width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.os-instructions-text {
    font-size: 0.8rem;
    line-height: 1.6;
}

.os-instructions-inline {
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.propostas-controls .btn-sm {
    flex: 1 1 16rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    white-space: nowrap;
}

.propostas-controls .input-group-sm {
    flex: 1 1 16rem;
}

.propostas-controls .input-group-sm > .input-group-text,
.propostas-controls .input-group-sm > .form-control {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

@media (min-width: 576px) {
    .propostas-controls {
        align-items: stretch !important;
    }
}

.servico-media img,
.servico-media video {
    object-fit: cover;
}

.servico-placeholder {
    background: linear-gradient(135deg, rgba(208,0,0,.05), rgba(0,0,0,.04));
    border: 1px dashed rgba(208,0,0,.35);
}

.servico-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--brand-red, #d00000);
}

.servico-carousel .carousel-control-prev-icon,
.servico-carousel .carousel-control-next-icon {
    filter: invert(1) hue-rotate(-10deg);
}
