.fi-sidebar-nav .fi-sidebar-item-label {
    font-size: 1rem;
}

.fi-sidebar-nav .fi-sidebar-group-label {
    font-size: 0.9375rem;
}

.fi-sidebar-nav .fi-sidebar-item {
    padding-top: 0.5625rem;
    padding-bottom: 0.5625rem;
}

.fi-main {
    font-size: 1rem;
    line-height: 1.6;
}

.fi-main .fi-header-heading {
    font-size: 1.625rem;
}

.fi-main .fi-section-header-heading {
    font-size: 1.125rem;
}

.fi-main .fi-table-cell,
.fi-main .fi-ta-text,
.fi-main .fi-fo-field-wrp-label span,
.fi-main .fi-input-wrp input,
.fi-main .fi-select-input,
.fi-main .fi-btn {
    font-size: 0.9375rem;
}

.audit-log-modal {
    max-width: min(96vw, 90rem) !important;
}

.audit-log-modal .fi-modal-content {
    max-height: min(85vh, 900px);
    overflow-y: auto;
}

.audit-log-viewer summary {
    list-style: none;
}

.audit-log-viewer summary::-webkit-details-marker {
    display: none;
}

.audit-log-viewer summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.15s ease;
}

.audit-log-viewer details[open] > summary::before {
    transform: rotate(90deg);
}

.fi-header .fi-breadcrumbs {
    display: inline-flex !important;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgb(26 107 60 / 0.08);
    border: 1px solid rgb(26 107 60 / 0.18);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.dark .fi-header .fi-breadcrumbs {
    background: rgb(26 107 60 / 0.14);
    border-color: rgb(74 222 128 / 0.22);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

.fi-breadcrumbs-list {
    gap: 0.25rem 0.625rem;
}

.fi-breadcrumbs-item-label {
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.fi-breadcrumbs-item a.fi-breadcrumbs-item-label {
    color: rgb(55 65 81) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dark .fi-breadcrumbs-item a.fi-breadcrumbs-item-label {
    color: rgb(209 213 219) !important;
}

.fi-breadcrumbs-item a.fi-breadcrumbs-item-label:hover {
    color: #1a6b3c !important;
}

.dark .fi-breadcrumbs-item a.fi-breadcrumbs-item-label:hover {
    color: #4ade80 !important;
}

.fi-breadcrumbs-item:last-child .fi-breadcrumbs-item-label {
    color: #14532d !important;
    font-weight: 700 !important;
}

.dark .fi-breadcrumbs-item:last-child .fi-breadcrumbs-item-label {
    color: #86efac !important;
}

.fi-breadcrumbs-item-separator {
    width: 0.875rem !important;
    height: 0.875rem !important;
    color: rgb(26 107 60 / 0.45) !important;
}

.dark .fi-breadcrumbs-item-separator {
    color: rgb(74 222 128 / 0.5) !important;
}

@media (max-width: 639px) {
    .fi-header .fi-breadcrumbs {
        padding: 0.375rem 0.75rem;
        border-radius: 0.75rem;
    }

    .fi-breadcrumbs-item-label {
        font-size: 0.8125rem !important;
    }
}
