﻿/*body {
    direction: rtl;
}
*/
.navbar-nav .nav-item:hover {
    background-color: #f8f9fa;
}

details {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding-bottom: 10px;
}

details[open] {
    background-color: #f0f0f0;
}


.HideCol {
    display: none;
}
/**********GridView**********/


/* 1) Hover فقط برای tbody و نمایش pointer روی سلول‌ها */
.table.table-hover tbody tr:hover > * {
    background-color: #fdee06 !important;
    color: #000 !important;
    cursor: pointer !important; /* pointer برای بدنه */
}

/* 2) مطمئن شو هدر هیچ‌وقت در hover تغییر نکند و کرسرش pointer نشود */
.table.table-hover thead tr:hover > *,
.table.table-hover thead tr > *:hover {
    background-color: #D3D3D3 !important;
    color: inherit !important;
    cursor: pointer !important;
}

/* 3) ردیف اول (tbody) هنگام hover رنگ مخصوص خودش را داشته باشد */
.table.table-striped tbody tr:nth-of-type(1):hover > * {
    background-color: #D3D3D3 !important;
    cursor: pointer !important;
    cursor: default !important;
}

/* 4) استایل ثابت ردیف اول (بدون hover) */
.table.table-striped tbody tr:nth-of-type(1) > * {
    background-color: #D3D3D3 !important;
    color: rgb(17, 17, 17) !important;
    text-align: center;
}

.table.table-striped tbody tr:nth-of-type(odd) td {
    background-color: #F5F5F5;
}

.table.table-striped tbody tr:nth-of-type(even) td {
    background-color: #ffffff;
}

tr.SelectedRow td {
    background-color: #a3ddbd !important;
    color: black !important;
    font-weight: bold;
}



/*------------------ Table Row Height ------------*/
.table td, .table th {
    padding: .25rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    vertical-align: middle;
}

/******************************************GridView Pagination ***************************************************/
/*gridview*/
.table table tbody tr {
    border: none;
}

    .table table tbody tr td {
        padding: 1px;
        border: none;
    }

        .table table tbody tr td a,
        .table table tbody tr td span {
            position: relative;
            float: left;
            padding: 6px 12px;
            margin-left: -1px;
            line-height: 1.42857143;
            color: #337ab7;
            text-decoration: none;
            background-color: #fff;
            border: 1px solid #ddd;
        }

.table table > tbody > tr > td > span {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}

.table table > tbody > tr > td:first-child > a,
.table table > tbody > tr > td:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.table table > tbody > tr > td:last-child > a,
.table table > tbody > tr > td:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.table table > tbody > tr > td > a:hover,
.table table > tbody > tr > td > span:hover,
.table table > tbody > tr > td > a:focus,
.table table > tbody > tr > td > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eee;
    border-color: #ddd;
}
