@font-face {
    font-family: 'qomra';
    src: url('/assets/moi_style/fonts/qomra-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root,
[data-theme=light] {
    --bg-color: #edebe0;
    --text-color: #054239;
    --heading-color: #002623;
    --text-muted: #054239;
    --text-natural: #054239;
    --text-light: #428177;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.widget-title {
    font-family: 'qomra-bold';
}

.page-head {
    background-color: transparent;
}

.navbar .nav-link {
    color: var(--bg-color);
}

.notifications-icon svg {
    stroke: var(--bg-color) !important;
}

.navbar-brand>* {
    color: #b9a779;
}

.navbar-toggler {
    border-color: #b9a779;
}

.navbar-toggler use {
    fill: #b9a779;
}

.navbar-collapse.collapse.show {
    background-color: #fff;
    z-index: 999;
}


body {
    font-family: 'qomra' !important;
}

.navbar-home img {
    max-height: 110px;
}

.navbar {
    height: 100px;
    background-image: url(https://moi-mis.gov.sy/assets/moi_style/icons/pattern.svg);
    background-size: 400px;
    background-blend-mode: multiply;
    background-color: #054239f0;
}

#navbar-breadcrumbs a:hover {
    text-decoration: none;
    color: #edebe0;
}

#navbar-breadcrumbs a {
    margin-right: 10px;
    color: #b9a779;
}

html[dir=rtl] .active-users-list {
    left: 0 !important;
    right: auto !important;
}

@media (max-width: 500px) {
    .notifications-icon svg {
        width: 26px;
        height: 26px;
    }


    :root {
        --text-tiny: 14px;
        --text-2xs: 14px;
        --text-xs: 14px;
        --text-sm: 16px;
        --text-md: 16px;
        --text-base: 18px;
        --text-lg: 18px;
        --text-xl: 18px
    }
}

.splash {
    background-image: url("/assets/moi_style/icons/eagle.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
}

.splash img {
    display: none;
}

.report-summary {
    background-color: #aee7bb;
}



[data-doctype="Web Form"] .container {
    margin-top: 0 !important;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

[data-doctype="Web Form"] .web-form-banner-image {
    margin: 0 !important;
    object-position: top;
}


[data-doctype="Web Form"] .web-form-header {
    margin-top: 0;
}

.fa.fa-user.fa-lg.fa-fw {
    color: var;
    color: var(--bg-color);
}

@media (min-width: 530px) {
    [data-doctype="Web Form"] .web-form-banner-image {
        object-fit: contain !important;
        object-position: top;
        height: auto !important;
    }

}

[data-doctype="Web Form"] .page-content-wrapper .container .page_content .web-form .web-form-wrapper .form-column .frappe-control {
    position: relative;
    background-color: white;
}

.right-area {
    display: flex;
    justify-content: flex-end;
    gap: 19px;
}

.submit-btn {
    background: #007A3D;
    color: white;
    border-radius: 5px;
    transition: all 0.3s;
}

[data-path="technical-support/new"] nav {
    display: none;
}

[data-path="press/my-profile/new"] .input-with-feedback {
    padding-right: 30px;
}

[data-path="press/my-profile/new"] .row-index {
    overflow: hidden;
}

[data-path="press/my-profile/new"] .control-input-wrapper {
    height: auto;
}

[data-path="login"] .navbar {
    display: none;
}

[data-path="login"] .page-footer {
    display: none;
}

#page-login>.page-content-wrapper>.container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    flex-wrap: wrap;
    filter: drop-shadow(6px 6px 7px black);
    overflow: hidden;
}

#page-login>.page-content-wrapper>.container>* {
    flex-basis: 200px;
    flex-grow: 1;
}

#page-login .page-header-wrapper {
    background-color: var(--text-natural);
    background-image: url(/files/eagle-design.webp);
    background-size: cover;
    background-position: center;
    border-radius: 0 15px 15px 0;
    transition: transform 1s;
}

#page-login .page-header-wrapper:hover {
    transform: scale(1.1);
}

