/* Dashboard */
.welcome-message {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Categories */
.category-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 80ms;
}

.category-list-item:hover { background: var(--bg-hover); }
.category-list-item:last-child { border-bottom: none; }
.category-list-item .category-info { flex: 1; }
.category-list-item .category-name { font-weight: 500; font-size: 13px; }
.category-list-item .category-count { font-size: 12px; color: var(--text-muted); }

/* Modifiers */
.modifier-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.modifier-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
}

.modifier-group-header:hover { background: var(--bg-hover); }
.modifier-group-title { font-weight: 500; font-size: 13px; }
.modifier-group-meta { font-size: 12px; color: var(--text-muted); }

.modifier-items-list {
  border-top: 1px solid var(--border-subtle);
  display: none;
}

.modifier-items-list.expanded { display: block; }

.modifier-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 32px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.modifier-item-row:last-child { border-bottom: none; }
.modifier-price { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* Users */
.role-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.role-owner { background: var(--warning-subtle); color: var(--warning); }
.role-manager { background: var(--info-subtle); color: var(--info); }
.role-supervisor { background: var(--accent-subtle); color: var(--accent); }
.role-staff { background: var(--bg-hover); color: var(--text-secondary); }
.role-till { background: var(--success-subtle); color: var(--success); }
.role-kiosk { background: var(--bg-hover); color: var(--text-muted); }

/* Settings */
.settings-section { margin-bottom: 28px; }

.settings-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.filter-tabs::-webkit-scrollbar { height: 0; }

.filter-tab {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms;
  white-space: nowrap;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.filter-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Stock level */
.stock-level-cell {
  padding: 2px 6px;
  border-radius: 4px;
  margin: -2px -6px;
  transition: background 80ms;
}

.stock-level-cell:hover {
  background: var(--bg-hover);
}

/* ═══════ MENU DESIGNER ═══════ */
.md-layout {
  display: flex;
  height: calc(100vh - 160px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.md-left {
  width: 260px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg-panel);
}
.md-center {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.md-right {
  width: 280px; flex-shrink: 0;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg-panel);
}
.md-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 6px;
  cursor: pointer; transition: background 0.1s;
}
.md-menu-item:hover { background: var(--bg-hover); }
.md-menu-item.active { background: var(--accent-dim); }
/* Always show the kebab — opacity:0 made it invisible at rest and
   opacity:0.45 against a dark bg on a muted-text button was still too
   faint. Give it a subtle filled background instead so it reads as a
   tap target regardless of theme. */
.md-menu-actions { opacity: 1; }
.md-menu-actions .btn.btn-ghost {
  background: var(--bg-elevated, rgba(255, 255, 255, 0.06));
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
}
.md-menu-actions .btn.btn-ghost:hover {
  background: var(--bg-hover);
}

.md-section-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: all 0.15s; flex-shrink: 0;
}
.md-section-tab:hover { background: var(--bg-hover); }
.md-section-tab.active { color: var(--text-primary); }
.md-section-tab.drag-over { border-left: 2px solid var(--accent); }
.md-section-color {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}

/* Layout Designer Grid Cells */
.ld-cell {
  border-radius: 8px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  transition: all 0.12s;
  overflow: hidden;
}
.ld-cell-empty {
  border: 2px dashed var(--border);
  cursor: pointer;
  background: var(--bg-panel);
}
.ld-cell-empty:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.ld-cell-placeholder {
  font-size: 20px;
  color: var(--text-muted);
  opacity: 0.3;
}
.ld-cell-filled {
  cursor: grab;
  color: white;
  text-align: center;
  padding: 8px 6px;
}
.ld-cell-filled::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.ld-cell-name {
  font-weight: 600; font-size: 12px; line-height: 1.2;
  z-index: 1; word-break: break-word;
}
.ld-cell-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 13px;
  color: rgba(255,255,255,0.85);
  z-index: 1;
}
.ld-cell-remove {
  position: absolute; top: 3px; right: 4px;
  width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  border-radius: 4px; cursor: pointer;
  font-size: 14px; color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.3); z-index: 2;
}
.ld-cell-color {
  position: absolute; top: 3px; left: 4px;
  width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  border-radius: 4px; cursor: pointer;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.3); z-index: 2;
}
.ld-cell-edit {
  position: absolute; bottom: 3px; left: 4px;
  width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  border-radius: 4px; cursor: pointer;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.3); z-index: 2;
}
.ld-cell-edit:hover { background: rgba(0,0,0,0.5); }
.ld-cell-plu {
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.ld-cell-filled:hover .ld-cell-remove,
.ld-cell-filled:hover .ld-cell-color,
.ld-cell-filled:hover .ld-cell-edit { display: flex; }
.ld-cell-remove:hover { background: rgba(239,68,68,0.6); }
.ld-cell-color:hover { background: rgba(0,0,0,0.5); }

.drag-over {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
}
.ld-cell-filled.drag-over {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.md-palette-group { margin-bottom: 8px; }
.md-palette-cat {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); padding: 6px 8px;
}
.md-palette-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px;
  cursor: grab; transition: background 0.1s;
}
.md-palette-item:hover { background: var(--bg-hover); }
.md-palette-item.dimmed { opacity: 0.35; cursor: default; }

.md-schedule-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px;
  transition: background 0.1s;
}
.md-schedule-row:hover { background: var(--bg-hover); }

.md-context-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 160px;
  overflow: hidden;
}
.md-ctx-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s;
}
.md-ctx-item:hover { background: var(--bg-hover); }
.md-ctx-item.danger { color: var(--danger); }
.md-ctx-item.danger:hover { background: var(--danger-dim); }

