/* ============================================================ */
/*  SPENT BUSINESS ADMIN — CUSTOM THEME                        */
/*  Matches the exact design mockup                            */
/* ============================================================ */

@import "tailwindcss";

@import "tailwindcss/utilities" layer(utilities);
/* Google Fonts — Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

@theme {
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}
/* ------------------------------------------------------------ */
/*  GLOBAL RESET / FONT                                         */
/* ------------------------------------------------------------ */
*,
body,
.fi-body {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
}

/* Force light mode — override any dark tokens */
:root {
    --fi-sidebar-item-active-bg: #141414 !important;
    --fi-sidebar-item-active-icon-color: #ffffff !important;
    --fi-sidebar-item-active-label-color: #ffffff !important;
}

html,
html[class] {
    background-color: #e9eef0 !important;
}

/* ------------------------------------------------------------ */
/*  OVERALL PAGE BACKGROUND                                     */
/* ------------------------------------------------------------ */
.fi-layout,
.fi-main-ctn,
.fi-main,
.fi-page {
    background-color: #e9eef0 !important;
}

/* ------------------------------------------------------------ */
/* Header
/* ------------------------------------------------------------ */
.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------ */
/*  SIDEBAR                                                     */
/* ------------------------------------------------------------ */
.fi-sidebar {
    background-color: #ffffff !important;
    width: 240px !important;
    /* border-right: 1px solid #e5e7eb !important; */
    box-shadow: none !important;
}

.fi-sidebar-header {
    background-color: #ffffff !important;
}

/* Nav active state — Force #141414 */
.fi-sidebar-item.fi-active .fi-sidebar-item-btn {
    background-color: #141414 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #ffffff !important;
}

/* ------------------------------------------------------------ */
/*  TABLE HEADER — "All Users" + Search + Filters on one row   */
/* ------------------------------------------------------------ */
.fi-ta-header-ctn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    background-color: #ffffff !important;
    padding: 0px !important;
    padding-right: 0px !important;
    /* Force flush right */
    border-bottom: none !important;
    border-radius: 12px;
}

.users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1 1 auto;
    width: 100%;
    padding: 12px 0px;
    padding-right: 0px !important;
    /* Force flush right */
    border-radius: 12px 12px 0 0;
}

.users-header-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.users-header-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding-right: 0px !important;
}

.users-header-search {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

.users-header-search-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #4b5563;
    background-color: #f9fafb;
    border: 0;
    border-right: 1px solid #d1d5db;
    cursor: pointer;
}

.users-header-search-toggle-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.users-header-search-input {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
}

.users-header-search-input input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 0.875rem;
    border: 0;
    outline: none;
    background-color: transparent;
}

.users-header-search-icon {
    position: absolute;
    right: 10px;
    inset-block: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.users-header-search-icon svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.users-header-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin-right: 0px !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.users-header-filters-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.fi-ta-header-heading {
    padding-left: 0px;
}

.fi-ta-header {
    padding: 16px 0px !important;
    border-bottom: none !important;
}

.fi-ta-main {
    padding: 16px !important;
}

.fi-ta-header-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
    padding-right: 0px !important;
    /* Force flush right */
    margin-right: 0px !important;
    border-bottom: none !important;
}

/* Search input styling */
.fi-ta-search-field .fi-input-wrp {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
    /* Icon on the right */
    overflow: hidden !important;
    min-width: 250px !important;
}

.fi-ta-search-field input {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 12px !important;
    font-size: 0.875rem !important;
    flex: 1 !important;
}

.fi-ta-search-field svg {
    margin-right: 10px !important;
    color: #9ca3af !important;
}

/* Filters button — remove icon, text only */
.fi-ta-header-toolbar .fi-btn {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    color: #374151 !important;
    height: 38px !important;
    padding: 0 12px !important;
    /* Reduced from 16px */
    font-weight: 500 !important;
    box-shadow: none !important;
}

.fi-ta-header-toolbar .fi-btn svg {
    display: none !important;
    /* Hide the funnel icon */
}

/* ------------------------------------------------------------ */
/*  TABLE COLUMN HEADERS                                        */
/* ------------------------------------------------------------ */
table {
    border-radius: 12px !important;
    border: 1px solid #f1f1f1 !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
}