#page-login .page_content {
    background-color: #fff !important;
    border-radius: 15px 0 0 15px;
    padding-bottom: 3rem;
}

#page-login .page-content-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
}

#page-login .button {
    background-color: var(--bg-);
}

#page-login .btn {
    background-color: var(--text-natural);
    color: #fff;
    height: 40px;
}

#login_email,
#login_password {
    height: 40px;
    font-size: 1rem;
}

#login_email+svg,
#login_password+svg {
    height: 27px !important;
}

#page-login .toggle-password {
    margin-top: 8px;
}


#page-login .btn-login-with-email-link {
    align-items: center;
}

#login_email:hover,
#login_password:hover {}

#page-login .email-field:hover,
#page-login .password-field:hover,
#page-login .btn:hover {
    filter: drop-shadow(2px 4px 6px black);
}

#page-login .email-field,
#page-login .password-field,
#page-login .btn:hover {
    transition: filter .5s;
}

#page-login .page-card-head {
    padding: 0 22px;
}

@media (max-width: 750px) {
    #page-login .page-header-wrapper {
        display: none;
    }

    #page-login .page_content {
        border-radius: 15px;
    }
}

/* --- New Design ---*/
header.navbar {
    background: #ffffff;
    height: 53px;
    position: relative;
}

.app-logo {
    max-width: 65px;
    margin-right: 0px;
}


.btn-reset.nav-link {
    color: #054239;
}

.nav-link:hover .es-icon,
.nav-link:focus .es-icon {
    transform: translateY(-1px);
    transition: transform 0.15s ease, color 0.15s ease;
    color: #111827;
}

.layout-main-section .es-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.layout-main-section .es-line {
    stroke: #054239;
    fill: none;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .icon-sm {
        width: 18px;
        height: 18px;
    }
}

.layout-side-section {
    background-color: #054239;
}

span.section-title {
    color: white;
    font-weight: bold;
}

.desk-sidebar-item a {
    position: relative;
    color: #fff !important;
    left: 0;
    transition: left 0.5s, color 0.2s ease;
}

.desk-sidebar-item.selected a {
    color: #020a04 !Important;
}

.desk-sidebar-item a:hover {
    left: 30px;
    color: #054239 !important;
}


.standard-sidebar-section .icon {
    fill: white;
}

.standard-sidebar-item:hover .icon {
    fill: #054239 !important;
}

/* ---------- Form & Inputs ---------- */
.form-control {
    background-color: #c7c096bf;
}

/* ---------- Text & Labels ---------- */
span.fa.fa-user.fa-lg.fa-fw {
    color: #054239;
}


.desk-sidebar-item:has(button.drop-icon.show-in-edit-mode:hover) .sidebar-item-label {
    color: #054239;
    transition: color 0.2s ease;
}


#body .page-head {
    background-color: transparent;
    width: 100%;

}

#body .page-head .title-text {
    color: #054239;
}

.page-body {
    max-width: initial !important;
    width: 100% !important;
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
    .app-logo {
        margin-inline-start: 265px;
    }

    .layout-side-section {
        flex-basis: 262px;
        max-width: 260px;
    }

    [data-page-route=Workspaces] .layout-main {
        height: 100vh;
    }

    #body .page-head {
        margin-inline-start: 262px;
        width: calc(100vw - 280px);
    }

    #body .page-head .container {
        max-width: initial;
    }

    .layout-side-section {
        flex-basis: 262px;
        max-width: 256px;
        margin-top: -1px;
    }

}


body.dark-mode header.navbar {
    background-color: #111827;
}

body.dark-mode .desk-sidebar-item a {
    color: #054239;
}

body.dark-mode .desk-sidebar-item:has(button.drop-icon.show-in-edit-mode:hover) .sidebar-item-label {
    color: #054239;
}

body.dark-mode .es-icon {
    color: #054239;
}

.navbar .app-logo {
    position: relative;
}

.navbar .navbar-brand {
    margin-right: 0;
}

.avatar-frame {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #054239;

}

.notifications-icon svg {
    stroke: #054239 !important;
}

