/* =======================================================================
   custom.css
   XOR CUSTOM SAAS THEME – COMPACT
   Rounded / Floating / Modern UI
   ======================================================================= */

:root {
    /* === COLORS === */
    --xor-primary: #3ed9c9;
    --xor-primary-dark: #18b8aa;
    --xor-primary-soft: rgba(62, 217, 201, .14);

    --xor-bg: #fdf7fa;
    --xor-surface: #ffffff;
    --xor-soft: #f4fffd;
    --xor-soft-2: #e8fffb;
    --xor-border: #d8f3ef;

    --xor-text: #374151;
    --xor-heading: #111827;
    --xor-muted: #7b8190;
    --xor-muted-2: #9ca3af;

    --xor-danger: #ef4444;
    --xor-warning: #f59e0b;
    --xor-info: #3b82f6;
    --xor-success: #10b981;

    /* === TYPOGRAPHY === */
    --xor-font-size-xs: 11px;
    --xor-font-size-sm: 12px;
    --xor-font-size-base: 13px;
    --xor-font-size-md: 14px;
    --xor-font-size-lg: 16px;

    --xor-font-weight-base: 600;
    --xor-font-weight-light: 700;
    --xor-font-weight-heavy: 800;
    --xor-font-weight-title: 900;

    /* === BORDER RADIUS === */
    --xor-radius-xs: 10px;
    --xor-radius-sm: 14px;
    --xor-radius-md: 18px;
    --xor-radius-lg: 24px;
    --xor-radius-xl: 26px;
    --xor-radius-pill: 999px;

    /* === SHADOWS === */
    --xor-shadow-xs: 0 3px 10px rgba(15, 23, 42, .035);
    --xor-shadow-sm: 0 6px 18px rgba(15, 23, 42, .045);
    --xor-shadow-md: 0 12px 32px rgba(15, 23, 42, .08);
    --xor-shadow-lg: 0 24px 70px rgba(15, 23, 42, .18);
    --xor-shadow-primary: 0 12px 28px rgba(62, 217, 201, .28);
    --xor-shadow-focus: 0 0 0 4px rgba(62, 217, 201, .16);

    /* === SPACING === */
    --xor-page-padding-y: 18px;
    --xor-page-padding-x: 22px;

    /* === TRANSITIONS === */
    --xor-transition: .14s ease;
}

/* =======================================================================
   BASE
   ======================================================================= */

html,
body {
    background: var(--xor-bg) !important;
    color: var(--xor-text) !important;
    font-size: var(--xor-font-size-base);
}

body {
    overflow-x: hidden;
}

#page-container,
#main-container,


a {
    color: var(--xor-primary);
    transition: color var(--xor-transition), background-color var(--xor-transition), box-shadow var(--xor-transition);
}

a:hover,
a:focus {
    color: var(--xor-primary-dark);
    text-decoration: none !important;
}

hr {
    border-top: 1px solid #eef2f7 !important;
    margin: 12px 0 !important;
}

/* =======================================================================
   TYPOGRAPHY
   ======================================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.page-header,
.block-title,
.panel-title,
.modal-title {
    color: var(--xor-heading) !important;
    font-weight: var(--xor-font-weight-title) !important;
    letter-spacing: -.02em;
}

small,
.text-muted,
.help-block {
    color: var(--xor-muted) !important;
}

/* =======================================================================
   SIDEBAR
   ======================================================================= */

#page-sidebar {
    background: #f7fbfc !important;
    border-right: 1px solid #edf2f5 !important;
    box-shadow: 10px 0 30px rgba(15, 23, 42, .035) !important;
}

#sidebar-search {
    display: none !important;
}

#primary-nav {
    margin-top: 12px !important;
}

#primary-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 14px 10px !important;
}

#primary-nav li {
    margin: 0 0 8px !important;
    padding: 0 !important;
}

#primary-nav li a {
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 10px 14px 10px 44px !important;
    background: transparent !important;
    color: var(--xor-muted) !important;
    font-size: var(--xor-font-size-base) !important;
    font-weight: var(--xor-font-weight-base) !important;
    border: none !important;
    border-radius: var(--xor-radius-md) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
        background-color var(--xor-transition),
        color var(--xor-transition),
        box-shadow var(--xor-transition) !important;
}

#primary-nav li a:hover,
#primary-nav li a:focus {
    background: var(--xor-surface) !important;
    color: var(--xor-heading) !important;
    box-shadow: var(--xor-shadow-sm) !important;
}

#primary-nav li a.active,
#primary-nav li.active > a,
#primary-nav li.open > a,
#primary-nav li.active > a:hover,
#primary-nav li.open > a:hover {
    background: var(--xor-primary) !important;
    color: #fff !important;
    font-weight: var(--xor-font-weight-heavy) !important;
    box-shadow: var(--xor-shadow-primary) !important;
}

#primary-nav li i,
#primary-nav li .fa,
#primary-nav li .gi,
#primary-nav li .hi,
#primary-nav li .material-icons,
#primary-nav li .material-symbols-outlined {
    width: 24px !important;
    min-width: 24px !important;
    margin: 0 12px 0 -32px !important;
    text-align: center !important;
    color: var(--xor-muted-2) !important;
    font-size: 19px !important;
    line-height: 1 !important;
    opacity: .9 !important;
    vertical-align: middle !important;
}

#primary-nav li a:hover i,
#primary-nav li a:hover .fa,
#primary-nav li a:hover .gi,
#primary-nav li a:hover .hi,
#primary-nav li a:hover .material-icons,
#primary-nav li a:hover .material-symbols-outlined,
#primary-nav li.active > a i,
#primary-nav li.active > a .fa,
#primary-nav li.active > a .gi,
#primary-nav li.active > a .hi,
#primary-nav li.active > a .material-icons,
#primary-nav li.active > a .material-symbols-outlined,
#primary-nav li a.active i,
#primary-nav li a.active .fa,
#primary-nav li a.active .gi,
#primary-nav li a.active .hi,
#primary-nav li a.active .material-icons,
#primary-nav li a.active .material-symbols-outlined {
    color: inherit !important;
    opacity: 1 !important;
}

#primary-nav li span,
#primary-nav li .badge,
#primary-nav li .label {
    margin-left: auto !important;
    min-width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    padding: 0 7px !important;
    background: #eef3f7 !important;
    color: #6b7280 !important;
    border-radius: var(--xor-radius-pill) !important;
    font-size: var(--xor-font-size-xs) !important;
    font-weight: var(--xor-font-weight-heavy) !important;
    text-align: center !important;
}

