﻿
@font-face {
    font-family: 'Cairo-Regular';
    src: url('/css/fonts/Cairo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cairo-Medium';
    src: url('/css/fonts/Cairo-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Cairo-Bold';
    src: url('/css/fonts/Cairo-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'BlackOpsOne';
    src: url('/css/fonts/BlackOpsOne-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'BrunoAce';
    src: url('/css/fonts/BrunoAce-Regular.ttf') format('truetype');
}

body {
    font-family: "Cairo-Regular" !important;
    font-weight: 900;
    font-size: 15px;
}

.bolder {
    font-weight: bolder !important;
    color: black;
    font-size: 18px;
}


.thin {
    font-weight: 100 !important;
}


.bold_font {
    font-family: 'Cairo-Bold';
    font-size: 48px;
}

.med_font {
    font-family: 'Cairo-Medium';
    font-size: 18px;
}
/*
.iq-banner:not(.hide) + .content-inner {
    margin-top:1rem !important;

}
*/

.MianTitle {
    font-size: 65px;
    font-family: 'BlackOpsOne';
    text-align: center;
    margin-top: 60px;
    color: black;
}

.SubTitle {

    text-align: center;
    font-size: 90px;
    color: black;
}

.SubTitleSmall {
    font-size: 18px;
    color: green;
}

.Div_Doc {
    outline: 1px solid black;
    display: flex;
    align-items: center;
    padding: 5px;
    justify-content: space-between;
    inline-size: -webkit-fill-available;
}


.card {
    margin-top: 15px !important;
}

.Erp_back {
    background-position: center;
    background-size: cover;
    aspect-ratio: 29 / 14;
    padding: 0;
    margin: 0;
}
/*
.Erp_back {
    background-position: center;
    background-size: cover;
    height: 470px;
    border-radius: 10px;
    margin-top: 21px;
}
*/
/*******************************************/
.img_block {
    opacity: 0;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    height: 277px;
    width: 280px;
    margin: auto;
    margin-top: -32px;
    margin-bottom: 50px;
    transform: rotate(180deg);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.img_rotate {
    transform: translateY(0) rotate(360deg);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}


.MianTitle, .SubTitle {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.MainTitle, .SubTitle {
    opacity: 0;
}

.animation-complete .img_rotate, .animation-complete .MianTitle, .animation-complete .SubTitle {
    opacity: 1;
    transform: translateY(0) rotate(0); /* Apply additional transformations as needed */
}

/*.animation-complete .img_block, .animation-complete .MianTitle, .animation-complete .SubTitle {
    opacity: 1;
    transform: translateY(0) rotate(0);*/ /* Apply additional transformations as needed */
/*}*/
/*******************************************/



/*******************************************/
/* الروابط النشطة */
.sidebar {
    background: #fff;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .sidebar .sidebar-header {
        background-color: #008c46;
        padding: 1rem;
    }

    .sidebar .sidebar-toggle {
        color: #fff;
        cursor: pointer;
    }

    .sidebar .nav-link {
        color: #333;
        display: flex;
        align-items: center;
        padding: 10px 20px;
        font-weight: 500;
        border-radius: 0.375rem;
        transition: background 0.2s ease;
    }

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            background-color: #008c46;
            color: #fff;
        }
/*
        .sidebar .nav-link i {
            margin-left: 10px;
        }*/

span.NumBar {
    margin-left: -2px !important;
}
    .sidebar .sub-nav {
        padding-left: 2rem;
        background-color: #f7f7f7;
    }

    .sidebar .li_main {
        margin: 5px 0;
    }

.sidebar .a_main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #555;
    text-decoration: none;
    padding: 0px;
    font-size: 12px;
    flex-direction: row;
}

        .sidebar .a_main:hover {
            background-color: #dff0e0;
            color: #008c46;
        }

    .sidebar .HintIcon {
        display: inline-flex;
        align-items: center;
        font-size: 14px;
        margin-left: 10px;
    }

    .sidebar .bg_main {
        background-color: #008c46;
        color: white;
        padding: 2.5px;
        border-radius: 50%;
    }

    .sidebar .count_num {
        font-size: 0.75rem;
        font-weight: bold;
        color: white !important;
    }

    .sidebar .hr-horizontal {
        margin: 1rem 0;
        border: none;
        border-top: 1px solid #ddd;
    }

    /* Mini sidebar */
    .sidebar.sidebar-mini {
        max-width: 4.8rem;
        overflow-x: hidden;
    }

        .sidebar.sidebar-mini .item-name,
        .sidebar.sidebar-mini .count_num,
        .sidebar.sidebar-mini .right-icon {
            display: none;
        }

        .sidebar.sidebar-mini .nav-link,
        .sidebar.sidebar-mini .a_main {
            justify-content: center;
            padding: 10px;
        }

    /* Active and Collapsed State */
    .sidebar.sidebar-default .nav-link:not(.static-item).active,
    .sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded="true"] {
        background: #008c46;
        color: #fff;
    }

    .sidebar .sub-nav.collapse.show {
        background-color: #e7f6ed;
        border-right: 3px solid #008c46;
    }

li.nav-item {
    padding-right: unset !important;
}

.sidebar-toggle.Close {
    background: dimgrey;
}


.NumBar {
    width: 2px;
}
/*******************************************/
.flex {
    display: flex;
}


.Font_blod {
    font-weight: bolder;
}



.black_text {
    color: black !important;
}

.logo_img {
    width: 450px;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logoSmall_img {
    width: 27px;
    height: 27px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
}

.div_center {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.Relative{
    position:relative;
}


.gradient {
    background: radial-gradient(20% 60% at 50% 50%, #ffffff 0%, #3c9d48 100%) !important;
} 
.block {
    width: 220px;
    height: 170px;
    background: white;
    border-radius: 10px;
    box-shadow: 8px 6px 11px -1px red, 11px 8px 5px 3px green, inset 2px 0px 19px 5px #98dd98;
}


.block_flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.p_block {
    color: black;
    font-weight: bolder;
    text-align: center;
    font-family: Cairo-Medium;
    font-size: 20px;
}



.light th {
    text-align: center
}



tr.odd {
    text-align: center;
}


tr.even {
    text-align: center;
}


div.dataTables_wrapper div.dataTables_length select {
    width: 95px !important;
}


td {
    text-align: center;
}

.flex.align-items-center.list-user-action {
    margin: auto;
    display: block;
}

.Main_img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 62px;
    width: 160px;
}


.Register_card {
    background: lightgray;
    border-radius: 30px;
    box-shadow: -11px 11px 1px 1px #7b7b7b;
    margin: 38px;
}




.form_small {
    width: 80% !important;
    margin: auto;
}


.bg_login {
    background-image: url('../images/dashboard/AboutUs_bg.png');
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    box-shadow: -33px -21px 226px 7px #20810085;
}


.Login_form {
    width: max-content;
    margin: auto;
}

input.form-control.form-control-sm {
    border: 1px solid gray;
}

select.form-select.form-select-sm {
    border: 1px solid gray;
}


.flex_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}


.index_block {
    background: white;
    border-top-right-radius: 80px;
    border-bottom-left-radius: 80px;
    box-shadow: 8px 6px 11px -1px red, 11px 8px 5px 3px green, inset 2px 0px 19px 5px #98dd98;
}

.chart_block {
    color: black;
    width: fit-content;
    text-align: center;
    margin: auto;
    padding: 10px;
    font-size: 14px;
}

.cardNew {
    background: var(--bs-body-bg);
}

.bg_gray {
    background: #ededed;
}


.btn_active {
    background: #e5e5e5;
    color: black;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

    /* Styling the checked state */
    input[type="checkbox"]:checked {
        background-color: #009688;
        border-color: #009688;
    }



.country-select .flag {
    background-image: url('../../lib/country-select-js/img/flags.png');
}


.Applicatipn_Block {
    display: block;
    background: white;
    box-shadow: 8px 6px 11px -1px red, 11px 8px 5px 3px green, inset 2px 0px 19px 5px #98dd98;
}


.p_app {
    text-align: center;
    font-weight: bold;
    height: 35px;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 20px;
    color: black;
    margin:0px;
}


.app_title {
    text-align: center;
    font-weight: bold;
    height: 65px;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 26px;
    color: black;
    margin-bottom: 55px;
    margin-top: 65px;
}

.formComplete {
    display: flex;
    justify-content: center;
}

.InputComplete {
    width: 32%;
    border: 1px solid black;
}

.Head_name {
    background: #d5d1d1;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 10px;
}

    .Head_name h3 {
        font-weight: 900;
        padding: 6px;
    }

.flexApp {
    display: flex;
    margin-top: 15px;
}

    .flexApp button {
        margin-right: 5px;
    }


.RadioReq {
    background: #c1c1c1;
    text-align: center;
    border: 1px solid black;
}


    .RadioReq input {
        margin: 0px;
    }

.RadioReqLeft {
    background: #c1c1c1;
    text-align: center;
    border: 1px solid black;
}

    .RadioReqLeft input {
        margin: 0px;
    }


.flexIncome {
    display: flex;
    align-items: center;
    padding: 8px;
}

.BankDeal {
    border: 2px solid #6a6565;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 22px;
    padding: 6px;
    border-radius: 10px;
}

input.BankDeal {
    margin: 0px;
}

.BankDeal label {
    margin: 0px;
}


.Right_Dirction {
    direction: inherit !important;
}

.ReadOnly {
    background: #e5e5e5;
}




    .ReadOnly:focus {
        border: 2px solid red !important;
    }

    .windowBtn {
        background: #aeb7b2;
        border: none;
        padding: 10px;
        color: black;
    }

    .windowBtn.active {
        border: none;
       /* border-radius: 10px;*/
        padding: 10px;
        color: white;
        border: 2px #008c46 solid;
        background: unset;
        color: black;
    }


.thPartner th, .tdPartner td {
    text-align: center;
    color: black;
    font-weight: bolder;
    border: 1px solid black;
}

.thPartnerTwo th, .tdPartnerTwo td {
    text-align: center;
    color: black;
    font-weight: bolder;
    border: 1px solid black;
}

.thPartnerThree th, .tdPartnerThree td {
    text-align: center;
    color: black;
    font-weight: bolder;
    border: 1px solid black;
}

.tableM th, .tableM td {
    font-weight: bolder;
    border: 1px solid black;
    color: black;
    text-align: center;
}

.spec {
    width: 46%;
}


.loading {
    display: block;
    background: #ff000073;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
}

.LoadText {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    position:absolute;
}

.Back_div {
     display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 100px;
    width: 35%;
}

/*
.Back_div {
    width: 35%;
}*/

@media(max-width:767px) {
    /*    .iq-banner:not(.hide) + .content-inner {
        margin-top: 4rem !important;
    }*/

    .bold_font {
        font-family: Cairo-Bold;
        font-size: 36px;
    }
}

input .form-control {
    color: black;
    font-weight: bolder;
    border-bottom-color: gray;
    border-left-color: gray;
}

.form-control, .form-select {
    color: black;
    font-weight: bolder;
    border-radius: 0 !important;
}

    .form-control:focus, .form-select:focus {
        color: black;
        background-color: #edeaeaad;
        outline: 0;
        box-shadow: 2px 2px 0 0 #35a93d, 1px -1rem .25rem 0rem rgb(103 189 93 / 15%);
    }    


.big {
    font-size: 22px
}

.li_main {
    padding: 7px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.a_main {
    color: black;
    margin-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.a_main:hover {
    color: #1a7803;
}


.a_main_Flex{
   display:flex;
}


.bg_main {
    background: #7db77d42;
    border-radius: 50%;
    padding: 8px;
    font-family: none;
}

.red_text {
    color: red;
}


@media (max-width:1200px) {

    .SubTitle {
        font-size: 45px;
    }

    .MianTitle {
        font-size: 70px;
    }
}



@media (max-width:991px) {

    .bg_login {
        display: none !important;
    }
}




@media(max-width:768px) {



    .Login_form {
        width: 90%;
    }

    .Back_div {
        gap: 70px;
        width: 100%; 
        flex-direction: column;
    }
}

@media(max-width:576px) {
    .form_small {
        width: 100% !important;
        margin: auto;
    }

    .index_block {
        height: 290px;
    }

    .logo_img {
        width: 250px;
    }

    .Login_form {
        width: 90%;
    }

    .btnlog {
        display: flex;
        margin-top: 12px;
    }

    .errorimg {
        margin-top: -153px;
        width: 501px;
        min-width: 272px;
    }

    .errorText {
        margin-top: -50px !important;
    }

    .iq-navbar-header {
        height: 85px !important;
    }

    .container-fluid.iq-container {
        padding: 14px;
    }

    h1.bold_font {
        font-size: 28px;
    }
    .Back_div {
        gap: 70px;
        width: 100%;
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: block !important;
        flex-basis: unset;
    }

}

[dir=rtl] .navbar-expand-lg .navbar-nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}
a span span {
    color: red;
    float: left;
    margin: 0px !important;
}



.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-blurred {
    text-align: end !important;
}


.ck.ck-editor__editable_inline > :last-child {
    text-align: end;
}


.bi-bell-fill::before {
    content: "\f189";
    font-size: 22px;
}


span#CountNotification {
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    position: relative;
    top: -8px;
    right: 12px;
    color:green;
}


.error {
    color: red;
}


ul.pagination {
    direction: ltr;
}


.page-item.active .page-link {
    background-color: #4ca952;
}

.a_link{
    color:#1a7803;
}

.a_link:hover {
    color: #bb9938e3;
}

label.dropdown-item {
    display: flex;
}

/*******************************/
    .speed-meter-container {
        width: 200px;
        margin: 20px auto;
        text-align: center;
    }

        .speed-meter-container svg {
            width: 100%;
            height: 35px;
        }

    .greenSegment {
        fill: none;
        stroke: green;
        stroke-width: 20;
    }

    .yellowSegment {
        fill: none;
        stroke: yellow;
        stroke-width: 20;
    }

    .orangeSegment {
        fill: none;
        stroke: orange;
        stroke-width: 20;
    }

    .redSegment {
        fill: none;
        stroke: red;
        stroke-width: 20;
    }

    line {
        stroke: black;
        stroke-width: 5;
        stroke-linecap: round;
    }
/*******************************/

    .gradient {
        background: radial-gradient(20% 60% at 50% 50%, #ff1b00 0%, #2c8737 100%) !important;
    }

    img.img-fluid.mb-4.w-50 {
        margin-top: -150px;
    }
/******************************/



.create_btn {
    width: 100%;
    height: 200px;
    text-align: center;
    display: grid;
    justify-content: center;
    align-content: center;
    gap: 30px;
}

.createService_btn {
    width: 100%;
    height: 200px;
    text-align: center;
    display: grid;
    justify-content: center;
    align-content: center;
    gap: 30px;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .file-preview a {
        text-decoration: none;
        margin-right: 10px;
    }

    .file-preview button {
        margin-left: 10px;
    }


.pre{
    white-space:pre-line !important;
}



.pre_normal {
    white-space: normal;
    width:80%;
}


.table-container {
    width: 100%;
    overflow-x: auto; /* horizontal scroll if needed */
    display: block;
}

table {
    width: 100%; /* or min-width: 600px; depending on your needs */
    border-collapse: collapse;
}


.wow-style {
    font-weight: bold;
    font-size: 1.5em;
    color: #fff;
    text-align: center;
    border: 2px solid #ffc107;
    /*background: linear-gradient(45deg, #ff9800, #ff5722);*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color:black
}

.inside-style {
    font-weight: bold;
    font-size: 1.5em;
    color: #fff;
    text-align: center;
    border: 2px solid #4caf50;
    /*background: linear-gradient(45deg, #8bc34a, #4caf50);*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: black
}


.head_title {
    font-size: 24px;
    padding: 18px;
    font-style: oblique;
    border-bottom-style: groove;
}


.label {
    color: black;
    font-style: oblique;
}

label,h1 {
    color: black;
}


.Recommend {
    border: outset;
    padding:3px;
}


.HintIcon{
    display:flex;
    gap:7px
}


.NewReq {
    width: fit-content;
    padding: 4px;
    color: black;
    border: 2px #008c46 solid;
}

.OldReq {
    width: fit-content;
    padding: 4px;
    color: #ffffff;
    color: black;
    border: 2px red solid;
}

.task-row-unread {
    font-weight: bold;
    background-color: #fdf7e6 !important; /* Light Yellow */
}


.pre_des {
    white-space: pre-line;
    width: 50%;
}


.custom-progress {
    width: 100%;
    height: 15px;
    background: #ddd;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.custom-progress-bar {
    height: 100%;
    transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
    border-radius: 6px;
}


.div_buttons {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-content: flex-end;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}


.clickable-row {
    cursor: pointer;
}


.task-row-unread {
    font-weight: bold;
}

.accordion-button.collapsed i.bi-calendar {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-button i.bi-calendar {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.accordion-button {
    font-weight: bold;
    font-size: 1.1rem;
}

/*************notificationList*************/


#notificationList {
    max-height: 300px;
    overflow-y: auto;
    width: 350px;
    scrollbar-width: thin;
    text-align: start;
    scrollbar-color: #ccc transparent;
}

#notificationList::-webkit-scrollbar {
    width: 6px;
}
#notificationList::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}
#notificationList li:hover {
    background-color: #f8f9fa;
}
.notification-item {
    transition: background 0.3s ease;
    font-size:10px
}
.notification-item:hover {
    background-color: #e9ecef;
    text-decoration: none;
}
/****************************************/


i.bi.bi-person-fill, i.bi.bi-person-fill-add, i.bi.bi-building-fill-add {
    color: darkslateblue;
}


.border_green {
    border: 1px green solid;
}

i.bi.bi-list-task {
    color: white;
    font-size: 20px;
}

.notification-bold{
    font-size:11px
}

a.btn.btn-outline-light.btn-sm.d-flex.align-items-center.gap-1 {
    border: unset;
    padding: 0;
}

span#notificationCount {
    color: green;
}


.samll_font{
font-size:10px
}

/* ضغط البايجنيشن وعدم التزحلق */
.pagination.pagination-sm .page-link {
    padding: .2rem .45rem;
    min-width: 32px;
    text-align: center;
    line-height: 1.2;
}

.pagination.flex-wrap {
    row-gap: .25rem;
}
/* جدول متجاوب بدون سكرول للصفحة كاملة */
.table-responsive {
    overflow-x: auto;
}
/* لو بدك تمنع تمدد الأعمدة الطويلة */
.table td, .table th {
    white-space: nowrap;
}
/* اسم العميل ممكن يلفّ سطرين بدل ما يوسّع العرض */
td.text-center:nth-child(3) {
    white-space: normal;
}

:root {
    /* 🎨 ألوان السماحة — عدّلها لو حابب */
    --sama-green: #0ea44b;
    --sama-green-600: #0b8e41;
    --sama-green-400: #17b957;
    --sama-red: #e53935;
    --ink: #13212e;
    --muted: #6b7280;
    --card: #ffffff;
    --border: rgba(0,0,0,.06);
    --shadow: 0 10px 30px rgba(2,6,23,.10);
    --radius: 18px;
}

.sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.65) 100%);
    backdrop-filter: blur(8px);
    border-inline-end: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sidebar-header {
    padding: 10px 12px;
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
    background: var(--sama-green);
    box-shadow: 0 6px 16px rgba(14,164,75,.35);
    transition: .2s ease;
}

    .sidebar-toggle:hover {
        filter: brightness(1.03);
        transform: translateX(-1px);
    }

/* عنوان "لوحة التحكم" */
#sidebar-menu .nav-item > .nav-link.active,
#sidebar-menu .nav-item > .nav-link[aria-current="page"] {
    color: #fff !important;
    background: var(--sama-green) !important;
}

/* Group header */
#sidebar-menu > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 14px;
    margin: 8px 10px;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    transition: .22s ease;
    position: relative;
}

    #sidebar-menu > .nav-item > .nav-link:hover {
        border-color: rgba(14,164,75,.3);
        box-shadow: 0 8px 20px rgba(14,164,75,.12);
        transform: translateY(-1px);
    }

