/* ==========================================================================
   Component Styles
   Restaurant Backoffice - Minimalist Design
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  text-decoration: none;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-bg-hover);
  border-color: var(--color-border);
}

.btn-secondary:active {
  background-color: var(--color-bg-active);
}

.btn-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: #ffffff;
}

.btn-success:hover {
  opacity: 0.9;
}

.btn-danger {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: #ffffff;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-warning {
  background-color: var(--color-warning);
  border-color: var(--color-warning);
  color: #1c1917;
}

.btn-warning:hover {
  opacity: 0.9;
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.btn-sm {
  height: 28px;
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  height: 44px;
  padding: 0 var(--space-6);
  font-size: var(--text-base);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon.btn-sm {
  width: 28px;
  height: 28px;
}

.btn-icon.btn-lg {
  width: 44px;
  height: 44px;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1.4;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-success {
  background-color: var(--color-success-light);
  color: var(--color-success-text);
}

.badge-warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning-text);
}

.badge-danger {
  background-color: var(--color-danger-light);
  color: var(--color-danger-text);
}

.badge-info {
  background-color: var(--color-info-light);
  color: var(--color-info-text);
}

.badge-neutral {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.badge-accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.badge-dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: currentColor;
  flex-shrink: 0;
}

/* No-show risk badges */
.badge-noshow-reliable {
  background-color: var(--color-success-light);
  color: var(--color-success-text);
}

.badge-noshow-warning {
  background-color: #fff3cd;
  color: #856404;
}

.badge-noshow-risk {
  background-color: var(--color-danger-light);
  color: var(--color-danger-text);
}

.badge-noshow-new {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-muted);
}

/* Dark mode overrides for no-show badges */
[data-theme="dark"] .badge-noshow-warning {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* ==========================================================================
   Form Inputs
   ========================================================================== */

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-muted);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--color-text-muted);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .input:focus,
[data-theme="dark"] .select:focus,
[data-theme="dark"] .textarea:focus {
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.input-sm,
.select-sm {
  height: 28px;
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
}

.select {
  padding-right: var(--space-8);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-2) center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  cursor: pointer;
}

.textarea {
  height: auto;
  min-height: 80px;
  padding: var(--space-2) var(--space-3);
  resize: vertical;
  line-height: var(--leading-normal);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.input-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
}

.input-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.input-error {
  border-color: var(--color-danger);
}

