/* ============================================================
   NEXProPix / Cherry Hill Studio - Consolidated styles.css
   - Deduped + grouped
   - Fixed iPhone cart preview overflow / card clipping
   - Removed conflicting overrides (esp. .nex-thumb + preview image sizing)
   ============================================================ */


/* ============================================================
   0) Global / Base
   ============================================================ */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    position: relative;
    font: 14px/1.7 "Open Sans", sans-serif;
    color: #777;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

p {
    font-size: larger;
    color: #2d2727;
}

/* Site container width (desktop) */
.container {
    max-width: 1125px !important;
}


/* ============================================================
   1) Featured Products (Cart Modal)
   (These are NOT cart list item styles)
   ============================================================ */

.nex-feat-wrap {
    text-align: left;
    margin-top: 16px;
}

.nex-feat-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    color: #2c2c2c;
}

/* Grid: 3-up desktop */
.nex-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Card */
.nex-feat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    padding: 10px;
    min-width: 0;
}

/* Image */
.nex-feat-img {
    height: 90px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-bottom: 8px;
}

    .nex-feat-img img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

.nex-feat-noimg {
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* Body */
.nex-feat-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nex-feat-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nex-feat-price {
    font-size: 13px;
    font-weight: 600;
    color: #0b6b3a;
    margin-bottom: 10px;
}

/* Button */
.nex-feat-buy {
    margin-top: auto;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

    .nex-feat-buy:active {
        transform: translateY(1px);
    }

/* Featured Responsive */
@media (max-width: 900px) {
    .nex-feat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nex-feat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .nex-feat-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   2) Cart UI (List + Summary)
   ============================================================ */

/* Badge on cart icon */
.nex-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Cart grid layout */
.nex-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 24px;
    align-items: start;
}

/* Generic "card" */
.nex-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

/* Cart list container */
.nex-cart-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 16px;
}

/* Cart item card */
.nex-cart-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px;
    overflow: hidden; /* ✅ clamps preview to rounded corners on iPhone */
}

/* Item grid row: thumbnail + details */
.nex-item-row {
    display: grid;
    grid-template-columns: minmax(0, 300px) 1fr;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 16px;
}

/* Primary brand button: sampled from the upper-left blue in FindMyPhotos.png. */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0047b8;
    --bs-btn-border-color: #0047b8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #003a98;
    --bs-btn-hover-border-color: #00378f;
    --bs-btn-focus-shadow-rgb: 0, 71, 184;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00327f;
    --bs-btn-active-border-color: #002f78;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0047b8;
    --bs-btn-disabled-border-color: #0047b8;
    background-color: #0047b8;
    border-color: #0047b8;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #003a98;
    border-color: #00378f;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(0, 71, 184, 0.35);
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #00327f;
    border-color: #002f78;
}

/* ------------------------------------------------------------
   2a) Cart Thumbnail / Preview (SPLIDE)
   IMPORTANT:
   - This area MUST be the boss of height.
   - No later overrides of overflow/height on .nex-thumb.
   ------------------------------------------------------------ */

.nex-thumb {
    width: 300px;
    height: 300px;
    max-width: 300px;
    max-height: 300px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden; /* ✅ critical */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.08);
}

.nex-item-row > div {
    min-width: 0;
}

.nex-cart-edit {
    display: block;
    width: auto;
    min-width: 86px;
    margin: 12px auto 0;
}

    /* If a plain <img> is used instead of splide */
    .nex-thumb > img,
    .nex-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* Splide wrapper */
.nex-cart-preview {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin-bottom: 0;
}

/* Splide wrapper */
.nex-cart-preview {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin-bottom: 0;
    display: block;
}

/* Splide root should fill the thumb */
.nex-splide-cart-preview {
    width: 100%;
    height: 100%;
}

    /* Track fills available area */
    .nex-splide-cart-preview .splide__track {
        height: 100%;
    }

    /* Leave .splide__list alone so Splide can position slides correctly */

    .nex-splide-cart-preview .splide__slide {
        height: 100%;
    }

.nex-cart-preview-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Preview image MUST fill available height */
.nex-cart-preview-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain !important;
    object-position: center center;
    display: block;
    background: transparent;
}

