.sclr-list-table {

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin: 0.5rem 0;
    background: transparent !important;
}

/* General Layout Adjustments */
.sclr-list-table .fi-ta {
    font-size: 0.8125rem !important;
    color: #1e2939 !important;
}

/* Container white background - updated from transparent */
.sclr-list-table .fi-ta-ctn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Zoom out only the table body and header row - NOT the toolbar/buttons/filters */
.sclr-list-table .fi-ta-table {
    /* zoom: 0.85; */
}

/* Header styling */
.sclr-list-table .fi-ta-header-cell {
    background: rgba(200, 162, 74, 0.03) !important;
    color: #1e2939 !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid rgba(200, 162, 74, 0.1) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

/* Sort icons styling - gold/brown color to match design */
.sclr-list-table .fi-ta-header-cell button svg,
.sclr-list-table .fi-ta-header-cell-sort-button svg,
.fi-ta-header-cell button svg,
.fi-ta-header-cell-sort-button svg {
    color: #c8a24a !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s ease !important;
}

.sclr-list-table .fi-ta-header-cell button:hover svg,
.sclr-list-table .fi-ta-header-cell-sort-button:hover svg,
.fi-ta-header-cell button:hover svg,
.fi-ta-header-cell-sort-button:hover svg {
    opacity: 1 !important;
}

/* Row styling */
.sclr-list-table .fi-ta-row {
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.sclr-list-table .fi-ta-row:hover {
    background: rgba(200, 162, 74, 0.02) !important;
}

/* Cell padding */
.sclr-list-table .fi-ta-cell {
    padding: 14px 12px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
}

/* Link styling */
.sclr-list-table .fi-ta-cell a {
    color: #c8a24a !important;
    font-weight: 500;
    transition: color 0.2s;
}

.sclr-list-table .fi-ta-cell a:hover {
    color: #b8924a !important;
    text-decoration: underline;
}

/* Button & Action styling */
.sclr-list-table .fi-btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

/* Global button active state - gold background when clicked */
.sclr-list-table .fi-btn:active,
.sclr-list-table .fi-btn.active {
    background: #cfac5d !important;
    color: white !important;
}
/* Header Action Buttons (e.g. Add Employee) */
.sclr-list-table .fi-ta-header-actions .fi-btn {
    background: linear-gradient(135deg, #c8a24a 0%, #b8924a 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(200, 162, 74, 0) !important;
    padding: 10px 28px !important;
    font-size: 1rem !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.sclr-list-table .fi-ta-header-actions .fi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(200, 162, 74, 0.35) !important;
}

.sclr-list-table .fi-ta-header-actions .fi-btn:active {
    transform: translateY(0px) !important;
    box-shadow: 0 2px 8px rgba(200, 162, 74, 0.25) !important;
    background: #cfac5d !important;
}

/* Row Action Container Gap */
.sclr-list-table .fi-ta-table .fi-ta-actions {
    gap: 8px !important;
}

.sclr-list-table .fi-ta-table .fi-ta-actions .fi-btn .fi-btn-icon {
    width: 16px !important;
    height: 16px !important;
}

/* Row Action Buttons - Scoped to table body only */
.sclr-list-table .fi-ta-table .fi-ta-actions .fi-btn {
    background: transparent !important;
    color: #9CA3AF !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.sclr-list-table .fi-ta-actions .fi-btn:hover {
    background: transparent !important;
    border-color: transparent !important;
    color: #374151 !important;
}

.sclr-list-table .fi-ta-actions .fi-btn:active {
    color: #111827 !important;
    transform: scale(0.98) !important;
}

.sclr-list-table .fi-ta-actions .fi-btn-color-danger:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.sclr-list-table .fi-ta-actions .fi-btn-color-danger:active {
    background: #cfac5d !important;
        border-color: #cfac5d !important;
        color: white !important;
    transform: scale(0.98) !important;
}

/* --- UNIFIED PREMIUM BADGE SYSTEM --- */
/* Target ONLY the .fi-badge structure to prevent double pills */
.sclr-list-table .fi-badge,
.pill-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 12px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    border: none !important;
    /* background-color: var(--badge-bg, #F3F4F6) !important; */
    color: var(--badge-text, #475569) !important;
    box-shadow: none !important;
    min-width: 60px !important;
}

/* Internal overrides for Filament tokens */
.sclr-list-table .fi-badge {
    --c-50: transparent !important;
    --c-400: currentColor !important;
    --c-600: currentColor !important;
}

/* Standardized Color States */
.sclr-list-table .fi-badge-color-success,
.sclr-list-table .fi-color-success,
.sclr-badge--active {
    --badge-bg: #F0FDF4 !important;
    --badge-text: #166534 !important;
}

.sclr-list-table .fi-badge-color-danger,
.sclr-list-table .fi-color-danger,
.sclr-badge--inactive {
    --badge-bg: #FEF2F2 !important;
    --badge-text: #991B1B !important;
}

.sclr-list-table .fi-badge-color-warning,
.sclr-list-table .fi-color-warning,
.sclr-badge--pending-approval {
    --badge-bg: #FFF9EB !important;
    --badge-text: #85600B !important;
}

.sclr-list-table .fi-badge-color-info,
.sclr-list-table .fi-color-info,
.sclr-badge--2-way {
    --badge-bg: #EBF8FF !important;
    --badge-text: #2B6CB0 !important;
}

.sclr-list-table .fi-badge-color-gray,
.sclr-list-table .fi-color-gray {
    --badge-bg: #F1F5F9 !important;
    --badge-text: #475569 !important;
}

/* 3-Way / Custom Gold */
.sclr-list-table .sclr-badge--3-way,
.sclr-list-table [style*="--c-500: #9B844F"] {
    --badge-bg: #DBEAFE !important;
    --badge-text: #223F8D !important;
}


/* Custom Checkbox Color */
.sclr-list-table input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 6px;
    background-color: #fffdf9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sclr-list-table input[type="checkbox"]:hover {
    border-color: #6b7280;
}

.sclr-list-table input[type="checkbox"]:checked {
    background-color: #fffdf9 !important;
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

/* Empty State Styling */
.sclr-list-table .fi-ta-empty-state {
    padding: 4rem 2rem !important;
    background: transparent !important;
}

.sclr-list-table,
.sclr-list-table>div,
.sclr-list-table .fi-ta {
    background: transparent !important;
    background-color: transparent !important;
}

.sclr-list-table {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 0 !important;
    margin: 0.5rem 0;
}


/* Page Title Styling - Scaler Theme */
.sclr-page-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0rem;
}

.sclr-page-title .page-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1e2939 !important;
    margin-bottom: 0rem !important;
    text-transform: lowercase;
}

.sclr-page-title .page-title::first-letter {
    text-transform: uppercase;
}

.sclr-page-title .page-title-left {
    width: 100%;
}

.sclr-page-title .breadcrumb {
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}

.sclr-page-title .breadcrumb-item {
    color: #9ca3af !important;
}

.sclr-page-title .breadcrumb-item a {
    color: #9ca3af !important;
    text-decoration: none;
}

.sclr-page-title .breadcrumb-item a:hover {
    color: #D5B56B !important;
}

.sclr-page-title .breadcrumb-item.active {
    color: #9ca3af !important;
}

/* Custom Checkbox Styling */
.sclr-list-table input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 6px;
    background-color: #fffdf9;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sclr-list-table input[type="checkbox"]:hover {
    border-color: #6b7280;
}