/* ═══════ RECEIPT DESIGNER ═══════ */
.rd-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  height: calc(100vh - 120px);
  overflow: hidden;
}
.rd-controls-scroll {
  overflow-y: auto;
  height: 100%;
  padding-right: 8px;
  min-width: 0;
}
.rd-controls-scroll::-webkit-scrollbar { width: 4px; }
.rd-controls-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.rd-preview-scroll {
  overflow-y: auto;
  height: 100%;
  padding: 0 4px 0 0;
}
.rd-preview-scroll::-webkit-scrollbar { width: 4px; }
.rd-preview-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.rd-preview-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px;
}
.rd-sections { display:grid; gap:14px; }
.rd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.rd-card-title { font-weight: 600; font-size: 13px; }
.rd-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rd-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.rd-toggle input[type="checkbox"] { margin: 0; }

/* ═══════ BOOKING MODAL DESIGNER ═══════ */
.bm-designer-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr);
  gap: 24px;
  height: calc(100vh - 180px);
  overflow: hidden;
}
.bm-designer-controls {
  overflow-y: auto;
  height: 100%;
  padding-right: 8px;
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}
.bm-designer-controls::-webkit-scrollbar { width: 4px; }
.bm-designer-controls::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.bm-designer-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.bm-designer-preview-toolbar {
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
.bm-designer-stage-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.bm-designer-stage {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.bm-designer-stage iframe {
  border: 0;
  background: #000;
  transform-origin: top left;
}
.bm-pl-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}

.receipt-preview {
  display: flex;
  justify-content: center;
}
.receipt-paper {
  width: 302px;
  background: white;
  padding: 20px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow-x: hidden;
}
.receipt-line { min-height: 1em; padding: 0.5px 0; }
.receipt-line-lr { display: flex; justify-content: space-between; gap: 8px; padding: 0.5px 0; }
.receipt-line-spread { display: flex; justify-content: space-between; padding: 0.5px 0; }
.receipt-line-lr .rl-left { flex: 1; min-width: 0; }
.receipt-line-lr .rl-right { flex-shrink: 0; text-align: right; }
.receipt-sep { border: none; border-top: 1px solid #1a1a1a; margin: 3px 0; }
.receipt-sep-dbl { border: none; border-top: 3px double #1a1a1a; margin: 3px 0; }
.receipt-sep-dots { border: none; border-top: 1px dotted #aaa; margin: 3px 0; }
.receipt-sep-stars { text-align: center; color: #1a1a1a; letter-spacing: 1px; }
.receipt-large { font-size: 20px; line-height: 1.5; font-weight: 700; }
.receipt-medium { font-size: 16px; line-height: 1.5; font-weight: 700; }
.receipt-bold { font-weight: 700; }
.receipt-small { font-size: 9.5px; color: #555; }
.receipt-muted { font-size: 9.5px; color: #888; }
.receipt-center { text-align: center; }

/* Pulse animation for active session dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════ */
/*  PRODUCT EDITOR                            */
/* ═══════════════════════════════════════════ */
.pe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.pe-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pe-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pe-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  background: var(--bg-surface);
}
.pe-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pe-tab:hover { color: var(--text-primary); }
.pe-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.pe-body {
  padding: 24px;
  max-width: 1100px;
}
.pe-form-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.pe-form-main { min-width: 0; }
.pe-form-sidebar { min-width: 0; }

@media (max-width: 900px) {
  .pe-form-grid {
    grid-template-columns: 1fr;
  }
  .pe-form-sidebar { order: -1; }
}

/* Editor chrome on phones: the tab strip scrolls sideways within
   itself (tabs used to push straight off the viewport edge — with
   pinch-zoom locked there was no way to reach them), and the header
   wraps its action buttons instead of clipping them. */
@media (max-width: 768px) {
  .pe-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .pe-header-right { flex-wrap: wrap; }
  .pe-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
    /* Scroll hint: soft shadows at the edges while more tabs are
       off-screen, vanishing at the ends. Pure CSS (Lea Verou's
       scrolling-shadows): the solid "cover" gradients scroll WITH the
       content (background-attachment: local) and slide over the fixed
       shadow gradients when you reach an edge. */
    background:
      linear-gradient(90deg, var(--bg-surface) 40%, rgba(255,255,255,0)) left / 44px 100%,
      linear-gradient(270deg, var(--bg-surface) 40%, rgba(255,255,255,0)) right / 44px 100%,
      radial-gradient(farthest-side at 0 50%, rgba(25,27,32,0.22), transparent) left / 16px 100%,
      radial-gradient(farthest-side at 100% 50%, rgba(25,27,32,0.22), transparent) right / 16px 100%,
      var(--bg-surface);
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
  .pe-tabs::-webkit-scrollbar { display: none; }
  .pe-tab {
    white-space: nowrap;
    flex: none;
    padding: 12px 14px;
  }
  .pe-body { padding: 16px; }
}

/* Product row hover in list */
.product-row:hover {
  background: var(--bg-hover);
}

/* Allergen UI */
.pe-allergen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pe-allergen-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid;
  font-size: 12px;
}
.pe-allergen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pe-allergen-manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.pe-allergen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}
@media (max-width: 700px) {
  .pe-allergen-manual-grid { grid-template-columns: 1fr; }
}

/* Segmented allergen severity buttons */
.allergen-seg {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.allergen-seg-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s ease;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  line-height: 1.4;
}
.allergen-seg-btn:last-child { border-right: none; }
.allergen-seg-btn:hover:not(.active) { background: var(--bg-surface); }
.allergen-seg-btn.active[data-val="contains"] {
  background: var(--danger);
  color: #fff;
}
.allergen-seg-btn.active[data-val="may_contain"] {
  background: #d97706;
  color: #fff;
}
.allergen-seg-btn.active[data-val="trace"] {
  background: var(--text-muted);
  color: #fff;
}

/* Audit log table rows */
.audit-row:hover td { background: var(--bg-surface); }

/* ═══════════════════════════════════════════ */
/*  BOOKINGS DIARY GRID                        */
/* ═══════════════════════════════════════════ */
.diary-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.diary-toolbar .form-input,
.diary-toolbar .form-select { height: 32px; font-size: 13px; padding: 4px 10px; }

.diary-wrapper {
  position: relative; overflow: auto;
  background: var(--bg-page); padding: 8px;
  user-select: none; -webkit-user-select: none;
  height: calc(100vh - var(--header-height) - 120px);
}

.diary-grid {
  display: grid;
  grid-template-columns: 110px repeat(var(--diary-slots, 28), 1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  font-size: 11px; min-width: max-content;
}

.diary-header-cell {
  background: var(--bg-table-header);
  font-weight: 600; padding: 4px 2px;
  text-align: center; font-size: 10px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  min-height: 28px;
}
.diary-header-cell.table-header {
  text-align: left; padding-left: 10px; justify-content: flex-start;
  position: sticky; left: 0; z-index: 6;
  background: var(--bg-table-header);
  font-size: 11px; color: var(--text-primary);
}
.diary-header-cell.time-header { font-weight: 700; color: var(--text-primary); }
.diary-header-cell.minor { color: var(--text-muted); font-weight: 400; font-size: 9px; }

.diary-cell {
  background: var(--bg-card);
  position: relative;
  min-height: 36px; min-width: 0;
  border-right: 1px solid var(--border-subtle);
}
/* Table-row cells are clickable (walk-in wizard). iOS Safari only fires
   click on non-interactive elements when cursor: pointer is set. */
.diary-cell[data-table-id] { cursor: pointer; }
.diary-cell.hour-marker { border-right: 2px solid var(--border); }
.diary-cell.half-hour-marker { border-right: 1px solid var(--border-subtle); }
.diary-cell.closed {
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    rgba(0,0,0,0.025) 6px,
    rgba(0,0,0,0.025) 12px
  );
}
.diary-cell.closed.row-enquiries  { background-color: rgba(245, 158, 11, 0.03); }
.diary-cell.closed.row-unassigned { background-color: rgba(99, 91, 255, 0.02); }

.diary-row-label {
  background: var(--bg-card);
  padding: 6px 10px; font-size: 12px; font-weight: 500;
  position: sticky; left: 0; z-index: 4;
  border-right: 2px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.diary-row-label .row-name {
  font-weight: 600; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
.diary-row-label .row-meta {
  font-size: 10px; color: var(--text-muted); white-space: nowrap;
}

.diary-cell.row-enquiries     { background: rgba(245, 158, 11, 0.06); }
.diary-cell.row-unassigned    { background: rgba(99, 91, 255, 0.04); }
.diary-row-label.row-enquiries  { background: rgba(245, 158, 11, 0.08); }
.diary-row-label.row-unassigned { background: rgba(99, 91, 255, 0.06); }

/* Section divider — thin gap row between Enquiries / Unassigned / Tables.
   Visually breaks up the three logical sections of the diary. */
.diary-section-divider {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Section heading row — sits between dividers, identifies the
   following block of rows (e.g. "Tables"). Spans the full grid width. */
.diary-section-heading {
  grid-column: 1 / -1;
  background: var(--bg-table-header);
  padding: 6px 12px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-secondary);
  position: sticky; left: 0;
  border-bottom: 1px solid var(--border);
}

.diary-cell.drag-over {
  background: var(--accent-subtle) !important;
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

.diary-block {
  position: absolute;
  left: 3px; right: 3px;
  height: 32px;
  border-radius: 4px; padding: 4px 8px;
  font-size: 13px; line-height: 1.2; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  cursor: grab; box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; overflow: hidden;
  z-index: 2; transition: transform 0.12s, box-shadow 0.12s;
}
.diary-block:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm); z-index: 3;
}
.diary-block.dragging { opacity: 0.4; cursor: grabbing; }
.diary-block.locked { cursor: not-allowed; opacity: 0.95; }

.diary-block.status-pending       { background: linear-gradient(135deg, #f59e0b, #d97706); }
.diary-block.status-confirmed     { background: linear-gradient(135deg, #635bff, #5046e5); }
.diary-block.status-arrived       { background: linear-gradient(135deg, #10b981, #059669); }
.diary-block.status-left          { background: linear-gradient(135deg, #6b7280, #4b5563); }
.diary-block.status-no_show       { background: linear-gradient(135deg, #dc2626, #991b1b); }
.diary-block.status-cancelled     { background: linear-gradient(135deg, #9ca3af, #6b7280); opacity: 0.6; }
.diary-block.status-private_event { background: linear-gradient(135deg, #2563eb, #1e40af); }

.diary-block .party {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px; border-radius: 4px;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.diary-block .name {
  font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex: 0 1 auto;
}
.diary-block .type-tag {
  padding: 2px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.diary-block .dash {
  font-weight: 600; opacity: 0.6; flex-shrink: 0;
}
.diary-block .indicators {
  display: inline-flex; gap: 4px; flex-shrink: 0;
}
.diary-block .indicator {
  padding: 1px 5px; border-radius: 3px; font-size: 13px;
  background: rgba(255,255,255,0.25);
}

.diary-now-line {
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: var(--danger);
  z-index: 7; pointer-events: none;
  box-shadow: 0 0 4px rgba(220, 38, 38, 0.5);
}
.diary-now-line::before {
  content: ''; position: absolute; top: -4px; left: -4px;
  width: 10px; height: 10px; background: var(--danger);
  border-radius: 50%;
}

.diary-empty {
  padding: 60px 20px; text-align: center; color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────── */
/* Pre-Order editor — 3-pane POS layout                              */
/* Pane 1: vertical category list. Pane 2: product grid.             */
/* Pane 3: running order. Footer: totals + payment mode + send link. */
/* Visually mirrors till.html (cat-tab/product-btn/order-panel).     */
/* ──────────────────────────────────────────────────────────────── */
.po-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px); /* topbar */
  background: var(--bg-base);
  overflow: hidden;
}

/* Header card (booking summary + status banner) */
.po-summary {
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.po-summary-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.po-summary-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.po-summary-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.po-summary-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}
.po-summary-spacer { flex: 1; }

/* Three-pane working area */
.po-panes {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr 400px;
  min-height: 0;
  background: var(--bg-base);
}

/* Pane 1 — Categories (vertical list) */
.po-categories {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.po-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
  text-align: left;
  line-height: 1.2;
  position: relative;
}
.po-cat-row:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.po-cat-row.active {
  color: #fff;
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 1px var(--border-light, var(--border)) inset;
}
.po-cat-swatch {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.po-cat-row.active .po-cat-swatch { background: rgba(255,255,255,0.6); }
.po-cat-name { flex: 1; min-width: 0; word-break: break-word; }
.po-cat-empty {
  padding: 20px 14px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

/* Pane 2 — Product grid */
.po-products {
  background: var(--bg-card);
  overflow-y: auto;
  padding: 10px;
}
.po-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.po-product-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  min-height: 92px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #6c5ce7, #5a4bd1);
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: transform 0.08s ease, filter 0.12s ease;
  overflow: hidden;
}
.po-product-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.po-product-btn:hover:not(:disabled) { filter: brightness(1.08); }
.po-product-btn:active:not(:disabled) { transform: scale(0.96); filter: brightness(0.85); }
.po-product-btn .name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 1;
}
.po-product-btn .price {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;
  z-index: 1;
}
.po-product-btn.sold-out {
  filter: grayscale(1) brightness(0.45);
  cursor: not-allowed;
}
.po-product-btn:disabled { cursor: not-allowed; }
.po-products-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Pane 3 — Order (running list) */
.po-order {
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.po-order-header {
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}
.po-order-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.po-order-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.po-order-banner-slot {
  flex-shrink: 0;
}
.po-order-banner-slot .po-banner { margin: 12px 16px 0; }
.po-order-items {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.po-order-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  padding: 40px 20px;
  text-align: center;
}
.po-order-empty-icon { font-size: 36px; opacity: 0.3; }
.po-order-empty-text { font-size: 13px; }
.po-item-list {
  display: flex;
  flex-direction: column;
}
.po-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.po-item:last-child { border-bottom: none; }
.po-item-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.po-item-name {
  flex: 1;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  min-width: 0;
}
.po-item-line-price {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
  min-width: 70px;
  text-align: right;
}
.po-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.po-item-mods {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.po-item-notes {
  font-size: 11px;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 2px;
}
.po-item-allergy {
  font-size: 11px;
  color: var(--warning);
  font-weight: 600;
  margin-top: 2px;
}
.po-item-actions {
  display: flex;
  gap: 4px;
}
.po-item-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.12s;
}
.po-item-action:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.po-item-action.danger:hover:not(:disabled) {
  background: var(--danger-dim, rgba(239,68,68,0.15));
  color: var(--danger);
  border-color: var(--danger);
}
.po-item-action:disabled { opacity: 0.35; cursor: not-allowed; }
.po-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.po-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.po-qty-btn:hover:not(:disabled) { background: var(--bg-hover); }
.po-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.po-qty-num {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 13px;
}

/* Order totals + payment */
.po-totals {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.po-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
}
.po-totals-row .value {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-weight: 600;
}
.po-totals-row.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.po-totals-row.total .label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.po-totals-row.total .value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Footer bar */
.po-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 200px 200px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.po-footer-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.po-footer-field .form-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0;
}
.po-footer-field .form-select,
.po-footer-field .form-input {
  font-size: 13px;
  padding: 6px 10px;
  height: 34px;
}
.po-footer-field textarea.form-input {
  height: 34px;
  min-height: 34px;
  resize: none;
}
.po-footer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.po-footer-actions .btn { height: 38px; padding: 0 16px; }

/* Read-only veil — disable interaction visually inside panes 1 & 2 */
.po-panes.readonly .po-cat-row,
.po-panes.readonly .po-product-btn {
  cursor: not-allowed;
  filter: grayscale(0.6) brightness(0.85);
}

/* Status banner (unchanged tones) */
.po-banner {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  border-left: 3px solid;
}
.po-banner-info    { background: var(--accent-subtle, rgba(99,102,241,0.1));    border-left-color: var(--accent); }
.po-banner-warning { background: var(--warning-subtle, rgba(245,158,11,0.1));   border-left-color: var(--warning); color: var(--text-primary); }
.po-banner-success { background: var(--success-subtle, rgba(34,197,94,0.1));    border-left-color: var(--success); }
.po-banner-danger  { background: var(--danger-subtle, rgba(239,68,68,0.1));     border-left-color: var(--danger); }

/* Responsive — collapse to vertical stack on narrow screens */
@media (max-width: 1100px) {
  .po-panes {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .po-categories {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 6px;
    max-height: 70px;
  }
  .po-cat-row {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 8px 12px;
    min-height: 0;
  }
  .po-order {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 50vh;
  }
  .po-footer {
    grid-template-columns: 1fr 1fr;
  }
  .po-footer-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* Modifier modal */
.po-mod-group { margin-bottom: 16px; }
.po-mod-group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.po-mod-required {
  font-size: 10px;
  font-weight: 600;
  background: var(--warning);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0;
  text-transform: none;
}
.po-mod-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.po-mod-opt {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s;
  font-family: inherit;
}
.po-mod-opt:hover { background: var(--bg-hover); }
.po-mod-opt.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.po-mod-price {
  font-size: 11px;
  opacity: 0.85;
}

/* ═══════════════════ TRADING SESSIONS (Kravio card standard) ═══════════════════
   Shell/inset pattern per the console card standard: grey shell card,
   title in the frame, white inset content panel. Token-driven only. */

.sess-card {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  min-width: 0;
  margin-bottom: 20px;
  /* Fill the grid cell: the white inset stretches to the shell's
     height so equal-height card rows don't leave grey voids. */
  display: flex;
  flex-direction: column;
}
.sess-card > .sess-card-body { flex: 1; }
.sess-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px 8px;
}
.sess-card-title { font-size: 13.5px; font-weight: 700; }
.sess-card-head .sess-head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sess-card-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 0;
}
.sess-card-body.sess-body-flush { padding: 0; overflow: hidden; }

/* Status dot in the card frame */
.sess-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.sess-dot.live { background: var(--success); animation: pulse-dot 2s infinite; }
.sess-dot.waiting { background: var(--warning); animation: pulse-dot 2s infinite; }

/* Key/value facts grid on the active session card */
.sess-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 20px;
}
.sess-kv-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sess-kv-value { font-size: 15px; font-weight: 600; margin-top: 3px; }
.sess-kv-value.warn { color: var(--warning); }

.sess-notes {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg-hover);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Empty state (no open session) */
.sess-empty { text-align: center; padding: 30px 20px; }
.sess-empty svg { opacity: 0.35; margin-bottom: 10px; }
.sess-empty-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sess-empty-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* Pending-close rows */
.sess-pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.sess-pending-row:last-child { border-bottom: none; }

/* History table */
.sess-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sess-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}
.sess-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); }
.sess-table tbody tr.session-row { cursor: pointer; }
.sess-table tbody tr.session-row:hover td { background: var(--bg-hover); }
.sess-table .num { text-align: right; font-family: var(--font-mono); }
.sess-table th.num { text-align: right; }

/* ── Wizard ── */
.wiz-steps { display: flex; align-items: center; margin-bottom: 28px; }
.wiz-step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wiz-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  border: 2px solid transparent;
  background: var(--bg-card); color: var(--text-muted); border-color: var(--border);
}
.wiz-step.active .wiz-step-dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.wiz-step.done .wiz-step-dot { background: var(--success); color: #fff; border-color: var(--success); }
.wiz-step-label { font-size: 13px; color: var(--text-muted); }
.wiz-step.active .wiz-step-label { font-weight: 600; color: var(--text-primary); }
.wiz-step.done .wiz-step-label { color: var(--text-primary); }
.wiz-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; }
.wiz-step-line.done { background: var(--success); }

.wiz-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
}
.wiz-heading { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.wiz-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
#wiz-next.gated { opacity: 0.5; cursor: not-allowed; }

/* Task rows inside wizards */
.wiz-task-group-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; padding-left: 2px;
}
.wiz-task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.wiz-task-row.bad { border-color: var(--danger); }
.wiz-task-row.block { display: block; }
.wiz-task-name { font-size: 13px; font-weight: 500; }
.wiz-task-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.wiz-status {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.wiz-status.ok { background: var(--success); }
.wiz-status.bad { background: var(--danger); }
.wiz-status.empty { background: transparent; border: 2px solid var(--border); }

/* Cash declaration */
.cash-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cash-panel-title {
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--text-primary);
}
.cash-line { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.cash-line .val { font-family: var(--font-mono); font-weight: 500; }
.cash-line.total { padding-top: 6px; border-top: 1px solid var(--border); font-weight: 600; }
.cash-minor-head {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px;
}
.denom-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

@media (max-width: 900px) {
  .cash-grid { grid-template-columns: 1fr; }
  .sess-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .denom-cols { grid-template-columns: 1fr; }
}

/* ── Close declaration hub ── */
.sess-close-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--accent-subtle, rgba(108,92,231,0.08));
  border: 1px solid var(--accent);
  font-size: 12.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.sess-banner-fresh { margin-left: auto; font-size: 11.5px; color: var(--text-muted); }

.sess-hub-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}
.sess-hub-row:last-child { border-bottom: none; }
.sess-hub-row:hover { background: var(--bg-hover); }
.sess-hub-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sess-hub-ic.g { background: var(--success-subtle, rgba(34,197,94,0.12)); color: var(--success); }
.sess-hub-ic.a { background: rgba(245,158,11,0.12); color: var(--warning); }
.sess-hub-ic.n { background: var(--bg-hover); color: var(--text-muted); }
.sess-hub-tx { flex: 1; min-width: 0; }
.sess-hub-name { font-size: 13.5px; font-weight: 600; }
.sess-hub-detail { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess-hub-chev { color: var(--text-muted); font-size: 16px; }

.sess-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.sess-pill.g { background: var(--success-subtle, rgba(34,197,94,0.12)); color: var(--success); }
.sess-pill.a { background: rgba(245,158,11,0.12); color: var(--warning); }
.sess-pill.n { background: var(--bg-hover); color: var(--text-muted); }

.sess-signbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
@media (max-width: 560px) {
  .sess-hub-detail { white-space: normal; }
}

/* Card-machine declared inputs: don't stretch the £ field across the
   whole card when tips/amex columns are hidden for the venue. */
.pdq-terminal-row .form-input { max-width: 240px; }

/* ── Cash declaration v2 (declared-take model) ── */
.cash-declare-hero { text-align: center; padding: 20px 16px 16px; }
.cash-declare-amt {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 6px 0 4px;
  background: var(--bg-hover);
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 4px 16px 4px 18px;
}
.cash-declare-amt span { font-size: 22px; font-weight: 700; color: var(--text-muted); }
.cash-declare-amt input {
  border: none; background: transparent; outline: none;
  font-family: var(--font-mono); font-size: 32px; font-weight: 800;
  width: 190px; text-align: center; color: var(--text-primary);
}
.cash-declare-amt input::-webkit-outer-spin-button,
.cash-declare-amt input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cash-declare-sub { font-size: 12px; color: var(--text-muted); }

.cash-ded-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cash-ded-row .ded-reason { flex: 1; font-size: 13px; padding: 6px 8px; }

.cash-verdict { border-radius: 14px; padding: 16px 20px; text-align: center; border: 1px solid var(--border); background: var(--bg-card); }
.cash-verdict.good { background: var(--success-subtle, rgba(34,197,94,0.08)); border-color: var(--success); }
.cash-verdict.bad { background: rgba(239,68,68,0.06); border-color: var(--danger); }
.cash-verdict .cv-big { font-family: var(--font-mono); font-size: 22px; font-weight: 800; }
.cash-verdict .cv-sep { margin: 0 10px; color: var(--text-muted); font-weight: 400; }
.cash-verdict .cv-line { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; }

/* Hub sign-off button once every section is complete: green, with the
   same hover affordance as other primary buttons. */
/* !important: the v2 skin's blanket .btn:not(.btn-primary)… rule
   restyles unknown buttons as white pills and outguns any sane
   specificity here. The ready state must read green in both skins. */
.sess-sign-ready {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #fff !important;
}
.sess-sign-ready:hover:not(:disabled) {
  background: #0b8a60 !important;
  border-color: #0b8a60 !important;
}

/* ── Session detail flip cards: dots + animated swap ── */
.sd-stat-dots { display: flex; gap: 5px; justify-content: center; margin-top: 7px; }
.sd-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border);
  transition: background 0.15s, transform 0.15s;
}
.sd-dot.on { background: var(--accent); transform: scale(1.25); }
.sd-stat-big, .sd-stat-title {
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.sd-flip-out { opacity: 0; transform: translateY(-6px); }
.sd-flip-in { animation: sd-flip-in 0.16s ease; }
@keyframes sd-flip-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sd-stat-big, .sd-stat-title { transition: none; }
  .sd-flip-in { animation: none; }
}

/* ── Delivery receiving checklist (deliveries.js editor) ── */
.rcv-strip { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.rcv-item + .rcv-item { border-top: 1px solid var(--border); }
.rcv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer; user-select: none;
  transition: background 0.1s;
}
.rcv-row:not(.static):hover { background: var(--bg-hover); }
.rcv-row.static { cursor: default; }
.rcv-row.warnbg { background: rgba(245, 158, 11, 0.07); }
.rcv-row.warnbg:not(.static):hover { background: rgba(245, 158, 11, 0.13); }
.rcv-tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.rcv-tick.ok { background: var(--success-subtle, rgba(34,197,94,0.12)); color: var(--success); }
.rcv-tick.warn { background: rgba(245,158,11,0.15); color: var(--warning); }
.rcv-nm { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.rcv-nm i {
  display: block; font-style: normal; font-weight: 400;
  font-size: 11.5px; color: var(--text-muted); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rcv-qty { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); min-width: 68px; text-align: right; flex: none; }
.rcv-qty.amber { color: var(--warning); font-weight: 700; }
.rcv-money { font-family: var(--font-mono); font-size: 13px; font-weight: 700; min-width: 84px; text-align: right; flex: none; }
.rcv-chev { color: var(--text-muted); font-size: 15px; width: 14px; text-align: center; flex: none; transition: transform 0.15s; }
.rcv-item.open .rcv-chev { transform: rotate(90deg); }
.rcv-xpand {
  padding: 12px 14px 14px 48px;
  background: var(--bg-hover);
  border-top: 1px dashed var(--border);
}
.rcv-xrow { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.rcv-xfield { display: flex; flex-direction: column; gap: 4px; }
.rcv-xfield label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.rcv-xinput {
  width: 64px; padding: 6px 8px; text-align: center;
  font-size: 13px; font-family: var(--font-mono);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-primary);
}
.rcv-chip {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); transition: all 0.1s;
}
.rcv-chip:hover { border-color: var(--text-muted); }
.rcv-chip.on { background: rgba(245,158,11,0.14); border-color: var(--warning); color: var(--warning); }
.rcv-chip.danger { color: var(--danger); }
.rcv-chip.danger:hover { border-color: var(--danger); }
.rcv-sticky {
  position: sticky; bottom: 12px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}
.rcv-sticky.good { border-color: var(--success); }
.rcv-sticky.warn { border-color: var(--warning); }
.rcv-sum { font-family: var(--font-mono); font-size: 18px; font-weight: 800; }
.rcv-verdict { font-size: 12.5px; color: var(--text-secondary); }
@media (max-width: 640px) {
  .rcv-qty { min-width: 52px; }
  .rcv-money { min-width: 70px; }
  .rcv-xpand { padding-left: 14px; }
  .rcv-sticky { flex-wrap: wrap; }
}

/* ═══════════════ ROTA V2 (demand-first) ═══════════════ */
.rv-card { background: var(--bg-hover); border: 1px solid var(--border); border-radius: 14px; padding: 5px; margin-bottom: 16px; }
.rv-card-head { display: flex; align-items: center; gap: 10px; padding: 7px 11px 8px; flex-wrap: wrap; }
.rv-card-title { font-size: 13.5px; font-weight: 700; }
.rv-head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-card-body { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.rv-card-body.flush { padding: 0; overflow: hidden; }

.rv-pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rv-pill.g { background: var(--success-subtle, rgba(34,197,94,0.12)); color: var(--success); }
.rv-pill.a { background: rgba(245,158,11,0.14); color: var(--warning); }
.rv-pill.n { background: var(--bg-hover); color: var(--text-muted); }
.rv-pill.b { background: var(--accent-subtle, rgba(108,92,231,0.12)); color: var(--accent); }

/* ── week grid ── */
.rv-scroll { overflow-x: auto; }
table.rv-grid { width: 100%; border-collapse: collapse; min-width: 940px; }
.rv-grid thead th { background: var(--bg-hover); border-bottom: 1px solid var(--border); padding: 9px 8px; text-align: center; vertical-align: top; }
.rv-grid thead th.rv-rolecol { width: 124px; }
.rv-grid thead th.rv-today { background: var(--accent-subtle, rgba(108,92,231,0.10)); }
.rv-day { font-size: 12px; font-weight: 700; }
.rv-date { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.rv-daymeta { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 5px; }
.rv-grid td { border-bottom: 1px solid var(--border-subtle); }
.rv-grid tbody tr:last-child td { border-bottom: none; }
.rv-grid td.rv-role { padding: 9px 10px; font-weight: 600; font-size: 12.5px; white-space: nowrap; vertical-align: top; }
.rv-cell { padding: 6px 5px; vertical-align: top; min-width: 124px; }
.rv-hrs { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin: 1px 0 5px 3px; }
/* The pill carries everything: who, when, and — through its own
   background — how far the shift has got towards them actually
   seeing it. Sent is not the same as seen. */
.rv-chip {
  display: block; width: 100%; text-align: center; cursor: pointer;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 8px; margin-bottom: 4px; font-family: inherit;
  color: var(--text-primary);
}
.rv-chip:hover { filter: brightness(0.97); }
.rv-chip .rv-t { opacity: 0.75; }
.rv-chip.st-draft { background: var(--bg-hover); border-color: var(--border); }
.rv-chip.st-sent  { background: rgba(59,110,165,0.14); border-color: rgba(59,110,165,0.35); }
.rv-chip.st-good  { background: rgba(31,157,85,0.14);  border-color: rgba(31,157,85,0.38); }
.rv-chip.st-warn  { background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.45); }
.rv-chip.st-bad   { background: rgba(214,69,69,0.13);  border-color: rgba(214,69,69,0.4); }
.rv-chip.open {
  border: 1px dashed rgba(245,158,11,0.65); background: rgba(245,158,11,0.08);
  color: var(--warning); font-weight: 700; padding: 6px;
}
.rv-chip.open .rv-n { font-size: 11px; }
.rv-legend i.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--border); }
.rv-legend i.lg.st-draft { background: var(--bg-hover); }
.rv-legend i.lg.st-sent  { background: rgba(59,110,165,0.35); }
.rv-legend i.lg.st-good  { background: rgba(31,157,85,0.4); }
.rv-legend i.lg.st-warn  { background: rgba(245,158,11,0.45); }
.rv-legend i.lg.st-bad   { background: rgba(214,69,69,0.4); }
.rv-n { display: block; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-t { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); font-weight: 500; }
.rv-add {
  display: block; width: 100%; margin-top: 2px; padding: 3px; border: none; background: transparent;
  color: var(--text-muted); font-size: 14px; line-height: 1; border-radius: 6px; cursor: pointer; opacity: 0;
  transition: opacity 0.12s;
}
.rv-cell:hover .rv-add { opacity: 1; }
.rv-cell:hover .rv-add:hover { background: var(--bg-hover); color: var(--text-primary); }
.rv-empty .rv-add { opacity: 0.35; }
.rv-grid tfoot td { padding: 9px 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; background: var(--bg-hover); text-align: center; }
.rv-grid tfoot td.rv-role { font-family: inherit; font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; text-align: left; }
.rv-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 9px 14px; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border-subtle); }
.rv-legend i { display: inline-block; width: 3px; height: 11px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ── phone: day strip + day list ── */
.rv-strip { display: flex; gap: 4px; padding: 9px; border-bottom: 1px solid var(--border); }
.rv-strip-day { flex: 1; text-align: center; padding: 7px 1px 5px; border-radius: 10px; border: none; background: transparent; cursor: pointer; font-family: inherit; color: var(--text-primary); }
.rv-strip-day.on { background: var(--text-primary); color: var(--bg-card); }
.rv-strip-day b { display: block; font-size: 9.5px; font-weight: 700; opacity: 0.7; }
.rv-strip-day span { display: block; font-size: 14px; font-weight: 800; font-family: var(--font-mono); }
.rv-dot { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 3px auto 0; background: transparent; }
.rv-dot.gap { background: var(--warning); }
.rv-pbody { padding: 12px 12px 16px; }
.rv-pmeta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.rv-prole { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 700; margin: 14px 2px 5px; display: flex; justify-content: space-between; align-items: center; }
.rv-role-add { border: 1px solid var(--border); background: var(--bg-card); border-radius: 7px; width: 26px; height: 26px; font-size: 15px; line-height: 1; color: var(--text-secondary); cursor: pointer; }
.rv-prow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--success);
  border-radius: 9px; padding: 9px 12px; margin-bottom: 6px; min-height: 48px;
  font-family: inherit; text-align: left; cursor: pointer; color: var(--text-primary);
}
.rv-prow.st-draft { border-left-color: var(--border); }
.rv-prow.st-sent  { border-left-color: #3b6ea5; background: rgba(59,110,165,0.10); }
.rv-prow.st-good  { border-left-color: var(--success); background: rgba(31,157,85,0.10); }
.rv-prow.st-warn  { border-left-color: var(--warning); background: rgba(245,158,11,0.12); }
.rv-prow.st-bad   { border-left-color: var(--danger); background: rgba(214,69,69,0.10); }
.rv-pstate { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); white-space: nowrap; }
.rv-prow.open { border: 1px dashed rgba(245,158,11,0.65); background: rgba(245,158,11,0.08); color: var(--warning); font-weight: 700; justify-content: center; gap: 8px; }
.rv-prow .rv-n { font-size: 13px; }
.rv-chev { color: var(--text-muted); font-size: 16px; }

/* ── position sheet ── */
.rv-pos-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.rv-pos-title { font-size: 15px; font-weight: 700; }
.rv-pos-sub { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.rv-assigned-now { font-size: 13px; padding: 9px 12px; background: var(--bg-hover); border-radius: 8px; margin-bottom: 12px; }
.rv-cands { max-height: 60vh; overflow-y: auto; margin: 0 -4px; }
.rv-group { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 10px 4px 5px; }
.rv-cand { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.rv-cand.muted { opacity: 0.55; }
.rv-cand-main { flex: 1; min-width: 170px; }
.rv-cand-name { font-size: 13.5px; font-weight: 700; }
.rv-cand-why { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.rv-stats { display: flex; gap: 14px; flex-shrink: 0; }
.rv-stats div { text-align: right; }
.rv-stats span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.rv-stats b { font-family: var(--font-mono); font-size: 13px; }
.rv-stats b.good { color: var(--success); }
.rv-stats b.warn { color: var(--warning); }

/* ── availability ── */
.av-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.av-row:last-child { border-bottom: none; }
.av-main { flex: 1; min-width: 200px; }
.av-name { font-size: 13.5px; font-weight: 600; }
.av-detail { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.av-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.av-chip.g { background: var(--success-subtle, rgba(34,197,94,0.12)); color: var(--success); }
.av-chip.a { background: rgba(245,158,11,0.14); color: var(--warning); }
.av-chip.n { background: var(--bg-hover); color: var(--text-muted); }
.av-x { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 0 0 2px; opacity: 0.6; }
.av-x:hover { opacity: 1; }

@media (max-width: 900px) {
  .rv-card-body.flush { border-radius: 10px; }
}

/* ── rota v2: day shaping ── */
.rv-dayhead { border: none; background: transparent; cursor: pointer; font-family: inherit; color: inherit; padding: 2px 6px; border-radius: 8px; }
.rv-dayhead:hover { background: var(--bg-card); }
.rv-evbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--accent-subtle, rgba(108,92,231,0.10)); border: 1px solid var(--accent); font-size: 12.5px; margin-bottom: 10px; }
.rv-evbar.bookings { background: var(--bg-hover); border-color: var(--border); }
.rv-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.rv-guide-loading { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }
.rv-g { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
.rv-gl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.rv-gv { font-family: var(--font-mono); font-size: 17px; font-weight: 800; margin-top: 3px; }
.rv-gs { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rv-up { color: var(--warning); font-weight: 700; }
.rv-down { color: var(--text-secondary); font-weight: 700; }

.rv-demand { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.rv-demand:last-child { border-bottom: none; }
.rv-dr-role { width: 110px; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.rv-dr-step { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.rv-step { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-hover); font-weight: 700; font-size: 15px; line-height: 1; color: var(--text-secondary); cursor: pointer; }
.rv-step:disabled { opacity: 0.35; cursor: not-allowed; }
.rv-step:hover:not(:disabled) { background: var(--bg-card); color: var(--text-primary); }
.rv-dr-num { font-family: var(--font-mono); font-size: 18px; font-weight: 800; min-width: 22px; text-align: center; }
.rv-dr-times { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 11.5px; color: var(--text-muted); }
.rv-dr-times .form-input { width: 104px; padding: 5px 8px; font-size: 12.5px; font-family: var(--font-mono); }
.rv-dr-hint { flex: 1; min-width: 180px; font-size: 11.5px; color: var(--text-muted); }
.rv-dr-hint b { color: var(--text-secondary); font-weight: 700; }
.rv-short { color: var(--warning); font-weight: 700; }
.rv-okk { color: var(--success); font-weight: 700; }
.rv-pattern-pick { padding: 5px 8px; font-size: 12px; max-width: 210px; }
.rv-sum span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 700; }
.rv-sum b { font-family: var(--font-mono); font-size: 15px; font-weight: 800; }

@media (max-width: 720px) {
  .rv-guide { grid-template-columns: 1fr; }
  .rv-dr-role { width: 100%; }
  .rv-dr-hint { width: 100%; min-width: 0; }
}

.rv-pat-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.rv-pat-row:last-child { border-bottom: none; }
.rv-pat-name { flex: 1; min-width: 160px; padding: 7px 10px; font-size: 13px; }
.rv-pat-meta { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

/* The day header is the way in to "set the cover for this day", so it
   behaves like a control — but the line under the date is real
   information (how much of the day is filled), not a shouty label. */
.rv-dayhead { display: block; width: 100%; border: 1px solid transparent; background: transparent; cursor: pointer; font-family: inherit; color: inherit; padding: 4px 6px 5px; border-radius: 9px; }
.rv-dayhead:hover { background: var(--bg-card); border-color: var(--border); }
.rv-dayhead .rv-day, .rv-dayhead .rv-date { display: block; }
.rv-dayinfo { display: block; margin-top: 3px; font-size: 10px; color: var(--text-muted); font-weight: 500; }
.rv-dayinfo.todo { color: var(--accent); font-weight: 700; }
.rv-dayinfo.short { color: var(--warning); font-weight: 700; }
.rv-th-shut .rv-day, .rv-th-shut .rv-date { opacity: 0.65; }

/* Days the venue doesn't normally trade collapse to a spine so the
   nights that DO trade get the width. One tap opens one up. */
.rv-col-shut { width: 40px; min-width: 40px; padding: 0; background: repeating-linear-gradient(135deg, transparent, transparent 5px, var(--bg-hover) 5px, var(--bg-hover) 10px); }
.rv-shut-open { width: 100%; height: 100%; min-height: 58px; border: none; background: transparent; cursor: pointer; font-family: inherit; color: var(--text-muted); padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.rv-shut-open:hover { background: var(--bg-card); color: var(--text-primary); }
.rv-shut-day { font-size: 11px; font-weight: 700; }
.rv-shut-date { font-size: 10px; font-family: var(--font-mono); }
.rv-shut-plus { font-size: 13px; line-height: 1; margin-top: 3px; opacity: 0.5; }
.rv-shut-open:hover .rv-shut-plus { opacity: 1; }
.rv-strip-day.shut { opacity: 0.45; }
.rv-evbar.shut { background: var(--bg-hover); border-color: var(--border); color: var(--text-secondary); }

/* Day pills stay inside their own column — never bleed over the
   narrow spine of a collapsed day next door. */
.rv-daymeta { max-width: 100%; overflow: hidden; }
.rv-daymeta .rv-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

.rv-cancel-note { padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); background: rgba(245,158,11,0.10); font-size: 12.5px; color: var(--text-primary); }

/* Editing one person's hours without touching the rest of the shift. */
.rv-timeedit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 12px; background: var(--bg-hover); border-radius: 10px; margin-bottom: 12px; font-size: 12.5px; }
.rv-te-label { font-weight: 600; }
.rv-timeedit .form-input { width: 116px; padding: 6px 9px; font-family: var(--font-mono); font-size: 13px; }
.rv-te-note { flex-basis: 100%; font-size: 11.5px; color: var(--text-muted); }