#primary-nav li.active > a span,
#primary-nav li a.active span,
#primary-nav li.active > a .badge,
#primary-nav li a.active .badge,
#primary-nav li.active > a .label,
#primary-nav li a.active .label {
    background: rgba(255, 255, 255, .25) !important;
    color: #fff !important;
}

/* =======================================================================
   GLOBAL ICONS
   ======================================================================= */

.material-icons,
.material-symbols-outlined {
    font-size: 20px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.btn .material-icons,
.btn .material-symbols-outlined,
button .material-icons,
button .material-symbols-outlined {
    font-size: 18px !important;
    margin-right: 5px !important;
}

/* =======================================================================
   PANELS / BLOCKS / CARDS
   ======================================================================= */

.panel,
.block,
.widget,
.well,
.thumbnail,
.list-group {
    background: var(--xor-surface) !important;
    border: 1px solid var(--xor-border) !important;
    border-radius: var(--xor-radius-lg) !important;
    box-shadow: var(--xor-shadow-sm) !important;
    overflow: hidden !important;
}

.table-responsive {
    background: var(--xor-surface) !important;
    border: 1px solid var(--xor-border) !important;
    border-radius: var(--xor-radius-lg) !important;
    box-shadow: var(--xor-shadow-sm) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

.panel-heading,
.block-title,
.widget-header {
    background: var(--xor-surface) !important;
    border-bottom: 1px solid #eef2f7 !important;
    color: var(--xor-heading) !important;
    padding: 14px 18px !important;
}

.panel-body,
.block-content,
.widget-content,
.well {
    padding: 16px !important;
}

.panel-footer,
.block-footer,
.widget-footer {
    background: var(--xor-surface) !important;
    border-top: 1px solid #eef2f7 !important;
    padding: 14px 18px !important;
}

/* =======================================================================
   TABLES
   ======================================================================= */

.table,
table {
    width: 100% !important;
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    color: var(--xor-text) !important;
    font-size: var(--xor-font-size-base) !important;
}

.table > thead > tr > th,
.table thead th,
table thead th {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    color: var(--xor-heading) !important;
    font-size: var(--xor-font-size-sm) !important;
    font-weight: var(--xor-font-weight-heavy) !important;
    padding: 8px 10px !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.table > tbody > tr,
.table tbody tr {
    background: var(--xor-surface) !important;
    border-radius: var(--xor-radius-md) !important;
    box-shadow: var(--xor-shadow-xs) !important;
    transition:
        background-color var(--xor-transition),
        box-shadow var(--xor-transition) !important;
}

.table > tbody > tr:hover,
.table tbody tr:hover {
    background: #fff !important;
    box-shadow: var(--xor-shadow-sm) !important;
}

.table > tbody > tr > td,
.table tbody td,
table tbody td {
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    color: var(--xor-text) !important;
    padding: 9px 10px !important;
    vertical-align: middle !important;
}

.table > tbody > tr > td:first-child,
.table tbody tr td:first-child {
    border-top-left-radius: var(--xor-radius-md) !important;
    border-bottom-left-radius: var(--xor-radius-md) !important;
}

.table > tbody > tr > td:last-child,
.table tbody tr td:last-child {
    border-top-right-radius: var(--xor-radius-md) !important;
    border-bottom-right-radius: var(--xor-radius-md) !important;
}

.table-striped > tbody > tr:nth-of-type(odd),
.table-hover > tbody > tr:hover {
    background: var(--xor-surface) !important;
}

.table-bordered {
    border: none !important;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: none !important;
}




/* =======================================================================
   DATATABLES
   ======================================================================= */

.dataTables_wrapper {
    background: var(--xor-surface) !important;
    border: 1px solid var(--xor-border) !important;
    border-radius: var(--xor-radius-lg) !important;
    box-shadow: var(--xor-shadow-sm) !important;
    padding: 14px !important;
    overflow: hidden !important;
}

.dataTables_wrapper .row:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 0 12px !important;
}

.dataTables_wrapper .row:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 10px 0 0 !important;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    margin: 0 !important;
}

.dataTables_length label,
.dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--xor-muted) !important;
    font-size: var(--xor-font-size-sm) !important;
    font-weight: var(--xor-font-weight-light) !important;
    margin: 0 !important;
}

.dataTables_length select,
.dataTables_filter input {
    height: 36px !important;
    min-height: 36px !important;
    background: var(--xor-soft) !important;
    border: 1px solid #dbe3ea !important;
    border-radius: var(--xor-radius-pill) !important;
    color: var(--xor-text) !important;
    font-size: var(--xor-font-size-sm) !important;
    box-shadow: none !important;
    outline: none !important;
}

.dataTables_length select {
    width: 76px !important;
    padding: 0 12px !important;
}

.dataTables_filter input {
    width: 210px !important;
    padding: 0 16px !important;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    background: #fff !important;
    border-color: var(--xor-primary) !important;
    box-shadow: var(--xor-shadow-focus) !important;
}

.dataTables_wrapper table {
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    margin: 0 !important;
}

.dataTables_wrapper table thead th {
    background: transparent !important;
    border: none !important;
    color: var(--xor-heading) !important;
    font-size: var(--xor-font-size-sm) !important;
    font-weight: var(--xor-font-weight-heavy) !important;
    padding: 8px 10px !important;
}

.dataTables_wrapper table tbody tr {
    background: var(--xor-soft) !important;
    border-radius: var(--xor-radius-md) !important;
    box-shadow: none !important;
}

.dataTables_wrapper table tbody tr:hover {
    background: var(--xor-soft-2) !important;
}

.dataTables_wrapper table tbody td {
    border: none !important;
    padding: 9px 10px !important;
    vertical-align: middle !important;
}

.dataTables_info {
    color: var(--xor-muted) !important;
    font-size: var(--xor-font-size-sm) !important;
    padding-top: 8px !important;
}

.dataTables_paginate {
    padding-top: 6px !important;
}

.dataTables_paginate .paginate_button,
.dataTables_paginate a,
.pagination > li > a,
.pagination > li > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    min-height: 32px !important;
    margin: 0 3px !important;
    padding: 6px 11px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: var(--xor-radius-pill) !important;
    color: var(--xor-text) !important;
    font-size: var(--xor-font-size-sm) !important;
    font-weight: var(--xor-font-weight-base) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover,
