/* Cream throughout: page, type. Dark mode is near-neutral charcoal. Figtree UI, Source Serif titles. */

.dark {
    --gray-50: oklch(0.97 0.002 80);
    --gray-100: oklch(0.93 0.003 80);
    --gray-200: oklch(0.86 0.003 80);
    --gray-300: oklch(0.76 0.003 80);
    --gray-400: oklch(0.66 0.003 80);
    --gray-500: oklch(0.56 0.003 80);
    --gray-600: oklch(0.46 0.003 80);
    --gray-700: oklch(0.38 0.003 80);
    --gray-800: oklch(0.28 0.003 80);
    --gray-900: oklch(0.21 0.003 80);
    --gray-950: oklch(0.16 0.003 80);
    --primary-400: oklch(0.78 0.14 42);
    --primary-500: oklch(0.70 0.14 42);
    --primary-600: oklch(0.60 0.13 42);
    --success-400: oklch(0.78 0.10 145);
    --success-500: oklch(0.72 0.10 145);
    --success-600: oklch(0.60 0.10 145);
    --warning-400: oklch(0.82 0.12 92);
    --warning-500: oklch(0.78 0.12 92);
    --danger-400: oklch(0.74 0.18 18);
    --danger-500: oklch(0.66 0.18 18);
}

