@import url("components/info-buttons.css");

/* ERP_v2 app-level overrides on top of the Neptune theme */

body { font-family: 'Cairo', 'Poppins', sans-serif; }

html[dir="rtl"] .mr-1 { margin-right: 0 !important; margin-left: .25rem !important; }

/* Page header used by every list/form screen */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.page-toolbar h4 { margin: 0; font-weight: 600; }

/* Permission tree (RoleGroup screen); compact switches support keyboard and RTL. */
.perm-module { border: 1px solid #e0e6ed; border-radius: 10px; margin-bottom: .75rem; overflow: hidden; }
.perm-module-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 1rem; background: #f1f2f6; flex-wrap: wrap; }
.perm-module-toggle { display: flex; align-items: center; gap: .75rem; flex: 1; border: 0; background: transparent; color: inherit; text-align: start; padding: .25rem 0; cursor: pointer; }
.perm-module-toggle .title { font-weight: 700; }
.perm-module-toggle[aria-expanded="true"] > .las { transform: rotate(180deg); }
.perm-module-body { padding: .75rem 1rem; display: none; }
.perm-module.open > .perm-module-body { display: block; }
.perm-submodule { margin: 1rem 0; padding: .65rem; border: 1px solid #dce5ee; border-inline-start: 3px solid #bad4e5; border-radius: 10px; background: #f8fafc; }
.perm-group-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-weight: 600; color: #45536b; padding: .2rem .15rem .65rem; margin-bottom: .65rem; border-bottom: 1px solid #d7e2ec; }
.perm-submodule-toggle { display: flex; align-items: center; gap: .65rem; flex: 1; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; padding: .25rem 0; cursor: pointer; }
.perm-submodule-toggle[aria-expanded="true"] > .las { transform: rotate(180deg); }
.perm-submodule-toggle:focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; border-radius: 4px; }
.perm-submodule-body { display: none; }
.perm-submodule.open > .perm-submodule-body { display: block; }
.perm-submodule:not(.open) > .perm-group-title { padding-bottom: .2rem; margin-bottom: 0; border-bottom: 0; }
.perm-screen-row { margin: .65rem 0; padding: .7rem .8rem; border: 1px solid #e0e7ee; border-radius: 8px; background: #fff; }
.perm-screen-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-bottom: .6rem; margin-bottom: .65rem; border-bottom: 1px solid #e4ebf1; }
.perm-screen-row .screen-name { font-weight: 600; }
.perm-actions { display: flex; gap: .45rem 1rem; flex-wrap: wrap; }
.perm-bulk-tools { display: flex; align-items: center; gap: .5rem; }
.perm-selection-count { font-size: .75rem; color: #5c6b81; direction: ltr; min-width: 2.5rem; text-align: end; }
.perm-switch { position: relative; display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .8rem; font-weight: 400; cursor: pointer; }
.perm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.perm-switch-track { position: relative; flex: 0 0 28px; width: 28px; height: 16px; border-radius: 20px; background: #8693a7; transition: background .15s; }
.perm-switch-track::after { content: ""; position: absolute; width: 12px; height: 12px; top: 2px; inset-inline-start: 2px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.perm-switch input:checked + .perm-switch-track { background: #2475d7; }
.perm-switch input:checked + .perm-switch-track::after { inset-inline-start: 14px; }
.perm-switch input.perm-partial + .perm-switch-track { background: #b87b13; }
.perm-switch input:focus-visible + .perm-switch-track { outline: 3px solid #9ec5fe; outline-offset: 3px; }
.perm-switch input:disabled ~ span { opacity: .55; cursor: default; }
@media (max-width: 576px) { .perm-module-body { padding: .4rem .5rem; } .perm-actions { gap: .6rem; } .perm-submodule { padding: .45rem; } .perm-screen-row { padding: .6rem; } }

.scope-row { display:flex; align-items:center; gap:.5rem; padding:.35rem 0; }

/* Make profile-dropdown forms look like plain items */
.dropdown-menu form .dropdown-item { width: 100%; text-align: inherit; border: 0; background: none; }

/* ---- Sidebar: tighten the icon-rail spacing (fewer items than the demo) ---- */
#sidebar ul.menu-categories li.menu > .dropdown-toggle {
    margin: 2px 6px 4px !important;
    padding: 9px 10px 8px !important;
}
#sidebar ul.menu-categories li.menu > .dropdown-toggle i { margin-bottom: 0 !important; font-size: 18px !important; }
#sidebar ul.menu-categories li.menu > .dropdown-toggle span { line-height: 1.2; }

/* ---- Sidebar: remove the side padding/margins so each item uses the full rail width.
        Frees horizontal space for a larger font or a multi-word title that wraps.
        Logical properties (inline = start/end) keep it correct in both RTL and LTR. ---- */
#sidebar ul.menu-categories li.menu > .dropdown-toggle {
    width: auto !important;
    padding-inline: 10px !important;
    margin-inline: 0 !important;
    border-radius: var(--erp-radius-sm) !important;
}
/* Let the title break out of the demo's nowrap/clip so more than one word fits. */
#sidebar ul.menu-categories li.menu > .dropdown-toggle span:not(.badge) {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
}
/* Flyout submenu links: drop the large indent/side padding too (keep room for the bullet). */
#sidebar ul.menu-categories ul.submenu > li a {
    padding-inline-start: 16px !important;
    padding-inline-end: 8px !important;
    margin-inline: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
}
/* Square the highlight on the submenu links too (hover + active). */
#sidebar ul.menu-categories ul.submenu > li a,
#sidebar ul.menu-categories ul.submenu > li.active a {
    border-radius: 0 !important;
}

/* ============================================================================
   Sidebar: wider rail (+20% → 150px to 180px) + guaranteed centered labels.
   This predates the ACRU theme's 280px full-label sidebar (erp-theme.css) and
   only applies to the old narrow icon-rail layout. It's kept for the untouched
   rollback layout (_Layout_old.cshtml), but must not fight the live theme —
   its ID selectors (#container/#content) out-specify erp-theme.css's
   .theme-acru-scoped classes, so without the :not(.theme-acru) guard this was
   silently adding a stray 110px left padding on top of the ACRU layout's own
   24px content padding on every desktop screen.
   ============================================================================ */
@media (min-width: 992px) {
    /* :not(.store-dash-body) guard: the Store dashboard has its own unrelated
       sidebar (docked opposite side, different width/markup entirely) and was
       getting caught by the broad :not(.theme-acru) guard below, silently
       adding the same stray 110px left padding this comment already describes
       fixing once for the ACRU theme — see the header-container gap this caused. */
    body:not(.theme-acru):not(.store-dash-body) .sidebar-wrapper { width: 180px !important; }

    /* Push the page content + header clear of the wider rail (it floats above them). */
    body:not(.theme-acru):not(.store-dash-body) #container:not(.sidebar-closed) #content { padding-left: 110px !important; }
    body:not(.theme-acru):not(.store-dash-body) #container:not(.sidebar-closed) .header-container { padding-left: 110px !important; }

    /* The fly-out animation slides the icon rail fully out of view, so the slide
       distance must equal the new rail width. */
    body:not(.theme-acru):not(.store-dash-body) #container.sub-sidebar-open #sidebar ul.menu-categories { margin-inline-start: -180px !important; }
}

/* ---- Multi-select checkbox dropdown (used by the stock-count pickers) ---- */
.erp-ms { position: relative; }
.erp-ms-toggle { text-align: start; cursor: pointer; }
.erp-ms-panel {
    position: absolute; z-index: 1050; inset-inline-start: 0; top: calc(100% + 4px);
    min-width: 100%; width: max-content; max-width: 420px;
    background: #fff; border: 1px solid #e0e6ed; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(27,46,75,.15); padding: .55rem; display: none;
}
.erp-ms.open .erp-ms-panel { display: block; }
.erp-ms-list { max-height: 260px; overflow-y: auto; margin-top: .4rem; }
.erp-ms-list label, .erp-ms-all {
    display: flex; align-items: center; gap: .5rem; margin: 0;
    padding: .35rem .4rem; border-radius: 5px; cursor: pointer; white-space: nowrap; font-weight: 400;
}
.erp-ms-list label:hover { background: #f3f6f9; }
.erp-ms-all { border-bottom: 1px solid #eef1f5; padding-bottom: .5rem; margin-bottom: .15rem; font-weight: 600; }
.erp-ms-list input[type="checkbox"], .erp-ms-all input[type="checkbox"] { width: 15px; height: 15px; accent-color: #4361ee; flex: 0 0 auto; }

/* Center every top-level menu label (icon stacked over text) in both languages.
   Force the flex column + centering explicitly so no other sheet can disturb it. */
#sidebar ul.menu-categories li.menu > .dropdown-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
#sidebar ul.menu-categories li.menu > .dropdown-toggle span:not(.badge) {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

/* ---- Dashboard customization (show/hide + drag reorder) ---- */
#dashGrid .dash-comp { position: relative; }
.dash-comp-toolbar {
    position: absolute; top: 4px; inset-inline-end: 22px; z-index: 5;
    display: flex; gap: .25rem; opacity: 0; transition: opacity .15s;
}
.dash-comp:hover .dash-comp-toolbar { opacity: 1; }
.dash-comp-toolbar .dash-btn-mini {
    width: 26px; height: 26px; border-radius: 6px; border: 1px solid #e0e6ed; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #182238; cursor: pointer; font-size: 13px;
}
.dash-comp-toolbar .dash-handle { cursor: move; }
.dash-comp-toolbar .dash-btn-mini:hover { color: var(--erp-green); border-color: var(--erp-green); }
.dash-ghost { opacity: .35; }
.dash-chosen { outline: 2px dashed var(--erp-green); outline-offset: -2px; }
.dash-hidden { display: none !important; }

/* Customize: floating button + slide-in panel + overlay */
.dash-fab {
    position: fixed; bottom: 26px; right: 26px; z-index: 1060;
    height: 48px; padding: 0 18px; border: 0; border-radius: 26px;
    background: var(--erp-green); color: #fff; font-size: 15px; font-weight: 600;
    box-shadow: 0 6px 16px rgba(27,107,74,.45); cursor: pointer;
    display: inline-flex; align-items: center; gap: .5rem;
}
html[dir="rtl"] .dash-fab { right: auto; left: 26px; }
.dash-fab:hover { background: var(--erp-green-dark); }
.dash-fab .dash-fab-label { white-space: nowrap; }
@media (max-width: 575px) {
    .dash-fab .dash-fab-label { display: none; }
    .dash-fab { padding: 0; width: 48px; justify-content: center; border-radius: 50%; }
}
.dash-toggle-overlay { position: fixed; inset: 0; background: rgba(27,46,75,.4); z-index: 1045; display: none; opacity: 0; transition: opacity .25s ease; }
.dash-toggle-overlay.show { display: block; opacity: 1; }

.dash-toggle-panel {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: 680px; max-width: 95vw;
    background: #fff; z-index: 1050; box-shadow: -12px 0 40px rgba(27,46,75,.18);
    display: none; flex-direction: column;
    border-start-start-radius: 16px; border-end-start-radius: 16px;
    overflow: hidden;
    --dash-slide: 28px;
}
html[dir="ltr"] .dash-toggle-panel { --dash-slide: 28px; box-shadow: 12px 0 40px rgba(27,46,75,.18); }
html[dir="rtl"] .dash-toggle-panel { --dash-slide: -28px; }
.dash-toggle-panel.open { display: flex; animation: dashPanelIn .28s cubic-bezier(.22,.61,.36,1); }
@keyframes dashPanelIn {
    from { opacity: 0; transform: translateX(var(--dash-slide)); }
    to   { opacity: 1; transform: none; }
}

/* رأس اللوحة بلون الهوية */
.dash-toggle-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--erp-green), var(--erp-green-dark));
    color: #fff;
}
.dash-toggle-head h6 { color: #fff; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.dash-toggle-head .btn,
.dash-toggle-head .btn i { color: #fff !important; }
.dash-toggle-head #dashToggleClose {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,.15); opacity: 1; transition: background .15s ease;
}
.dash-toggle-head #dashToggleClose:hover { background: rgba(255,255,255,.3); }

.dash-toggle-body { padding: 14px 16px; overflow-y: auto; }
.dash-toggle-body .dash-grp-title {
    font-weight: 700; color: #1b2e4b; margin: .6rem 0 .3rem; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .04em;
}

/* مجموعة المكوّنات: العنوان بعرض كامل ثم العناصر في عمودين لتقليل الطول وإلغاء الاسكرول */
.dash-grp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 8px;
    margin-bottom: .35rem;
}
.dash-grp .dash-grp-title { grid-column: 1 / -1; margin-top: .35rem; }

/* عناصر القائمة (إظهار/إخفاء المكوّن) */
.dash-toggle-item {
    display: flex; align-items: center; gap: .45rem; padding: .35rem .45rem; margin: 0;
    min-width: 0;
    font-size: .8rem; color: #3b3f5c; cursor: pointer; border-radius: 7px;
    transition: background .15s ease;
}
.dash-toggle-item:hover { background: #f1f3fb; }
.dash-toggle-item input[type="checkbox"] { accent-color: var(--erp-green); width: 15px; height: 15px; cursor: pointer; flex: 0 0 auto; }
.dash-toggle-item span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-toggle-section { padding-bottom: .65rem; margin-bottom: .65rem; border-bottom: 1px solid #eef0f3; }
.dash-toggle-section:last-child { border-bottom: 0; }

/* أزرار عدد الأعمدة */
#dashColsGroup .btn { border-radius: 8px; font-weight: 600; }
#dashColsGroup .btn + .btn { margin-inline-start: .35rem; }
#dashColsGroup .btn.active { background: var(--erp-green); color: #fff; border-color: var(--erp-green); box-shadow: 0 2px 8px rgba(27,107,74,.3); }

/* Forced column count on the dashboard grid (overrides per-widget Bootstrap widths) */
#dashGrid.cols-1 > .dash-comp { flex: 0 0 100%; max-width: 100%; }
#dashGrid.cols-2 > .dash-comp { flex: 0 0 50%; max-width: 50%; }
#dashGrid.cols-3 > .dash-comp { flex: 0 0 33.3333%; max-width: 33.3333%; }
#dashGrid.cols-4 > .dash-comp { flex: 0 0 25%; max-width: 25%; }
@media (max-width: 991px) {
    #dashGrid[class*="cols-"] > .dash-comp { flex: 0 0 100%; max-width: 100%; }
}

/* =============================================================================
   القائمة الفرعية المنبثقة (sidebar flyout) — تنسيق نظيف + تصحيح اتجاه الأسهم (RTL)
   ============================================================================= */

/* ملف RTL يقلب كل أيقونة داخل القائمة 180° (كان يعكس أيقونات المحتوى ويقلب الأسهم).
   نلغي القلب عن أيقونة المحتوى وزر الإغلاق (الـ HTML يختار اتجاهها الصحيح أصلًا). */
html[dir="rtl"] #sidebar .sidebar-submenu .submenu-list li a > i:first-child {
    transform: none !important;
}
/* سهم المجموعة: مغلق = يشير لجهة النهاية (يسار في RTL)، مفتوح = يدور لأسفل */
html[dir="rtl"] #sidebar .sidebar-submenu .submenu-list li a .sidemenu-right-icon {
    transform: none !important;
}
html[dir="rtl"] #sidebar .sidebar-submenu .submenu-list li a.dropdown-toggle[aria-expanded="true"] .sidemenu-right-icon {
    transform: rotate(-90deg) !important;
}

/* بدون حشو/هامش أفقي على القوائم — النص يستغل كامل العرض ولا يُقصّ */
#sidebar .sidebar-submenu .submenu .submenu-list,
#sidebar .sidebar-submenu .submenu .sub-submenu-list {
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    border: 0 !important;
    list-style: none;
}

/* عناصر القائمة: الأيقونة + النص متجاوران، والسهم يُدفع لطرف السطر */
#sidebar .sidebar-submenu .submenu .submenu-list li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    padding: 9px 0;
    margin: 0 0 2px;
    border-radius: 6px;
    font-size: 16px;
    color: rgba(255, 255, 255, .82);
    transition: color .15s ease;
}
#sidebar .sidebar-submenu .submenu .submenu-list li a > i {
    margin: 0 !important;        /* إلغاء mr-1 حتى لا تترك الأيقونة فراغًا */
    flex: 0 0 auto;
}
#sidebar .sidebar-submenu .submenu .submenu-list li a > i:first-child {
    font-size: 18px;
    opacity: .9;
}
/* سهم المجموعة: على اليمين (بداية السطر في RTL) ملاصقًا للنص */
#sidebar .sidebar-submenu .submenu .submenu-list li a .sidemenu-right-icon {
    order: -1;
    font-size: 12px;
    opacity: .65;
    transition: transform .2s ease;
}
#sidebar .sidebar-submenu .submenu .submenu-list li a:hover,
#sidebar .sidebar-submenu .submenu .submenu-list li.active > a {
    background: var(--erp-green-dark);
    color: #fff;
}
#sidebar .sidebar-submenu .submenu .submenu-list li.active > a { font-weight: 600; }