.sclr-list-table input[type="checkbox"]:checked {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
}

.sclr-list-table input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fffdf9;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.sclr-list-table input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fffdf9;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}


/* Override Filament Checkbox - Red when checked */
.sclr-list-table .fi-checkbox-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #9ca3af !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.sclr-list-table .fi-checkbox-input:hover {
    border-color: #6b7280 !important;
}

.sclr-list-table .fi-checkbox-input:checked {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
}


/* Override Filament's bg-white.fi-checkbox-input currentColor */
.sclr-list-table .bg-white.fi-checkbox-input {
    background-color: #ffffff !important;
}

.sclr-list-table .bg-white.fi-checkbox-input:checked {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
}

.sclr-list-table .bg-white.fi-checkbox-input:checked:hover {
    border-color: #dc2626 !important;
}

.sclr-list-table .fi-fo-toggle button {
    height: 1.5rem !important;
    width: 2.75rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    border: 2px solid transparent !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
}

.sclr-list-table .fi-fo-toggle button[aria-checked="true"] {
    background-color: #22c55e !important;
}

.sclr-list-table .fi-fo-toggle button[aria-checked="false"] {
    background-color: #e5e7eb !important; /* Default greyish background for off state */
}

/* Toggle dot/thumb styling */
.sclr-list-table .fi-fo-toggle button span.fi-fo-toggle-button-thumb {
    display: block !important;
    height: 1.1rem !important;
    width: 1.1rem !important;
    background-color: white !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.sclr-list-table .fi-fo-toggle button[aria-checked="true"] span.fi-fo-toggle-button-thumb {
    left: calc(100% - 1.1rem - 3px) !important;
}

.sclr-list-table .fi-fo-toggle button[aria-checked="false"] span.fi-fo-toggle-button-thumb {
    left: 3px !important;
}

/* Flag Alignment Fix for Intl-tel-input */
.iti { width: 100% !important; }
.iti__flag {
    background-size: auto !important; /* Prevent global scaling from breaking sprites */
    background-color: transparent !important;
}
.iti__selected-flag {
    background-color: transparent !important;
    border-radius: 8px 0 0 8px !important;
}

/* Legacy UI Color Overrides Cleaned */


/* ── Filter Form Horizontal Grid ── */
.fi-custom-filters-form .fi-fo-component-ctn {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

/* Force filter inputs to match premium style */
.fi-custom-filters-form .fi-fo-select select,
.fi-custom-filters-form .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.fi-custom-filters-form .fi-fo-field-wrp-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    color: #9ca3af !important;
    letter-spacing: 0.05em !important;
}

.fi-fo-field .fi-fo-field-label-content {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #576476;

}

.fi-custom-filters-form select,
.fi-custom-filters-form input {
    font-size: 0.875rem !important;
}

/* Elevated Dropdowns */
.fi-dropdown-panel {
    z-index: 100002 !important; /* higher than modal if needed */
    pointer-events: auto !important;
    background-color: #FFFEFB !important; /* Solid background matching theme */
    border: 1px solid rgba(213, 181, 107, 0.2) !important;
}

/* Ensure the filter strip container doesn't trap dropdowns */
#sclr-procurement-filter-strip {
    position: relative !important;
    z-index: 100 !important;
}

.sclr-list-table {
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
    isolation: auto !important;
    position: relative !important;
}

.fi-pagination-records-per-page-select:first-of-type {
    display: none;
}

.fi-dropdown-panel {
    max-height: 400px !important;
    overflow-y: auto !important;
}

.fi-color-danger {
    color: #dc3545 !important;
    /* border-color: #dc3545 !important; */
}

.fi-pagination-records-per-page-select:first-of-type {
    display: none;
}

.fi-dropdown-panel {
    max-height: 400px !important;
    overflow-y: auto !important;
}

.fi-checkbox-input {
    border: none !important;
    background-color: white !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.75s !important;
    border-radius: 4px !important;
}


.fi-checkbox-input:focus {
    outline: none !important;
    background-color: #e0f7fa !important;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25) !important;
    border: 1px solid #007bff !important;
}

.fi-checkbox-input:checked {
    background-color: #6c757d !important;
    /* Grey background when checked */
}

.fi-checkbox-input:disabled {
    pointer-events: none !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.fi-ta-actions {
    display: block !important;
}

#userSelect {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: -0.5rem;
    color: black;
    border: none;
    background-color: transparent;
    font-size: 2.0rem;
}

/* RTL support for alert close button */
[dir="rtl"] .alert-dismissible .close {
    right: auto;
    left: 0;
}

/* Submit button styling - positioned to the right */
button[type="submit"].fi-ac-action.fi-ac-btn-action {
    background-color: #9B844F !important;
    color: #fff !important;
    float: right;
    margin-left: auto;
    transition: all 0.2s ease !important;
}

button[type="submit"].fi-ac-action.fi-ac-btn-action:hover {
    background-color: #b8924a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 162, 74, 0.3) !important;
}

button[type="submit"].fi-ac-action.fi-ac-btn-action:active {
    background-color: #cfac5d !important;
    color: white !important;
    transform: translateY(0px) !important;
    box-shadow: 0 2px 6px rgba(207, 172, 93, 0.3) !important;
}

/* If the button is in a flex container */
.fi-ac-action.fi-ac-btn-action[type="submit"] {
    background-color: #9B844F !important;
    color: #fff !important;
}

/* Ensure button container aligns to the right */
.fi-ac-action-group {
    display: flex;
    justify-content: flex-end;
}

/* Keep button highlighted while modal is open */
.sclr-list-table .fi-ta-actions .fi-btn.modal-active {
    background: #f3f4f6 !important;
    border-color: #b8924a !important;
    color: #b8924a !important;
}

