/* FILAMENT CUSTOM STYLING & VIBRANT GRADIENT STAT CARDS */

.fi-main-ctn,
.fi-page,
.fi-page>section,
.fi-ta,
.fi-ta-ctn,
.fi-ta-content,
.fi-ta-table {
    width: 100% !important;
    max-width: 100% !important;
}

table.fi-ta-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

/* VIBRANT GRADIENT STAT CARDS (GLOBAL UNIVERSAL THEMES) */
.fi-wi-stats-overview,
.fi-wi-stats-overview section,
.fi-wi-stats-overview [class*="grid"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fi-wi-stats-overview [class*="grid"] {
    gap: 1.25rem !important;
}

.fi-wi-stats-overview [class*="grid"]>* {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fi-wi-stats-overview-stat {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem !important;
    border: none !important;
    box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.12), 0 2px 6px -2px rgba(15, 23, 42, 0.08) !important;
    transition: none !important;
    transform: none !important;
    background: linear-gradient(135deg, #1E1860 0%, #2F3198 100%) !important;
    /* Default Primary Navy */
}

/* 1. DANGER / MERAH (Kritis, Overdue, Urgent) */
.fi-wi-stats-overview-stat:has([class*="text-danger"]),
.fi-wi-stats-overview-stat:has([class*="text-rose"]),
.fi-wi-stats-overview-stat:has([class*="fi-color-danger"]),
.stat-card-theme-danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    /* Rich Red */
}

/* 2. WARNING / KUNING-AMBER (Pending, Menunggu Approval, Perlu Tindakan) */
.fi-wi-stats-overview-stat:has([class*="text-warning"]),
.fi-wi-stats-overview-stat:has([class*="text-amber"]),
.fi-wi-stats-overview-stat:has([class*="fi-color-warning"]),
.stat-card-theme-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    /* Vibrant Amber-Orange */
}

/* 3. SUCCESS / HIJAU (Selesai, Terkirim, Aman) */
.fi-wi-stats-overview-stat:has([class*="text-success"]),
.fi-wi-stats-overview-stat:has([class*="text-emerald"]),
.fi-wi-stats-overview-stat:has([class*="fi-color-success"]),
.stat-card-theme-success,
.stat-card-theme-accent {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%) !important;
    /* Emerald Green */
}

/* 4. INFO / BIRU CYAN (Proses, Sedang Dipinjam, Informasi) */
.fi-wi-stats-overview-stat:has([class*="text-info"]),
.fi-wi-stats-overview-stat:has([class*="text-sky"]),
.fi-wi-stats-overview-stat:has([class*="fi-color-info"]),
.stat-card-theme-info,
.stat-card-theme-tertiary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    /* Sky Blue */
}

