/* Syncfusion Grid General Overrides */
.e-grid {
    border: none !important;
    border-radius: 1rem !important;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}

/* Syncfusion Grid Dark Mode Overrides - Global */
.dark .e-grid,
.dark .e-grid .e-gridheader,
.dark .e-grid .e-gridcontent,
.dark .e-grid .e-content,
.dark .e-grid .e-table,
.dark .e-grid .e-scrollbar,
.dark .e-grid .e-headercontent,
.dark .e-control,
.dark .e-lib {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.dark .e-grid .e-headercell {
    background-color: #1e293b !important;
    border-bottom: 2px solid #334155 !important;
    color: #f1f5f9 !important;
}

.dark .e-grid .e-headertext {
    color: #94a3b8 !important;
}

.dark .e-grid .e-row {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

.dark .e-grid .e-row:hover {
    background-color: #1e293b !important;
}

.dark .e-grid .e-row.e-row-hover:not(.e-selected) {
    background-color: #1e293b !important;
}

.dark .e-grid .e-rowcell {
    border-bottom: 1px solid #1e293b !important;
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

.dark .e-grid .e-toolbar {
    background-color: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}

.dark .e-grid .e-pager {
    background-color: #0f172a !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

.dark .e-input-group:not(.e-success):not(.e-warning):not(.e-error),
.dark .e-input-group-icon {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.dark .e-input-group input {
    color: white !important;
}

.dark .e-toolbar-items,
.dark .e-toolbar-item,
.dark .e-toolbar-left,
.dark .e-toolbar-right {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

.dark .e-search-icon::before {
    color: #94a3b8 !important;
}

.dark .e-pager .e-currentitem, 
.dark .e-pager .e-currentitem:hover {
    background: #FC5200 !important;
    color: white !important;
}

.dark .e-pager .e-pagercontainer {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

.dark .e-pager .e-link,
.dark .e-pager .e-icons {
    color: #94a3b8 !important;
}

.dark .e-grid .e-row:hover .e-rowcell {
    background-color: #1e293b !important;
}

.dark .e-grid .e-altrow {
    background-color: #111a2e !important;
}

/* Fix for Filter Menu in Dark Mode */
.dark .e-filter-popup, 
.dark .e-filter-menu,
.dark .e-excel-filter {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

.dark .e-filter-popup .e-content,
.dark .e-filter-popup .e-footer {
    background-color: #1e293b !important;
}

.dark .e-filter-popup .e-header {
     background-color: #0f172a !important;
     color: #f1f5f9 !important;
}

.dark .e-filter-popup .e-ftrlabel,
.dark .e-filter-popup .e-flmenu-input,
.dark .e-filter-popup .e-dropdownlist {
    color: #f1f5f9 !important;
}