.sclr-list-table .fi-ta-actions .fi-btn-color-danger.modal-active {
    background: #fee2e2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

.sclr-list-table .fi-ta-header-actions .fi-btn.modal-active {
    background: linear-gradient(135deg, #b8924a 0%, #a8824a 100%) !important;
    box-shadow: 0 2px 8px rgba(200, 162, 74, 0.25) !important;
}

/* --- GLOBAL FILAMENT TABLE OVERRIDES (MATCHING DESIGN REFERENCE - HYPER SPECIFIC) --- */

/* 1. Global Table Header Row Background */
html body .fi-ta-table thead tr,
html body .sclr-list-table .fi-ta-header-row {
    background-color: #FAF7F2 !important;
    /* Light golden/creamy background */
}

/* 2. Global Header Cells Text Styling */
html body .fi-ta-table thead th,
html body .fi-ta-table thead th .fi-ta-header-cell-label,
html body .sclr-list-table .fi-ta-header-cell,
html body .sclr-list-table .fi-ta-header-cell .fi-ta-header-cell-label {
    background-color: transparent !important;
    color: #9C8560 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    border-bottom: none !important;
}

/* Force smaller header height */
html body .fi-ta-table thead th,
html body .sclr-list-table .fi-ta-header-cell,
html body .fi-ta-table thead th>div,
html body .fi-ta-table thead th>span,
html body .fi-ta-table thead th>button {
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    height: auto !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
}

/* 3. Specific Checkbox Header Cell Block */
html body .fi-ta-table thead th:first-child,
html body .fi-ta-table thead th.fi-ta-selection-cell,
html body .sclr-list-table .fi-ta-header-cell:first-child,
html body .sclr-list-table .fi-ta-header-cell.fi-ta-selection-cell {
    background-color: #F1DEC0 !important;
    /* Darker golden block for the checkbox column */
    padding-left: 1rem !important;
}

/* Push check-all checkbox to the right */
html body .fi-ta-table thead th.fi-ta-selection-cell>*,
html body .fi-ta-table thead th:first-child>div,
html body .sclr-list-table .fi-ta-header-cell.fi-ta-selection-cell>* {
    margin-left: 0rem !important;
}

/* 4. Global Checkbox Styling */
html body .fi-checkbox-input,
html body .fi-ta-table input[type="checkbox"],
html body .sclr-list-table input[type="checkbox"],
html body .sclr-list-table .fi-checkbox-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    border: 1.5px solid #9ca3af !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    position: relative;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

html body .fi-checkbox-input:hover,
html body .fi-ta-table input[type="checkbox"]:hover,
html body .sclr-list-table input[type="checkbox"]:hover,
html body .sclr-list-table .fi-checkbox-input:hover {
    border-color: #6b7280 !important;
}

/* Checked state */
html body .fi-checkbox-input:checked,
html body .fi-ta-table input[type="checkbox"]:checked,
html body .sclr-list-table input[type="checkbox"]:checked,
html body .sclr-list-table .fi-checkbox-input:checked,
html body .sclr-list-table .bg-white.fi-checkbox-input:checked {
    background-color: #c8a24a !important;
    /* SCLR Gold */
    border-color: #c8a24a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
}

/* Remove default focus ring */
html body .fi-checkbox-input:focus,
html body .fi-ta-table input[type="checkbox"]:focus,
html body .sclr-list-table input[type="checkbox"]:focus,
html body .sclr-list-table .fi-checkbox-input:focus {
    box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.2) !important;
    outline: none !important;
}

/* Eradicate conflicting ::before / ::after from old checkbox styles */
html body .sclr-list-table input[type="checkbox"]:checked::before,
html body .sclr-list-table input[type="checkbox"]:checked::after {
    content: none !important;
    display: none !important;
}

/* --- THE REST OF THE TABLE (BODY, ROWS, ACTIONS, PAGINATION) --- */

/* Wrapper and Table Background */
html body .fi-ta-content {
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

html body .fi-ta-header {
    background-color: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
}

/* Unified White Card Styles for Filter Strip and Table */
html body #sclr-procurement-filter-strip,
html body .fi-ta-content > div:has(> table.fi-ta-table) {
    background-color: #FFFFFF !important;
    border-left: 1px solid #E9E4DA !important;
    border-right: 1px solid #E9E4DA !important;
    /* Remove shadow from children, will apply differently or keep subtle */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04) !important;
}

/* Filter Strip (Forms Top of Card) */
html body #sclr-procurement-filter-strip {
    border-top: 1px solid #E9E4DA !important;
    border-radius: 16px 16px 0 0 !important;
    padding-top: 16px !important;
    margin-bottom: 0 !important;
}