/* Slide alignment */
.nex-cart-preview .splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Splide arrows */
.nex-splide-cart-preview .splide__arrow {
    background: rgba(0,0,0,.55);
}

    .nex-splide-cart-preview .splide__arrow svg {
        fill: #fff;
    }

/* Preview note */
.nex-cart-preview-note {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: #444;
    width: 100%;
}

/* Final rendered sheets/products, separate from the pose/crop preview. */
.nex-rendered-products {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.09);
}

.nex-rendered-products-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 10px;
}

.nex-rendered-products-heading > strong {
    font-size: 15px;
    color: #222;
}

.nex-rendered-products-heading > span {
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 600;
}


.nex-splide-product-preview {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nex-rendered-products-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nex-rendered-products-carousel.nex-splide-has-overflow {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 4px;
}

.nex-splide-product-preview .splide__track {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.nex-splide-product-preview .splide__slide {
    width: 125px;
}

.nex-rendered-product-slide {
    width: 125px;
    margin: 0;
}

.nex-rendered-product-image-wrap {
    width: 125px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    background: #f6f7f9;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 12px;
}

.nex-rendered-product-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nex-rendered-product-slide figcaption {
    padding: 7px 4px 0;
    overflow: hidden;
    color: #444;
    font-size: 12.5px;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nex-rendered-product-slide figcaption span {
    font-weight: 700;
}

.nex-rendered-products-nav {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(0,0,0,.16);
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0,0,0,.16);
    color: #333;
    cursor: pointer;
    opacity: 1;
}

.nex-rendered-products-carousel.nex-splide-has-overflow > .nex-rendered-products-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nex-rendered-products-nav:hover:not(:disabled),
.nex-rendered-products-nav:focus-visible:not(:disabled) {
    background: #fff;
    box-shadow: 0 3px 9px rgba(0,0,0,.24);
}

.nex-rendered-products-nav:disabled {
    cursor: default;
    opacity: .35;
}

    .nex-cart-preview-note strong {
        font-weight: 600;
    }

/* Preview title under image */
.nex-cart-preview-title {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}


/* ------------------------------------------------------------
   2b) Cart Item Details
   ------------------------------------------------------------ */

.nex-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.nex-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: #000 !important;
}

.nex-price {
    font-size: 20px;
    font-weight: 700;
}

.nex-muted {
    color: #6b7280;
    font-size: 13px;
}

/* Background selection box */
.nex-option-box {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    background: #fff;
}

.nex-option-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .nex-option-row + .nex-option-row {
        margin-top: 6px;
    }

/* Qty */
.nex-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.nex-stepper {
    display: inline-flex;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    overflow: hidden;
    height: 40px;
}

    .nex-stepper button {
        width: 44px;
        border: 0;
        background: #f3f4f6;
        font-size: 18px;
        line-height: 40px;
    }

    .nex-stepper input {
        width: 56px;
        border: 0;
        text-align: center;
        outline: none;
        font-weight: 600;
    }

/* Footer line total + remove */
.nex-item-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.nex-link-danger {
    color: #dc2626;
    cursor: pointer;
    font-weight: 600;
}

/* Empty cart */
.nex-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280;
}


/* ------------------------------------------------------------
   2c) Cart Summary
   ------------------------------------------------------------ */

.nex-summary {
    padding: 16px;
}

    .nex-summary h3 {
        margin: 0 0 12px 0;
        font-size: 18px;
        font-weight: 800;
    }

.nex-sum-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.nex-sum-total {
    border-top: 1px solid rgba(0,0,0,.10);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 800;
}

/* Desktop sticky summary (default) */
@media (min-width: 993px) {
    .nex-summary {
        position: sticky;
        top: 16px;
    }
}

/* NOTE:
   You had a second (min-width: 993px) block that forced #dvCartList to scroll
   and disabled sticky. That conflicts with your “sticky” debugging and creates
   overflow/scroll containers that can break sticky behavior.
   If you still want that behavior, move it into its own feature flag section
   and ONLY enable intentionally.
*/


/* ------------------------------------------------------------
   2d) Cart Responsive
   ------------------------------------------------------------ */

