/* ==========================================================================
   TL Commerce brand colors — global override for Dashmin purple theme
   Change --tl-brand here to update accent color project-wide.
   ========================================================================== */
:root {
    --tl-brand: #ff5A1f;
    --tl-brand-hover: #ff7545;
    --tl-brand-dark: #e64a10;
    --tl-brand-light: #fff0e6;
    --tl-brand-border: rgba(255, 90, 31, 0.35);
    --tl-brand-shadow: rgba(255, 90, 31, 0.45);
    --tl-brand-selected: rgba(255, 90, 31, 0.36);
}

/* Pagination */
.pagination .page-item {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: #333 !important;
    border: 1px solid transparent;
    border-radius: 2px;
}

.page-item .page-link {
    min-width: 40px;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    cursor: pointer;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0px !important;
}

.page-item .page-link:hover {
    z-index: 3;
    color: #fff;
    background-color: #ff7545;
    border-color: transparent;
}

.page-item .page-link:focus {
    color: #333;
    border: 1px solid #ddd;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #ff5A1f;
    border-color: transparent;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

.page-item:last-child .page-link {
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

/* form input */
.form-control {
    min-width: 120px;
}

.filter-area {
    gap: 10px;
    flex-wrap: wrap;
}

.filter-area .theme-input-style {
    width: unset;
}

@media (max-width: 575px) {
    .filter-area .theme-input-style {
        width: 100%;
    }
}

/**Datatable**/
table.dataTable.no-footer,
table th {
    border-color: #dee2e6;
}

/* input */
.invalid-input {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

/* //Dark Light Switcher */
.floating-mode-switcher-wrap {
    position: fixed;
    left: 22px;
    bottom: 80px;
    z-index: 9999;
}

/* Switchers */
.dl-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 24px;
    cursor: pointer;
    user-select: none;
}

.dl-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dl-switch .dl-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 1px solid rgb(0 0 0 / 70%);
    transition: 0.4s;
    border-radius: 50px;
    box-shadow: 3px 3px 30px rgb(0 0 0 / 3%);
}

.dl-light,
.dl-dark {
    position: absolute;
    left: 10px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    text-transform: uppercase;
    color: #3b3b3b;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.4s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.dl-light {
    left: auto;
    right: 10px;
}

.dl-dark {
    opacity: 0;
    visibility: hidden;
}

.dl-switch .dl-slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 0px;
    top: -4px;
    background-color: #040e29;
    transition: 0.4s;
    border-radius: 50%;
    z-index: 1;
    background-image: url("/public/backend/assets/img/svg/dark.svg");
    background-repeat: no-repeat;
}

.dl-switch input:checked+.dl-slider:before {
    background-color: #fb9426;
    background-image: url("/public/backend/assets/img/svg/light.svg");
    background-repeat: no-repeat;
}

.dl-switch input:checked~.dl-light {
    opacity: 0;
    visibility: hidden;
}

.dl-switch input:checked~.dl-dark {
    opacity: 1;
    visibility: visible;
}

.dl-switch input:checked+.dl-slider:before {
    transform: translateX(50px);
}

/*email template iframe*/
.et-iframe {
    min-height: 300px;
    resize: auto;
    border: none;
}

.resize-verticle {
    resize: vertical;
}

/*Designing pre element*/
.code-toolbar pre {
    background-color: #f0f0f0;
    border: none;
}

/*customized image in table*/
.img-45 {
    width: 45px;
    height: 45px;
}

.img-70 {
    width: 70px;
    height: 70px;
}

.img-80 {
    width: 80px;
    height: 80px;
}

.img-100 {
    width: 100px;
    height: 100px;
}

.gap-10 {
    gap: 10px;
}

.time {
    min-width: fit-content;
}

@media (max-width: 575px) {
    .details-item {
        flex-direction: column;
    }

    .details-item .text {
        margin: 0;
    }
}

/*Global classes*/
.media_preview_image {
    max-block-size: 71vh;
}

.word-break {
    word-break: break-all;
}

.max-content {
    width: max-content;
}

.attachment-info .thumbnail img {
    object-fit: contain;
}

div#filtered_media {
    max-block-size: 53vh;
    overflow-y: auto;
    margin-block-start: 20px;
    padding: 5px;
}

.all-attachments ul {
    margin-block-start: 0px;
}

.all-attachments ul li {
    max-block-size: 133px;
    overflow: hidden;
}

.attachment-info {
    min-height: 130px;
}