/* Table Wrapper (Forms Middle of Card) */
html body .fi-ta-content > div:has(> table.fi-ta-table) {
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

/* Fallback: If no filter strip, Table Wrapper forms Top of Card */
html body .fi-ta-header + div:has(> table.fi-ta-table) {
    border-top: 1px solid #E9E4DA !important;
    border-radius: 16px 16px 0 0 !important;
}


html body .fi-ta-table tbody {
    background-color: #FFFDFA !important;
}

/* Table Rows & Hover States */
html body .fi-ta-table tbody tr.fi-ta-row {
    border-bottom: 1px solid #F3F0EA !important;
    min-height: 56px !important;
    transition: background-color 0.2s ease !important;
}

html body .fi-ta-table tbody tr.fi-ta-row:hover {
    background-color: #fdfaf2 !important;
    /* Extremely light SCLR cream */
}

/* Remove default Filament zebra striping */
html body .fi-ta-table tbody tr.fi-ta-row.bg-gray-50,
html body .fi-ta-table tbody tr.fi-ta-row[class*="bg-gray-50"] {
    background-color: transparent !important;
}

/* Selected row highlight (only when checked) */
html body .fi-ta-table tbody tr.fi-ta-row:has(.fi-checkbox-input:checked) {
    background-color: #f6ebd1 !important;
    /* Light golden cream for selected row */
}

/* Global Table Cell Text & Alignment */
html body .fi-ta-table .fi-ta-cell,
html body .fi-ta-table .fi-ta-text-item-label {
    color: #4A4A4A !important;
    /* Neutral dark for data readability */
    font-size: 0.875rem !important;
}

/* ID column / bold text highlighting */
html body .fi-ta-table .fi-ta-text-item-label.font-semibold {
    color: #A37F2C !important;
    /* SCLR Brown for bold text */
}

/* Actions inside the Table (View, Edit, Delete) */
html body .fi-ta-table .fi-ta-actions .fi-link,
html body .fi-ta-table .fi-ta-actions .fi-link span,
html body .fi-ta-table .fi-ta-actions .fi-link svg {
    color: #A37F2C !important;
    --c-400: #A37F2C !important;
    --c-600: #c8a24a !important;
    transition: all 0.2s ease !important;
}

html body .fi-ta-table .fi-ta-actions .fi-link:hover,
html body .fi-ta-table .fi-ta-actions .fi-link:hover span {
    color: #c8a24a !important;
    /* Turn gold on hover */
    text-decoration: underline !important;
}

/* Pagination / Footer Area */
html body .fi-ta-content>div:last-child {
    background-color: #FAF2E3 !important;
    /* Matches header */
    border-top: 1px solid #f3e8d3 !important;
    padding: 0.75rem 1rem !important;
}

html body .fi-pagination .fi-pagination-item,
html body .fi-pagination button,
html body .fi-pagination span {
    color: #A37F2C !important;
}

.fi-pagination .fi-pagination-item.fi-active .fi-pagination-item-btn {
    background-color: #c8a24a !important;
    color: #ffffff !important;
    border-color: #c8a24a !important;
    padding: 0.25rem !important;
}

/* --- Global Form Overrides (React Parity) --- */
form:has(.fi-fo-field-wrp-error-message:not(:empty)) {
    margin-top: 2rem !important;
}

.fi-fo-field-wrp-error-message {
    color: #ef4444 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
}

/* Ensure Filament Select2 matches SCLR style */
.select2-container--default .select2-selection--single {
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 12px !important;
    color: #1e2939 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

/* ── Responsive / Scrollable Tables ── */

/* The outer container blade wraps */
.sclr-table-container,
.sclr-list-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
}

/* Filament table wrapper divs */
html body .fi-ta-wrp,
html body .fi-ta-ctn,
html body .fi-ta-content>div:first-child {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
}

/* The actual <table> element — never shrink below readable width */
html body .fi-ta-table {
    min-width: 700px !important;
    width: 100% !important;
}

/* Scrollbar styling to match SCLR theme */
.sclr-table-container::-webkit-scrollbar,
.sclr-list-table::-webkit-scrollbar,
html body .fi-ta-wrp::-webkit-scrollbar,
html body .fi-ta-ctn::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.sclr-table-container::-webkit-scrollbar-track,
.sclr-list-table::-webkit-scrollbar-track,
html body .fi-ta-wrp::-webkit-scrollbar-track,
html body .fi-ta-ctn::-webkit-scrollbar-track {
    background: rgba(250, 227, 176, 0.15);
    border-radius: 4px;
}

.sclr-table-container::-webkit-scrollbar-thumb,
.sclr-list-table::-webkit-scrollbar-thumb,
html body .fi-ta-wrp::-webkit-scrollbar-thumb,
html body .fi-ta-ctn::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D5B56B 0%, #9B844F 100%);
    border-radius: 4px;
}

.sclr-table-container::-webkit-scrollbar-thumb:hover,
.sclr-list-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E6CC91 0%, #D5B56B 100%);
}

/* Prevent clipping */
.main-content,
.page-content,
.sclr-container {
    overflow-x: visible !important;
}

/* ── Filament Header Action Button → Gold Gradient (matches React "+ Add" button) ── */
html body .fi-ta-header-actions .fi-btn-color-warning,
html body .fi-ta-header-actions .fi-btn[class*="warning"] {
    background: linear-gradient(135deg, #D5B56B 0%, #9B844F 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    box-shadow: 0 4px 16px 0 rgba(133, 96, 11, 0.3) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

html body .fi-ta-header-actions .fi-btn-color-warning:hover,
html body .fi-ta-header-actions .fi-btn[class*="warning"]:hover {
    box-shadow: 0 6px 20px 0 rgba(133, 96, 11, 0.4) !important;
    transform: translateY(-1px) !important;
    opacity: 0.95 !important;
}

/* ── Icon-only row action buttons → match React eye/pencil/trash/more style ── */
html body .fi-ta-actions .fi-icon-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: none !important;
    background: transparent !important;
    color: #576476 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}

.sclr-config-btn {
    border: 1.2px solid #C8A24A !important;
    background-color: #FEF9EF !important;
    color: #C8A24A !important;
    padding: 8px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    height: 38px !important; /* Match filter button height */
    width: 38px !important;
}

.sclr-config-btn:hover {
    background-color: #f7edcf !important;
    transform: translateY(-1px) !important;
}

.sclr-config-btn svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
}

html body .fi-ta-actions .fi-icon-btn:hover {
    background: rgba(250, 227, 176, 0.3) !important;
    color: #9B844F !important;
}

html body .fi-ta-actions .fi-icon-btn-color-danger:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

html body .fi-ta-actions .fi-icon-btn svg {
    width: 16px !important;
    height: 16px !important;
}

/* ── Page header layout ── */
.sclr-list-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
    padding: 0;
    overflow: visible;
}

.sclr-loading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #c8a24a;
}

.text-gold {
    color: #c8a24a !important;
}


/* ── Procurement: Consistent Table Toolbar (Search + Actions bar) ── */

/* Search input styling */
html body .fi-ta-search-field input,
html body .fi-ta-search-field .fi-input {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #1e2939 !important;
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
    transition: border-color 0.2s ease !important;
}

html body .fi-ta-search-field input:focus,
html body .fi-ta-search-field .fi-input:focus {
    border-color: #c8a24a !important;
    box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.15) !important;
    outline: none !important;
}

/* Table toolbar (top bar with search + header actions) */
html body .fi-ta-header,
html body .fi-ta-header-toolbar {
    /* background: #ffffff !important; */
    border-bottom: 1px solid #f3e8d3 !important;
    padding: 12px 16px !important;
}

/* Ensure the table top area background is consistent */
html body .fi-ta-ctn>div:first-child,
html body .fi-ta-wrp>div:first-child {
    background: #ffffff !important;
}

/* Bulk action bar */
html body .fi-ta-bulk-actions {
    background: #fef9f0 !important;
    border-bottom: 1px solid #f3e8d3 !important;
    padding: 8px 16px !important;
}

/* ── Ensure sclr-list-card wraps table cleanly ── */
.sclr-list-card {
    overflow: visible !important;
}

/* ── Page header consistent spacing ── */
.sclr-page-header {
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    /* 24px - matches theme design system */
}

/* ========================================
   REGULARIZATION STATUS BADGE COLUMN
   Match theme badge style for ViewColumn
   ======================================== */

/* Remove any default Filament cell padding/background from the view column */
.sclr-list-table .fi-ta-cell:has(.fi-ta-col-item-view) {
    background: #ffffff !important;
}

/* Ensure badge text is not overridden by global fi-ta-cell font size */
.sclr-list-table .fi-ta-cell .fi-ta-col-item-view span {
    font-size: 0.6875rem !important;
    line-height: 1.4 !important;
}

