/* =============================================================================
   Admin Panel – Styles
   Bootstrap 5.3 · Mobile-first
   ============================================================================= */

:root {
  --sidebar-w: 240px;
  --topbar-h: 56px;
  --accent: #0d6efd;
  --sidebar-bg: #1a1d23;
  --sidebar-hover: #2a2d35;
  --sidebar-active: #0d6efd;
}

/* ---------------------------------------------------------------------------
   Login
   --------------------------------------------------------------------------- */
.login-wrap {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
}

.ls-1 { letter-spacing: .05em; }

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 1030;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--topbar-h);
}

.sidebar {
  width: var(--sidebar-w);
  min-height: calc(100vh - var(--topbar-h));
  background: var(--sidebar-bg);
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.07);
}

.content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
  background: #f8f9fa;
  min-height: calc(100vh - var(--topbar-h));
}

/* ---------------------------------------------------------------------------
   Demo-Banner (Showroom-Login) — fixed oben, schiebt topbar/sidebar/content nach unten
   --------------------------------------------------------------------------- */
:root { --demo-banner-h: 44px; }

#demoBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--demo-banner-h);
  background: #1a5c2a;
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  z-index: 1060;
  border-bottom: 2px solid #2e8b57;
  overflow: hidden;
}

body.has-demo-banner .topbar { top: var(--demo-banner-h); }
body.has-demo-banner .admin-layout { padding-top: calc(var(--topbar-h) + var(--demo-banner-h)); }
body.has-demo-banner .sidebar {
  top: calc(var(--topbar-h) + var(--demo-banner-h));
  min-height: calc(100vh - var(--topbar-h) - var(--demo-banner-h));
  height: calc(100vh - var(--topbar-h) - var(--demo-banner-h));
}
body.has-demo-banner .content {
  min-height: calc(100vh - var(--topbar-h) - var(--demo-banner-h));
}

/* ---------------------------------------------------------------------------
   Sidebar Navigation
   --------------------------------------------------------------------------- */
.nav-section {
  padding: .75rem 1rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
}

.sidebar .nav-link,
.offcanvas .nav-link {
  color: rgba(255,255,255,.7);
  padding: .5rem 1rem;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: 0;
  transition: background .15s, color .15s;
}

.sidebar .nav-link:hover,
.offcanvas .nav-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar .nav-link.active,
.offcanvas .nav-link.active {
  background: rgba(13,110,253,.45);
  color: #fff;
  font-weight: 600;
  border-left: 3px solid var(--sidebar-active);
}

.sidebar .nav-link .bi,
.offcanvas .nav-link .bi {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}

/* Shop sub-menu indented */
.nav-sub .nav-link {
  padding-left: 2.5rem !important;
  font-size: .82rem;
}

/* Speisekarte sub-sub-menu */
.nav-sub2 .nav-link {
  padding-left: 3.75rem !important;
  font-size: .78rem;
}

/* ---------------------------------------------------------------------------
   Sidebar Accordion
   --------------------------------------------------------------------------- */
.sidebar-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-accordion .accordion-item:first-child {
  border-top: 0;
}
.sidebar-accordion .accordion-button {
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  padding: .75rem 1rem;
  box-shadow: none !important;
  gap: .6rem;
  border-left: 4px solid transparent;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-accordion .accordion-button:hover {
  background: rgba(255,255,255,.11);
}
.sidebar-accordion .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.75);
  border-left-color: transparent;
  border-bottom-color: transparent;
}
.sidebar-accordion .accordion-button .bi {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}
.sidebar-accordion .accordion-button::after {
  filter: invert(1) opacity(.5);
  background-size: 14px;
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.sidebar-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(1) opacity(.9);
}
.sidebar-accordion .accordion-body {
  padding: 0 0 .25rem 0;
}