@media (max-width: 992px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .nex-cart-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .nex-cart-grid > *,
    .nex-summary {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 700px) {
    .nex-cart-item {
        padding: 14px;
    }

    .nex-item-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* JavaScript sizes this box from the active image's intrinsic ratio. */
    .nex-thumb {
        max-width: 300px;
        max-height: 300px;
        border-radius: 14px;
    }

    .nex-item-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nex-title {
        font-size: 18px;
        color: #000 !important;
    }

    .nex-price {
        font-size: 18px;
    }

    .nex-option-box {
        padding: 10px;
    }

    .nex-option-row {
        align-items: baseline;
    }

        .nex-option-row > div:first-child {
            min-width: 0;
        }

    .nex-qty-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nex-stepper {
        width: 100%;
        height: 44px;
    }

        .nex-stepper button {
            width: 54px;
            font-size: 20px;
        }

        .nex-stepper input {
            width: 100%;
            font-size: 16px;
        }

    .nex-item-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #btnCheckout {
        height: 52px !important;
    }

    #btnClearCart {
        height: 48px !important;
    }

    .nex-cart-preview-title {
        font-size: 12.5px;
    }

    /* Splide mobile track polish */
    .nex-splide-cart-preview .splide__track {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        background: #f6f7f9;
    }

    .nex-splide-cart-preview .splide__slide {
        padding: 10px 0;
    }

    .nex-splide-cart-preview .splide__arrow {
        width: 34px;
        height: 34px;
        background: rgba(0,0,0,.45);
        opacity: 0.95;
    }

    .nex-splide-cart-preview .splide__arrow--prev {
        left: 6px;
    }

    .nex-splide-cart-preview .splide__arrow--next {
        right: 6px;
    }

    .nex-splide-cart-preview .splide__pagination {
        bottom: 6px;
    }

    .nex-cart-preview-note {
        padding: 6px 8px 0 8px;
        font-size: 12.5px;
        line-height: 1.35;
    }
}

/* Extra small: ensure row layout isn’t forced elsewhere */
@media (max-width: 576px) {
    .flat-section,
    .flat-section > .container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .nex-item-row {
        display: block;
    }

    .nex-thumb {
        max-width: min(300px, 100%);
        max-height: 300px;
        margin: 0 0 10px 0;
    }

    .nex-splide-cart-preview {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .nex-rendered-products-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }


}


/* ============================================================
   3) Product Builder: One-at-a-time edit flash
   ============================================================ */

:is(#dvProductLayout, #OrderProductEditorCanvas) :is(.ProductLayer, .cpb-background-text).nex-edit-flash::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 8px solid #ffe600;
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(0,0,0,.22), 0 0 18px rgba(255,230,0,.85);
    pointer-events: none;
    z-index: 200000;
    animation: nexEditFlash 0.75s ease-in-out 2;
}