/* ========================================
   FIX ACTION MENU DROPDOWN POSITION
   Make dropdown appear below the button instead of to the left
   ======================================== */

/* Force dropdown to appear below the trigger button */
/* .fi-ta-actions .fi-dropdown-panel {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0.5rem !important;
    transform: unset !important;
} */

/* Fix for icon-button style ActionGroup (e.g. ListEmployees) */
/* .fi-ta-actions .fi-dropdown {
    position: relative !important;
} */

/* .fi-ta-actions .fi-dropdown>.fi-dropdown-panel {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    margin-top: 0.25rem !important;
    transform: none !important;
    z-index: 50 !important;
} */

/* Ensure the dropdown trigger has relative positioning */
.fi-ta-actions [x-data*="dropdown"] {
    position: relative !important;
}

/* Adjust dropdown alignment for action column */
/* .fi-ta-cell.fi-ta-actions {
    position: relative !important;
} */
/* --- GLOBAL FILAMENT TABLE OVERRIDES --- */

/* Hide native search and filters, but keep bulk actions and header actions */
.fi-ta-search-field,
.fi-ta-filters-trigger,
.fi-ta-filters-trigger-action,
.fi-ta-filters-trigger-action-ctn,
.fi-ta-filters-popover-trigger,
.fi-ta-header-filter-indicator,
[data-column-id="filters"],
.fi-ta-header-toolbar button[wire\:click*="openFilters"],
.fi-ta-header-toolbar button[x-on\:click*="filters"],
.fi-ta-header-toolbar button:has(svg path[d*="M14 2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v2.172"]),
.fi-ta-header-toolbar button:has(svg path[d*="M2.628 1.601"]),
.fi-ta-header-toolbar button:has(svg path[d*="M14 17h2.75A2.25 2.25 0 0 0 19 14.75"]) {
    display: none !important;
}

/* ========================================
   MODAL CONSISTENCY - TABS, LABELS, INPUTS
   Make all modals look identical to theme
   ======================================== */

/* Modal tabs styling - pill/raised style matching vendor modal */
.fi-modal-window .fi-tabs .fi-tabs-item,
.fi-modal-window .fi-tabs button,
html body .fi-modal .fi-tabs-item,
html body .fi-modal button[role="tab"] {
    color: #576476 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-bottom: 1px solid transparent !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 10px 16px !important;
    margin-right: 2px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    margin-bottom: -1px !important;
}