.input-error:focus {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.input-error-message {
  font-size: var(--text-xs);
  color: var(--color-danger);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.card-header-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.card-body {
  padding: var(--space-5);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-border);
}

.card-compact .card-header,
.card-compact .card-body,
.card-compact .card-footer {
  padding: var(--space-3) var(--space-4);
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-align: left;
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.table td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background-color: var(--color-bg-hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-compact th {
  padding: var(--space-2) var(--space-3);
}

.table-compact td {
  padding: var(--space-2) var(--space-3);
}

.table-clickable tbody tr {
  cursor: pointer;
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tab-group {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
  gap: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  margin-bottom: -1px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-sans);
}

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

.tab.active {
  color: var(--color-accent);
  font-weight: var(--font-medium);
  border-bottom-color: var(--color-accent);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-muted);
}

.tab.active .tab-count {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

/* ==========================================================================
   Tags
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1.4;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.tag-vip {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.tag-allergie {
  background-color: var(--color-danger-light);
  color: var(--color-danger-text);
}

.tag-vegetarien {
  background-color: var(--color-success-light);
  color: var(--color-success-text);
}

.tag-halal {
  background-color: var(--color-warning-light);
  color: var(--color-warning-text);
}

.tag-gold {
  background-color: #fffbeb;
  color: #92400e;
}

[data-theme="dark"] .tag-gold {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

.tag-removable {
  padding-right: var(--space-1);
}

.tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.tag-remove:hover {
  opacity: 1;
}

/* ==========================================================================
   Toggle Switch
   ========================================================================== */

.toggle {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-active);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.toggle.active {
  background-color: var(--color-accent);
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.toggle.active .toggle-knob {
  transform: translateX(20px);
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ==========================================================================
   Dropdown
   ========================================================================== */

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-40);
  padding: var(--space-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-right {
  left: auto;
  right: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border: none;
  background: none;
  font-family: var(--font-sans);
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--color-bg-hover);
}

.dropdown-item-danger {
  color: var(--color-danger);
}

.dropdown-item-danger:hover {
  background-color: var(--color-danger-light);
}

.dropdown-separator {
  height: 1px;
  margin: var(--space-1) 0;
  background-color: var(--color-border);
}

/* ==========================================================================
   Tooltip (CSS only)
   ========================================================================== */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1.3;
  color: var(--color-text-inverted);
  background-color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: var(--z-50);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-tooltip-position="right"]::after {
  bottom: auto;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}

[data-tooltip-position="right"]:hover::after {
  transform: translateY(-50%) translateX(0);
}

[data-tooltip-position="bottom"]::after {
  bottom: auto;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(-4px);
}

[data-tooltip-position="bottom"]:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Stat Card
   ========================================================================== */

.stat-card {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-card-accent { border-left-color: var(--color-accent); }
.stat-card-success { border-left-color: var(--color-success); }
.stat-card-warning { border-left-color: var(--color-warning); }
.stat-card-danger { border-left-color: var(--color-danger); }
.stat-card-info { border-left-color: var(--color-info); }

.stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.stat-card-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-clickable.stat-card-active {
  box-shadow: var(--shadow-md);
  border-left-width: 4px;
  transform: translateY(-1px);
}

.stat-change {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.stat-change-up { color: var(--color-success); }
.stat-change-down { color: var(--color-danger); }

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  text-align: center;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.empty-state-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 320px;
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin-bottom: var(--space-3);
}

.skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Notification / Toast
   ========================================================================== */

.notification {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-primary);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  max-width: 400px;
}

.notification-success { border-left: 3px solid var(--color-success); }
.notification-warning { border-left: 3px solid var(--color-warning); }
.notification-danger { border-left: 3px solid var(--color-danger); }
.notification-info { border-left: 3px solid var(--color-info); }

/* ==========================================================================
   Search
   ========================================================================== */

.search-input {
  position: relative;
}

.search-input .input {
  padding-left: var(--space-8);
}

.search-input-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Form Validation
   ========================================================================== */

.input-error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 1px var(--color-danger-light);
}

.input-valid {
  border-color: var(--color-success) !important;
}

.field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-danger);
  margin-top: 2px;
}

/* ==========================================================================
   Service Separators (Dashboard table)
   ========================================================================== */

.service-separator td {
  padding: 6px 12px !important;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.service-separator td i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Status Row Coloring
   ========================================================================== */

.row-status-confirmed { background-color: var(--color-success-light); }
.row-status-pending { background-color: var(--color-warning-light); }
.row-status-cancelled { background-color: var(--color-danger-light); }
.row-status-arrived { background-color: var(--color-accent-light); }
.row-status-seated { background-color: var(--color-info-light); }
.row-status-completed { background-color: var(--color-bg-tertiary); }

/* ==========================================================================
   Quick Status Buttons
   ========================================================================== */

.quick-status-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.quick-status-bar .btn {
  height: 28px;
  font-size: var(--text-xs);
  padding: 0 10px;
}

/* ==========================================================================
   Availability Gauge
   ========================================================================== */

.slot-gauge-section {
  margin-top: 12px;
}

.slot-gauge-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.slot-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 4px;
}

.slot-gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: 1px solid transparent;
}

.slot-gauge-item:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border);
}

.slot-gauge-item.selected {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.slot-gauge-item .slot-time {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

.slot-gauge-bar {
  width: 100%;
  height: 6px;
  background: var(--color-bg-tertiary);
  border-radius: 3px;
  margin-top: 2px;
  overflow: hidden;
}

.slot-gauge-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.slot-gauge-fill.gauge-green { background: var(--color-success); }
.slot-gauge-fill.gauge-orange { background: var(--color-warning); }
.slot-gauge-fill.gauge-red { background: var(--color-danger); }

.slot-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed var(--color-success-border);
  border-radius: var(--radius-md);
  background: var(--color-success-light);
}

.slot-suggestions .btn {
  height: 28px;
  font-size: var(--text-xs);
  border: 1px dashed var(--color-success);
  color: var(--color-success-text);
  background: transparent;
}

.slot-suggestions .btn:hover {
  background: var(--color-success);
  color: #ffffff;
}

/* ==========================================================================
   Filter Preset Chips
   ========================================================================== */

.filter-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1.4;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  user-select: none;
}

