:root {
    --app-primary: #2c3e50;
    --app-primary-rgb: 44, 62, 80;
    --app-primary-hover: #233240;
    --app-primary-emphasis: #1a2530;
    --app-primary-subtle: #eaeced;
    --app-primary-border: #959fa7;
    --app-secondary: #e57f25;
    --app-secondary-rgb: 229, 127, 37;
    --app-secondary-hover: #cf6e18;
    --app-secondary-emphasis: #a9530e;
    --app-secondary-subtle: #fcf2e9;
    --app-secondary-border: #f3c49b;
    --app-gray: #f4f5f6;
    --app-gray-rgb: 244, 245, 246;
    --app-gray-hover: #dfe2e5;
    --app-gray-emphasis: #62676c;
    --app-gray-subtle: #fafafa;
    --app-gray-border: #dfe2e5;
    --app-success: #28c76f;
    --app-success-rgb: 40, 199, 111;
    --app-success-hover: #24b263;
    --app-success-emphasis: #145f35;
    --app-success-subtle: #eaf9f1;
    --app-success-border: #a9e8c5;
    --app-danger: #ea5455;
    --app-danger-rgb: 234, 84, 85;
    --app-danger-hover: #d34b4c;
    --app-danger-emphasis: #702829;
    --app-danger-subtle: #fdeeee;
    --app-danger-border: #f5babb;
    --app-warning: #ff9f43;
    --app-warning-rgb: 255, 159, 67;
    --app-warning-hover: #e68f3c;
    --app-warning-emphasis: #7a4c20;
    --app-warning-subtle: #fff5ec;
    --app-warning-border: #ffd3aa;
    --app-info: #00cfe8;
    --app-info-rgb: 0, 207, 232;
    --app-info-hover: #00bad1;
    --app-info-emphasis: #006370;
    --app-info-subtle: #e6fafc;
    --app-info-border: #99edf3;
    --app-light: #f8f9fa;
    --app-light-rgb: 248, 249, 250;
    --app-light-hover: #e9ecef;
    --app-light-emphasis: #495057;
    --app-light-subtle: #fcfcfd;
    --app-light-border: #e9ecef;
    --app-dark: #212529;
    --app-dark-rgb: 33, 37, 41;
    --app-dark-hover: #1c1f23;
    --app-dark-emphasis: #101214;
    --app-dark-subtle: #e9eaeb;
    --app-dark-border: #909294;
    --app-page-bg: var(--app-gray);
    --app-surface: #fff;
    --app-surface-elevated: #fff;
    --app-surface-soft: var(--app-gray-subtle);
    --app-muted-bg: #eef0f2;
    --app-heading: var(--app-primary);
    --app-body: #566573;
    --app-text-secondary: #4b5563;
    --app-text-muted: #6c757d;
    --app-text-inverse: #fff;
    --app-border: #e5e5e5;
    --app-border-soft: #eef0f2;
    --app-border-strong: #959fa7;
    --app-control-bg: var(--app-gray);
    --app-control-disabled: #e4e4e4;
    --app-placeholder: #aaa;
    --app-control-focus: var(--app-primary);
    --app-table-header-bg: var(--app-primary);
    --app-table-stripe-bg: var(--app-gray-subtle);
    --app-table-hover-bg: var(--app-secondary-subtle);
    --app-table-border: var(--app-border);
    --app-link: var(--app-primary);
    --app-link-hover: var(--app-secondary);
    --app-switch-active-bg: var(--app-primary);
    --app-switch-inactive-bg: #ccc;
    --app-switch-disabled-bg: var(--app-control-disabled);
    --app-switch-focus-rgb: var(--app-secondary-rgb);
    --app-media-bg: var(--app-gray);
    --app-media-border: var(--app-secondary-border);
    --app-media-accent: var(--app-secondary);
    --app-success-surface: var(--app-success-subtle);
    --app-danger-surface: var(--app-danger-subtle);
    --app-warning-surface: var(--app-warning-subtle);
    --app-info-surface: var(--app-info-subtle);
    --app-shadow-rgb: 13, 18, 38;
    --app-backdrop-rgb: 0, 0, 0;
    --app-overlay-rgb: 44, 62, 80;
    --app-font-family: "Cairo", sans-serif;
    --app-font-size-xs: 0.75rem;
    --app-font-size-sm: 0.875rem;
    --app-font-size-md: 1rem;
    --app-font-size-lg: 1.125rem;
    --app-font-size-xl: 1.25rem;
    --app-font-weight-regular: 400;
    --app-font-weight-medium: 500;
    --app-font-weight-semibold: 600;
    --app-font-weight-bold: 700;
    --app-line-height-tight: 1.25;
    --app-line-height-normal: 1.6;
    --app-space-1: 0.25rem;
    --app-space-2: 0.5rem;
    --app-space-3: 0.75rem;
    --app-space-4: 1rem;
    --app-space-5: 1.5rem;
    --app-space-6: 2rem;
    --app-control-height-sm: 2rem;
    --app-control-height: 2.5rem;
    --app-radius-sm: 0.375rem;
    --app-radius-md: 0.625rem;
    --app-radius-lg: 0.75rem;
    --app-radius-pill: 999px;
    --app-shadow-sm: 0 1px 3px rgba(var(--app-shadow-rgb), 0.06);
    --app-shadow-md: 0 0.25rem 1rem rgba(var(--app-shadow-rgb), 0.08);
    --app-shadow-overlay: 0 0.75rem 2rem rgba(var(--app-shadow-rgb), 0.14);
    --app-motion-fast: 150ms;
    --app-motion-normal: 200ms;
    --app-easing: ease;
    --app-z-dropdown: 1090;
    --app-z-modal: 2000;
}

/*
 * Application layout and shared selectors
 *
 * These rules remain global because their classes are used across multiple
 * application areas or are created dynamically by third-party libraries.
 */

html.ui-theme-scope body {
    background-color: var(--app-page-bg) !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

nav#layout-navbar {
    background: transparent !important;
    box-shadow: none;
    border-radius: unset;
    border-bottom: 1px solid #e5e5e5 !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.card-header {
    font-size: 22px !important;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 25px;
}

.ti {
    font-size: 1.6rem;
}

td .actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

table i.ti-eye {
    color: #3ea0e3;
}

table i.ti-edit {
    color: #566573;
}

table i.ti-archive {
    color: #dc3545;
}
textarea {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

textarea::-webkit-scrollbar {
    display: none;
}

.swal2-container {
    z-index: 99999 !important;
}

.swal2-timer-progress-bar {
    background-color: #fff !important;
}

.bg-menu-theme {
    background-color: #2c3e50 !important;
    color: #fff !important;
}

.bg-menu-theme .menu-link,
.bg-menu-theme .menu-horizontal-prev,
.bg-menu-theme .menu-horizontal-next {
    color: #fff !important;
}

.app-brand {
    height: 175px !important;
    justify-content: center !important;
}

.app-brand img {
    object-fit: none;
}

html:not(.layout-menu-collapsed)
    .bg-menu-theme
    .menu-inner
    .menu-item:not(.active)
    > .menu-link:hover,
.layout-menu-hover.layout-menu-collapsed
    .bg-menu-theme
    .menu-inner
    .menu-item:not(.active)
    > .menu-link:hover {
    background-color: transparent !important;
    color: #e57f25 !important;
}

html:not(.layout-menu-collapsed)
    .bg-menu-theme
    .menu-inner
    .menu-item:not(.active)
    > .menu-link.active {
    background-color: transparent !important;
    color: #e57f25 !important;
}

.menu-inner-shadow {
    color: #fff !important;
    position: static !important;
    background: #fff !important;
    display: block;
    height: 1px;
    margin: auto;
    width: 70%;
    opacity: 20%;
}

button#notificationDropdown::after {
    display: none;
}

