* {
    direction: rtl;
}

body {
    position: relative;
}

.headMenus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    background: rgba(180, 180, 180, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 12px;
    margin: 5px;
    line-height: 1.4;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    max-width: 100%;
}

.headMenus:hover {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(180, 180, 180, 0.25);
    transform: translateY(-1px);
}

@media (max-width: 992px) {
    .headMenus {
        width: 100%;
        padding: 6px 8px;
        font-size: 12px;
        justify-content: center;
        flex-direction: column;
    }
}

.sidemenu-label:hover {
    color: #F7C04A;
}

.submenu {
    color: #1B1B1B
}

.submenu>i {
    color: #F3797E;
    transition: .7s;
}

.submenu:hover {
    color: #17A2B8
}

.submenu:hover i {
    color: #ec795f;
}

.nav-link-show {
    color: #17A2B8
}

.side-header {
    border: 1px solid #e2d274;
    box-shadow: 0 0 10px #8d8141
}

.bg-light {
    background-color: #dcb2dc !important;
}

.bg-brown {
    background-color: #4d2a01 !important;
}

.bg-green {
    background-color: #63c10e !important;
}

.bg-NavyBlue {
    background-color: #031d87 !important;
}

.bg-red {
    background-color: red !important;
}

.bg-unique {
    background-color: #5fefc4 !important;
}

#back-to-top {
    background: #F7C04A;
}

footer {
    height: 7vh;
    background: #fff;
    font-size: 15px;
}

.notif {
    width: 20px;
    height: 20px;
    border-radius: 30%;
    font-size: 12px;
    background: rgba(236, 121, 95, 0.2);
    border: 1px solid #ec795f;
}

#profile-pic {
    position: relative;
}

.star {
    display: none;
    color: red;
    font-size: 10px;
    position: absolute;
    top: 0;
    left: -4px;
    z-index: 9999;
}

.notify {
    z-index: 1000000;
    margin-top: 5%;
}

#gridContainer {
    height: 80vh !important;
    padding: 20px !important;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 5px !important;
    overflow-y: auto !important;
    width: 80vw !important;
    margin-top: 2rem !important;
}

.dx-datagrid-rowsview .dx-row {
    background: lightgrey !important;
}

.dx-datagrid-headers .dx-datagrid-table .dx-row > td {
    background: #79947090 !important;
    color: #333 !important;
}

.dx-datagrid-content .dx-datagrid-table .dx-row > td, .dx-datagrid-content .dx-datagrid-table .dx-row > tr > td {
    vertical-align: middle !important;
}

.dx-datagrid {
    background: transparent;
}

/** Custom Select **/
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    user-select: none;
}

.custom-select-wrapper select {
    display: none;
}

.wrapper {
    background: #F5F7FF !important;
    direction: rtl;
    text-align: right;
    padding-bottom: 30px;
}

.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select-trigger {
    position: relative;
    display: block;
    width: 130px;
    padding: 0 84px 0 22px;
    font-size: 22px;
    font-weight: 300;
    color: #fff;
    line-height: 60px;
    background: #5c9cd8;
    border-radius: 4px;
    cursor: pointer;
}

.custom-select-trigger:after {
    position: absolute;
    display: block;
    content: '';
    width: 10px;
    height: 10px;
    top: 50%;
    right: 25px;
    margin-top: -3px;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg) translateY(-50%);
    transition: all .4s ease-in-out;
    transform-origin: 50% 0;
}

.custom-select.opened .custom-select-trigger:after {
    margin-top: 3px;
    transform: rotate(-135deg) translateY(-50%);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 100%;
    margin: 15px 0;
    border: 1px solid #b5b5b5;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 2px 1px rgba(0,0,0,.07);
    background: #fff;
    transition: all .4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
}

.custom-select.opened .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-options:before {
    position: absolute;
    display: block;
    content: '';
    bottom: 100%;
    right: 25px;
    width: 7px;
    height: 7px;
    margin-bottom: -4px;
    border-top: 1px solid #b5b5b5;
    border-left: 1px solid #b5b5b5;
    background: #fff;
    transform: rotate(45deg);
    transition: all .4s ease-in-out;
}

.option-hover:before {
    background: #f9f9f9;
}

.custom-option {
    position: relative;
    display: block;
    padding: 0 22px;
    border-bottom: 1px solid #b5b5b5;
    font-size: 18px;
    font-weight: 600;
    color: #b5b5b5;
    line-height: 47px;
    cursor: pointer;
    transition: all .4s ease-in-out;
}

.custom-option:first-of-type {
    border-radius: 4px 4px 0 0;
}

.custom-option:last-of-type {
    border-bottom: 0;
    border-radius: 0 0 4px 4px;
}

.custom-option:hover,
.custom-option.selection {
    background: #f9f9f9;
}

