﻿:root {
    --cf-primary: #055160;
    --cf-secondary: #1AA884;
    --cf-dark: #272D34;
    --cf-light: #FFFFFF;
    --cf-background: #F5F8FC;
    --cf-font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--cf-font-family);
    background: var(--cf-background);
    color: var(--cf-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.theme-dark {
    background: #10141A;
    color: #F1F5F9;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.container.container-wide {
    width: min(1500px, 98%);
}

.cf-header {
    background: var(--cf-light);
    border-bottom: 1px solid rgba(39, 45, 52, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

body.theme-dark .cf-header {
    background: #161C24;
    border-color: rgba(237, 242, 247, 0.08);
}

.cf-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.branding.logged-in {
    gap: 0.5rem;
}

.branding .logo {
    height: 72px;
    object-fit: contain;
}

.titles {
    display: flex;
    flex-direction: column;
}

.titles .app-name {
    font-weight: 600;
    color: var(--cf-primary);
}

.titles .tenant-name {
    font-size: 0.85rem;
    color: var(--cf-secondary);
}

body.theme-dark .titles .app-name {
    color: #ffffff;
}

body.theme-dark .titles .tenant-name {
    color: #e2e8f0;
}

.muted {
    color: rgba(39, 45, 52, 0.65);
    line-height: 1.5;
    font-size: 0.95rem;
}

body.theme-dark .muted {
    color: rgba(241, 245, 249, 0.72);
}

.muted li {
    margin-bottom: 0.35rem;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.integrations-grid .card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checklist-card {
    gap: 1rem;
}

.checklist-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checklist-actions .btn {
    min-width: 180px;
    text-align: center;
}

.kanban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.kanban-column {
    background: var(--cf-light);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(39, 45, 52, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.theme-dark .kanban-column {
    background: #0F172A;
    box-shadow: inset 0 0 0 1px rgba(241, 245, 249, 0.12);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.kanban-title {
    font-weight: 600;
}

.kanban-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(43, 130, 220, 0.12);
    color: var(--cf-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

body.theme-dark .kanban-pill {
    background: rgba(43, 130, 220, 0.2);
    color: #9cc7ff;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kanban-card {
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(39, 45, 52, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
}

body.theme-dark .kanban-card {
    background: rgba(241, 245, 249, 0.06);
}

.kanban-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.kanban-value {
    font-weight: 700;
    color: var(--cf-primary);
}

body.theme-dark .kanban-value {
    color: #9cc7ff;
}

.kanban-deadline {
    font-size: 0.85rem;
    color: rgba(39, 45, 52, 0.72);
}

body.theme-dark .kanban-deadline {
    color: rgba(241, 245, 249, 0.72);
}

.kanban-empty {
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(39, 45, 52, 0.03);
    text-align: center;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.mini-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1rem;
    align-items: end;
    min-height: 200px;
}

.mini-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.mini-bar-fill {
    width: 100%;
    max-width: 48px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, rgba(43, 130, 220, 0.9), rgba(26, 168, 132, 0.85));
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

body.theme-dark .mini-bar-fill {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.mini-bar-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.mini-bar-label {
    font-size: 0.85rem;
    color: rgba(39, 45, 52, 0.7);
}

body.theme-dark .mini-bar-label {
    color: rgba(241, 245, 249, 0.72);
}

.mini-empty {
    grid-column: 1 / -1;
}

/* Improve tenant name contrast in light theme */
body.theme-light .titles .tenant-name {
    color: rgba(39, 45, 52, 0.72);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(39, 45, 52, 0.16);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:focus {
    outline: 2px solid var(--cf-primary);
    outline-offset: 2px;
}

.menu-toggle:hover {
    background: rgba(39, 45, 52, 0.04);
}

.menu-toggle-bar {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-toggle-bar:nth-of-type(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-of-type(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-of-type(3) {
    transform: translateY(-4px) rotate(-45deg);
}

body.theme-dark .menu-toggle {
    border-color: rgba(241, 245, 249, 0.12);
}

body.theme-dark .menu-toggle:hover {
    background: rgba(241, 245, 249, 0.08);
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.main-nav.is-open {
    display: flex;
}

.main-nav a {
    text-decoration: none;
    color: var(--cf-dark);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--cf-primary);
}

.main-nav details {
    position: relative;
}

.main-nav summary {
    list-style: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--cf-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav summary::marker,
.main-nav summary::-webkit-details-marker {
    display: none;
}

.main-nav details[open] > summary {
    color: var(--cf-primary);
}

.theme-toggle-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(5, 81, 96, 0.12);
    color: #055160;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.theme-toggle-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(5, 81, 96, 0.24);
    background: rgba(5, 81, 96, 0.2);
}

.theme-toggle-button svg {
    width: 18px;
    height: 18px;
}

/* Sun/Moon icon swap */
.theme-toggle-button .icon-moon { display: none; }
.theme-toggle-button .icon-sun { display: inline; }
body.theme-dark .theme-toggle-button .icon-sun { display: none; }
body.theme-dark .theme-toggle-button .icon-moon { display: inline; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 0.35rem;
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.storage-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.storage-item:last-child {
    border-bottom: none;
}

.storage-label {
    font-weight: 600;
}

.storage-value {
    color: var(--cf-primary);
    font-weight: 500;
}

.storage-path {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.6);
    word-break: break-all;
}

body.theme-dark .info-list li {
    border-color: rgba(241, 245, 249, 0.12);
}

body.theme-dark .storage-item {
    border-color: rgba(241, 245, 249, 0.12);
}

body.theme-dark .storage-path {
    color: rgba(241, 245, 249, 0.65);
}

.main-nav summary::after {
    content: "\25BE";
    font-size: 0.75rem;
    color: inherit;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    display: grid;
    gap: 0.25rem;
    background: var(--cf-light);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}

.main-nav details[open] .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    color: var(--cf-dark);
    font-weight: 500;
    padding: 0.35rem 0;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    color: var(--cf-primary);
}

.nav-subtitle {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.nav-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
    margin: 0.5rem 0 0.6rem;
}

body.theme-dark .main-nav a {
    color: #F8FAFC;
}

body.theme-dark .main-nav summary {
    color: #F8FAFC;
}

body.theme-dark .nav-dropdown-menu {
    background: #1F2933;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.55);
}

body.theme-dark .nav-dropdown-menu a {
    color: rgba(241, 245, 249, 0.9);
}

body.theme-dark .nav-subtitle {
    color: rgba(241, 245, 249, 0.6);
}

body.theme-dark .nav-divider {
    background: rgba(241, 245, 249, 0.18);
}

body.theme-dark .theme-toggle-button {
    border-color: rgba(241, 245, 249, 0.18);
    background: rgba(241, 245, 249, 0.08);
    color: rgba(241, 245, 249, 0.92);
}

body.theme-dark .theme-toggle-button:hover {
    background: rgba(241, 245, 249, 0.18);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.45);
}


.cf-main {
    padding: 2rem 0;
    flex: 1 0 auto;
    min-height: 70vh;
}

.cf-footer {
    background: var(--cf-dark);
    color: var(--cf-light);
    padding: 1.5rem 0;
    border: 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.footer-text {
    margin: 0;
    font-size: 0.95rem;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
}

.footer-copy {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-block {
        justify-content: center;
    }

    .footer-copy {
        margin-left: 0;
        text-align: center;
    }
}

.card {
    background: var(--cf-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.5rem;
}

body.theme-dark .card {
    background: #1F2933;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: var(--cf-primary);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:not(.btn-secondary):not(.btn-outline):hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(43, 130, 220, 0.24);
    background: #064a52;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(43, 130, 220, 0.24);
    text-decoration: none;
}

.btn-secondary {
    background: var(--cf-primary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: #064a52;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 14px 32px rgba(220, 38, 38, 0.22);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--cf-primary);
    color: var(--cf-primary);
}

.btn-outline:hover {
    background: rgba(5, 81, 96, 0.12);
}

/* Larger primary button */
.btn.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 12px;
    line-height: 1.3;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cf-light);
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    word-break: break-word;
}

.table th {
    background: rgba(43, 130, 220, 0.08);
    font-weight: 600;
}

body.theme-dark .table {
    background: #1F2933;
}

body.theme-dark .table th {
    background: rgba(43, 130, 220, 0.16);
}

.form-control,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: var(--cf-light);
    font-family: inherit;
}

body.theme-dark .form-control,
body.theme-dark select,
body.theme-dark textarea {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.25);
    color: #E2E8F0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Normalize primary action button shape inside forms */
.form-actions .btn {
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.form-actions.form-actions-centered {
    justify-content: center;
    grid-column: 1 / -1;
    width: 100%;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(26, 168, 132, 0.12);
    color: var(--cf-secondary);
}

.alert-error {
    background: rgba(220, 53, 69, 0.12);
    color: #C53030;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-span-2 {
    grid-column: 1 / -1;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(43, 130, 220, 0.12);
    color: var(--cf-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

body.theme-dark .hero-section .badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.status-success {
    background: rgba(26, 168, 132, 0.12);
    color: var(--cf-secondary);
}

.status-warning {
    background: rgba(250, 204, 21, 0.18);
    color: #B7791F;
}

.status-danger {
    background: rgba(229, 62, 62, 0.18);
    color: #C53030;
}

.card-metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-metric .value {
    font-size: 2rem;
    font-weight: 600;
}

.card-metric .label {
    color: rgba(15, 23, 42, 0.6);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

body.theme-dark .card-metric .label {
    color: rgba(241, 245, 249, 0.6);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions .btn {
    white-space: nowrap;
}

.col-qty {
    white-space: nowrap;
    text-align: center;
    width: 120px;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.document-actions .document-name {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
}

.nowrap {
    white-space: nowrap;
}

.table-status-vertical {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

body.theme-dark .document-actions .document-name {
    color: rgba(241, 245, 249, 0.7);
}

/* Commission overview */
.commission-summary {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.commission-highlight {
    background: linear-gradient(135deg, rgba(5, 81, 96, 0.12), rgba(26, 168, 132, 0.12));
    border: 1px solid rgba(5, 81, 96, 0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.commission-label {
    color: rgba(15, 23, 42, 0.65);
    font-weight: 600;
    font-size: 0.9rem;
}

.commission-total {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.35rem 0;
    color: var(--cf-primary);
}

.commission-progress {
    position: relative;
    height: 10px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.commission-progress-paid {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cf-secondary), var(--cf-primary));
}

.commission-progress-legend {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    margin-top: 0.35rem;
}

.commission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.commission-card {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.commission-card-label {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.commission-card-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cf-primary);
}

.commission-card-meta {
    color: rgba(15, 23, 42, 0.65);
    margin-top: 0.15rem;
}

.commission-card.is-paid {
    border-color: rgba(26, 168, 132, 0.2);
    background: linear-gradient(135deg, rgba(26, 168, 132, 0.1), #ffffff);
}

.commission-card.is-pending {
    border-color: rgba(250, 204, 21, 0.35);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), #ffffff);
}

.commission-status-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.theme-dark .commission-highlight,
body.theme-dark .commission-card {
    background: #1F2933;
    border-color: rgba(241, 245, 249, 0.12);
    box-shadow: none;
}

body.theme-dark .commission-total,
body.theme-dark .commission-card-value {
    color: #9cc7ff;
}

body.theme-dark .commission-label,
body.theme-dark .commission-card-meta,
body.theme-dark .commission-progress-legend {
    color: rgba(241, 245, 249, 0.75);
}

body.theme-dark .commission-progress {
    background: rgba(241, 245, 249, 0.16);
}

.enterprise-summary {
    display: grid;
    gap: 1rem;
}

.enterprise-highlight {
    background: linear-gradient(135deg, rgba(5, 81, 96, 0.08), rgba(26, 168, 132, 0.08));
    border: 1px solid rgba(5, 81, 96, 0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.enterprise-highlight-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--cf-primary);
}

.enterprise-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.enterprise-highlight-item {
    display: grid;
    gap: 0.15rem;
}

.enterprise-highlight-item .label {
    color: rgba(15, 23, 42, 0.65);
    font-weight: 600;
    font-size: 0.95rem;
}

.enterprise-highlight-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cf-primary);
}

.enterprise-highlight-item small {
    color: rgba(15, 23, 42, 0.65);
}

.enterprise-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.enterprise-card {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 0.25rem;
}

.enterprise-card .label {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.72);
}

.enterprise-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cf-primary);
}

.enterprise-card .meta {
    color: rgba(15, 23, 42, 0.65);
}

.enterprise-card.is-accent {
    border-color: rgba(5, 81, 96, 0.14);
    background: linear-gradient(135deg, rgba(5, 81, 96, 0.06), #ffffff);
}

.enterprise-card.is-warning {
    border-color: rgba(250, 204, 21, 0.32);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), #ffffff);
}

body.theme-dark .enterprise-highlight,
body.theme-dark .enterprise-card {
    background: #1F2933;
    border-color: rgba(241, 245, 249, 0.12);
    box-shadow: none;
}

body.theme-dark .enterprise-highlight-item .value,
body.theme-dark .enterprise-card .value {
    color: #9cc7ff;
}

body.theme-dark .enterprise-highlight-item .label,
body.theme-dark .enterprise-card .label,
body.theme-dark .enterprise-card .meta,
body.theme-dark .enterprise-highlight-item small {
    color: rgba(241, 245, 249, 0.75);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 1000;
}

.modal-backdrop.is-visible {
    display: flex;
}

.modal {
    background: var(--cf-light);
    color: var(--cf-dark);
    border-radius: 16px;
    max-width: min(820px, 96vw);
    width: 100%;
    max-height: calc(100vh - 4rem);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.32);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.theme-dark .modal {
    background: #1F2933;
    color: #F1F5F9;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.7);
}

.modal-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-dark .modal-header {
    border-color: rgba(241, 245, 249, 0.12);
}

.modal-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.modal-body {
    padding: 1rem 1.5rem 1.5rem;
    overflow: auto;
    background: rgba(15, 23, 42, 0.02);
}

body.theme-dark .modal-body {
    background: rgba(241, 245, 249, 0.04);
}

.modal-body iframe,
.modal-body embed,
.modal-body object {
    width: 100%;
    height: min(70vh, 640px);
    border: none;
    border-radius: 12px;
    background: #ffffff;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.card.report-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.card.report-card h3 {
    margin: 0;
}

.card.report-card p {
    margin: 0;
    color: rgba(15, 23, 42, 0.75);
}

body.theme-dark .card.report-card p {
    color: rgba(241, 245, 249, 0.75);
}

.card.report-card .btn {
    align-self: flex-start;
}

.hero-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(43, 130, 220, 0.05), rgba(26, 168, 132, 0.05));
}

.hero-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    padding: 1rem 1.25rem;
    gap: 0.35rem;
}

.stat-card .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.stat-card .stat-description {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .stat-card .stat-description {
    color: rgba(248, 250, 252, 0.7);
}

.hero-visual {
    display: grid;
    gap: 1.5rem;
    position: relative;
    align-content: start;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-overlay-card {
    position: absolute;
    min-width: 200px;
    padding: 1rem 1.25rem;
    background: var(--cf-light);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 0.35rem;
}

.hero-overlay-card strong {
    font-size: 1.15rem;
}

.hero-overlay-card small {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.65);
}

.hero-overlay-card.top {
    top: 12%;
    right: 6%;
}

.hero-overlay-card.bottom {
    bottom: 10%;
    left: 8%;
}

body.theme-dark .hero-overlay-card {
    background: rgba(15, 23, 42, 0.9);
    color: rgba(241, 245, 249, 0.92);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

body.theme-dark .hero-overlay-card small {
    color: rgba(241, 245, 249, 0.7);
}

.floating-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.6);
}

body.theme-dark .floating-label {
    color: rgba(241, 245, 249, 0.65);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
}

.badge-muted {
    background: rgba(39, 45, 52, 0.06);
    color: rgba(39, 45, 52, 0.75);
}

body.theme-dark .badge-muted {
    background: rgba(241, 245, 249, 0.12);
    color: rgba(241, 245, 249, 0.75);
}

body.theme-dark .section-header .badge,
body.theme-dark .section-header .badge-muted {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(43, 130, 220, 0.28), rgba(26, 168, 132, 0.78));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon::after {
    content: "";
    display: block;
    position: absolute;
    background: #ffffff;
    border-radius: 6px;
}

.icon-pipeline::after {
    width: 10px;
    height: 26px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: -12px 0 0 rgba(255, 255, 255, 0.6), 12px 0 0 rgba(255, 255, 255, 0.85);
}

.icon-automation::after {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.icon-play::after {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #ffffff;
    left: 20px;
}

.icon-shield::after {
    width: 26px;
    height: 30px;
    border-radius: 50% / 60% 60% 40% 40%;
    background: #ffffff;
    bottom: 8px;
}

.icon-trend::after {
    width: 32px;
    height: 18px;
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: skew(-20deg);
}

.icon-handshake::after {
    width: 30px;
    height: 14px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(43, 130, 220, 0.18);
}

.experience-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(43, 130, 220, 0.12), rgba(26, 168, 132, 0.08));
}

.experience-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
}

.experience-content {
    display: grid;
    gap: 1.25rem;
}

.experience-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.experience-checklist li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.95rem;
}

.experience-checklist li::before {
    content: "\2713";
    color: var(--cf-secondary);
    font-weight: 600;
    margin-top: 0.1rem;
}

.experience-preview {
    display: grid;
    gap: 1.25rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-tabs {
    display: inline-flex;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.04);
    padding: 0.4rem;
    border-radius: 999px;
}

.preview-tabs .tab {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.preview-tabs .tab.active {
    background: var(--cf-light);
    color: var(--cf-primary);
    box-shadow: 0 8px 18px rgba(43, 130, 220, 0.16);
}

body.theme-dark .preview-tabs {
    background: rgba(241, 245, 249, 0.08);
}

body.theme-dark .preview-tabs .tab {
    color: rgba(241, 245, 249, 0.65);
}

body.theme-dark .preview-tabs .tab.active {
    background: rgba(241, 245, 249, 0.12);
    box-shadow: none;
}

.preview-pill {
    padding: 0.35rem 0.8rem;
    background: rgba(26, 168, 132, 0.18);
    color: var(--cf-secondary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.preview-body {
    display: grid;
    gap: 1.25rem;
}

.preview-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.preview-card {
    background: rgba(43, 130, 220, 0.08);
    border-radius: 16px;
    padding: 1rem;
    display: grid;
    gap: 0.4rem;
}

.preview-card strong {
    font-size: 1.25rem;
}

body.theme-dark .preview-card {
    background: rgba(43, 130, 220, 0.22);
}

.preview-chart {
    height: 90px;
    background: rgba(26, 168, 132, 0.12);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

body.theme-dark .preview-chart {
    background: rgba(26, 168, 132, 0.28);
}

.preview-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 140%;
    border-radius: 100%;
    border: 2px solid rgba(43, 130, 220, 0.2);
    transform: translate(-10%, 10%);
}

.preview-line.active {
    border-color: rgba(26, 168, 132, 0.65);
}

.preview-table {
    display: grid;
    gap: 0.75rem;
}

.preview-table-row {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
}

body.theme-dark .preview-table-row {
    background: rgba(241, 245, 249, 0.08);
}

body.theme-dark .experience-section {
    background: linear-gradient(135deg, rgba(43, 130, 220, 0.22), rgba(26, 168, 132, 0.18));
}

body.theme-dark .preview-pill {
    background: rgba(26, 168, 132, 0.28);
}

.operators-section {
    padding: 4rem 0;
}

.operators-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
}

.operators-content {
    display: grid;
    gap: 1.2rem;
}

.operators-insight {
    display: flex;
    gap: 1.25rem;
}

.operators-insight strong {
    font-size: 2.1rem;
    color: var(--cf-primary);
}

.operators-insight span {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.7);
}

.operators-visual {
    position: relative;
}

.operators-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.operators-card {
    position: absolute;
    bottom: 12%;
    right: 8%;
    background: var(--cf-light);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    display: grid;
    gap: 0.35rem;
    max-width: 220px;
}

.operators-card span {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

body.theme-dark .operators-card {
    background: rgba(15, 23, 42, 0.92);
    color: rgba(241, 245, 249, 0.92);
}

body.theme-dark .operators-card span {
    color: rgba(241, 245, 249, 0.7);
}

.insight-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(43, 130, 220, 0.08));
}

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

.insight-card {
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

.insight-metric {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--cf-primary);
}

.insight-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.65);
}

.insight-card p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.72);
}

body.theme-dark .insight-metric {
    color: var(--cf-secondary);
}

body.theme-dark .insight-label {
    color: rgba(241, 245, 249, 0.65);
}

body.theme-dark .insight-card p {
    color: rgba(241, 245, 249, 0.75);
}

.workflow-section {
    padding: 3rem 0;
}

.workflow-wrapper {
    display: grid;
    gap: 2rem;
}

.workflow-steps {
    display: grid;
    gap: 1.5rem;
}

.workflow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.workflow-step-number {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(43, 130, 220, 0.12);
    color: var(--cf-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

body.theme-dark .workflow-step-number {
    background: rgba(43, 130, 220, 0.24);
}

.plans-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(255, 248, 214, 0.65) 0%, rgba(255, 250, 230, 0.45) 100%);
    border-radius: 24px;
    margin-top: 2rem;
}

body.theme-dark .plans-section {
    background: rgba(15, 23, 42, 0.55);
}

.plans-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.plans-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.plans-column-main,
.plans-column-group,
.plans-column-usage,
.plans-column-addons {
    height: 100%;
}

.plans-layout .card {
    margin-bottom: 0;
    height: 100%;
}

.plans-layout-single {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .plans-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .plans-section {
        padding: 2.25rem 0;
    }
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-card-featured {
    border: 2px solid rgba(26, 168, 132, 0.3);
    box-shadow: 0 18px 40px rgba(26, 168, 132, 0.18);
}

.pricing-card-main {
    padding: 2.5rem 2.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #FFF2BC 0%, #FFE18F 100%);
    border: 1px solid rgba(242, 201, 76, 0.35);
    box-shadow: 0 22px 42px rgba(230, 170, 13, 0.18);
}

body.theme-dark .pricing-card-main {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.75) 100%);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 42px rgba(6, 12, 24, 0.55);
}

.pricing-card-secondary {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--cf-light);
}

.pricing-card-compact {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

body.theme-dark .pricing-card-secondary,
body.theme-dark .pricing-card-compact {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
}

.pricing-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #1F2A37;
    color: #ffffff;
}

.pricing-card-main .pricing-pill {
    background: #1F2A37;
}

body.theme-dark .pricing-pill {
    background: var(--cf-secondary);
    color: #ffffff;
}

.pricing-pill-muted {
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .pricing-pill-muted {
    background: rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.85);
}

.pricing-flag {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    background: var(--cf-secondary);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.pricing-subtitle {
    margin: 0.75rem 0 0;
    color: rgba(15, 23, 42, 0.7);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

body.theme-dark .pricing-subtitle {
    color: rgba(226, 232, 240, 0.75);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: var(--cf-secondary);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0;
}

.pricing-price span {
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.pricing-price-free {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0.25rem 0 0;
    color: var(--cf-secondary);
}

.pricing-card-compact .pricing-price-free,
.pricing-card-secondary .pricing-price-free {
    color: var(--cf-primary);
}

.pricing-price small {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.6);
    margin-left: 0.35rem;
}

body.theme-dark .pricing-price small {
    color: rgba(241, 245, 249, 0.65);
}

.pricing-users,
.pricing-extra {
    margin: 0.35rem 0 0;
    color: rgba(15, 23, 42, 0.75);
    font-size: 0.95rem;
}

.pricing-extra {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

body.theme-dark .pricing-users {
    color: rgba(241, 245, 249, 0.85);
}

body.theme-dark .pricing-extra {
    color: rgba(241, 245, 249, 0.7);
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.pricing-features li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.pricing-features li::before {
    content: "\2022";
    color: var(--cf-primary);
    font-size: 1.2rem;
    line-height: 1;
}

.pricing-modules {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pricing-modules li {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.75);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-dark .pricing-modules li {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.pricing-modules-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cf-primary);
    display: block;
}

.plan-modules-list {
    margin-top: 0.5rem;
}

body.theme-dark .pricing-modules-title {
    color: rgba(241, 245, 249, 0.85);
}

.pricing-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
}

.pricing-card-main .pricing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pricing-card-secondary .pricing-actions,
.pricing-card-compact .pricing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.addon-card {
    border: 1px dashed rgba(15, 23, 42, 0.18);
    background: rgba(255, 245, 196, 0.55);
    border-radius: 18px;
    padding: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.addon-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

body.theme-dark .addon-card {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
}

.addon-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(15, 23, 42, 0.6);
}

.addon-price {
    font-size: 1.35rem;
    color: var(--cf-dark);
}

.addon-caption {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.55);
}

.addon-description {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

body.theme-dark .addon-label,
body.theme-dark .addon-price,
body.theme-dark .addon-caption,
body.theme-dark .addon-description {
    color: rgba(226, 232, 240, 0.85);
}

.callout-section {
    padding: 3rem 0 4rem;
}

.callout-card {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.callout-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.plan-list {
    display: grid;
    gap: 1.5rem;
}

.plan-item {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
}

body.theme-dark .plan-item {
    border-color: rgba(241, 245, 249, 0.18);
}

.plan-item-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

body.theme-dark .form-checkbox {
    color: rgba(241, 245, 249, 0.75);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-inline-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.table-inline-form .form-control {
    min-width: 220px;
}

.table-inline-form .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.table-status-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
}

.table-status-form .form-control {
    min-width: 140px;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
}

.table-status-form .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
}

.status-cell {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.status-badge {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.status-rascunho {
    background: rgba(43, 130, 220, 0.18);
    color: #2b82dc;
}

.status-badge.status-enviada {
    background: rgba(26, 168, 132, 0.18);
    color: #1aa884;
}

.status-badge.status-negociacao {
    background: rgba(43, 130, 220, 0.18);
    color: #2b82dc;
}

.status-badge.status-aprovada {
    background: rgba(21, 128, 61, 0.2);
    color: #15803d;
}

.status-badge.status-perdida {
    background: rgba(220, 38, 38, 0.18);
    color: #dc2626;
}

.status-badge.status-cancelada {
    background: rgba(107, 114, 128, 0.18);
    color: #4b5563;
}

body.theme-dark .status-badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

body.theme-dark .status-badge.status-rascunho,
body.theme-dark .status-badge.status-enviada,
body.theme-dark .status-badge.status-negociacao,
body.theme-dark .status-badge.status-aprovada,
body.theme-dark .status-badge.status-perdida,
body.theme-dark .status-badge.status-cancelada {
    color: #fff;
}


.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.table-actions form {
    margin: 0;
}

@media (max-width: 768px) {
    .cf-header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
        padding: 0.75rem 0;
        gap: 0.5rem;
        border-top: 1px solid rgba(39, 45, 52, 0.08);
        background: transparent;
    }

    body.theme-dark .main-nav {
        border-color: rgba(237, 242, 247, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.35rem 0;
        text-align: center;
    }

    .main-nav details {
        width: 100%;
    }

    .main-nav summary {
        justify-content: center;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        padding: 0.5rem 0;
        text-align: center;
        background: transparent;
    }

    .nav-dropdown-menu a {
        padding: 0.35rem 0.5rem;
    }

    .menu-toggle {
        display: flex;
        align-self: flex-end;
    }

    .theme-toggle-button {
        margin-top: 0.5rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }

    .callout-actions {
        justify-content: flex-start;
    }

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .hero-overlay-card {
        position: static;
        max-width: 100%;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    }

    .logo-cloud {
        gap: 0.75rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .preview-cards {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .operators-grid {
        grid-template-columns: 1fr;
    }

    .operators-card {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: 96%;
        padding: 0 0.25rem;
    }

    .cf-header {
        padding: 0.75rem 0;
    }

    .cf-header .container {
        gap: 0.75rem;
    }

    .branding .logo {
        height: 40px;
    }

    .titles .app-name {
        font-size: 1rem;
    }

    .titles .tenant-name {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .grid {
        gap: 1rem;
    }

    .card {
        padding: 1.1rem;
        margin-bottom: 1rem;
    }

    .card-metric .value {
        font-size: 1.65rem;
    }

    .card-metric .label {
        font-size: 0.7rem;
    }

    .mini-chart {
        grid-auto-columns: minmax(72px, 1fr);
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .mini-bar {
        scroll-snap-align: start;
    }

    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-spacing: 0;
    }
}

@media print {
    .cf-header,
    .main-nav,
    .theme-toggle-button,
    .btn,
    .cotacao-preview #enviar-email,
    .cotacao-preview .form-actions a,
    .cotacao-preview .form-actions button {
        display: none !important;
    }

    body {
        background: #FFFFFF !important;
        color: #000000 !important;
    }

    .cotacao-preview .card {
        box-shadow: none;
        border: none;
    }
}