/*Custom btn*/
.custom-btn,
.btn.custom-btn {
    padding: 5px 12px;
    font-weight: 500;
    line-height: 1;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    background: #ff5A1f !important;
    border: 1px solid #e64a10 !important;
    color: #ffffff !important;
    text-transform: capitalize;
    outline: 0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    transition: background 0.2s ease;
}

.custom-btn:hover,
.btn.custom-btn:hover {
    background: #ff7545 !important;
    border-color: #e07b00 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.custom-btn:focus,
.custom-btn:active,
.btn.custom-btn:focus,
.btn.custom-btn:active {
    background: #ff7545 !important;
    border-color: #e07b00 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Permalink URL — orange gradient text */
.permalink-input-group a {
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff5A1f;
    text-decoration: none;
    font-weight: 500;
    box-shadow: none !important;
}

.permalink-input-group a:hover {
    background: linear-gradient(90deg, #ff4500, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff5A1f;
    text-decoration: underline;
}

/* Edit pill inside permalink link — solid orange, not gradient */
.permalink-input-group a .custom-btn,
.permalink-input-group a .permalink-edit-btn {
    background: #ff5A1f !important;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    border: 1px solid #e64a10 !important;
    box-shadow: none !important;
}

.permalink-input-group a .custom-btn:hover,
.permalink-input-group a .permalink-edit-btn:hover {
    background: #ff7545 !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    border-color: #e07b00 !important;
}

/*Tree view css*/
.tree-branch>.contents .branch-wrapper {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 0px;
    box-shadow: none;
}

.menu-item-settings {
    border: 1px solid #eee;
    max-width: 450px;
    padding: 15px;
    border-block-start-width: 0px;
}

/**area disabled*/
.area-disabled,
.area-disabled * {
    opacity: 0.8;
    pointer-events: none;
}

.w-20 {
    width: 20px;
}

@media (max-width: 780px) {
    .menu-management-frame {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .add-menu-item {
        margin-bottom: 30px;
    }
}

/* .select2-container {
    width: 300px !important;
} */

@media (max-width: 545px) {
    .menu-sm-colunm {
        flex-direction: column;
    }

    .menu-name-label {
        align-self: flex-start;
        margin-bottom: 10px;
    }

    .select2 {
        margin-bottom: 20px;
    }
}

/* Order details page */
.payment-status {
    gap: 15px;
}

.img-50 {
    height: 50px;
    width: 50px;
}

.product-info {
    gap: 10px;
}

.shipping-info {
    gap: 5px;
}


.product-select-box {
    border: 1px dotted;
    padding: 5px 8px;
}

/* order Status  */
.pending {
    color: #ddd;
    background-color: #ffc107;
}

.delivered {
    color: #ddd;
    background-color: #28a745;
}

.processing {
    color: #ddd;
    background-color: #007bff;
}

.shipped {
    color: #ddd;
    background-color: #6c757d;
}

.cancelled {
    color: #ddd;
    background-color: #ff1100;
}

.paid {
    color: #ddd;
    background-color: #28a745;
}

.unpaid {
    color: #ddd;
    background-color: #ff1100;
}

.color-picker {
    width: 50px !important;
    height: 40px !important;
}

#packages .p_header-img {
    height: 120px;
}

#packages .price-header h3 {
    opacity: 1;
}

.billing-card.auth-card{
    padding-top: 80px;
}

.billing-card ul{
    gap: 5px;
    justify-content: center;
}

.billing-card ul li{
    flex-grow: 1;
    border-top-width: 1px !important;
}

#packages .price-header > div{
    height: unset;
    padding: 40px;
}

.disabled-section {
    opacity: 0.6;
    pointer-events: none;
}

/* Orange primary buttons — shared admin style */
button.btn-orange,
a.btn-orange {
    background: #ff5A1f !important;
    border-color: #e64a10 !important;
    color: #fff !important;
    transition: background 0.2s ease;
    border-radius: 6px !important;
    box-shadow: none !important;
}

button.btn-orange:hover,
a.btn-orange:hover {
    background: #ff7545 !important;
    border-color: #e07b00 !important;
    color: #fff !important;
    box-shadow: none !important;
}

button.btn-orange:focus,
button.btn-orange:active,
button.btn-orange:active:focus {
    background: #ff7545 !important;
    border-color: #e07b00 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Orange gradient action buttons — all admin primary .btn variants */
body[class*="admin-"] a.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange),
body[class*="admin-"] button.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange),
body[class*="admin-"] input.btn.long:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary):not(.btn-orange),
body[class*="admin-"] button.btn.sm:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange) {
    background: linear-gradient(90deg, #ff8c00, #ff4500) !important;
    border-color: #e64a10 !important;
    color: #fff !important;
    transition: background 0.2s ease;
    border-radius: 6px !important;
    box-shadow: none !important;
}

body[class*="admin-"] a.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):hover,
body[class*="admin-"] button.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):hover,
body[class*="admin-"] input.btn.long:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary):not(.btn-orange):hover,
body[class*="admin-"] button.btn.sm:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):hover {
    background: linear-gradient(90deg, #ff4500, #ff8c00) !important;
    border-color: #e07b00 !important;
    color: #fff !important;
    box-shadow: none !important;
}

body[class*="admin-"] a.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):focus,
body[class*="admin-"] a.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):active,
body[class*="admin-"] a.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):active:focus,
body[class*="admin-"] button.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):focus,
body[class*="admin-"] button.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):active,
body[class*="admin-"] button.btn.long:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):active:focus,
body[class*="admin-"] input.btn.long:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary):not(.btn-orange):focus,
body[class*="admin-"] input.btn.long:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary):not(.btn-orange):active,
body[class*="admin-"] input.btn.long:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary):not(.btn-orange):active:focus,
body[class*="admin-"] button.btn.sm:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):focus,
body[class*="admin-"] button.btn.sm:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):active,
body[class*="admin-"] button.btn.sm:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):not(.btn-orange):active:focus {
    background: linear-gradient(90deg, #ff4500, #ff8c00) !important;
    border-color: #e07b00 !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fff !important;
}

/* Theme/plugin card icon area — orange instead of default purple */
body[class*="admin-"] .app-items .app-item .app-icon {
    background: linear-gradient(90deg, #ff8c00, #ff4500) !important;
}

/* Theme cards — rounded corners (Themes page only) */
body[class*="admin-"] .theme-items .app-item {
    border-radius: 8px !important;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

body[class*="admin-"] .theme-items .app-item .app-icon img {
    display: block;
    width: 100%;
}

body[class*="admin-"] .theme-items .app-item:hover .app-name {
    color: #ff5A1f !important;
}

/* Manage Widgets page — rounded cards */
body[class*="admin-"] .widgets-page .card {
    border-radius: 8px !important;
    overflow: hidden;
}

body[class*="admin-"] .widgets-page .widget-item.widget-border {
    border-radius: 8px;
    overflow: hidden;
}

/* Confirmation modals — brand primary on submit buttons */
body[class*="admin-"] .modal[class*="delete"] button.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary),
body[class*="admin-"] .modal[class*="delete"] input.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary),
body[class*="admin-"] .modal[class*="delete"] button[type="submit"]:not(.btn-danger),
body[class*="admin-"] .modal[class*="delete"] input[type="submit"]:not(.btn-danger),
body[class*="admin-"] .delete-modal button.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary),
body[class*="admin-"] .delete-modal input.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary),
body[class*="admin-"] .delete-modal button[type="submit"]:not(.btn-danger),
body[class*="admin-"] .delete-modal input[type="submit"]:not(.btn-danger) {
    background-color: var(--tl-brand) !important;
    background-image: none !important;
    border-color: var(--tl-brand) !important;
    box-shadow: 0 5px 10px var(--tl-brand-shadow) !important;
    color: #fff !important;
}