#sidebar-menu .NumBar {
    min-width: 20px;
    height: 19px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    /* padding-inline: 7px; */
    /* font-weight: 700; */
    font-size: 12px;
    color: #fff;
    background: linear-gradient(180deg, var(--sama-green-400), var(--sama-green));
    box-shadow: 0 6px 14px rgba(14, 164, 75, .35);
    margin-right: 0px;
    /* border: 1px solid rgba(255, 255, 255, .5); */
}

#sidebar-menu .g-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--sama-green) 0%, var(--sama-green-400) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
    margin-right: -7px;
}

#sidebar-menu .group-toggle .right-icon {
    margin-inline-start: auto;
    transition: transform .22s ease;
    color: var(--sama-green-600);
}

#sidebar-menu .group-toggle[aria-expanded="true"] .right-icon {
    transform: rotate(90deg);
}

/* قائمة العناصر داخل المجموعة */
.sub-nav {
    margin: 6px 12px 14px 12px;
    padding: 8px;
    border-inline-start: 2px dashed rgba(14,164,75,.22);
}

.li_main {
    list-style: none;
}

.a_main {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 6px 6px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid transparent;
    transition: .18s ease;
    background: #fff;
}

    .a_main .HintIcon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        color: var(--sama-green-600);
        background: #fff;
        border: 1px solid var(--border);
    }

    .a_main:hover {
        background: linear-gradient(90deg, rgba(14,164,75,.06), rgba(14,164,75,.03));
        border-color: rgba(14,164,75,.28);
        transform: translateX(2px);
    }

    .a_main.active {
        color: #0b172a;
        background: linear-gradient(90deg, rgba(14,164,75,.18), rgba(23,185,87,.12));
        border-color: rgba(14,164,75,.55);
        box-shadow: 0 8px 20px rgba(14,164,75,.18);
    }

        .a_main.active .HintIcon {
            color: #fff;
            background: linear-gradient(135deg, var(--sama-green), var(--sama-green-400));
            border-color: transparent;
        }