/* القائمة المتداخلة (عناصر المجموعة) — بدون مسافة جانبية، تمييز باللون فقط */
#sidebar .sidebar-submenu .submenu .sub-submenu-list li a {
    padding: 7px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .68);
    border-radius: 6px;
}
#sidebar .sidebar-submenu .submenu .sub-submenu-list li a:hover,
#sidebar .sidebar-submenu .submenu .sub-submenu-list li.active > a {
    background: var(--erp-green-dark);
    color: #fff;
}

/* العنوان الرئيسي للقائمة (مثل «المخازن») — موسّط بخلفية شفافة كأنه نشط */
#sidebar .sidebar-submenu .submenu-info .submenu-inner-info h5 {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    padding: 10px 12px !important;
    border-radius: 8px;
    margin: 0 0 14px !important;
}

/* زر الإغلاق (السهم) — موسّط */
.sidebar-submenu-close {
    justify-content: flex-end;   /* الشمال في RTL */
    padding: 0 !important;
    opacity: .85;
    transition: opacity .15s ease;
}
.sidebar-submenu-close:hover { opacity: 1; }

/* ════════════════════════════════════════════════════════════════
   GLOBAL: missing Bootstrap 5 logical spacing utilities.
   This bundled Bootstrap is a Bootstrap-4-era build that only ships the
   physical .mr-*/.ml-* classes — .me-*/.ms-* (margin-inline-end/start) and
   .pe-*/.ps-* don't exist at all, so every "<i class='... me-1'></i> Text"
   icon+label button across the app (main ERP and Store admin alike)
   silently got zero spacing between the icon and its label. Defined here
   with logical properties so they resolve to the correct physical side
   automatically in both dir="ltr" and dir="rtl" pages, instead of needing
   a separate mirrored rule per direction like the old .mr-*/.ml-* classes.
   ════════════════════════════════════════════════════════════════ */
