    .fi-sidebar {
        border-inline-end: 1px solid rgba(148, 163, 184, 0.18);
    }

    .fi-sidebar-group-label {
        letter-spacing: 0;
        font-weight: 650;
    }

    .fi-wi-stats-overview-stat,
    .fi-ta-ctn {
        border: 1px solid rgba(148, 163, 184, 0.20);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .fi-wi-stats-overview-stat {
        border-color: rgba(203, 213, 225, 0.75);
        background:
            linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 1));
    }

    .dark .fi-wi-stats-overview-stat,
    .dark .fi-ta-ctn {
        border-color: rgba(255, 255, 255, 0.10);
        box-shadow: none;
    }

    .fi-section {
        border-radius: 0.75rem;
    }

    .fi-section-header-heading {
        font-weight: 700;
    }

    .fi-main .fi-page {
        max-width: min(1600px, calc(100vw - 2rem));
    }

    .fi-language-switcher {
        margin-inline: 0.75rem;
        white-space: nowrap;
    }

    .fi-company-current,
    .fi-company-switcher {
        margin-inline-start: 0.5rem;
    }

    .fi-company-current,
    .fi-company-switcher summary {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        min-height: 2.25rem;
        max-width: 16rem;
        border: 1px solid rgba(203, 213, 225, 0.9);
        border-radius: 0.5rem;
        background: rgba(255, 255, 255, 0.96);
        padding: 0.25rem 0.65rem 0.25rem 0.3rem;
        color: rgb(15, 23, 42);
        font-size: 0.82rem;
        font-weight: 750;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
        list-style: none;
    }

    .fi-company-current {
        padding-inline-end: 0.75rem;
    }

    .fi-company-switcher {
        position: relative;
        z-index: 50;
    }

    .fi-company-switcher summary {
        cursor: pointer;
        transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
    }

    .fi-company-switcher summary::-webkit-details-marker {
        display: none;
    }

    .fi-company-switcher[open] summary,
    .fi-company-switcher summary:hover {
        border-color: rgba(15, 159, 144, 0.45);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .fi-company-switcher-logo,
    .fi-company-switcher-option-logo {
        display: inline-grid;
        flex: 0 0 auto;
        place-items: center;
        overflow: hidden;
        border: 1px solid rgba(203, 213, 225, 0.9);
        background: rgb(248, 250, 252);
        color: rgb(15, 159, 144);
        font-weight: 900;
    }

    .fi-company-switcher-logo {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.68rem;
    }

    .fi-company-switcher-option-logo {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 0.92rem;
    }

    .fi-company-switcher-logo img,
    .fi-company-switcher-option-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #fff;
    }

    .fi-company-switcher-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fi-company-switcher-chevron {
        color: rgb(100, 116, 139);
        font-size: 1rem;
        line-height: 1;
    }

    .fi-company-switcher-menu {
        position: absolute;
        right: 0;
        top: calc(100% + 0.55rem);
        width: min(24rem, calc(100vw - 2rem));
        border: 1px solid rgba(203, 213, 225, 0.95);
        border-radius: 0.75rem;
        background: #fff;
        padding: 0.5rem;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    }

    .fi-company-switcher-menu-label {
        padding: 0.45rem 0.55rem 0.55rem;
        color: rgb(100, 116, 139);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .fi-company-switcher-option {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 0.75rem;
        border: 1px solid transparent;
        border-radius: 0.55rem;
        background: transparent;
        padding: 0.55rem;
        text-align: left;
        transition: border-color 140ms ease, background-color 140ms ease;
    }

    .fi-company-switcher-option:hover,
    .fi-company-switcher-option.is-active {
        border-color: rgba(15, 159, 144, 0.22);
        background: rgba(15, 159, 144, 0.07);
    }

    .fi-company-switcher-option-text {
        min-width: 0;
    }

    .fi-company-switcher-option-text strong,
    .fi-company-switcher-option-text small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fi-company-switcher-option-text strong {
        color: rgb(15, 23, 42);
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .fi-company-switcher-option-text small {
        margin-top: 0.15rem;
        color: rgb(100, 116, 139);
        font-size: 0.75rem;
    }

    .dark .fi-company-current,
    .dark .fi-company-switcher summary,
    .dark .fi-company-switcher-menu {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgb(15, 23, 42);
        color: rgb(248, 250, 252);
    }

    .dark .fi-company-switcher-logo,
    .dark .fi-company-switcher-option-logo {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
        color: rgb(94, 234, 212);
    }

    .dark .fi-company-switcher-option:hover,
    .dark .fi-company-switcher-option.is-active {
        border-color: rgba(45, 212, 191, 0.24);
        background: rgba(20, 184, 166, 0.12);
    }

    .dark .fi-company-switcher-option-text strong {
        color: rgb(248, 250, 252);
    }

    .fi-topbar nav {
        gap: 0.5rem;
    }

    .hex-chart-card {
        border: 1px solid rgba(20, 184, 166, 0.28);
        background:
            linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent 38%),
            linear-gradient(315deg, rgba(59, 130, 246, 0.08), transparent 34%),
            rgb(255, 255, 255);
    }

    .dark .hex-chart-card {
        border-color: rgba(45, 212, 191, 0.22);
        background:
            linear-gradient(135deg, rgba(20, 184, 166, 0.14), transparent 38%),
            linear-gradient(315deg, rgba(59, 130, 246, 0.12), transparent 34%),
            rgba(255, 255, 255, 0.04);
    }

    .hex-page {
        display: grid;
        gap: 1.5rem;
    }

    .hex-kpi-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .hex-grid-2 {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
        gap: 1.5rem;
    }

    .hex-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .hex-card,
    .hex-panel,
    .hex-invoice-sheet {
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 0.875rem;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .hex-card,
    .hex-panel {
        padding: 1.25rem;
    }

    .hex-card {
        position: relative;
        overflow: hidden;
    }

    .hex-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 0.25rem;
        background: rgba(20, 184, 166, 0.45);
    }

    .hex-card-teal,
    .hex-card-blue,
    .hex-card-amber,
    .hex-card-emerald,
    .hex-card-sky {
        border-color: rgba(203, 213, 225, 0.78);
    }

    .hex-card-teal::before { background: rgba(20, 184, 166, 0.48); }
    .hex-card-blue::before { background: rgba(59, 130, 246, 0.44); }
    .hex-card-amber::before { background: rgba(245, 158, 11, 0.46); }
    .hex-card-emerald::before { background: rgba(16, 185, 129, 0.44); }
    .hex-card-sky::before { background: rgba(14, 165, 233, 0.44); }

    .hex-card-label,
    .hex-muted {
        color: rgb(100, 116, 139);
        font-size: 0.875rem;
    }

    .hex-card-value {
        color: rgb(15, 23, 42);
        font-size: 1.625rem;
        line-height: 1.15;
        font-weight: 750;
        margin-top: 0.35rem;
        display: block;
        max-width: 100%;
        text-align: left;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hex-card-link {
        color: rgb(13, 148, 136);
        text-decoration: none;
    }

    .fi-wi-stats-overview {
        gap: 0.85rem;
    }

    .fi-wi-stats-overview-stat.hex-business-stat {
        position: relative;
        overflow: hidden;
        min-height: 7.75rem;
        background:
            linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(255, 255, 255, 0) 42%),
            rgb(255, 255, 255);
        border: 1px solid rgb(205, 213, 224);
        border-radius: 0.45rem;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
    }

    .fi-wi-stats-overview-stat.hex-business-stat::before {
        content: '';
        position: absolute;
        inset: 0 auto 0 0;
        width: 0.28rem;
        background: rgb(20, 184, 166);
    }

    .fi-wi-stats-overview-stat.hex-business-stat::after {
        content: '';
        position: absolute;
        right: -2.8rem;
        top: -2.8rem;
        width: 7rem;
        height: 7rem;
        border-radius: 999px;
        background: rgba(20, 184, 166, 0.08);
    }

    .fi-wi-stats-overview-stat.hex-business-stat .fi-wi-stats-overview-stat-label {
        color: rgb(71, 85, 105);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .fi-wi-stats-overview-stat.hex-business-stat .fi-wi-stats-overview-stat-value {
        margin-top: 0.3rem;
        color: rgb(2, 6, 23);
        font-size: clamp(1.35rem, 2.2vw, 2rem);
        line-height: 1.05;
        letter-spacing: 0;
    }

    .fi-wi-stats-overview-stat.hex-business-stat .fi-wi-stats-overview-stat-description {
        color: rgb(100, 116, 139);
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .fi-wi-stats-overview-stat.hex-business-stat-primary::before { background: rgb(20, 184, 166); }
    .fi-wi-stats-overview-stat.hex-business-stat-success::before { background: rgb(34, 197, 94); }
    .fi-wi-stats-overview-stat.hex-business-stat-warning::before { background: rgb(245, 158, 11); }
    .fi-wi-stats-overview-stat.hex-business-stat-teal::before { background: rgb(13, 148, 136); }
    .fi-wi-stats-overview-stat.hex-business-stat-info::before { background: rgb(14, 165, 233); }
    .fi-wi-stats-overview-stat.hex-business-stat-neutral::before { background: rgb(100, 116, 139); }

    .hex-card-link:hover {
        text-decoration: underline;
    }

    .hex-card-value-sm {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .hex-card-subtitle {
        color: rgb(71, 85, 105);
        font-size: 0.875rem;
        margin-top: 0.75rem;
    }

    .hex-section-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .hex-section-title {
        color: rgb(15, 23, 42);
        font-size: 1.075rem;
        line-height: 1.35;
        font-weight: 750;
    }

    .hex-bars {
        display: flex;
        align-items: end;
        gap: 0.85rem;
        height: 13rem;
        padding-top: 1rem;
    }

    .hex-bar-item {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hex-bar {
        width: 100%;
        min-height: 0.5rem;
        border-radius: 0.65rem 0.65rem 0 0;
        background: linear-gradient(180deg, #38bdf8, #14b8a6);
    }

    .hex-bar-emerald {
        background: linear-gradient(180deg, #5eead4, #059669);
    }

    .hex-bar-amber {
        background: linear-gradient(180deg, #fed7aa, #f59e0b);
    }

    .hex-bar-label {
        color: rgb(100, 116, 139);
        font-size: 0.75rem;
    }

    .hex-list {
        display: grid;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .hex-list-compact {
        gap: 0.55rem;
    }

    .hex-list-item,
    .hex-activity,
    .hex-activity-card {
        display: block;
        border: 1px solid rgba(148, 163, 184, 0.20);
        border-radius: 0.65rem;
        padding: 0.9rem;
        color: inherit;
        text-decoration: none;
        transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
    }

    .hex-activity-card {
        overflow: hidden;
        background: rgba(255, 255, 255, 0.58);
    }

    .hex-list-item:hover,
    .hex-activity:hover,
    .hex-activity-card:hover {
        border-color: rgba(20, 184, 166, 0.42);
        background: rgba(20, 184, 166, 0.06);
        transform: translateY(-1px);
    }

    .hex-list-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-width: 0;
    }

    .hex-list-row-tight {
        gap: 0.75rem;
    }

    .hex-truncate {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hex-truncate .hex-item-title,
    .hex-truncate .hex-item-meta {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hex-wrap-lines .hex-item-title,
    .hex-wrap-lines .hex-item-meta {
        display: -webkit-box;
        white-space: normal;
        overflow: hidden;
        -webkit-box-orient: vertical;
    }

    .hex-wrap-lines .hex-item-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hex-wrap-lines .hex-item-meta {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hex-item-title {
        font-weight: 650;
        color: rgb(15, 23, 42);
    }

    .hex-item-meta,
    .hex-item-text {
        color: rgb(71, 85, 105);
        font-size: 0.875rem;
        margin-top: 0.35rem;
    }

    .hex-badge {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0.2rem 0.55rem;
        background: rgba(20, 184, 166, 0.10);
        color: rgb(15, 118, 110);
        font-size: 0.75rem;
        font-weight: 650;
        white-space: nowrap;
    }

    .hex-badge-warning {
        background: rgba(245, 158, 11, 0.14);
        color: rgb(180, 83, 9);
    }

    .hex-badge-status-todo,
    .hex-badge-status-planned {
        background: rgba(148, 163, 184, 0.14);
        color: rgb(71, 85, 105);
    }

    .hex-badge-status-in_progress,
    .hex-badge-status-active {
        background: rgba(59, 130, 246, 0.12);
        color: rgb(29, 78, 216);
    }

    .hex-badge-status-review,
    .hex-badge-status-waiting_for_customer {
        background: rgba(245, 158, 11, 0.14);
        color: rgb(180, 83, 9);
    }

    .hex-badge-status-done,
    .hex-badge-status-completed {
        background: rgba(16, 185, 129, 0.14);
        color: rgb(4, 120, 87);
    }

    .hex-badge-status-cancelled,
    .hex-badge-status-paused {
        background: rgba(239, 68, 68, 0.12);
        color: rgb(185, 28, 28);
    }

    .hex-badge-priority-low {
        background: rgba(148, 163, 184, 0.14);
        color: rgb(71, 85, 105);
    }

    .hex-badge-priority-normal {
        background: rgba(20, 184, 166, 0.10);
        color: rgb(15, 118, 110);
    }

    .hex-badge-priority-high {
        background: rgba(245, 158, 11, 0.14);
        color: rgb(180, 83, 9);
    }

    .hex-badge-priority-urgent {
        background: rgba(239, 68, 68, 0.12);
        color: rgb(185, 28, 28);
    }

    .hex-subscription-mini {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.65rem;
        flex: 0 0 auto;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .hex-subscription-stack {
        display: grid;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hex-subscription-card {
        border: 1px solid rgba(148, 163, 184, 0.24);
        background: rgb(255, 255, 255);
        border-radius: 0.75rem;
        padding: 1rem;
    }

    .hex-subscription-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }

    .hex-subscription-timeline {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(9.5rem, 12rem);
        gap: 0;
        margin-top: 1.25rem;
        overflow-x: auto;
        padding: 0.25rem 0 0.35rem;
    }

    .hex-timeline-moment {
        position: relative;
        min-height: 9.5rem;
        padding: 0 0.5rem;
    }

    .hex-timeline-line {
        position: absolute;
        top: 0.55rem;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(148, 163, 184, 0.28);
    }

    .hex-timeline-dot {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.15rem;
        height: 1.15rem;
        border-radius: 999px;
        border: 2px solid #fff;
        box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
        background: rgb(148, 163, 184);
        color: #fff;
        font-size: 0.65rem;
        font-weight: 800;
    }

    .hex-timeline-paid { background: rgb(16, 185, 129); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.45); }
    .hex-timeline-open,
    .hex-timeline-missing,
    .hex-timeline-duplicate { background: rgb(239, 68, 68); box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.42); }
    .hex-timeline-future { background: rgb(148, 163, 184); box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35); }

    .hex-timeline-current .hex-timeline-dot {
        outline: 3px solid rgba(59, 130, 246, 0.16);
    }

    .hex-timeline-label {
        margin-top: 0.65rem;
        color: rgb(15, 23, 42);
        font-size: 0.82rem;
        font-weight: 750;
        text-transform: capitalize;
    }

    .hex-timeline-range,
    .hex-timeline-empty {
        color: rgb(100, 116, 139);
        font-size: 0.72rem;
    }

    .hex-timeline-invoices {
        display: grid;
        gap: 0.35rem;
        margin-top: 0.55rem;
    }

    .hex-timeline-invoice {
        display: grid;
        gap: 0.1rem;
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-left-width: 0.25rem;
        border-radius: 0.5rem;
        padding: 0.4rem 0.5rem;
        background: rgb(248, 250, 252);
        color: rgb(15, 23, 42);
        font-size: 0.76rem;
        text-decoration: none;
    }

    .hex-timeline-invoice:hover {
        background: rgb(241, 245, 249);
    }

    .hex-timeline-invoice-paid { border-left-color: rgb(16, 185, 129); }
    .hex-timeline-invoice-draft { border-left-color: rgb(148, 163, 184); }
    .hex-timeline-invoice-sent { border-left-color: rgb(59, 130, 246); }
    .hex-timeline-invoice-overdue,
    .hex-timeline-invoice-cancelled { border-left-color: rgb(239, 68, 68); }

    .hex-status-dot {
        display: inline-block;
        width: 0.65rem;
        height: 0.65rem;
        border-radius: 999px;
        margin-right: 0.45rem;
        vertical-align: middle;
        background: rgb(148, 163, 184);
    }

    .hex-status-draft { background: rgb(148, 163, 184); }
    .hex-status-sent { background: rgb(59, 130, 246); }
    .hex-status-paid { background: rgb(16, 185, 129); }
    .hex-status-overdue { background: rgb(245, 158, 11); }
    .hex-status-cancelled { background: rgb(239, 68, 68); }

    .hex-link {
        color: rgb(13, 148, 136);
        font-weight: 650;
        text-decoration: none;
    }

    .hex-link:hover {
        text-decoration: underline;
    }

    .hex-table-wrap {
        overflow-x: auto;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 0.75rem;
        margin-top: 1rem;
    }

    .hex-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.875rem;
    }

    .hex-table th,
    .hex-table td {
        padding: 0.8rem 0.95rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        text-align: left;
        vertical-align: top;
    }

    .hex-table th {
        background: rgb(248, 250, 252);
        color: rgb(71, 85, 105);
        font-weight: 700;
    }

    .hex-table tr:last-child td {
        border-bottom: 0;
    }

    .hex-table-wrap-compact {
        overflow-x: hidden;
    }

    .hex-table-compact {
        table-layout: fixed;
        font-size: 0.82rem;
    }

    .hex-table-compact th,
    .hex-table-compact td {
        padding-inline: 0.65rem;
        white-space: normal;
    }

    .hex-table-compact th:nth-child(1),
    .hex-table-compact td:nth-child(1) { width: 32%; }

    .hex-table-compact th:nth-child(2),
    .hex-table-compact td:nth-child(2) { width: 22%; }

    .hex-table-compact th:nth-child(3),
    .hex-table-compact td:nth-child(3) { width: 27%; }

    .hex-table-compact th:nth-child(4),
    .hex-table-compact td:nth-child(4) { width: 19%; }

    .hex-clickable-row {
        cursor: pointer;
        transition: background-color 150ms ease;
    }

    .hex-clickable-row:hover {
        background: rgba(20, 184, 166, 0.055);
    }

    .hex-text-right {
        text-align: right !important;
    }

    .hex-description {
        color: rgb(71, 85, 105);
        line-height: 1.65;
    }

    .hex-rich-text {
        line-height: 1.7;
    }

    .hex-rich-text p,
    .hex-rich-text ul,
    .hex-rich-text ol {
        margin-block: 0.55rem;
    }

    .hex-rich-text ul {
        list-style: disc;
        padding-left: 1.45rem;
    }

    .hex-rich-text ol {
        list-style: decimal;
        padding-left: 1.45rem;
    }

    .hex-rich-text li {
        padding-left: 0.2rem;
        margin-block: 0.25rem;
    }

    .hex-rich-text-preview {
        max-height: 8.5rem;
        overflow: hidden;
    }

    .hex-rich-text-preview p,
    .hex-rich-text-preview ul,
    .hex-rich-text-preview ol {
        margin-block: 0.35rem;
    }

    .hex-dashboard-preview {
        display: -webkit-box;
        max-width: 48rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-height: 1.45;
    }

    .hex-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-bottom: 1rem;
    }

    .hex-knowledge-content {
        max-width: 78rem;
        font-size: 0.98rem;
    }

    .hex-knowledge-index {
        gap: 1.1rem;
    }

    .hex-knowledge-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 0.8fr);
        gap: 1rem;
        align-items: stretch;
        padding: 1.15rem;
        border: 1px solid rgb(203, 213, 225);
        border-radius: 0.3rem;
        background: linear-gradient(135deg, rgb(255, 255, 255), rgb(248, 250, 252));
    }

    .hex-knowledge-hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 10rem;
    }

    .hex-eyebrow,
    .hex-knowledge-mini-meta {
        color: rgb(0, 123, 255);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hex-knowledge-hero h2 {
        max-width: 44rem;
        margin: 0.35rem 0 0;
        color: rgb(2, 6, 23);
        font-size: clamp(1.6rem, 2vw, 2.15rem);
        font-weight: 850;
        line-height: 1.04;
    }

    .hex-knowledge-hero p {
        max-width: 50rem;
        margin-top: 0.7rem;
        color: rgb(71, 85, 105);
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hex-knowledge-stat-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .hex-knowledge-stat {
        display: flex;
        min-height: 4.65rem;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid rgb(203, 213, 225);
        border-top: 3px solid rgb(0, 123, 255);
        border-radius: 0.25rem;
        background: rgb(255, 255, 255);
        padding: 0.75rem 0.85rem;
    }

    .hex-knowledge-stat span {
        color: rgb(71, 85, 105);
        font-size: 0.78rem;
        font-weight: 700;
    }

    .hex-knowledge-stat strong {
        color: rgb(2, 6, 23);
        font-size: 1.55rem;
        font-weight: 850;
        line-height: 1;
    }

    .hex-knowledge-hub-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 0.5fr);
        gap: 1rem;
    }

    .hex-knowledge-card-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .hex-knowledge-mini-card {
        display: flex;
        min-height: 10rem;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid rgb(203, 213, 225);
        border-radius: 0.25rem;
        background: rgb(255, 255, 255);
        padding: 0.85rem;
        color: inherit;
        text-decoration: none;
        transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    }

    .hex-knowledge-mini-card:hover {
        border-color: rgb(0, 123, 255);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
    }

    .hex-knowledge-mini-card h3 {
        margin-top: 0.4rem;
        color: rgb(2, 6, 23);
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .hex-knowledge-mini-card p {
        margin-top: 0.45rem;
        color: rgb(71, 85, 105);
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .hex-knowledge-mini-footer {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        margin-top: 0.85rem;
        border-top: 1px solid rgb(226, 232, 240);
        padding-top: 0.65rem;
        color: rgb(100, 116, 139);
        font-size: 0.75rem;
        font-weight: 700;
    }

    .hex-knowledge-category-list {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .hex-knowledge-category-pill {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        border: 1px solid rgb(203, 213, 225);
        border-radius: 0.25rem;
        background: rgb(248, 250, 252);
        padding: 0.65rem 0.75rem;
        color: rgb(15, 23, 42);
        font-size: 0.86rem;
    }

    .hex-knowledge-category-pill span {
        display: inline-flex;
        min-width: 1.6rem;
        justify-content: center;
        border: 1px solid rgb(191, 219, 254);
        border-radius: 999px;
        background: rgb(239, 246, 255);
        color: rgb(0, 92, 191);
        font-size: 0.75rem;
        font-weight: 800;
    }

    .hex-knowledge-table-panel .hex-section-header {
        border-bottom: 1px solid rgb(226, 232, 240);
    }

    .hex-knowledge-table-shell {
        padding: 0;
    }

    .hex-knowledge-content h1,
    .hex-knowledge-content h2,
    .hex-knowledge-content h3 {
        color: rgb(15, 23, 42);
        font-weight: 800;
        margin-top: 1.35rem;
        margin-bottom: 0.65rem;
    }

    .hex-knowledge-content h1 { font-size: 1.5rem; }
    .hex-knowledge-content h2 { font-size: 1.25rem; }
    .hex-knowledge-content h3 { font-size: 1.1rem; }

    .hex-knowledge-content pre,
    .hex-knowledge-content code {
        border-radius: 0.45rem;
        background: rgb(15, 23, 42);
        color: rgb(226, 232, 240);
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    }

    .hex-knowledge-content pre {
        overflow-x: auto;
        margin: 1rem 0;
        padding: 1rem;
    }

    .hex-knowledge-content pre + pre {
        margin-top: 1rem !important;
    }

    .hex-knowledge-content p + pre,
    .hex-knowledge-content pre + p {
        margin-top: 1rem;
    }

    .hex-knowledge-content code {
        padding: 0.12rem 0.3rem;
    }

    .hex-knowledge-content pre code {
        padding: 0;
    }

    .hex-knowledge-content img {
        max-width: 100%;
        height: auto;
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: 0.65rem;
        margin-block: 0.85rem;
    }

    @media (max-width: 80rem) {
        .hex-knowledge-hero,
        .hex-knowledge-hub-grid {
            grid-template-columns: 1fr;
        }

        .hex-knowledge-card-grid {
            grid-template-columns: 1fr;
        }
    }

    .hex-invoice-wrap {
        width: 100%;
        max-width: min(100%, 78rem);
        margin-inline: auto;
        display: grid;
        gap: 1.5rem;
    }

    .hex-invoice-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    }

    .hex-invoice-kpi-grid .hex-card {
        min-width: 0;
    }

    .hex-invoice-kpi-grid .hex-card-value {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hex-invoice-kpi-grid .hex-card-value-sm {
        font-size: clamp(0.9rem, 1.35vw, 1.05rem);
    }

    .hex-invoice-sheet {
        max-width: 210mm;
        min-height: 297mm;
        margin-inline: auto;
        padding: 2.5rem;
        border-radius: 0.25rem;
        color: rgb(15, 23, 42);
    }

    .hex-invoice-top {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    }

    .hex-brand-small {
        color: rgb(13, 148, 136);
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hex-invoice-title {
        font-size: 2rem;
        font-weight: 800;
        margin-top: 1rem;
    }

    .hex-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .hex-definition-list {
        display: grid;
        gap: 0.85rem;
        font-size: 0.875rem;
    }

    .hex-definition-list div {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .hex-totals {
        max-width: 22rem;
        margin-left: auto;
        margin-top: 1.5rem;
        display: grid;
        gap: 0.75rem;
        font-size: 0.95rem;
    }

    .hex-total-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .hex-total-row-final {
        border-top: 1px solid rgba(148, 163, 184, 0.24);
        padding-top: 0.75rem;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .hex-chart-card {
        border-radius: 0.875rem;
        padding: 1.25rem;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .hex-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 0.65rem;
        background: rgb(20, 184, 166);
        color: rgb(15, 23, 42);
        cursor: pointer;
        font-weight: 700;
        padding: 0.55rem 0.85rem;
        text-decoration: none;
        white-space: nowrap;
        gap: 0.45rem;
    }

    .hex-button-secondary {
        background: #fff;
        border: 1px solid rgba(203, 213, 225, 0.95);
        color: rgb(15, 23, 42);
    }

    .hex-button-finance { border-color: rgba(245, 158, 11, 0.45); }
    .hex-button-sales { border-color: rgba(59, 130, 246, 0.42); }
    .hex-button-work { border-color: rgba(20, 184, 166, 0.42); }

    .hex-button-icon {
        color: rgb(100, 116, 139);
        font-weight: 900;
    }

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

    .hex-context-actions {
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .hex-context-actions .hex-button {
        border-radius: 999px;
        padding: 0.42rem 0.68rem;
        font-size: 0.875rem;
        font-weight: 700;
    }

    .hex-context-actions .hex-button-icon {
        display: inline-grid;
        place-items: center;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 999px;
        background: rgba(100, 116, 139, 0.10);
        color: rgb(51, 65, 85);
        font-size: 0.8rem;
    }

    .hex-contact-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .hex-project-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .hex-project-card {
        min-height: 8.5rem;
    }

    .hex-project-metrics {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 1rem;
        color: rgb(71, 85, 105);
        font-size: 0.875rem;
    }

    .hex-chart-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .hex-chart-summary-item {
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 0.65rem;
        background: rgba(255, 255, 255, 0.74);
        padding: 0.75rem;
    }

    @media (max-width: 1100px) {
        .hex-kpi-grid,
        .hex-grid-3,
        .hex-grid-2,
        .hex-detail-grid,
        .hex-contact-grid,
        .hex-project-grid {
            grid-template-columns: 1fr;
        }

        .hex-chart-summary {
            grid-template-columns: 1fr;
        }
    }

    .dark .hex-card,
    .dark .hex-panel,
    .dark .hex-invoice-sheet,
    .dark .hex-list-item,
    .dark .hex-activity,
    .dark .hex-table-wrap {
        background: rgba(255, 255, 255, 0.045);
        border-color: rgba(255, 255, 255, 0.10);
        box-shadow: none;
    }

    .dark .fi-wi-stats-overview-stat {
        background: rgba(255, 255, 255, 0.04);
    }

    .dark .hex-card-value,
    .dark .hex-section-title,
    .dark .hex-item-title,
    .dark .hex-invoice-sheet,
    .dark .hex-invoice-title {
        color: rgb(248, 250, 252);
    }

    .dark .hex-card-label,
    .dark .hex-card-subtitle,
    .dark .hex-muted,
    .dark .hex-item-meta,
    .dark .hex-item-text,
    .dark .hex-description {
        color: rgb(203, 213, 225);
    }

    .dark .hex-table th {
        background: rgba(255, 255, 255, 0.055);
        color: rgb(203, 213, 225);
    }

    .dark .hex-button-secondary {
        background: rgba(255, 255, 255, 0.04);
        color: rgb(248, 250, 252);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .dark .hex-table th,
    .dark .hex-table td,
    .dark .hex-invoice-top,
    .dark .hex-total-row-final {
        border-color: rgba(255, 255, 255, 0.10);
    }

    /* Operational dashboard skin: denser, calmer, more backoffice than showcase. */
    .fi-body {
        background: rgb(246, 248, 251);
    }

    .fi-sidebar {
        background: rgb(249, 250, 252);
        border-inline-end-color: rgb(218, 224, 232);
    }

    .fi-topbar {
        border-bottom: 1px solid rgb(218, 224, 232);
        box-shadow: none;
    }

    .fi-main .fi-page {
        max-width: min(1760px, calc(100vw - 2rem));
    }

    .hex-page {
        gap: 1rem;
    }

    .hex-kpi-grid,
    .hex-grid-2,
    .hex-grid-3,
    .hex-contact-grid,
    .hex-project-grid,
    .hex-chart-summary {
        gap: 0.85rem;
    }

    .hex-card,
    .hex-panel,
    .hex-chart-card,
    .hex-invoice-sheet,
    .fi-section,
    .fi-ta-ctn,
    .fi-wi-stats-overview-stat {
        border-color: rgb(205, 213, 224);
        border-radius: 0.35rem;
        box-shadow: none;
    }

    .hex-card,
    .hex-panel,
    .hex-chart-card {
        background: rgb(255, 255, 255);
    }

    .hex-card,
    .hex-panel {
        padding: 0;
        overflow: hidden;
    }

    .hex-card::before {
        display: none;
    }

    .hex-card > *,
    .hex-panel > * {
        padding-inline: 1rem;
    }

    .hex-card > :first-child,
    .hex-panel > :first-child {
        padding-top: 0.95rem;
    }

    .hex-card > :last-child,
    .hex-panel > :last-child {
        padding-bottom: 0.95rem;
    }

    .hex-section-header {
        align-items: center;
        min-height: 3rem;
        margin: 0 0 0.75rem;
        padding-block: 0.75rem;
        background: rgb(248, 250, 252);
        border-bottom: 1px solid rgb(226, 232, 240);
    }

    .hex-section-title {
        font-size: 0.95rem;
        line-height: 1.25;
        font-weight: 800;
    }

    .hex-card-label,
    .hex-muted,
    .hex-card-subtitle,
    .hex-item-meta,
    .hex-item-text {
        color: rgb(71, 85, 105);
    }

    .hex-card-label {
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .hex-card-value {
        font-size: 1.45rem;
        margin-top: 0.25rem;
        display: block;
        max-width: 100%;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .hex-card-link {
        color: rgb(13, 148, 136);
        text-decoration: none;
    }

    .hex-list {
        gap: 0;
        margin-top: 0;
    }

    .hex-list-item,
    .hex-activity,
    .hex-activity-card {
        border-width: 0;
        border-top: 1px solid rgb(226, 232, 240);
        border-radius: 0;
        background: transparent;
        padding: 0.8rem 1rem;
        transition: background-color 120ms ease;
    }

    .hex-list > :first-child {
        border-top-width: 0;
    }

    .hex-list-item:hover,
    .hex-activity:hover,
    .hex-activity-card:hover,
    .hex-clickable-row:hover {
        background: rgb(248, 250, 252);
        border-color: rgb(226, 232, 240);
        transform: none;
    }

    .hex-item-title {
        font-weight: 750;
    }

    .hex-badge {
        border-radius: 0.25rem;
        border: 1px solid currentColor;
        background: rgb(255, 255, 255);
        padding: 0.13rem 0.45rem;
        font-size: 0.72rem;
        font-weight: 750;
    }

    .hex-button {
        border-radius: 0.3rem;
        background: rgb(15, 118, 110);
        color: rgb(255, 255, 255);
        padding: 0.45rem 0.7rem;
    }

    .hex-button-secondary {
        background: rgb(255, 255, 255);
        border: 1px solid rgb(203, 213, 225);
        color: rgb(15, 23, 42);
    }

    .hex-context-actions .hex-button {
        border-radius: 0.3rem;
        padding: 0.38rem 0.6rem;
        font-size: 0.82rem;
    }

    .hex-context-actions .hex-button-icon {
        width: 1.15rem;
        height: 1.15rem;
        border-radius: 0.2rem;
    }

    .hex-table-wrap {
        border-color: rgb(205, 213, 224);
        border-radius: 0.3rem;
        margin-top: 0;
    }

    .hex-table th {
        background: rgb(241, 245, 249);
        color: rgb(51, 65, 85);
        font-size: 0.78rem;
        text-transform: uppercase;
    }

    .hex-table th,
    .hex-table td {
        padding: 0.65rem 0.8rem;
        border-bottom-color: rgb(226, 232, 240);
    }

    .hex-rich-text {
        line-height: 1.55;
    }

    .hex-rich-text-preview {
        max-height: 10rem;
    }

    .hex-bars {
        height: 10rem;
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .hex-bar {
        border-radius: 0.2rem 0.2rem 0 0;
        background: rgb(14, 165, 233);
    }

    .hex-bar-emerald {
        background: rgb(13, 148, 136);
    }

    .hex-bar-amber {
        background: rgb(217, 119, 6);
    }

    .hex-chart-card {
        background: rgb(255, 255, 255);
        padding: 0;
    }

    .hex-chart-card > * {
        padding-inline: 1rem;
    }

    .hex-chart-card > :first-child {
        padding-top: 0.95rem;
    }

    .hex-chart-card > :last-child {
        padding-bottom: 0.95rem;
    }

    .hex-chart-summary-item {
        border-color: rgb(205, 213, 224);
        border-radius: 0.3rem;
        background: rgb(248, 250, 252);
    }

    .hex-project-card {
        min-height: 7rem;
    }

    .hex-project-metrics {
        margin-top: 0.75rem;
    }

    .dark .fi-body,
    .dark .fi-sidebar,
    .dark .hex-card,
    .dark .hex-panel,
    .dark .hex-chart-card,
    .dark .hex-list-item,
    .dark .hex-activity,
    .dark .hex-activity-card {
        background: rgb(15, 23, 42);
        border-color: rgba(148, 163, 184, 0.22);
    }

    .dark .hex-section-header,
    .dark .hex-table th,
    .dark .hex-chart-summary-item {
        background: rgba(30, 41, 59, 0.92);
    }

    .dark .hex-list-item:hover,
    .dark .hex-activity:hover,
    .dark .hex-activity-card:hover,
    .dark .hex-clickable-row:hover {
        background: rgba(30, 41, 59, 0.72);
    }

    .hex-chart-card-premium,
    .hex-customer-revenue-panel {
        position: relative;
        overflow: hidden;
        border-color: rgba(20, 184, 166, 0.24);
        background:
            radial-gradient(circle at 16% 0%, rgba(20, 184, 166, 0.12), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    }

    .hex-chart-card-premium::before,
    .hex-customer-revenue-panel::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 0.22rem;
        background: linear-gradient(90deg, #14b8a6, #0ea5e9, #f59e0b);
    }

    .hex-chart-hero {
        background: transparent;
        border-bottom: 0;
        align-items: flex-start;
    }

    .hex-chart-total {
        display: grid;
        justify-items: end;
        gap: 0.15rem;
        color: rgb(71, 85, 105);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .hex-chart-total strong {
        color: rgb(15, 23, 42);
        font-size: 1.55rem;
        line-height: 1.05;
        letter-spacing: 0;
    }

    .hex-chart-summary-polished {
        margin-bottom: 1rem;
    }

    .hex-chart-summary-polished .hex-chart-summary-item {
        background: rgba(255, 255, 255, 0.78);
        border-color: rgba(148, 163, 184, 0.28);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    }

    .hex-revenue-combo {
        display: grid;
        gap: 0.85rem;
        padding-bottom: 1rem;
    }

    .hex-combo-legend,
    .hex-mini-summary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        color: rgb(71, 85, 105);
        font-size: 0.82rem;
    }

    .hex-combo-legend span,
    .hex-mini-summary span {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        border: 1px solid rgba(148, 163, 184, 0.26);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.7);
        padding: 0.3rem 0.58rem;
    }

    .hex-dot {
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 999px;
        display: inline-block;
    }

    .hex-dot-paid { background: #0f766e; }
    .hex-dot-open { background: #d97706; }

    .hex-combo-chart {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.9rem;
        min-height: 13rem;
        padding: 0.75rem 0.5rem 0;
        border-radius: 0.65rem;
        background:
            linear-gradient(to top, rgba(148, 163, 184, 0.16) 1px, transparent 1px) 0 0 / 100% 25%,
            rgba(248, 250, 252, 0.72);
    }

    .hex-combo-month,
    .hex-customer-chart-month {
        display: grid;
        align-content: end;
        gap: 0.45rem;
        min-width: 0;
        text-align: center;
    }

    .hex-combo-bars {
        display: flex;
        align-items: end;
        justify-content: center;
        gap: 0.32rem;
        min-height: 11rem;
    }

    .hex-combo-bar,
    .hex-customer-chart-bar {
        position: relative;
        width: min(2.25rem, 42%);
        min-height: 0.5rem;
        border-radius: 0.5rem 0.5rem 0.16rem 0.16rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .hex-combo-bar span {
        position: absolute;
        inset: auto 50% calc(100% + 0.35rem) auto;
        transform: translateX(50%);
        color: rgb(71, 85, 105);
        font-size: 0.68rem;
        font-weight: 700;
        opacity: 0;
        transition: opacity 120ms ease;
        white-space: nowrap;
    }

    .hex-combo-month:hover .hex-combo-bar span {
        opacity: 1;
    }

    .hex-combo-bar-paid {
        background: linear-gradient(180deg, #2dd4bf 0%, #0f766e 100%);
    }

    .hex-combo-bar-open {
        background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    }

    .hex-customer-chart {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: end;
        gap: 0.9rem;
        min-height: 14rem;
        padding: 1rem 0.75rem 0.6rem;
        border-radius: 0.65rem;
        background:
            linear-gradient(to top, rgba(14, 165, 233, 0.10) 1px, transparent 1px) 0 0 / 100% 25%,
            linear-gradient(180deg, rgba(14, 165, 233, 0.04), rgba(20, 184, 166, 0.06));
    }

    .hex-customer-chart-value {
        min-height: 1rem;
        color: rgb(71, 85, 105);
        font-size: 0.72rem;
        font-weight: 750;
    }

    .hex-customer-chart-bar {
        justify-self: center;
        width: min(4rem, 70%);
        background: linear-gradient(180deg, #38bdf8 0%, #14b8a6 100%);
    }

    @media (max-width: 760px) {
        .hex-combo-chart,
        .hex-customer-chart {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .hex-chart-total {
            justify-items: start;
        }
    }

    .dark .hex-chart-card-premium,
    .dark .hex-customer-revenue-panel {
        background:
            radial-gradient(circle at 16% 0%, rgba(45, 212, 191, 0.14), transparent 34%),
            linear-gradient(180deg, rgb(15, 23, 42), rgb(15, 23, 42));
        border-color: rgba(45, 212, 191, 0.22);
    }

    .dark .hex-chart-total strong,
    .dark .hex-customer-chart-value {
        color: rgb(248, 250, 252);
    }

    .dark .hex-combo-chart,
    .dark .hex-customer-chart,
    .dark .hex-combo-legend span,
    .dark .hex-mini-summary span,
    .dark .hex-chart-summary-polished .hex-chart-summary-item {
        background-color: rgba(30, 41, 59, 0.72);
        border-color: rgba(148, 163, 184, 0.18);
    }


    .hex-scale-pill {
        border-color: rgba(14, 165, 233, 0.26) !important;
        background: linear-gradient(180deg, rgba(240, 249, 255, 0.94), rgba(236, 253, 245, 0.92)) !important;
        color: rgb(15, 118, 110);
        font-weight: 750;
    }

    .hex-combo-bar-peak::after,
    .hex-customer-chart-bar-peak::after {
        content: "";
        position: absolute;
        inset: 0.45rem 0.42rem auto;
        height: 0.18rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 0.42rem 0 rgba(255, 255, 255, 0.32);
    }

    .hex-combo-bar-peak,
    .hex-customer-chart-bar-peak {
        outline: 2px solid rgba(245, 158, 11, 0.28);
        outline-offset: 3px;
    }

    .hex-invoice-history .hex-section-header {
        align-items: center;
    }

    .hex-search-field {
        display: grid;
        gap: 0.35rem;
        min-width: min(22rem, 100%);
        color: rgb(100, 116, 139);
        font-size: 0.74rem;
        font-weight: 750;
        text-transform: uppercase;
    }

    .hex-search-field input {
        width: 100%;
        border: 1px solid rgba(203, 213, 225, 0.95);
        border-radius: 0.65rem;
        background: rgba(255, 255, 255, 0.9);
        color: rgb(15, 23, 42);
        font-size: 0.92rem;
        font-weight: 500;
        padding: 0.62rem 0.75rem;
        text-transform: none;
        outline: none;
        transition: border-color 140ms ease, box-shadow 140ms ease;
    }

    .hex-search-field input:focus {
        border-color: rgba(20, 184, 166, 0.72);
        box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
    }

    .hex-invoice-history-table {
        max-height: 34rem;
        overflow: auto;
    }

    .hex-invoice-history-table .hex-table {
        min-width: 56rem;
    }

    .hex-invoice-history-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: rgb(248, 250, 252);
    }

    .hex-invoice-history-table tbody tr:hover {
        background: rgba(20, 184, 166, 0.045);
    }

    .dark .hex-scale-pill {
        background: rgba(15, 118, 110, 0.18) !important;
        border-color: rgba(45, 212, 191, 0.24) !important;
        color: rgb(153, 246, 228);
    }

    .dark .hex-search-field input,
    .dark .hex-invoice-history-table thead th {
        background: rgb(15, 23, 42);
        color: rgb(248, 250, 252);
        border-color: rgba(148, 163, 184, 0.22);
    }


    .hex-live-invoice-panel {
        overflow-x: auto;
        max-width: 100%;
        margin-top: 1.35rem;
        padding: 1.5rem;
        border: 1px solid rgb(226, 232, 240);
        border-radius: 0.75rem;
        background:
            linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.96));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .hex-live-invoice-frame {
        width: 794px;
        max-width: none;
        margin: 0 auto;
    }

    .hex-live-invoice-frame .decazoid-invoice-document {
        width: 794px;
        min-height: 1123px;
        margin: 0 auto;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    }

    @media (max-width: 900px) {
        .hex-invoice-kpi-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .hex-live-invoice-panel {
            margin-inline: -1rem;
            padding: 1rem;
            border-radius: 0;
            border-right: 0;
            border-left: 0;
        }

        .hex-live-invoice-frame {
            margin: 0;
        }
    }

    @media (max-width: 640px) {
        .hex-invoice-kpi-grid {
            grid-template-columns: 1fr;
        }
    }

    .dark .hex-live-invoice-panel {
        border-color: rgba(148, 163, 184, 0.18);
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.9));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

