body.anan-admin-theme .bootstrap-select .dropdown-menu li.selected a span.check-mark::before{
    font-family: "Font Awesome 5 Free"; /* إذا كنت تستخدم Font Awesome */
    content: "\f00c"; /* أيقونة الصح (check) */
    font-weight: 900;
    margin-right: 10px;
    color: #28a745; /* لون أخضر أو أي لون يناسبك */
}

/* توسيع عمود السعر في جدول عرض السعر - بقوة! */
body.anan-admin-theme.proposals .proposal-form .estimate-items-table td.rate,
body.anan-admin-theme.proposals .proposal-form .estimate-items-table th.rate,
body.anan-admin-theme.proposals .proposal-form .table.items td.rate,
body.anan-admin-theme.proposals .proposal-form .table.items thead tr th.rate,
body.anan-admin-theme.invoices .estimate-items-table td.rate,
body.anan-admin-theme.estimates .estimate-items-table td.rate,
body.anan-admin-theme.proposals .estimate-items-table td.rate,
body.anan-admin-theme.credit_notes .estimate-items-table td.rate,
body.anan-admin-theme.invoices .estimate-items-table th.rate,
body.anan-admin-theme.estimates .estimate-items-table th.rate,
body.anan-admin-theme.proposals .estimate-items-table th.rate,
body.anan-admin-theme.credit_notes .estimate-items-table th.rate,
body.anan-admin-theme.invoices .table.items td.rate,
body.anan-admin-theme.estimates .table.items td.rate,
body.anan-admin-theme.proposals .table.items td.rate,
body.anan-admin-theme.credit_notes .table.items td.rate,
body.anan-admin-theme.invoices .table.items thead tr th.rate,
body.anan-admin-theme.estimates .table.items thead tr th.rate,
body.anan-admin-theme.proposals .table.items thead tr th.rate,
body.anan-admin-theme.credit_notes .table.items thead tr th.rate,
body.anan-admin-theme.invoices table.estimate-items-table td.rate,
body.anan-admin-theme.estimates table.estimate-items-table td.rate,
body.anan-admin-theme.proposals table.estimate-items-table td.rate,
body.anan-admin-theme.credit_notes table.estimate-items-table td.rate,
body.anan-admin-theme.invoices table.estimate-items-table th.rate,
body.anan-admin-theme.estimates table.estimate-items-table th.rate,
body.anan-admin-theme.proposals table.estimate-items-table th.rate,
body.anan-admin-theme.credit_notes table.estimate-items-table th.rate{
    min-width: 220px !important;
    width: 28% !important;
    max-width: none !important;
}

body.anan-admin-theme.proposals .proposal-form .estimate-items-table td.rate input,
body.anan-admin-theme.proposals .proposal-form .table.items td.rate input,
body.anan-admin-theme.invoices .estimate-items-table td.rate input,
body.anan-admin-theme.estimates .estimate-items-table td.rate input,
body.anan-admin-theme.proposals .estimate-items-table td.rate input,
body.anan-admin-theme.credit_notes .estimate-items-table td.rate input,
body.anan-admin-theme.invoices .table.items td.rate input,
body.anan-admin-theme.estimates .table.items td.rate input,
body.anan-admin-theme.proposals .table.items td.rate input,
body.anan-admin-theme.credit_notes .table.items td.rate input,
body.anan-admin-theme.invoices table.estimate-items-table td.rate input,
body.anan-admin-theme.estimates table.estimate-items-table td.rate input,
body.anan-admin-theme.proposals table.estimate-items-table td.rate input,
body.anan-admin-theme.credit_notes table.estimate-items-table td.rate input,
body.anan-admin-theme.invoices td.rate input[name*="rate"],
body.anan-admin-theme.estimates td.rate input[name*="rate"],
body.anan-admin-theme.proposals td.rate input[name*="rate"],
body.anan-admin-theme.credit_notes td.rate input[name*="rate"]{
    min-width: 200px !important;
    width: 100% !important;
    font-size: 16px !important;
    padding: 10px 15px !important;
    font-weight: 600 !important;
}

/* تقليل حجم الأعمدة الأخرى لإعطاء مساحة أكبر للسعر */
body.anan-admin-theme.invoices .estimate-items-table th:nth-child(6),
body.anan-admin-theme.estimates .estimate-items-table th:nth-child(6),
body.anan-admin-theme.proposals .estimate-items-table th:nth-child(6),
body.anan-admin-theme.credit_notes .estimate-items-table th:nth-child(6),
body.anan-admin-theme.invoices .estimate-items-table td:nth-child(6),
body.anan-admin-theme.estimates .estimate-items-table td:nth-child(6),
body.anan-admin-theme.proposals .estimate-items-table td:nth-child(6),
body.anan-admin-theme.credit_notes .estimate-items-table td:nth-child(6),
body.anan-admin-theme.invoices .table.items th:nth-child(6),
body.anan-admin-theme.estimates .table.items th:nth-child(6),
body.anan-admin-theme.proposals .table.items th:nth-child(6),
body.anan-admin-theme.credit_notes .table.items th:nth-child(6),
body.anan-admin-theme.invoices .table.items td:nth-child(6),
body.anan-admin-theme.estimates .table.items td:nth-child(6),
body.anan-admin-theme.proposals .table.items td:nth-child(6),
body.anan-admin-theme.credit_notes .table.items td:nth-child(6){
    max-width: 110px !important;
    width: 12% !important;
}