.fi-ta-header-cell {
    background-color: #d0d5dd !important;
    color: #374151 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* ------------------------------------------------------------ */
/*  BADGES — Status (pills), Role (plain text)                */
/* ------------------------------------------------------------ */

/* status column — remove badge styling entirely to make it look like plain text */
.fi-ta-text-has-badges {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: #374151 !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    display: inline !important;
    /* Remove flex container if it adds padding */
}

/* Status column — pills */
[class*="fi-ta-col-status"] .fi-badge {
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.fi-badge.fi-color-success {
    background-color: #ecfdf5 !important;
    color: #10b981 !important;
}

.fi-badge.fi-color-warning {
    background-color: #fffbeb !important;
    color: #f59e0b !important;
}

.fi-badge.fi-color-danger {
    background-color: #fee2e2 !important;
    color: #ef4444 !important;
}

/* ------------------------------------------------------------ */
/*  LINK ACTION                                                 */
/* ------------------------------------------------------------ */
.fi-ta-row .fi-link {
    color: #060c49 !important;
    font-weight: 500 !important;
}

/* ------------------------------------------------------------ */
/*  TABLE FOOTER — Pagination only, no per-page dropdown        */
/* ------------------------------------------------------------ */
.fi-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background-color: #ffffff !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

.fi-pagination-next-btn {
    display: none !important;
}

.fi-pagination-items,
.fi-pagination-overview {
    display: flex !important;
}

.fi-pagination-items {
    gap: 8px !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.fi-pagination-item {
    height: 32px !important;
    width: 32px !important;
    border: none;
    background-color: transparent !important;
}

.fi-pagination-item.fi-active button {
    border-radius: 36px !important;
    background-color: #141414 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.fi-pagination-item.fi-active button:hover {
    border-radius: 36px !important;
    background-color: #141414 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.fi-pagination-item.fi-active button .fi-pagination-item-label {
    color: #ffffff !important;
}

.fi-ta-filter-indicators {
    display: none !important;
}

.fi-ta-empty-state {
    border: 0px solid #ffffff;
}

/* ------------------------------------------------------------ */
/*  VIEW USER PAGE — User Overview cards                        */
/* ------------------------------------------------------------ */

/* Section card container */
.fi-page .fi-section {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Section header */
.fi-section-header {
    padding: 16px 20px !important;
    border: none !important;
}

.fi-section-header-heading {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.fi-section-header-description {
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
}

/* Info entry containers — dark card style */
.fi-in-text {
    border-radius: 8px !important;
    color: #767676;
    /* padding: 12px 16px !important; */
}

.fi-in-entry {
    background-color: #f5f5f5;
    padding: 12px 16px !important;
    border-radius: 8px !important;
}

.fi-in-text .fi-in-entry-wrp-label label,
.fi-in-text .fi-in-entry-wrp-label {
    color: #a1a1a1 !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.fi-in-text .fi-in-text-item {
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

/* Status badge inside dark card */
.fi-in-text .fi-badge.fi-color-success {
    background-color: transparent;
    color: #10b981 !important;
}

.fi-in-text .fi-badge.fi-color-warning {
    background-color: transparent;
    color: #f59e0b !important;
}

.fi-in-text {
    background-color: transparent;
}

/* ------------------------------------------------------------ */
/*  WALLET BALANCES — Large, bold, #141414                       */
/* ------------------------------------------------------------ */
#wallet .fi-in-text-item {
    font-size: 1.5rem !important; /* big */
    font-weight: 700 !important; /* bold */
    color: #141414 !important; /* dark text color */
}

/* Breadcrumb styling */
.fi-breadcrumbs {
    font-size: 0.8125rem !important;
}

.fi-breadcrumbs-item a {
    color: #141414 !important;
    font-weight: 500 !important;
}

.fi-breadcrumbs-item:last-child span {
    color: #767676 !important;
}

/* ============================================================ */
/*  TRANSACTION DETAILS MODAL STYLES                            */
/* ============================================================ */

.transaction-details-modal {
    space-y: 16px;
}

/* Transaction Header */
.transaction-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.transaction-title {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.transaction-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.transaction-ref {
    font-size: 14px;
    color: #6b7280;
}

/* Business Card */
.business-card {
    background-color: #f3f4f6;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.business-row {
    margin-bottom: 8px;
}

.business-row:last-child {
    margin-bottom: 0;
}

.business-label {
    font-weight: 600;
    color: #374151;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-card {
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.detail-value-large {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.total-card {
    grid-column: span 2;
    background-color: #eff6ff;
    padding: 12px;
    border-radius: 8px;
}

.total-label {
    font-size: 12px;
    color: #2563eb;
    margin-bottom: 4px;
}

.total-value {
    font-size: 20px;
    font-weight: 700;
    color: #1d4ed8;
}

/* Date Card */
.date-card {
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.date-label {
    font-weight: 600;
    color: #374151;
}

/* Timeline Section */
.timeline-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
}

.timeline-title {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon-success {
    width: 16px;
    height: 16px;
    color: #10b981;
    margin-right: 8px;
}

.timeline-icon-warning {
    width: 16px;
    height: 16px;
    color: #f59e0b;
    margin-right: 8px;
}

.timeline-text {
    font-size: 14px;
    color: #4b5563;
}

/* ========================================= */
/* FILAMENT TABLE TABS - UPDATED */
/* ========================================= */

.fi-tabs {
    display: inline-flex !important;
    justify-content: flex-start !important;
    width: fit-content !important;
    margin: 0 !important;
}

/* Custom tab styling */
.custom-tab {
    border-radius: 6px 6px 0 0 !important;
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #6b7280;
    background-color: transparent !important;
    border: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

/* Active tab styling - Filament uses aria-selected for tabs */
.custom-tab[aria-selected="aria-selected"] {
    background-color: #060c49 !important;
    color: #ffffff !important;
    border-radius: 6px 6px 6px 6px !important;
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-025)
        var(--sds-size-depth-100) var(--sds-size-depth-0)
        var(--sds-color-black-100);
}

/* Hover state for non-active tabs */
.custom-tab[aria-selected="false"]:hover {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

/* Alternative approach if the above doesn't work */
.fi-tabs button[aria-selected="true"] {
    background-color: #141414 !important;
    color: #ffffff !important;
    border-radius: 6px 6px 0 0 !important;
}

.fi-tabs button[aria-selected="aria-selected"] span {
    color: #ffffff !important;
}

/* If you need to target the tabs more specifically */
.fi-ta-ctn .fi-tabs button[aria-selected="aria-selected"] {
    background-color: #060c49 !important;
    color: #ffffff !important;
}

/* ================================================
   RIGHT-SIDE TRANSACTION SLIDEOVER (YOUR LAYOUT)
   Matches Image 2 + Your Custom Blade Structure
   ================================================ */

/* Wrapper container */
.fi-modal-window.fi-slide-over {
    width: 400px !important;      /* Matches your design */
    max-width: 420px !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    border-left: 1px solid #e5e7eb !important;
}

/* Make sure content sits edge‑to‑edge */
.fi-modal-content {
    padding: 0 !important;
    background-color: #ffffff !important;
}

/* Main wrapper (your inline flex column) */
.transaction-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

/* =======================
   SECTION: Amount + Status
   ======================= */
.amount-box {
    background-color: #f2f4f7;
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.75rem;
    text-align: center;
    border: 1px dashed #d1d5db;
}

.amount-box .amount-value {
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    color: #1a1c21;
}

.amount-box .status-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 14px;
    margin-top: 0.4rem;
    color: #4a5568;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 100%;
}

.status-completed,
.status-available { background-color: #34c759; }

.status-pending,
.status-review { background-color: #ffcc00; }

.status-failed,
.status-reversed,
.status-refunded { background-color: #ff3b30; }

.status-default { background-color: #6b7280; }

/* =======================
   SECTION: Transaction Box
   ======================= */
.details-outer {
    background-color: #f2f4f7;
    padding: 1rem;
    border-radius: 14px;
}

.details-inner {
    background-color: white;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* =======================
   CARD VISUAL (Black Card)
   ======================= */
.card-box {
    background-color: #1c1c1e;
    color: white;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-box::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255,255,255,0.08) 15px,
        rgba(255,255,255,0.08) 30px
    );
    pointer-events: none;
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-brand {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em;
}

.card-number-exp {
    display: flex;
    align-items: center;
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

/* =======================
   TRANSACTION DETAILS LIST
   ======================= */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.details-row span:first-child {
    color: #64748b;
    font-weight: 500;
}

/* divider */
.details-divider {
    border-top: 1px solid #f3f4f6;
}

/* total row */
.total-row {
    font-size: 15px;
    font-weight: 700;
    color: #1a1c21;
}

/* =======================
   DOWNLOAD BUTTON
   ======================= */
.download-btn {
    background-color: #0b103e;
    color: white;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: 0.2s;
}

.download-btn:hover {
    background-color: #0a0f30;
}

/* ============================================
   TRANSACTION SLIDEOVER — YOUR EXACT CLASSES
   ============================================ */

.transaction-panel {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 1.25rem;
    background: #ffffff;
    height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

/* =============================
   AMOUNT + STATUS
   ============================= */
.amount-header {
    text-align: center;
}

.amount-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1c21;
    margin-bottom: 0.25rem;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    margin-right: 4px;
}

.status-dot.completed { background-color: #34c759; }
.status-dot.available { background-color: #34c759; }
.status-dot.pending { background-color: #ffcc00; }
.status-dot.review { background-color: #ffcc00; }
.status-dot.failed { background-color: #ff3b30; }
.status-dot.reversed { background-color: #ff3b30; }
.status-dot.refunded { background-color: #ff3b30; }
.status-dot.default { background-color: #6b7280; }

.status-text {
    font-size: 14px;
    color: #4b5568;
    text-transform: capitalize;
}

/* =============================
   CARD PREVIEW (IMAGE CARD)
   ============================= */
.card-preview {
    background: #0c0c0f;
    padding: 1rem;
    border-radius: 12px;
    color: white;
}

.card-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.card-name {
    font-weight: 600;
}

.card-number {
    opacity: 0.8;
}

/* =============================
   DETAILS SECTION
   ============================= */
.detail-list {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-total {
    font-size: 18px;
    font-weight: 700;
    color: #1a1c21;
}

/* =============================
   DOWNLOAD BUTTON
   ============================= */
.download-btn {
    width: 100%;
    background-color: #0b103e;
    color: white;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s;
    border: none;
}

.download-btn:hover {
    background-color: #0a0f30;
}

/* ============================================
   FORCE SLIDEOVER TO MATCH IMAGE 2 LAYOUT
   ============================================ */
.fi-modal-window.fi-slide-over {
    width: 400px !important;
    max-width: 420px !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    border-left: 1px solid #e5e7eb !important;
}

.fi-modal-content {
    padding: 0 !important;
    background-color: #ffffff !important;
}

/* ------------------------------------------------------------ */
/*  CLUSTER SUB-NAVIGATION TABS                                 */
/* ------------------------------------------------------------ */
.fi-page-has-sub-navigation-top .fi-page-header-main-ctn {
    position: relative !important;
    padding-top: 80px !important;
    /* Increased space for the tabs */
}

.fi-page-sub-navigation-tabs {
    background-color: #ffffff !important;
    padding: 6px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    gap: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    position: absolute !important;
    top: 20px !important;
    /* Space from top nav bar */
    right: 0 !important;
    z-index: 10 !important;
}

.fi-page-sub-navigation-tabs::before,
.fi-page-sub-navigation-tabs::after {
    display: none !important;
}

.fi-page-sub-navigation-tabs .fi-tabs-item {
    padding: 8px 16px !important;
    border-radius: 8px !important;
    color: #6b7280 !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.fi-page-sub-navigation-tabs .fi-tabs-item .fi-tabs-item-label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: inherit !important;
}

.fi-page-sub-navigation-tabs .fi-tabs-item:hover {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

.fi-page-sub-navigation-tabs .fi-tabs-item.fi-active {
    background-color: #060c49 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.fi-page-sub-navigation-tabs .fi-tabs-item.fi-active .fi-tabs-item-label {
    color: #ffffff !important;
}

.fi-page-sub-navigation-tabs .fi-tabs-item::after {
    display: none !important;
}

/* ------------------------------------------------------------ */
/*  MODAL STYLING                                               */
/* ------------------------------------------------------------ */

/* Center Modal Heading */
.fi-modal-header {
    display: flex !important;
    justify-content: center !important;
    position: relative !important;
    padding-top: 40px !important;
}

.fi-modal-heading {
    text-align: center !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

/* Modal Close Button - Position Top Right */
.fi-modal-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
}

/* Full Width Modal Action Button */
.full-width-modal-action .fi-modal-footer,
.full-width-modal-action .fi-modal-footer-actions {
    display: block !important;
    width: 100% !important;
}

.full-width-modal-action .fi-modal-footer-actions .fi-btn {
    width: 100% !important;
    background-color: #000531 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    height: 48px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    justify-content: center !important;
}

/* Hide "Create & create another" and "Cancel" buttons if they exist */
.full-width-modal-action .fi-modal-footer-actions .fi-btn:nth-child(2),
.full-width-modal-action .fi-modal-footer-actions .fi-btn:nth-child(3) {
    display: none !important;
}

/* Ensure footer has no padding between buttons since we hide them anyway */
.full-width-modal-action .fi-modal-footer-actions {
    gap: 0 !important;
}

/* Toggle alignment - Labels on left, toggle on right */
.fi-fo-toggle .fi-fo-field-wrp-label {
    flex: 1 !important;
}

.fi-fo-toggle button {
    margin-left: auto !important;
}

/* Input styles */
.fi-fo-text-input .fi-input-wrp {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.fi-fo-field-wrp-label label {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
}
/*  BUSINESS VIEW PAGE — Tabs & Cards                           */
/* ------------------------------------------------------------ */

/* Remove white background from all containers on the business detail page */
.fi-page-view .fi-main-ctn,
.fi-page-view .fi-main,
.fi-page-view .fi-page,
.fi-page-view .fi-sc-tabs,
.fi-page-view .fi-tabs,
.fi-page-view .fi-tabs-header,
.fi-page-view .fi-section,
.fi-page-view .fi-section-header,
.fi-page-view .fi-section-content {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Tab buttons — base state */
.fi-tabs-item {
    background-color: transparent !important;
    border: none !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Active tab — Exactly #060C49 */
.fi-tabs-item.fi-active,
.fi-tabs-item[aria-selected="true"] {
    background-color: #060c49 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* Ensure the active label is white */
.fi-tabs-item.fi-active .fi-tabs-item-label,
.fi-tabs-item[aria-selected="true"] .fi-tabs-item-label {
    color: #ffffff !important;
}

/* Specifically target the business identity card for dark background */
.business-identity-card,
.business-identity-card .fi-section-content {
    background-color: #141414 !important;
    background: #141414 !important;
    border-radius: 12px !important;
    border: none !important;
}

.business-identity-card .fi-in-entry-wrp-label label {
    color: #a1a1a1 !important;
}

.business-identity-card .fi-in-text-item {
    color: #ffffff !important;
}

/* Specifically target the stat cards to keep them white */
.business-stat-card,
.business-stat-card .fi-section-content {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #f1f1f1 !important;
}

/* Account Age value — large display */
.stat-age-value .fi-in-text-item {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

/* Wallet balances — large, bold, #141414 with actions under value */
.wallet-balance-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    height: 100% !important;
}

.wallet-balance-text .fi-in-text-item {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #141414 !important;
}

/* Ensure wallet grid cards have equal height */
.fi-page-view [class*="wallet"] .fi-in-entry {
    height: 100% !important;
}

/* ------------------------------------------------------------ */
/*  WALLET BALANCE BANNER (Topup / Deduct modal)                */
/* ------------------------------------------------------------ */
.wallet-balance-banner {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 12px 0px !important;
    border-radius: 12px;
    background-color: #141414;
    color: #ffffff;
    width: 100% !important;
    box-sizing: border-box;
}

.wallet-balance-banner-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-balance-banner-title {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.wallet-balance-banner-subtitle {
    font-size: 0.75rem;
    color: #d4d4d4;
}

.wallet-balance-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.wallet-balance-banner-label {
    font-size: 0.75rem;
    color: #d4d4d4;
}

.wallet-balance-banner-value {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ------------------------------------------------------------ */
/*  MODAL LAYOUT — compact panel aligned right                  */
/* ------------------------------------------------------------ */
.fi-modal-window {
    display: flex !important;
    flex-direction: column !important;
    max-width: 460px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

.fi-modal-content {
    flex: 1 1 auto !important;
    overflow: auto !important;
}

.fi-modal-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
}

.fi-modal-footer .fi-btn {
    width: 100% !important;
    justify-content: center !important;
}

.fi-modal-footer .fi-btn.fi-color-primary {
    background-color: #060c49 !important;
    border-color: #060c49 !important;
    color: #ffffff !important;
}

.fi-modal-footer .fi-btn.fi-color-gray {
    background-color: transparent !important;
    border: none !important;
    color: #6b7280 !important;
    text-decoration: underline;
    box-shadow: none !important;
}