/* Badges بالأحمر */
.count_num {
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--sama-red);
    box-shadow: 0 6px 16px rgba(229,57,53,.35);
}

/* Scrollbars */
.sidebar-body .data-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(14,164,75,.35) transparent;
}

    .sidebar-body .data-scrollbar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar-body .data-scrollbar::-webkit-scrollbar-thumb {
        background: rgba(14,164,75,.35);
        border-radius: 999px;
    }

/* Mini mode */
.sidebar.mini {
    width: 86px;
    overflow: hidden;
}

    .sidebar.mini .item-name, .sidebar.mini .NumBar {
        display: none;
    }

    .sidebar.mini .sub-nav {
        padding-inline: 0;
        border: none;
    }

    .sidebar.mini .a_main {
        grid-template-columns: 40px;
        justify-content: center;
    }

.a_main.active {
    border-inline-start: 4px solid var(--sama-red);
    padding-inline-start: 10px;
}
/* RTL داخل عناصر القائمة فقط */
.a_main,
.sub-nav,
#sidebar-menu > .nav-item > .nav-link {
    direction: rtl;
    text-align: right;
}

/* تخطيط الأيقونة – العنوان – الشارة */
.a_main {
    display: grid;
    grid-template-columns: 34px 1fr auto; /* أيقونة | عنوان | شارة */
    align-items: center;
    gap: 10px;
    min-height: 46px;
}

    /* العنوان: افتراضي سطرين بقطع أنيق */
    .a_main .title {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* ← سطرين */
        -webkit-box-orient: vertical;
        line-height: 1.3;
        max-height: calc(1.3em * 2); /* يضمن ارتفاع مناسب لسطرين */
        text-wrap: pretty; /* تحسين توزيع الكلمات (مدعوم حديثاً) */
        word-break: break-word;
    }

        /* خيار بديل: سطر واحد مع ... (لو حاب وضع “مضغوط”) */
        /* فعّل الكلاس title--1line على العنوان بدل الافتراضي */
        .a_main .title.title--1line {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            max-height: none;
        }

