:root{ 
  --bs-body-font-family: "DM Sans", sans-serif;
  --bs-heading-font-family: "Outfit", sans-serif;
  --bs-primary:#349552; 
  --accent:#349552; 
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #349552;
    --bs-btn-border-color: #349552;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3eaa5f;
    --bs-btn-hover-border-color: #3eaa5f;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3eaa5f;
    --bs-btn-active-border-color: #3eaa5f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #349552;
    --bs-btn-disabled-border-color: #349552;
}
.btn-outline-primary {
    --bs-btn-color: #349552;
    --bs-btn-border-color: #349552;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #349552;
    --bs-btn-hover-border-color: #349552;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #349552;
    --bs-btn-active-border-color: #349552;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #349552;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #349552;
    --bs-gradient: none;
}
.fs-8 {
    font-size: 12px;
}
.logotje {
    height: 50px;
}
h1, h2, h3 {
  font-family: var(--bs-heading-font-family);
}
.status-dot{ width:10px;height:10px;display:inline-block;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent); }
.object-fit-contain{ object-fit: contain; }
.z-top {
  z-index: 10;
}
#bulkStatus::before {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

#bulkStatus:empty::before {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.card.border-success {
  box-shadow: 0 0 0 2px rgba(25,135,84,.35);
}
/*#imageGenModal .btn-close,
#contentModal  .btn-close{
    margin: 0;
}*/



.filter-container {
  padding-top: 8px;
  padding-bottom: 4px;
  border-top: 1px solid #F2F2F2;
}



nav.navbar {
    box-shadow: 0px 2px 20px 0px #0000000A;
    padding: 24px;
    .navbar-brand {
      font-size: 24px;
    }
    a {
        color: #193425;
        text-decoration: none;
    }
}

/* Layout: independent column scrolling */
.vh-layout {
    height: calc(100vh - 88px); /* subtract navbar height */
    overflow: hidden;
}
.bg-grey {
    background: #F2F2F2;
    border-radius: 8px;
}
/* Abrapix logo in modal headers */
.abrapix-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Modal header font sizes */
.fs-sm-custom { font-size: .95rem; }
.opacity-85   { opacity: .85; }
.fs-credits   { font-size: .82rem; }
.fs-tiny      { font-size: .68rem; }
.letter-spacing-sm { letter-spacing: .02em; }

/* Icon circles (replaces inline width/height on rounded-circle divs) */
.icon-circle-sm {
    width: 36px;
    height: 36px;
}

/* Larger spinner */
.spinner-border-lg {
    width: 3rem;
    height: 3rem;
}

/* Preview image max height */
.imggen-preview {
    max-height: 65vh;
    object-fit: contain;
}

/* Image generation slots */
.imggen-slot { cursor: default; transition: border-color .15s, box-shadow .15s; }
.imggen-slot.active { border-color: #349552 !important; box-shadow: 0 0 0 .2rem rgba(13,110,253,.25) !important; }
.imggen-slot.done   { border-color: #198754 !important; }
.opacity-60 { opacity: .6; }
.imggen-thumbs img { width:48px; height:48px; object-fit:cover; border-radius:4px; cursor:pointer; border:2px solid transparent; transition:border-color .1s; }
.imggen-thumbs img:hover, .imggen-thumbs img.active-thumb { border-color:#349552; }


input.form-control.form-control-sm {
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    border-radius: 8px;
    border-width: 1px;
    border-color: #D9D9D9;
    font-size: 16px;
    font-weight: 400;
}


/* ── Dual-range sliders (potmaat / hoogte / prijs) ──────────────────── */
.range-wrap {
    position: relative;
    height: 28px;
    margin: 4px 0 2px;
}

.range-wrap input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.range-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--accent);
    pointer-events: all;
    cursor: pointer;
}

.range-wrap input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--accent);
    pointer-events: all;
    cursor: pointer;
}

.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 2px;
    background: #dee2e6;
    transform: translateY(-50%);
    pointer-events: none;
}

.range-track-fill {
    position: absolute;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: #6c757d;
    margin-top: 2px;
}

.range-labels strong {
    color: #212529;
}