/* 5. PRIMARY / NAVY (Total, Proyek Aktif) */
.fi-wi-stats-overview-stat:has([class*="text-primary"]),
.fi-wi-stats-overview-stat:has([class*="fi-color-primary"]),
.stat-card-theme-primary {
    background: linear-gradient(135deg, #1E1860 0%, #2F3198 100%) !important;
    /* Deep Navy */
}

/* 6. GRAY / SLATE (Draft, Netral) */
.fi-wi-stats-overview-stat:has([class*="text-gray-500"]):not(:has([class*="text-danger"])):not(:has([class*="text-warning"])):not(:has([class*="text-success"])):not(:has([class*="text-info"])),
.stat-card-theme-gray {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    /* Slate Gray */
}

.fi-wi-stats-overview-stat::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.fi-wi-stats-overview-stat:hover {
    transform: none !important;
    transition: none !important;
}

.fi-wi-stats-overview-stat canvas,
.fi-wi-stats-overview-stat svg {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

/* Clean Crisp White Typography on Status Gradient Backgrounds */
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value,
.fi-wi-stats-overview-stat [class*="text-gray-950"],
.fi-wi-stats-overview-stat [class*="dark:text-white"] {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label,
.fi-wi-stats-overview-stat [class*="text-gray-500"],
.fi-wi-stats-overview-stat [class*="text-gray-400"] {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    font-size: 0.775rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-description,
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-description * {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
}

.fi-wi-stats-overview-stat svg {
    color: rgba(255, 255, 255, 0.95) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* modal alert pop up */

.modal-alert-container {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    width: 100%;
}

.dark .modal-alert-container {
    color: #f1f5f9;
}

/* alert top header banner */
.modal-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.modal-alert-banner.danger {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.dark .modal-alert-banner.danger {
    background-color: rgba(69, 10, 10, 0.4);
    border-color: #7f1d1d;
}

.modal-alert-banner.warning {
    background-color: #fffbeb;
    border-color: #fde68a;
}

.dark .modal-alert-banner.warning {
    background-color: rgba(69, 26, 3, 0.4);
    border-color: #78350f;
}

.modal-alert-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.modal-alert-banner.danger .modal-alert-icon {
    background-color: #fee2e2;
    color: #dc2626;
}

.dark .modal-alert-banner.danger .modal-alert-icon {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.modal-alert-banner.warning .modal-alert-icon {
    background-color: #fef3c7;
    color: #d97706;
}

.dark .modal-alert-banner.warning .modal-alert-icon {
    background-color: #78350f;
    color: #fcd34d;
}

.modal-alert-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
}

.modal-alert-banner.danger .modal-alert-title {
    color: #991b1b;
}

.dark .modal-alert-banner.danger .modal-alert-title {
    color: #fca5a5;
}

.modal-alert-banner.warning .modal-alert-title {
    color: #92400e;
}

.dark .modal-alert-banner.warning .modal-alert-title {
    color: #fcd34d;
}

.modal-alert-desc {
    font-size: 0.775rem;
    margin: 0;
    line-height: 1.45;
}

.modal-alert-banner.danger .modal-alert-desc {
    color: #b91c1c;
}

.dark .modal-alert-banner.danger .modal-alert-desc {
    color: #f87171;
}

.modal-alert-banner.warning .modal-alert-desc {
    color: #b45309;
}

.dark .modal-alert-banner.warning .modal-alert-desc {
    color: #fbbf24;
}

/* 3 column metric summary bar */
.modal-metric-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
    gap: 0.25rem;
}

.dark .modal-metric-bar {
    background-color: #0f172a;
    border-color: #1e293b;
}

.modal-metric-col {
    padding: 0.25rem 0.5rem;
}

.modal-metric-col:not(:last-child) {
    border-right: 1px solid #e2e8f0;
}

.dark .modal-metric-col:not(:last-child) {
    border-right-color: #1e293b;
}

.modal-metric-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    display: block;
}

.dark .modal-metric-label {
    color: #94a3b8;
}

.modal-metric-value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0.15rem;
    display: block;
}

.dark .modal-metric-value {
    color: #ffffff;
}

.modal-metric-value.danger {
    color: #dc2626;
}

.dark .modal-metric-value.danger {
    color: #f87171;
}

.modal-metric-value.warning {
    color: #d97706;
}

.dark .modal-metric-value.warning {
    color: #fbbf24;
}

.modal-metric-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.dark .modal-metric-unit {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .modal-alert-banner {
        padding: 0.75rem 0.85rem;
        gap: 0.65rem;
    }
    .modal-alert-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    .modal-alert-title {
        font-size: 0.8125rem;
    }
    .modal-alert-desc {
        font-size: 0.725rem;
    }
    .modal-metric-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.25rem !important;
        padding: 0.5rem 0.35rem !important;
        text-align: center !important;
    }
    .modal-metric-col {
        padding: 0.2rem 0.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .modal-metric-col:not(:last-child) {
        border-right: 1px solid #e2e8f0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .dark .modal-metric-col:not(:last-child) {
        border-right-color: #1e293b !important;
    }
    .modal-metric-label {
        font-size: 0.625rem !important;
    }
    .modal-metric-value {
        font-size: 0.925rem !important;
        margin-top: 0.1rem !important;
    }
    .modal-metric-unit {
        font-size: 0.65rem !important;
    }
    .modal-items-desktop {
        display: none !important;
    }
    .modal-items-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.65rem !important;
        padding: 0.65rem !important;
        max-height: 280px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (min-width: 769px) {
    .modal-items-mobile {
        display: none !important;
    }
    .modal-items-desktop {
        display: block !important;
    }
}

/* mobile modal card item */
.modal-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dark .modal-card-item {
    background: #0f172a;
    border-color: #1e293b;
}

.modal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.modal-card-title {
    font-size: 0.825rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.dark .modal-card-title {
    color: #f1f5f9;
}

.modal-card-sub {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.dark .modal-card-sub {
    color: #94a3b8;
}

.modal-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.45rem 0.5rem;
    text-align: center;
}

.dark .modal-card-stats {
    background: #1e293b;
    border-color: #334155;
}

.modal-card-stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    display: block;
}

.dark .modal-card-stat-label {
    color: #94a3b8;
}

.modal-card-stat-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0.1rem;
    display: block;
}

.dark .modal-card-stat-val {
    color: #f8fafc;
}

/* modal table card */
.modal-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    overflow: hidden;
}

.dark .modal-table-card {
    border-color: #1e293b;
    background-color: #0f172a;
}

.modal-table-header {
    padding: 0.6rem 0.875rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.dark .modal-table-header {
    background-color: #1e293b;
    border-bottom-color: #334155;
    color: #cbd5e1;
}

.modal-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-height: 340px;
}

.modal-data-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.785rem;
}

.modal-data-table thead {
    position: sticky;
    top: 0;
    background-color: #f1f5f9;
    z-index: 10;
}

.dark .modal-data-table thead {
    background-color: #1e293b;
}

.modal-data-table th {
    padding: 0.55rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
}

.dark .modal-data-table th {
    color: #94a3b8;
    border-bottom-color: #334155;
}

.modal-data-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.dark .modal-data-table td {
    border-bottom-color: #1e293b;
    color: #cbd5e1;
}

.modal-data-table tbody tr:hover {
    background-color: transparent !important;
}

/* badges */
.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.175rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.modal-badge.danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dark .modal-badge.danger {
    background-color: rgba(127, 29, 29, 0.4);
    color: #fca5a5;
    border-color: #7f1d1d;
}

.modal-badge.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dark .modal-badge.warning {
    background-color: rgba(120, 53, 15, 0.4);
    color: #fcd34d;
    border-color: #78350f;
}

.modal-badge.neutral {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.dark .modal-badge.neutral {
    background-color: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

.modal-badge.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.dark .modal-badge.success {
    background-color: rgba(6, 95, 70, 0.4);
    color: #6ee7b7;
    border-color: #065f46;
}

/* empty state */
.modal-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
}

.dark .modal-empty-state {
    background-color: rgba(6, 78, 59, 0.25);
    border-color: #065f46;
}

.modal-empty-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    margin: 0 auto 0.75rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dcfce7;
    color: #16a34a;
    font-size: 1.25rem;
}

.dark .modal-empty-icon {
    background-color: #065f46;
    color: #86efac;
}

.modal-empty-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .modal-empty-title {
    color: #ffffff;
}

.modal-empty-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.dark .modal-empty-desc {
    color: #94a3b8;
}

/* aktivitas terbaru */
.fi-recent-activity-widget-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.fi-tab-bar-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fi-tab-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 0.625rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.dark .fi-tab-pill-group {
    background-color: #0f172a;
    border-color: #1e293b;
}

.fi-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.85rem;
    border-radius: 0.45rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: none !important;
    transform: none !important;
    line-height: 1.25;
}