.dataTables_paginate .active a,
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background: var(--xor-primary) !important;
    border-color: var(--xor-primary) !important;
    color: #fff !important;
    box-shadow: var(--xor-shadow-primary) !important;
}

.dataTables_paginate .paginate_button:hover,
.dataTables_paginate a:hover,
.pagination > li > a:hover,
.pagination > li > span:hover {
    background: var(--xor-soft) !important;
    border-color: #dbe3ea !important;
    color: var(--xor-primary) !important;
}

/* =======================================================================
   FORMS
   ======================================================================= */

.form-group {
    margin-bottom: 15px !important;
}

label,
.control-label {
    color: #4b5563 !important;
    font-size: var(--xor-font-size-sm) !important;
    font-weight: var(--xor-font-weight-light) !important;
    margin-bottom: 6px !important;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="url"],
input[type="tel"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 40px !important;
    background: #fff !important;
    border: 1px solid #dbe3ea !important;
    border-radius: var(--xor-radius-md) !important;
    color: var(--xor-text) !important;
    font-size: var(--xor-font-size-base) !important;
    font-weight: var(--xor-font-weight-base) !important;
    padding: 9px 13px !important;
    box-shadow: none !important;
    outline: none !important;
    transition:
        border-color var(--xor-transition),
        box-shadow var(--xor-transition),
        background-color var(--xor-transition) !important;
}

.form-control:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: #cfd8e3 !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    background: #fff !important;
    border-color: var(--xor-primary) !important;
    box-shadow: var(--xor-shadow-focus) !important;
    outline: none !important;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
input[disabled],
select[disabled],
textarea[disabled] {
    background: #eef2f7 !important;
    color: var(--xor-muted) !important;
    cursor: not-allowed !important;
}

textarea {
    min-height: 92px !important;
    resize: vertical !important;
}

select {
    cursor: pointer !important;
}

.input-group .form-control {
    border-radius: var(--xor-radius-md) !important;
}

.input-group-addon,
.input-group-btn .btn {
    background: var(--xor-soft) !important;
    border: 1px solid #dbe3ea !important;
    color: var(--xor-muted) !important;
    border-radius: var(--xor-radius-md) !important;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--xor-primary);
}

/* =======================================================================
   BUTTONS
   ======================================================================= */

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    border-radius: var(--xor-radius-pill) !important;
    font-size: var(--xor-font-size-base) !important;
    font-weight: var(--xor-font-weight-heavy) !important;
    line-height: 1.25 !important;
    padding: 8px 14px !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    outline: none !important;
    transition:
        background-color var(--xor-transition),
        border-color var(--xor-transition),
        box-shadow var(--xor-transition),
        color var(--xor-transition) !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    text-decoration: none !important;
}

.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus {
    outline: none !important;
    box-shadow: var(--xor-shadow-focus) !important;
}

