:root {
    /*--primary-color: #25B15D;*/
    /*--bs-primary: #25B15D;*/
    /*--bs-primary-rgb: 37, 177, 93;*/
    /*--bs-primary-border-subtle: rgba(37, 177, 93, 0.75);*/

    --primary-color: #c4ac69;
    --bs-primary: #c4ac69;
    --bs-primary-rgb: 196, 172, 105;
    --bs-primary-border-subtle: rgba(196, 172, 105, 0.75);

    --impersonation-banner-height: 2.375rem;
}

/* Arabic locale: use Cairo font for all elements */
.locale-ar {
    --bs-font-sans-serif: "Cairo", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
    --bs-body-font-family: "Cairo", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
}

/* Text inputs: Cairo when value contains Arabic script (.font-cairo from initArabicFont in public/admin_assets/custom/js/shared/index.js) */
input[type="text"].font-cairo {
    font-family: "Cairo", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
}

/* Match insta admin: suppress horizontal page scrollbar from overflowing abs.-positioned UI (e.g. Select2) */
body {
    overflow-x: hidden;
}

.select2-container--classic .select2-selection--multiple .select2-selection__rendered li .select2-search__field, .select2-container--default .select2-selection--multiple .select2-selection__rendered li .select2-search__field {
    margin-top: 7px;
    margin-left: 7px;
    margin-right: 7px;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 0.7rem;
    margin-left: 0.5rem
}

/* Multiple-select inline search only: avoid forcing layout wider than columns */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field,
.select2-container--classic .select2-selection--multiple .select2-search--inline .select2-search__field {
    min-width: 0;
    max-width: 100%;
}

.select2-container {
    max-width: 100%;
}

.select2-dropdown {
    max-width: min(100%, calc(100vw - 2rem));
}

.select2-results__option {
    overflow-x: hidden;
    word-break: break-word;
}

.overlay {
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all .2s ease;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.asset-container:hover .overlay {
    opacity: 1;
    cursor: move;
}

.gallery-asset-card {
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.35rem 1rem rgba(47, 43, 61, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-asset-card:hover {
    box-shadow: 0 0.625rem 1.5rem rgba(47, 43, 61, 0.12);
    transform: translateY(-1px);
}

.gallery-asset-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    background: #f6f5f3;
    isolation: isolate;
}

.gallery-asset-media > a {
    display: block;
    position: relative;
}

.gallery-asset-image,
.gallery-asset-file-preview {
    width: 100%;
    height: 11.25rem;
    object-fit: cover;
    cursor: pointer;
}

.gallery-asset-file-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f6f5f3;
}

.gallery-asset-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    background: rgba(18, 20, 24, 0.36);
    box-shadow: 0 0.75rem 1.75rem rgba(18, 20, 24, 0.24);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%);
}

.gallery-asset-play i {
    font-size: 1.45rem;
}

.asset-title-overlay {
    position: absolute;
    inset-inline: 0.75rem;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    min-height: 5.5rem;
    padding: 2.75rem 0 1rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(14, 16, 20, 0) 0%, rgba(14, 16, 20, 0.58) 62%, rgba(14, 16, 20, 0.88) 100%);
}

.asset-title-overlay__text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 0.35rem 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.4);
}

.gallery-asset-actions-overlay {
    position: absolute;
    top: 0.875rem;
    inset-inline-end: 0.875rem;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
}

.gallery-asset-action-btn {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0.5rem 1.25rem rgba(18, 20, 24, 0.18);
    backdrop-filter: blur(10px);
}

.gallery-asset-action-btn i {
    width: 1.1rem;
    height: 1.1rem;
    font-size: 1.1rem !important;
    line-height: 1;
}

.gallery-asset-action-btn i::before {
    font-size: 1.1rem !important;
}

.gallery-asset-action-btn:hover,
.gallery-asset-action-btn:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0.75rem 1.5rem rgba(18, 20, 24, 0.26);
}

.gallery-asset-action-btn--edit {
    background: rgba(255, 159, 67, 0.9);
}

.gallery-asset-action-btn--edit:hover,
.gallery-asset-action-btn--edit:focus {
    background: rgba(255, 159, 67, 1);
}

.gallery-asset-action-btn--delete {
    background: rgba(255, 76, 81, 0.9);
}

.gallery-asset-action-btn--delete:hover,
.gallery-asset-action-btn--delete:focus {
    background: rgba(255, 76, 81, 1);
}