.navbar>.container {
    max-width: inherit;
    padding-right: 40px;
}

.page-head .container {
    max-width: 100%;
}

.standard-sidebar-item .es-icon {
    stroke: #f3f3f3;
}

.standard-sidebar-item:hover .es-icon {
    stroke: #054239;
}

.layout-side-section,
.layout-side-section a,
.layout-side-section .text-muted {
    color: #efeee5;
}

.layout-side-section svg {
    stroke: #efeee5;
}

.overlay-sidebar {
    background-color: #054239 !important;
}

.dropdown-menu a {
    color: #054239;
}

.es-line-notifications-unseen path:last-child {
    fill: red;
}

.navbar-brand {
    display: grid !important;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 15px;
    text-decoration: none !important;
}

.app-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    max-height: 50px;
    border-inline-end: 3px solid #421A2A;
    padding-inline-end: 15px;
}

.navbar-brand::before {
    content: "وزارة الإعلام";
    grid-column: 3;
    grid-row: 1;
    font-family: 'qomra-bold', sans-serif !important;
    color: #cfc8a0 !important;
    font-size: 19px;
    line-height: 1.2;
    white-space: nowrap;
}

.navbar-brand::after {
    content: "Ministry of Information";
    grid-column: 3;
    grid-row: 2;
    font-family: 'qomra', sans-serif !important;
    color: #b9a779 !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.navbar-brand {
    display: grid !important;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    column-gap: 15px;
    text-decoration: none !important;
}



.navbar-brand::after {
    content: "Ministry of Information";
    grid-column: 3;
    grid-row: 2;
    font-family: 'qomra', sans-serif !important;
    color: #b9a779 !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

@media (max-width: 500px) {
    .app-logo {
        border-inline-end-width: 2px;
        padding-inline-end: 10px;
    }

    .navbar-brand {
        column-gap: 10px;
    }
}


.layout-side-section {
    margin-top: 0;
}


/* Rouaa Cards */


.block-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    gap: 30px;
    justify-content: center;
    width: 70%;
}

.block-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.8);
    border: 1px solid #054239;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block-card-header {
    background: linear-gradient(135deg,
            #1a3c3c 0%,
            #2a5c5c 50%,
            #0a2c2c 100%);
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
    padding: 12px 22px;
}

.block-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
}

.block-main-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0.0.0.0.3);
    border: 2px solid #b89555;
    border-radius: 10px 10px 25px 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ضمان ظهور الأيقونات */
.block-main-icon i {
    font-size: 28px;
    color: #d4af37 !important;
    font-weight: 900 !important;
    /* مهم جداً لـ FontAwesome */
}

.block-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.block-header-text h2 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.block-header-text p {
    font-size: 13px;
    opacity: 0.8;
    color: white;
}

