.full-container .breadcrumb-menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

label.error {
    color: #c82222;
    margin-bottom: 3px;
}

.alert p {
    margin-bottom: 0px;
}
/* Summernote modal cleanup */
.note-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10001 !important;
    padding: 24px 16px !important;
    overflow-y: auto !important;
    background: transparent !important;
}

.note-modal.open {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100vh - 48px) !important;
    box-sizing: border-box !important;
}

.note-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    background-color: transparent !important;
}

.note-modal-content {
    position: relative !important;
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.note-modal-header {
    padding: 14px 18px !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.note-modal-header .close {
    float: right !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

.note-modal-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.note-modal-body {
    padding: 16px 18px !important;
    overflow: visible;
}

.note-modal-footer {
    padding: 12px 18px !important;
    height: auto !important;
    background-color: #f5f5f5 !important;
    border-top: 1px solid #e5e5e5 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
}

.note-modal-footer .note-btn {
    float: none !important;
    margin-left: 0 !important;
    padding: 6px 16px !important;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
}

.note-modal-footer .note-btn:hover {
    background-color: #000;
    border-color: #000;
}

.note-modal .checkbox {
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    padding-left: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10002 !important;
    background: transparent !important;
    border: none !important;
}

.note-modal .checkbox:before,
.note-modal .checkbox label:before,
.note-modal .checkbox input[type="checkbox"]:before,
.note-modal .checkbox:after,
.note-modal .checkbox label:after,
.note-modal .checkbox input[type="checkbox"]:after {
    display: none !important;
    content: none !important;
}

.note-modal .checkbox label {
    cursor: pointer !important;
    font-weight: 500 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    user-select: auto !important;
    color: #333 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.note-modal .checkbox input[type="checkbox"] {
    position: static !important;
    margin: 0 !important;
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10003 !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

.note-group-select-from-files,
.note-group-image-url {
    margin-bottom: 20px !important;
}

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

.note-modal-body .form-control {
    padding: 8px 12px !important;
    height: auto !important;
}

/* Keep action controls consistent across pages. */
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
a[href],
[role="button"],
[data-action],
.open-remote-modal,
.delete-entry,
.resend-btn,
.upload-btn,
.delete-btn,
.edit-btn,
.remove-sku-btn,
.delete-existing-image {
    cursor: pointer;
}

button:not(:disabled) i,
button:not(:disabled) svg,
input[type="button"]:not(:disabled) + i,
input[type="submit"]:not(:disabled) + i,
input[type="reset"]:not(:disabled) + i,
a[href] i,
a[href] svg,
[role="button"] i,
[role="button"] svg,
[data-action] i,
[data-action] svg,
.open-remote-modal i,
.open-remote-modal svg,
.delete-entry i,
.delete-entry svg,
.resend-btn i,
.resend-btn svg,
.upload-btn i,
.upload-btn svg,
.delete-btn i,
.delete-btn svg,
.edit-btn i,
.edit-btn svg,
.remove-sku-btn i,
.remove-sku-btn svg,
.delete-existing-image i,
.delete-existing-image svg {
    cursor: pointer;
}

/* PIXIE “P” mark — potrace SVG; color via currentColor (dark: admin-theme.css) */
.pixie-logo-mark {
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
    color: #0f766e;
}

.pixie-logo-mark__svg {
    display: block;
    height: auto;
    max-width: 100%;
}

.pixie-logo-mark__svg path {
    stroke: none;
}

/* Sidebar + header: same mark sizing (inline SVG width/height need !important) */
.sidebar-logo a .logo .pixie-logo-mark--sidebar {
    padding-top: 12px;
    padding-left: 17px;
}

.sidebar-logo a .logo .pixie-logo-mark--sidebar .pixie-logo-mark__svg {
    width: 35px !important;
    height: auto !important;
    border-radius: 5px;
}

.header-pixie-mark-wrap .pixie-logo-mark--header {
    padding-top: 0px;
    padding-left: 0px;
}

.header-pixie-mark-wrap .pixie-logo-mark--header .pixie-logo-mark__svg {
    width: 35px !important;
    height: auto !important;
    border-radius: 5px;
}

.header-pixie-mark-wrap {
    width: auto;
    min-width: 2rem;
    min-height: 1.5rem;
    padding: 0 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-pixie-mark-wrap .pixie-logo-mark__svg {
    width: 100px !important;
    max-width: 100%;
    height: auto !important;
}

/* Flex columns: allow shrinking so nested wide content can scroll inside the column */
.full-container .row > [class*="col-"] {
    min-width: 0;
}

/* Voucher list: product name column min width */
.vouchers-list-page table.dataTable th.voucher-list-col-product-name,
.vouchers-list-page table.dataTable td.voucher-list-col-product-name {
    min-width: 200px;
}

/* Access token list: product column min width */
.access-token-list-page table.dataTable th.voucher-list-col-product-name,
.access-token-list-page table.dataTable td.voucher-list-col-product-name {
    min-width: 200px;
}

/* index.css sets a.btn { color: #fff } for legacy solid links; outline icon links must stay visible */
a.btn-outline-secondary.image-url-open,
a.btn-outline-secondary.image-url-open .fa {
    color: #6c757d !important;
}
a.btn-outline-secondary.image-url-open:hover,
a.btn-outline-secondary.image-url-open:hover .fa,
a.btn-outline-secondary.image-url-open:focus,
a.btn-outline-secondary.image-url-open:focus .fa {
    color: #fff !important;
}

/* Physical product pages: jump links, Back, Cancel use <a class="btn btn-outline-secondary">.
   Legacy index.css rule a.btn { color: #fff } makes labels invisible on white outline buttons. */
.physical-product-page a.btn-outline-secondary,
.physical-product-page a.btn-outline-secondary .fa {
    color: #495057 !important;
}
.physical-product-page a.btn-outline-secondary:hover,
.physical-product-page a.btn-outline-secondary:focus,
.physical-product-page a.btn-outline-secondary:hover .fa,
.physical-product-page a.btn-outline-secondary:focus .fa {
    color: #212529 !important;
}

body.theme-dark .physical-product-page a.btn-outline-secondary,
body.theme-dark .physical-product-page a.btn-outline-secondary .fa {
    color: #e8eaed !important;
}
body.theme-dark .physical-product-page a.btn-outline-secondary:hover,
body.theme-dark .physical-product-page a.btn-outline-secondary:focus,
body.theme-dark .physical-product-page a.btn-outline-secondary:hover .fa,
body.theme-dark .physical-product-page a.btn-outline-secondary:focus .fa {
    color: #fff !important;
}

.physical-product-page .pp-tips-details summary {
    cursor: pointer;
    list-style-position: outside;
}
.physical-product-page .pp-tips-details summary::-webkit-details-marker {
    color: #6c757d;
}

/* Gallery URL rows: URL + preview thumb + actions */
.physical-product-page .pp-gallery-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.65rem;
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
}
.physical-product-page .pp-gallery-url-wrap {
    flex: 1 1 180px;
    min-width: 0;
}
.physical-product-page .pp-gallery-url-wrap .form-control {
    font-size: 0.875rem;
}
.physical-product-page .pp-gallery-thumb-wrap {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.physical-product-page .pp-gallery-thumb-wrap .pp-gallery-thumb-placeholder {
    font-size: 0.7rem;
    color: #adb5bd;
    text-align: center;
    padding: 4px;
    line-height: 1.2;
    max-width: 100%;
}
.physical-product-page .pp-gallery-thumb-wrap img.pp-gallery-thumb {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.physical-product-page .pp-gallery-actions {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
}

/* Attribute blocks: one card per row, remove top-right */
.physical-product-page .pp-attr-card {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    background: #fafbfc;
}
.physical-product-page .pp-attr-card .pp-attr-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.physical-product-page .pp-attr-card .pp-attr-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

/* Program create/update: file input in a flex row — min-width + overflow so “Choose file” stays clickable */
#program-create-page .program-file-input-wrap,
#program-update-page .program-file-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

#program-create-page .program-file-input-wrap .img-input[type="file"],
#program-update-page .program-file-input-wrap .img-input[type="file"] {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

#program-create-page .program-img-file-clear,
#program-update-page .program-img-file-clear {
    flex-shrink: 0;
    width: calc(1.5em + 0.5rem + 2px);
    min-width: calc(1.5em + 0.5rem + 2px);
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0;
    line-height: 1;
    font-size: 1.25rem;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*
 * Select2 inside `.select2-sm` (Order List filters, etc.):
 * Theme index.css adds border + padding-top on `.select2-container`, which stacks
 * with Select2’s `.select2-selection` border (double box, uneven left/right/top gaps).
 * Reset the outer container and size the single control like form-select-sm.
 */
.select2-sm .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.select2-sm .select2-container .select2-selection--single {
    box-sizing: border-box !important;
    width: 100% !important;
    height: calc(1.5em + 0.5rem + var(--bs-border-width, 1px) * 2) !important;
    min-height: calc(1.5em + 0.5rem + var(--bs-border-width, 1px) * 2);
    margin: 0 !important;
    padding: 0;
    border: var(--bs-border-width, 1px) solid var(--bs-border-color, #ced4da);
    border-radius: var(--bs-border-radius-sm, 0.2rem);
    background-color: var(--bs-body-bg, #fff);
}

.select2-sm
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: calc(1.5em + 0.5rem);
    padding-left: 0.5rem;
    padding-right: 1.75rem;
    font-size: 0.875rem;
    color: var(--bs-body-color, #212529);
}

.select2-sm
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: calc(1.5em + 0.5rem + var(--bs-border-width, 1px) * 2);
    top: 0;
    right: 0.35rem;
}

.select2-sm
    .select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    margin-top: 0;
    line-height: calc(1.5em + 0.5rem);
}

/* index.css adds margin-top on `.select2-sm .select2` */
.select2-sm select.form-select.select2:not(.select2-hidden-accessible) {
    margin-top: 0 !important;
}

.select2-sm select.select2.select2-hidden-accessible {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Page Info modal (Bulk Update Vouchers guide style) + title-row Info button */
.page-info-help-doc {
}

.page-info-help-doc-title {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.page-info-help-block {
    margin-bottom: 25px;
}

.page-info-help-h3 {
    margin-bottom: 5px;
    font-size: 1.05rem;
    font-weight: 600;
}

.page-info-help-h3--plain {
    color: #3498db;
}

.page-info-help-h3--orange {
    color: #e67e22;
}

.page-info-help-callout {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.page-info-help-callout--green {
    border-left: 5px solid #2ecc71;
}

.page-info-help-callout--green .page-info-help-h3 {
    color: #27ae60;
}

.page-info-help-callout--orange {
    border-left: 5px solid #e67e22;
}

.page-info-help-callout--orange .page-info-help-h3 {
    color: #e67e22;
}

.page-info-help-callout p,
.page-info-help-block p {
    margin: 0;
}

.page-info-help-callout ul,
.page-info-help-block ul {
    margin-top: 10px;
    padding-left: 20px;
}

.page-info-help-tagline {
    margin-top: 30px;
    margin-bottom: 0;
    font-size: 12px;
    color: #999;
    text-align: center;
}

html.dark .page-info-help-doc {
}

html.dark .page-info-help-doc-title {
    color: var(--bs-body-color, #e9ecef);
    border-bottom-color: var(--bs-border-color, #495057);
}

html.dark .page-info-help-callout {
    background-color: rgba(255, 255, 255, 0.06);
}

html.dark .page-info-help-tagline {
    color: var(--bs-secondary-color, #adb5bd);
}

/* Guest / auth layout (guest.ejs) — same Inter + smoothing as light admin shell */
body.guest-auth-layout,
body.guest-auth-layout .peer {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/*
 * PIXIE remote modals (reusable)
 * ------------------------------
 * Fragment root: add class "pixie-modal" (and a stable id when required for JS).
 * Layout: .cpp-modal-header / .cpp-modal-body / .cpp-modal-footer, .cpp-panel,
 *   .cpp-section-head, .cpp-panel-actions (form button row), .cpp-table-wrap, table.cpp-table,
 *   .catalogue-price-product-summary (optional).
 * Buttons (global): .btn .btn-sm .pixie-btn with .pixie-btn-solid | .pixie-btn-outline | .pixie-btn-table.
 */

/* Programme catalogue — Update Price modal: product summary (aligned with admin “clean” surfaces) */
:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    padding: 14px 16px;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 6px;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 12px;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title-row .cpp-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #171717;
    line-height: 1.35;
    margin-bottom: 0;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title-row:last-child {
    margin-bottom: 0;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title-mrp {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-variant-numeric: tabular-nums;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-summary-block {
    margin-bottom: 1.25rem;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-tile {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px 12px;
    min-width: 0;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-label {
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 4px;
    line-height: 1.3;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #171717;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    word-break: break-word;
}

:is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-sep {
    font-weight: 500;
    color: #a3a3a3;
    margin: 0 0.2em;
    font-size: 0.8125rem;
}

/* Update Price modal — panels, forms, table (PIXIE admin light surfaces) */
:is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-header {
    padding: 1.1rem 1.25rem 1rem;
    background: #fff;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #171717;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-subtitle {
    font-size: 0.8125rem;
    color: #737373;
    line-height: 1.35;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-body {
    padding: 1.25rem 1.25rem 1.5rem;
    background: #f4f4f5;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-panel--table {
    padding: 1rem 0 0;
    margin-bottom: 0;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-panel--table .cpp-section-head {
    padding: 0 1.15rem;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-section-head {
    margin-bottom: 0.9rem;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #171717;
    letter-spacing: -0.01em;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-section-hint {
    font-size: 0.8125rem;
    color: #737373;
    line-height: 1.4;
    margin-bottom: 0;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-section-head--row .cpp-section-hint {
    max-width: 36rem;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-input-group .cpp-input-group-text {
    background: #f9fafb;
    border-color: #e5e5e5;
    color: #525252;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-input-group .form-control.cpp-input {
    border-color: #e5e5e5;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-input-group .form-control.cpp-input:focus {
    border-color: #a3a3a3;
    box-shadow: 0 0 0 0.15rem rgba(15, 118, 110, 0.12);
}

/* Edit price: selling price + valid from locked for current / expired periods (not upcoming) */
:is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .cpp-input,
:is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .input-group-text {
    background-color: #f4f4f5 !important;
    color: #525252 !important;
    cursor: not-allowed !important;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .cpp-input-group,
:is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .cpp-edit-valid-from-wrap {
    pointer-events: none;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-add-actions {    
    margin-top: 0.25rem;
    padding-top: 0.85rem !important;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-table-wrap {
    overflow-x: auto;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.35rem;
    border-radius: 0 0 12px 12px;
}

:is(#update-catalogue-price-box, .pixie-modal) table.cpp-table thead th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #737373;
    background: #fafafa !important;
    border-bottom: 1px solid #e5e5e5 !important;
    white-space: nowrap;
    padding: 0.55rem 0.65rem;
}

:is(#update-catalogue-price-box, .pixie-modal) table.cpp-table tbody td {
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    vertical-align: middle;
}

:is(#update-catalogue-price-box, .pixie-modal) table.cpp-table tbody tr:hover {
    background-color: #f9fafb;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-footer {
    padding: 0.75rem 1.25rem;
    background: #fafafa;
}

:is(#update-catalogue-price-box, .pixie-modal) .cpp-price-id {
    font-size: 1rem;
    color: #171717;
}

/*
 * PIXIE buttons — Bootstrap 5 .btn uses --bs-btn-*; base .btn has transparent bg/border.
 * Set variables so hover/active/focus match (esp. modals outside #mainContent).
 */
.btn.pixie-btn {
    --bs-btn-font-weight: 600;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.btn.pixie-btn:focus-visible {
    outline: 0;
}

.btn.pixie-btn-solid {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1a1a1a;
    --bs-btn-border-color: #1a1a1a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-disabled-color: #a3a3a3;
    --bs-btn-disabled-bg: #e5e5e5;
    --bs-btn-disabled-border-color: #e5e5e5;
}

.btn.pixie-btn-solid:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.2) !important;
}

.btn.pixie-btn-outline {
    --bs-btn-color: #1a1a1a;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #e5e5e5;
    --bs-btn-hover-color: #1a1a1a;
    --bs-btn-hover-bg: #f5f5f5;
    --bs-btn-hover-border-color: #d4d4d4;
    --bs-btn-active-color: #1a1a1a;
    --bs-btn-active-bg: #ebebeb;
    --bs-btn-active-border-color: #d4d4d4;
    --bs-btn-disabled-color: #a3a3a3;
    --bs-btn-disabled-bg: #fafafa;
    --bs-btn-disabled-border-color: #e5e5e5;
}

.btn.pixie-btn-outline:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08) !important;
}

.btn.pixie-btn.pixie-btn-table {
    padding: 0.2rem 0.65rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    min-height: auto !important;
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary {
    background: var(--bs-secondary-bg, rgba(255, 255, 255, 0.04));
    border-color: var(--bs-border-color, #495057);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-label,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-label {
    color: var(--bs-secondary-color, #adb5bd);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title {
    color: var(--bs-body-color, #e9ecef);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-tile,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-tile {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-label,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-label {
    color: var(--bs-secondary-color, #adb5bd);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-value,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-value {
    color: var(--bs-body-color, #e9ecef);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-sep,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-meta-sep {
    color: var(--bs-secondary-color, #6c757d);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title-mrp,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .catalogue-price-product-summary .cpp-title-mrp {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(134, 239, 172, 0.35);
    color: #bbf7d0;
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-header,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-header {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057) !important;
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-title,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-title {
    color: var(--bs-body-color, #e9ecef);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-subtitle,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-subtitle {
    color: var(--bs-secondary-color, #adb5bd);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-body,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-body {
    background: var(--bs-body-bg, #1a1d21);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-panel,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-panel {
    background: var(--bs-body-bg, #212529);
    border-color: var(--bs-border-color, #495057);
    box-shadow: none;
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-panel-actions,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-panel-actions {
    border-top-color: var(--bs-border-color, #495057);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .cpp-input,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .cpp-input,
html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .input-group-text,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-field--frozen .input-group-text {
    background-color: rgba(0, 0, 0, 0.25) !important;
    color: var(--bs-secondary-color, #adb5bd) !important;
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-section-title,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-section-title {
    color: var(--bs-body-color, #e9ecef);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-section-hint,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-section-hint {
    color: var(--bs-secondary-color, #adb5bd);
}



html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-table-wrap,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-table-wrap {
    border-top-color: var(--bs-border-color, #495057);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) table.cpp-table thead th,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) table.cpp-table thead th {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--bs-secondary-color, #adb5bd);
    border-color: var(--bs-border-color, #495057) !important;
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) table.cpp-table tbody td,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) table.cpp-table tbody td {
    border-color: var(--bs-border-color, #495057);
    color: var(--bs-body-color, #e9ecef);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) table.cpp-table tbody tr:hover,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) table.cpp-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-footer,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-modal-footer {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--bs-border-color, #495057) !important;
}

html.dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-price-id,
body.theme-dark :is(#update-catalogue-price-box, .pixie-modal) .cpp-price-id {
    color: var(--bs-body-color, #e9ecef);
}

html.dark .btn.pixie-btn-solid,
body.theme-dark .btn.pixie-btn-solid {
    --bs-btn-color: #0a0a0a;
    --bs-btn-bg: #f5f5f5;
    --bs-btn-border-color: #f5f5f5;
    --bs-btn-hover-color: #0a0a0a;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: #0a0a0a;
    --bs-btn-active-bg: #e8e8e8;
    --bs-btn-active-border-color: #e8e8e8;
}

html.dark .btn.pixie-btn-outline,
body.theme-dark .btn.pixie-btn-outline {
    --bs-btn-color: var(--bs-body-color, #e9ecef);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--bs-border-color, #495057);
    --bs-btn-hover-color: var(--bs-body-color, #fff);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-btn-hover-border-color: var(--bs-border-color, #6c757d);
    --bs-btn-active-color: var(--bs-body-color, #fff);
    --bs-btn-active-bg: rgba(255, 255, 255, 0.1);
    --bs-btn-active-border-color: var(--bs-border-color, #6c757d);
}

/*
 * Admin shell: sidebar is position:fixed; main column must offset by the same width.
 * index.css sets .page-container { padding-left: 0 } for 992px–1439px while the
 * rail stays 70px — content and the fixed header sit under the sidebar. Pin .header
 * with left + right (width:auto) so it lines up with the main column on all breakpoints.
 */
@media screen and (min-width: 992px) and (max-width: 1439px) {
    body.app .page-container {
        padding-left: 70px !important;
    }
    body.app:not(.is-collapsed) .header {
        left: 70px !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
    body.app.is-collapsed .header {
        left: 280px !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
    /* Dark theme: legacy absolute .full-container still uses left:0 in index.css */
    body.app:not(.admin-light-ui) #mainContent .full-container {
        left: 70px !important;
    }
    body.app.is-collapsed:not(.admin-light-ui) #mainContent .full-container {
        left: 280px !important;
    }
}

@media screen and (min-width: 1440px) {
    body.app:not(.is-collapsed) .header {
        left: 280px !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
    body.app.is-collapsed .page-container {
        padding-left: 70px !important;
    }
    body.app.is-collapsed .header {
        left: 70px !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
}