.sortable-placeholder {
    background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
    border: 1px dashed var(--bs-primary) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sortable-placeholder > * {
    opacity: 0 !important;
}

tr.sortable-placeholder {
    display: table-row;
}

.single-asset.sortable-placeholder {
    min-height: 190px;
}

.single-asset.sortable-placeholder::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    border: 1px dashed var(--bs-primary);
    border-radius: 6px;
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.nested-links:empty {
    min-height: 1rem;
}

.waves-effect .waves-ripple {
    position: absolute;
    border-radius: 0;
    width: 0;
    height: 0;
    margin-top: unset;
    margin-left: unset;
    /* opacity: 0; */
    background: unset;
    background: unset;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Flatpickr default z-index (1074) sits below Bootstrap 5 modal/backdrop (~1089–1090) */
.flatpickr-calendar.open {
    z-index: calc(var(--bs-modal-zindex, 1090) + 10);
}

.loader {
    border: 7px solid #f3f3f3;
    border-radius: 50%;
    border-top: 7px solid var(--primary-color);
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

.relative {
    position: relative;
}

.loader-wrapper {
    display: flex;
    justify-content: center;
    height: unset;
}

.contents-wrapper {
    min-height: 40vh;
}

.single-content p, .single-content h5 {
    line-height: 1.5;
}

.absolute-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reset-btn {
    /* Basic reset */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: inherit;
}

/* Reset for Firefox */
.reset-btn::-moz-focus-inner {
    border: 0;
}

/* Reset for active state */
.reset-btn:active {
    background: none;
    color: inherit;
}

/* Reset for focus state */
.reset-btn:focus {
    outline: none;
    box-shadow: none;
}

.loader-md {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid var(--primary-color);
    width: 90px;
    height: 90px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.loader-sm {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.loader-xs {
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    border-top: 4px solid #fa935b;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.card-header .btn {
    padding: 0.486rem 1rem !important;
}

.modal-body {
    min-height: 150px;
}


/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.card-header .btn {
    padding-left: 0px;
    padding-right: 0px;
}

.header-navbar .navbar-container ul.navbar-nav li.dropdown-user .dropdown-menu {
    width: 15rem;
}

.jstree-anchor {
    font-size: 15px;
    margin: 5px 10px;
}

.jstree-default.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl,
.jstree-default.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
    margin: 5px 0px;
}

.admin_home {
    --admin_home_surface: var(--bs-paper-bg, #fff);
    --admin_home_muted_surface: rgba(75, 70, 92, 0.04);
    --admin_home_border: rgba(75, 70, 92, 0.12);
    --admin_home_text: var(--bs-heading-color, #2f2b3d);
    --admin_home_muted: var(--bs-secondary-color, #6f6b7d);
    --admin_home_primary_soft: rgba(var(--bs-primary-rgb), 0.14);
    --admin_home_info: #0ea5e9;
    --admin_home_success: #22c55e;
    --admin_home_warning: #f59e0b;
    --admin_home_danger: #ef4444;
    --admin_home_secondary: #64748b;
}

[data-bs-theme="dark"] .admin_home {
    --admin_home_surface: #2f3349;
    --admin_home_muted_surface: rgba(255, 255, 255, 0.045);
    --admin_home_border: rgba(255, 255, 255, 0.1);
    --admin_home_text: #f3f2f7;
    --admin_home_muted: #b6bee3;
}

.admin_home_hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    min-height: 15rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--admin_home_border);
    border-radius: 0.75rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(132, 112, 55, 0.9), rgba(var(--bs-primary-rgb), 0.86)),
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(135deg, #8d773c, var(--bs-primary));
    box-shadow: 0 1rem 2.5rem rgba(132, 112, 55, 0.2);
    animation: admin_home_reveal 0.5s ease both;
}

.admin_home_hero::after {
    content: "";
    position: absolute;
    inset-block: 1.25rem;
    inset-inline-end: clamp(1rem, 4vw, 3rem);
    width: min(18rem, 42%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    opacity: 0.55;
    transform: rotate(-8deg);
}

.admin_home_hero_content,
.admin_home_hero_meta {
    position: relative;
    z-index: 1;
}

.admin_home_kicker {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin_home_hero h1 {
    max-width: 34rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.03;
}

.admin_home_hero p {
    max-width: 42rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.admin_home_hero_meta {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 12rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.625rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.admin_home_hero_meta span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8125rem;
}

.admin_home_hero_meta strong {
    display: block;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.1;
}

.admin_home_hero_meta i {
    margin-inline-start: auto;
    color: #fff;
    font-size: 2rem;
}

.admin_home_overview {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.admin_home_metric,
.admin_home_panel {
    border: 1px solid var(--admin_home_border);
    border-radius: 0.625rem;
    background-color: var(--admin_home_surface);
    box-shadow: 0 0.5rem 1.5rem rgba(47, 43, 61, 0.06);
}

.admin_home_metric {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 7rem;
    padding: 1rem;
    color: var(--admin_home_text);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: admin_home_reveal 0.55s ease both;
}

.admin_home_metric:hover {
    color: var(--admin_home_text);
    border-color: rgba(var(--bs-primary-rgb), 0.45);
    box-shadow: 0 0.85rem 1.8rem rgba(47, 43, 61, 0.1);
    transform: translateY(-3px);
}

.admin_home_metric_icon,
.admin_home_action_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    color: var(--bs-primary);
    background-color: var(--admin_home_primary_soft);
}

.admin_home_metric_icon i,
.admin_home_action_icon i {
    font-size: 1.4rem;
}

.admin_home_metric_body span {
    display: block;
    color: var(--admin_home_muted);
    font-size: 0.8125rem;
}

.admin_home_metric_body strong {
    display: block;
    color: var(--admin_home_text);
    font-size: 1.7rem;
    line-height: 1.15;
}

.admin_home_metric_arrow {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-end: 1rem;
    color: var(--admin_home_muted);
    opacity: 0.5;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin_home_metric:hover .admin_home_metric_arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.locale-ar .admin_home_metric:hover .admin_home_metric_arrow {
    transform: translate(-2px, -2px);
}

.admin_home_metric_info .admin_home_metric_icon {
    color: var(--admin_home_info);
    background-color: rgba(14, 165, 233, 0.12);
}

.admin_home_metric_success .admin_home_metric_icon {
    color: var(--admin_home_success);
    background-color: rgba(34, 197, 94, 0.12);
}

.admin_home_metric_warning .admin_home_metric_icon {
    color: var(--admin_home_warning);
    background-color: rgba(245, 158, 11, 0.14);
}

.admin_home_metric_danger .admin_home_metric_icon {
    color: var(--admin_home_danger);
    background-color: rgba(239, 68, 68, 0.12);
}

.admin_home_metric_secondary .admin_home_metric_icon {
    color: var(--admin_home_secondary);
    background-color: rgba(100, 116, 139, 0.12);
}

.admin_home_panel {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.admin_home_panel_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--admin_home_border);
}

.admin_home_panel_header span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--admin_home_muted);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin_home_panel_header h2 {
    margin-bottom: 0;
    color: var(--admin_home_text);
    font-size: 1.2rem;
    font-weight: 700;
}

.admin_home_panel_header > i {
    color: var(--bs-primary);
    font-size: 1.5rem;
}

.admin_home_action_list,
.admin_home_status_list {
    display: grid;
    gap: 0.75rem;
    padding-top: 1rem;
}

.admin_home_action,
.admin_home_status {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--admin_home_text);
    border-radius: 0.625rem;
    background-color: var(--admin_home_muted_surface);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.admin_home_action {
    min-height: 5rem;
    padding: 0.875rem;
}

.admin_home_action:hover,
.admin_home_status:hover {
    color: var(--admin_home_text);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    transform: translateX(3px);
}

.locale-ar .admin_home_action:hover,
.locale-ar .admin_home_status:hover {
    transform: translateX(-3px);
}

.admin_home_action strong,
.admin_home_action small {
    display: block;
}

.admin_home_action strong {
    color: var(--admin_home_text);
    font-size: 0.95rem;
}

.admin_home_action small {
    margin-top: 0.2rem;
    color: var(--admin_home_muted);
    line-height: 1.5;
}

.admin_home_action_arrow {
    margin-inline-start: auto;
    color: var(--admin_home_muted);
}

.locale-ar .admin_home_action_arrow {
    transform: rotate(180deg);
}

.admin_home_status {
    justify-content: space-between;
    min-height: 3.65rem;
    padding: 0.85rem 1rem;
}

.admin_home_status span {
    color: var(--admin_home_muted);
    font-weight: 600;
}

.admin_home_status strong {
    color: var(--admin_home_text);
    font-size: 1.25rem;
}

.admin_home_empty {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--admin_home_muted);
    border: 1px dashed var(--admin_home_border);
    border-radius: 0.625rem;
    text-align: center;
}

@keyframes admin_home_reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1399.98px) {
    .admin_home_overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .admin_home_hero {
        flex-direction: column;
    }

    .admin_home_hero::after {
        width: 70%;
        opacity: 0.28;
    }

    .admin_home_hero_meta {
        align-self: flex-start;
    }

    .admin_home_overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .admin_home_hero {
        min-height: auto;
        padding: 1.25rem;
    }

    .admin_home_hero h1 {
        font-size: 2rem;
    }

    .admin_home_overview {
        grid-template-columns: 1fr;
    }

    .admin_home_metric {
        min-height: 6rem;
    }
}


.jstree-wholerow .jstree-loading,
.jstree-default .jstree-loading {
    position: relative;
    color: transparent; /* Hide default text */
    text-indent: -9999px; /* Hide default text */
}

.jstree-wholerow .jstree-loading:after,
.jstree-default .jstree-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.jstree-default .jstree-wholerow {
    height: 35px;
}

.highlight {
    background: yellow;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
}

.context-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.context-menu ul li {
    padding: 5px 10px;
    cursor: pointer;
}

.context-menu ul li:hover {
    background-color: #f1f1f1;
}

.context-menu-item {
    display: block;
    width: 100%;
}


.iti,
.iti * {
    box-sizing: border-box;
}

.iti,
.iti:focus-within {
    border: 0 !important; /* if you have any border on wrapper */
    padding: 0 !important;
}

.iti.iti--allow-dropdown {
    width: 100% !important;
}

.iti__selected-flag {
    direction: ltr !important;
}

[dir=rtl] .iti--allow-dropdown .iti__flag-container, [dir=rtl] .iti--separate-dial-code .iti__flag-container {
    left: 0 !important;
    right: auto !important;
}

.iti__country-list {
    direction: ltr !important;
}

.iti__country-list {
    margin: 0px -336px 0px -1px !important;
}

.iti__selected-flag {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.iti input.form-control {
    direction: ltr !important;
}


.iti input.form-control,
.iti input.form-control:focus,
.iti input.form-control::placeholder {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    text-rendering: auto !important;
}

/* Prevent placeholder from shifting on focus (override bootstrap-extended.css) */
.iti input.form-control:focus::-webkit-input-placeholder {
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-transition: none !important;
    transition: none !important;
}

.iti input.form-control:focus::-moz-placeholder {
    -moz-transform: none !important;
    transform: none !important;
    -moz-transition: none !important;
    transition: none !important;
}

.iti input.form-control:focus:-ms-input-placeholder {
    -ms-transform: none !important;
    transform: none !important;
    -ms-transition: none !important;
    transition: none !important;
}

.iti input.form-control:focus::-ms-input-placeholder {
    -ms-transform: none !important;
    transform: none !important;
    -ms-transition: none !important;
    transition: none !important;
}

.iti input.form-control:focus::placeholder {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    -moz-transform: none !important;
    transform: none !important;
    -webkit-transition: none !important;
    -ms-transition: none !important;
    -moz-transition: none !important;
    transition: none !important;
}

/* Also target the input directly with class */
input.intl-tel.form-control:focus::-webkit-input-placeholder,
input.intl-tel.form-control:focus::-moz-placeholder,
input.intl-tel.form-control:focus:-ms-input-placeholder,
input.intl-tel.form-control:focus::-ms-input-placeholder,
input.intl-tel.form-control:focus::placeholder {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    -moz-transform: none !important;
    transform: none !important;
    -webkit-transition: none !important;
    -ms-transition: none !important;
    -moz-transition: none !important;
    transition: none !important;
}

.intl-tel.form-control,
.intl-tel.form-control:focus {
    border-width: 1px !important;
    box-sizing: border-box !important;
}

.iti input.form-control {
    transition: border-color .15s ease, box-shadow .15s ease !important;
}

.btn-sm, .btn-group-sm > .btn {
    padding: 8px 10px !important;
}

/* Remove active button scaling and shadow in btn-group */
.btn-group .btn.active {
    transform: none !important;
}

.dt-paging {
    display: flex;
    justify-content: end;
}

.table thead tr th {
    padding-block: 10px !important;
}

.table thead th .form-check {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* Breadcrumb: SVG chevron separator for RTL and LTR */
.breadcrumb-item + .breadcrumb-item::before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin: 3px;
    background-color: var(--bs-breadcrumb-divider-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

/* Override Vuexy's RTL backslash - flip chevron horizontally for RTL */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before,
:dir(rtl) .breadcrumb-item + .breadcrumb-item::before {
    content: "" !important;
    transform: scaleX(-1);
}

/* DataTables loading indicator color override */
div.dt-processing > div:last-child > div {
    background: rgb(var(--bs-primary-rgb)) !important;
}

div.dt-processing > div:last-child > div:nth-child(1),
div.dt-processing > div:last-child > div:nth-child(2),
div.dt-processing > div:last-child > div:nth-child(3),
div.dt-processing > div:last-child > div:nth-child(4) {
    background: rgb(var(--bs-primary-rgb)) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Impersonation banner (fixed top; Vuexy offsets — same as erp)
   Pattern aligned with insta nursery impersonate banner
   ═══════════════════════════════════════════════════════════════ */

.impersonate-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1105;
    background: linear-gradient(135deg, #ff9f43 0%, #ffb976 50%, #ff9f43 100%);
    background-size: 200% 200%;
    animation: erp-impersonate-gradient 3s ease infinite;
    box-shadow: 0 2px 10px rgba(255, 159, 67, 0.3);
}

@keyframes erp-impersonate-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

}

.impersonate-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.35rem 1.25rem;
    max-width: 100%;
    margin: 0 auto;
}

.impersonate-banner-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.impersonate-icon {
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
    animation: erp-impersonate-pulse 1.5s ease-in-out infinite;
}

@keyframes erp-impersonate-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.08);
    }

}

.impersonate-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0 0.35rem;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
}

.impersonate-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.impersonate-title::after {
    content: '·';
    margin-inline: 0.35rem;
    font-weight: 400;
    opacity: 0.85;
}

.impersonate-message {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.impersonate-exit-form {
    flex-shrink: 0;
}

.impersonate-exit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: #ff9f43 !important;
    border: none;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.impersonate-exit-btn:hover {
    background: #ffffff;
    color: #e8890a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .impersonate-banner {
    background: linear-gradient(135deg, #c77730 0%, #e8890a 50%, #c77730 100%);
    background-size: 200% 200%;
    animation: erp-impersonate-gradient 3s ease infinite;
}

[data-bs-theme="dark"] .impersonate-exit-btn {
    background: rgba(34, 36, 48, 0.95);
    color: #ffb976 !important;
}

[data-bs-theme="dark"] .impersonate-exit-btn:hover {
    background: #222430;
    color: #ff9f43 !important;
}

/* Vuexy: fixed navbar sits below banner */
html.has-impersonate-banner.layout-navbar-fixed .layout-navbar {
    inset-block-start: var(--impersonation-banner-height) !important;
}

html.has-impersonate-banner.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal) .layout-page::before {
    inset-block-start: var(--impersonation-banner-height);
}

html.has-impersonate-banner.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: calc(4rem + var(--impersonation-banner-height)) !important;
}

html.has-impersonate-banner.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: calc(4.5rem + var(--impersonation-banner-height)) !important;
}

/* Sidebar + overlay: offset below banner on all breakpoints (desktop uses fixed menu at inset-block: 0) */
html.has-impersonate-banner.layout-menu-fixed .layout-menu,
html.has-impersonate-banner.layout-menu-fixed-offcanvas .layout-menu {
    inset-block-start: var(--impersonation-banner-height) !important;
    block-size: calc(100% - var(--impersonation-banner-height)) !important;
}

html.has-impersonate-banner .layout-overlay {
    inset-block-start: var(--impersonation-banner-height);
    block-size: calc(100% - var(--impersonation-banner-height)) !important;
}

html.has-impersonate-banner .drag-target {
    inset-block-start: var(--impersonation-banner-height);
    block-size: calc(100% - var(--impersonation-banner-height)) !important;
}

/* Modal / backdrop / Swal above fixed banner (banner z-index: 1105). Keep modal > banner; backdrop = modal − 1. */
html.has-impersonate-banner {
    --bs-modal-zindex: 1120;
}

html.has-impersonate-banner .modal {
    --bs-modal-zindex: 1120;
}

html.has-impersonate-banner .modal-backdrop {
    --bs-backdrop-zindex: 1119;
}

html.has-impersonate-banner .swal2-container {
    z-index: 1120;
}

@media (max-width: 767.98px) {
    .impersonate-banner-content {
        flex-wrap: nowrap;
        padding: 0.3rem 0.65rem;
    }

    .impersonate-title {
        font-size: 0.7rem;
    }

    .impersonate-message {
        font-size: 0.65rem;
    }

    :root {
        --impersonation-banner-height: 2.25rem;
    }

    html.has-impersonate-banner.layout-navbar-fixed .layout-navbar {
        inset-block-start: var(--impersonation-banner-height) !important;
    }

    html.has-impersonate-banner.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal) .layout-page::before {
        inset-block-start: var(--impersonation-banner-height);
    }

}

/* Dropzone: reset native button chrome on clickable area */
.dz-default .dz-button {
    background: none !important;
    outline: none !important;
    border: 0 !important;
}

.dropzone .dz-message::before {
    inset-block-start: 1rem !important;
}

.dropzone .dz-message {
    margin-block: 4rem 1rem !important
}

/* Previous experience cards: attachment collapse chevron */
.collapse-chevron {
    transition: transform 0.2s ease;
}

[aria-expanded="true"] .collapse-chevron {
    transform: rotate(180deg);
}

/* Admin command palette */
.command-palette {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1090;
}

.command-palette.is-open {
    display: block;
}

body.command-palette-open {
    overflow: hidden;
}

.command-palette-trigger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .7rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    font-size: .8125rem;
}