.fi-modal-window .fi-tabs .fi-tabs-item:hover,
.fi-modal-window .fi-tabs button:hover,
html body .fi-modal button[role="tab"]:hover {
    color: #9B844F !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

.fi-modal-window .fi-tabs .fi-tabs-item[aria-selected="true"],
.fi-modal-window .fi-tabs button[aria-selected="true"],
html body .fi-modal .fi-tabs-item.active,
html body .fi-modal button[role="tab"][aria-selected="true"] {
    color: #ffffff !important;
    background: #ef4444 !important;
    border: 1px solid #dc2626 !important;
    border-bottom-color: transparent !important;
}

/* Tab container styling */
html body .fi-modal .fi-tabs,
html body .fi-modal-window .fi-tabs {
    border-bottom: 1px solid rgba(230, 204, 145, 0.2) !important;
    background: transparent !important;
    padding: 0 24px !important;
}

/* Modal form labels - matching vendor modal exactly */
html body .fi-modal label,
html body .fi-modal .fi-fo-field-wrp-label,
html body .fi-modal .fi-fo-field-wrp-label label,
html body .fi-modal-window label,
html body .fi-modal-window .fi-fo-field-wrp label,
html body .fi-modal-window .fi-fo-field-wrp-label,
html body .fi-modal-window .fi-fo-field-wrp-label label,
html body .fi-modal-window .fi-fo-field-wrp-label span,
html body .fi-modal-window label.fi-fo-field-wrp-label,
html body .fi-modal-window span.fi-fo-field-wrp-label,
html body .fi-modal .fi-fo-field-wrp>label,
html body .fi-modal-window .fi-fo-field-wrp>label {
    color: #9B844F !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-family: 'Inter', sans-serif !important;
}

/* Required asterisk color */
html body .fi-modal label sup,
html body .fi-modal .fi-fo-field-wrp-label sup {
    color: #ef4444 !important;
}

/* Input fields consistent styling - matching theme */
html body .fi-modal input[type="text"],
html body .fi-modal input[type="email"],
html body .fi-modal input[type="number"],
html body .fi-modal select,
html body .fi-modal textarea,
html body .fi-modal .fi-input {
    background: #ffffff !important; /* Solid background to prevent overlap/bleed */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    color: #1e2939 !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

html body .fi-modal input[type="tel"] {
    background: #ffffff !important; /* Solid background for consistency */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    color: #1e2939 !important;
    padding: 10px 45px !important;
    font-size: 14px !important;
}

html body .fi-modal input:focus,
html body .fi-modal select:focus,
html body .fi-modal textarea:focus {
    outline: none !important;
    border-color: rgba(213, 181, 107, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(213, 181, 107, 0.3) !important;
}

html body .fi-modal input::placeholder,
html body .fi-modal textarea::placeholder {
    color: #9ca3af !important;
}

/* Tab content area background - warm cream matching vendor modal */
html body .fi-modal .fi-tabs-content,
html body .fi-modal .fi-tabs-panel {
    background: transparent !important;
}

/* Modal window background - warm cream like vendor modal */
html body .fi-modal-window,
html body .fi-modal .fi-modal-window {
    background: linear-gradient(to bottom right, #fffdf7, #fef9f0) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 24px 80px 0 rgba(0, 0, 0, 0.15) !important;
    padding: 0px 20px;
}

/* Modal header border */
html body .fi-modal-window .fi-modal-header {
    border-bottom-color: rgba(230, 204, 145, 0.2) !important;
}

/* Modal footer border */
html body .fi-modal-window .fi-modal-footer {
    border-top-color: rgba(230, 204, 145, 0.2) !important;
}

/* ========================================
                   MODAL LABEL COLOR - FORCE GOLD #9B844F
                   Must be last to win specificity wars
                   ======================================== */
html body .fi-modal-window label,
html body .fi-modal-window label.fi-fo-field-wrp-label,
html body .fi-modal-window span.fi-fo-field-wrp-label,
html body .fi-modal-window .fi-fo-field-wrp-label,
html body .fi-modal-window .fi-fo-field-wrp>label,
html body .fi-modal-window .fi-fo-field-wrp-label>span,
html body .fi-modal label,
html body .fi-modal .fi-fo-field-wrp-label,
html body .fi-modal .fi-fo-field-wrp>label {
    color: #9B844F !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* ========================================
   ACTIVE TAB - RED BACKGROUND (FORCE)
   ======================================== */
html body .fi-modal-window .fi-tabs-item[aria-selected="true"],
html body .fi-modal-window [role="tab"][aria-selected="true"],
html body .fi-modal-window button[role="tab"][aria-selected="true"],
html body .fi-modal-window .fi-tabs-item.fi-active,
html body .fi-modal .fi-tabs-item[aria-selected="true"],
html body .fi-modal [role="tab"][aria-selected="true"],
html body .fi-modal button[role="tab"][aria-selected="true"],
html body [role="tab"][aria-selected="true"] {
    background: #FFFEFB !important;
    background-color: #FFFEFB !important;
    color: #917231 !important;
    border-color: #F7EFDB !important;
}

/* ========================================
   MODAL TABS - EXACT FILAMENT CLASS TARGETING
   ======================================== */

/* Inactive tab hover - text color #917231 */
html body .fi-modal-window .fi-tabs-item:not(.fi-active):hover .fi-tabs-item-label,
html body .fi-modal-window .fi-tabs-item:not(.fi-active):hover {
    color: #917231 !important;
}

/* Active tab - red background, white text */
html body .fi-modal-window .fi-tabs-item.fi-active,
html body .fi-modal-window .fi-tabs-item.fi-tabs-item-active {
    background-color: #FFFEFB !important;
    color: #917231 !important;
}

html body .fi-modal-window .fi-tabs-item.fi-active .fi-tabs-item-label,
html body .fi-modal-window .fi-tabs-item.fi-tabs-item-active .fi-tabs-item-label {
    color: #917231 !important;
}

/* ========================================
   FILTER STRIP FUSION
   ======================================== */

/* Refine Custom Table Styling for the White Stage (Image 5) */
html body .fi-ta-content {
    border: 1px solid #F3F1E9 !important; /* Extremely subtle border */
    border-top: none !important; /* Seamless fusion with toolbar */
    border-radius: 0 0 24px 24px !important;
    overflow: visible !important;
    box-shadow: none !important;
    padding: 0 32px !important; /* Padding in X vector around the table that is white */
    background: #ffffff !important;
}

/* Match the beige table header background from Image 5 */
html body .fi-ta-header-ctn {
    background: linear-gradient(to bottom, var(--sclr-bg-from), var(--sclr-bg-to)) !important;
}

/* Support for the custom filter form layout */
html body .fi-custom-filters-form .fi-ta-filters > div.flex.items-center.justify-between {
    display: none !important;
}

/* Premium Badge Registry (Legacy support cleanup) */
.sclr-badge--premium {
    /* Inherits from unified system above */
}

/* Hide native elements to keep it clean */
.fi-ta-filters-trigger {
    display: none !important;
}

/* Keep the Filament toolbar available for bulk actions */
.sclr-list-table .fi-ta-header-toolbar {
    display: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 0.75rem !important;
}

.sclr-list-table .fi-ta-header-toolbar .fi-ta-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

/* ========================================================
   SCLR VENDOR TABLE — PATCH (NON-DUPLICATE RULES ONLY)
   All rules below are additions that are NOT already covered
   in the styles above L1487.
   ======================================================== */

/* ── Badge cell alignment (td wrapping the fi-badge span) ── */
/* Cleaned up redundant rules */

/* Badge color overrides — exact SCLR reference */
/* Active → mint green */
/* Cleaned up old badges */


/* ── FIX: PAGINATION FOOTER — Precise nav.fi-pagination targeting ── */

html body nav.fi-pagination {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 12px 24px !important;
    background-color: #FFFFFF !important;
    border-radius: 0 0 16px 16px !important;
    border: 1px solid #E9E4DA !important;
    border-top: 1px solid #F3F0EA !important;
}

html body nav.fi-pagination .fi-pagination-overview {
    order: 1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #C8A24A !important;
    white-space: nowrap !important;
    margin-right: auto !important;
    /* Pushes everything else to the right */
}

html body nav.fi-pagination .fi-pagination-records-per-page-select-ctn {
    /* display: flex !important; */
    align-items: center !important;
    gap: 6px !important;
    order: 2 !important;
}

html body nav.fi-pagination>.fi-pagination-previous-btn {
    order: 3 !important;
    display: inline-flex !important;
    /* Ensure it stays visible as requested */
}

html body nav.fi-pagination .fi-pagination-items {
    order: 4 !important;
}

html body nav.fi-pagination>.fi-pagination-next-btn {
    order: 5 !important;
    display: inline-flex !important;
    /* Ensure it stays visible as requested */
}


html body nav.fi-pagination .fi-pagination-records-per-page-select-ctn label span {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #9B844F !important;
    white-space: nowrap !important;
}

html body nav.fi-pagination select,
html body nav.fi-pagination .fi-input {
    /* border: 1px solid #e5e7eb !important;
    border-radius: 12px !important; */
    background: #fff !important;
    color: #374151 !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

html body nav.fi-pagination .fi-pagination-previous-btn,
html body nav.fi-pagination .fi-pagination-next-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

html body nav.fi-pagination .fi-pagination-previous-btn:hover,
html body nav.fi-pagination .fi-pagination-next-btn:hover {
    background: #FFFBEB !important;
    border-color: #E6CC91 !important;
    color: #9B844F !important;
}

html body nav.fi-pagination .fi-pagination-items {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    list-style: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body nav.fi-pagination .fi-pagination-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 6px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
    transition: all 0.15s ease !important;
}

.fi-pagination .fi-pagination-item-btn {
    padding: 0 !important;
}

html body nav.fi-pagination .fi-pagination-item:hover {
    background: #FFFBEB !important;
    border-color: #E6CC91 !important;
    color: #9B844F !important;
}

html body nav.fi-pagination .fi-active.fi-pagination-item,
html body nav.fi-pagination .fi-pagination-item[aria-current="page"],
html body nav.fi-pagination .fi-pagination-item.fi-active {
    background: #c8a24a !important;
    border-color: #c8a24a !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(200,162,74,0.25) !important;
}

html body nav.fi-pagination .fi-pagination-item:disabled,
html body nav.fi-pagination .fi-pagination-item[disabled] {
    background: transparent !important;
    border-color: transparent !important;
    color: #9ca3af !important;
    cursor: default !important;
    box-shadow: none !important;
}

html body nav.fi-pagination .fi-pagination-records-per-page-select.fi-compact {
    display: none !important;
}


/* ── Table Group Header ── */
.fi-ta-group-heading {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #3C3C3D !important;
    margin: 0 !important;
}



/* ════════════════════════════════════════════════════════════════════ */
/*  PROCUREMENT-SPECIFIC STYLES (MERGED FROM sclr/css/table.css)        */
/* ════════════════════════════════════════════════════════════════════ */

/* 1. TABLE ROW DENSITY & AIRY LAYOUT */
html body .fi-ta-content table tbody tr td {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}

html body .fi-ta-content table tbody tr {
    transition: background 0.2s ease !important;
}

html body .fi-ta-content table tbody tr:hover td {
    background-color: rgba(255, 251, 235, 0.5) !important;
}

/* Checkbox Column - Soft Cream Highlight Parity */
html body .fi-ta-content table thead th:first-child,
html body .fi-ta-content table tbody td:first-child {
    background: #FFF9EB !important;
    border-right: 1px solid rgba(230, 204, 145, 0.1) !important;
}

/* 2. PREMIUM PILL BADGES */
/* Inherited from unified system in L164 */

/* 3. REFERENCE # COLUMN STYLING */
html body .fi-ta-content table tbody td:nth-child(2) {
    font-weight: 800 !important;
}

html body .fi-ta-content .sclr-ref-text {
    color: #85600B !important;
    line-height: 1.1 !important;
}

html body .fi-ta-content .sclr-ref-hash {
    color: #D5B56B !important; /* Lighter gold hashtag as requested */
    font-weight: 700 !important;
}

/* Aggressive Hover Parity */
html body .fi-ta-content table tbody tr:hover td .sclr-ref-text,
html body .fi-ta-content table tbody tr:hover td .sclr-ref-hash {
    color: #D5B56B !important;
    opacity: 1 !important;
}

/* 4. FILTER STRIP UI & BUTTONS */
#sclr-procurement-filter-strip .fi-ta-header-toolbar,
#sclr-procurement-filter-strip thead th,
#sclr-procurement-filter-strip tbody tr td {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

#sclr-procurement-filter-strip .sclr-filter-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1.5px solid #C8A24A;
    border-radius: 8px;
    background: white;
    color: #C8A24A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#sclr-procurement-filter-strip .sclr-config-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 38px;
    border: 1.5px solid #C8A24A;
    border-radius: 8px;
    background: white !important;
    color: #C8A24A !important;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 !important;
}

#sclr-procurement-filter-strip .sclr-config-btn svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.5 !important;
    stroke: #C8A24A !important;
}

#sclr-procurement-filter-strip .sclr-filter-btn:hover,
#sclr-procurement-filter-strip .sclr-config-btn:hover {
    background: #fdfaf3;
    border-color: #B28E3D;
}

#sclr-procurement-filter-strip .sclr-filter-btn.active {
    background: #C8A24A;
    color: #fff;
}

.sclr-config-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.sclr-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.sclr-checkbox-box.active {
    border-color: #C8A24A;
    background: #C8A24A;
}

/* 5. REQUESTER COLUMN REINFORCEMENT */
html body .fi-ta-content [style*="border-radius: 50%"] {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
}

html body .fi-ta-content .leading-tight {
    gap: 1px !important;
}

/* Animations */
@keyframes sclr-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════════════ */
/*  PR SHOW MODAL — FOOTER BUTTONS                                      */
/* ════════════════════════════════════════════════════════════════════ */

.pr-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fef9f0;
    padding: 16px 24px;
    border-top: 1px solid rgba(230, 204, 145, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.pr-modal-btn-close {
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 8px 22px;
    font-size: 14px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(220, 220, 220, 0.5);
    color: #576476;
}

.pr-modal-btn-close:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(180, 180, 180, 0.6);
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pr-modal-btn-edit {
    background: linear-gradient(135deg, #D5B56B, #85600B);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 22px;
    font-size: 14px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s ease;
    box-shadow: 0 4px 16px rgba(133, 96, 11, 0.3);
}

.pr-modal-btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(133, 96, 11, 0.5);
    filter: brightness(1.1);
}

.pr-modal-btn-edit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Bulk actions: visible only when Filament selection checkboxes are checked */
html body .sclr-list-table.sclr-list-table .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > * {
    display: none !important;
}

html body .sclr-list-table.sclr-list-table:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body .sclr-list-table.sclr-list-table:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > * {
    display: inline-flex !important;
}

/* Restore bulk action label/icon readability */
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn .fi-btn-label,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn .fi-btn-icon,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn .fi-icon,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn svg {
    opacity: 1 !important;
}

html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn.fi-btn-color-danger,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn.fi-btn-color-danger .fi-btn-label,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn.fi-btn-color-danger .fi-btn-icon,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn.fi-btn-color-danger .fi-icon,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn.fi-btn-color-danger svg,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions .fi-btn.fi-btn-color-danger * {
    color: #ffffff !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:click*="mountTableBulkAction('delete')"],
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:click*="mountTableBulkAction('delete')"] *,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:click*='mountTableBulkAction("delete")'],
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:click*='mountTableBulkAction("delete")'] * {
    color: #ffffff !important;
    stroke: currentColor !important;
    fill: currentColor !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*="mountAction('delete'"],
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*="mountAction('delete'"] *,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*='mountAction("delete"'],
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*='mountAction("delete"'] * {
    color: #ffffff !important;
    stroke: currentColor !important;
    fill: currentColor !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*="mountAction('delete'"],
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*='mountAction("delete"'],
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [x-on\:click*="mountAction('delete'"],
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [x-on\:click*='mountAction("delete"'] {
    --bg: #ef4444 !important;
    --hover-bg: #dc2626 !important;
    --text: #ffffff !important;
    --hover-text: #ffffff !important;
    --dark-bg: #ef4444 !important;
    --dark-hover-bg: #dc2626 !important;
    --dark-text: #ffffff !important;
    --dark-hover-text: #ffffff !important;
    background: #ef4444 !important;
    background-color: #ef4444 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.22) !important;
}