@keyframes nexEditFlash {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    55% {
        opacity: 1;
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

:is(#dvProductLayout, #OrderProductEditorCanvas) :is(.ProductLayer, .cpb-background-text).nex-edit-flash {
    pointer-events: auto !important;
    z-index: 199999 !important;
}


/* ============================================================
   4) SweetAlert2 / Z-index / Validation
   ============================================================ */

.swal2-container {
    z-index: 100000 !important;
}

.validationError {
    border: 1px solid red !important;
}


/* ============================================================
   5) Placeholder classes (Ajax / validation hooks)
   ============================================================ */

.AjaxToggle {
}

.AjaxRequired {
}

.AjaxInput {
}

.AjaxEmail {
}

.AjaxPassword1 {
}

.AjaxPassword2 {
}

.AjaxDomain {
}

.AjaxPhone {
}


/* ============================================================
   6) DataTables / Filter UI
   ============================================================ */

.dataTables_filter {
    position: relative;
    display: flex;
    align-items: center;
}

    .dataTables_filter .search-icon {
        position: absolute;
        right: 10px;
        pointer-events: none;
        top: 6px;
        opacity: .3;
    }

    .dataTables_filter input {
        padding-left: 40px;
        height: 38px;
    }

#zero-config thead th,
#tblJobData thead th {
    position: sticky;
    top: 0;
    z-index: 5;
}

.subject-face-avatar {
    display: block;
    width: 38px;
    height: 46px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
}

thead tr th {
    position: sticky;
    top: 0;
}

table {
    border-collapse: collapse;
}

.dt-table-hover tbody tr:hover {
    background-color: #ffffff !important;
}

.odd {
    background-color: #f2f2f2;
}

.even {
    background-color: #e8e8e8;
}

.SearchResults {
    text-align: right;
    margin-top: 10px;
}


/* ============================================================
   7) Forms / Inputs
   ============================================================ */

input[type="text"]:focus,
textarea:focus,
select:focus {
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea {
    resize: vertical;
}

select.form-control {
    background-image: initial !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.form-group {
    margin-bottom: 10px;
}

.requiredStar {
    color: red;
}

.MPSForm {
    padding: 20px;
}


/* ============================================================
   8) Buttons / Icons
   ============================================================ */

.btnSvg {
    margin-right: 15px;
}

.btn-form {
    width: 90%;
    min-width: 140px;
}

.btn-group {
    min-width: 150px;
}

.MenuIconMargin {
    margin-right: 5px;
}

.buttonSpacing {
    margin-left: 10px;
}

/* Top-right header icons alignment */
.topRightIcons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 10px;
}

    .topRightIcons .nav-link {
        padding: 0 !important;
        margin: 0 !important;
    }

.topIcon {
    width: 42px;
    height: 42px;
    display: inline-block;
    vertical-align: middle;
}


/* ============================================================
   9) Loading Spinner
   ============================================================ */

.LoadingSpinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 100000;
    display: none;
    background-color: rgba(255,255,255,.5);
    padding-top: 100px;
}


/* ============================================================
   10) MiniColors
   ============================================================ */

.minicolors-theme-bootstrap .minicolors-swatch {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    margin-top: 2px;
}


/* ============================================================
   11) Subject / Grid UI (Badges, selection)
   ============================================================ */

.subject-image,
.primary-image,
.secondary-image {
    border: none !important;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.image-badge {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    pointer-events: none;
}

.image-badge-primary {
    bottom: 5px;
    left: 5px;
    background: rgba(6, 137, 248, 0.85);
}

.image-badge-secondary {
    bottom: 5px;
    left: 5px;
    background: rgba(43, 179, 163, 0.90);
}

.image-badge-yearbook {
    top: 6px;
    right: 6px;
    background: rgba(34, 197, 94, 0.95);
}

.nex-grid-badge.primary {
    background: rgba(6, 137, 248, 0.85) !important;
}

.nex-grid-badge.secondary {
    background: rgba(43, 179, 163, 0.90) !important;
}

.nex-grid-badge.yearbook {
    background: rgba(34, 197, 94, 0.95) !important;
}

.nex-grid-subject-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nex-grid-subject-tile {
    position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 8px;
}

    .nex-grid-subject-tile.is-selected {
        border-color: rgba(59,130,246,0.9);
        box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
    }

.nex-grid-overlay[data-filter="primaryOnly"] .nex-grid-subject-img {
    cursor: pointer;
}

.nex-grid-tile.grid-selected {
    border: 3px solid #92e171 !important;
    box-shadow: 0 0 0 2px rgba(146, 225, 113, 0.25);
}

.nex-grid-tile.grid-yb-active {
    border: 3px solid rgba(34, 197, 94, 0.95) !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.nex-grid-tile.grid-selected.grid-yb-active {
    border-color: #92e171 !important;
    box-shadow: 0 0 0 2px rgba(146, 225, 113, 0.25);
}

.nex-grid-caption {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prevent click-drag selection in the grid */
#dvGridView,
#dvGridView * {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

    #dvGridView img {
        -webkit-user-drag: none;
        user-drag: none;
    }

    #dvGridView input,
    #dvGridView textarea {
        -webkit-user-select: text;
        -moz-user-select: text;
        user-select: text;
    }


/* ============================================================
   12) Background tiles (price overlay)
   ============================================================ */

.nex-bg-tile {
    position: relative;
}

.nex-bg-price {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    border-radius: 6px;
}


/* ============================================================
   13) Drag/Drop image helpers
   ============================================================ */

.image-row {
    user-select: none;
}

.draggable-image {
    cursor: grab;
}

    .draggable-image.dragging {
        opacity: 0.7;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }


/* ============================================================
   14) Misc layout / theme bits
   ============================================================ */

.transactions-list .t-item {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
}

    .transactions-list .t-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.general-info {
    margin-bottom: 20px;
    background-color: #eaf1ff !important;
}

.colorBox {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
}

.colorBoxEdit {
    width: 40px;
    height: 40px;
    display: inline-block;
    margin-right: 3px;
    cursor: pointer;
    position: relative;
}

.colorBoxCheck {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 0;
}

.StreamLineLeft {
    display: inline-block;
    padding: 10px;
    margin-right: 20px;
}

/* ✅ Fixed typo: @@media -> @media */
@media (max-width: 900px) {
    .StreamLineLeft {
        margin-left: 36px;
    }
}

.StreamLineRight {
    display: inline-block;
    padding: 10px;
}

.schoolFilterColumn {
    height: 60px;
    width: 170px;
}

.sidebar-theme {
    background: #3a8fdb;
}

.HeaderBar {
    background-color: #1744ed;
}


/* ============================================================
   15) Zoom controls: mobile vs desktop (Product Builder)
   ============================================================ */

@media (max-width: 768px) {
    #editControls #zoomControls {
        display: flex !important;
    }

    #editControls #mobileZoomHint {
        display: block !important;
        font-weight: 500;
    }

    #nexZoom .form-range {
        height: 1.25rem;
    }

    #nexZoom button {
        font-size: 16px;
        padding: 10px 16px !important;
    }
}