.command-palette-trigger:hover,
.command-palette-trigger:focus {
    border-color: rgba(var(--bs-primary-rgb), .5);
    color: var(--bs-primary);
    outline: 0;
}

.command-palette-trigger__shortcut,
.command-palette kbd {
    padding: .1rem .3rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .25rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    font-family: inherit;
    font-size: .7rem;
}

.command-palette__footer kbd + kbd {
    margin-inline-start: .25rem;
}

.command-palette__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(34, 48, 62, .55);
    backdrop-filter: blur(4px);
}

.command-palette__dialog {
    position: relative;
    width: min(42rem, calc(100% - 2rem));
    max-height: min(42rem, calc(100vh - 4rem));
    margin: 10vh auto 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    box-shadow: 0 1.5rem 4rem rgba(34, 48, 62, .28);
}

.command-palette__search {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.command-palette__input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--bs-body-color);
    background: transparent;
    font-size: 1rem;
}

.command-palette__input::placeholder {
    color: var(--bs-secondary-color);
}

.command-palette__close {
    border: 0;
    color: var(--bs-secondary-color);
    background: transparent;
}

.command-palette__results {
    max-height: min(32rem, calc(100vh - 13rem));
    overflow-y: auto;
    padding: .5rem;
}

.command-palette__group-label {
    display: block;
    padding: .6rem .75rem .4rem;
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.command-palette__result {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem;
    border: 0;
    border-radius: .5rem;
    color: var(--bs-body-color);
    background: transparent;
    text-align: start;
}

.command-palette__result:hover,
.command-palette__result.is-active {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .12);
}