.me-1 { margin-inline-end: .25rem !important; }
.me-2 { margin-inline-end: .5rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.ms-1 { margin-inline-start: .25rem !important; }
.ms-2 { margin-inline-start: .5rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.pe-1 { padding-inline-end: .25rem !important; }
.pe-2 { padding-inline-end: .5rem !important; }
.pe-3 { padding-inline-end: 1rem !important; }
.ps-1 { padding-inline-start: .25rem !important; }
.ps-2 { padding-inline-start: .5rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }

/* ════════════════════════════════════════════════════════════════
   SweetAlert2 icon size fix (applies app-wide: main ERP dashboard,
   Store dashboard, Clinics — every page loads this file).
   The vendored sweetalert2.min.js also injects its own default
   styles at runtime as a <style> tag with no href, using em units
   (.swal2-icon { width: 5em; height: 5em; border: .25em solid... }).
   That collides with the vendored sweetalert2.min.css, which sets
   font-size: 60px on .swal2-icon.swal2-warning for its old px-based
   80px-icon design. Since the em-based rule resolves against that
   60px font-size, the icon renders at 300px with a 15px border
   instead of the intended 80px/4px — hence the oversized, blurry
   warning "!" seen in success/delete confirmation popups. Pinning
   the geometry back to fixed px values here overrides both rules
   regardless of which one the browser loaded last.
   ════════════════════════════════════════════════════════════════ */
.swal2-icon {
    width: 80px !important;
    height: 80px !important;
    border-width: 4px !important;
    margin: 20px auto 30px !important;
    line-height: normal !important;
}
.swal2-icon.swal2-warning,
.swal2-icon.swal2-question,
.swal2-icon.swal2-info {
    font-size: 60px !important;
    line-height: 80px !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    width: 80px !important;
    height: 80px !important;
    border-width: 4px !important;
    top: -4px !important;
    left: -4px !important;
}
.swal2-icon.swal2-success .swal2-success-fix {
    width: 7px !important;
    height: 90px !important;
    top: 8px !important;
    left: 28px !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    height: 5px !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'][class$='tip'] {
    width: 25px !important;
    top: 46px !important;
    left: 14px !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'][class$='long'] {
    width: 47px !important;
    top: 38px !important;
    right: 8px !important;
}
.swal2-icon.swal2-success [class^='swal2-success-circular-line'] {
    width: 60px !important;
    height: 120px !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    top: 37px !important;
    width: 47px !important;
    height: 5px !important;
}
.swal2-popup.swal2-toast .swal2-icon {
    width: 32px !important;
    height: 32px !important;
    margin: 0 15px 0 0 !important;
}
.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {
    width: 32px !important;
    height: 32px !important;
}
.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    top: 14px !important;
    width: 22px !important;
}

/* The "!"/"?"/"i" glyph is a child <span class="swal2-icon-text"> (not
   plain text on .swal2-icon itself). The same injected stylesheet sizes
   it at 3.75em, which resolves against the 60px font-size pinned above
   and renders a 225px glyph spilling out of the 80px ring. Pin it back
   to a fixed size that actually fits inside the ring. */
.swal2-icon-text {
    font-size: 60px !important;
    line-height: 80px !important;
    font-weight: 400 !important;
}
.swal2-popup.swal2-toast .swal2-icon-text {
    font-size: 26px !important;
    line-height: 32px !important;
    font-weight: 400 !important;
}

/* Keep top-corner toasts inside the usable page area. SweetAlert positions
   top-end against the viewport, which put RTL alerts behind the fixed sidebar. */
html[dir="rtl"] body.theme-acru:not(.sidebar-closed) .swal2-container.swal2-top-end {
    right: 280px !important;
}
html[dir="ltr"] body.theme-acru:not(.sidebar-closed) .swal2-container.swal2-top-end {
    left: 280px !important;
}
@media (max-width: 767.98px) {
    html[dir="rtl"] body.theme-acru:not(.sidebar-closed) .swal2-container.swal2-top-end {
        right: 0 !important;
    }
    html[dir="ltr"] body.theme-acru:not(.sidebar-closed) .swal2-container.swal2-top-end {
        left: 0 !important;
    }
}

/* Definitions is the final navigation section, with a separate keyboard-accessible explanation. */
.sidebar-wrapper .menu-categories > .nav-definitions {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 8px;
    padding-top: 8px;
}
.sidebar-wrapper .nav-definitions > .main-item { padding-inline-end: 86px !important; }
.sidebar-wrapper .nav-definitions-info {
    position: absolute;
    inset-inline-end: 48px;
    top: 17px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.sidebar-wrapper .nav-definitions-info:hover,
.sidebar-wrapper .nav-definitions-info:focus-visible { background: rgba(255, 255, 255, .15); }
.sidebar-wrapper .nav-definitions-info:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.sidebar-wrapper .nav-definitions.submenu-open > .nav-definitions-info { color: #fff; }