/* ---------------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------------- */
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }
.breadcrumb-item { color: rgba(255,255,255,.6); }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb-item a:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   Content Cards
   --------------------------------------------------------------------------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  border-radius: .75rem .75rem 0 0 !important;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------------- */
.table th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
  white-space: nowrap;
}

.table td { vertical-align: middle; }

.table-hover tbody tr:hover { background: rgba(13,110,253,.04); }

/* ---------------------------------------------------------------------------
   Toggle switches
   --------------------------------------------------------------------------- */
.form-check-input:checked { background-color: #198754; border-color: #198754; }

/* Status badges */
.badge-aktiv   { background: #d1fae5; color: #065f46; }
.badge-inaktiv { background: #fee2e2; color: #991b1b; }
.badge-hidden  { background: #fef3c7; color: #92400e; }

/* Extra-small button (Bootstrap 5 has no btn-xs) */
.btn-xs { padding: .15rem .4rem; font-size: .75rem; line-height: 1.3; border-radius: .2rem; }

/* ---------------------------------------------------------------------------
   Inline-Edit
   --------------------------------------------------------------------------- */
.editable {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color .15s;
}
.editable:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------------------------------------------------------------------
   Speisekarte Accordion
   --------------------------------------------------------------------------- */
.menu-tree .accordion-button {
  font-size: .9rem;
  padding: .6rem 1rem;
}

.accordion-item.menu-tree {
  transition: box-shadow .12s;
}
.accordion-item.menu-tree:hover {
  box-shadow: 0 0 0 2px #c7d6f7;
  z-index: 1;
  position: relative;
}

.article-row {
  transition: background .12s, box-shadow .12s;
}
.article-row:hover {
  background: #f0f4ff !important;
  box-shadow: 0 0 0 2px #c7d6f7;
  z-index: 1;
  position: relative;
}

.menu-tree .accordion-button:not(.collapsed) {
  background: #e8f0fe;
  color: #1a3a7c;
  box-shadow: none;
}

.menu-tree .level-2 .accordion-button {
  background: #f8f9fa;
  font-size: .85rem;
  padding-left: 2rem;
}

.menu-tree .level-2 .accordion-button:not(.collapsed) {
  background: #e8f0fe;
}

.menu-tree .level-3 {
  padding-left: 3rem;
  font-size: .83rem;
}

.price-input {
  width: 90px;
  display: inline-block;
  font-size: .83rem;
}

/* Drag handle */
.drag-handle {
  cursor: grab;
  color: #adb5bd;
  padding: 0 .4rem;
}
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: .4; background: #cfe2ff !important; }
th.bug-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.bug-sort:hover { color: var(--bs-primary); }

/* ---------------------------------------------------------------------------
   Permissions Matrix
   --------------------------------------------------------------------------- */
.perm-matrix {
  overflow-x: auto;
}

.perm-matrix table th,
.perm-matrix table td {
  text-align: center;
  white-space: nowrap;
}

.perm-matrix table td:first-child {
  text-align: left;
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Wizard Steps
   --------------------------------------------------------------------------- */
.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
  position: relative;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #dee2e6;
}

.wizard-step.done::after { background: var(--accent); }

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  z-index: 1;
  position: relative;
}

.wizard-step.active .step-dot {
  background: var(--accent);
  color: #fff;
}

.wizard-step.done .step-dot {
  background: #198754;
  color: #fff;
}

.step-label {
  font-size: .7rem;
  color: #6c757d;
  margin-top: .25rem;
  text-align: center;
}

.wizard-step.active .step-label { color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Status indicator (shop aktiv/inaktiv)
   --------------------------------------------------------------------------- */
.status-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: .4rem;
  flex-shrink: 0;
}

.status-dot.on  { background: #198754; }
.status-dot.off { background: #dc3545; }
.status-dot.closed { background: #f59e0b; }
.status-dot.showroom { background: #0d6efd; }
.status-dot.gesperrt { background: #7f1d1d; }
.status-dot.stoerung { background: #d35400; animation: blink-dot 1.5s infinite; }

.btn-outline-stoerung {
  --bs-btn-color: #d35400;
  --bs-btn-border-color: #d35400;
  --bs-btn-hover-bg: #d35400;
  --bs-btn-hover-border-color: #d35400;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #b34500;
  --bs-btn-active-border-color: #b34500;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 211, 84, 0;
}
.status-dot.pending-delete { background: #dc3545; animation: blink-dot 1.5s infinite; }
@keyframes blink-dot { 50% { opacity: .3; } }

/* ---------------------------------------------------------------------------
   Import Preview Table
   --------------------------------------------------------------------------- */
.import-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .25rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .85rem;
}

.import-preview-row:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .content { padding: 1rem .75rem; }
}

@media (max-width: 575.98px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .content { padding: .75rem .5rem; }
}

/* ---------------------------------------------------------------------------
   Section collapse toggle (Optionsgruppen / Extras im Artikel-Detail)
   --------------------------------------------------------------------------- */
.section-chevron {
  transition: transform .2s ease;
  transform: rotate(0deg);
}
.section-collapse-btn.collapsed .section-chevron {
  transform: rotate(-90deg);
}

/* ---------------------------------------------------------------------------
   Liefergebiete Karte – Leaflet-Anpassungen
   --------------------------------------------------------------------------- */
.plz-tooltip {
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.plz-tooltip::before { display: none; }

/* Leaflet-Popup im Admin-Stil */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.leaflet-popup-content { margin: 12px 14px; }

/* Picset-Vorschau */
.picset-thumb { width: 140px; overflow: hidden; }
.picset-thumb img {
  width: 132px; height: 88px; object-fit: cover; border-radius: 6px;
  transition: transform .25s ease;
}
.picset-thumb:hover img { transform: scale(1.15); }

/* EU AI Act Art. 50 — Kennzeichnung KI-generierter Bilder (Admin) */
.ai-badge-mini {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px;
  pointer-events: none;
}

/* Cropper: kein dunkles Overlay, nur Rahmen */
.cropper-view-box { outline: 2px dashed rgba(0,120,255,.7); outline-offset: -2px; }
.cropper-face { background: transparent !important; }

/* Testphase: blinkender Sidebar-Link */
@keyframes sidebarBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.sidebar-blink {
  animation: sidebarBlink 1.5s ease-in-out infinite;
  color: #ffc107 !important;
  font-weight: bold !important;
}

/* Spin-Animation für Lade-Icons */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .7s linear infinite; }

/* ---------------------------------------------------------------------------
   Chat Panel
   --------------------------------------------------------------------------- */
.chat-toggle-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  font-size: 1.4rem;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, background .15s;
}
.chat-toggle-btn:hover { background: #0b5ed7; transform: scale(1.08); }
.chat-toggle-btn.panel-open { background: #6c757d; }

.chat-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 520px;
  max-height: calc(100vh - 8rem);
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 1039;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.d-none { display: none !important; }
.chat-panel.expanded {
  bottom: 1rem;
  right: 1rem;
  top: calc(var(--topbar-h) + 1rem);
  left: calc(var(--sidebar-w) + 1rem);
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: .5rem;
}
.chat-panel.expanded .chat-messages {
  padding-left: max(.85rem, calc(50% - 380px));
  padding-right: max(.85rem, calc(50% - 380px));
}
.chat-panel.expanded .chat-input-area {
  padding-left: max(.75rem, calc(50% - 380px));
  padding-right: max(.75rem, calc(50% - 380px));
}
@media (max-width: 767px) {
  .chat-panel.expanded {
    left: .5rem;
    right: .5rem;
    top: calc(var(--topbar-h) + .5rem);
    bottom: .5rem;
  }
}

.chat-panel-header {
  background: var(--sidebar-bg);
  color: #fff;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: #f8f9fa;
}

.chat-welcome {
  text-align: center;
  color: #6c757d;
  font-size: .85rem;
  padding: 1.5rem .5rem;
  line-height: 1.7;
}

.chat-bubble {
  max-width: 88%;
  padding: .55rem .8rem;
  border-radius: .65rem;
  font-size: .875rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-bubble-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: .15rem;
}
.chat-bubble-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dee2e6;
  border-bottom-left-radius: .15rem;
}
.chat-bubble-bot.thinking {
  color: #adb5bd;
  font-style: italic;
}

.chat-preview-table {
  font-size: .8rem;
  margin-top: .5rem;
  width: 100%;
  border-collapse: collapse;
}
.chat-preview-table th {
  background: #f1f3f5;
  padding: .25rem .4rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #dee2e6;
}
.chat-preview-table td { padding: .25rem .4rem; border-bottom: 1px solid #f1f3f5; }
.chat-preview-table .price-old { text-decoration: line-through; color: #adb5bd; }
.chat-preview-table .price-new { color: #198754; font-weight: 600; }

.chat-table {
  font-size: .8rem;
  margin: .5rem 0;
  width: 100%;
  border-collapse: collapse;
}
.chat-table th {
  background: #f1f3f5;
  padding: .25rem .5rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}
.chat-table td {
  padding: .25rem .5rem;
  border-bottom: 1px solid #f1f3f5;
}
.chat-table tr:last-child td { border-bottom: none; }

.chat-action-btns {
  display: flex;
  gap: .4rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}

.chat-input-area {
  display: flex;
  gap: .4rem;
  padding: .6rem .75rem;
  background: #fff;
  border-top: 1px solid #dee2e6;
  flex-shrink: 0;
}
.chat-input-area input { flex: 1; }

/* =========================================================================
   Shop-Select Widget (durchsuchbares Dropdown)
   ========================================================================= */
.shop-select-wrap {
  position: relative;
}
.shop-select-wrap .ss-display {
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  padding: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.5;
  min-height: 31px;
  user-select: none;
}
.shop-select-wrap.sm .ss-display {
  font-size: .8125rem;
  padding: .2rem .45rem;
  min-height: 28px;
}
.shop-select-wrap .ss-display .ss-caret {
  margin-left: auto;
  color: #6c757d;
  font-size: .75rem;
  transition: transform .15s;
}
.shop-select-wrap.open .ss-display .ss-caret { transform: rotate(180deg); }
.shop-select-wrap .ss-display:focus-visible { outline: 2px solid #86b7fe; border-color: #86b7fe; }

.shop-select-drop {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  z-index: 1055;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  display: none;
  min-width: max(100%, 320px);
  max-width: 480px;
  width: max-content;
}
.shop-select-wrap.open .shop-select-drop { display: block; }

.shop-select-drop .ss-search {
  padding: .4rem .5rem;
  border-bottom: 1px solid #f0f0f0;
}
.shop-select-drop .ss-search input {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: .3rem;
  padding: .2rem .45rem;
  font-size: .8125rem;
  outline: none;
}
.shop-select-drop .ss-search input:focus { border-color: #86b7fe; }

.shop-select-drop .ss-list {
  max-height: 240px;
  overflow-y: auto;
  padding: .25rem 0;
}
.shop-select-drop .ss-opt {
  padding: .3rem .65rem;
  font-size: .8125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-select-drop .ss-opt:hover,
.shop-select-drop .ss-opt.focused { background: #f0f4ff; }
.shop-select-drop .ss-opt.selected { font-weight: 600; color: #0d6efd; }
.shop-select-drop .ss-opt .ss-id { color: #6c757d; font-size: .75rem; font-variant-numeric: tabular-nums; }
.shop-select-drop .ss-empty { padding: .5rem .65rem; font-size: .8125rem; color: #6c757d; }
.shop-select-drop .ss-group-label {
  padding: .35rem .65rem .1rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  border-top: 1px solid #f0f0f0;
  margin-top: .15rem;
}

/* ── TipTap Editor ─────────────────────────────────────────────────────── */
.tiptap-toolbar { background: #f8f9fa; }
.tiptap-toolbar .tt-btn.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.tiptap-content { font-size: .95rem; line-height: 1.6; }
.tiptap-content:focus { outline: none; }
.tiptap-content h1 { font-size: 1.75rem; font-weight: 700; margin-top: 1.5rem; }
.tiptap-content h2 { font-size: 1.35rem; font-weight: 600; margin-top: 1.25rem; }
.tiptap-content p { margin-bottom: .75rem; }
.tiptap-content ul, .tiptap-content ol { padding-left: 1.5rem; margin-bottom: .75rem; }
.tiptap-content blockquote { border-left: 4px solid #dee2e6; padding-left: 1rem; color: #6c757d; margin: 1rem 0; }
.tiptap-content pre { background: #1e1e2e; color: #cdd6f4; border-radius: 6px; padding: 1rem; font-size: .85rem; overflow-x: auto; }
.tiptap-content code { background: #f1f3f5; border-radius: 3px; padding: 1px 5px; font-size: .875em; }
.tiptap-content img { max-width: 100%; border-radius: 4px; }
.tiptap-content a { color: #0d6efd; }
.tiptap-content hr { border: none; border-top: 2px solid #dee2e6; margin: 1.5rem 0; }
.tiptap-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.tiptap-content table td, .tiptap-content table th { border: 1px solid #dee2e6; padding: .5rem .75rem; }
.tiptap-content table th { background: #f8f9fa; font-weight: 600; }
.tiptap-content .selectedCell { background: #dbeafe; }
.tiptap-slideshow-placeholder { margin: 1rem 0; }

/* ── Discount Modal ─────────────────────────────────────────────────────── */
.dc-section { background: #f8f9fb; border-radius: 10px; padding: .875rem 1rem; }
.dc-section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9099a8; margin-bottom: .625rem; }

.dc-radio-card { display: inline-flex; align-items: center; cursor: pointer; }
.dc-radio-card input[type=radio] { display: none; }
.dc-radio-card span { display: inline-flex; align-items: center; font-size: .8rem; padding: .3rem .75rem; border-radius: 20px; border: 1.5px solid #dee2e6; background: #fff; color: #495057; transition: all .15s; white-space: nowrap; }
.dc-radio-card input[type=radio]:checked + span { border-color: #0d6efd; background: #e8f0fe; color: #0d6efd; font-weight: 600; }

.dc-chip { display: inline-flex; align-items: center; cursor: pointer; margin: 0; }
.dc-chip input[type=checkbox] { display: none; }
.dc-chip span { display: inline-flex; align-items: center; font-size: .78rem; padding: .2rem .6rem; border-radius: 20px; border: 1.5px solid #dee2e6; background: #fff; color: #495057; transition: all .15s; }
.dc-chip input[type=checkbox]:checked + span { border-color: #0d6efd; background: #e8f0fe; color: #0d6efd; }

.dc-cat-group { border-bottom: 1px solid #f0f0f0; }
.dc-cat-group:last-child { border-bottom: none; }
.dc-cat-header { display: flex; align-items: center; gap: .5rem; padding: .5rem .25rem; }
.dc-sec-btn { background: none; border: none; padding: 0; color: #9099a8; cursor: pointer; display: flex; align-items: center; transition: color .15s; }
.dc-sec-btn:hover { color: #0d6efd; }
.dc-sec-chevron { transition: transform .2s; }
.dc-cat-label { display: flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .85rem; margin: 0; }
.dc-cat-count { margin-left: auto; font-size: .75rem; color: #9099a8; }
.dc-art-grid { display: flex; flex-wrap: wrap; gap: .3rem; padding: .25rem .25rem .625rem 1.5rem; }