.command-palette__result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: .4rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.command-palette__result-icon i {
    display: block;
    margin-inline-end: 0;
    line-height: 1;
}

.command-palette__result-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.command-palette__empty {
    padding: 2rem 1rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

.command-palette__footer {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.25rem;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

@media (max-width: 575.98px) {
    .command-palette__dialog {
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        margin-top: .5rem;
    }

    .command-palette__footer {
        display: none;
    }

    .command-palette__results {
        max-height: calc(100vh - 7rem);
    }
}
.language-translation-workflow {
    display: grid;
    grid-template-columns: minmax(76px, 1fr) 1.75rem minmax(76px, 1fr) 1.75rem minmax(76px, 1fr);
    min-width: 320px;
    padding: 0.75rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.16);
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.62);
}

.language-translation-workflow__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--bs-primary);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.language-translation-workflow__connector {
    align-self: start;
    height: 1px;
    margin-top: 1.05rem;
    background-color: rgba(var(--bs-primary-rgb), 0.3);
}

.language-translation-workflow__connector::after {
    display: block;
    width: 0.35rem;
    height: 0.35rem;
    margin-top: -0.15rem;
    margin-inline: auto;
    border-radius: 50%;
    content: '';
    background-color: var(--bs-primary);
}

.language-translation-workflow__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    color: var(--bs-primary);
    background-color: var(--bs-white);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.1);
}

@media (max-width: 767.98px) {
    .language-translation-workflow {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .language-translation-workflow {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .language-translation-workflow__step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: start;
    }

    .language-translation-workflow__connector {
        width: 1px;
        height: 0.75rem;
        margin: 0;
        margin-inline-start: 1.05rem;
    }

    .language-translation-workflow__connector::after {
        display: none;
    }
}