.btn-primary,
.btn-success,
input[type="submit"] {
    background: var(--xor-primary) !important;
    border-color: var(--xor-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover,
input[type="submit"]:hover {
    background: var(--xor-primary-dark) !important;
    border-color: var(--xor-primary-dark) !important;
    color: #fff !important;
    box-shadow: var(--xor-shadow-primary) !important;
}

.btn-default,
.btn-secondary {
    background: #fff !important;
    border-color: var(--xor-border) !important;
    color: var(--xor-text) !important;
}

.btn-default:hover,
.btn-secondary:hover {
    background: var(--xor-soft) !important;
    border-color: #dbe3ea !important;
    color: var(--xor-heading) !important;
    box-shadow: var(--xor-shadow-sm) !important;
}

.btn-danger {
    background: var(--xor-danger) !important;
    border-color: var(--xor-danger) !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(239, 68, 68, .24) !important;
}

.btn-warning {
    background: var(--xor-warning) !important;
    border-color: var(--xor-warning) !important;
    color: #fff !important;
}

.btn-info {
    background: var(--xor-info) !important;
    border-color: var(--xor-info) !important;
    color: #fff !important;
}

.btn-link {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--xor-primary) !important;
    box-shadow: none !important;
}

.btn-xs,
.btn-sm {
    padding: 6px 11px !important;
    font-size: var(--xor-font-size-sm) !important;
}

.btn-lg {
    padding: 11px 20px !important;
    font-size: var(--xor-font-size-md) !important;
}

/* =======================================================================
   BADGES / LABELS / ALERTS
   ======================================================================= */

.label,
.badge {
    border-radius: var(--xor-radius-pill) !important;
    padding: 5px 10px !important;
    font-size: var(--xor-font-size-xs) !important;
    font-weight: var(--xor-font-weight-heavy) !important;
    line-height: 1.2 !important;
}

.label-primary,
.badge-primary,
.label-success,
.badge-success {
    background: var(--xor-primary) !important;
    color: #fff !important;
}

.label-default,
.badge-default {
    background: #eef2f7 !important;
    color: #64748b !important;
}

.alert {
    border: none !important;
    border-radius: var(--xor-radius-lg) !important;
    box-shadow: var(--xor-shadow-sm) !important;
    padding: 13px 16px !important;
    font-weight: var(--xor-font-weight-base) !important;
}

.alert-success {
    background: rgba(16, 185, 129, .12) !important;
    color: #047857 !important;
}

.alert-info {
    background: rgba(59, 130, 246, .12) !important;
    color: #1d4ed8 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, .14) !important;
    color: #b45309 !important;
}

.alert-danger {
    background: rgba(239, 68, 68, .12) !important;
    color: #b91c1c !important;
}

/* =======================================================================
   MODALS
   ======================================================================= */

.modal-content {
    background: #fff !important;
    border: none !important;
    border-radius: var(--xor-radius-xl) !important;
    box-shadow: 0 32px 80px rgba(15, 23, 42, .28) !important;
    overflow: hidden !important;
}

.modal-header,
.modal-body,
.modal-footer {
    background: #fff !important;
}

.modal-header {
    border-bottom: 1px solid #edf1f5 !important;
    padding: 17px 22px !important;
}

.modal-body {
    padding: 22px 26px !important;
}

.modal-footer {
    border-top: 1px solid #edf1f5 !important;
    padding: 16px 22px !important;
}

.modal-title {
    color: var(--xor-heading) !important;
    font-size: var(--xor-font-size-lg) !important;
    font-weight: var(--xor-font-weight-title) !important;
}

.modal-header .close,
.close {
    width: 34px !important;
    height: 34px !important;
    border-radius: var(--xor-radius-pill) !important;
    background: var(--xor-soft) !important;
    color: var(--xor-muted) !important;
    opacity: 1 !important;
    text-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-header .close:hover,
.close:hover {
    background: #eef2f7 !important;
    color: var(--xor-heading) !important;
}

.modal-backdrop {
    background: #0f172a !important;
}

.modal-backdrop.in {
    opacity: .45 !important;
}

.modal-body .form-control,
.modal-body input,
.modal-body select,
.modal-body textarea {
    max-width: 100%;
}

/* =======================================================================
   ACCORDIONS / COLLAPSE / LISTS
   ======================================================================= */

.panel-group .panel,
.accordion-group,
.list-group-item {
    background: #fff !important;
    border: 1px solid var(--xor-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--xor-shadow-sm) !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
}

.panel-group .panel + .panel {
    margin-top: 10px !important;
}

.panel-heading,
.accordion-heading {
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
}

.accordion-toggle,
.panel-heading > a,
.list-group-item > a {
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
    background: #fff !important;
    color: var(--xor-text) !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: var(--xor-font-weight-light) !important;
    transition:
        background-color var(--xor-transition),
        color var(--xor-transition) !important;
}

.accordion-toggle:hover,
.panel-heading > a:hover,
.list-group-item > a:hover {
    color: var(--xor-primary) !important;
    background: var(--xor-soft) !important;
}

.accordion-inner,
.panel-body {
    background: #fff !important;
    border-top: 1px solid #eef2f7 !important;
    padding: 16px !important;
    border-radius: 0 0 20px 20px !important;
}

.collapse,
.collapse.in,
.collapsing {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* =======================================================================
   MODULE ROWS / LEGACY LIST STRUCTURES
   ======================================================================= */

#page-content > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#page-content .module-card,
#page-content .xor-module-card {
    background: #fff !important;
    border: 1px solid var(--xor-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--xor-shadow-sm) !important;
    margin-bottom: 10px !important;
    padding: 12px 16px !important;
}

/* =======================================================================
   NAVS / TABS
   ======================================================================= */

.nav-tabs {
    border-bottom: 1px solid var(--xor-border) !important;
}

.nav-tabs > li > a {
    border: none !important;
    border-radius: var(--xor-radius-pill) !important;
    color: var(--xor-muted) !important;
    font-weight: var(--xor-font-weight-heavy) !important;
    margin-right: 6px !important;
    padding: 8px 14px !important;
}

.nav-tabs > li > a:hover {
    background: var(--xor-soft) !important;
    color: var(--xor-primary) !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: var(--xor-primary) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: var(--xor-shadow-primary) !important;
}

.tab-content {
    background: #fff !important;
    border: 1px solid var(--xor-border) !important;
    border-radius: var(--xor-radius-lg) !important;
    box-shadow: var(--xor-shadow-sm) !important;
    padding: 16px !important;
}

/* =======================================================================
   DROPDOWNS
   ======================================================================= */

.dropdown-menu {
    background: #fff !important;
    border: 1px solid var(--xor-border) !important;
    border-radius: var(--xor-radius-md) !important;
    box-shadow: var(--xor-shadow-md) !important;
    padding: 8px !important;
}

.dropdown-menu > li > a {
    border-radius: var(--xor-radius-sm) !important;
    color: var(--xor-text) !important;
    font-size: var(--xor-font-size-base) !important;
    font-weight: var(--xor-font-weight-base) !important;
    padding: 8px 11px !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--xor-soft) !important;
    color: var(--xor-primary) !important;
}

/* =======================================================================
   IMAGES / THUMBNAILS
   ======================================================================= */

.thumbnail,
.img-thumbnail {
    border-radius: var(--xor-radius-md) !important;
    border: 1px solid var(--xor-border) !important;
    box-shadow: var(--xor-shadow-sm) !important;
}

img.img-rounded,
img.img-thumbnail,
.thumbnail img {
    border-radius: var(--xor-radius-md) !important;
}

/* =======================================================================
   CREATE PRODUCT – IMAGE GALLERY
   ======================================================================= */

.xf-create-product-gallery {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(216, 243, 239, .95);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.xf-create-gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.xf-create-gallery-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(62, 217, 201, .14);
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.xf-product-preview-grid-small {
    width: 100%;
    min-height: 200px !important;
    max-height: 220px !important;
    border-radius: 20px !important;
    border: 1px dashed #d8e3ea !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 12px !important;
    box-shadow: none !important;
}

.xf-product-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
}

.xf-product-preview-placeholder i {
    font-size: 26px;
    color: #94a3b8;
}

.xf-product-preview-grid-small .preview-item-main {
    width: 100% !important;
    min-height: 170px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.xf-product-preview-grid-small .preview-item-main img {
    max-width: 100% !important;
    max-height: 170px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.xf-create-gallery-nav {
    width: 100%;
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) 26px !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 10px 0 10px !important;
}

.xf-create-gallery-arrow {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border-radius: 999px !important;
    border: none !important;
    background: transparent !important;
    color: #334155 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: color .14s ease, background-color .14s ease, transform .14s ease !important;
}

.xf-create-gallery-arrow:hover {
    background: rgba(62, 217, 201, .12) !important;
    color: var(--xor-primary) !important;
    transform: translateY(-1px) !important;
}

.xf-create-gallery-arrow i {
    font-size: 13px !important;
    margin: 0 !important;
}

.xf-create-gallery-thumbs {
    min-width: 0 !important;
    display: flex !important;
    gap: 7px !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    min-height: 50px !important;
}

.xf-create-gallery-thumb {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 15px !important;
    border: 1px solid transparent !important;
    background: #ffffff !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease !important;
}

.xf-create-gallery-thumb:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(62, 217, 201, .55) !important;
}

.xf-create-gallery-thumb img {
    max-width: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 11px !important;
}

.xf-create-gallery-thumb.is-active {
    border-color: var(--xor-primary) !important;
    box-shadow: 0 7px 16px rgba(62, 217, 201, .16) !important;
}

.xf-create-product-gallery .custom-file-row {
    margin-top: 8px;
    text-align: center;
}

.xf-create-product-gallery .xf-file-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.xf-create-product-gallery input[type="file"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.xf-create-product-gallery .xf-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 17px;
    border-radius: 999px;
    background: var(--xor-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--xor-shadow-primary);
    transition: background-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.xf-create-product-gallery .xf-file-button:hover {
    background: var(--xor-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.xf-create-product-gallery .xf-file-name {
    display: block;
    max-width: 100%;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    word-break: break-word;
    margin-top: 5px;
}

.xf-create-product-gallery .product-help-text {
    display: none !important;
}

/* =======================================================================
   SCROLLBARS
   ======================================================================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #eef2f7;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--xor-radius-pill);
    border: 2px solid #eef2f7;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =======================================================================
   RESPONSIVE
   ======================================================================= */

@media (max-width: 991px) {
    #page-content {
        padding: 16px !important;
    }

    .dataTables_wrapper .row:first-child,
    .dataTables_wrapper .row:last-child {
        display: block !important;
    }

    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        margin-bottom: 10px !important;
        text-align: left !important;
    }

    .dataTables_filter input {
        width: 100% !important;
    }

    .modal-body {
        padding: 20px !important;
    }

    .xf-products-table {
        min-width: 980px !important;
    }
}

@media (max-width: 767px) {
    #page-content {
        padding: 12px !important;
    }

    .table-responsive {
        border-radius: var(--xor-radius-lg) !important;
        overflow-x: auto !important;
    }

    .btn {
        white-space: normal !important;
    }

    .modal-content {
        border-radius: var(--xor-radius-lg) !important;
    }
}.xf-products-table .xf-product-image-picker {
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 auto !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    border: 1px solid rgba(62, 217, 201, .28) !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .045) !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.xf-products-table .xf-product-image-box {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.xf-products-table .xf-product-image-box img {
    width: auto !important;
    height: auto !important;
    max-width: 38px !important;
    max-height: 38px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    display: block !important;
}

.xf-products-table .xf-product-image-empty {
    color: #94a3b8 !important;
    font-size: 18px !important;
}

.xf-products-table .xf-product-image-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background: rgba(15, 23, 42, .62) !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    opacity: 0 !important;
    transition: opacity .16s ease !important;
    pointer-events: none !important;
}

.xf-products-table .xf-product-image-overlay i {
    font-size: 15px !important;
}

.xf-products-table .xf-product-image-picker:hover {
    border-color: var(--xor-primary) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .09) !important;
    transform: translateY(-1px) !important;
}