button#notificationDropdown,
button#langDropdown {
    background-color: #fff;
    width: 65px !important;
    height: 42px !important;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}

/* Actions DDL*/
/* --------------------------------------------- */
.actions .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    /* Remove the default Bootstrap dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}

.actions .dropdown-toggle::after {
    display: none !important;
    /* Hide the Bootstrap dropdown arrow */
}

.actions .dropdown-menu {
    min-width: auto;
    padding: 0 !important;
}

.actions .dropdown-item {
    display: flex;
    align-items: center;
    color: #566573;
    font-size: 14px;
    font-weight: 600;
    gap: 0.5rem;
}

.actions .dropdown-divider {
    margin: 4px 0 !important;
}

.actions .dropdown-item i {
    font-size: 22px;
}

.actions .dropdown-item button {
    font-size: 0.875rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.actions a,
.actions button {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    transition: color 0.2s;
}

/* --------------------------------------------- */

/* Datatables */

/* ======= DataTable General ======= */
table.dataTable {
    width: 100% !important;
    /* border-spacing: 0 8px; */
    /* space between rows */
}

table.dataTable thead th,
table thead th {
    background-color: #2c3e50 !important;
    color: #fff !important;
    font-weight: 600;
    /* border: none !important; */
    text-align: center !important;
    vertical-align: middle;
    padding: 0.75rem;
}

table.dataTable tbody tr {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

table.dataTable tbody tr:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

table.dataTable tbody td {
    text-align: center !important;
    vertical-align: middle;
    padding: 0.9rem 0.5rem;
}

/* ======= Badges (Status) ======= */
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-info,
.badge.bg-dark {
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
}

.badge.bg-primary {
    background-color: var(--app-primary-subtle) !important;
    color: var(--app-primary) !important;
}

.badge.bg-secondary {
    background-color: var(--app-muted-bg) !important;
    color: var(--app-text-secondary) !important;
}

.badge.bg-success {
    background-color: var(--app-success-subtle) !important;
    color: var(--app-success-hover) !important;
}

.badge.bg-danger {
    background-color: var(--app-danger-subtle) !important;
    color: var(--app-danger-hover) !important;
}

.badge.bg-warning {
    background-color: var(--app-warning-subtle) !important;
    color: var(--app-warning-hover) !important;
}

.badge.bg-info {
    background-color: var(--app-info-subtle) !important;
    color: var(--app-info-hover) !important;
}

.badge.bg-dark {
    background-color: var(--app-dark-subtle) !important;
    color: var(--app-dark) !important;
}

/* ======= Pagination ======= */
.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin-top: 1.2rem;
}

/* ======= Search Box and Filters ======= */
.dataTables_filter input {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 6px 10px;
}

.dataTables_filter input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
    outline: none;
}

/* ======= Table Header Sorting Indicators ======= */
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    opacity: 0.4;
    margin-right: 5px;
    color: #aaa;
}

.menu-item.open > .menu-link.menu-toggle {
    background-color: transparent !important;
    color: #e57f25 !important;
}
.card-datatable.table-responsive {
    overflow: visible;
}
.box-filter-ddl {
    min-width: 175px;
}

.custom-title {
    color: #2c3e50 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.custom-form-title {
    color: #566573;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.create .custom-image-input {
    border: 1px dashed #959fa7;
    text-align: center;
    padding: 8px;
    position: relative;
    border-radius: 10px !important;
    background-color: #f4f5f6 !important;
}

.create .input-hidden {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 59px;
    opacity: 0;
}
.input-group {
    overflow: hidden !important;
}

.custom-table-style {
    border-radius: 10px;
    overflow: hidden;
}
.info-label {
    color: #2c3e50 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.info-description {
    color: #566573 !important;
    font-size: 18px;
    font-weight: 600 !important;
}
.info-value {
    color: #566573 !important;
    font-size: 16px;
    font-weight: 700 !important;
}

.orange-btn {
    background-color: #fcf2e9;
    color: #e57f25;
    border-color: #fcf2e9;
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
    background-color: #e57f25;
    border-color: #e57f25;
}
.w-140 {
    width: 140px;
}
.h-40 {
    height: 40px;
}
div.card-datatable.dataTable,
div.card-datatable .dataTable,
table {
    border-radius: 10px;
    overflow: hidden;
}

.wallet table {
    border: none !important;
}

.custom-w th:nth-of-type(2) {
    min-width: 250px;
}

.radius-10 {
    border-radius: 10px;
}
.custom-bg-gray {
    background-color: #f4f5f6;
    border-radius: 10px;
}

.desc textarea {
    min-height: 120px;
}

.card-custom-heading {
    color: #566573;
    font-size: 16px;
    font-weight: bold;
}
.filter-table .img-thumbnail {
    margin: 0 auto;
}

table img {
    width: 80px;
    height: 80px;
}

.text-primary-80 {
    color: #566573;
}
.form-control-plaintext {
    color: #2c3e50 !important;
}
.text-orange {
    color: #e57f25 !important;
    font-weight: bold !important;
    font-size: 22px !important;
    transform: translateY(3px);
}

.text-primary-card{
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold !important;
}

