/* ===== Add-product modal (shared K5 component) =========================
   Hergebruikt door order-edit (losse orders) en recurring-edit (mijn
   herhalingen). Markup: templates/webshop/_add_product_modal.html.
   JS-mixin: static/js/webshop/_add_product_mixin.js.
   Zie ook DESIGN_SYSTEM.md sectie 16.4.1 (scroll-chevron).
   ====================================================================== */
.oe-add-trigger { background: none; border: 1px dashed var(--color-accent, #b45309); color: var(--color-accent, #b45309); border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; margin: 16px 0 8px; font-family: inherit; }
.oe-add-trigger:hover { background: rgba(180, 83, 9, 0.05); }
.oe-add-search { width: 100%; padding: 8px 12px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 6px; font-size: 14px; background: var(--color-surface); margin-bottom: 12px; box-sizing: border-box; }
.oe-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.oe-modal { background: #ffffff; border-radius: 12px; padding: 20px; width: 100%; max-width: 640px; height: 80vh; max-height: 720px; min-height: 480px; display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3); position: relative; z-index: 1; }
.oe-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.oe-modal-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.oe-modal-x { background: none; border: none; color: var(--color-text-light); font-size: 24px; cursor: pointer; padding: 0 4px; line-height: 1; }
.oe-tabs-wrap { position: relative; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.oe-tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.oe-tabs-fade-right { position: absolute; right: 0; top: 0; bottom: 8px; width: 48px; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #ffffff 70%); pointer-events: none; display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; }
.oe-tabs-fade-left { position: absolute; left: 0; top: 0; bottom: 8px; width: 48px; background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, #ffffff 70%); pointer-events: none; display: flex; align-items: center; justify-content: flex-start; padding-left: 4px; z-index: 1; }
.oe-tab { background: none; border: 1px solid transparent; color: var(--color-text-light); border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.oe-tab:hover { background: var(--color-background, #fafaf9); color: var(--color-text); }
.oe-tab.active { background: var(--color-button); color: var(--color-text-button); border-color: var(--color-button); }
.oe-modal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; overflow-y: auto; flex: 1; padding: 4px; align-content: start; align-items: start; }
.oe-modal-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-border, #e5e7eb); display: flex; justify-content: flex-end; }
/* Shared add-product-modal: Klaar-knop (gebruikt door _add_product_modal.html partial) */
.oe-btn { padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; display: inline-block; font-family: inherit; line-height: 1.4; }
.oe-btn-primary { background: var(--color-button); color: var(--color-text-button); }
.oe-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.oe-btn-tertiary { background: transparent; color: var(--color-text-light); }
.oe-btn-tertiary:hover { color: var(--color-text); }
.oe-btn-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
/* Shared shop-edit form-elements: gebruikt op losse-orders edit + recurring edit */
.oe-error { color: #b91c1c; font-size: 13px; margin: 8px 0 0; }
.oe-toast { margin-top: 10px; padding: 8px 12px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 6px; font-size: 13px; }
.oe-loc-wrap { margin-top: 10px; padding: 12px 0; border-top: 1px dashed var(--color-border, #e5e7eb); }
.oe-calendar-wrap { margin-top: 12px; padding: 12px 0; border-top: 1px dashed var(--color-border, #e5e7eb); }
.oe-select { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--color-surface); box-sizing: border-box; }
/* Calendar-overrides binnen oe-calendar-wrap (huidige order-datum + nieuwe selectie semantiek) */
.oe-calendar-wrap .cal-day.today:not(.selected):not(.is-current) { box-shadow: none; }
.oe-calendar-wrap .cal-day.is-current { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 2px var(--color-accent, #b45309); border-radius: 8px; }
.oe-calendar-wrap .cal-day.is-current.selected { background: transparent; color: var(--color-text); }
.oe-calendar-wrap .cal-day.selected:not(.is-current) { background: #d1fae5; color: var(--color-text); box-shadow: inset 0 0 0 2px #10b981; border-radius: 8px; }
.oe-calendar-wrap .cal-day.selected:not(.is-current):hover { background: #a7f3d0; filter: none; }
.oe-cat-card { background: var(--color-surface); border: 1px solid var(--color-border, #e5e7eb); border-radius: 8px; padding: 8px; text-align: center; cursor: pointer; transition: border-color 0.15s; position: relative; }
.oe-cat-card:hover { border-color: var(--color-accent, #b45309); }
.oe-cat-card--in-cart { border-color: var(--color-accent, #b45309); background: rgba(180, 83, 9, 0.04); }
.oe-cat-img { width: 100%; height: 70px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; background: #e7e5e4; display: block; }
.oe-cat-img-placeholder { background: linear-gradient(135deg, #f5f5f4, #e7e5e4); }
.oe-cat-name { font-size: 12px; font-weight: 600; line-height: 1.3; min-height: 30px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.oe-cat-price { font-size: 11px; color: var(--color-text-light); margin-top: 2px; }
.oe-cat-plus { position: absolute; bottom: 4px; right: 4px; width: 26px; height: 26px; background: var(--color-button); color: var(--color-text-button); border: none; border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1; padding: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); }
.oe-cat-badge { position: absolute; top: 4px; left: 4px; background: var(--color-button); color: var(--color-text-button); border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 700; line-height: 1; }
.oe-help { font-size: 12px; color: var(--color-text-light); margin: 6px 0; font-style: italic; }

@media (max-width: 480px) {
  .oe-modal-overlay { padding: 0; align-items: flex-end; }
  .oe-modal { max-width: 100%; height: 85vh; max-height: none; min-height: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding: 16px; }
  .oe-modal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Compacte variant voor korte meldingen (geen productgrid), zoals het
   cap-tekort bij datumkeuze. Alleen maatvoering: kleur en frame blijven van
   .oe-modal, zodat de webshop één modal-taal houdt. */
.oe-modal--compact { height: auto; min-height: 0; max-width: 420px; }
.oe-modal--compact .oe-modal-foot { gap: 8px; flex-wrap: wrap; }
.cap-shortfall-intro { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.cap-shortfall-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }

@media (max-width: 480px) {
  .oe-modal--compact { height: auto; max-height: 85vh; }
}

/* Boekingen gaan los (_boeking_los_modal.html) */
.boeking-los-intro { margin: 0; font-size: 14px; line-height: 1.5; }
