/* Tema customizado para os grids */
.e-grid {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
}
.e-grid .e-gridheader .e-table {
    background-image: linear-gradient(to right, #1c272f, #49576b);
}
.e-grid .e-gridheader {
    background-image: linear-gradient(to right, #1c272f, #49576b);
    border: none !important;
}

.e-grid .e-headercell {
    background: transparent !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: none !important;
    padding: 16px 12px !important;
}

.e-grid .e-headercell:last-child {
    border-right: none !important;
}

.e-grid .e-row {
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.2s ease !important;
}

.e-grid .e-row:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%) !important;
    /* transform: translateY(-1px) !important; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.e-grid .e-rowcell {
    border-right: 1px solid #f3f4f6 !important;
    /* padding: 14px 12px !important; */
    font-size: 14px !important;
    color: #374151 !important;
}
.e-grid
    .e-gridheader
    .e-icons:not(.e-icon-hide):not(.e-check):not(.e-stop):not(
        .e-icon-reorderuparrow
    ):not(.e-icon-reorderdownarrow) {
    color: #ffffff !important;
}
.e-grid .e-rowcell:last-child {
    border-right: none !important;
}

.e-grid .e-altrow {
    background: #fafbfc !important;
}

.e-grid .e-altrow:hover {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

/* Paginação customizada */
.e-grid .e-gridpager {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 12px !important;
}
.e-pagercontainer,
.e-pager.sf-pager .e-pagercontainer .e-first {
    border: none !important;
}
.e-pagercontainer .e-prev,
.e-pagercontainer .e-next {
    border: none !important;
}
.e-grid .e-pagercontainer .e-parentmsgbar {
    color: #6b7280 !important;
    font-weight: 500 !important;
}
.e-grid .e-gridcontent {
    overflow: auto !important;
    background: white !important;
}

.e-grid .e-pager .e-numericitem,
.e-grid .e-pager .e-nextprev {
    background: white !important;
    border: none !important;
    color: #4b5563 !important;
    margin: 0 2px !important;
    transition: all 0.2s ease !important;

    margin: 0 !important;
}
.e-numericcontainer {
    display: flex;
}

.e-grid .e-pager .e-numericitem:hover,
.e-grid .e-pager .e-nextprev:hover {
    background-image: linear-gradient(to right, #1c272f, #49576b);
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
.e-grouptopleftcell {
    background: #243136 !important;
}
.e-grid span.e-headertext {
    color: white !important;
}
.e-grid .e-pager .e-currentitem {
    background-image: linear-gradient(to right, #1c272f, #49576b) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
}

/* Filtros customizados */
.e-grid .e-filterbar .e-filterbarcell {
    background: #f9fafb !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.e-grid .e-filterbar input {
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}

.e-grid .e-filterbar input:focus {
    border-color: #1c272f !important;
    box-shadow: 0 0 0 3px rgba(28, 39, 47, 0.1) !important;
    outline: none !important;
}

/* Seleção customizada */
.e-grid .e-selectionbackground {
    background: linear-gradient(
        90deg,
        rgba(28, 39, 47, 0.1) 0%,
        rgba(62, 71, 78, 0.1) 100%
    ) !important;
}

.e-grid .e-rowselected {
    background: linear-gradient(
        90deg,
        rgba(28, 39, 47, 0.15) 0%,
        rgba(62, 71, 78, 0.15) 100%
    ) !important;
    border-left: 3px solid #1c272f !important;
}

/* Toolbar customizado */
.e-grid .e-toolbar {
    border-bottom: 1px solid #3e474e !important;
    padding: 12px !important;
}

.e-grid .e-toolbar .e-search {
    border-radius: 8px !important;
    border: 1px solid #3e474e !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
    color: white !important;
    background: rgba(62, 71, 78, 0.3) !important;
}

.e-grid .e-toolbar .e-search:focus {
    border-color: #1c272f !important;
    box-shadow: 0 0 0 3px rgba(28, 39, 47, 0.2) !important;
    background: rgba(28, 39, 47, 0.1) !important;
}

.e-grid .e-toolbar .e-search::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Agrupamento customizado */
.e-grid .e-groupdroparea {
    background: linear-gradient(
        to right,
        rgba(28, 39, 47, 0.1),
        rgba(62, 71, 78, 0.1)
    ) !important;
    border: 2px dashed #3e474e !important;
    border-radius: 8px !important;
    color: #1c272f !important;
    font-weight: 500 !important;
}

.e-grid .e-groupheadercell {
    background: linear-gradient(to right, #1c272f, #49576b);
    font-weight: 600 !important;
    color: white !important;
}
.e-grid.e-hidelines .e-rowcell.e-lastrowcell:not(.e-xlsel-bottom-border) {
    border-bottom: none !important;
}

.tab-sub-grid.e-grid .e-groupdroparea {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(to right, #1c272f, #49576b);
    color: white !important;
}
.tab-sub-grid .e-grid-icon.e-groupheadercell {
    border-radius: 8px !important;
    border: 1px solid #ffffff42 !important;
    display: flex !important;
    align-items: center;
}
.tab-sub-grid td.e-indentcell,
.tab-sub-grid td.e-recordplusexpand,
.tab-sub-grid td.e-recordpluscollapse {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-right: none;
}
.e-grid.e-resize-lines .e-headercell .e-rhandler,
.e-grid.e-resize-lines .e-headercell .e-rsuppress {
    border: none !important;
}
.e-filter-popup {
    padding: 10px;
}
.e-headercontent {
    border-color: #ffffff42 !important;
}