.count-card__inner {
    position: relative;
    z-index: 3;
    padding: 10px 16px 18px !important;
    background-image: url("/assets/img/design/card.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    transition:
        background-image 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
    color: inherit;
    overflow: hidden;
    width: 230px;
    height: 120px;
}

.count-card:hover .count-card__inner {
    background-image: url("/assets/img/design/active-card.png");
    color: #fff;
}

.count-card--active {
    background: transparent;
    color: #fff;
}

.count-card--active .count-card__inner {
    background-image: url("/assets/img/design/active-card.png");
    color: #fff;
}

.count-card__label,
.count-card__count {
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}
.count-card:hover .count-card__label,
.count-card:hover .count-card__count,
.count-card--active .count-card__label,
.count-card--active .count-card__count {
    color: #fff;
}

.count-card__count {
    font-size: 20px;
    font-weight: normal;
    color: #2c3e50;
    transform: translateY(3px);
}

.count-card__icon-wrapper {
    position: absolute;
    top: -39px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    border-radius: 50%;
    background: #fff;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.count-card:hover .count-card__icon-wrapper,
.count-card--active .count-card__icon-wrapper {
    background: #2c3e50;
    box-shadow: 0 6px 16px rgba(13, 18, 38, 0.08);
}

.count-card:hover .count-card__icon-wrapper img,
.count-card--active .count-card__icon-wrapper img {
    filter: brightness(0) invert(1);
}

.count-card--active::after {
    background: transparent;
}

@media (max-width: 767.98px) {
    .count-card {
        min-width: 100%;
    }
    .count-card__inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
.add-btn {
    background-color: #eaeced;
    border-radius: 10px;
    border: 1px solid #959fa7 !important;
    color: #2c3e50;
}

.search-input {
    min-width: 230px;
}

.search-btn {
    border-radius: 10px;
    color: #2c3e50;
    background-color: #fff;
    width: 40px;
    height: 40px;
}

.search-btn:hover {
    background-color: #e57f25;
    color: #fff;
}

.select-filter .position-relative {
    min-width: 150px;
}

.dataTables_length {
    display: none;
}

#users-table {
    border-radius: 10px;
    overflow: hidden;
}

thead {
    height: 50px;
}
th {
    border-bottom: none !important;
}
tbody td {
    border: 1px solid #e5e5e5 !important;
    padding: 0 !important;
    height: 43px;
}

tbody .odd td {
    background-color: #fff !important;
}
tbody .even td {
    background-color: #fff !important;
}
@media (max-width: 370px) {
    .search-input {
        min-width: fit-content;
    }
    .select-filter .position-relative {
        min-width: 100%;
    }
}
.btn:not([class*="btn-label-"]):not([class*="btn-outline-"]) {
    box-shadow: none !important;
}
.nav-link .arrow-up {
    transition: all 0.3s ease;
}
.nav-link.show .arrow-up {
    transform: rotate(180deg);
}

.dropdown-toggle:not(.dropdown-toggle-split)::after {
    display: none;
}

table tr td {
    color: #566573 !important;
}

table.dataTable > :not(caption) > * > * {
    padding: 10px !important;
}

.custom-th.table tr th:nth-of-type(2),
table tr th:nth-of-type(1) {
    width: 30px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.custom-th-3.table tr th:nth-of-type(3) {
    width: 100px;
}

table tr th:last-of-type {
    width: 25px !important;
}

.no-customization tr th:nth-of-type(2),
.no-customization tr th:nth-of-type(1),
.no-customization tr th:nth-of-type(3),
.no-customization tr th:nth-of-type(4),
.no-customization tr th:last-of-type {
    width: unset !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

table a .img-thumbnail {
    margin: 0 auto;
}
.user-table tr th:nth-of-type(3),
.user-table tr th:nth-of-type(5),
.user-table tr th:nth-of-type(7),
.user-table tr th:nth-of-type(8) {
    width: 70px;
}

.publish-table tr th:nth-of-type(1),
.publish-table tr th:last-of-type {
    width: 30px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
}
.provider-table.table tr th:nth-of-type(9){
    width: 80px !important;
}

form [type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

form [type="submit"]:disabled i.ti-spin {
    animation: ui-submit-spin 1s linear infinite;
}

@keyframes ui-submit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ui-theme-scope {
    --bs-primary: var(--app-primary);
    --bs-primary-rgb: var(--app-primary-rgb);
    --bs-secondary: var(--app-secondary);
    --bs-secondary-rgb: var(--app-secondary-rgb);
    --bs-success: var(--app-success);
    --bs-success-rgb: var(--app-success-rgb);
    --bs-danger: var(--app-danger);
    --bs-danger-rgb: var(--app-danger-rgb);
    --bs-warning: var(--app-warning);
    --bs-warning-rgb: var(--app-warning-rgb);
    --bs-info: var(--app-info);
    --bs-info-rgb: var(--app-info-rgb);
    --bs-light: var(--app-light);
    --bs-light-rgb: var(--app-light-rgb);
    --bs-dark: var(--app-dark);
    --bs-dark-rgb: var(--app-dark-rgb);
    --bs-body-font-family: var(--app-font-family);
    --bs-body-color: var(--app-body);
    --bs-body-bg: var(--app-page-bg);
    --bs-border-color: var(--app-border);
    --bs-border-radius: var(--app-radius-sm);
    --bs-border-radius-lg: var(--app-radius-lg);
    --bs-link-color: var(--app-link);
    --bs-link-hover-color: var(--app-link-hover);
    color: var(--app-body);
    font-family: var(--app-font-family);
}

.ui-theme-scope :is(a, button, [tabindex]):focus-visible {
    outline: 1px solid var(--app-control-focus);
    outline-offset: 1px;
}

.ui-theme-scope .card,
.ui-theme-scope .modal-content,
.ui-theme-scope .dropdown-menu {
    background-color: var(--app-surface-elevated);
    border-color: var(--app-border);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow-sm);
}

.ui-theme-scope .form-control,
.ui-theme-scope .form-select {
    background-color: var(--ui-control-bg, var(--app-control-bg));
    border: 1px solid transparent;
    border-radius: var(--app-radius-md);
    min-height: var(--app-control-height);
    transition: border-color var(--app-motion-fast) var(--app-easing);
}

.ui-theme-scope .custom-form-input {
    font-size: var(--app-font-size-sm);
}

.ui-theme-scope .custom-input-group .input-group-text {
    background-color: var(--ui-control-bg, var(--app-control-bg));
    border: 1px solid transparent;
}

.ui-control-surface[data-ui-control-surface="light"] {
    --ui-control-bg: var(--app-control-bg);
}

.ui-control-surface[data-ui-control-surface="light"] :is(.form-control, .form-select),
.ui-control-surface[data-ui-control-surface="light"] .select2-selection,
.ui-control-surface[data-ui-control-surface="light"] .ui-search__button {
    background-color: var(--app-control-bg) !important;
}

.ui-control-surface[data-ui-control-surface="white"] {
    --ui-control-bg: var(--app-surface);
}

.ui-control-surface[data-ui-control-surface="gray"] {
    --ui-control-bg: var(--app-gray);
}

.ui-control-surface[data-ui-control-surface="transparent"] {
    --ui-control-bg: transparent;
}

.ui-theme-scope :is(input.form-control, .form-select) {
    height: var(--app-control-height);
}

.ui-theme-scope textarea.form-control {
    height: auto;
}

.ui-theme-scope :is(.form-control, .form-select):focus {
    border-color: var(--app-control-focus);
    box-shadow: none;
    outline: 0;
}

.ui-theme-scope :is(.form-control, .form-select).is-invalid,
.ui-theme-scope :is(.form-control, .form-select).is-invalid:hover,
.ui-theme-scope :is(.form-control, .form-select).is-invalid:focus {
    border-color: var(--app-danger);
    box-shadow: none;
    outline: 0;
}

.ui-theme-scope :is(.form-control, .form-select)::placeholder {
    color: var(--app-placeholder);
}

.ui-theme-scope :is(.form-control, .form-select):disabled {
    background-color: var(--app-control-disabled);
}

.ui-theme-scope .btn {
    border-radius: var(--app-radius-md);
    font-weight: var(--app-font-weight-semibold);
    min-height: var(--app-control-height);
}

.ui-theme-scope .table > :not(caption) > * > * {
    border-color: var(--app-table-border);
}

.ui-theme-scope .table > thead > tr > th,
.ui-theme-scope table.dataTable > thead > tr > th {
    background-color: var(--app-table-header-bg);
    color: var(--app-surface);
}

.ui-theme-scope table.table:not(.dataTable) > :not(caption) > * > * {
    color: var(--app-body);
    text-align: center;
    vertical-align: middle;
}

.ui-theme-scope table.table:not(.dataTable) > thead > tr > th {
    background-color: var(--app-table-header-bg) !important;
    color: var(--app-text-inverse) !important;
    font-weight: var(--app-font-weight-semibold);
    height: 3.125rem;
    padding: var(--app-space-3) !important;
}

.ui-theme-scope table.table:not(.dataTable) > tbody > tr > td {
    border: 1px solid var(--app-table-border);
    height: 2.6875rem;
    padding: 0 !important;
}

.ui-theme-scope table.table:not(.dataTable) > tbody > tr {
    background-color: var(--app-surface);
    transition: background-color var(--app-motion-fast) var(--app-easing);
}

.ui-theme-scope .table-hover > tbody > tr:hover > * {
    background-color: var(--app-table-hover-bg);
}

.ui-theme-scope .pagination {
    gap: var(--app-space-1);
}

.ui-theme-scope .page-link {
    border-radius: var(--app-radius-sm);
}

.ui-theme-scope .modal-backdrop {
    background-color: rgb(var(--app-backdrop-rgb));
}

.ui-theme-scope .modal-dialog:not(.modal-dialog-scrollable) {
    margin-block: 1.75rem;
}

.ui-theme-scope .modal-content {
    border: 1px solid var(--app-border) !important;
    border-radius: var(--app-radius-lg) !important;
    box-shadow: var(--app-shadow-overlay) !important;
    overflow: hidden;
}

.ui-theme-scope .modal-header {
    align-items: center;
    background-color: var(--app-surface-elevated) !important;
    border-bottom: 1px solid var(--app-border-soft) !important;
    justify-content: space-between;
    min-height: 4rem;
    padding: var(--app-space-4) var(--app-space-5) !important;
}

.ui-theme-scope .modal-title {
    color: var(--app-heading) !important;
    font-size: var(--app-font-size-lg);
    font-weight: var(--app-font-weight-bold);
}

.ui-theme-scope .modal-body {
    color: var(--app-body);
    padding: var(--app-space-5);
}

.ui-theme-scope .modal-footer {
    border-top: 1px solid var(--app-border-soft) !important;
    gap: var(--app-space-3);
    justify-content: flex-end !important;
    padding: var(--app-space-4) var(--app-space-5) !important;
}

.ui-theme-scope .modal-footer > :is(.btn, a.btn):not(.w-100):not(.btn-sm),
.ui-theme-scope .modal-footer > form > :is(.btn, a.btn):not(.w-100):not(.btn-sm) {
    align-items: center;
    display: inline-flex;
    height: var(--app-control-height);
    justify-content: center;
    min-height: var(--app-control-height);
    width: 8.75rem;
}

.ui-theme-scope .modal-footer > .btn.ui-modal__action--wide:not(.w-100):not(.btn-sm) {
    width: 12.5rem;
}

.ui-theme-scope .modal .modal-header .btn-close,
.ui-theme-scope .modal .modal-header .btn-close:hover,
.ui-theme-scope .modal .modal-header .btn-close:focus,
.ui-theme-scope .modal .modal-header .btn-close:active {
    box-shadow: none;
    inset: auto !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    transition: background-color var(--app-motion-fast) var(--app-easing), opacity var(--app-motion-fast) var(--app-easing);
}

.ui-modal__action {
    align-items: center;
    display: inline-flex;
    height: var(--app-control-height);
    justify-content: center;
    min-height: var(--app-control-height);
    width: 8.75rem;
}

.ui-theme-scope .dropdown-menu {
    box-shadow: var(--app-shadow-overlay);
    z-index: var(--app-z-dropdown);
}

.ui-theme-scope .invalid-feedback,
.ui-input-error {
    color: var(--app-danger);
    display: block;
    margin-top: var(--app-space-1);
}

.ui-breadcrumb {
    border-bottom: 1px solid var(--app-border);
    margin-bottom: var(--app-space-5);
    padding-bottom: var(--app-space-5);
}

.ui-breadcrumb__trail {
    line-height: var(--app-line-height-tight);
}

.ui-breadcrumb__home {
    color: var(--app-secondary);
    flex: 0 0 auto;
}

.ui-breadcrumb__link {
    color: var(--app-text-muted);
    font-size: var(--app-font-size-sm);
    font-weight: var(--app-font-weight-semibold);
}

.ui-breadcrumb__current {
    color: var(--app-body);
    font-weight: var(--app-font-weight-bold);
}

.ui-breadcrumb .btn i {
    line-height: 1;
}

.ui-info-item {
    align-items: flex-start;
    display: flex;
    max-width: 18.75rem;
    min-width: 15.625rem;
}

.ui-info-item__icon {
    align-items: center;
    background-color: var(--app-warning-subtle);
    block-size: 3.125rem;
    border-radius: 50%;
    color: var(--app-warning);
    display: inline-flex;
    flex: 0 0 3.125rem;
    inline-size: 3.125rem;
    justify-content: center;
    margin-inline-end: var(--app-space-3);
}

.ui-info-item--compact-icon .ui-info-item__icon {
    block-size: 2.5rem;
    flex-basis: 2.5rem;
    inline-size: 2.5rem;
}

.ui-info-item--compact-icon .ui-info-item__icon i {
    font-size: var(--app-font-size-xl) !important;
}

.ui-info-item__body,
.ui-info-item__value {
    max-width: 18.75rem;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ui-info-item--full-width {
    max-width: none;
    width: 100%;
}

.ui-info-item--full-width .ui-info-item__body {
    flex: 1;
    max-width: none;
}

.ui-info-item--full-width .ui-info-item__value {
    max-width: none;
    overflow-wrap: normal;
    white-space: nowrap;
}

.ui-phone-input__code {
    min-width: 6.25rem;
}

.ui-inline-form {
    display: inline;
}

.ui-map-modal__dialog {
    inset-block-start: 0;
}

.ui-map-modal__search {
    inset-block-start: var(--app-space-3);
    inset-inline: 0;
    margin-inline: auto;
    max-width: 32rem;
    position: absolute;
    width: 40%;
    z-index: var(--app-z-modal);
}

.ui-map-modal__canvas {
    height: 31.25rem;
    width: 100%;
}

.ui-map-modal__footer {
    padding: var(--app-space-3);
}

.pac-container {
    z-index: calc(var(--app-z-modal) + 1) !important;
}

.ui-hidden {
    display: none !important;
}

.ui-thumbnail {
    object-fit: cover;
}

.ui-thumbnail--small {
    block-size: 3.125rem;
    inline-size: 3.125rem;
}

.ui-thumbnail--medium {
    height: 6.25rem;
    object-fit: contain;
    width: 6.25rem;
}

.ui-thumbnail--large {
    border-radius: var(--app-radius-sm);
    height: 7.5rem;
    width: 7.5rem;
}

.ui-avatar-picker {
    border: 1px solid var(--app-border-soft);
    cursor: pointer;
    height: 7.5rem;
    object-fit: cover;
    width: 7.5rem;
}

.ui-avatar-picker-container {
    width: fit-content;
}

.ui-avatar-placeholder {
    height: 7.5rem;
    width: 7.5rem;
}

.ui-avatar-placeholder i {
    color: var(--app-text-muted);
    font-size: 3rem;
}

.ui-avatar-edit {
    align-items: center;
    border: 0;
    border-radius: 50%;
    bottom: 0;
    cursor: pointer;
    display: flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: 0;
    transition: transform var(--app-motion-fast) var(--app-easing);
    width: 2.25rem;
}

.ui-avatar-edit:hover {
    transform: scale(1.05);
}

.ui-avatar-edit img {
    height: 1.125rem;
    width: 1.125rem;
}

.ui-image-popup {
    align-items: center;
    background: rgba(var(--app-overlay-rgb), .5);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: var(--app-z-modal, 9999);
}

.ui-image-popup.is-open {
    display: flex;
}

.ui-image-popup__dialog {
    background: var(--app-surface);
    border-radius: var(--app-radius-lg);
    max-width: 25rem;
    padding: 1.5rem;
    text-align: center;
    width: 90%;
}

.ui-image-popup__title {
    font-weight: var(--app-font-weight-semibold);
    margin-bottom: 1.25rem;
}

.ui-image-popup__frame {
    align-items: center;
    background: var(--app-surface-soft);
    border: 2px dashed var(--app-border);
    border-radius: 50%;
    display: flex;
    height: 9.375rem;
    justify-content: center;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    width: 9.375rem;
}

.ui-image-popup__preview {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ui-image-popup__placeholder i {
    color: var(--app-text-muted);
    font-size: 3rem;
}

.ui-media-frame {
    width: 15.625rem;
}

.ui-media-frame--landscape {
    height: 11.25rem;
    width: 100%;
}

.ui-tabs .nav-link {
    border: 0;
    color: var(--app-text-muted);
    font-weight: var(--app-font-weight-medium);
    padding: .8rem 1.5rem;
}

.ui-tabs .nav-link.active {
    background: transparent;
    color: var(--app-primary);
}

.ui-icon-badge {
    align-items: center;
    background: var(--app-primary-subtle);
    border-radius: 50%;
    color: var(--app-primary);
    display: flex;
    flex-shrink: 0;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.ui-accent-icon {
    color: var(--app-primary);
    font-size: var(--app-font-size-lg);
}

.ui-table-head > tr > th {
    background-color: var(--app-secondary);
    color: var(--app-text-inverse);
}

.ui-document-preview {
    max-height: 9.375rem;
}

.ui-document-preview--large {
    max-height: 12.5rem;
}

.ui-document-preview--compact {
    max-height: 6.25rem;
}

.ui-showcase-image {
    block-size: 9.375rem;
    border: 1px solid var(--app-border);
    inline-size: 9.375rem;
    object-fit: cover;
}

.ui-content-width-wide {
    inline-size: 80%;
    margin-inline: auto;
}

.ui-control-height {
    min-height: var(--app-control-height);
}

.ui-modal-dialog-raised {
    margin-block-start: -3.125rem;
}

.ui-modal-content--compact {
    border-radius: var(--app-radius-lg);
    inline-size: 100%;
    max-width: 31.25rem;
}

.ui-modal-header--primary {
    align-items: center;
    background-color: var(--app-primary);
    display: flex;
    justify-content: flex-end;
}

.ui-attachment-card {
    color: inherit;
    inline-size: 9.375rem;
    text-decoration: none;
}

.ui-theme-scope .ui-count-card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ui-language-toggle {
    block-size: 3rem;
    inline-size: 3rem;
}

.ui-language-toggle__icon {
    inline-size: 1rem;
}

.ui-language-menu {
    min-width: auto;
    width: 6.25rem;
}

.ui-navbar-avatar {
    block-size: 2.5rem;
    border-radius: var(--app-radius-md);
    inline-size: 2.5rem;
    overflow: hidden;
}

.ui-navbar-user-name {
    color: var(--app-body);
    font-size: var(--app-font-size-md);
}

.ui-navbar-user-meta {
    color: var(--app-body);
    font-size: var(--app-font-size-sm);
}

.ui-notification-avatar {
    block-size: 2rem;
    inline-size: 2rem;
    object-fit: cover;
}

.ui-notification-link {
    color: var(--app-body);
}

.ui-notification-title {
    font-size: var(--app-font-size-sm);
    white-space: break-spaces;
}

.ui-notification-body {
    font-size: var(--app-font-size-xs);
}

.ui-notification-empty {
    margin: 0;
    padding-block: 0.9375rem;
    text-align: center;
}

.ui-toast.swal2-popup {
    border: 1px solid;
    border-radius: var(--app-radius-md) !important;
    box-shadow: var(--app-shadow-md) !important;
    color: var(--app-body) !important;
    padding: var(--app-space-3) var(--app-space-4) !important;
    width: min(22rem, calc(100vw - 2rem)) !important;
}

.ui-toast-container.swal2-container {
    z-index: calc(var(--app-z-modal) + 100) !important;
}

.ui-toast--success.swal2-popup {
    background: var(--app-success-emphasis) !important;
    border-color: var(--app-success-emphasis);
    color: var(--app-text-inverse) !important;
}

.ui-toast--danger.swal2-popup,
.ui-toast--error.swal2-popup {
    background-color: var(--app-danger-emphasis);
    border-color: var(--app-danger-emphasis);
    color: var(--app-text-inverse) !important;
}

.ui-toast--warning.swal2-popup {
    background-color: var(--app-warning);
    border-color: var(--app-warning);
    color: var(--app-warning-emphasis) !important;
}

.ui-toast .swal2-title {
    color: inherit !important;
    font-size: var(--app-font-size-md) !important;
    font-weight: var(--app-font-weight-medium) !important;
    line-height: var(--app-line-height-normal) !important;
    margin: 0 var(--app-space-2) !important;
    padding: 0 !important;
}

.ui-toast .swal2-icon {
    font-size: 0.75rem !important;
    height: 2em !important;
    margin: 0 !important;
    min-width: 2em !important;
    width: 2em !important;
}

.ui-toast .swal2-timer-progress-bar {
    background-color: currentcolor;
    opacity: 0.2;
}

.swal2-popup {
    border-radius: var(--app-radius-lg) !important;
    box-shadow: var(--app-shadow-overlay) !important;
    color: var(--app-body) !important;
    font-family: var(--app-font-family) !important;
    padding: var(--app-space-5) !important;
}

.swal2-title {
    color: var(--app-heading) !important;
    font-size: var(--app-font-size-xl) !important;
}

.swal2-html-container {
    color: var(--app-body) !important;
    font-size: var(--app-font-size-md) !important;
}

.swal2-modal .swal2-title {
    justify-self: center;
    margin-inline: auto !important;
    text-align: center !important;
    width: 100%;
}

.swal2-modal .swal2-html-container {
    text-align: center !important;
}

.swal2-actions {
    gap: var(--app-space-3);
}

.swal2-actions :is(.swal2-confirm, .swal2-cancel) {
    align-items: center;
    border-radius: var(--app-radius-md) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    font-family: var(--app-font-family) !important;
    font-weight: var(--app-font-weight-semibold) !important;
    height: var(--app-control-height);
    justify-content: center;
    margin: 0 !important;
    min-width: 8.75rem;
}

.swal2-actions .swal2-deny {
    display: none !important;
}

.swal2-actions .swal2-confirm {
    background-color: var(--app-primary) !important;
    border: 1px solid var(--app-primary) !important;
    color: var(--app-text-inverse) !important;
}

.swal2-actions .swal2-confirm:hover {
    background-color: var(--app-primary-hover) !important;
    border-color: var(--app-primary-hover) !important;
}

.swal2-actions .swal2-cancel {
    background-color: transparent !important;
    border: 1px solid var(--app-primary) !important;
    color: var(--app-primary) !important;
}

.swal2-actions .swal2-cancel:hover {
    background-color: var(--app-primary-subtle) !important;
}

.swal2-actions .swal2-deny {
    background-color: var(--app-danger) !important;
    border: 1px solid var(--app-danger) !important;
    color: var(--app-text-inverse) !important;
}

.ui-switch {
    --ui-switch-height: 1.625rem;
    --ui-switch-width: 3.125rem;
    --ui-switch-knob-size: 1.25rem;
    --ui-switch-inset: 0.1875rem;
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 0.5rem;
    margin: 0;
    min-width: 0;
    position: relative;
    vertical-align: middle;
}

.ui-switch--small {
    --ui-switch-height: 1.25rem;
    --ui-switch-width: 2.5rem;
    --ui-switch-knob-size: 1rem;
    --ui-switch-inset: 0.125rem;
}

.ui-switch__input {
    block-size: 1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    inline-size: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

.ui-switch__track {
    background-color: var(--app-switch-inactive-bg);
    block-size: var(--ui-switch-height);
    border-radius: 999px;
    flex: 0 0 var(--ui-switch-width);
    inline-size: var(--ui-switch-width);
    position: relative;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ui-switch__track::before {
    background-color: var(--app-surface);
    block-size: var(--ui-switch-knob-size);
    border-radius: 50%;
    content: "";
    inline-size: var(--ui-switch-knob-size);
    inset-block-start: var(--ui-switch-inset);
    inset-inline-start: var(--ui-switch-inset);
    position: absolute;
    transition: inset-inline-start 0.2s ease;
}

.ui-switch__input:checked + .ui-switch__track {
    background-color: var(--app-switch-active-bg);
}

.ui-switch__input:checked + .ui-switch__track::before {
    inset-inline-start: calc(100% - var(--ui-switch-knob-size) - var(--ui-switch-inset));
}

.ui-switch__input:focus-visible + .ui-switch__track {
    box-shadow: 0 0 0 0.2rem rgba(var(--app-switch-focus-rgb), 0.25);
}

.ui-switch__input:disabled + .ui-switch__track {
    background-color: var(--app-switch-disabled-bg);
    cursor: not-allowed;
    opacity: 0.7;
}

.ui-switch:has(.ui-switch__input:disabled) {
    cursor: not-allowed;
}

.ui-switch__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ui-search {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}

.ui-search__input {
    flex: 1 1 0;
    height: var(--app-control-height);
    min-width: 0;
    width: auto;
}

.ui-search__button {
    align-items: center;
    background-color: var(--app-surface);
    block-size: var(--app-control-height);
    border-radius: 0.625rem;
    color: var(--app-primary);
    display: inline-flex;
    flex: 0 0 var(--app-control-height);
    inline-size: var(--app-control-height);
    justify-content: center;
}

.ui-search__button:hover,
.ui-search__button:focus-visible {
    background-color: var(--app-secondary);
    color: var(--app-surface);
}

.ui-export-button {
    background-color: #c9962f !important;
    border-color: #c9962f !important;
    color: #fff !important;
}

.ui-export-button:hover,
.ui-export-button:focus,
.ui-export-button:active {
    background-color: #b3862a !important;
    border-color: #b3862a !important;
    color: #fff !important;
}

.ui-reset-button {
    min-inline-size: 170px;
    white-space: nowrap;
}

.ui-datatable-filters {
    margin-bottom: 1.5rem;
    min-width: 0;
    overflow: visible;
    width: 100%;
}

.ui-datatable-filters__controls,
.ui-datatable-filters__reset {
    min-width: 0;
}

.ui-datatable-filters__controls {
    align-items: end;
}

.ui-datatable-filters__controls > * {
    min-width: 0;
}

.ui-datatable-filters__reset {
    margin-top: 1rem;
}

.ui-date-range {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
}

.ui-date-range__field {
    min-width: 0;
    position: relative;
}

.ui-date-range__label {
    display: block;
    overflow-wrap: anywhere;
}

.ui-date-range__input {
    height: var(--app-control-height);
    width: 100%;
}

.ui-date-range__field:has(.clear-date) .ui-date-range__input {
    padding-inline-end: 2.25rem;
}

.clear-date {
    background: transparent;
    border: 0;
    color: var(--app-text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    inset-block-start: 50%;
    inset-inline-end: 0.75rem;
    line-height: 1;
    position: absolute;
    transform: translateY(-50%);
    user-select: none;
    z-index: 2;
}

.ui-date-range__label + .ui-date-range__input + .clear-date {
    inset-block-start: calc(50% + 0.875rem);
}

.clear-date:hover,
.clear-date:focus-visible {
    color: var(--app-secondary);
}

.ui-select {
    height: var(--app-control-height);
    max-width: 100%;
    min-width: 0;
}

.ui-select--small {
    height: var(--app-control-height-sm);
}

.ui-theme-scope .ui-select--addon {
    flex: 0 0 110px;
    max-width: 110px;
    padding-inline: 0.75rem 2rem;
    text-align: start;
    width: 110px;
}

.ui-theme-scope .settings-time-unit-addon {
    flex: 0 0 5rem;
    max-width: 5rem;
    padding-inline: .5rem 1.5rem;
    width: 5rem;
}

.ui-theme-scope .ui-input-with-addon {
    flex-wrap: nowrap;
    height: var(--app-control-height);
    overflow: hidden;
    padding: 0;
}

.ui-theme-scope .ui-input-with-addon > :is(.form-control, .form-select, .input-group-text),
.ui-theme-scope .ui-input-with-addon > :is(.form-control, .form-select, .input-group-text):focus {
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: inherit;
    height: 100%;
    min-height: 0;
}

.ui-theme-scope .ui-input-with-addon:hover:not(:focus-within):not(:has(.is-invalid)):not(:has(:disabled)):not(:has([readonly])) {
    border-color: #c9c8ce;
}

.ui-theme-scope .ui-input-with-addon:focus-within {
    border-color: var(--app-control-focus) !important;
    box-shadow: none !important;
    outline: 0;
}

.ui-theme-scope .ui-input-with-addon:has(.is-invalid) {
    border-color: var(--app-danger) !important;
}

.ui-select + .select2-container {
    max-width: 100%;
    min-width: 0;
    width: 100% !important;
}

.ui-theme-scope .select2-container--default .select2-selection {
    background-color: var(--ui-control-bg, var(--app-control-bg)) !important;
    border: 1px solid transparent !important;
    border-radius: var(--app-radius-md) !important;
    color: var(--app-body);
    transition: border-color var(--app-motion-fast) var(--app-easing);
}

.ui-theme-scope
    .select2-container--default:not(.select2-container--disabled):not(.select2-container--focus):not(.select2-container--open):hover
    .select2-selection {
    border-color: #c9c8ce !important;
}

.ui-theme-scope .select2-container--default.select2-container--focus .select2-selection,
.ui-theme-scope .select2-container--default.select2-container--open .select2-selection {
    border-color: var(--app-control-focus) !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.ui-theme-scope .select2-container--default.is-invalid-select2 .select2-selection,
.ui-theme-scope .is-invalid + .select2-container--default .select2-selection {
    border-color: var(--app-danger) !important;
    box-shadow: none !important;
}

.ui-theme-scope .select2-container--default .select2-selection--single {
    height: var(--app-control-height) !important;
}

.ui-theme-scope .select2-container--default .select2-selection--single .select2-selection__rendered {
    background: transparent !important;
    color: var(--app-body);
    line-height: calc(var(--app-control-height) - 2px) !important;
    padding-inline: var(--app-space-3) 2rem;
}

.ui-theme-scope .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: var(--app-control-height) !important;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple {
    height: auto !important;
    min-height: var(--app-control-height) !important;
    padding: var(--app-space-1) var(--app-space-2);
    position: relative;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--app-space-1);
    min-height: calc(var(--app-control-height) - 0.625rem);
    overflow: visible;
    padding: 0;
    padding-inline-end: 2rem;
    white-space: normal;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__clear {
    align-items: center;
    block-size: 1.25rem;
    color: var(--app-body);
    display: flex;
    float: none;
    font-size: 1.1rem;
    inline-size: 1.25rem;
    inset-block-start: 50%;
    inset-inline-end: var(--app-space-2);
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    position: absolute;
    transform: translateY(-50%);
    z-index: 2;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__clear:hover,
.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__clear:focus-visible {
    color: var(--app-danger);
    outline: 0;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__choice {
    align-items: center;
    background-color: var(--app-muted-bg) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: var(--app-radius-sm);
    color: var(--app-body);
    display: inline-flex;
    flex: 0 1 auto;
    gap: var(--app-space-1);
    margin: 0 !important;
    max-width: 100%;
    min-width: 0;
    padding: 0.25rem 0.5rem !important;
    white-space: normal;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    align-items: center;
    align-self: center;
    background: transparent !important;
    border: 0 !important;
    color: var(--app-danger);
    display: inline-flex;
    flex: 0 0 auto;
    inset: auto !important;
    justify-content: center;
    margin: 0 !important;
    order: 2;
    padding: 0 !important;
    position: static !important;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus-visible {
    color: var(--app-danger-hover);
    outline: 0;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-search--inline {
    flex: 1 1 7.5rem;
    min-width: 7.5rem;
}

.ui-theme-scope .select2-container--default .select2-selection--multiple .select2-search__field {
    height: calc(var(--app-control-height) - 0.625rem);
    margin: 0;
    min-width: 7.5rem;
    padding-inline: var(--app-space-1);
}

.ui-theme-scope .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--app-control-bg);
    border: 1px solid transparent !important;
    border-radius: var(--app-radius-md);
    height: var(--app-control-height);
    outline: 0;
}

.ui-theme-scope .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--app-control-focus) !important;
    box-shadow: none !important;
}

.ui-theme-scope .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--app-primary) !important;
    color: var(--app-text-inverse) !important;
}

.ui-theme-scope .ui-select--small + .select2-container .select2-selection--single,
.ui-theme-scope .ui-select--small + .select2-container .select2-selection--single .select2-selection__arrow {
    height: var(--app-control-height-sm) !important;
}

.ui-theme-scope .ui-select--small + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: calc(var(--app-control-height-sm) - 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    align-items: center;
    block-size: 1.25rem;
    color: var(--app-body);
    cursor: pointer;
    display: flex;
    float: none;
    font-size: 1.1rem;
    font-weight: var(--app-font-weight-bold);
    inline-size: 1.25rem;
    inset-block-start: 50%;
    inset-inline-end: 1.25rem;
    justify-content: center;
    line-height: 1;
    position: absolute;
    transform: translateY(-50%);
    z-index: 2;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover,
.select2-container--default .select2-selection--single .select2-selection__clear:focus-visible {
    color: var(--app-danger);
}

.form-control[data-ui-surface="transparent"],
.form-select[data-ui-surface="transparent"],
.ui-select[data-ui-surface="transparent"] + .select2-container .select2-selection {
    background-color: transparent !important;
}

.form-control[data-ui-surface="light"],
.form-select[data-ui-surface="light"],
.ui-select[data-ui-surface="light"] + .select2-container .select2-selection {
    background-color: var(--app-control-bg) !important;
}

.form-control[data-ui-surface="white"],
.form-select[data-ui-surface="white"],
.ui-select[data-ui-surface="white"] + .select2-container .select2-selection {
    background-color: var(--app-surface) !important;
}

.form-control[data-ui-surface="gray"],
.form-select[data-ui-surface="gray"],
.ui-select[data-ui-surface="gray"] + .select2-container .select2-selection {
    background-color: var(--app-gray) !important;
}

.ui-theme-scope :is(.form-control, .form-select):disabled {
    background-color: var(--app-control-disabled) !important;
}

.ui-theme-scope .select2-container--default.select2-container--disabled .select2-selection {
    background-color: var(--app-control-disabled) !important;
    border-color: transparent !important;
}

.ui-media-picker {
    align-items: center;
    background-color: var(--app-media-bg);
    border: 1px dashed var(--app-border-strong);
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 0.5rem;
    position: relative;
    text-align: center;
    width: 100%;
}

.ui-media-picker__icon {
    display: block;
    height: auto;
    margin-inline: auto;
    max-width: 100%;
    width: auto;
}

.ui-media-picker__label {
    display: block;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.ui-media-picker__input {
    cursor: pointer;
    inset: 0;
    max-width: 100%;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.ui-action-menu {
    min-width: 0;
}

.ui-action-menu__menu {
    max-width: min(20rem, calc(100vw - 2rem));
}

.ui-action-menu__menu .dropdown-item {
    overflow-wrap: normal;
    padding-inline: 1rem;
    white-space: nowrap;
}

.ui-info-card {
    height: 100%;
    padding: 0.25rem 0;
    text-align: start;
}

.ui-info-card__content {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.ui-info-card__icon {
    align-items: center;
    background-color: rgba(var(--app-secondary-rgb), 0.14);
    block-size: 2.25rem;
    border-radius: 50%;
    color: var(--app-secondary);
    display: inline-flex;
    flex: 0 0 2.25rem;
    inline-size: 2.25rem;
    justify-content: center;
}

.ui-info-card__body {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.ui-info-card__label {
    color: var(--app-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ui-info-card__value {
    align-items: center;
    color: var(--app-heading);
    display: flex;
    flex-wrap: wrap;
    font-weight: 600;
    gap: 0.5rem;
    overflow-wrap: anywhere;
}

.ui-summary,
.ui-summary__rows,
.ui-summary .price-row,
.ui-summary .price-row > * {
    min-width: 0;
}

.ui-summary {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: var(--app-space-4);
    text-align: start;
}

.ui-summary .price-row {
    display: flex;
    font-weight: var(--app-font-weight-semibold);
    gap: var(--app-space-4);
    justify-content: space-between;
    padding-block: 0.45rem;
}

.ui-summary .price-row {
    flex-wrap: wrap;
}

.ui-summary .price-row > * {
    overflow-wrap: anywhere;
}

.ui-panel {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
}

.ui-inset-panel {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 0.875rem var(--app-space-4);
}

.ui-subsection {
    border-top: 1px solid var(--app-border);
    margin-top: var(--app-space-5);
    padding-top: var(--app-space-5);
    text-align: start;
}

.ui-badge--neutral {
    background-color: var(--app-muted-bg);
    color: var(--app-text-secondary);
}

.ui-badge--accent,
.ui-link--accent {
    background-color: var(--app-secondary-subtle);
    color: var(--app-secondary);
}

.ui-badge--success {
    background-color: var(--app-success-subtle);
    color: var(--app-success-emphasis);
}

.ui-badge--info,
.ui-link--primary {
    background-color: var(--app-info-subtle);
    color: var(--app-link);
}

.ui-link--primary:hover,
.ui-link--primary:focus-visible {
    background-color: var(--app-primary-subtle);
    color: var(--app-primary-hover);
}

.ui-pill {
    align-items: center;
    background-color: var(--app-muted-bg);
    border-radius: var(--app-radius-pill);
    color: var(--app-text-secondary);
    display: inline-flex;
    font-size: var(--app-font-size-xs);
    font-weight: var(--app-font-weight-semibold);
    gap: var(--app-space-1);
    margin: 0.15rem;
    padding: 0.35rem 0.6rem;
}

.ui-color-swatch {
    block-size: 0.75rem;
    border: 1px solid rgba(var(--app-backdrop-rgb), 0.15);
    border-radius: 50%;
    flex: 0 0 auto;
    inline-size: 0.75rem;
}

.ui-status-dot {
    background-color: var(--app-danger);
    border-radius: 50%;
    flex-shrink: 0;
    height: 0.625rem;
    width: 0.625rem;
}

.ui-status-dot--large {
    block-size: 1.25rem;
    inline-size: 1.25rem;
}

.ui-icon-badge--large {
    block-size: 3.4375rem;
    inline-size: 3.4375rem;
}

.ui-empty-media {
    min-height: 12.5rem;
}

.ui-table-last-column-wide :is(th, td):last-of-type {
    min-width: 10.625rem;
    width: 10.625rem !important;
}

.ui-input-group {
    background-color: var(--app-surface);
    border-radius: var(--app-radius-md);
    overflow: hidden;
}

.ui-input-group :is(.form-control, .input-group-text) {
    background-color: var(--app-control-bg) !important;
}

.ui-input-group--white,
.ui-input-group--white :is(.form-control, .input-group-text) {
    background-color: var(--app-surface) !important;
}

.ui-input-group:focus-within {
    box-shadow: none;
}

.btn.ui-reserved-stock-toggle,
.btn.ui-reserved-stock-toggle:active {
    transform: none;
}

.ui-collapse-toggle i {
    transition: transform var(--app-motion-normal) var(--app-easing);
}

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

.product-form-container .product-editor-slide,
.ui-collapse-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--app-motion-normal) var(--app-easing),
        visibility 0s linear var(--app-motion-normal);
    visibility: hidden;
}

.product-form-container .product-editor-slide.is-open,
.ui-collapse-content.is-open {
    grid-template-rows: 1fr;
    transition-delay: 0s;
    visibility: visible;
}

.product-form-container .product-editor-slide__content,
.ui-collapse-content__inner {
    min-height: 0;
    overflow: hidden;
}

.ui-summary-rows {
    background-color: transparent;
    text-align: start;
    width: 100%;
}

.ui-summary-row {
    display: flex;
    font-weight: var(--app-font-weight-semibold);
    gap: var(--app-space-4);
    justify-content: space-between;
    padding-block: 0.45rem;
}

.ui-table-thumbnail {
    block-size: 3.125rem;
    inline-size: 3.125rem;
    object-fit: cover;
}

.ui-table-select-column {
    inline-size: 3.125rem;
}

.ui-detail-image {
    inline-size: 100%;
}

.ui-gallery-thumbnail {
    block-size: 9.375rem;
    inline-size: 13.75rem;
    object-fit: cover;
}

.ui-square-preview {
    block-size: 6.25rem;
    inline-size: 6.25rem;
    object-fit: cover;
}

.ui-gallery-card {
    inline-size: 9.375rem;
}

.ui-gallery-card__image {
    block-size: 8.75rem;
    inline-size: 100%;
    object-fit: cover;
}

.ui-thumbnail--large-square {
    block-size: 5rem;
    inline-size: 5rem;
    object-fit: cover;
}

.ui-map-dialog {
    inset-block-start: 20%;
    max-height: 90vh;
}

.ui-map-content {
    max-height: 90vh;
}

.ui-map-body {
    max-height: calc(90vh - 7.5rem);
    overflow: hidden;
}

.ui-map-canvas {
    block-size: 21.875rem;
    inline-size: 100%;
}

.ui-plain-icon-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: .25rem .375rem;
}

.ui-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--app-space-3);
}

.ui-action-width {
    min-width: 11.25rem;
}

.ui-confirmation-icon {
    font-size: 3rem;
}

.bulk-delete-btn {
    align-items: center;
    display: inline-flex;
    gap: var(--app-space-2);
    height: var(--app-control-height);
    min-height: var(--app-control-height);
}

.bulk-delete-btn:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.bulk-delete-btn .selected-count {
    align-items: center;
    background: var(--app-danger);
    border-radius: 50%;
    color: var(--app-text-inverse);
    display: inline-flex;
    font-size: var(--app-font-size-xs);
    font-weight: var(--app-font-weight-semibold);
    height: 1.375rem;
    justify-content: center;
    width: 1.375rem;
}

[data-ui-bulk-select],
[data-ui-bulk-select-all] {
    cursor: pointer;
    height: .9375rem;
    width: .9375rem;
}

[data-ui-bulk-select-all]:disabled {
    cursor: not-allowed;
}

[data-ui-bulk-delete] .dropdown-item:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.ui-selection-count {
    border-radius: 50%;
    font-size: var(--app-font-size-xs);
    min-width: 1.25rem;
    padding: .25em .5em;
}

.ui-selection-count[hidden] {
    display: none;
}

.ui-has-selection {
    animation: ui-selection-pulse 2s infinite;
}

@keyframes ui-selection-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, .4);
    }

    70% {
        box-shadow: 0 0 0 .375rem rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.ui-address-item,
.ui-address-item__label,
.ui-address-item__value {
    min-width: 0;
}

.ui-address-item__label,
.ui-address-item__value {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .ui-search__input {
        min-width: 0;
    }

    .ui-date-range {
        grid-template-columns: minmax(0, 1fr);
    }

    .ui-map-modal__search {
        width: calc(100% - 2rem);
    }
}

.otp-inputs {
    display: flex;
    gap: var(--app-space-3);
    justify-content: center;
    margin-block: var(--app-space-6);
}

.otp-inputs .form-control {
    block-size: 4.375rem;
    border-radius: var(--app-radius-lg);
    font-size: 1.5rem;
    inline-size: 3.75rem;
    padding: 0;
    text-align: center;
}

.otp-modal-inputs input.form-control {
    height: 60px;
}

.otp-modal-error {
    margin-bottom: var(--app-space-3);
    text-align: center;
}

.resend-text {
    font-size: .95rem;
    margin-block-end: var(--app-space-4);
    text-align: center;
}

.resend-text a {
    color: var(--app-warning-emphasis);
    font-weight: var(--app-font-weight-semibold);
    text-decoration: none;
}

.resend-text a:hover {
    text-decoration: underline;
}

.btn-submit {
    background-color: var(--app-secondary);
    border: 0;
    border-radius: var(--app-radius-md);
    color: var(--app-text-inverse);
    font-size: var(--app-font-size-md);
    font-weight: var(--app-font-weight-medium);
    min-height: 3rem;
    transition: background-color var(--app-motion-normal) var(--app-easing);
}

.btn-submit:hover {
    background-color: var(--app-secondary-hover);
}

.btn-submit:disabled {
    background-color: var(--app-secondary-emphasis);
    color: var(--app-text-inverse);
    cursor: not-allowed;
    opacity: 1;
}

#otp-error,
#otp-success {
    display: none;
    font-size: .9rem;
    margin-block-start: var(--app-space-2);
    text-align: center;
}

#otp-error {
    color: var(--app-danger);
}

#otp-success {
    color: var(--app-success);
}

.disabled-link {
    color: var(--app-text-muted);
    pointer-events: none;
    text-decoration: none;
}

[x-cloak] {
    display: none !important;
}