body[class*="admin-"] .modal[class*="delete"] button.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):hover,
body[class*="admin-"] .modal[class*="delete"] input.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary):hover,
body[class*="admin-"] .modal[class*="delete"] button[type="submit"]:not(.btn-danger):hover,
body[class*="admin-"] .modal[class*="delete"] input[type="submit"]:not(.btn-danger):hover,
body[class*="admin-"] .delete-modal button.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-success):not(.btn-info):not(.btn-secondary):hover,
body[class*="admin-"] .delete-modal input.btn.long[type="submit"]:not(.btn-danger):not(.btn-white):not(.btn-info):not(.btn-secondary):hover,
body[class*="admin-"] .delete-modal button[type="submit"]:not(.btn-danger):hover,
body[class*="admin-"] .delete-modal input[type="submit"]:not(.btn-danger):hover {
    background-color: var(--tl-brand-hover) !important;
    background-image: none !important;
    border-color: var(--tl-brand-hover) !important;
    box-shadow: 0 5px 10px var(--tl-brand-shadow) !important;
    color: #fff !important;
}

/* Orange gradient links — shared admin style */
a.btn-link:not(.text-danger),
button.btn-link:not(.text-danger),
.menu-locations-table .locations-row-links a {
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff5A1f;
    text-decoration: none;
    border: none;
    box-shadow: none !important;
}