body.anan-admin-theme.invoices .estimate-items-table th:nth-child(7),
body.anan-admin-theme.estimates .estimate-items-table th:nth-child(7),
body.anan-admin-theme.proposals .estimate-items-table th:nth-child(7),
body.anan-admin-theme.credit_notes .estimate-items-table th:nth-child(7),
body.anan-admin-theme.invoices .estimate-items-table td:nth-child(7),
body.anan-admin-theme.estimates .estimate-items-table td:nth-child(7),
body.anan-admin-theme.proposals .estimate-items-table td:nth-child(7),
body.anan-admin-theme.credit_notes .estimate-items-table td:nth-child(7),
body.anan-admin-theme.invoices .table.items th:nth-child(7),
body.anan-admin-theme.estimates .table.items th:nth-child(7),
body.anan-admin-theme.proposals .table.items th:nth-child(7),
body.anan-admin-theme.credit_notes .table.items th:nth-child(7),
body.anan-admin-theme.invoices .table.items td:nth-child(7),
body.anan-admin-theme.estimates .table.items td:nth-child(7),
body.anan-admin-theme.proposals .table.items td:nth-child(7),
body.anan-admin-theme.credit_notes .table.items td:nth-child(7){
    max-width: 90px !important;
    width: 8% !important;
}

/* اصلاح عداد الاشعارات (الكاونتر) */
body.anan-admin-theme #header,
body.anan-admin-theme #header > nav,
body.anan-admin-theme #header > nav > div{
    overflow: visible !important;
}

/* اصلاح عرض الاشعارات - اظهار النص كاملا */
body.anan-admin-theme .dropdown-menu.notifications .media-body{
    overflow: visible;
    width: auto;
    display: block;
}

body.anan-admin-theme .dropdown-menu.notifications .notification-title{
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    line-height: 1.5;
}

body.anan-admin-theme .dropdown-menu.notifications .notification-box{
    display: flex;
    align-items: flex-start;
}

body.anan-admin-theme .dropdown-menu.notifications .notification-box img{
    flex-shrink: 0;
}

body.anan-admin-theme .notifications.width400{
    width: 450px !important;
}

@media (max-width: 768px) {
    body.anan-admin-theme .notifications.width400{
        width: 340px !important;
    }
}

/* تقليل عمود الوصف الطويل */
body.anan-admin-theme.invoices .estimate-items-table th:nth-child(3),
body.anan-admin-theme.estimates .estimate-items-table th:nth-child(3),
body.anan-admin-theme.proposals .estimate-items-table th:nth-child(3),
body.anan-admin-theme.credit_notes .estimate-items-table th:nth-child(3),
body.anan-admin-theme.invoices .estimate-items-table td:nth-child(3),
body.anan-admin-theme.estimates .estimate-items-table td:nth-child(3),
body.anan-admin-theme.proposals .estimate-items-table td:nth-child(3),
body.anan-admin-theme.credit_notes .estimate-items-table td:nth-child(3),
body.anan-admin-theme.invoices .table.items th:nth-child(3),
body.anan-admin-theme.estimates .table.items th:nth-child(3),
body.anan-admin-theme.proposals .table.items th:nth-child(3),
body.anan-admin-theme.credit_notes .table.items th:nth-child(3),
body.anan-admin-theme.invoices .table.items td:nth-child(3),
body.anan-admin-theme.estimates .table.items td:nth-child(3),
body.anan-admin-theme.proposals .table.items td:nth-child(3),
body.anan-admin-theme.credit_notes .table.items td:nth-child(3){
    max-width: 180px !important;
    width: 18% !important;
}

/* تثبيت أيقونات الهيدر في صف واحد عند تصغير الشاشة */
body.anan-admin-theme #header nav > .tw-flex{
    flex-wrap: nowrap;
    align-items: center;
}

body.anan-admin-theme #header nav > .tw-flex > .tw-flex{
    min-width: 0;
}

body.anan-admin-theme #header .navbar-right{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

body.anan-admin-theme #header .navbar-right > li{
    float: none;
}

body.anan-admin-theme #top_search{
    min-width: 0;
}

body.anan-admin-theme #top_search input{
    width: 100%;
}

@media (max-width: 1200px) {
    body.anan-admin-theme #top_search{
        max-width: 260px;
    }
}

@media (max-width: 992px) {
    body.anan-admin-theme #top_search{
        max-width: 200px;
    }
}