.cards {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 25px #DAE7FF;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.chart {
    background: #FFFFFF;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 0 25px #DEDEDE;
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-sub {
    background: #fff;
    border-radius: 5px;
}

.angle {
    color: black;
}

.card {
    min-width: 350px;
    min-height: 16vh;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 5px #aeffff;
    margin: 20px 5px !important;
}
.card:nth-child(1){
    background: #7DA0FA;
}
.card:nth-child(2){
    background: #4747A1;
}
.card:nth-child(3){
    background: #7978E9;
}
.card:nth-child(4){
    background: #F3797E;
}
.card:nth-child(5){
    background: #F3797E;
}
.card:nth-child(6){
    background: #7978E9;
}
.card:nth-child(7){
    background: #4747A1;
}
.card:nth-child(8){
    background: #7DA0FA;
}

/* Row 1: 3 Cards */
.cards .dropdown-row:nth-child(1) .dropdown-content .row .card:nth-child(1) {
    background: #3256b6; /* Sky Blue */
    color: #ffffff; /* متن سفید برای خوانایی */
}
.cards .dropdown-row:nth-child(1) .dropdown-content .row .card:nth-child(2) {
    background: #3256b6; /* Deep Purple */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(1) .dropdown-content .row .card:nth-child(3) {
    background: #3256b6; /* Light Purple */
    color: #ffffff;
}

/* Row 2: 4 Cards */
.cards .dropdown-row:nth-child(2) .dropdown-content .row .card:nth-child(1) {
    background: #F3797E; /* Coral Red */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(2) .dropdown-content .row .card:nth-child(2) {
    background: #F3797E; /* Mint Green */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(2) .dropdown-content .row .card:nth-child(3) {
    background: #F3797E; /* Magenta */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(2) .dropdown-content .row .card:nth-child(4) {
    background: #F3797E; /* Peach */
    color: #333333; /* متن مشکی برای خوانایی */
}

/* Row 3: 4 Cards */
.cards .dropdown-row:nth-child(3) .dropdown-content .row .card:nth-child(1) {
    background: #4A47B1FF; /* Teal */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(3) .dropdown-content .row .card:nth-child(2) {
    background: #4A47B1FF; /* Golden Yellow */
    color: #333333; /* متن مشکی برای خوانایی */
}
.cards .dropdown-row:nth-child(3) .dropdown-content .row .card:nth-child(3) {
    background: #4A47B1FF; /* Violet */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(3) .dropdown-content .row .card:nth-child(4) {
    background: #4A47B1FF; /* Light Peach */
    color: #333333; /* متن مشکی برای خوانایی */
}
.cards .dropdown-row:nth-child(3) .dropdown-content .row .card:nth-child(5) {
    background: #4A47B1FF; /* Light Peach */
    color: #ffffff; /* متن مشکی برای خوانایی */
}

/* Row 4: 4 Cards */
.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(1) {
    background: #018653; /* Light Green */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(2) {
    background: #018653; /* Burnt Orange */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(3) {
    background: #018653; /* Olive */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(4) {
    background: #018653; /* Dusty Rose */
    color: #ffffff;
}

.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(5) {
    background: #018653; /* Bright Blue */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(6) {
    background: #018653; /* Bright Red */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(7) {
    background: #018653; /* Pinkish Purple */
    color: #ffffff;
}
.cards .dropdown-row:nth-child(4) .dropdown-content .row .card:nth-child(8) {
    background: #018653; /* Soft Blue */
    color: #ffffff;
}
.card>* {
    color: #F8F8F8;
    font-size: 14px;
    max-height: 70%;
    padding: 0;
}

.card>div:last-of-type {
    color: #fff;
    cursor: pointer;
    transition: .5s;
    max-height: 30%;
    padding: 0 15px 0 15px;
}

.card>div:last-of-type:hover {
    color: rgba(255, 255, 255, 0.66);
    font-size: 16px;
}

.divider {
    max-height: 1px;
    background: #fff;
    box-shadow: 0 0 7px #80edc9;
}

.parent-divider {
    max-height: 1px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: #F7CC7F;
    position: absolute;
    top: -17px;
    left: 15px;
    border-radius: 10px;
    box-shadow: 0 0 5px #F7CC7F;
    cursor: pointer;
    transition: .4s;
}

.icon-wrapper:hover {
    transform: scale(1.08);
}

.icon-wrapper>* {
    font-size: 18px;
    color: #020202;
}

.bg-system-sky {
    background: #7DA0FA;
}

.bg-system-sky2 {
    background: #7978E9;
}

.bg-system-purple {
    background: #4747A1;
}

.bg-system-danger {
    background: #F3797E;
}

.clearBtn {
    background: #F3797E;
    color: #fff;
}

input[type="text"], input[type="number"], input[type="password"] {
    border: 1px solid #4d4d4d !important;
    border-radius: 5px !important;
}

.select2-container {
    border: 1px solid #4d4d4d !important;
    border-radius: 5px !important;
}

.select2-shobe-container {
    color: #4d4d4d;
}

.formArea, .custom-card {
    box-shadow: 0 0 27px #b0afff;
}