/* تحسين مظهر العناوين الطويلة داخل عناوين المجموعات أيضاً */
#sidebar-menu > .nav-item > .nav-link .item-name {
    display: flex;
    align-items: center;
    gap: -1px;
    padding: 17px -9px;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--card);
    /* border: 1px solid var(--border); */
    transition: .22s ease;
    position: relative;
    justify-content: flex-start;
    margin-right: -8px;
    font-size: 13px;
}

/* ثبات الشارة على طرف السطر (بـ RTL الطرف يكون اليسار بصرياً) */
.a_main .count_num {
    margin-inline-start: 8px; /* مسافة صغيرة بين النص والشارة */
}

/* الأيقونة تبقى بحجم ثابت وما “تزحلق” التخطيط */
.a_main .HintIcon {
    flex: 0 0 34px;
}

/* مسافات داخل بطاقات المجموعة عشان العنوان ما يلزق بالحواف */
#sidebar-menu > .nav-item > .nav-link {
    padding-inline: 14px;
}

img.img-fluid.mb-4.errorimg {
    width: 400px !important;
}


.dot-indicator {
    display: inline-block;
    width: 10px;
    height: 10px
}

.pre {
    white-space: pre-wrap
}

.task-row-unread {
    font-weight: 600
}

/* بانِل نتائج البحث */
.global-search-wrap {
    position: relative
}