a.btn-link:not(.text-danger):hover,
button.btn-link:not(.text-danger):hover,
.menu-locations-table .locations-row-links a:hover {
    background: linear-gradient(90deg, #ff4500, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff5A1f;
    text-decoration: underline;
}

/* Menu builder — Add to Menu buttons */
button.submit-add-to-menu,
input.submit-add-to-menu {
    background: #ff5A1f !important;
    border: 1px solid #e64a10 !important;
    color: #fff !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: background 0.2s ease;
    cursor: pointer;
}

button.submit-add-to-menu:hover,
input.submit-add-to-menu:hover {
    background: #ff7545 !important;
    border-color: #e07b00 !important;
    color: #fff !important;
}

button.submit-add-to-menu:focus,
button.submit-add-to-menu:active,
input.submit-add-to-menu:focus,
input.submit-add-to-menu:active {
    background: #ff7545 !important;
    border-color: #e07b00 !important;
    color: #fff !important;
    outline: none !important;
}

/* Admin header RTL support */
.header .header-user-info {
    margin-left: 60px;
}

.admin-rtl .header,
.admin-rtl_dark .header {
    flex-direction: row-reverse;
}

.admin-rtl .header .w-100 .row,
.admin-rtl_dark .header .w-100 .row {
    flex-direction: row-reverse;
}

.admin-rtl .header .nav,
.admin-rtl_dark .header .nav {
    flex-direction: row-reverse;
}

.admin-rtl .header .header-user-info,
.admin-rtl_dark .header .header-user-info {
    margin-left: 0;
    margin-right: 60px;
}

.admin-rtl .header .nav > li.ml-3,
.admin-rtl_dark .header .nav > li.ml-3 {
    margin-left: 0 !important;
    margin-right: 1rem;
}

.admin-rtl .header .pl-20,
.admin-rtl_dark .header .pl-20 {
    padding-left: 0 !important;
    padding-right: 20px;
}

.admin-rtl .header .dropdown-menu.style--three .dropdown-item img,
.admin-rtl_dark .header .dropdown-menu.style--three .dropdown-item img {
    margin-right: 0 !important;
    margin-left: 0.5rem;
}

/* Admin sidebar RTL: Lucide icons before Arabic menu labels */
.admin-rtl .sidebar .sidebar-body li:has(> a svg),
.admin-rtl_dark .sidebar .sidebar-body li:has(> a svg) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.admin-rtl .sidebar .sidebar-body li > a:has(svg),
.admin-rtl_dark .sidebar .sidebar-body li > a:has(svg) {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
    padding-right: 0;
}

.admin-rtl .sidebar .sidebar-body li > a:has(svg) .link-title,
.admin-rtl_dark .sidebar .sidebar-body li > a:has(svg) .link-title {
    order: 1;
    flex: 1;
    text-align: right;
    margin-left: 0 !important;
    margin-right: 0;
}

.admin-rtl .sidebar .sidebar-body li > a:has(svg) svg,
.admin-rtl_dark .sidebar .sidebar-body li > a:has(svg) svg {
    order: 2;
    margin-left: 8px !important;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.admin-rtl .sidebar .sidebar-body .sub-menu a.pl-2,
.admin-rtl_dark .sidebar .sidebar-body .sub-menu a.pl-2 {
    padding-left: 0 !important;
    padding-right: 0.5rem;
}

.admin-rtl .sidebar .sidebar-header .sidebar-toogle-pin,
.admin-rtl_dark .sidebar .sidebar-header .sidebar-toogle-pin {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Sidebar pin: align with menu icon column */
.sidebar .sidebar-header .sidebar-toogle-pin {
    margin-left: 8px !important;
    margin-right: 0;
    display: flex;
    align-items: center;
}

/* General settings form RTL */
.admin-rtl .general-settings-page h4,
.admin-rtl_dark .general-settings-page h4,
.admin-rtl .general-settings-form .form-row label,
.admin-rtl_dark .general-settings-form .form-row label,
.admin-rtl .general-settings-page .invalid-input,
.admin-rtl_dark .general-settings-page .invalid-input {
    text-align: right !important;
}

.admin-rtl .general-settings-form .form-row > .col-md-4,
.admin-rtl_dark .general-settings-form .form-row > .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

.admin-rtl .general-settings-form .form-row label,
.admin-rtl_dark .general-settings-form .form-row label {
    display: block;
    width: 100%;
}

.admin-rtl .general-settings-page .d-flex.justify-content-start,
.admin-rtl_dark .general-settings-page .d-flex.justify-content-start {
    justify-content: flex-end !important;
}

.admin-rtl .general-settings-form .image-box .d-flex,
.admin-rtl_dark .general-settings-form .image-box .d-flex {
    justify-content: flex-end;
}

.admin-rtl .general-settings-page .general-settings-submit,
.admin-rtl_dark .general-settings-page .general-settings-submit {
    text-align: left;
}

.admin-rtl .general-settings-page .offset-md-2,
.admin-rtl_dark .general-settings-page .offset-md-2 {
    margin-left: 0;
    margin-right: 16.666667%;
}

.admin-rtl .general-settings-page select.theme-input-style,
.admin-rtl_dark .general-settings-page select.theme-input-style {
    background-position: left 12px bottom 10px;
    padding-right: 0.75rem;
    padding-left: 2rem;
}

.admin-rtl .general-settings-page .preview-image-wrapper .remove-btn,
.admin-rtl_dark .general-settings-page .preview-image-wrapper .remove-btn {
    right: auto;
    left: -5px;
}

.admin-rtl .general-settings-page .theme-input-style,
.admin-rtl_dark .general-settings-page .theme-input-style,
.admin-rtl .general-settings-page textarea.theme-input-style,
.admin-rtl_dark .general-settings-page textarea.theme-input-style,
.admin-rtl .general-settings-page .select2-container--classic .select2-selection--single .select2-selection__rendered,
.admin-rtl_dark .general-settings-page .select2-container--classic .select2-selection--single .select2-selection__rendered {
    text-align: right;
}

.admin-rtl .general-settings-page .select2-container--classic .select2-selection--single,
.admin-rtl_dark .general-settings-page .select2-container--classic .select2-selection--single {
    text-align: right;
}

.admin-rtl .general-settings-page .note-editor .note-editable,
.admin-rtl_dark .general-settings-page .note-editor .note-editable {
    direction: rtl;
    text-align: right;
}

/* Orange gradient toggles — all admin switch variants */
.switch input:checked ~ .control {
    background-color: #fff0e6 !important;
    border-color: #ff5A1f !important;
}

.switch input:checked ~ .control:after,
.switch input:checked ~ .control .check {
    background: linear-gradient(90deg, #ff8c00, #ff4500) !important;
}

.switch.glow input:checked ~ .control:after,
.switch.glow input:checked ~ .control .check {
    box-shadow: 0 5px 10px rgba(255, 90, 31, 0.45) !important;
}

.switch.primary input:checked ~ .control,
.switch.brand input:checked ~ .control,
.switch.success input:checked ~ .control,
.switch.info input:checked ~ .control,
.switch.warning input:checked ~ .control,
.switch.danger input:checked ~ .control {
    background-color: #fff0e6 !important;
    border-color: #ff5A1f !important;
}

.switch.primary input:checked ~ .control:after,
.switch.brand input:checked ~ .control:after,
.switch.success input:checked ~ .control:after,
.switch.info input:checked ~ .control:after,
.switch.warning input:checked ~ .control:after,
.switch.danger input:checked ~ .control:after {
    background: linear-gradient(90deg, #ff8c00, #ff4500) !important;
    box-shadow: 0 5px 10px rgba(255, 90, 31, 0.45) !important;
}

/* Orange pill filter buttons — shared admin style (inhouse orders pattern) */
.filter-area .btn-filter-item {
    background: transparent !important;
    color: #FF5A1F !important;
    border: 1px solid #FF5A1F !important;
    border-radius: 20px;
    padding: 4px 15px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.filter-area .btn-filter-item:hover {
    border-color: #fff !important;
    color: #fff !important;
    background: #FF5A1F !important;
}

.filter-area .btn-filter-item.active {
    background-color: #FF5A1F !important;
    border-color: #FF5A1F;
    color: #fff !important;
}

.pagination .page-item .page-link {
    color: #ff5A1f;
    border-color: #dee2e6;
}

/* Blog-style list pagination — override theme purple .pagination ul li */
.pagination ul li {
    border-color: rgba(255, 90, 31, 0.35) !important;
}

.pagination ul li.current {
    background-color: #ff5A1f !important;
    border-color: #ff5A1f !important;
}

.pagination ul li.current a {
    color: #fff !important;
}

.pagination ul li a:hover {
    color: #ff5A1f !important;
}

/* Orange admin content links — override theme purple .text-primary / a:hover */
body[class*="admin-"] .main-content a.text-primary,
body[class*="admin-"] .main-content a.text-success,
body[class*="admin-"] .main-content a.text-warning {
    color: #ff5A1f !important;
}

body[class*="admin-"] .main-content a.text-primary:hover,
body[class*="admin-"] .main-content a.text-success:hover,
body[class*="admin-"] .main-content a.text-warning:hover {
    color: #ff7545 !important;
}

body[class*="admin-"] .main-content a:not(.btn):not(.btn-filter-item):not(.btn-orange):not(.btn-link):not(.text-danger):not(.header-icon):not(.notification-icon):not(.dropdown-item):not(.theme_option_link):not(.parent-menu) {
    color: #ff5A1f;
}

body[class*="admin-"] .main-content a:not(.btn):not(.btn-filter-item):not(.btn-orange):not(.btn-link):not(.text-danger):not(.header-icon):not(.notification-icon):not(.dropdown-item):not(.theme_option_link):not(.parent-menu):hover {
    color: #ff7545 !important;
}

/* Theme Options sidebar — default black menu links */
body[class*="admin-"] .theme-option-sidebar a.theme_option_link:not(.active),
body[class*="admin-"] .theme-option-sidebar a.parent-menu:not(.active) {
    color: #333 !important;
}

body[class*="admin-"] .theme-option-sidebar a.theme_option_link:not(.active) span,
body[class*="admin-"] .theme-option-sidebar a.parent-menu:not(.active) span {
    color: #333 !important;
}

/* ==========================================================================
   Dashmin purple theme overrides — cards, forms, utilities
   ========================================================================== */

/* Selection highlight */
body[class*="admin-"] ::selection {
    background-color: var(--tl-brand) !important;
}

body[class*="admin-"] ::-moz-selection {
    background-color: var(--tl-brand) !important;
}

/* c1 / c2 utility classes */
body[class*="admin-"] .c1,
body[class*="admin-"] .aside-body li a.active,
body[class*="admin-"] .aside-body li:hover a,
body[class*="admin-"] .aside-body li.active a {
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .c1-bg {
    background-color: var(--tl-brand) !important;
}

body[class*="admin-"] .c1-bo {
    border-color: var(--tl-brand) !important;
}

body[class*="admin-"] .c2 {
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .c2-bg {
    background-color: var(--tl-brand) !important;
}

body[class*="admin-"] .c2-bo {
    border-color: var(--tl-brand) !important;
}

/* Bootstrap-like primary utilities */
body[class*="admin-"] .bg-primary {
    background-color: var(--tl-brand) !important;
}

body[class*="admin-"] .bg-primary-light {
    background-color: var(--tl-brand-light) !important;
}

body[class*="admin-"] .text-primary {
    color: var(--tl-brand) !important;
}

/* Border buttons */
body[class*="admin-"] .btn.btn-border {
    border-color: var(--tl-brand) !important;
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .btn.btn-border:hover {
    background-color: var(--tl-brand) !important;
    border-color: var(--tl-brand) !important;
    color: #fff !important;
}

/* Checkboxes — replace purple outline and tick */
body[class*="admin-"] .custom-checkbox .checkmark {
    background-color: var(--tl-brand-light) !important;
    border-color: var(--tl-brand) !important;
}

body[class*="admin-"] .custom-checkbox .checkmark:after {
    border-color: var(--tl-brand) !important;
}

body[class*="admin-"] input[type="checkbox"] {
    border-color: var(--tl-brand) !important;
}

/* Chips / tags — active and hover outlines */
body[class*="admin-"] .chip .chip-content .img.icon:hover,
body[class*="admin-"] .chip .chip-content .img.p_nav-link,
body[class*="admin-"] .chip .chip-content .about-nav-tab a.img.active,
body[class*="admin-"] .about-nav-tab .chip .chip-content a.img.active,
body[class*="admin-"] .chip .chip-content .img.iconwrap,
body[class*="admin-"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--tl-brand-light) !important;
    color: var(--tl-brand) !important;
    border-color: var(--tl-brand) !important;
}

/* Select2 — open/focus borders and highlights */
body[class*="admin-"] .select2-container--classic.select2-container--open .select2-selection--single,
body[class*="admin-"] .select2-container--classic.select2-container--open .select2-selection--multiple,
body[class*="admin-"] .select2-container--default.select2-container--open .select2-selection--single,
body[class*="admin-"] .select2-container--default.select2-container--open .select2-selection--multiple,
body[class*="admin-"] .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--tl-brand) !important;
}

body[class*="admin-"] .select2-container--classic.select2-container--open .select2-dropdown,
body[class*="admin-"] .select2-container--default.select2-container--open .select2-dropdown {
    border-color: var(--tl-brand) !important;
}

body[class*="admin-"] .select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable,
body[class*="admin-"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--tl-brand) !important;
}

body[class*="admin-"] .select2-results__option--selected {
    background: var(--tl-brand-selected) !important;
}

/* Media picker — selected attachment ring */
body[class*="admin-"] .all-attachments ul li.selected {
    box-shadow: 0 0 2px 3px var(--tl-brand), inset 0 0 0 7px #fff !important;
}

/* Unchecked switch default border */
body[class*="admin-"] .switch .control {
    border-color: var(--tl-brand-border) !important;
}

/* Multiselect media wrapper — moved from head.blade.php inline styles */
#multiselectMediaWrapper {
    padding: 8px 17px;
    border: 1px solid gray;
}

div#multiselectMediaWrapper.active {
    background: var(--tl-brand) !important;
    color: #fff;
    border-color: var(--tl-brand) !important;
}

/* ==========================================================================
   Admin sidebar navigation — orange pill active states
   ========================================================================== */

/* Suppress Dashmin left-bar indicator (pill style replaces it) */
body[class*="admin-"] .sidebar .sidebar-body li.active:before,
body[class*="admin-"] .sidebar .sidebar-body li:hover:before {
    background-color: transparent !important;
}

/* Parent WITH sub-menu: always transparent, no background in any state */
body[class*="admin-"] .sidebar .nav li:has(> .sub-menu) > a,
body[class*="admin-"] .sidebar .nav li:has(> .sub-menu) > a:hover,
body[class*="admin-"] .sidebar .nav li:has(> .sub-menu).active > a,
body[class*="admin-"] .sidebar .nav li:has(> .sub-menu).active > a:hover {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Parent WITH sub-menu hover: only font + icon turn orange */
body[class*="admin-"] .sidebar .nav li:has(> .sub-menu) > a:hover,
body[class*="admin-"] .sidebar .nav li:has(> .sub-menu).active > a:hover {
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .sidebar .nav li:has(> .sub-menu) > a:hover svg,
body[class*="admin-"] .sidebar .nav li:has(> .sub-menu).active > a:hover svg {
    stroke: var(--tl-brand) !important;
}

/* Standalone active parent — Customers, File Manager, Dashboard */
body[class*="admin-"] .sidebar .nav > li.active:not(:has(> .sub-menu)) > a {
    background-color: var(--tl-brand) !important;
    color: #fff !important;
    border-radius: 12px;
}

body[class*="admin-"] .sidebar .nav > li.active:not(:has(> .sub-menu)) > a .link-title {
    color: #fff !important;
}

body[class*="admin-"] .sidebar .nav > li.active:not(:has(> .sub-menu)) > a svg {
    stroke: #fff !important;
}

/* Standalone parent hover */
body[class*="admin-"] .sidebar .nav > li:not(:has(> .sub-menu)) > a:hover {
    background-color: var(--tl-brand) !important;
    color: #fff !important;
    border-radius: 12px;
}

body[class*="admin-"] .sidebar .nav > li:not(:has(> .sub-menu)) > a:hover .link-title {
    color: #fff !important;
}

body[class*="admin-"] .sidebar .nav > li:not(:has(> .sub-menu)) > a:hover svg {
    stroke: #fff !important;
}

/* Parent WITH sub-menu that is currently OPEN: keep font orange */
body[class*="admin-"] .sidebar .nav li.sub-menu-opened:has(> .sub-menu) > a {
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .sidebar .nav li.sub-menu-opened:has(> .sub-menu) > a .link-title {
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .sidebar .nav li.sub-menu-opened:has(> .sub-menu) > a svg {
    stroke: var(--tl-brand) !important;
}

/* Active child: orange background (leaf items only, not nested parents) */
body[class*="admin-"] .sidebar .nav .sub-menu > li.active:not(:has(> .sub-menu)) > a {
    background-color: var(--tl-brand) !important;
    color: #fff !important;
    border-radius: 12px;
}

body[class*="admin-"] .sidebar .nav .sub-menu > li.active:not(:has(> .sub-menu)) > a svg {
    stroke: #fff !important;
}

/* Child hover: only font color, no background */
body[class*="admin-"] .sidebar .nav .sub-menu > li:not(:has(> .sub-menu)) > a:hover {
    background-color: transparent !important;
    color: var(--tl-brand) !important;
    text-decoration: none;
}

/* Active child being hovered: keep orange background */
body[class*="admin-"] .sidebar .nav .sub-menu > li.active:not(:has(> .sub-menu)) > a:hover {
    background-color: var(--tl-brand) !important;
    color: #fff !important;
}

/* Locations / nested parent (has sub-menu): transparent always */
body[class*="admin-"] .sidebar .nav .sub-menu > li:has(> .sub-menu) > a,
body[class*="admin-"] .sidebar .nav .sub-menu > li:has(> .sub-menu) > a:hover,
body[class*="admin-"] .sidebar .nav .sub-menu > li:has(> .sub-menu).active > a,
body[class*="admin-"] .sidebar .nav .sub-menu > li:has(> .sub-menu).active > a:hover {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body[class*="admin-"] .sidebar .nav .sub-menu > li:has(> .sub-menu) > a:hover {
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .sidebar .sidebar-body .nav .sub-menu > li.sub-menu-opened:has(> .sub-menu) > a {
    color: var(--tl-brand) !important;
}

body[class*="admin-"] .sidebar .sidebar-body .nav .sub-menu > li:has(> .sub-menu).active:before,
body[class*="admin-"] .sidebar .sidebar-body .nav .sub-menu > li:has(> .sub-menu).sub-menu-opened:before {
    background-color: transparent !important;
}

/* Locations grandchild active */
body[class*="admin-"] .sidebar .nav .sub-menu .sub-menu > li.active > a {
    background-color: var(--tl-brand) !important;
    color: #fff !important;
    border-radius: 12px;
}

body[class*="admin-"] .sidebar .sidebar-body .nav .sub-menu .sub-menu > li > a:hover {
    background-color: transparent !important;
    color: var(--tl-brand) !important;
    text-decoration: none;
}

body[class*="admin-"] .sidebar .nav .sub-menu .sub-menu > li.active > a:hover {
    background-color: var(--tl-brand) !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    .hide-menu {
        display: none !important;
    }
}

/* Web admin notification permission banner */
.web-notification-permission-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 16px;
    z-index: 1080;
    max-width: 520px;
    margin: 0 auto;
    pointer-events: none;
}

@media (max-width: 900px) {
    .web-notification-permission-banner {
        display: none !important;
    }
}

.web-notification-permission-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--tl-brand-border, rgba(255, 90, 31, 0.35));
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}

.web-notification-permission-banner__text {
    flex: 1 1 220px;
    min-width: 0;
}

.web-notification-permission-banner__text strong {
    display: block;
    margin-bottom: 2px;
    color: #1f2937;
}

.web-notification-permission-banner__text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.web-notification-permission-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.web-notification-permission-banner__actions .btn {
    box-shadow: none !important;
}

.web-notification-permission-banner__actions .btn.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    border-radius: 0.2rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

.web-notification-permission-banner__actions #web-notification-enable-btn {
    background: linear-gradient(90deg, #ff8c00, #ff4500) !important;
    background-image: linear-gradient(90deg, #ff8c00, #ff4500) !important;
    border: 1px solid #e64a10 !important;
    color: #fff !important;
}

.web-notification-permission-banner__actions #web-notification-enable-btn:hover,
.web-notification-permission-banner__actions #web-notification-enable-btn:focus,
.web-notification-permission-banner__actions #web-notification-enable-btn:active {
    background: linear-gradient(90deg, #ff4500, #ff8c00) !important;
    background-image: linear-gradient(90deg, #ff4500, #ff8c00) !important;
    border-color: #e07b00 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

body.admin-dark .web-notification-permission-banner__inner,
body[class*="admin-dark"] .web-notification-permission-banner__inner {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.12);
}

body.admin-dark .web-notification-permission-banner__text strong,
body[class*="admin-dark"] .web-notification-permission-banner__text strong {
    color: #f9fafb;
}

body.admin-dark .web-notification-permission-banner__text p,
body[class*="admin-dark"] .web-notification-permission-banner__text p {
    color: #d1d5db;
}