.xf-products-table .xf-product-image-picker:hover .xf-product-image-overlay {
    opacity: 1 !important;
}

.xf-products-table .xf-product-image-hidden-button {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

.xf-products-table .xf-product-image-hidden-button a,
.xf-products-table .xf-product-image-hidden-button button {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: transparent !important;
}
/* =======================================================================
   ILUNERA / EDIT PRODUCT - GALLERY + FORM
   ======================================================================= */

.xf-edit-product-layout {
    display: grid !important;
    grid-template-columns: 330px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

.xf-edit-product-gallery,
.xf-edit-product-form {
    min-width: 0 !important;
}

.xf-edit-gallery-main {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 28px !important;
    gap: 8px !important;
    align-items: center !important;
}

.xf-edit-gallery-image-box {
    width: 100% !important;
    min-height: 220px !important;
    max-height: 240px !important;
    border-radius: 22px !important;
    border: 1px dashed #d8e3ea !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 14px !important;
}

.xf-edit-gallery-main-image {
    max-width: 100% !important;
    max-height: 210px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.xf-edit-gallery-arrow {
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #334155 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.xf-edit-gallery-arrow:hover {
    background: rgba(62, 217, 201, .12) !important;
    color: var(--xor-primary) !important;
}

.xf-edit-gallery-badges {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 12px 0 !important;
}

.xf-edit-gallery-view-label,
.xf-edit-gallery-counter,
.xf-edit-gallery-main-badge {
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    background: #eef2f7 !important;
    color: #475569 !important;
}

.xf-edit-gallery-view-label,
.xf-edit-gallery-counter {
    display: inline-flex !important;
}

/* El badge "Main" solo se muestra cuando el JS le agrega .is-visible,
   así puede ocultarse en las imágenes que no son la principal. */
.xf-edit-gallery-main-badge {
    display: none !important;
    background: var(--xor-primary) !important;
    color: #fff !important;
    gap: 5px !important;
}

.xf-edit-gallery-main-badge.is-visible {
    display: inline-flex !important;
}

.xf-edit-gallery-thumbs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 4px 0 12px !important;
}

.xf-edit-gallery-thumb-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 15px !important;
    border: 1px solid transparent !important;
    background: #fff !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    overflow: hidden !important;
}

.xf-edit-gallery-thumb-btn img {
    max-width: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.xf-edit-gallery-thumb-btn.is-active {
    border-color: var(--xor-primary) !important;
    box-shadow: 0 7px 16px rgba(62, 217, 201, .16) !important;
}

.xf-edit-image-settings {
    border-top: 1px solid #edf1f5 !important;
    padding-top: 14px !important;
    margin-top: 10px !important;
}

.xf-edit-image-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.xf-edit-image-actions form,
.xf-edit-image-actions button {
    width: 100% !important;
}

.xf-edit-upload-form {
    border-top: 1px solid #edf1f5 !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
}

@media (max-width: 991px) {
    .xf-edit-product-layout {
        grid-template-columns: 1fr !important;
    }
}
/* --------------------------------------------------------------------------
   Visual Search - Ilunera / XOR
-------------------------------------------------------------------------- */

.visual-search-page {
    padding: 28px 24px;
}

.visual-search-header {
    margin-bottom: 18px;
}

.visual-search-header h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #111827;
}

.visual-search-header p {
    font-size: 14px;
    margin: 0;
    color: #6b7280;
}

.visual-search-wrapper {
    max-width: 1180px;
    margin: 0;
}

.visual-search-card {
    padding: 14px 18px;
    border-radius: 18px;
}

.visual-search-form {
    width: 100%;
}

.visual-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 14px;
    align-items: start;
}

.visual-search-upload {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
    min-height: auto;
}

.visual-search-upload label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: #334155;
}

.visual-search-upload input[type="file"] {
    width: 100%;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    font-size: 13px;
    color: #334155;
}

.visual-search-upload small {
    display: block;
    margin-top: 7px;
    color: #7a7f87;
    font-size: 12px;
}

.visual-search-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.visual-search-actions .btn {
    border-radius: 14px;
    padding: 9px 18px;
    font-weight: 700;
}

.visual-search-result {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
}