/* A larger native thumb for phones/tablets; the track keeps its normal thickness. */
@media (max-width: 768px), (any-pointer: coarse) {
    #nexZoom #sliderImageSize,
    #nexZoom #sliderImageRotation {
        height: 44px;
        min-width: 0 !important;
        padding: 0;
        touch-action: pan-y;
        -webkit-appearance: none;
        appearance: none;
    }

    #nexZoom #sliderImageSize::-webkit-slider-runnable-track,
    #nexZoom #sliderImageRotation::-webkit-slider-runnable-track {
        height: 8px;
    }

    #nexZoom #sliderImageSize::-webkit-slider-thumb,
    #nexZoom #sliderImageRotation::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 36px;
        height: 36px;
        margin-top: -14px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: #0d6efd;
        box-shadow: 0 0 0 1px #86b7fe;
    }

    #nexZoom #sliderImageSize::-moz-range-thumb,
    #nexZoom #sliderImageRotation::-moz-range-thumb {
        box-sizing: border-box;
        width: 36px;
        height: 36px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: #0d6efd;
        box-shadow: 0 0 0 1px #86b7fe;
    }
}
@media (min-width: 769px) {
    #editControls #zoomControls {
        display: flex !important;
    }

    #editControls #mobileZoomHint {
        display: none !important;
    }
}


/* ============================================================
   16) Admin floating icons
   ============================================================ */

.edit-icon,
.delete-icon,
.add-icon {
    height: 35px;
    width: 35px;
    display: flex;
    color: #e0e6ed !important;
    justify-content: center;
    align-self: center;
    border-radius: 50%;
    box-shadow: 0 6px 10px rgba(0,0,0,0.14), 0 1px 18px rgba(0,0,0,0.12), 0 3px 5px rgba(0,0,0,0.2);
}

.edit-icon {
    background: linear-gradient(to right, #12e6a3 0%, #0f9d70 100%);
}

.delete-icon {
    background: linear-gradient(to right, #fa430b 0%, #ac330e 100%);
}

.add-icon {
    background: linear-gradient(to right, #0689f8 0%, #086bbf 100%);
}

.edit-img {
    margin-top: 4px;
}

.dataTables_info {
    border: none !important;
}
    width: 100%;
    max-width: 100%;
    min-width: 0;
.nex-locked-account-alert .swal2-html-container {
    max-height: none;
    overflow: visible;
}