.filter-preset-chip:hover {
  background-color: var(--color-bg-hover);
  border-color: var(--color-text-muted);
  color: var(--color-text-primary);
}

.filter-preset-chip.active {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-preset-chip.preset-default {
  border-style: dashed;
}

.filter-preset-chip .preset-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  font-size: 10px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  margin-left: 2px;
}

.filter-preset-chip .preset-remove:hover {
  opacity: 1;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

/* ================================================================
   MESSAGING - Conversations & Bubbles
   Uses design-system variables for full light/dark mode support.
   ================================================================ */

.msg-split-view {
  display: flex;
  height: 500px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.msg-conversation-list {
  width: 30%;
  min-width: 200px;
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  background: var(--color-bg-secondary);
}

.msg-conversation-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

.msg-conversation-item:hover {
  background: var(--color-bg-hover);
}

.msg-conversation-item.active {
  background: var(--color-accent-muted);
  border-left: 3px solid var(--color-accent);
}

.msg-conversation-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  flex-shrink: 0;
}

.msg-conversation-info {
  flex: 1;
  min-width: 0;
}

.msg-conversation-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-conversation-preview {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.msg-conversation-time {
  font-size: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.msg-thread-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary);
}

.msg-thread-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-bg-secondary);
}

.msg-thread {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-bg-tertiary);
}

.msg-thread-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  background: var(--color-bg-tertiary);
}

.msg-bubble {
  max-width: 75%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  word-break: break-word;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.msg-bubble.incoming {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.msg-bubble.outgoing {
  background: #1a7f41;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

[data-theme="dark"] .msg-bubble.outgoing {
  background: #1a6334;
}

.msg-bubble-time {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.msg-bubble.outgoing .msg-bubble-time {
  color: rgba(255,255,255,0.6);
  justify-content: flex-end;
}

.msg-bubble-status {
  display: inline-flex;
}

.msg-compose {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  background: var(--color-bg-secondary);
}

.msg-compose textarea {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  resize: none;
  max-height: 120px;
  line-height: var(--leading-normal);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
}

.msg-compose textarea::placeholder {
  color: var(--color-text-muted);
}

.msg-compose textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
}

.msg-compose button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.msg-compose button:hover {
  background: var(--color-accent-hover);
}

/* Stats bar above conversation split view */
.msg-stats-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.msg-stat-mini {
  display: flex;
  align-items: center;
  gap: 4px;
}

.msg-stat-mini span {
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

/* Conversation list header with search + new button */
.msg-list-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.msg-conv-search {
  flex: 1;
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 6px 12px;
  font-size: var(--text-xs);
  outline: none;
  transition: border-color var(--transition-fast);
}

.msg-conv-search:focus {
  border-color: var(--color-border-focus);
}

.msg-conv-search::placeholder {
  color: var(--color-text-muted);
}

.msg-new-conv-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.msg-new-conv-btn:hover {
  background: var(--color-success-hover, #16a34a);
}

/* New conversation panel */
.msg-new-conv-panel {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
}

.msg-new-contact-item {
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
}

.msg-new-contact-item:hover {
  background: var(--color-bg-hover);
}

.msg-new-contact-item:last-child {
  border-bottom: none;
}

.msg-template-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--color-bg-secondary);
}

.msg-template-card .msg-template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.msg-template-card textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  line-height: var(--leading-normal);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.msg-template-card textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
}

/* Schedule cards */
.sched-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--color-bg-secondary);
}

.sched-card label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.sched-card select,
.sched-card input[type="time"] {
  height: 28px;
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.sched-card select {
  padding-right: var(--space-8);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-2) center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  cursor: pointer;
}

.sched-card select:hover,
.sched-card input[type="time"]:hover {
  border-color: var(--color-text-muted);
}

