/* ===== SIDEBAR STYLING ===== */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap");

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

.fi-sidebar-nav {
    background-color: #c8a652 !important;
}

.fi-sidebar-item-label {
    color: #000 !important;
    font-weight: 500;
}

.fi-sidebar-item-icon {
    color: #000 !important;
}

.fi-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.fi-sidebar-item.fi-active {
    background-color: #fff !important;
    border-radius: 8px !important;
    margin: 0 0.5rem;
}

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

.fi-logo {
    color: #000 !important;
}

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

/* ===== REMOVE BLACK TOP BAR ===== */
.fi-topbar {
    display: none !important;
}

.content-card {
    border-radius: 12px;

    overflow: hidden;
}

/* ===== PAGE HEADER STYLING ===== */
.fi-header {
    background-color: #fff !important;
    display: none;
    padding: 1.5rem 2rem !important;
}

.fi-header-heading {
    color: #000 !important;
    font-family: "Raleway", system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
}

/* ===== TABLE STYLING ===== */
.fi-ta-ctn {
    background-color: #fff !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Table Header - Gold Background */
.fi-ta-header {
    background-color: #c8a652 !important;
}

.fi-ta-header-cell {
    background-color: #c8a652 !important;
    color: #000 !important;
    font-weight: 600 !important;
    padding: 1rem !important;
    font-size: 0.95rem !important;
}

html,
body {
    background-color: #ffffff !important;
}

/* Table Content - Make Text Visible */
.fi-ta-content {
    background-color: #fff !important;
}

.fi-ta-cell {
    color: #000 !important;
    padding: 0.75rem 1rem !important;
}

.fi-ta-text {
    color: #000 !important;
}

.fi-ta-row {
    background-color: #fff !important;
}

.fi-ta-row:hover {
    background-color: #f9fafb !important;
}

/* ===== SEARCH BAR STYLING ===== */
.fi-input-wrapper {
    border-radius: 24px !important;
    background-color: #f5f5f5 !important;
}

.fi-input {
    border-radius: 24px !important;
    background-color: transparent !important;
    border: none !important;
    color: #000 !important;
}

.fi-input::placeholder {
    color: #9ca3af !important;
}

/* ===== STATUS BADGES ===== */
.fi-badge {
    border-radius: 6px !important;
    padding: 0.35rem 0.85rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

.fi-badge-color-success {
    background-color: #22c55e !important;
    color: #fff !important;
}

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

/* ===== ACTION COLUMN ===== */
.fi-ta-actions {
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: flex-end !important;
}

.fi-ta-actions .fi-icon-btn {
    color: #666 !important;
}

.fi-ta-actions .fi-icon-btn:hover {
    color: #c8a652 !important;
    background-color: rgba(200, 166, 82, 0.1) !important;
}

/* ===== BUTTONS ===== */
.fi-btn-primary {
    background-color: #c8a652 !important;
    color: #000 !important;
    border: none !important;
    font-weight: 600 !important;
}

.fi-btn-primary:hover {
    background-color: #b39548 !important;
}

/* ===== USER MENU (Top Right) ===== */
.fi-user-menu-trigger {
    color: #c8a652 !important;
}

/* ===== PAGINATION ===== */
.fi-pagination-overview {
    color: #6b7280 !important;
}

.fi-pagination-item {
    color: #6b7280 !important;
}

.fi-pagination-item.fi-active {
    /*background-color: #C8A652 !important;*/
    color: #000 !important;
}

/* ===== FILTERS ===== */
.fi-ta-filters {
    padding: 1rem 0 !important;
}

.fi-select {
    border-radius: 8px !important;
}

/* ===== FIX TEXT VISIBILITY ===== */
.fi-ta-cell-content {
    color: #000 !important;
}

.fi-table-text {
    color: #000 !important;
}

/* Ensure all table text is black */
.fi-ta tbody tr td {
    color: #000 !important;
}

.fi-ta tbody tr td * {
    color: #000 !important;
}

/* Notification Page Specific Overrides */
.fi-page[class*="notifications"] .content-card {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fi-page[class*="notifications"] .fi-section {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.fi-page[class*="notifications"] .fi-section-content {
    padding: 0 !important;
}

.fi-page[class*="notifications"] .fi-page-content {
    padding: 0 !important;
}

.fi-page[class*="notifications"] hr {
    display: none !important;
}

.fi-page[class*="notifications"] .fi-hr {
    display: none !important;
}

/* ================================
   PAYMENTS PAGE CUSTOM LAYOUT
   ================================ */

.payments-page {
    background-color: #f5f5f5;
}

.payments-page-container {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top bar: search + filters */
.payments-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #f6f4ef;
}

.payments-search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    gap: 10px;
}

.payments-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: #c8a652;
    color: #000;
    flex-shrink: 0;
}

.payments-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: #111827;
}

.payments-search-input::placeholder {
    color: #9ca3af;
}

.payments-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payments-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.payments-filter-label {
    font-weight: 500;
}

.payments-filter-caret {
    font-size: 0.75rem;
    color: #6b7280;
}

.payments-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Title */
.payments-title-block {
    margin-top: 4px;
}

.payments-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Summary cards row */
.payments-summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.payments-summary-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payments-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payments-summary-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
}

.payments-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: #fefce8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payments-summary-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #c8a652;
}

.payments-summary-count {
    color: #111827;
}

/* Table wrapper */
.payments-table-wrapper {
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .payments-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payments-page-container {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .payments-top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .payments-summary-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Payments Header Cards ===== */
.fi-wi-stats-overview {
    margin-bottom: 1.5rem;
}

.fi-wi-stats-overview-stat {
    border-radius: 14px !important;
    background: #f5f5f5 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.fi-wi-stats-overview-stat-value {
    color: #c8a652 !important;
    font-weight: 700;
    font-size: 1.6rem;
}

.fi-wi-stats-overview-stat-label {
    font-weight: 600;
    color: #000;
}

/* Select dropdown arrow */
.fi-select-input svg,
.fi-input-wrp svg {
    color: #000 !important;
    opacity: 1 !important;
}

/* Remove faded look */
.fi-input-wrp {
    background-color: #fff;
}

/* Ensure select input has white background and black text */
.fi-select-input,
.fi-select,
select {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Dropdown option text - ensure all text is black */
.fi-select-option *,
.fi-dropdown-list-item *,
[role="option"] *,
[data-filament-dropdown-item] * {
    color: #000000 !important;
    background-color: white !important;
}

.fi-page-header,
.fi-page-header-wrap,
.fi-page-header-heading,
.fi-page-header-subheading {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* REMOVE empty Filament page header block */
.fi-page-header {
    display: none !important;
}

/* Remove leftover spacing */
.fi-page-header + .fi-page-content {
    padding-top: 0 !important;
}

/* Remove EMPTY Filament section blocks */
.fi-section:has(.fi-section-content:empty) {
    display: none !important;
}

/* Safety: remove spacing if section is empty */
.fi-section-content:empty {
    padding: 0 !important;
    margin: 0 !important;
}