.block-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.block-menu-item {
    background: linear-gradient(to bottom, #fdfdfd, #f2f2f2);
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #d4af37;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* تأثير عند التحويم */
.block-menu-item:hover {
    border-color: #d4af37;
    /* لون ذهبي أفتح */
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* تأثير بريق ذهبي */
.block-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 175, 55, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.block-menu-item:hover::before {
    left: 100%;
}

/* تغيير لون الأيقونة */
.block-menu-item .menu-icon {
    color: #1a3c3c;

}

.block-item-icon {
    width: 35px;
    height: 35px;
    background: #1a3c3c;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #7d6b41;
}

.block-item-icon i {
    color: white;
    font-size: 16px;
    font-weight: 900 !important;
    /* مهم جداً لـ FontAwesome */
}

.block-label {
    flex-grow: 1;
    font-weight: 600;
    color: #333;
}

.block-arrow {
    color: #b89555;
    font-size: 14px;
    font-weight: 900;
}

.block-card-header {
    background: #054239 !important;
}

.block-container {
    margin: 10px 0;
    justify-content: start;
}

.page-container {
    background-image: url("https://moi-mis.gov.sy/files/Background%20texture.svg");
    background-repeat: repeat;
    background-size: 350px;
    background-position: center;
    background-color: #ffffff;
}

.layout-side-section {
    background-color: #f3f3f3 !important;
    padding-top: 1px;
    border-right: 1px solid #F7F6F3;
}

.desk-sidebar-item a {
    color: #000000 !important;
    font-size: 15px;
    padding: 12px 16px;
    margin: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.desk-sidebar-item a:hover {

    background-color: #ffffff;

    color: #111827 !important;

}

.desk-sidebar-item.selected a {
    background-color: #054239 !important;
    color: #ffffff !important;
}


.desk-sidebar-item .icon {

    width: 20px;

    height: 20px;

}



.desk-sidebar-item a {

    left: 0 !important;

}

.standard-sidebar-item .es-icon {
    stroke: #054239;
}

header.navbar {
    background: #ffffff;
    height: 32px;
    position: relative;
}

.layout-side-section .standard-sidebar-label {

    color: #054239;

    font-weight: bold;

    padding: 10px 20px 5px;

}

.layout-side-section {
    /* margin-top: -116px; */
}

::-webkit-scrollbar-thumb {

    background: #cbd5e1;

    border-radius: 3px;

}

.desk-sidebar.list-unstyled.sidebar-menu {
    background-color: #F7F6F3;
}

header.navbar {
    background: #ffffff;
    height: 52px;
    position: relative;
}

.desk-sidebar-item a {
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: 0;
}

header.navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

****************

/* --- General Page Reset & Typography --- */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fcfcfc;
    /* Light clean background */
    background-image: radial-gradient(#000000 1px, transparent 1px);
    /* Subtle pattern effect */
    background-size: 20px 20px;
    color: #333;
}

* {
    box-sizing: border-box;
}

/* --- Layout / Grid System (Replicating Bootstrap behavior) --- */
.codex-editor__redactor {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 9px;
    gap: 12px;
}


/* --- 1. تنسيق العناوين والفواصل (تأخذ سطر كامل) --- */
.ce-block:has(.ce-header),
.ce-block:has(.spacer) {
    flex: 0 0 100%;
    max-width: 100%;
}

.ce-block:has([card_name]) {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
}

.widget.shortcut-widget-box {
    background: #fff;
    border: 1px solid #ddd8d0;
    border-radius: 10px;
    padding: 1rem;
}

.widget.shortcut-widget-box:hover {
    background: #e8f5f0;
    border-color: rgba(0, 112, 74, 0.3);
}

.widget.links-widget-box {
    background: #fff;
    border: 1px solid #ddd8d0;
    border-radius: 10px;
    overflow: hidden;
}

.widget.links-widget-box .widget-head {
    background: #00704a;
    padding: 0.75rem 1.25rem;
}

.widget.links-widget-box .widget-head .widget-title span {
    color: #fff;
    font-weight: 600;
    font-family: 'qomra';
}

.widget.links-widget-box .widget-head .es-icon {
    color: rgba(255, 255, 255, 0.7);
}

.widget.links-widget-box .link-item {
    padding: 0.625rem 1.25rem;
    color: #000000;
    border-top: 1px solid #e8e3dc;
}

.widget.links-widget-box .link-item:hover {
    background: #e8f5f0;
    color: #1a3a2a;
}

.ce-header .h4 b {
    color: #1a3a2a;
    font-family: 'qomra';
    font-weight: 600 !important;
}

[shortcut_name="item"] .widget-title span::before {
    content: "📦";
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: #fce8ea;
    margin-left: 8px;
    font-size: 14px;
}

[shortcut_name="Customer"] .widget-title span::before {
    content: "👥";
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: #e0f5eb;
    margin-left: 8px;
    font-size: 14px;
}

[shortcut_name="Supplier"] .widget-title span::before {
    content: "🚚";
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: #e0eff8;
    margin-left: 8px;
    font-size: 14px;
}

[shortcut_name="Sales Invoice"] .widget-title span::before {
    content: "📄";
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: #fcebd8;
    margin-left: 8px;
    font-size: 14px;
}

[shortcut_name="Leaderboard"] .widget-title span::before {
    content: "🏆";
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: #f0e4f8;
    margin-left: 8px;
    font-size: 14px;
}

/* هيدر البطاقات */
.widget.links-widget-box .widget-head {
    background: #054239;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    height: 44px;
}

.widget.links-widget-box .widget-head .widget-title span {
    color: #fff !important;
    font-weight: 600;
}

.widget.links-widget-box .widget-head .widget-control::after {
    font-family: "FontAwesome";
    content: "\f2b9";
    display: inline-block;
    color: #ffffff;
    font-size: 28px;
    color: #d4af37 !important;
    font-weight: 900 !important;
    background-size: 12px 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.widget.shortcut-widget-box,
.widget.links-widget-box {
    background-color: #f0ebe48f !important;
}

/* تقليل حجم بوكسات الروابط */
.widget.links-widget-box {
    max-width: 280px;
}

.widget.links-widget-box .widget-head {
    padding: 0.5rem 1rem;
    height: 44px;
}

.widget.links-widget-box .link-item {
    padding: 0.4rem 1rem;
    font-size: 13px;
}

/* إزالة الأسطر بين الروابط */
.widget.links-widget-box .link-item {
    border: none !important;
    padding: 0.4rem 1rem;
    font-size: 13px;
}

.widget.links-widget-box .widget-body .links-section {
    border: none !important;
}

.widget.links-widget-box .link-item+.link-item {
    border-top: none !important;
}

.widget.links-widget-box {
    max-width: 100%;
    width: 100%;
}


/* تصغير بوكسات الاختصارات العلوية */
.widget.shortcut-widget-box {
    max-width: 180px;
    padding: 0.5rem 0.75rem !important;
    font-size: 13px;
}

.widget.shortcut-widget-box .widget-head {
    padding: 0.4rem 0;
}

.widget.shortcut-widget-box .shortcut-widget-box {
    padding: 0.3rem 0;
}

/* بوكسات الاختصارات بصف أفقي */
.widget-group .shortcut-widget-box {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    min-width: auto !important;
    max-width: 200px;
    font-size: 13px;
}

/* الحاوية الرئيسية للاختصارات */
.widgets-in-order[data-widget-type="shortcut"],
.shortcut-widget-box .widget-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* إضافة الظل لجميع البوكسات */
.widget {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0efe9 !important;
    /* يفضل إبقاء إطار خفيف جداً مع الظل */
    border-radius: 12px !important;
    /* لتوحيد الحواف الدائرية لكل البوكسات */
    transition: all 0.3s ease !important;
    /* لجعل أي حركة أو تغيير سلسة */
}

/* (إضافة اختيارية ممتازة): جعل البوكس يرتفع قليلاً ويزداد ظله عند تمرير الماوس عليه */
.widget:hover {
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-3px) !important;
}

.navbar {
    background-color: #0b4c3b !important;
    /* لون أخضر غامق مشابه للصورة */
    border-bottom: none !important;
    padding: 0 10px !important;
    height: 52px !important;
    /* زيادة ارتفاع الشريط قليلاً */
}

.navbar .notifications-icon svg {
    fill: #ffffff !important;
    /* تلوين الأيقونات بالأبيض */
    stroke: #ffffff !important;
    /* تلوين حواف الأيقونات بالأبيض */
    width: 22px !important;
    height: 22px !important;
}

.form-control {
    background-color: #ffffff;
}

.app-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    max-height: 50px;
    border-inline-end: 2px solid #fff;
    padding-inline-end: 15px;
    height: 70%;
}

.widget.spacer {
    display: none;
}

.layout-side-section {
    z-index: 2000;
    position: relative;
}


.ce-block.col-xs-12.col-sm-6.col-md-4.col-lg-3 {
    flex-basis: 50px;
    flex-grow: 1;
    flex-shrink: 1;
}

.widget.shortcut-widget-box {
    max-width: 100%;
}

.layout-main-section {
    background: transparent !important;
    border: none !important;
}

li.vertical-bar.d-none.d-sm-block {
    display: none !important;
}

.col-md-4.col-sm-6.col-xs-7.page-title {
    display: none;
}

.overlay-sidebar {
    background-color: #F7F6F3 !important;
}

.page-form {
    margin: 0;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background-color: transparent;
}

.page-form .form-group {
    margin: 0;
    flex: 0 1 auto;
    min-width: 140px;
}

.page-form input.form-control,
.page-form select.form-control {
    background-color: #dcdcc6;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: #054239;
    font-size: 14px;
    width: 100%;
    height: 32px;
    outline: none;
    transition: all 0.2s;
}

.layout-main-section .frappe-list .result {
    background-color: #F7F6F3 !important;
}

.list-subject a {
    color: #495760;
}

.list-row-col a {
    color: #495760;
}

.list-row .list-row-activity .frappe-timestamp,
.list-row-head .list-row-activity .frappe-timestamp {
    color: #495760;
}

/* ===== Full Width Header ===== */
.page-head .container {
    max-width: 100%;
    /* display: none; */
}

/* ===== Sidebar Background ===== */
.overlay-sidebar {
    background-color: #f3f3f3 !important;
    width: 240px;
    min-height: 100vh;
    padding-top: 10px;
    border-right: 1px solid #e0e0e0;
}

/* ===== Sidebar Base Text Style ===== */
.layout-side-section,
.layout-side-section a,
.layout-side-section .text-muted {
    color: #333;
    font-size: 14px;
    font-family: 'qomra';
}

/* ===== Sidebar SVG Icons ===== */
.layout-side-section svg,
.standard-sidebar-item .es-icon {
    width: 18px;
    height: 18px;
    stroke: #666;
    transition: 0.2s ease;
}

/* ===== Sidebar Item ===== */
.standard-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

/* ===== Hover Effect ===== */
.standard-sidebar-item:hover {
    background-color: #ffffff;
}

.standard-sidebar-item:hover .es-icon {
    stroke: #054239;
}


.standard-sidebar-item.active .es-icon {
    stroke: #ffffff;
}

/* ===== Dropdown Styling ===== */
.dropdown-menu {
    border-radius: 6px;
    border: 1px solid #054239;
    font-size: 13px;
    padding: 5px 0;
}

.dropdown-menu a {
    color: #054239;
    padding: 6px 15px;
    display: block;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background-color: #0542397d;
}

.list-sidebar .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    min-width: 180px;
    max-width: 250px;
    z-index: 100;
    background-color: #F7F6F3;
}


button.btn-reset.standard-sidebar-label {
    display: none;
}

.widget .widget-head .widget-label .widget-title {
    color: #0000000;
}

.search-bar .awesomplete ul {
    background-color: #F7F6F3;
}

.text-muted {
    color: #000 !important;
    font-weight: 500;
}


span.level-item {
    color: #000;
    font-weight: 500;
}

button.btn.btn-primary.btn-sm.primary-action {
    border-radius: 4px;
}

.ce-block.col-xs-12.col-sm-6.col-md-4 {
    max-width: 400px !important;
    flex-grow: 1;
}

.form-control {
    background-color: #ebe3ccd4;
}

.navbar .form-control {
    background-color: white;
}

.widget.shortcut-widget-box,
.widget.links-widget-box {
    background-color: hsl(45 56% 94% / 1);
}

.layout-side-section {
    background-color: hsl(45 56% 94% / 1);
}

.desk-sidebar.list-unstyled.sidebar-menu {
    background-color: #F7F6F3;
}

.overlay-sidebar {
    background-color: hsl(45deg 56% 94%) !important;
    width: 240px;
    min-height: 100vh;
    padding-top: 10px;
    border-right: 1px solid #e0e0e0;
}

.links-widget-box svg {
    display: none !important;
}

.widget.shortcut-widget-box,
.widget.links-widget-box {
    background-color: hsl(45deg 56% 94%) !important;
}

.layout-side-section {
    background-color: hsl(45deg 56% 94%);
}

.desk-sidebar.list-unstyled.sidebar-menu {
    background-color: hsl(45deg 56% 94%);
}

.widget .widget-head .widget-control>* {
    align-self: center;
    margin-left: 5px;
    box-shadow: none;
}

.shortcut-widget-box svg {
    display: none !important;
}

[data-page-route=Workspaces] .dropdown-list {
    position: relative;
}

[data-route="Workspaces/Home"] .page-head {
    display: none !important;
}

[data-route="Workspaces/Home"] .layout-main .layout-side-section {
    margin-top: 1px;
}

.widget-body {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: block;
    transition: all 0.3s ease;
}

.link-item:hover {
    box-shadow: 0 0 0 2px #d4af374f, 0 4px 10px rgba(212, 175, 55, 0.2) !important;
}

.link-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.link-text {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.link-content::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #0d4a3b;
    border-right: 2px solid #0d4a3b;
    transform: rotate(45deg);
    margin-right: 5px;
    transition: all 0.3s ease;
}

.link-item:hover .link-content::after {
    transform: rotate(45deg) translate(3px, -3px);
    border-color: #1a7a62;
}

[dir="rtl"] .link-content::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #0d4a3b;
    border-right: 2px solid #0d4a3b;
    transform: rotate(-135deg);
    transition: all 0.3s ease;
    margin-left: 10px;
}

[dir="rtl"] .link-item:hover .link-content::after {
    transform: rotate(-135deg) translate(-3px, 3px);
    border-color: #1a7a62;
}

.widget.links-widget-box .widget-head .widget-title {
    display: flex;
    align-items: center;
}

.navbar {
    background-color: #054239 !important;
    border-bottom: none !important;
    padding: 0 10px !important;
    height: 52px !important;
}

.ce-block:nth-child(5n+2) .widget.shortcut-widget-box {
    border-left-color: #F77234 !important;
    border-width: 1px !important;
    border-left-width: 4px !important;
}

.ce-block:nth-child(5n+3) .widget.shortcut-widget-box {
    border-left-color: #00B42A !important;
    border-width: 1px !important;
    border-left-width: 4px !important;
}

.ce-block:nth-child(5n+4) .widget.shortcut-widget-box {
    border-left-color: #14C9C9 !important;
    border-width: 1px !important;
    border-left-width: 4px !important;
}

.ce-block:nth-child(5n+5) .widget.shortcut-widget-box {
    border-left-color: #165DFF !important;
    border-width: 1px !important;
    border-left-width: 4px !important;
}

.ce-block:nth-child(5n+6) .widget.shortcut-widget-box {
    border-left-color: #F5319D !important;
    border-width: 1px !important;
    border-left-width: 4px !important;
}

[data-route="Workspaces/Home"] .page-head {
    display: block !important;
}

.col-md-4.col-sm-6.col-xs-7.page-title {
    display: block;
}

@media (min-width: 768px) {
    [data-route="Workspaces/Home"] .page-head {
        display: none !important;
    }

    .col-md-4.col-sm-6.col-xs-7.page-title {
        display: none;
    }

    .layout-side-section {
        margin-top: -65px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: block !important;
        position: absolute;
        top: 0;
        right: 0;
        width: auto !important;
        background: transparent !important;
    }

    .navbar-collapse .navbar-nav {
        flex-direction: row !important;
    }

    .navbar-collapse .nav-item:not(.logged-in) {
        /*display: none !important;*/
    }

    .logged-in {
        display: block !important;
        padding: 5px 10px;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        height: 52px !important;
        padding: 0 8px !important;
    }

    .navbar>.container {
        padding-right: 8px !important;
        padding-left: 8px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    /* الشعار */
    .navbar-brand {
        column-gap: 8px !important;
    }

    .app-logo {
        max-height: 36px !important;
        padding-inline-end: 8px !important;
    }

    .navbar-brand::before {
        font-size: 13px !important;
    }

    .navbar-brand::after {
        font-size: 8px !important;
        letter-spacing: 0.5px !important;
    }

    .search-bar {
        max-width: 60px !important;
        min-width: 70px !important;
    }

    .search-bar input.form-control {
        font-size: 12px !important;
        height: 30px !important;
        padding: 4px 28px 4px 8px !important;
    }

    .search-bar .search-icon {
        right: 6px !important;
    }

    .search-bar .search-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    #navbar-search::placeholder {
        font-size: 11px !important;
        opacity: 0.7;
    }


    .notifications-icon svg,
    .navbar .notifications-icon svg {
        width: 20px !important;
        height: 35px !important;
        stroke: #ffffff !important;
    }

    .nav-item.dropdown-notifications .nav-link,
    .nav-item.dropdown-message .nav-link {
        padding: 0 6px !important;
    }


    .dropdown-navbar-user .nav-link {
        padding: 0 4px !important;
    }

    .dropdown-navbar-user .avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .dropdown-navbar-user .avatar-frame {
        width: 32px !important;
        height: 32px !important;
        border-width: 1.5px !important;
    }

    .navbar-nav {
        gap: 1px !important;
        align-items: center !important;
    }


    li.vertical-bar {
        display: none !important;
    }

    .dropdown-help {
        display: none !important;
    }

    .notifications-list.dropdown-menu-right {
        left: -190px;
        right: -19px;
        max-width: 95vw !important;
        width: 330px !important;
    }

    #toolbar-user.dropdown-menu-right {
        left: auto !important;
        right: 0 !important;
    }
}