/* ─── Product Card — reusable classes ──────────────────────────────── */
.pc-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ─── Product Card — image carousel ────────────────────────────────── */
.pc-carousel-wrap {
    position: relative;
}
.pc-carousel,
.pc-carousel .carousel-inner,
.pc-carousel .carousel-item {
    height: 200px;
}
.pc-carousel .carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f4f4f4;
}
/* Placeholder shown for slides whose image hasn't loaded yet */
.pc-carousel .carousel-item img:not([src]),
.pc-carousel .carousel-item img[src=""] {
    visibility: hidden;
}
.pc-carousel-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #193425;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
}
.pc-carousel-wrap:hover .pc-carousel-ctrl {
    opacity: 1;
}
.pc-carousel-ctrl--prev { left: 8px; }
.pc-carousel-ctrl--next { right: 8px; }
/* Hide the arrows/dots entirely when a card only has one image */
.pc-carousel-wrap:not(.has-multiple) .pc-carousel-ctrl,
.pc-carousel-wrap:not(.has-multiple) .pc-carousel-dots {
    display: none;
}
.pc-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.pc-carousel-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.pc-carousel-dots button.active {
    background: #349552;
}
/* Badge telling the user this product already has multiple generated/source images */
.pc-image-count {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(25, 52, 37, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pc-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
        aspect-ratio: 1 / 1;
}
.pc-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}
.pc-zoom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
}

.pc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Tags / badges */
.pc-tags {   
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pc-tag {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
}
.pc-tag--bestelbaar {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.pc-tag--mps {
    background: #f0f0ee;
    color: #666;
    border: 1px solid #ddd;
}

.pc-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
    text-align: center;
}
.pc-divider {
    margin: 2px 0;
    border-color: #eee;
}

/* Action rows */
.pc-actions { display: flex; flex-direction: column; gap: 6px; }
.pc-actions-incomplete,
.pc-actions-complete { display: flex; gap: 8px; }

/* Buttons */
.pc-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    border: none;
}
.pc-btn--primary {
    background: #349552;
    color: #fff;
    border: none;
}
.pc-btn--complete {
    background: transparent;
    color: #2e7d32;
    border: 1.5px solid #2e7d32;
}
.pc-btn--ghost {
    background: #F2F2F2;
    color: #193425;
    border: 1px solid #F2F2F2;
    font-weight: 400;
}

/* Check circle inside complete buttons */
.pc-check {
    width: 16px;
    height: 16px;
    background: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 10px;
}