.dark .fi-tab-btn {
    color: #94a3b8;
}

.fi-tab-btn:hover {
    color: #0f172a;
    background-color: rgba(255, 255, 255, 0.6);
}

.dark .fi-tab-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.fi-tab-btn.active {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08) !important;
}

.dark .fi-tab-btn.active {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

.fi-tab-btn.active.tab-inbound {
    color: #059669 !important;
}

.dark .fi-tab-btn.active.tab-inbound {
    color: #34d399 !important;
}

.fi-tab-btn.active.tab-outbound {
    color: #dc2626 !important;
}

.dark .fi-tab-btn.active.tab-outbound {
    color: #f87171 !important;
}

.fi-tab-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.fi-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background-color: #e2e8f0;
    color: #475569;
}

.dark .fi-tab-count {
    background-color: #334155;
    color: #cbd5e1;
}

.fi-tab-btn.active .fi-tab-count {
    background-color: #f1f5f9;
    color: #0f172a;
}

.dark .fi-tab-btn.active .fi-tab-count {
    background-color: #0f172a;
    color: #f1f5f9;
}

.fi-tab-btn.active .fi-tab-count.count-inbound {
    background-color: #d1fae5;
    color: #065f46;
}

.dark .fi-tab-btn.active .fi-tab-count.count-inbound {
    background-color: rgba(6, 95, 70, 0.5);
    color: #6ee7b7;
}