@media (max-width: 1000px) {
    #navbarSupportedContent .nav-item {
        display: none;
    }

    @media (max-width: 991.98px) {

        [dir="rtl"] .search-bar input.form-control {
            font-size: 12px !important;
            height: 30px !important;
            padding: 2px 8px 4px 28px !important;
            /* عكس الـ padding */
            text-align: right;
        }

        [dir="rtl"] .search-bar .search-icon {
            right: auto !important;
            left: 6px !important;
        }

        [dir="rtl"] #toolbar-user.dropdown-menu-right {
            right: auto !important;
            left: 0 !important;
            direction: rtl;
        }

        [dir="rtl"] .navbar-collapse {
            right: auto !important;
            left: 0px !important;
            top: 4px;
        }

        [dir="rtl"] #toolbar-user,
        [dir="rtl"] .dropdown-navbar-user .dropdown-menu {
            position: fixed !important;
            top: 52px !important;
            right: 10px !important;
            left: auto !important;
            z-index: 9999 !important;
            transform: none !important;
        }

        @media (max-width: 991.98px) {

            .notifications-list.dropdown-menu-right {
                left: 5vw !important;
                right: 5vw !important;
                width: 90vw !important;
                max-width: 400px !important;
                margin: 8px auto 0 !important;
                border: none !important;
                border-radius: 16px !important;
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
                overflow: hidden;
                position: fixed !important;
                /* لضمان ثباتها فوق المحتوى */
                top: 55px !important;
            }

            [dir="rtl"] .notifications-list.dropdown-menu-right {
                text-align: right;
                direction: rtl;
            }

            .notification-item {
                padding: 12px 15px !important;
                border-bottom: 1px solid #f1f3f5 !important;
                display: flex !important;
                align-items: flex-start !important;
                gap: 12px !important;
            }

            [dir="rtl"] .notification-item .avatar {
                margin-left: 12px !important;
                margin-right: 0 !important;
            }



            .notifications-category {
                font-size: 13px !important;
                font-weight: 600 !important;
                padding-bottom: 5px !important;
            }

            .notification-list-body {
                max-height: 70vh !important;
                overflow-y: auto !important;
            }

        }

        @media (max-width: 500px) {

            [dir="rtl"] .app-logo {
                border-inline-start-width: 2px !important;
                padding-inline-start: 8px !important;
                padding-inline-end: 0 !important;
            }


            [dir="rtl"] .navbar-brand::before {
                font-size: 12px !important;
            }

            [dir="rtl"] .navbar-brand::after {
                font-size: 7px !important;
                letter-spacing: 1px !important;
            }
        }

        .form-group.col-md-2 {
            padding-bottom: 2px;
        }

        .nav-item {
            z-index: 10;
        }
    }
}

.phone-picker-popover {
    transform: translateY(10px) !important;
    top: 740px !important;
}
