.select2-container .select2-selection--single {
    height: 34px!important;
}

.dropdown-menu i,
.nav i {
  margin-left: 5px;
}

code {
  font-size: 80%;
}

.red {
    color: red;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    vertical-align: middle;
}

.block {
    color: white;
    margin-bottom: 10px;
    padding: 15px;
}

.block i {
    vertical-align: middle;
    font-size: 50px;
    float: right;
    margin-left: 20px;
}

.block h3 {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: bold;
}

.block h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 100;
}


.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 0px!important;
    padding-left: 20px!important;
    text-align: right;
}

.select2-container--bootstrap .select2-selection--single {
    padding: 6px 12px 6px 24px!important;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
    left: 12px;
    right: inherit;
}

.select2-container--bootstrap .select2-results__option[aria-selected=true] {
    text-align: right;
}

.select2-results__option[aria-selected] {
    text-align: right;
}

.select2-search--dropdown .select2-search__field {
    text-align: right;
}

.select2-results__option {
    text-align: right;
}

.dropdown-menu i, .nav i {
    vertical-align: middle;
}

.xcrud-upload-container img {
    max-width: 164px;
}

.xcrud {
    --mrest-line: #e2e8f3;
    --mrest-muted: #576782;
}
.xcrud .mrest-grid-body {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--mrest-line);
    border-radius: 11px;
    scrollbar-color: #adbed9 #f6f8fd;
}
.xcrud .mrest-grid-body > .xcrud-list { margin: 0; border: 0; }
.xcrud .mrest-grid-body .xcrud-list > thead > tr > th {
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid #dce5f3;
    background: #eff4fc;
    color: #30466d;
    font-weight: 700;
}
.xcrud .mrest-grid-body .xcrud-list > tbody > tr > td {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e9edf5;
    background: #fff;
}
.xcrud .mrest-grid-body .xcrud-list > tbody > tr:nth-child(even) > td { background: #f8faff; }
.xcrud .mrest-grid-body .xcrud-list > tbody > tr:is(:hover, :focus-within) > td { background: #eef4ff; }
.xcrud .mrest-grid-body .xcrud-list > tbody > tr:last-child > td { border-bottom: 0; }
.xcrud .mrest-grid-body .xcrud-num { color: #576782; font-variant-numeric: tabular-nums; }
.xcrud .mrest-grid-body .xcrud-actions > .btn-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.xcrud .mrest-grid-body .xcrud-actions .btn {
    margin: 0;
    border: 1px solid #dce5f2;
    border-radius: 7px;
    box-shadow: none;
    text-shadow: none;
}
.xcrud .mrest-grid-body .xcrud-actions .btn-info { background: #eaf1ff; color: #2451b3; }
.xcrud .mrest-grid-body .xcrud-actions .btn-warning { background: #fff1dc; color: #7c4a06; }
.xcrud .mrest-grid-body .xcrud-actions .btn-danger { background: #fff0f2; color: #a62d43; }
.xcrud .mrest-grid-footer :is(a, button, input):focus-visible {
    outline: 2px solid #315bff;
    outline-offset: 2px;
}
.xcrud .mrest-grid-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 16px;
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid var(--mrest-line);
    border-radius: 11px;
    background: #f6f8fd;
}
.mrest-grid-footer .mrest-grid-meta {
    display: grid;
    justify-items: start;
    gap: 5px;
    min-width: 0;
}
.mrest-grid-footer .mrest-grid-count {
    color: var(--mrest-muted);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mrest-grid-footer .mrest-grid-limits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-width: 0;
}
.mrest-grid-footer .mrest-grid-label { color: var(--mrest-muted); font-size: 12px; }
.mrest-grid-footer .mrest-grid-limits > div {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px;
    border: 1px solid #dce5f3;
    border-radius: 9px;
    background: #edf2fa;
}
.mrest-grid-footer .mrest-grid-pages { grid-column: 2; min-width: 0; }
.mrest-grid-footer .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.mrest-grid-footer :is(.pagination > li > a, .pagination > li > span, .mrest-grid-limits button) {
    float: none;
    display: grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 4px 7px;
    border: 1px solid #dae4f3;
    border-radius: 7px;
    background: #fff;
    color: #344e78;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.mrest-grid-footer .mrest-grid-limits button {
    min-width: 31px;
    min-height: 30px;
    border-color: transparent;
    background: transparent;
}
.mrest-grid-footer :is(.pagination > li > a, .mrest-grid-limits button):hover {
    border-color: #b8c9ef;
    background: #edf3ff;
    color: #2045b5;
}
.mrest-grid-footer :is(.pagination > li.active > span, .mrest-grid-limits button.active) {
    border-color: #294cdc;
    background: #294cdc;
    color: #fff;
}
.mrest-grid-footer .pagination > li.disabled > span {
    min-width: 23px;
    padding-inline: 4px;
    border-color: transparent;
    background: transparent;
    color: var(--mrest-muted);
}
.mrest-grid-footer > .xcrud-search-toggle {
    grid-column: 3;
    justify-self: end;
    min-height: 34px;
    border-color: #dae4f3;
    background: #fff;
    color: #29467a;
    font-weight: 700;
}
.mrest-grid-footer > .xcrud-search {
    grid-column: 1 / -1;
    padding-top: 9px;
    border-top: 1px solid var(--mrest-line);
}
.mrest-grid-footer .xcrud-search :is(.form-control, .btn) {
    min-height: 36px;
    max-width: 100%;
    margin: 3px;
    border-radius: 7px;
}
.mrest-grid-footer .xcrud-search .form-control { border-color: #d1dced; box-shadow: none; }

@media (max-width: 767px) {
    .xcrud .mrest-grid-footer {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .mrest-grid-footer .mrest-grid-pages {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .mrest-grid-footer > .xcrud-search-toggle { grid-column: 2; grid-row: 1; }
}

@media (max-width: 767px) {
    .xcrud .mrest-grid-body .xcrud-list:has(> thead th:nth-child(5)) { min-width: 570px; }
    .xcrud .mrest-grid-footer { gap: 9px; padding: 8px; }
    .mrest-grid-footer .mrest-grid-label { flex-basis: 100%; }
    .mrest-grid-footer .pagination > li > :is(a, span) { min-height: 40px; }
    .mrest-grid-footer .xcrud-search .select2-container { max-width: 100%; }
}

.mrest-body, .mrest-login {
    --mrest-bg: #f2f5fb;
    --mrest-surface: #fff;
    --mrest-ink: #14233e;
    --mrest-muted: #576782;
    --mrest-line: #e2e8f3;
    --mrest-blue: #315bff;
    --mrest-sidebar-width: 244px;
    --mrest-font: Cairo, Arial, sans-serif;
}
.mrest-body, .mrest-login {
    margin: 0;
    font-family: var(--mrest-font);
    color: var(--mrest-ink);
    background: var(--mrest-bg);
    direction: rtl;
}
.mrest-body a:focus-visible, .mrest-body button:focus-visible, .mrest-body summary:focus-visible,
.mrest-login a:focus-visible, .mrest-login input:focus-visible, .mrest-login button:focus-visible {
    outline: 3px solid #5284ff;
    outline-offset: 3px;
}
.mrest-skip {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 2000;
    transform: translateY(-150%);
    padding: 10px 16px;
    background: white;
    color: #1736b9;
    border-radius: 8px;
}
.mrest-skip:focus { transform: none; }
.mrest-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1045;
    width: var(--mrest-sidebar-width);
    background: #101c33;
    color: #fff;
    box-shadow: -7px 0 22px rgba(23, 36, 61, .07);
}
.mrest-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 16px 23px;
    color: inherit;
    text-decoration: none;
}
.mrest-brand:hover, .mrest-brand:focus { color: inherit; text-decoration: none; }
.mrest-mark {
    display: grid;
    place-content: center;
    grid-auto-flow: column;
    width: 41px;
    height: 41px;
    border-radius: 13px;
    direction: ltr;
    color: #fff;
    background: linear-gradient(145deg, #6582ff, #3656e5);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
}
.mrest-mark span { color: #b4f8e5; }
.mrest-brand-copy { display: grid; justify-items: start; gap: 1px; }
.mrest-brand-copy strong { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.mrest-brand-copy small { color: #a6b8d8; font-size: 11px; }
.mrest-nav { flex: 1; min-height: 0; overflow: auto; padding: 8px 13px 14px; scrollbar-color: #3a4863 transparent; scrollbar-width: thin; }
.mrest-nav-section + .mrest-nav-section { margin-top: 20px; }
.mrest-nav-section > p { color: #96a7c9; margin: 0 12px 5px; font-size: 11px; font-weight: 700; }
.mrest-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 9px;
    color: #dbe4f7;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.mrest-nav a:hover, .mrest-nav a:focus { background: #203152; color: #fff; }
.mrest-nav a.is-current { background: #2949cc; color: white; font-weight: 700; }
.mrest-nav i, .mrest-side-footer i { width: 17px; text-align: center; flex: none; }
.mrest-side-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px;
    border-top: 1px solid #293951;
    gap: 6px;
    color: #b5c5e5;
    font-size: 11px;
}
.mrest-side-footer > span i { color: #6de7b5; font-size: 7px; }
.mrest-side-footer a { color: #eef3ff; padding: 6px 2px; text-decoration: none; }
.mrest-main { margin-right: var(--mrest-sidebar-width); min-width: 0; }
.mrest-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    gap: 16px;
    padding: 11px clamp(16px, 3vw, 39px);
    background: var(--mrest-surface);
    border-bottom: 1px solid var(--mrest-line);
}
.mrest-top-start, .mrest-breadcrumb, .mrest-profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mrest-breadcrumb { color: #73809a; font-size: 13px; }
.mrest-breadcrumb a { color: #526582; white-space: nowrap; }
.mrest-breadcrumb strong { color: var(--mrest-ink); overflow-wrap: anywhere; }
.mrest-profile { flex: none; }
.mrest-profile > span:last-child { display: grid; max-width: 155px; }
.mrest-profile strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrest-profile small { color: var(--mrest-muted); font-size: 11px; }
.mrest-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #eaf0ff; color: #3258d7; }
.mrest-toggle, .mrest-side-close { display: none; }
.mrest-overlay[hidden] { display: none; }
.mrest-content { width: 100%; padding: 24px clamp(14px, 3vw, 39px) 40px; min-width: 0; }
.mrest-content > .container { width: 100%; padding: 0; max-width: 1500px; }
.mrest-content .page-title, .mrest-content .title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 17px;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 750;
    line-height: 1.3;
}
.mrest-content .page-title > i, .mrest-content .title > i { color: var(--mrest-blue); }
.mrest-content .page-title .pull-right, .mrest-content .title .pull-right {
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-inline-start: auto;
}
.mrest-content .btn { border-radius: 8px; }
.mrest-content .btn-primary { background: #315bff; border-color: #284de4; }
.mrest-content .btn-primary:hover { background: #2346d7; }
.mrest-content .xcrud-container {
    background: var(--mrest-surface);
    border-radius: 14px;
    padding: 11px;
    min-width: 0;
}
.mrest-dashboard { display: grid; gap: 19px; max-width: 1500px; margin: 0 auto; }
.dash-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    min-height: 166px;
    padding: clamp(20px, 3vw, 34px);
    border-radius: 19px;
    color: white;
    background: linear-gradient(116deg, #223ca8 0%, #284be0 64%, #395ef4 100%);
}
.dash-hero::before, .dash-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    left: -49px;
    top: -110px;
    border: 1px solid rgba(212, 224, 255, .24);
    border-radius: 50%;
}
.dash-hero::after { width: 365px; height: 365px; left: -91px; top: -151px; }
.dash-hero h1 { margin: 3px 0 6px; font-size: clamp(27px, 4vw, 43px); font-weight: 800; overflow-wrap: anywhere; }
.dash-hero p { color: #e8eeff; margin: 0; font-size: 14px; }
.dash-hero .dash-eyebrow { display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 800; }
.dash-eyebrow span { width: 7px; height: 7px; background: #91f1d0; border-radius: 50%; }
.dash-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 10px 14px;
    border: 1px solid #c8d6ff;
    border-radius: 10px;
    background: rgba(9, 29, 115, .24);
    color: white;
    font-weight: 700;
    text-decoration: none;
}
.dash-hero-button:hover, .dash-hero-button:focus { background: white; color: #2543c0; text-decoration: none; }
.dash-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.dash-metric, .dash-panel {
    min-width: 0;
    background: var(--mrest-surface);
    border: 1px solid var(--mrest-line);
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(25, 44, 83, .035);
}
.dash-metric {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 5px;
    padding: 15px;
    color: var(--mrest-ink);
    text-decoration: none;
}
a.dash-metric:hover, a.dash-metric:focus { color: var(--mrest-ink); border-color: #a8bcfa; text-decoration: none; }
.dash-metric-icon, .dash-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.dash-blue { background: #e9efff; color: #2f55e0; }
.dash-green { background: #def6ef; color: #087964; }
.dash-amber { background: #fff1d9; color: #8d5207; }
.dash-purple { background: #f0eaff; color: #6d43be; }
.dash-metric-label { color: var(--mrest-muted); font-weight: 700; font-size: 12px; }
.dash-metric strong { font-size: clamp(21px, 2.7vw, 32px); line-height: 1; font-weight: 800; direction: ltr; letter-spacing: -.035em; }
.dash-metric small { font-size: 11px; color: var(--mrest-muted); }
.dash-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.dash-panel { padding: 17px; }
.dash-panel h2 { margin: 0 0 3px; font-size: 17px; font-weight: 800; }
.dash-panel-heading p { color: var(--mrest-muted); font-size: 12px; margin: 0; }
.dash-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.dash-badge { flex: none; }
.dash-figure { display: flex; align-items: baseline; gap: 8px; margin: 9px 0 5px; }
.dash-figure strong { font-size: 30px; font-weight: 800; letter-spacing: -.04em; direction: ltr; }
.dash-figure span { color: var(--mrest-muted); font-size: 12px; }
.dash-empty { margin: 18px 0 0; color: var(--mrest-muted); }
.dash-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.dash-shortcuts a { display: flex; align-items: center; gap: 7px; padding: 9px; background: #f4f7fd; color: #263c65; border-radius: 9px; font-weight: 700; font-size: 12px; }
.dash-shortcuts a:hover { background: #e9efff; text-decoration: none; }
.dash-shortcuts a i:last-child { margin-inline-start: auto; }
.mrest-login { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 20px; box-sizing: border-box; background: radial-gradient(ellipse at 75% 5%, #dae4ff, transparent 56%), #eff3fc; }
.mrest-login-card { box-sizing: border-box; width: min(100%, 420px); padding: clamp(21px, 7vw, 35px); background: #fff; border: 1px solid #e2e9f6; border-radius: 20px; box-shadow: 0 18px 58px rgba(24, 49, 100, .13); }
.mrest-login-card .mrest-brand { min-height: 0; padding: 0; width: fit-content; margin: 0 0 24px; }
.mrest-login-card .mrest-brand small { color: var(--mrest-muted); }
.mrest-login h1 { margin: 0 0 5px; font-size: 31px; }
.mrest-login p { margin: 0 0 18px; color: var(--mrest-muted); font-size: 14px; }
.mrest-login form { display: grid; gap: 7px; }
.mrest-login label { font-size: 13px; font-weight: 700; }
.mrest-login input, .mrest-login form button { font: inherit; border-radius: 9px; padding: 9px 12px; min-height: 25px; }
.mrest-login input { border: 1px solid #cbd6eb; margin-bottom: 7px; direction: ltr; }
.mrest-login form button { color: #fff; background: #2d50e5; border: 0; cursor: pointer; font-weight: 700; margin-top: 4px; }
.mrest-login .mrest-login-error { color: #8d2334; background: #ffedf0; padding: 9px 10px; border-radius: 8px; }

@media (max-width: 991px) {
    .mrest-sidebar { transform: translateX(100%); visibility: hidden; transition: transform .18s ease; }
    .mrest-main { margin-right: 0; }
    .mrest-menu-open { overflow: hidden; }
    .mrest-menu-open .mrest-sidebar { transform: none; visibility: visible; }
    .mrest-toggle {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: none;
        border: 1px solid var(--mrest-line);
        border-radius: 9px;
        color: var(--mrest-ink);
        background: #f4f7fc;
        font-size: 18px;
    }
    .mrest-side-close {
        display: grid;
        place-items: center;
        position: absolute;
        left: 16px;
        top: 19px;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 9px;
        background: #263a5b;
        color: #fff;
        font-size: 16px;
    }
    .mrest-overlay {
        position: fixed;
        inset: 0;
        z-index: 1040;
        width: 100%;
        border: 0;
        background: rgba(12, 23, 45, .45);
    }
}
@media (max-width: 620px) {
    .mrest-topbar { min-height: 59px; padding: 8px 12px; }
    .mrest-breadcrumb { gap: 0; }
    .mrest-breadcrumb a, .mrest-breadcrumb > span { display: none; }
    .mrest-profile { gap: 6px; }
    .mrest-profile > span:last-child { max-width: 95px; }
    .mrest-content { padding: 13px 10px 30px; }
    .mrest-dashboard { gap: 12px; }
    .dash-hero { align-items: flex-start; flex-direction: column; min-height: 0; gap: 12px; border-radius: 14px; padding: 17px; }
    .dash-hero-button { padding: 6px 9px; font-size: 12px; }
    .dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dash-metric, .dash-panel { padding: 12px; }
    .dash-chart-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .mrest-content .page-title .pull-right, .mrest-content .title .pull-right { width: 100%; margin-inline-start: 0; }
    .mrest-content .xcrud-container { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .mrest-sidebar { transition: none; }
}

.mrest-main { min-height: 100vh; display: flex; flex-direction: column; }
.mrest-content { flex: 1; }
.mrest-content .xcrud > .xcrud-container { padding: clamp(8px, 1.5vw, 15px); border: 1px solid var(--mrest-line); }
.mrest-content .xcrud-top-actions { padding-block: 0 10px; }
.mrest-content .xcrud-view label { color: #30466d; font-weight: 700; }
.mrest-content .xcrud-view :is(.form-control, .select2-selection) { border-radius: 8px; border-color: #d3ddec; box-shadow: none; }
.mrest-content .xcrud-view .nav-tabs { margin-bottom: 12px; }
.mrest-content .xcrud-view .nav-tabs > li > a { border-radius: 8px 8px 0 0; }
.mrest-content .xcrud-view .nav-tabs > li.active > a { color: #2549ce; font-weight: 700; }
.mrest-footer { padding: 14px 20px; border-top: 1px solid var(--mrest-line); color: var(--mrest-muted); text-align: center; font-size: 12px; }
.mrest-login *, .mrest-login *::before, .mrest-login *::after { box-sizing: border-box; }
.mrest-login .mrest-brand { color: inherit; text-decoration: none; }
.mrest-login input, .mrest-login form button { width: 100%; min-width: 0; min-height: 44px; }
.mrest-login form button:hover { background: #2346d7; }
.mrest-order-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(4px, 1.3vw, 12px);
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}
.mrest-order-chart li { display: grid; grid-template-rows: auto 82px auto; gap: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.mrest-order-chart time { font-size: 11px; color: var(--mrest-muted); }
.mrest-chart-track { position: relative; border-radius: 7px; background: #edf2ff; }
.mrest-chart-track span { position: absolute; inset: auto 0 0; height: var(--bar-height); border-radius: 7px; background: #4c6bf6; }
@media (max-width: 620px) {
    .mrest-content > .container > .row { margin-inline: 0; }
    .mrest-content .xcrud-view .form-control { font-size: 16px; }
}