.fi-body {
    background-color: oklch(0.997 0.0015 90);
    color: oklch(0.30 0.045 82);
    font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

.dark .fi-body {
    background-color: oklch(0.18 0.003 80);
    background-image: none;
    color: oklch(0.88 0.004 80);
}

.fi-main {
    padding-inline: 0.85rem;
}

@media (min-width: 768px) {
    .fi-main {
        padding-inline: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .fi-main {
        padding-inline: 1.25rem;
    }
}

.fi-page-header-main-ctn {
    gap: 0.85rem;
    padding-block: 0.85rem;
}

.fi-page-content {
    row-gap: 0.85rem;
}

.fi-header {
    gap: 0.65rem;
}

.fi-header-heading,
.fi-simple-header-heading {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    color: oklch(0.30 0.045 82);
}

@media (min-width: 640px) {
    .fi-header-heading {
        font-size: 1.45rem;
    }
}

.fi-header-subheading {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    color: oklch(0.52 0.04 80);
}

::selection {
    background-color: oklch(0.92 0.05 88);
    color: oklch(0.28 0.045 82);
}

.dark ::selection {
    background-color: oklch(0.38 0.008 80);
    color: oklch(0.94 0.004 80);
}

.fi-topbar {
    min-height: 3.25rem;
    padding-inline: 0.75rem;
    background-color: oklch(0.997 0.0015 90 / 0.9);
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
    backdrop-filter: blur(16px);
}

.dark .fi-topbar {
    background-color: oklch(0.16 0.003 80 / 0.9);
    --tw-ring-shadow: 0 0 #0000;
}

.fi-topbar-start {
    margin-inline-end: 0.65rem;
}

.fi-topbar-end {
    gap: 0.85rem;
}

.fi-topbar-end > * {
    flex-shrink: 0;
}

.fi-sidebar {
    background-color: transparent;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
}

.fi-sidebar.fi-sidebar-open {
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
}

.fi-body-has-topbar .fi-sidebar-header {
    background-color: transparent;
    --tw-ring-shadow: 0 0 #0000;
}

.fi-sidebar-nav {
    gap: 0.65rem;
    padding: 0.5rem 0.55rem 1rem;
}

.fi-sidebar-nav-groups {
    margin-inline: 0;
    gap: 1.1rem;
}

.fi-sidebar-group {
    gap: 0.4rem;
}

.fi-sidebar-group-items {
    gap: 0.4rem;
}

.fi-sidebar-group-btn {
    gap: 0.5rem;
    padding: 0.2rem 0.55rem;
}

.fi-sidebar-group-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fi-sidebar-item-btn {
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: oklch(1 0.006 85 / 0.9);
}

.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: oklch(0.28 0.004 80 / 0.7);
}

.dark .fi-sidebar-item-btn:hover,
.dark .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover {
    background-color: oklch(0.26 0.003 80 / 0.5);
}

.fi-main-sidebar .fi-tenant-menu {
    display: none;
}

.fi-section:not(.fi-section-not-contained):not(.fi-aside),
.fi-section.fi-aside > .fi-section-content-ctn,
.fi-simple-main,
.fi-dropdown-panel,
.fi-wi-stats-overview-stat {
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
    border-color: transparent !important;
}

.fi-section:not(.fi-section-not-contained):not(.fi-aside),
.fi-section.fi-aside > .fi-section-content-ctn {
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: oklch(0.999 0.002 90);
    box-shadow: inset 0 0 0 1px oklch(0.78 0.02 85 / 0.1);
}

.dark .fi-section:not(.fi-section-not-contained):not(.fi-aside),
.dark .fi-section.fi-aside > .fi-section-content-ctn {
    background-color: oklch(0.22 0.003 80);
}

.fi-ta-ctn {
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: oklch(0.999 0.003 90);
    box-shadow: inset 0 0 0 1px oklch(0.78 0.02 85 / 0.12) !important;
    --tw-ring-shadow: 0 0 #0000;
}

.dark .fi-ta-ctn {
    background-color: oklch(0.22 0.003 80);
    box-shadow: inset 0 0 0 1px oklch(1 0.004 80 / 0.06) !important;
}

.fi-section:not(.fi-section-not-contained):not(.fi-divided) > .fi-section-content-ctn > .fi-section-content,
.fi-section:not(.fi-aside) > .fi-section-header {
    padding: 0.85rem 1rem;
}

.fi-section.fi-section-has-header:not(.fi-collapsed) > .fi-section-content-ctn,
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-footer,
.fi-ta-ctn .fi-ta-header,
.fi-ta-ctn .fi-ta-header-toolbar,
.fi-ta-ctn .fi-ta-filters-above-content-ctn,
.fi-ta-ctn .fi-pagination,
.fi-ta-ctn .fi-ta-table th,
.fi-ta-ctn .fi-ta-table td {
    border-color: transparent !important;
    background-color: transparent;
}

.fi-ta-table,
.fi-ta-table > thead,
.fi-ta-table > tbody,
.fi-ta-table > tfoot {
    --tw-divide-opacity: 1;
    border-color: oklch(0.52 0.03 82 / 0.08);
}

.fi-ta-table > :not(:last-child),
.fi-ta-table > thead > :not(:last-child),
.fi-ta-table > tbody > :not(:last-child),
.fi-ta-table > tfoot > :not(:last-child),
.fi-ta-table tr {
    border-color: oklch(0.52 0.03 82 / 0.08) !important;
    border-top-width: 0 !important;
    border-bottom-width: 1px !important;
    border-style: solid !important;
}

.fi-ta-table > :last-child,
.fi-ta-table > thead > :last-child,
.fi-ta-table > tbody > :last-child,
.fi-ta-table > tfoot > :last-child {
    border-bottom-width: 0 !important;
}

.dark .fi-ta-table,
.dark .fi-ta-table > thead,
.dark .fi-ta-table > tbody,
.dark .fi-ta-table > tfoot {
    border-color: oklch(1 0.004 80 / 0.06);
}

.dark .fi-ta-table > :not(:last-child),
.dark .fi-ta-table > thead > :not(:last-child),
.dark .fi-ta-table > tbody > :not(:last-child),
.dark .fi-ta-table > tfoot > :not(:last-child),
.dark .fi-ta-table tr {
    border-color: oklch(1 0.004 80 / 0.06) !important;
}

.fi-ta-ctn .fi-ta-header,
.fi-ta-ctn .fi-ta-header-toolbar,
.fi-ta-ctn .fi-pagination {
    background-color: transparent;
}

.dark .fi-ta-ctn .fi-ta-header,
.dark .fi-ta-ctn .fi-ta-header-toolbar,
.dark .fi-ta-ctn .fi-pagination {
    background-color: oklch(0.20 0.003 80);
}

.fi-ta-table thead tr {
    background-color: oklch(0.995 0.003 90);
}

.fi-ta-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.fi-ta-table tbody tr:nth-child(even) {
    background-color: oklch(0.992 0.004 90);
}

.fi-ta-table tbody tr:hover {
    background-color: oklch(0.988 0.005 88);
}

.dark .fi-ta-table thead tr {
    background-color: oklch(0.20 0.003 80);
}

.dark .fi-ta-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.dark .fi-ta-table tbody tr:nth-child(even) {
    background-color: oklch(0.19 0.003 80);
}

.dark .fi-ta-table tbody tr:hover {
    background-color: oklch(0.24 0.004 80);
}

.fi-ta-header-cell,
.fi-ta-header-group-cell {
    padding: 0.35rem 0.55rem;
}

.fi-ta-header-cell:first-of-type,
.fi-ta-header-group-cell:first-of-type,
.fi-ta-cell:first-of-type {
    padding-inline-start: 0.75rem;
}

.fi-ta-header-cell:last-of-type,
.fi-ta-header-group-cell:last-of-type,
.fi-ta-cell:last-of-type {
    padding-inline-end: 0.75rem;
}

.fi-ta-cell,
.fi-ta-cell.fi-ta-selection-cell,
.fi-ta-cell.fi-ta-group-selection-cell,
.fi-ta-cell:has(.fi-ta-actions),
.fi-ta-cell:has(.fi-ta-record-checkbox),
.fi-ta-cell:has(.fi-ta-reorder-handle) {
    padding-block: 0.15rem;
    padding-inline: 0.4rem;
}

.fi-ta-text:not(.fi-inline),
.fi-ta-icon:not(.fi-inline),
.fi-ta-image:not(.fi-inline),
.fi-ta-toggle:not(.fi-inline),
.fi-ta-checkbox:not(.fi-inline),
.fi-ta-color:not(.fi-inline),
.fi-ta-select:not(.fi-inline),
.fi-ta-text-input:not(.fi-inline),
.fi-ta-text-summary,
.fi-ta-values-summary,
.fi-ta-range-summary,
.fi-ta-icon-count-summary {
    padding: 0.22rem 0.55rem;
}

.fi-ta-text-item.fi-size-sm {
    line-height: 1.25;
}

.fi-ta-actions {
    gap: 0.35rem;
}

.fi-ta-cell .fi-icon-btn {
    margin: -0.15rem;
    width: 1.75rem;
    height: 1.75rem;
}

.fi-ta-cell .fi-btn {
    padding-block: 0.2rem;
    padding-inline: 0.65rem;
    font-size: 0.75rem;
}

.fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr {
    padding-block: 0.35rem;
}

.fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr > .fi-ta-cell:has(.fi-ta-actions) {
    padding-block: 0.22rem;
}

@media (min-width: 640px) {
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-text:not(.fi-inline),
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-icon:not(.fi-inline),
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-image:not(.fi-inline),
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-toggle:not(.fi-inline),
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-checkbox:not(.fi-inline),
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-color:not(.fi-inline),
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-select:not(.fi-inline),
    .fi-ta-table.fi-ta-table-stacked-on-mobile .fi-ta-text-input:not(.fi-inline) {
        padding: 0.22rem 0.55rem;
    }

    .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr {
        padding-block: 0;
    }

    .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr > .fi-ta-selection-cell,
    .fi-ta-table.fi-ta-table-stacked-on-mobile > tbody > tr > .fi-ta-cell:has(.fi-ta-actions) {
        padding-block: 0.15rem;
        padding-inline: 0.4rem;
    }
}

.fi-input-wrp {
    border-radius: 999px;
    background-color: oklch(0.986 0.004 90 / 0.92);
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
}

.dark .fi-input-wrp {
    background-color: oklch(0.24 0.003 80);
    box-shadow: inset 0 0 0 1px oklch(1 0.004 80 / 0.08) !important;
    --tw-ring-shadow: 0 0 #0000;
}

.fi-input-wrp:not(.fi-disabled):not(:has(.fi-ac-action:focus)):focus-within {
    --tw-ring-shadow: 0 0 #0000;
    background-color: oklch(0.99 0.008 85);
}

.dark .fi-input-wrp:not(.fi-disabled):not(:has(.fi-ac-action:focus)):focus-within {
    background-color: oklch(0.26 0.004 80);
    box-shadow: inset 0 0 0 1px oklch(1 0.004 80 / 0.16) !important;
}

.fi-input-wrp .fi-input-wrp-prefix:not(.fi-inline),
.fi-input-wrp .fi-input-wrp-suffix:not(.fi-inline) {
    border-color: transparent !important;
}

.fi-btn,
.fi-icon-btn,
.fi-badge {
    border-radius: 999px;
    box-shadow: none !important;
}

.fi-btn.fi-outlined {
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
    background-color: oklch(0.986 0.004 90 / 0.92);
}

.dark .fi-btn.fi-outlined {
    --tw-ring-shadow: 0 0 #0000;
    background-color: oklch(0.26 0.003 80 / 0.5);
}

.fi-tabs:not(.fi-contained) {
    max-width: max-content;
    gap: 0.2rem;
    margin-inline: 0;
    border-radius: 999px;
    background-color: oklch(0.986 0.004 90 / 0.85);
    padding: 0.2rem;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
}

.dark .fi-tabs:not(.fi-contained) {
    background-color: oklch(0.16 0.003 80);
    --tw-ring-shadow: 0 0 #0000;
}

.fi-tabs.fi-contained {
    border: 0 !important;
    padding: 0.15rem 0.15rem 0.45rem;
}

.fi-tabs-item {
    border-radius: 999px;
    padding: 0.38rem 0.9rem;
}

.fi-tabs-item.fi-active {
    background-color: oklch(1 0.008 85);
}

.dark .fi-tabs-item.fi-active {
    background-color: oklch(0.28 0.004 80 / 0.7);
}

.fi-dropdown-panel {
    border-radius: 1.5rem;
    background-color: oklch(0.99 0.006 85 / 0.96);
    box-shadow: 0 6px 18px oklch(0.4 0.03 55 / 0.06) !important;
    --tw-ring-shadow: 0 0 #0000;
}

.dark .fi-dropdown-panel {
    background-color: oklch(0.20 0.003 80);
    box-shadow: 0 8px 22px oklch(0.08 0.002 80 / 0.4) !important;
    --tw-ring-shadow: 0 0 #0000;
}

.fi-modal > .fi-modal-close-overlay,
.fi-modal-close-overlay,
.fi-fo-overlay {
    background:
        radial-gradient(78rem 44rem at 50% 36%, oklch(1 0.045 90 / 0.38), transparent 64%),
        linear-gradient(
            165deg,
            oklch(1 0.03 90 / 0.32) 0%,
            oklch(0.98 0.025 90 / 0.16) 46%,
            oklch(0.94 0.04 85 / 0.28) 100%
        ) !important;
    backdrop-filter: blur(44px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(44px) saturate(190%) !important;
}

.dark .fi-modal > .fi-modal-close-overlay,
.dark .fi-modal-close-overlay,
.dark .fi-fo-overlay {
    background: oklch(0.12 0.003 80 / 0.62) !important;
}

.fi-modal-window {
    isolation: isolate;
    border-radius: 0.75rem;
    background:
        linear-gradient(
            165deg,
            oklch(1 0.025 90 / 0.64) 0%,
            oklch(0.99 0.02 90 / 0.42) 48%,
            oklch(0.97 0.03 88 / 0.5) 100%
        ) !important;
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    box-shadow:
        0 0 0 1px oklch(1 0.03 90 / 0.78),
        inset 0 1px 0 oklch(1 0.04 90 / 0.92),
        inset 0 -20px 36px oklch(0.92 0.04 85 / 0.16),
        0 32px 72px -28px oklch(0.48 0.06 85 / 0.26) !important;
    --tw-ring-shadow: 0 0 #0000;
}

.dark .fi-modal-window {
    background: oklch(0.22 0.003 80 / 0.92) !important;
    box-shadow:
        0 0 0 1px oklch(1 0.004 80 / 0.08),
        0 24px 48px -20px oklch(0.08 0.002 80 / 0.5) !important;
}

.fi-modal-window > .fi-modal-header,
.fi-modal-window > .fi-modal-footer {
    background: transparent !important;
    border-color: oklch(0.55 0.04 85 / 0.14);
}

.dark .fi-modal-window > .fi-modal-header,
.dark .fi-modal-window > .fi-modal-footer {
    border-color: oklch(1 0.004 80 / 0.08);
}

.fi-simple-main {
    border-radius: 0.75rem;
    background-color: oklch(0.999 0.002 90);
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000;
}

.fi-country-switcher {
    margin-inline: 0;
    flex-shrink: 0;
}

.fi-country-switcher-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    background-color: oklch(1 0.01 85 / 0.72);
    padding: 0.22rem 0.7rem 0.22rem 0.28rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700, inherit);
    outline: none;
}

