﻿
/* ======= Grid Header ======= */
.e-grid .e-headercell {
    background: linear-gradient(to bottom, #E3F2FD, #BBDEFB) !important;
    color: #333 !important;
    font-weight: bold;
    border-bottom: 2px solid #90CAF9 !important;
    border-radius: 8px 8px 0 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
    font-family: 'SGK_Light';
}

.e-grid .e-headercell:hover {
    background: #BBDEFB !important;
    transform: translateY(1px);
    transition: all 0.2s ease;
}

.e-grid .e-headercontent {
    background: #E3F2FD !important;
    border-radius: 8px 8px 0 0;
    padding: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* ======= Grid Content ======= */
.e-grid .e-content {
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ======= Toolbar Buttons ======= */
.e-grid .e-toolbar .e-toolbar-item {
    background: transparent;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.e-grid .e-toolbar .e-toolbar-item:hover {
    background: #E3F2FD;
}

.e-grid .e-toolbar {
    background: transparent;
    margin-bottom: 5px;
}

/* ======= Filter Inputs ======= */
.e-grid .e-filterbarcell input {
    background: #f0f8ff !important;
    color: #333 !important;
    border: 1px solid #90CAF9 !important;
    border-radius: 4px;
    padding: 4px;
}

.e-grid .e-filterbarcell input:focus {
    background: #e6f7ff !important;
    border-color: #64B5F6 !important;
    outline: none;
}

/* استفاده در QueryCellinfo */
/* // رنگی کردن فونت ردیف */
/* ======= Row Cell Colors by Status ======= */
.e-grid .e-gridcontent .e-rowcell.successful { color: green; }
.e-grid .e-gridcontent .e-rowcell.error { color: red; font-weight: bold; }
.e-grid .e-gridcontent .e-rowcell.Nochange { color: blue; font-weight: bold; }
.e-grid .e-gridcontent .e-rowcell.Orange { color: orangered; font-weight: bold; }
.e-grid .e-gridcontent .e-rowcell.deepskyblue {color: dodgerblue;}
.e-grid .e-gridcontent .e-rowcell.OrangeQty {
    background-color: rgba(255, 69, 0, 0.3) !important;
}
/* رنگی کردن سلول خاص */
.e-grid .e-gridcontent .e-rowcell.BackgroundError {
    background-color: red !important; /* پس‌زمینه  */
    color: black !important;
    font-weight: bold;
}

/*  CSS */
.highlight-Orange {
    background-color: orangered !important;
}


/*tooltip  خطا*/
.corner-highlight-cell {
    position: relative;
    overflow: hidden;
}

    .corner-highlight-cell::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        border-top: 8px solid #FFC300; /* رنگ مثلث */
        border-right: 10px solid transparent; /* شفاف برای شکل مثلث */
        z-index: 1;
        animation: pulseTriangle 1.5s infinite;
    }

@keyframes blinkHighlight {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}








/* ======= Detail Row Icons ======= */
.e-grid .e-detailrowcollapse,
.e-grid .e-detailrowexpand {
    background-color: #E3F2FD !important;
    border: 1px solid #90CAF9 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease;
}

.e-grid .e-detailrowcollapse:hover,
.e-grid .e-detailrowexpand:hover {
    background-color: #BBDEFB !important;
    transform: scale(1.05);
}

/* ======= Pager/Footer Section ======= */
.e-grid .e-pager {
    background: #E3F2FD !important;
    border-radius: 0 0 8px 8px;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #90CAF9 !important;
 
}

/*.e-grid .e-pager {
    direction: rtl !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: #E3F2FD !important;
    border-radius: 0 0 8px 8px;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #90CAF9 !important;
}*/

.e-grid .e-pager .e-numericitem,
.e-grid .e-pager .e-next,
.e-grid .e-pager .e-prev,
.e-grid .e-pager .e-first,
.e-grid .e-pager .e-last {
    background: transparent;
    color: #1976D2;
    border-radius: 4px;
    margin: 0 2px;
    padding: 5px 10px;
    transition: background 0.3s ease;
}

.e-grid .e-pager .e-numericitem:hover,
.e-grid .e-pager .e-next:hover,
.e-grid .e-pager .e-prev:hover,
.e-grid .e-pager .e-first:hover,
.e-grid .e-pager .e-last:hover {
    background: #BBDEFB;
    cursor: pointer;
}

/* ======= Utility Class ======= */
.highlight-Orange {
    background: orangered !important;
    color: white !important;
    font-weight: bold;
}



/*?????? ????*/


/* ???? ???? */
.e-grid .e-table {
    background-color: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* ???????? ???? */
.e-grid .e-row {
    transition: background-color 0.3s ease;
}

    .e-grid .e-row:hover {
        background-color: #f5f7fa;
    }

/* ???????? ???? */
.e-grid .e-rowcell {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #333;
}

/* ???? ??? */
.e-grid .e-headercell {
    background-color: #f0f4f8;
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    padding: 12px 16px;
    border-bottom: 2px solid #d1d5db;
}

/* ???? ???? ???? */
.e-grid .e-emptyrow td {
    text-align: center;
    color: #9ca3af;
    padding: 24px;
    font-style: italic;
}

/* ???? ?????? ??? */
.e-grid .e-selectionbackground {
    background-color: #e0f2fe !important;
}