html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*="mountAction('delete'"]:hover,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [wire\:target*='mountAction("delete"']:hover,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [x-on\:click*="mountAction('delete'"]:hover,
html body .sclr-list-table .fi-ta-header-toolbar .fi-ta-actions [x-on\:click*='mountAction("delete"']:hover {
    --bg: #dc2626 !important;
    --hover-bg: #b91c1c !important;
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

/* Sales pages with page-level inline rules forcing toolbar actions visible */
html body #leads-list .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #customers-list .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #list-projects .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #statuses-list .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > * {
    display: none !important;
}

html body #leads-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #leads-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #customers-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #customers-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #list-projects:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #list-projects:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #statuses-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > *,
html body #statuses-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions.fi-ta-actions > * {
    display: inline-flex !important;
}

/* Sales leads: hide actual bulk action triggers until selection */
html body #leads-list [wire\:click*="mountTableBulkAction("],
html body #leads-list [wire\:click*="mountTableBulkAction('"] {
    display: none !important;
}

html body #leads-list .fi-ta-header-toolbar .fi-ta-actions > [x-show="getSelectedRecordsCount()"] {
    display: none !important;
}

html body #leads-list:has(.fi-ta-page-checkbox:checked) [wire\:click*="mountTableBulkAction("],
html body #leads-list:has(.fi-ta-page-checkbox:checked) [wire\:click*="mountTableBulkAction('"],
html body #leads-list:has(.fi-ta-record-checkbox:checked) [wire\:click*="mountTableBulkAction("],
html body #leads-list:has(.fi-ta-record-checkbox:checked) [wire\:click*="mountTableBulkAction('"] {
    display: inline-flex !important;
}

