/* ═══════════════════════════════════════
   shadcn Light — Yeolramsil Dashboard
   ═══════════════════════════════════════ */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e4e4e7;
  --border-subtle: #f0f0f2;
  --ring: #d4d4d8;
  --text: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #a1a1aa;
  --primary: #18181b;
  --primary-fg: #fafafa;
  --accent: #f4f4f5;
  --destructive: #ef4444;
  --success: #22c55e;
  --success-muted: #dcfce7;
  --info: #3b82f6;
  --info-muted: #dbeafe;
  --warning: #f59e0b;
  --warning-muted: #fef3c7;
  --radius: 8px;
  --radius-sm: 6px;
  --sidebar-w: 220px;
  --panel-w: 380px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Layout ─── */
.layout-sidebar { display: flex; min-height: 100vh; }

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar-brand { padding: 1.25rem 1.25rem 0.5rem; }
.sidebar-brand a {
  font-weight: 700; font-size: 1rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.5px;
}
.sidebar-nav {
  flex: 1; display: flex; flex-direction: column; gap: 1px;
  padding: 0.5rem 0.75rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.45rem 0.65rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-muted);
  font-size: 0.8rem; font-weight: 500; transition: all 0.12s;
}
.sidebar-link:hover { color: var(--text-secondary); background: var(--accent); }
.sidebar-link.active { color: var(--text); background: var(--accent); font-weight: 600; }
.sidebar-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0.5;
}
.sidebar-link.active .sidebar-icon { opacity: 0.9; }
.sidebar-footer {
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.sidebar-date { font-size: 0.65rem; color: var(--text-muted); padding: 0 0.65rem; }

/* ─── Main ─── */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 1.25rem 1.5rem;
  flex: 1;
  min-width: 0;
}

/* ─── Flash ─── */
.flash {
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  margin-bottom: 0.75rem; font-size: 0.8rem; border: 1px solid;
}
.flash-notice { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.flash-alert { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ─── Page Header ─── */
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem;
}
.page-header h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.4px; }
.subtitle { color: var(--text-muted); font-size: 0.8rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.4rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500;
  text-decoration: none; cursor: pointer; background: var(--surface);
  color: var(--text-secondary); transition: all 0.12s; font-family: var(--font);
  white-space: nowrap; gap: 0.3rem;
}
.btn:hover { background: var(--accent); border-color: var(--ring); color: var(--text); }
.btn-primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn-primary:hover { opacity: 0.9; }
.btn-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.btn-success:hover { background: #dcfce7; }
.btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--accent); }