.fi-tab-btn.active .fi-tab-count.count-outbound {
    background-color: #fee2e2;
    color: #991b1b;
}

.dark .fi-tab-btn.active .fi-tab-count.count-outbound {
    background-color: rgba(127, 29, 29, 0.5);
    color: #fca5a5;
}

/* mpbile respon */

html,
body {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {

    button.fi-btn,
    .fi-btn,
    .fi-ta-actions .fi-btn,
    .fi-modal-window footer .fi-btn,
    .fi-input-wrp {
        min-height: 42px !important;
    }

    .fi-modal:not(.fi-modal-slide-over) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow-y: hidden !important;
        padding: 0.75rem !important;
    }

    .fi-modal:not(.fi-modal-slide-over) .fi-modal-window {
        max-width: min(calc(100vw - 1.5rem), 520px) !important;
        max-height: calc(100dvh - 2rem) !important;
        margin: auto !important;
        border-radius: 1.15rem !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
        background: #ffffff !important;
    }

    .dark .fi-modal:not(.fi-modal-slide-over) .fi-modal-window {
        background: #0f172a !important;
    }

    .fi-modal:not(.fi-modal-slide-over) .fi-modal-header {
        padding: 1rem 1.15rem 0.5rem 1.15rem !important;
        flex-shrink: 0 !important;
    }

    .fi-modal:not(.fi-modal-slide-over) .fi-modal-content {
        padding: 0.25rem 1.15rem 0.75rem 1.15rem !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fi-modal:not(.fi-modal-slide-over) .fi-modal-window footer {
        padding: 0.75rem 1.15rem 1rem 1.15rem !important;
        margin-top: 0 !important;
        border-top: 1px solid #f1f5f9 !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
    }

    .dark .fi-modal:not(.fi-modal-slide-over) .fi-modal-window footer {
        background: #0f172a !important;
        border-top-color: #1e293b !important;
    }

    .fi-modal-slide-over .fi-modal-window {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0.85rem !important;
    }

    .fi-ta-content,
    .fi-ta-ctn,
    .modal-table-wrapper,
    .fi-recent-activity-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain;
    }

    .fi-ta-table th,
    .fi-ta-table td {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    .fi-section-content {
        padding: 1rem !important;
    }

    .fi-fo-repeater-item {
        padding: 0.85rem !important;
        border-radius: 0.75rem !important;
    }

    .fi-tab-bar-container {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .fi-tab-pill-group {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        min-width: 100%;
    }

    .fi-tab-btn {
        padding: 0.4rem 0.65rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }
}

/* extra small mobile */
@media (max-width: 480px) {

    .fi-main-ctn,
    .fi-page {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .fi-wi-stats-overview [class*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .fi-wi-stats-overview-stat {
        padding: 1.15rem 1.25rem !important;
    }

    .fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value {
        font-size: 1.5rem !important;
    }

    .fi-modal-window footer .fi-btn {
        width: 100% !important;
        margin-bottom: 0.35rem;
    }

    .fi-modal-window footer [class*="flex"] {
        flex-direction: column-reverse !important;
        width: 100%;
        gap: 0.5rem;
    }
}