.dark .fi-country-switcher-trigger {
    background-color: oklch(0.26 0.003 80 / 0.55);
    color: oklch(0.88 0.004 80);
}

.fi-country-switcher-trigger:hover,
.fi-country-switcher-trigger:focus-visible {
    background-color: oklch(1 0.01 85 / 0.95);
}

.dark .fi-country-switcher-trigger:hover,
.dark .fi-country-switcher-trigger:focus-visible {
    background-color: oklch(0.30 0.004 80 / 0.65);
}

.fi-country-switcher-trigger .fi-avatar,
.fi-country-switcher-trigger .fi-tenant-avatar {
    height: 1.35rem;
    width: 1.35rem;
    border-radius: 999px;
}

.fi-country-switcher-name {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fi-country-switcher-code {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.55;
}

.fi-locale-switcher {
    margin: 0;
    flex-shrink: 0;
}

.fi-locale-switcher button {
    border-radius: 999px;
    background-color: oklch(1 0.01 85 / 0.55);
    padding-inline: 0.65rem;
}

.dark .fi-locale-switcher button {
    background-color: oklch(0.26 0.003 80 / 0.55);
}

.dark .fi-simple-main {
    background-color: oklch(0.22 0.003 80);
}

.dark .fi-header-heading,
.dark .fi-simple-header-heading {
    color: oklch(0.90 0.004 80);
}

.dark .fi-header-subheading,
.dark .fi-sidebar-group-label {
    color: oklch(0.68 0.004 80);
}

.dark .fi-sidebar-item-label {
    color: oklch(0.82 0.004 80);
}

.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label,
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: oklch(0.92 0.004 80);
}

.dark .fi-btn.fi-color-primary:not(.fi-outlined),
.dark .fi-btn.fi-primary:not(.fi-outlined) {
    box-shadow: none !important;
}