/* ─── Badge ─── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.5rem; border-radius: 9999px;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2px;
}
.badge-success { background: #f0fdf4; color: #15803d; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-muted { background: var(--accent); color: var(--text-muted); }
.badge-warning { background: #fffbeb; color: #b45309; }
.badge-info { background: #eff6ff; color: #1d4ed8; }

/* ─── Card ─── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 0.85rem; font-weight: 600; }
.card-link { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.card-link:hover { color: var(--text); }
.card-body { padding: 1rem; }
.mb { margin-bottom: 0.75rem; }

/* ─── Stats ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.stat-card-warning { border-left: 3px solid var(--warning); }
.stat-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin: 0.1rem 0; letter-spacing: -0.5px; }
.stat-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Dashboard Grid ─── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem; }

/* ─── Mini seats (dashboard) ─── */
.seat-grid-mini { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.seat-dot {
  width: 28px; height: 28px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 600;
}
.seat-dot.available { background: var(--success-muted); color: #15803d; }
.seat-dot.occupied { background: var(--info-muted); color: #1d4ed8; }
.seat-dot.maintenance { background: var(--warning-muted); color: #b45309; }
.seat-legend { display: flex; gap: 0.6rem; font-size: 0.65rem; color: var(--text-muted); }
.legend-item { display: flex; align-items: center; gap: 0.2rem; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-dot.available { background: var(--success); }
.legend-dot.occupied { background: var(--info); }
.legend-dot.maintenance { background: var(--warning); }

/* ─── Seat Grid (list) ─── */
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
.seat-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; text-align: center; }
.seat-card.available { border-left: 3px solid var(--success); }
.seat-card.occupied { border-left: 3px solid var(--info); }
.seat-card.maintenance { border-left: 3px solid var(--warning); }
.seat-number { font-size: 1rem; font-weight: 600; }
.seat-status-label { font-size: 0.65rem; color: var(--text-muted); }
.seat-occupant { font-weight: 500; color: var(--info); font-size: 0.8rem; }
.seat-time { font-size: 0.65rem; color: var(--text-muted); }
.seat-actions { margin-top: 0.5rem; display: flex; gap: 0.25rem; justify-content: center; flex-wrap: wrap; }

/* ─── Checklist ─── */
.checklist-mini { list-style: none; }
.checklist-mini-item { padding: 0.3rem 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.checklist-mini-item.done { color: var(--text-muted); text-decoration: line-through; }
.check-icon { font-size: 0.7rem; width: 1rem; }
.checklist { list-style: none; }
.checklist-item { padding: 0.6rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.checklist-item:last-child { border-bottom: none; }
.checklist-item.done { opacity: 0.45; }
.checklist-form { display: contents; }
.checklist-toggle { display: flex; align-items: center; gap: 0.6rem; background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }
.check-box { width: 16px; height: 16px; border: 1.5px solid var(--ring); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; flex-shrink: 0; }
.checklist-item.done .check-box { background: var(--text); border-color: var(--text); color: var(--primary-fg); }
.checklist-title { font-size: 0.85rem; }
.checklist-item.done .checklist-title { text-decoration: line-through; }
.checklist-time { font-size: 0.65rem; color: var(--text-muted); }
.checklist-progress { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.progress-bar { flex: 1; height: 4px; background: var(--accent); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--text); border-radius: 2px; transition: width 0.3s; }
.progress-text { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* ─── Log ─── */
.log-list { list-style: none; }
.log-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.8rem; border-bottom: 1px solid var(--border-subtle); }
.log-item:last-child { border-bottom: none; }
.log-name { font-weight: 500; min-width: 44px; }
.log-change { font-weight: 600; min-width: 32px; font-variant-numeric: tabular-nums; }
.positive { color: #16a34a; }
.negative { color: #dc2626; }
.log-reason { color: var(--text-muted); flex: 1; }
.log-time { color: var(--text-muted); font-size: 0.6rem; }

/* ─── Table ─── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.55rem 0.65rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px; }
.table tr.inactive { opacity: 0.35; }
.table tr.row-warning { background: #fffbeb; }
.table-actions { display: flex; gap: 0.25rem; justify-content: flex-end; }

/* ─── Forms ─── */
.form { max-width: 480px; }
.form-group { margin-bottom: 0.75rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.8rem; margin-bottom: 0.25rem; color: var(--text-secondary); }
.input {
  width: 100%; padding: 0.4rem 0.6rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.8rem; font-family: var(--font);
  background: var(--surface); color: var(--text); transition: border-color 0.12s;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 2px rgba(0,0,0,0.04); }
.input-sm { padding: 0.3rem 0.45rem; font-size: 0.75rem; }
select.input { appearance: auto; }
.form-actions { display: flex; gap: 0.35rem; margin-top: 1rem; }
.form-row { display: flex; gap: 0.6rem; }
.form-row .form-group { flex: 1; }
.form-inline { display: flex; gap: 0.35rem; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-group { margin-bottom: 0; }
.inline-form { display: flex; gap: 0.35rem; align-items: center; }
.form-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 0.5rem; margin-bottom: 0.75rem; color: #991b1b; font-size: 0.8rem; }
.checkbox-label { display: flex !important; align-items: center; gap: 0.35rem; cursor: pointer; }
.scf-error { border-color: var(--destructive) !important; }

/* ─── Misc ─── */
.text-danger { color: var(--destructive); }
.empty-state { color: var(--text-muted); font-size: 0.8rem; text-align: center; padding: 0.6rem; }
.empty-state-large { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }
.empty-state-large p { margin-bottom: 0.6rem; }
.danger-zone { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #fecaca; }
.inventory-current { text-align: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

/* ═══ Floor Plan ═══ */
.floor-split { min-height: calc(100vh - 100px); transition: margin-right 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.floor-split.panel-open { margin-right: var(--panel-w); }
.floor-split-main { }

.floor-plan-grid {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem; overflow-x: auto;
}
.grid-header { display: flex; }
.grid-corner { width: 24px; height: 20px; flex-shrink: 0; }
.grid-col-label {
  width: 72px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--text-muted); font-weight: 500; flex-shrink: 0;
}
.grid-row { display: flex; }
.grid-row-label {
  width: 24px; height: 72px; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--text-muted); font-weight: 500; flex-shrink: 0;
}
.grid-cell {
  width: 72px; height: 72px; border: 1px dashed var(--border-subtle);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.1s;
}
.grid-cell:hover { background: var(--accent); border-color: var(--ring); }
.grid-cell.drag-over { background: #f0f4ff; border-color: var(--info); border-style: solid; }

/* ─── Seat Chip ─── */
.seat-chip {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: grab; user-select: none; transition: all 0.1s; border: 1px solid;
  position: relative; z-index: 1;
}
.seat-chip:active { cursor: grabbing; }
.seat-chip.dragging { opacity: 0.3; transform: scale(0.95); }
.seat-chip.selected { box-shadow: 0 0 0 2px var(--primary); }
.seat-chip.available { background: #fafff7; border-color: #d9f5d0; color: #2d7a1e; }
.seat-chip.occupied { background: #f7faff; border-color: #c6deff; color: #1a56b8; }
.seat-chip.maintenance { background: #fffdf5; border-color: #f5e6b0; color: #9a6e08; }
.seat-chip-name { font-weight: 600; font-size: 0.7rem; line-height: 1.2; text-align: center; }
.seat-chip-occupant { font-size: 0.55rem; font-weight: 500; margin-top: 1px; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.seat-chip-time { font-size: 0.45rem; color: var(--text-muted); white-space: nowrap; }

.floor-plan-legend {
  display: flex; gap: 1rem; margin-top: 0.5rem;
  padding: 0.4rem 0; font-size: 0.65rem; color: var(--text-muted);
}
.legend-hint { margin-left: auto; }

/* ═══ Split Panel ═══ */
.floor-split-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--panel-w);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.floor-split-panel.open { transform: translateX(0); }
.panel-inner {
  width: 100%; padding: 1rem 1rem 0;
  overflow-y: auto; height: 100%;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.panel-head h2 { font-size: 1rem; font-weight: 700; letter-spacing: -0.3px; }
.panel-head .badge { margin-left: 0.5rem; }
.panel-close {
  background: none; border: none; font-size: 1.1rem; cursor: pointer;
  color: var(--text-muted); width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: all 0.1s;
}
.panel-close:hover { color: var(--text); background: var(--accent); }

.panel-add-area { margin-bottom: 0.5rem; }
.pf-toggle-btn { width: 100%; color: var(--text-muted); }

.panel-block { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.panel-block:last-child { border-bottom: none; }
.panel-block h3 { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }

.panel-footer-bar { padding: 0.5rem 0; }

/* ─── Panel Form ─── */
.panel-form { margin-top: 0.5rem; }
.pf-field { margin-bottom: 0.5rem; }
.pf-field label { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.15rem; }
.pf-row { display: flex; gap: 0.4rem; }
.pf-row .pf-field { flex: 1; }
.pf-row-3 { display: flex; gap: 0.4rem; }
.pf-row-3 .pf-field-start { flex: 2; }
.pf-row-3 .pf-field-duration { flex: 2; }
.pf-row-3 .pf-field-end { flex: 2; }
.pf-drink-row { display: flex; gap: 0.25rem; }
.pf-drink-row select, .pf-drink-row input { flex: 1; }
.pf-actions { display: flex; gap: 0.25rem; margin-top: 0.4rem; }
.pf-submit-btn { flex: 1; }

/* Drink manager */
.pf-drink-manager { margin-top: 0.35rem; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem; background: var(--bg); }
.pf-drink-add-row { display: flex; gap: 0.25rem; margin-bottom: 0.4rem; }
.pf-drink-add-row input { flex: 1; }
.pf-drink-list { display: flex; flex-direction: column; gap: 0.15rem; }
.pf-drink-item { display: flex; justify-content: space-between; align-items: center; padding: 0.2rem 0.35rem; border-radius: 3px; font-size: 0.75rem; }
.pf-drink-item:hover { background: var(--accent); }
.pf-drink-del { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; padding: 0 0.15rem; border-radius: 2px; }
.pf-drink-del:hover { color: var(--destructive); }

/* ═══ Timeline ═══ */
.panel-block-timeline {
  margin: 0 -1rem; border-top: 1px solid var(--border); padding: 0;
}
.tl-wrap { overflow-y: auto; max-height: calc(100vh - 240px); }
.tl-container { position: relative; }

/* Hour rows */
.tl-rows { position: relative; }
.tl-row {
  display: flex; align-items: stretch;
  cursor: pointer; transition: background 0.08s;
}
.tl-row:hover { background: var(--accent); }
.tl-row-now { background: rgba(59,130,246,0.04); }
.tl-row-now .tl-td-hour { color: var(--info); font-weight: 700; }
.tl-row-past .tl-td-hour { opacity: 0.35; }
.tl-td-hour {
  width: 32px; flex-shrink: 0;
  font-size: 0.65rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 0.2rem 0.4rem 0 0;
  user-select: none;
}
.tl-td-line { flex: 1; border-top: 1px solid var(--border-subtle); }

/* Blocks overlay */
.tl-blocks {
  position: absolute; top: 0; left: 36px; right: 8px; bottom: 0;
  pointer-events: none;
}
.tl-entry {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: flex-start; gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px; border: 1px solid var(--border-subtle);
  font-size: 0.75rem; overflow: hidden;
  pointer-events: auto; cursor: grab;
  background: var(--surface);
  color: var(--text);
  transition: background 0.08s;
}
.tl-entry:hover { background: var(--accent); }
.tl-entry.tl-dragging { opacity: 0.6; cursor: grabbing; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tl-entry-active, .tl-entry-pending, .tl-entry-done { background: var(--surface); color: var(--text); }
.tl-entry-done { opacity: 0.4; }
.tl-entry-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl-entry-time { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-entry-drink { font-size: 0.6rem; color: var(--text-muted); white-space: nowrap; }
.tl-entry-select {
  margin-left: auto;
  padding: 0.15rem 0.3rem; border: 1px solid; border-radius: 4px;
  font-size: 0.6rem; font-family: var(--font);
  cursor: pointer; appearance: auto; flex-shrink: 0;
  font-weight: 500;
}
.tl-entry-active .tl-entry-select { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.tl-entry-pending .tl-entry-select { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tl-entry-done .tl-entry-select { background: var(--accent); color: var(--text-muted); border-color: var(--border); }
.tl-entry-resize {
  position: absolute; bottom: 0; left: 0; right: 0; height: 5px;
  cursor: ns-resize;
}
.tl-entry-resize::after {
  content: ""; position: absolute; bottom: 1.5px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 1.5px; background: currentColor; opacity: 0; border-radius: 1px;
}
.tl-entry:hover .tl-entry-resize::after { opacity: 0.3; }

/* Now indicator */
.tl-now {
  position: absolute; left: 28px; right: 0; z-index: 5; pointer-events: none;
  border-top: 1.5px solid var(--destructive);
}
.tl-now::before {
  content: ""; position: absolute; left: -3px; top: -3.5px;
  width: 6px; height: 6px; background: var(--destructive); border-radius: 50%;
}

/* ═══ Modal ═══ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(3px);
}
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  width: 340px; max-width: 90vw;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem 0; }
.modal-header h3 { font-size: 0.95rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-muted); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 0.75rem 1rem; }
.modal-position-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.25rem; padding: 0 1rem 0.85rem; }

/* ═══ Bulk Entry ═══ */
.bulk-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.bulk-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bulk-table th {
  padding: 0.45rem 0.35rem; font-size: 0.6rem; font-weight: 500;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px;
  text-align: left; background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1;
}
.bulk-th-num { width: 28px; text-align: center; }
.bulk-th-name { width: 20%; }
.bulk-th-seat { width: 22%; }
.bulk-th-start { width: 11%; }
.bulk-th-dur { width: 10%; }
.bulk-th-end { width: 11%; }
.bulk-th-drink { width: 16%; }
.bulk-th-action { width: 24px; }
.bulk-row td { padding: 1px 2px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.bulk-row:last-child td { border-bottom: none; }
.bulk-num { text-align: center; font-size: 0.65rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bulk-input {
  width: 100%; padding: 0.35rem; border: 1px solid transparent; border-radius: 3px;
  font-size: 0.8rem; font-family: var(--font); background: transparent; color: var(--text);
}
.bulk-input:focus { outline: none; border-color: var(--ring); background: var(--bg); }
.bulk-input:hover { border-color: var(--border); }
select.bulk-input { appearance: auto; cursor: pointer; }
.bulk-del {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 0.9rem; opacity: 0; transition: all 0.1s;
}
.bulk-row:hover .bulk-del { opacity: 1; }
.bulk-del:hover { color: var(--destructive); }
.bulk-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 0.6rem; }
.bulk-actions-right { display: flex; align-items: center; gap: 0.6rem; }
.bulk-count { font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bulk-result { margin-top: 0.6rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.8rem; background: var(--bg); }
.bulk-result-ok { color: #16a34a; font-weight: 500; }
.bulk-result-err { color: var(--destructive); }
.bulk-errors { margin-top: 0.25rem; font-size: 0.7rem; color: var(--text-muted); }

/* ═══ Settings ═══ */
.settings-grid { max-width: 520px; }
.settings-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ═══ Usage Cards (legacy) ═══ */
.usage-list { display: flex; flex-direction: column; gap: 0.25rem; }
.usage-empty { color: var(--text-muted); font-size: 0.7rem; text-align: center; padding: 0.6rem 0; }
.usage-status-select {
  padding: 0.15rem 0.2rem; border: 1px solid var(--border); border-radius: 3px;
  font-size: 0.65rem; font-family: var(--font); background: var(--surface);
  color: var(--text-secondary); cursor: pointer; appearance: auto;
}

/* Unplaced */
.unplaced-list { display: flex; flex-direction: column; gap: 0.25rem; }
.unplaced-list .seat-chip { width: 100%; height: auto; min-height: 36px; padding: 0.3rem; }

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .sidebar { width: 52px; --sidebar-w: 52px; }
  .sidebar-brand a { font-size: 0; }
  .sidebar-link span { display: none; }
  .sidebar-link { justify-content: center; padding: 0.45rem; }
  .sidebar-date { display: none; }
  .main-content { margin-left: 52px; max-width: calc(100% - 52px); padding: 0.75rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
}