.sched-card select:focus,
.sched-card input[type="time"]:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .sched-card select:focus,
[data-theme="dark"] .sched-card input[type="time"]:focus {
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .sched-card select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* WebKit time input icon color fix for dark mode */
[data-theme="dark"] .sched-card input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

.msg-variable-tag {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  font-size: var(--text-xs);
  cursor: pointer;
  border: 1px solid var(--color-accent);
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

.msg-variable-tag:hover {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* Stats cards inside messaging */
.msg-stat-card {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: var(--space-3);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.msg-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

.msg-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Markdown Editor & Preview
   ========================================================================== */

/* Toggle bar */
.md-toggle-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.md-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  font-family: var(--font-sans);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.md-toggle-btn:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.md-toggle-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* Split editor layout */
.md-editor-split {
  display: flex;
  gap: 12px;
}

.md-editor-split > * {
  flex: 1;
  min-width: 0;
}

/* Markdown preview */
.md-preview {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-primary);
  overflow-y: auto;
  word-wrap: break-word;
}

.md-preview h1 {
  font-size: 1.5em;
  font-weight: var(--font-bold);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.md-preview h2 {
  font-size: 1.3em;
  font-weight: var(--font-semibold);
  margin: 16px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.md-preview h3 {
  font-size: 1.1em;
  font-weight: var(--font-semibold);
  margin: 12px 0 6px 0;
}

.md-preview p {
  margin: 0 0 8px 0;
}

.md-preview ul,
.md-preview ol {
  margin: 4px 0 8px 0;
  padding-left: 20px;
}

.md-preview li {
  margin-bottom: 2px;
}

.md-preview code {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.9em;
  font-family: var(--font-mono);
}

.md-preview pre {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
  margin: 8px 0;
}

.md-preview pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
}

.md-preview blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 8px 0;
  padding: 4px 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  border-radius: 0 4px 4px 0;
}

.md-preview strong {
  font-weight: var(--font-semibold);
}

.md-preview table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 12px;
}

.md-preview th,
.md-preview td {
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  text-align: left;
}

.md-preview th {
  background: var(--color-bg-secondary);
  font-weight: var(--font-semibold);
}

.md-preview hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 12px 0;
}

/* Template preview toggle button */
.md-tpl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.md-tpl-toggle:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.md-tpl-toggle.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* ==========================================================================
   Notification Bell & History Panel
   ========================================================================== */

.notif-bell-wrapper {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: var(--font-bold, 700);
  line-height: 16px;
  text-align: center;
  color: #ffffff;
  background-color: var(--color-danger);
  border-radius: 8px;
  pointer-events: none;
  animation: notifBadgePop 0.25s ease-out;
}

@keyframes notifBadgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 440px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  overflow: hidden;
  animation: notifSlideDown 0.2s ease-out;
}

@keyframes notifSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.notif-panel-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.notif-mark-read {
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.notif-mark-read:hover {
  background: var(--color-accent-muted);
}

.notif-panel-list {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-panel-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
  cursor: default;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--color-bg-hover);
}

.notif-item.unread {
  background: var(--color-accent-muted);
}

.notif-item.unread:hover {
  background: var(--color-accent-light);
}

.notif-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  margin-top: 2px;
}

.notif-item-icon svg {
  width: 16px;
  height: 16px;
}