.visual-search-result h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.visual-search-score {
    font-size: 38px;
    font-weight: 800;
    color: #18b8aa;
    margin: 8px 0;
    line-height: 1;
}

.visual-search-status {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.visual-search-observations {
    color: #6b7280;
    margin-bottom: 0;
}

.visual-search-error {
    border-left: 5px solid #ef4444;
}

.visual-search-error h3 {
    color: #b91c1c;
}

.visual-search-error p {
    margin-bottom: 0;
    color: #7f1d1d;
}

@media (max-width: 900px) {
    .visual-search-page {
        padding: 20px 14px;
    }

    .visual-search-grid {
        grid-template-columns: 1fr;
    }

    .visual-search-actions {
        justify-content: stretch;
    }

    .visual-search-actions .btn {
        width: 100%;
    }
}
.visual-search-modern-panel {
    width: 100%;
    max-width: 1180px;
    margin: 28px 0;
    padding: 34px 38px;
    border-radius: 34px;
    background: #f1eef2;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.visual-search-modern-header {
    padding: 0 12px 22px;
    border-bottom: 4px solid rgba(0, 0, 0, 0.12);
}

.visual-search-modern-header h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: #15151f;
}

.visual-search-modern-header p {
    margin: 0;
    font-size: 15px;
    color: #686879;
}

.visual-search-modern-body {
    display: grid;
    grid-template-columns: 260px 4px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    padding-top: 28px;
}

.visual-search-reference-side h4,
.visual-search-results-top h4 {
    margin: 0 0 22px;
    font-size: 16px;
    font-weight: 700;
    color: #6a6875;
}