/* Project view header + actions layout refresh */
body.anan-admin-theme.projects ._buttons{
    background: #ffffff;
    border: 1px solid rgba(242, 101, 41, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

body.anan-admin-theme.projects ._buttons > .row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0;
    direction: rtl;
}

body.anan-admin-theme.projects ._buttons > .row > [class*="col-"]{
    padding-left: 0;
    padding-right: 0;
}

/* إلغاء عرض أعمدة Bootstrap الثابت عشان الفلكس يتحكم في الترتيب */
body.anan-admin-theme.projects ._buttons > .row > .text-right,
body.anan-admin-theme.projects ._buttons > .row > .project-more-actions-row{
    width: auto;
    max-width: none;
    float: none;
}
body.anan-admin-theme.projects ._buttons > .row > .project-heading{
    width: 100%;
    float: none;
}

body.anan-admin-theme.projects ._buttons .project-heading{
    flex: 1 1 100%;
    direction: rtl;
    text-align: right;
}

body.anan-admin-theme.projects ._buttons .project-heading .tw-flex{
    flex-wrap: wrap;
    gap: 8px 10px;
}

body.anan-admin-theme.projects ._buttons .project-heading #project_view_name{
    max-width: 420px;
    min-width: 220px;
}

body.anan-admin-theme.projects ._buttons .project-heading .bootstrap-select .dropdown-toggle{
    border-radius: 999px;
    padding: 7px 14px;
}

body.anan-admin-theme.projects ._buttons .project-heading .bootstrap-select .dropdown-toggle .filter-option,
body.anan-admin-theme.projects ._buttons .project-heading .bootstrap-select .filter-option-inner-inner{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.anan-admin-theme.projects ._buttons .project-heading .project_status{
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-weight: 600;
}

body.anan-admin-theme.projects ._buttons .project-more-actions-row{
    flex: 0 0 auto;
    order: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    margin-top: 10px;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
    position: relative;
    z-index: 30;
}

body.anan-admin-theme.projects ._buttons .project-more-actions{
    position: relative;
    z-index: 30;
}

body.anan-admin-theme.projects ._buttons .project-more-actions.open{
    z-index: 1060;
}

body.anan-admin-theme.projects ._buttons .project-more-actions .project-actions{
    direction: rtl;
    left: auto;
    right: 0;
    text-align: right;
    z-index: 1061;
}

body.anan-admin-theme.projects ._buttons .text-right{
    flex: 0 1 auto;
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-start !important;
    text-align: right !important;
    float: none !important;
    direction: rtl;
    margin-right: 0;
    margin-left: 0;
    overflow: visible;
    white-space: nowrap;
    padding-bottom: 4px;
}

body.anan-admin-theme.projects.rtl ._buttons .text-right{
    justify-content: flex-start !important;
    text-align: right !important;
    direction: rtl;
    margin-right: 0;
    margin-left: 0;
}

body.anan-admin-theme.projects ._buttons .text-right .btn,
body.anan-admin-theme.projects ._buttons .text-right .btn-group{
    flex: 0 0 auto;
}

body.anan-admin-theme.projects ._buttons .text-right .btn-group{
    order: 50;
    position: relative;
    z-index: 20;
}

body.anan-admin-theme.projects ._buttons .text-right .btn-group.open{
    z-index: 1060;
}

body.anan-admin-theme.projects ._buttons .text-right .project-actions{
    direction: rtl;
    left: auto;
    right: 0;
    text-align: right;
    z-index: 1061;
}

body.anan-admin-theme.projects ._buttons .text-right a[onclick*="new_task_from_relation"]{
    order: -10;
}

body.anan-admin-theme.projects ._buttons .text-right::-webkit-scrollbar{
    height: 6px;
}

body.anan-admin-theme.projects ._buttons .text-right::-webkit-scrollbar-thumb{
    background: rgba(242, 101, 41, 0.3);
    border-radius: 999px;
}

body.anan-admin-theme.projects ._buttons .text-right .btn{
    border-radius: 999px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

body.anan-admin-theme.projects ._buttons .text-right .btn i{
    font-size: 13px;
}

@media (max-width: 768px) {
    body.anan-admin-theme.projects ._buttons{
        padding: 10px 12px;
    }

    body.anan-admin-theme.projects ._buttons .project-heading #project_view_name{
        max-width: 100%;
        min-width: 0;
    }

    body.anan-admin-theme.projects ._buttons .text-right{
        padding-bottom: 6px;
    }
}

/* Dashboard invoice totals */
body.anan-admin-theme.dashboard #invoices_total{
    width: 100%;
    clear: both;
    direction: rtl;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-analytics-toolbar{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 14px;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-analytics-toolbar__item{
    flex: 0 0 auto;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-analytics-live{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-live-stat{
    min-width: 0;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px 16px;
    text-align: right;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body.anan-admin-theme.dashboard #invoices_total .invoice-live-stat__label{
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-live-stat__value{
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-live-stat--due{
    border-top: 3px solid #f59e0b;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-live-stat--overdue{
    border-top: 3px solid #ef4444;
}

body.anan-admin-theme.dashboard #invoices_total .invoice-live-stat--paid{
    border-top: 3px solid #22c55e;
}

@media (max-width: 991px) {
    body.anan-admin-theme.dashboard #invoices_total .invoice-analytics-live{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.anan-admin-theme.dashboard #invoices_total .invoice-analytics-live{
        grid-template-columns: 1fr;
    }

    body.anan-admin-theme.dashboard #invoices_total .invoice-live-stat{
        padding: 12px 14px;
    }
}
