/* Daterangepicker orange theme */
.daterangepicker .ranges li.active { background-color: #f59e0b !important; color: white !important; }
.daterangepicker .ranges li:hover { background-color: #fef3c7 !important; color: #92400e !important; }
.daterangepicker td.active, .daterangepicker td.active:hover { background-color: #f59e0b !important; color: white !important; }
.daterangepicker td.in-range { background-color: #fef3c7 !important; color: #92400e !important; }
.daterangepicker td.start-date, .daterangepicker td.end-date { background-color: #f59e0b !important; color: white !important; }
.daterangepicker .drp-buttons .applyBtn { background-color: #f59e0b !important; border-color: #f59e0b !important; color: white !important; }
.daterangepicker .drp-buttons .applyBtn:hover { background-color: #d97706 !important; }

/* Layout - Remove max-width constraints */
.fi-main-ctn { max-width: none !important; }
.fi-body-ctn { max-width: none !important; }
.fi-page-ctn { max-width: none !important; }
.fi-layout-sidebar-main { max-width: none !important; }
main { max-width: none !important; }
.fi-main { max-width: none !important; }
.fi-ta { max-width: none !important; }
.max-w-7xl { max-width: none !important; }
.max-w-screen-xl { max-width: none !important; }
.max-w-full { max-width: 100% !important; }
.fi-simple-main-ctn { max-width: 28rem !important; width: 100% !important; }
.fi-section-content-ctn { max-width: none !important; }

/* Table styling */
.fi-ta-cell { font-size: 0.8rem !important; padding: 0.4rem 0.6rem !important; }
.fi-ta-header-cell { font-size: 0.8rem !important; padding: 0.4rem 0.6rem !important; }
.fi-sidebar-item-grouped-border { display: none !important; }
.fi-ta { position: relative; }
.fi-ta.is-loading tbody { opacity: 0.4; pointer-events: none; transition: opacity 0.15s; }

/* Table individual search cells */
td.fi-ta-individual-search-cell { padding: 0.2rem 0.3rem !important; }
td.fi-ta-individual-search-cell .fi-input-wrp { min-height: unset !important; height: 1.6rem !important; border: 1px solid #d1d5db !important; border-radius: 0.375rem !important; box-shadow: none !important; padding: 0 0.4rem !important; gap: 0.25rem !important; background: white !important; }
td.fi-ta-individual-search-cell .fi-input-wrp:focus-within { border-color: #f59e0b !important; }
td.fi-ta-individual-search-cell input { font-size: 0.7rem !important; padding: 0 !important; height: 100% !important; min-height: unset !important; }
td.fi-ta-individual-search-cell .fi-input-wrp-prefix svg { display: inline-block !important; width: 0.7rem !important; height: 0.7rem !important; min-width: 0.7rem !important; color: #9ca3af !important; flex-shrink: 0 !important; }
td.fi-ta-individual-search-cell .fi-input { min-height: unset !important; height: 100% !important; }

/* Modern compact modal styling */
.fi-modal-window {
    border-radius: 0.5rem !important;
}
.fi-modal-header {
    padding: 1rem 1.25rem !important;
    border-bottom: none !important;
}
.fi-modal-content {
    padding: 1rem 1.25rem !important;
}
.fi-modal-footer {
    padding: 0.75rem 1.25rem !important;
    border-top: none !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

/* Modal Submit button - orange (primary) */
.fi-modal-footer .fi-btn:first-child,
.fi-modal-footer button[type="submit"] {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
}
.fi-modal-footer .fi-btn:first-child:hover,
.fi-modal-footer button[type="submit"]:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
}
.fi-modal-heading {
    font-size: 1rem !important;
    font-weight: 600 !important;
}
.fi-modal-description {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}
.fi-modal-footer .fi-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.375rem !important;
}

/* Modal Cancel button - red color (second button) */
.fi-modal-footer .fi-btn:last-child:not(:first-child) {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
}
.fi-modal-footer .fi-btn:last-child:not(:first-child):hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}
.fi-modal-footer .fi-btn:last-child:not(:first-child) svg {
    color: white !important;
}

/* Form Cancel button - red color */
.fi-form-actions .fi-btn.fi-color-gray,
.fi-ac .fi-btn.fi-color-gray {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
}
.fi-form-actions .fi-btn.fi-color-gray:hover,
.fi-ac .fi-btn.fi-color-gray:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}
.fi-form-actions .fi-btn.fi-color-gray svg,
.fi-ac .fi-btn.fi-color-gray svg {
    color: white !important;
}

/* Global orange buttons with white text - applies to ALL buttons in Filament */
button.fi-btn,
a.fi-btn,
.fi-btn {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
}
button.fi-btn:hover,
a.fi-btn:hover,
.fi-btn:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
}
button.fi-btn svg,
a.fi-btn svg,
.fi-btn svg {
    color: white !important;
}

/* Ensure text and icons are white in all button states */
.fi-btn span,
.fi-btn .fi-btn-label {
    color: white !important;
}

/* Exception: Keep table filter button white/gray */
button.fi-ta-header-cell-action,
.fi-ta-header-cell-action {
    background-color: white !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}
button.fi-ta-header-cell-action:hover,
.fi-ta-header-cell-action:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
}
button.fi-ta-header-cell-action svg,
.fi-ta-header-cell-action svg {
    color: #6b7280 !important;
}

/* Exception: Header actions (Excel, Filter buttons) - white background with appropriate colors */
.fi-header-actions .fi-btn:not(.fi-color-danger):not(.fi-color-warning),
.fi-page-actions .fi-btn:not(.fi-color-danger):not(.fi-color-warning) {
    background-color: white !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* Danger button in header - red background (only for header/page actions) */
.fi-header-actions .fi-btn.fi-color-danger,
.fi-page-actions .fi-btn.fi-color-danger,
.fi-header-actions button.fi-color-danger,
.fi-page-actions button.fi-color-danger {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
}
.fi-header-actions .fi-btn.fi-color-danger:hover,
.fi-page-actions .fi-btn.fi-color-danger:hover,
.fi-header-actions button.fi-color-danger:hover,
.fi-page-actions button.fi-color-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}
.fi-header-actions .fi-btn.fi-color-danger svg,
.fi-page-actions .fi-btn.fi-color-danger svg,
.fi-header-actions button.fi-color-danger svg,
.fi-page-actions button.fi-color-danger svg {
    color: white !important;
}
.fi-header-actions .fi-btn.fi-color-danger span,
.fi-page-actions .fi-btn.fi-color-danger span,
.fi-header-actions button.fi-color-danger span,
.fi-page-actions button.fi-color-danger span {
    color: white !important;
}

/* Excel button - green with white background */
.fi-header-actions .fi-btn[wire\:click*="export"],
.fi-page-actions .fi-btn[wire\:click*="export"],
.fi-ac-btn-action[wire\:click*="export"],
button.fi-ac-btn-action.fi-color-success,
.fi-header-actions button.fi-color-success,
.fi-page-actions button.fi-color-success {
    background-color: white !important;
    border: 1px solid #10b981 !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
}
.fi-header-actions .fi-btn[wire\:click*="export"]:hover,
.fi-page-actions .fi-btn[wire\:click*="export"]:hover,
.fi-ac-btn-action[wire\:click*="export"]:hover,
button.fi-ac-btn-action.fi-color-success:hover,
.fi-header-actions button.fi-color-success:hover,
.fi-page-actions button.fi-color-success:hover {
    background-color: #f0fdf4 !important;
    border-color: #059669 !important;
    color: #059669 !important;
}
.fi-header-actions .fi-btn[wire\:click*="export"] svg,
.fi-page-actions .fi-btn[wire\:click*="export"] svg,
.fi-ac-btn-action[wire\:click*="export"] svg,
button.fi-ac-btn-action.fi-color-success svg,
.fi-header-actions button.fi-color-success svg,
.fi-page-actions button.fi-color-success svg {
    color: #10b981 !important;
}
.fi-header-actions .fi-btn[wire\:click*="export"] span,
.fi-page-actions .fi-btn[wire\:click*="export"] span,
.fi-ac-btn-action[wire\:click*="export"] span,
button.fi-ac-btn-action.fi-color-success span,
.fi-header-actions button.fi-color-success span,
.fi-page-actions button.fi-color-success span {
    color: #10b981 !important;
}

/* Filter button - gray/black text with white background */
.fi-header-actions .fi-btn:not([wire\:click*="export"]),
.fi-page-actions .fi-btn:not([wire\:click*="export"]),
button[x-on\:click*="toggleTableColumnSearches"],
.fi-ta-header-ctn .fi-btn {
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}
.fi-header-actions .fi-btn:not([wire\:click*="export"]):hover,
.fi-page-actions .fi-btn:not([wire\:click*="export"]):hover,
button[x-on\:click*="toggleTableColumnSearches"]:hover,
.fi-ta-header-ctn .fi-btn:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
}
.fi-header-actions .fi-btn:not([wire\:click*="export"]) svg,
.fi-page-actions .fi-btn:not([wire\:click*="export"]) svg,
button[x-on\:click*="toggleTableColumnSearches"] svg,
.fi-ta-header-ctn .fi-btn svg {
    color: #6b7280 !important;
}
.fi-header-actions .fi-btn:not([wire\:click*="export"]) span,
.fi-page-actions .fi-btn:not([wire\:click*="export"]) span,
button[x-on\:click*="toggleTableColumnSearches"] span,
.fi-ta-header-ctn .fi-btn span {
    color: #374151 !important;
}