.global-search-panel {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    z-index: 1050;
    background: #fff;
    border: 1px solid rgba(0,0,0,.125);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    width: 100%;
    max-height: 360px;
    overflow: auto;
    display: none;
    border-radius: .5rem;
}

.global-search-item {
    padding: .5rem .75rem;
    cursor: pointer
}

    .global-search-item:hover {
        background: #f8f9fa
    }

.global-search-empty {
    padding: .75rem;
    color: #6c757d;
    text-align: center
}

.hl-row {
    animation: rowflash 1.2s ease 1
}


:root {
    --late-bg: #ffe5e5; /* أحمر فاتح */
    --late-border: #dc3545; /* أحمر */
    --soon-bg: #fff4e5; /* برتقالي فاتح */
    --soon-border: #fd7e14; /* برتقالي */
    --today-bg: #e8f4ff; /* سماوي فاتح */
    --today-border: #0d6efd; /* أزرق */
    --done-bg: #e9f7ef; /* أخضر فاتح */
    --done-border: #198754; /* أخضر */
    --ontrack-bg: #f8f9fa; /* رمادي خفيف */
    --ontrack-border: #6c757d; /* رمادي */
}

/* شريط التوضيح المثبّت */
.legend-sticky {
    position: sticky;
    top: 8px; /* عدّلها حسب الهيدر/النافبار */
    z-index: 11;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    padding: .5rem .75rem;
    margin-bottom: .75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* علامات اللون للصفوف */
.tr-late {
    background: var(--late-bg) !important;
    border-inline-start: 6px solid var(--late-border);
}

.tr-soon {
    background: var(--soon-bg) !important;
    border-inline-start: 6px solid var(--soon-border);
}

.tr-today {
    background: var(--today-bg) !important;
    border-inline-start: 6px solid var(--today-border);
}

.tr-done {
    background: var(--done-bg) !important;
    border-inline-start: 6px solid var(--done-border);
}

.tr-ontrack {
    background: var(--ontrack-bg) !important;
    border-inline-start: 6px solid var(--ontrack-border);
}

/* نص الوقت المتبقي */
.time-neg {
    color: #dc3545;
    font-weight: 600;
}
/* متأخر */
.time-soon {
    color: #fd7e14;
    font-weight: 600;
}
/* قريب الانتهاء */
.time-today {
    color: #0d6efd;
    font-weight: 600;
}
/* ينتهي اليوم */

/* نبض خفيف للمتأخر جدًا */
.tr-late.pulse {
    animation: pulseLate 1.2s infinite;
}

@keyframes pulseLate {
    0% {
        box-shadow: 0 0 0 0 rgba(220,53,69,.25);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220,53,69,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220,53,69,0);
    }
}