/* ─── Complete state modifier ───────────────────────────────────────── */
/* Add .is-complete to .pc-card to switch states */
.pc-card.is-complete .pc-actions-incomplete { display: none; }
.pc-card.is-complete .pc-actions-complete   { display: flex; }
.pc-card:not(.is-complete) .pc-actions-complete { display: none; }
.pc-tag--normal { background: #F2F2F2; color: #989898; border: 0.5px solid #F2F2F2; }
.pc-tag--green { background: #E3FFE4; color: #009681; border: 0.5px solid #E3FFE4; }

.pc-tag--company { background: #f0f0ee; color: #555; border: 0.5px solid #ddd; }
.pc-tag--price   { background: #f0faf4; color: #1b5e20; border: 0.5px solid #c8e6c9; }
.pc-tag--stock   { background: #e3f2fd; color: #0d47a1; border: 0.5px solid #90caf9; }
.pc-tag--potmaat { background: #faf3e0; color: #6d4c00; border: 0.5px solid #f0d090; }
.pc-tag--hoogte  { background: #f3e5f5; color: #4a148c; border: 0.5px solid #ce93d8; }
.bg-green {
    background: #349552;
}

/* ============================================================
   imageGenModal.css — AI Image Generation Modal
   ============================================================ */

/* Modal shell */
.imggen-modal-content {
    overflow: hidden;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.imggen-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto; /* or overflow-y: auto if you want body scroll */
}
.modal-header,
.imggen-brand-bar,
.modal-footer {
    flex-shrink: 0;
}
.spinner-border {
    color:#0a1a6b ;
}
.imggen-go .spinner-border {
    color:#fff;
}
/* ── Brand bar (header 2) ────────────────────────────────── */
.imggen-brand-bar {
    background: #0a1a6b;
}

.imggen-brand-logo {
    height: 30px;
    filter: brightness(0) invert(1);
}

.imggen-credits-pill {
    font-size: 14px;
    background: rgba(255, 255, 255, 1 );
    color: #00197D;
}

.imggen-credits-add {
    width: 28px;
    height: 28px;
    background: #4200F6;
    .bi-plus {
        font-size: 24px;
    }
}
.imggen-credits-add:hover {
    background: #4200F6;
    opacity: 0.7;
}

/* ── Current product (top of left panel) ─────────────────── */
.imggen-item {
    background: #F2F2F2;
}
.imggen-item-thumb {
    width: 64px;
    height: 64px;
    background: #fff;
    overflow: hidden;
}
.imggen-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.imggen-item-name {
    font-size: 16px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.min-w-0 { min-width: 0; }

/* ── Combo picker: optional Binnen/Buiten 6th variant ──────── */
.imggen-extra-variant {
    background: #EAF5ED;
    border: 1px solid #349552;
    cursor: pointer;
}
.imggen-extra-variant .form-check-input:checked {
    background-color: #349552;
    border-color: #349552;
}

/* ── Slots (left panel) ──────────────────────────────────── */
.imggen-slot {
    border-color: #dee2e6 !important;
}

.imggen-slot--locked {
    background: #f8f9fa;
    opacity: 0.5;
}

.imggen-slot-label {
    font-size: 16px;
}

.imggen-slot-credits {
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    width: fit-content;
}
#specsPreview td, #specsPreview th{
    background-color: transparent;
    font-style: normal;
}
/* ── Right panel: product thumbnail ─────────────────────── */
.imggen-product-thumb {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    display: none; /* shown via JS when src is set */
}

/* ── Right panel: generated result image ─────────────────── */
.imggen-preview {
    max-height: 350px;
    object-fit: contain;
}

/* ── Footer ──────────────────────────────────────────────── */
.imggen-footer-logo {
    height: 14px;
    vertical-align: middle;
    margin-left: 2px;
}

.btn-generate {
    background-color: #349552 !important;
    border-radius: 8px;
    padding: 6px 16px;
    color: white !important;
    .bi-lock-fill {
        display: none;
    }
}
.btn-locked {
    background-color: #D9D9D9 !important;
    border-radius: 8px;
    padding: 6px 16px;
    color: white !important;
    opacity: 1 !important;
    border-color: #D9D9D9 !important;
}
.imggen-slot--locked {
    background: #F2F2F2;
    .imggen-slot-credits {
        display: none;
    }
}
.imggen-slot {
    border-color: #F2F2F2 !important;
}

.btn-gen-agian-warning {
    border-radius: 8px;
    border: 1px solid #349552;
    padding: 6px 6px 6px 16px;
    font-weight: 500;
    font-size: 14px;
    color: #349552;
}
h5#imggenResultLabel {
    font-size: 18px;
    font-weight: 700;
}
.btn-gen-agian-warning .pc-tag {
    display: inline-block;
    margin: 0;
    padding: 2px 12px;
}


/* ── Maxifleur image-gen modal & sidebar ─────────────────────────────────
   Extracted from app.js's inline styles — every dynamically-built element
   in app.js now only ever sets classes, never style="" or .css(). */
 
/* Gallery thumbnails (modal "Alle generaties voor dit product") */
.mx-thumb {
    cursor: pointer;
    width: 90px;
}
.mx-thumb-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}
 
/* Combination picker thumbnails (Floraconcepts "planter + plant" picker) */
.mx-combo-thumb {
    cursor: pointer;
    width: 110px;
}
.mx-combo-thumb-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}
 
/* Variant grid cells (Outdoor planter / Luxury Indoor Planter, 5 spots) */
.mx-variant-cell {
    width: 130px;
}
.variant-cell-body {
    width: 130px;
    height: 130px;
    background: #f8f8f8;
    overflow: hidden;
    cursor: default;
}
.variant-cell-body.mx-cell-clickable {
    cursor: pointer;
}
.mx-fill-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 
/* "Generaties" sidebar */
.gen-sidebar-item {
    cursor: pointer;
}
.gen-sidebar-item--deletable {
    padding-right: 28px;
}
.mx-sidebar-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: #f4f4f4;
}
.mx-min-w-0 {
    min-width: 0; /* lets text-truncate work inside a flex child */
}
.mx-sidebar-item-name {
    font-size: .74rem;
}
.mx-sidebar-delete-btn {
    width: 20px;
    height: 20px;
    line-height: 1;
}
.mx-icon-sm {
    font-size: .9rem;
}
.mx-badge-sm {
    font-size: .62rem;
}
.mx-spinner-xs {
    width: .55rem;
    height: .55rem;
}