.notif-icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.notif-icon-red {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.notif-icon-green {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.notif-icon-gold {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.notif-icon-orange {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
}

.notif-item-message {
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.notif-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.notif-item-time {
  font-size: 11px;
  color: var(--color-text-muted);
}

.notif-item-type {
  font-size: 10px;
  font-weight: var(--font-medium);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.notif-type-reservation_new {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.notif-type-reservation_cancelled {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.notif-type-payment_received {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.notif-type-whatsapp_message {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.notif-type-vip_arrival {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.notif-type-large_group {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
}

/* ==========================================================================
   Timeline Drag & Drop
   ========================================================================== */

.tl-bar-draggable {
  cursor: grab;
}

.tl-bar-draggable:active {
  cursor: grabbing;
}

.tl-bar-dragging {
  opacity: 0.4 !important;
  cursor: grabbing !important;
}

.tl-cell-drop-target {
  transition: background-color 0.12s ease, outline-color 0.12s ease;
}

.tl-cell-drop-hover {
  background-color: rgba(34, 197, 94, 0.15) !important;
  outline: 2px dashed rgba(34, 197, 94, 0.6);
  outline-offset: -2px;
}

[data-theme="dark"] .tl-cell-drop-hover {
  background-color: rgba(34, 197, 94, 0.2) !important;
  outline-color: rgba(34, 197, 94, 0.5);
}

/* ==========================================================================
   Floor Plan Enhancements
   ========================================================================== */

.fp-table-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fp-table-card.fp-upcoming {
  animation: fp-pulse 2s infinite;
}

@keyframes fp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 12px 4px rgba(59, 130, 246, 0.4); }
}

.fp-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fp-reset-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

/* ==========================================================================
   PWA Install Banner
   ========================================================================== */

.pwa-install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--color-accent-muted);
  border-bottom: 1px solid var(--color-accent);
  animation: pwaBannerSlide 0.3s ease-out;
}

@keyframes pwaBannerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-install-banner .pwa-text {
  flex: 1;
  font-size: 13px;
  color: var(--color-text-primary);
}

.pwa-install-banner .pwa-text strong {
  font-weight: var(--font-semibold);
}

.pwa-install-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: var(--font-semibold);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.pwa-install-btn:hover {
  background: var(--color-accent-hover);
}

.pwa-dismiss-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   Notification Triage (settings, filters, quiet hours, snooze)
   ========================================================================== */

.notif-settings {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.notif-settings-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.notif-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-toggle {
  position: relative;
  width: 36px;
  height: 20px;
}

.notif-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notif-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.notif-toggle input:checked + .notif-toggle-slider {
  background: var(--color-accent);
}

.notif-toggle input:checked + .notif-toggle-slider::before {
  transform: translateX(16px);
}

.notif-quiet-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}

.notif-quiet-hours input[type="time"] {
  padding: 2px 6px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 12px;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.notif-snooze-btn {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.notif-snooze-btn:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.notif-snooze-active {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border-color: var(--color-warning);
}

.notif-item-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ==========================================================================
   Bulk Operations
   ========================================================================== */

.bulk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}

.bulk-bar.visible {
  transform: translateY(0);
}

.bulk-bar .bulk-count {
  font-weight: 600;
  margin-right: 8px;
}

.bulk-bar button {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.bulk-bar button:hover {
  background: rgba(255,255,255,0.35);
}

.bulk-bar .bulk-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
}

.resa-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.resa-row.selected {
  background: var(--color-accent-light) !important;
}

/* ==========================================================================
   No-Show Prevention Panel
   ========================================================================== */

.noshow-panel {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.noshow-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.noshow-panel-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.noshow-summary {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.noshow-stat {
  flex: 1;
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.noshow-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

.noshow-stat-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.noshow-high {
  background: #fee2e2;
}

.noshow-high .noshow-stat-value {
  color: #dc2626;
}

.noshow-medium {
  background: #fef3c7;
}

.noshow-medium .noshow-stat-value {
  color: #d97706;
}

.noshow-low {
  background: #dcfce7;
}

.noshow-low .noshow-stat-value {
  color: #16a34a;
}

[data-theme="dark"] .noshow-high {
  background: rgba(220, 38, 38, 0.15);
}

[data-theme="dark"] .noshow-medium {
  background: rgba(217, 119, 6, 0.15);
}

[data-theme="dark"] .noshow-low {
  background: rgba(22, 163, 74, 0.15);
}

.noshow-rate-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.noshow-rate-label {
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.noshow-rate-track {
  flex: 1;
  height: 8px;
  background: var(--color-bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.noshow-rate-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
  background: var(--color-warning);
}

.noshow-rate-fill.rate-low {
  background: var(--color-success);
}

.noshow-rate-fill.rate-medium {
  background: var(--color-warning);
}

.noshow-rate-fill.rate-high {
  background: var(--color-danger);
}

.noshow-rate-value {
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  min-width: 36px;
  text-align: right;
}

.noshow-risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.noshow-risk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
}

.noshow-risk-item:last-child {
  border-bottom: none;
}

.noshow-risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.noshow-risk-dot.high {
  background: #ef4444;
}

.noshow-risk-dot.medium {
  background: #f59e0b;
}

.noshow-risk-dot.low {
  background: #22c55e;
}

.noshow-risk-name {
  flex: 1;
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

.noshow-risk-details {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.noshow-risk-reason {
  color: var(--color-text-secondary);
  font-size: 12px;
  flex: 1;
}

.noshow-risk-score {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.noshow-risk-action {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-family: var(--font-sans);
  font-weight: var(--font-medium);
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.noshow-risk-action:hover {
  opacity: 0.9;
}

.noshow-risk-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.noshow-empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Smart Autocomplete
   ========================================================================== */

.autocomplete-field-wrap {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-primary, #fff);
  border: 1px solid var(--color-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.autocomplete-dropdown.visible {
  display: block;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-light, #f3f4f6);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--color-accent-light, rgba(99,102,241,0.08));
}

.autocomplete-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.autocomplete-item-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
}

.autocomplete-item-detail {
  font-size: 12px;
  color: var(--color-text-secondary, #6b7280);
}

.autocomplete-item-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.autocomplete-item-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--color-accent-light, rgba(99,102,241,0.1));
  color: var(--color-accent);
}

.autocomplete-no-results {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.autocomplete-searching {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==========================================================================
   Queue Widget (floating telephony queue status)
   ========================================================================== */

.queue-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: var(--color-bg-primary);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 900;
  overflow: hidden;
  transition: all 0.3s ease;
}

.queue-widget.collapsed {
  width: auto;
  height: auto;
  border-radius: 28px;
  cursor: pointer;
}

.queue-widget.collapsed .queue-widget-header {
  border-radius: 28px;
  padding: 10px 16px;
}

.queue-widget.collapsed .queue-widget-body {
  display: none;
}

.queue-widget-header {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.queue-widget-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.queue-widget-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.queue-widget-body {
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.queue-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
}

.queue-metric:last-child {
  border-bottom: none;
}

.queue-metric-label {
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.queue-metric-value {
  font-weight: 600;
}

.queue-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}

.queue-agent-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.queue-agent-status.available {
  background: #22c55e;
}

.queue-agent-status.busy {
  background: #ef4444;
}

.queue-agent-status.paused {
  background: #f59e0b;
}

.queue-agent-name {
  flex: 1;
}

.queue-agent-action {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  cursor: pointer;
  color: var(--color-text-secondary);
}

.queue-agent-action:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.queue-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
  margin: 8px 0 4px;
  font-weight: 600;
}

.queue-caller {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}

.queue-caller-wait {
  color: var(--color-warning);
  font-weight: 600;
}

/* ==========================================================================
   Client Segmentation
   ========================================================================== */

.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.seg-card { background: var(--color-bg-primary); border-radius: 10px; padding: 14px; text-align: center; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.seg-card:hover, .seg-card.active { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.seg-card-count { font-size: 28px; font-weight: 700; }
.seg-card-label { font-size: 12px; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.seg-vip { border-color: #f59e0b; }
.seg-vip .seg-card-count { color: #f59e0b; }
.seg-regular { border-color: #22c55e; }
.seg-regular .seg-card-count { color: #22c55e; }
.seg-at-risk { border-color: #ef4444; }
.seg-at-risk .seg-card-count { color: #ef4444; }
.seg-new { border-color: #3b82f6; }
.seg-new .seg-card-count { color: #3b82f6; }
.seg-lost { border-color: #6b7280; }
.seg-lost .seg-card-count { color: #6b7280; }
.seg-occasional { border-color: #8b5cf6; }
.seg-occasional .seg-card-count { color: #8b5cf6; }
.seg-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.seg-badge-vip { background: #fef3c7; color: #d97706; }
.seg-badge-regular { background: #dcfce7; color: #16a34a; }
.seg-badge-at-risk { background: #fee2e2; color: #dc2626; }
.seg-badge-new { background: #dbeafe; color: #2563eb; }
.seg-badge-lost { background: #f3f4f6; color: #6b7280; }
.seg-badge-occasional { background: #ede9fe; color: #7c3aed; }

/* ==========================================================================
   Journey Heatmap / Funnel
   ========================================================================== */

.journey-funnel { margin: 20px 0; }
.journey-stage { display: flex; align-items: center; margin-bottom: 2px; }
.journey-stage-label { width: 120px; font-size: 13px; font-weight: 500; text-align: right; padding-right: 12px; }
.journey-stage-bar { height: 36px; border-radius: 4px; display: flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 600; color: #fff; transition: width 0.5s ease; min-width: 60px; }
.journey-stage-bar.stage-booked { background: #6366f1; }
.journey-stage-bar.stage-confirmed { background: #3b82f6; }
.journey-stage-bar.stage-arrived { background: #22c55e; }
.journey-stage-bar.stage-seated { background: #14b8a6; }
.journey-stage-bar.stage-completed { background: #10b981; }
.journey-dropoff { display: flex; align-items: center; padding: 4px 0 4px 132px; font-size: 12px; color: #ef4444; }
.journey-dropoff-arrow { margin-right: 8px; }
.journey-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.journey-metric { background: var(--color-bg-secondary); border-radius: 10px; padding: 14px; text-align: center; border: 1px solid var(--color-border); }
.journey-metric-value { font-size: 22px; font-weight: 700; color: var(--color-accent); }
.journey-metric-label { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.journey-conversion { text-align: center; margin: 20px 0; }
.journey-conversion-rate { font-size: 48px; font-weight: 800; color: var(--color-accent); }
.journey-conversion-label { font-size: 14px; color: var(--color-text-secondary); }

/* ==========================================================================
   Table Profitability
   ========================================================================== */

.table-profit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.table-profit-card {
  background: var(--color-bg-secondary);
  border-radius: 10px;
  padding: 14px;
  border-left: 4px solid var(--color-accent);
}

.table-profit-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.table-profit-revenue {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

.table-profit-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.table-profit-metric {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.table-profit-metric span:last-child {
  font-weight: 600;
  color: var(--color-text-primary);
}

.table-profit-bar {
  height: 6px;
  background: var(--color-border-light);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.table-profit-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 3px;
  transition: width 0.3s;
}

/* ==========================================================================
   Seasonality Heatmap
   ========================================================================== */

.heatmap-container { overflow-x: auto; margin: 16px 0; }
.heatmap-table { border-collapse: collapse; width: 100%; }
.heatmap-table th { font-size: 11px; padding: 6px 8px; color: var(--color-text-secondary); font-weight: 500; }
.heatmap-table td { padding: 4px; text-align: center; }
.heatmap-cell { width: 36px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; margin: auto; }
.heatmap-0 { background: var(--color-border-light); color: var(--color-text-secondary); }
.heatmap-1 { background: #dbeafe; color: #1e40af; }
.heatmap-2 { background: #93c5fd; color: #1e3a8a; }
.heatmap-3 { background: #3b82f6; color: #fff; }
.heatmap-4 { background: #1d4ed8; color: #fff; }
.heatmap-5 { background: #1e3a8a; color: #fff; }
.seasonality-insights { list-style: none; padding: 0; margin: 16px 0; }
.seasonality-insights li { padding: 8px 12px; margin-bottom: 6px; background: var(--color-accent-light); border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Group Tracker
   ========================================================================== */

.group-tracker {
  margin-bottom: 20px;
}

.group-card {
  background: var(--color-bg-primary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid #f59e0b;
}

.group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.group-card-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-card-size {
  background: #fef3c7;
  color: #d97706;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.group-card-time {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.group-card-countdown {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

.group-checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.group-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 10px;
  background: var(--color-bg-secondary);
  border-radius: 6px;
  cursor: pointer;
}

.group-checklist-item:hover {
  background: var(--color-accent-light);
}

.group-checklist-item.checked {
  color: var(--color-text-secondary);
  text-decoration: line-through;
}

.group-checklist-item.checked .group-check-icon {
  color: #22c55e;
}

.group-check-icon {
  width: 18px;
  height: 18px;
}

.group-card-notes {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--color-bg-secondary);
  border-radius: 6px;
}

.group-alert {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Smart deposit */
.deposit-suggest { background: var(--color-accent-light); border-radius: 8px; padding: 12px; margin: 8px 0; }
.deposit-suggest-amount { font-size: 24px; font-weight: 700; color: var(--color-accent); }
.deposit-suggest-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; }
.deposit-suggest-factors { margin-top: 8px; }
.deposit-factor { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 2px 0; color: var(--color-text-secondary); }
.deposit-apply-btn { margin-top: 8px; width: 100%; padding: 8px; background: var(--color-accent); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; }
.deposit-apply-btn:hover { opacity: 0.9; }

/* VIP portal */
.vip-header-banner { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.vip-header-stats { display: flex; gap: 24px; }
.vip-header-stat { text-align: center; }
.vip-header-stat-value { font-size: 24px; font-weight: 700; }
.vip-header-stat-label { font-size: 12px; opacity: 0.85; }
.vip-today-card { background: var(--color-bg-primary); border-radius: 10px; padding: 14px; margin-bottom: 8px; border-left: 4px solid #f59e0b; display: flex; align-items: center; gap: 12px; }
.vip-today-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.vip-today-info { flex: 1; }
.vip-today-name { font-weight: 600; font-size: 15px; }
.vip-today-detail { font-size: 12px; color: var(--color-text-secondary); }
.vip-today-prefs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.vip-today-pref { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: #fef3c7; color: #92400e; }
.vip-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.vip-client-card { background: var(--color-bg-primary); border-radius: 10px; padding: 14px; cursor: pointer; transition: all 0.2s; border: 1px solid var(--color-border-light); }
.vip-client-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #f59e0b; }

/* Staff shifts */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.staff-card { background: var(--color-bg-primary); border-radius: 10px; padding: 14px; border-left: 4px solid var(--color-accent); display: flex; align-items: center; gap: 12px; }
.staff-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.staff-name { font-weight: 600; font-size: 14px; }
.staff-role { font-size: 12px; color: var(--color-text-secondary); }
.shift-timeline { position: relative; margin: 16px 0; }
.shift-row { display: flex; align-items: center; margin-bottom: 8px; min-height: 36px; }
.shift-row-name { width: 120px; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.shift-row-bars { flex: 1; position: relative; height: 28px; background: var(--color-bg-secondary); border-radius: 4px; }
.shift-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 11px; color: #fff; font-weight: 500; cursor: pointer; overflow: hidden; white-space: nowrap; }
.shift-bar:hover { opacity: 0.9; }
.shift-hours-header { display: flex; margin-left: 120px; margin-bottom: 4px; }
.shift-hour-mark { flex: 1; font-size: 10px; color: var(--color-text-secondary); text-align: center; }

/* Email gateway */
.email-composer { background: var(--color-bg-primary); border-radius: 12px; padding: 16px; }
.email-field { margin-bottom: 12px; }
.email-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.email-field input, .email-field textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 13px; background: var(--color-bg-primary); color: var(--color-text-primary); box-sizing: border-box; }
.email-field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.email-vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.email-var-chip { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--color-accent-light); color: var(--color-accent); cursor: pointer; font-family: monospace; }
.email-var-chip:hover { background: var(--color-accent); color: #fff; }
.email-log-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border-light); font-size: 13px; }
.email-log-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.email-log-status.sent { background: #22c55e; }
.email-log-status.failed { background: #ef4444; }

/* Multi-payment split */
.split-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--color-accent-light); border-radius: 8px; margin-bottom: 16px; }
.split-total-label { font-size: 14px; font-weight: 500; }
.split-total-amount { font-size: 24px; font-weight: 700; color: var(--color-accent); }
.split-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--color-border-light); }
.split-row-num { width: 24px; height: 24px; border-radius: 50%; background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.split-row-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr 100px; gap: 8px; }
.split-row-fields input { padding: 6px 10px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 13px; background: var(--color-bg-primary); color: var(--color-text-primary); }
.split-row-remove { background: none; border: none; color: #ef4444; cursor: pointer; padding: 4px; font-size: 16px; }
.split-add-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px dashed var(--color-border); border-radius: 8px; background: none; color: var(--color-text-secondary); cursor: pointer; font-size: 13px; margin-top: 8px; width: 100%; justify-content: center; }
.split-add-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.split-equal-btn { padding: 6px 14px; border: 1px solid var(--color-accent); border-radius: 6px; background: none; color: var(--color-accent); cursor: pointer; font-size: 12px; }
.split-equal-btn:hover { background: var(--color-accent); color: #fff; }
.split-remaining { font-size: 13px; color: var(--color-text-secondary); text-align: right; margin-top: 4px; }
.split-remaining.over { color: #ef4444; }