html body #leads-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show="getSelectedRecordsCount()"],
html body #leads-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show="getSelectedRecordsCount()"] {
    display: inline-flex !important;
}

/* Shared bulk-action visibility and delete styling using actual Filament attributes */
html body .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"] {
    display: none !important;
}

html body .sclr-list-table:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body .sclr-list-table:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #leads-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #leads-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #customers-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #customers-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #list-projects:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #list-projects:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #statuses-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #statuses-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #employees-list:has(.fi-ta-page-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"],
html body #employees-list:has(.fi-ta-record-checkbox:checked) .fi-ta-header-toolbar .fi-ta-actions > [x-show*="getSelectedRecordsCount"] {
    display: inline-grid !important;
}

html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*="mountAction('delete'"],
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*='mountAction("delete"'],
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*="mountAction('delete'"],
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*='mountAction("delete"'] {
    --color-50: #fef2f2 !important;
    --color-100: #fee2e2 !important;
    --color-200: #fecaca !important;
    --color-300: #fca5a5 !important;
    --color-400: #f87171 !important;
    --color-500: #ef4444 !important;
    --color-600: #dc2626 !important;
    --color-700: #b91c1c !important;
    --color-800: #991b1b !important;
    --color-900: #ffffff !important;
    --color-950: #ffffff !important;
    --bg: #dc2626 !important;
    --hover-bg: #b91c1c !important;
    --text: #ffffff !important;
    --hover-text: #ffffff !important;
    --dark-bg: #dc2626 !important;
    --dark-hover-bg: #b91c1c !important;
    --dark-text: #ffffff !important;
    --dark-hover-text: #ffffff !important;
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    background-image: none !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*="mountAction('delete'"] *,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*='mountAction("delete"'] *,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*="mountAction('delete'"] *,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*='mountAction("delete"'] * {
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*="mountAction('delete'"] .fi-icon,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*='mountAction("delete"'] .fi-icon,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*="mountAction('delete'"] .fi-icon,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*='mountAction("delete"'] .fi-icon,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*="mountAction('delete'"] svg,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*='mountAction("delete"'] svg,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*="mountAction('delete'"] svg,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*='mountAction("delete"'] svg {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*="mountAction('delete'"]:hover,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][wire\:target*='mountAction("delete"']:hover,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*="mountAction('delete'"]:hover,
html body .fi-ta-header-toolbar .fi-ta-actions > button.fi-btn.fi-ac-btn-action[x-show*="getSelectedRecordsCount"][x-on\:click*='mountAction("delete"']:hover {
    --bg: #b91c1c !important;
    --hover-bg: #991b1b !important;
    background: #b91c1c !important;
    background-color: #b91c1c !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
}


/* Shrink cell padding */
.sclr-list-table .fi-ta-table .fi-ta-cell {
    padding: 8px 10px !important;        /* was 14px 12px */
}

/* Shrink header cells */
.sclr-list-table .fi-ta-table thead th,
.sclr-list-table .fi-ta-table .fi-ta-header-cell {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 10px !important;          /* was 11px */
}

/* Shrink all table text */
.sclr-list-table .fi-ta-table {
    font-size: 0.75rem !important;
}

/* Shrink table body text */
.sclr-list-table .fi-ta-table .fi-ta-cell,
.sclr-list-table .fi-ta-table .fi-ta-text-item-label {
    font-size: 0.75rem !important;       /* was 0.875rem */
}

/* Shrink row min-height */
.sclr-list-table .fi-ta-table tbody tr.fi-ta-row {
    min-height: 40px !important;         /* was 56px */
}

/* Shrink action icons */
.sclr-list-table .fi-ta-table .fi-ta-actions .fi-btn .fi-btn-icon,
.sclr-list-table .fi-ta-table .fi-ta-actions .fi-icon-btn svg,
.sclr-list-table .fi-ta-table .fi-ta-actions .fi-btn svg {
    width: 14px !important;
    height: 14px !important;
}

/* Shrink badge size */
.sclr-list-table .fi-ta-table .fi-badge {
    font-size: 9px !important;
    padding: 2px 8px !important;
}

/* Shrink checkbox */
.sclr-list-table .fi-ta-table .fi-checkbox-input,
.sclr-list-table .fi-ta-table input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
}
/* ── Body cells ── */
html body .sclr-list-table .fi-ta-table td.fi-ta-cell,
html body .sclr-list-table .fi-ta-content table tbody tr td {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
}



/* ── Text labels inside cells ── */
html body .sclr-list-table .fi-ta-table .fi-ta-text-item-label,
html body .sclr-list-table .fi-ta-table .fi-ta-col-item {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
}

/* ── Row min-height ── */
html body .sclr-list-table .fi-ta-table tbody tr.fi-ta-row {
    min-height: 28px !important;
}

/* ── Badges ── */
html body .sclr-list-table .fi-ta-table .fi-badge {
    font-size: 8px !important;
    padding: 1px 6px !important;
    min-width: 36px !important;
    line-height: 1.3 !important;
}

/* ── Action icons ── */
html body .sclr-list-table .fi-ta-table .fi-ta-actions .fi-btn svg,
html body .sclr-list-table .fi-ta-table .fi-ta-actions .fi-icon-btn svg,
html body .sclr-list-table .fi-ta-table .fi-ta-actions .fi-btn .fi-btn-icon {
    width: 11px !important;
    height: 11px !important;
}



/* ── Pagination text ── */
html body nav.fi-pagination .fi-pagination-overview,
html body nav.fi-pagination .fi-pagination-item,
html body nav.fi-pagination .fi-pagination-previous-btn,
html body nav.fi-pagination .fi-pagination-next-btn {
    font-size: 11px !important;
}

/* ── CRITICAL: Keep dropdowns unaffected ── */
.fi-dropdown-panel,
.fi-dropdown-list,
.fi-dropdown-list-item {
    zoom: unset !important;
    transform: none !important;
    font-size: 0.875rem !important;
}