.visual-search-reference-box {
    width: 240px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.visual-search-reference-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-search-reference-side small {
    display: block;
    margin-top: 10px;
    color: #777;
    font-size: 12px;
}

.visual-search-divider {
    width: 4px;
    min-height: 280px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
}

.visual-search-results-side {
    min-width: 0;
}

.visual-search-results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visual-search-modern-arrows {
    display: flex;
    gap: 8px;
}

.visual-search-modern-arrow {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    cursor: pointer;
}

.visual-search-modern-carousel {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 4px 12px;
}

.visual-search-modern-card {
    flex: 0 0 245px;
    text-decoration: none;
    color: inherit;
}

.visual-search-modern-image {
    width: 245px;
    height: 220px;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.visual-search-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.visual-search-modern-info {
    margin: 12px 8px 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.visual-search-modern-info strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #171721;
}

.visual-search-modern-info span,
.visual-search-modern-info em {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.visual-search-modern-info span {
    color: #777;
}

.visual-search-modern-info em {
    font-style: normal;
    font-weight: 700;
    color: #27c7b8;
}

@media (max-width: 900px) {
    .visual-search-modern-body {
        grid-template-columns: 1fr;
    }

    .visual-search-divider {
        display: none;
    }

    .visual-search-reference-box {
        width: 100%;
        max-width: 320px;
    }
}
.visual-search-modern-action {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}
/* =======================================================================
   ILUNERA / MOCKUP STUDIO - FROM ZERO
   ======================================================================= */

.mockup-studio-page {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    background: #f7fafc;
    overflow-x: hidden;
    box-sizing: border-box;
}

.mockup-studio-page * {
    box-sizing: border-box;
}

.mockup-studio-topbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.mockup-brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mockup-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #fff 38%, transparent 40%),
        conic-gradient(#ff5f7e, #ffcc4d, #3ed9c9, #3b82f6, #a855f7, #ff5f7e);
}

.mockup-brand-area strong {
    font-size: 21px;
    font-weight: 900;
    color: #0f172a;
}

.mockup-brand-area > span {
    width: 1px;
    height: 28px;
    background: #dbe3ea;
    margin: 0 8px;
}

.mockup-brand-area em,
.mockup-brand-area small {
    font-style: normal;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mockup-brand-area small {
    color: #0f172a;
}

.mockup-view-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e5edf5;
    border-radius: 16px;
    overflow-x: auto;
}

.mockup-view-tabs a {
    min-width: 78px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.mockup-view-tabs a.active {
    background: rgba(62, 217, 201, .12);
    color: #009b8d;
    box-shadow: inset 0 -2px 0 #00bfa6;
}

.mockup-top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mockup-icon-button,
.mockup-secondary-button,
.mockup-primary-button {
    min-height: 38px;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    border: 1px solid #e5edf5 !important;
    background: #fff !important;
    color: #14213d !important;
    white-space: nowrap;
}

.mockup-icon-button {
    width: 38px;
    padding: 0 !important;
}

.mockup-secondary-button {
    padding: 0 14px !important;
}

.mockup-primary-button {
    background: linear-gradient(135deg, #00a991, #3ed9c9) !important;
    border-color: transparent !important;
    color: #fff !important;
    padding: 0 16px !important;
    box-shadow: 0 14px 30px rgba(0, 169, 145, .22) !important;
}

.mockup-studio-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 230px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    align-items: start;
}

.mockup-left-panel,
.mockup-main-panel,
.mockup-right-panel {
    min-width: 0;
}

.mockup-left-panel,
.mockup-right-panel {
    display: grid;
    gap: 10px;
    align-content: start;
}

.mockup-steps-card,
.mockup-product-card,
.mockup-main-panel,
.mockup-design-card,
.mockup-control-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.mockup-steps-card,
.mockup-product-card,
.mockup-design-card,
.mockup-control-card {
    padding: 12px;
}

.mockup-panel-title {
    display: block;
    margin-bottom: 12px;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mockup-step-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 9px;
    align-items: center;
    margin-bottom: 14px;
}

.mockup-step-item:after {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: -14px;
    width: 1px;
    background: #dbeafe;
}

.mockup-step-item:last-child:after {
    display: none;
}

.mockup-step-item b {
    width: 28px;
    height: 28px;
    z-index: 2;
    border-radius: 999px;
    background: #00a991;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.mockup-step-item.active {
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border: 1px solid #3ed9c9;
    border-radius: 14px;
}

.mockup-step-item strong,
.mockup-step-item span {
    display: block;
}

.mockup-step-item strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.mockup-step-item span {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.mockup-left-upload-box {
    min-height: 180px;
    padding: 16px;
    border: 1px dashed #dbe3ea;
    border-radius: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #14213d;
    text-align: center;
}

.mockup-upload-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(62, 217, 201, .14);
    color: #00a991;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mockup-left-upload-box strong,
.mockup-left-upload-box span,
.mockup-left-upload-box em {
    display: block;
}

.mockup-left-upload-box strong {
    font-size: 12px;
    font-weight: 900;
}

.mockup-left-upload-box span,
.mockup-left-upload-box em {
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
}

.mockup-help-note {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(62, 217, 201, .10);
    color: #0f766e;
}

.mockup-help-note strong,
.mockup-help-note span {
    display: block;
}

.mockup-help-note strong {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 900;
}

.mockup-help-note span {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.mockup-main-panel {
    overflow: hidden;
}

.mockup-canvas-toolbar {
    min-height: 56px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-toggle-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #14213d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mockup-toggle-control span {
    width: 30px;
    height: 17px;
    position: relative;
    border-radius: 999px;
    background: #00a991;
}

.mockup-toggle-control span:after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #fff;
}

.mockup-status-pill {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(62, 217, 201, .14);
    color: #008a7c;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.mockup-zoom-control {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid #e5edf5;
    border-radius: 12px;
}

.mockup-zoom-control button {
    width: 22px;
    height: 22px;
    min-height: 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #334155 !important;
}

.mockup-zoom-control strong {
    font-size: 12px;
    color: #334155;
}

.mockup-canvas-body {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 500px;
}

.mockup-side-tools {
    padding: 16px 5px;
    border-right: 1px solid #edf2f7;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: hidden;
}

.mockup-side-tools button {
    width: 100%;
    min-height: 42px !important;
    padding: 4px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #14213d !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-side-tools button:hover {
    background: rgba(62, 217, 201, .1) !important;
}

.mockup-canvas-stage {
    position: relative;
    min-width: 0;
    min-height: 500px;
    background:
        radial-gradient(circle at center, rgba(62, 217, 201, .06), transparent 38%),
        #fbfdff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mockup-shirt-canvas {
    position: relative;
    width: min(78%, 440px);
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-shirt-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 24px 34px rgba(15, 23, 42, .13));
}

.mockup-zone-svg {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.mockup-zone-polygon {
    fill: rgba(62, 217, 201, .08);
    stroke: #00bfa6;
    stroke-width: 1.1;
    stroke-dasharray: 4 2.5;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 10px rgba(62, 217, 201, .55));
}

.mockup-upload-placeholder {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 51%;
    transform: translate(-50%, -50%);
    width: 145px;
    min-height: 160px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #14213d;
    text-align: center;
}

.mockup-upload-placeholder strong,
.mockup-upload-placeholder span,
.mockup-upload-placeholder em {
    display: block;
}

.mockup-upload-placeholder strong {
    font-size: 12px;
    font-weight: 900;
}

.mockup-upload-placeholder span,
.mockup-upload-placeholder em {
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
}

.mockup-view-strip {
    min-height: 110px;
    padding: 12px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
}

.mockup-view-thumb {
    display: grid;
    gap: 6px;
    cursor: pointer;
    text-align: center;
}

.mockup-view-thumb input {
    display: none;
}

.mockup-view-thumb span {
    width: 92px;
    height: 62px;
    border: 1px solid #e5edf5;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mockup-view-thumb img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.mockup-view-thumb strong {
    color: #64748b;
    font-size: 11px;
}

.mockup-view-thumb.active span {
    border-color: #00a991;
    box-shadow: 0 0 0 3px rgba(62, 217, 201, .16);
}

.mockup-view-thumb.active strong {
    color: #00a991;
}

.mockup-design-file {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 8px;
    align-items: center;
}

.mockup-design-preview {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
}

.mockup-design-file strong,
.mockup-design-file span {
    display: block;
}

.mockup-design-file strong {
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
}

.mockup-design-file span {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

.mockup-design-file button {
    display: none;
}

.mockup-two-buttons,
.mockup-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
}

.mockup-two-buttons button,
.mockup-action-grid button {
    min-height: 32px !important;
    padding: 6px 8px !important;
    border: 1px solid #e5edf5 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #14213d !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

.mockup-slider-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 42px;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.mockup-slider-row.full {
    grid-template-columns: 1fr 42px;
}

.mockup-slider-row label,
.mockup-control-card label {
    margin: 0 !important;
    color: #334155 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

.mockup-slider-row input {
    width: 100%;
}

.mockup-slider-row strong {
    min-height: 30px;
    border: 1px solid #e5edf5;
    border-radius: 10px;
    color: #14213d;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-control-card select {
    min-height: 32px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
}

.mockup-action-grid .danger {
    color: #ef4444 !important;
}

.mockup-alert {
    margin-bottom: 14px;
}

.mockup-empty-canvas {
    color: #64748b;
    text-align: center;
}

.mockup-empty-canvas strong,
.mockup-empty-canvas span {
    display: block;
}

@media (max-width: 1200px) {
    .mockup-studio-layout {
        grid-template-columns: 190px minmax(0, 1fr) 220px;
    }

    .mockup-shirt-canvas {
        width: min(78%, 400px);
        height: 400px;
    }
}

@media (max-width: 1050px) {
    .mockup-studio-topbar,
    .mockup-studio-layout {
        grid-template-columns: 1fr;
    }

    .mockup-top-actions,
    .mockup-view-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }
}
.mockup-left-upload-box input[type="file"],
.mockup-upload-placeholder input[type="file"],
.mockup-two-buttons input[type="file"] {
    display: none;
}

.mockup-left-upload-box,
.mockup-upload-placeholder,
.mockup-two-buttons label {
    cursor: pointer;
}

.mockup-design-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28%;
    max-width: 55%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.mockup-design-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mockup-canvas-upload-form {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-empty-design {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    opacity: 0.75;
}
.mockup-left-upload-box input[type="file"],
.mockup-upload-placeholder input[type="file"],
.mockup-two-buttons input[type="file"] {
    display: none;
}

.mockup-left-upload-box,
.mockup-upload-placeholder,
.mockup-two-buttons label {
    cursor: pointer;
}

.mockup-design-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28%;
    max-width: 90%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.mockup-design-layer-duplicate {
    z-index: 6;
}

/* Clipping container: keeps the design inside the printable zone bounds.
   Default covers the full stage; JS resizes it to the printable bounding box. */
.mockup-printable-clip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: auto;
    z-index: 5;
}

.mockup-printable-clip .mockup-design-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    max-width: none;
    height: auto;
    display: block;
    opacity: 1;
    visibility: visible;
    object-fit: contain;
    transform-origin: center center;
    z-index: 6;
}

/* Keep the printable outline visible above the clipped design (must not hide it). */
.mockup-shirt-canvas .mockup-zone-svg {
    z-index: 7;
    pointer-events: none;
}

/* Temporary visual debug: only active with ?debug_mockup=1 (JS adds .is-debug). */
.mockup-printable-clip.is-debug {
    outline: 2px dashed red;
}

.mockup-design-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mockup-remove-bg-form {
    margin-top: 12px;
}

.mockup-ai-button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
}

.mockup-canvas-upload-form {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-empty-design {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    opacity: 0.75;
}
.xf-inline-form {
   display: inline-block;
}

.xf-currency-filter {
   max-width: 360px;
   margin-bottom: 18px;
}

.xf-currency-filter .form-group {
   margin-bottom: 8px !important;
}
.xf-currency-results {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   gap: 8px;
   margin: 10px 0 16px;
}

.xf-currency-result-item {
   width: 100%;
   min-height: 58px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   padding: 10px 14px !important;
   border-radius: 16px !important;
   border: 1px solid var(--xor-border) !important;
   background: #fff !important;
   color: var(--xor-text) !important;
   text-align: left;
   box-shadow: var(--xor-shadow-xs) !important;
}

.xf-currency-result-item:hover {
   border-color: var(--xor-primary) !important;
   background: var(--xor-soft) !important;
   color: var(--xor-heading) !important;
}

.xf-currency-result-item strong {
   display: block;
   font-size: 13px;
   font-weight: 900;
}

.xf-currency-result-item small {
   display: block;
   margin-top: 3px;
   color: var(--xor-muted);
   font-size: 11px;
   font-weight: 700;
   line-height: 1.3;
}

.xf-currency-result-item span {
   color: var(--xor-muted);
   font-weight: 900;
   white-space: nowrap;
}

.xf-currency-empty {
   padding: 10px 14px;
   border-radius: 16px;
   background: #fff;
   border: 1px solid var(--xor-border);
   color: var(--xor-muted);
   font-weight: 700;
}

.xf-selected-currency-card {
   padding: 12px 14px;
   border-radius: 18px;
   border: 1px solid var(--xor-border);
   background: var(--xor-soft);
}
/* ============================================================
   Edit Product modal — selected image settings panel
   (sits below the thumbnail strip; compact, scoped to gallery)
   ============================================================ */
.xf-edit-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.xf-setting-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xf-setting-label {
    font-size: .82rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
    margin: 0;
}

.xf-view-select {
    max-width: 160px;
    font-size: .85rem;
}

/* Add product images (Edit modal) — compact button + view select */
.xf-add-images-form {
    margin-top: 12px;
}

.xf-add-images-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.xf-add-view-select {
    max-width: 130px;
    font-size: .85rem;
}

.xf-add-images-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px dashed #b9c2cc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    transition: .18s;
}

.xf-add-images-label:hover {
    border-color: var(--xor-primary);
    color: var(--xor-primary);
}

.xf-add-images-form input[type="file"] {
    display: none;
}

/* ============================================================
   Product Image Manager — gallery style (Create Product modal)
   One large preview + arrows + thumbnail strip + settings.
   Scoped with .xf-product-image-manager / .xf-pim-*
   ============================================================ */
.xf-product-image-manager {
    display: block;
}

.xf-pim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.xf-pim-title {
    font-weight: 800;
    font-size: .95rem;
    color: #334155;
}

.xf-pim-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px dashed #b9c2cc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: .82rem;
    margin: 0;
    transition: .18s;
}

.xf-pim-add-btn:hover {
    border-color: var(--xor-primary);
    color: var(--xor-primary);
}

.xf-pim-file-input {
    /* Visually hidden but still operable via the "+ Add product images" label.
       Bulletproof against theme overrides. */
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Stage: arrows + large preview */
.xf-pim-stage {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: center;
}

.xf-pim-arrow {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.xf-pim-arrow:hover {
    background: rgba(62, 217, 201, .12);
    color: var(--xor-primary);
}

.xf-pim-preview {
    position: relative;
    width: 100%;
    min-height: 280px;
    max-height: 340px;
    border-radius: 20px;
    border: 1px dashed #d8e3ea;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 14px;
}

.xf-pim-image {
    max-width: 100%;
    max-height: 312px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.xf-pim-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-weight: 800;
    text-align: center;
}

.xf-pim-empty i {
    font-size: 26px;
}

.xf-pim-main-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    background: var(--xor-primary);
    color: #fff;
}

/* Thumbnail strip */
.xf-pim-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    min-height: 0;
}

.xf-pim-thumb-btn {
    position: relative;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #fff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.xf-pim-thumb-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.xf-pim-thumb-btn.is-active {
    border-color: var(--xor-primary);
    box-shadow: 0 7px 16px rgba(62, 217, 201, .16);
}

.xf-pim-thumb-star {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--xor-primary);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Per-thumbnail remove control (appears on hover) */
.xf-pim-thumb-remove {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(220, 53, 69, .9);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s ease;
}

.xf-pim-thumb-btn:hover .xf-pim-thumb-remove {
    opacity: 1;
}

/* Selected image settings panel */
.xf-pim-settings {
    border-top: 1px solid #edf1f5;
    padding-top: 12px;
    margin-top: 4px;
}

.xf-pim-setting-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.xf-pim-setting-label {
    font-size: .82rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
    margin: 0;
}

.xf-pim-view-select {
    max-width: 160px;
    font-size: .85rem;
}

.xf-pim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Make "Set as main image" read clearly as a button inside the modal */
.xf-pim-setmain,
.xf-set-main-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 8px 16px !important;
    border: 1px solid var(--xor-primary) !important;
    border-radius: 10px !important;
    background: rgba(62, 217, 201, .10) !important;
    color: #0f766e !important;
    font-weight: 700 !important;
    font-size: .85rem !important;
    cursor: pointer;
    transition: .15s;
}

.xf-pim-setmain:hover,
.xf-set-main-btn:hover {
    background: var(--xor-primary) !important;
    color: #fff !important;
}

.xf-pim-setmain i,
.xf-set-main-btn i {
    color: inherit;
}

.xf-pim-hint {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
}

/* "Detected from filename" suggestion hint (Create + Edit) */
.xf-pim-detected-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(62, 217, 201, .10);
    color: #0f766e;
    font-size: .76rem;
    font-weight: 600;
}

.xf-pim-detected-hint i {
    font-size: .8rem;
}
