/* Private Dinners — Standalone CSS */
@import url('../booking-links/booking-links.css');
@import url('../shared/res-detail-panel-theme.css');

/* ===== SUB-TABS ===== */
.sub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--spacing-md);
}

.sub-tab {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.15s ease;
}

.sub-tab:hover {
  color: var(--color-primary);
  background: #f0f5ff;
}

.sub-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-bg-page);
  background: var(--color-bg-page);
}

.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-header);
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group-inline { margin: 0; }
.filter-group-inline input { min-width: 220px; }

/* ===== STAT CARDS ===== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: #e0e7ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-icon .material-icons { font-size: 24px; color: var(--color-primary); }
.stat-icon.revenue { background: #d1fae5; }
.stat-icon.revenue .material-icons { color: #059669; }

.stat-value {
  font-size: 28px; font-weight: 800;
  color: var(--color-header); line-height: 1.1;
}

.stat-label {
  font-size: 12px; font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  display: flex; gap: var(--spacing-md);
  align-items: flex-end; flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-group { min-width: 140px; }
.filter-group .form-label { margin-bottom: 4px; }
.filter-group .form-input { margin-bottom: 0; }

/* ===== DATA TABLE ===== */
.data-table-wrap {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table th {
  background: var(--color-header); color: white;
  padding: 10px 14px; text-align: left;
  font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: #eef2ff; }

.data-table-compact { font-size: 13px; }
.data-table-compact th { font-size: 11px; padding: 6px 10px; }
.data-table-compact td { padding: 8px 10px; }

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-full); font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
}

.status-new { background: #e0e7ff; color: #3730a3; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-completed { background: #dbeafe; color: #1e40af; }
.status-used { background: #dbeafe; color: #1e40af; }
.status-canceled, .status-cancelled { background: #fee2e2; color: #991b1b; }
.status-refunded { background: #fce7f3; color: #9d174d; }
.status-no_show { background: #fee2e2; color: #991b1b; }
.status-requested { background: #FEF3C7; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-denied, .status-declined { background: #fee2e2; color: #991b1b; }
.status-info_needed { background: #DBEAFE; color: #1E40AF; }
.status-scheduled { background: #dbeafe; color: #1e40af; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 13px; color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

.pagination-info { font-weight: 500; }
.pagination-btns { display: flex; gap: var(--spacing-sm); }

.pagination-btns button {
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--color-text-secondary);
}

.pagination-btns button:hover:not(:disabled) {
  background: var(--color-primary); color: white; border-color: var(--color-primary);
}

.pagination-btns button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== FORM STYLES ===== */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md); margin-bottom: var(--spacing-md);
}

.form-row-full { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; }

.form-group label {
  font-size: 12px; font-weight: 600; color: var(--color-text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px; border: 1px solid var(--color-border-input);
  border-radius: var(--radius-sm); font-size: 14px;
  font-family: var(--font-primary); color: var(--color-text-primary);
  background: var(--color-bg-input); transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-group textarea { min-height: 80px; resize: vertical; }

/* Optgroup styling */
.form-group select optgroup {
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--color-text-secondary, #6b7280);
}
.form-group select optgroup option {
  font-weight: 400; font-size: 13px; text-transform: none;
  color: var(--color-text-primary, #1f2937);
}

/* ===== DETAIL VIEW ===== */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-md); }
.detail-field { margin-bottom: var(--spacing-xs); }
.detail-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-text-secondary); margin-bottom: 2px;
}
.detail-value { font-size: 14px; color: var(--color-text-primary); font-weight: 500; }

.detail-section { margin-top: var(--spacing-lg); padding-top: var(--spacing-lg); border-top: 1px solid var(--color-border); }
.detail-section-title { font-size: 14px; font-weight: 700; color: var(--color-header); margin-bottom: var(--spacing-md); }

/* ===== NOTES ===== */
.notes-list { display: flex; flex-direction: column; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }
.note-item { background: var(--color-bg-page); padding: var(--spacing-sm) var(--spacing-md); border-radius: var(--radius-sm); font-size: 13px; }
.note-meta { font-size: 11px; color: var(--color-text-secondary); margin-bottom: 4px; }
.note-text { color: var(--color-text-primary); }
.note-form { display: flex; gap: var(--spacing-sm); }
.note-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--color-border-input); border-radius: var(--radius-sm); font-size: 13px; }

/* ===== ACTION BUTTONS ===== */
.action-btns { display: flex; gap: 4px; }
.action-btn {
  width: 28px; height: 28px; border: 1px solid var(--color-border);
  background: var(--color-bg-card); border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.action-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.action-btn .material-icons { font-size: 16px; }

/* ===== PRICE / TOAST / EMPTY ===== */
.price { font-weight: 600; color: var(--color-header); }
.price-sm { font-size: 12px; color: var(--color-text-secondary); }

.toast {
  position: fixed; bottom: 24px; right: 24px; padding: 12px 20px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  z-index: 1000; animation: slideIn 0.3s ease;
}
.toast.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.toast.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.toast.info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.empty-state { padding: var(--spacing-xl); text-align: center; color: var(--color-text-secondary); font-size: 14px; }
.empty-state .material-icons { font-size: 48px; color: var(--color-text-light); margin-bottom: var(--spacing-sm); display: block; }

/* ===== DINNER DETAIL MODAL ===== */
.dd-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.dd-header-left h2 { font-size: 22px; font-weight: 700; color: var(--color-header); margin: 0 0 6px 0; line-height: 1.2; }
.dd-contact { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--color-text-secondary); }
.dd-contact span { display: flex; align-items: center; gap: 6px; }
.dd-contact .material-icons { font-size: 15px; color: var(--color-text-light); }
.dd-header-right { text-align: right; flex-shrink: 0; }
.dd-received-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); margin-bottom: 2px; }
.dd-received-date { font-size: 13px; font-weight: 700; color: var(--color-header); }
.dd-conf { display: inline-block; margin-top: 8px; padding: 4px 12px; background: var(--color-header); color: white; font-size: 12px; font-weight: 700; border-radius: var(--radius-sm); letter-spacing: 0.03em; }

.dd-status-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f0f5ff; border-radius: var(--radius-md); margin-bottom: 16px; }
.dd-status-row--split { flex-wrap: wrap; gap: 8px; }
.dd-status-right { flex-shrink: 0; margin-left: auto; }
.dd-status-left { display: flex; align-items: center; gap: 16px; }

.dd-datetime { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.dd-datetime-item { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--color-header); }
.dd-datetime-item .material-icons { font-size: 22px; color: var(--color-text-secondary); }

.dd-guests-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dd-guest-card { border-top: 2px solid var(--color-border); padding-top: 12px; }
.dd-guest-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); margin-bottom: 2px; }
.dd-guest-name-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.dd-guest-name { font-size: 16px; font-weight: 700; color: var(--color-header); }
.dd-guest-price { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }

.dd-course { margin-bottom: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.dd-course-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); }
.dd-course-value { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.dd-course-value .menu-tag { font-weight: 400; font-size: 12px; color: var(--color-text-secondary); }

.dd-wine-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 2px solid var(--color-border); margin-bottom: 16px; }
.dd-wine-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); display: inline; margin-right: 8px; }
.dd-wine-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.dd-wine-price { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }

.dd-financials { border-top: 2px solid var(--color-border); padding-top: 12px; margin-bottom: 16px; }
.dd-fin-table { margin-left: auto; width: auto; border-collapse: collapse; }
.dd-fin-table td { padding: 3px 0; font-size: 14px; }
.dd-fin-table td:first-child { text-align: right; padding-right: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); vertical-align: middle; }
.dd-fin-table td:last-child { text-align: right; font-weight: 700; color: var(--color-header); min-width: 80px; }
.dd-fin-table .dd-fin-divider td { padding-top: 6px; border-top: 1px solid var(--color-border); }
.dd-fin-table .dd-fin-total td:last-child { font-size: 16px; }
.dd-fin-table .dd-fin-paid td:last-child { color: #059669; }
.dd-fin-table .dd-fin-balance td { padding-top: 6px; border-top: 1px solid var(--color-border); }
.dd-fin-table .dd-fin-balance td:last-child { font-size: 15px; }
.dd-fin-balance-owed td:last-child { color: #e53e3e !important; }

.dd-edit-link { background: none; border: none; color: var(--color-text-secondary); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.dd-edit-link:hover { color: var(--color-primary); }

/* Edit mode form controls */
.dd-edit-select {
  padding: 6px 10px; border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-primary);
  color: var(--color-text-primary); background: var(--color-bg-input, #fff);
  width: 100%; transition: border-color 0.15s ease;
}
.dd-edit-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.1); }

.dd-edit-input {
  padding: 6px 10px; border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-primary);
  color: var(--color-text-primary); background: var(--color-bg-input, #fff);
  width: 100%; transition: border-color 0.15s ease;
}
.dd-edit-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.1); }

.dd-edit-textarea {
  padding: 8px 10px; border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-primary);
  color: var(--color-text-primary); background: var(--color-bg-input, #fff);
  width: 100%; resize: vertical; min-height: 50px; transition: border-color 0.15s ease;
}
.dd-edit-textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.1); }

.dd-datetime-item .dd-edit-input,
.dd-datetime-item .dd-edit-select { width: auto; font-size: 14px; font-weight: 600; }
.dd-status-row .dd-edit-select { width: auto; min-width: 160px; font-weight: 600; text-transform: capitalize; }
.dd-wine-row .dd-edit-select { width: auto; min-width: 300px; }

.dd-edit-select optgroup { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-secondary, #6b7280); padding-top: 4px; }
.dd-edit-select optgroup option { font-weight: 400; font-size: 13px; text-transform: none; letter-spacing: normal; color: var(--color-text-primary, #1f2937); padding: 4px 8px; }

.dd-availability-warning { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: #92400e; margin-bottom: 16px; }
.dd-availability-warning .material-icons { font-size: 18px; color: #f59e0b; }

/* ===== DINNER SECTIONS (Grouped View) ===== */
.dn-section { margin-bottom: 24px; }
.dn-section-header { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-md); margin-bottom: 8px; font-size: 14px; }
.dn-section-header h4 { margin: 0; font-size: 15px; font-weight: 700; }
.dn-section-header .material-icons { font-size: 20px; }
.dn-section-count { background: rgba(0,0,0,0.12); color: inherit; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; min-width: 22px; text-align: center; }

.dn-section-new { background: #eff6ff; color: #1e40af; }
.dn-section-new .material-icons { color: #3b82f6; }
.dn-section-pending { background: #fffbeb; color: #92400e; }
.dn-section-pending .material-icons { color: #f59e0b; }
.dn-section-confirmed { background: #ecfdf5; color: #065f46; }
.dn-section-confirmed .material-icons { color: #10b981; }

.dn-section-archive { background: #f5f5f5; color: #6b7280; cursor: pointer; user-select: none; transition: background 0.15s; }
.dn-section-archive:hover { background: #ebebeb; }
.dn-section-archive .material-icons { color: #9ca3af; }
.dn-archive-chevron { margin-left: auto; font-size: 22px !important; transition: transform 0.2s; }
.dn-archive-body { padding-top: 4px; }
.dn-section-empty { padding: 20px; text-align: center; color: var(--color-text-secondary); font-size: 13px; font-style: italic; }

/* ===== ACTIVE DINNER CARDS (new / pending / confirmed) ===== */
#subtab-reservations #dinners-list.data-table-wrap {
  padding: 12px 16px 20px;
}

.dn-active-wrap {
  margin-bottom: 24px;
}

.dn-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 16px;
  background: #0f2942;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15, 41, 66, 0.15);
}

.dn-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dn-filter-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dn-filter-pill--active {
  background: #fff;
  color: #0f2942;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dn-filter-dot {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.dn-filter-dot--all {
  background: #475569;
}

.dn-filter-dot--new {
  background: #2563eb;
}

.dn-filter-dot--awaiting {
  background: #f59e0b;
}

.dn-filter-dot--pending {
  background: #64748b;
}

.dn-filter-dot--confirmed {
  background: #059669;
}

.dn-filter-pill--active .dn-filter-dot {
  color: #fff;
}

.dn-filter-label {
  line-height: 1;
}

.dn-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.dn-cards-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.dn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 14px 0;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 320px;
}

.dn-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dn-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.dn-card-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 8px;
}

.dn-card-badge--new {
  background: #2563eb;
}

.dn-card-badge--awaiting {
  background: #f59e0b;
}

.dn-card-badge--pending {
  background: #64748b;
}

.dn-card-badge--confirmed {
  background: #059669;
}

.dn-card-from-booking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
}

.dn-card-received {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.35;
  margin-bottom: 10px;
  max-width: 100%;
}

.dn-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-header);
  line-height: 1.25;
  margin-bottom: 6px;
}

.dn-card-party {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.dn-card-date-badge {
  background: #0f2942;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.dn-card-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-header);
  line-height: 1.2;
  margin-bottom: 6px;
}

.dn-card-guest-id {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  word-break: break-all;
  max-width: 100%;
}

.dn-card-footer {
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
  margin-top: auto;
  padding: 10px 14px;
  background: #0f2942;
  color: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.dn-card-footer-menu {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dn-card-footer-right {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.dn-card-paid {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6ee7b7;
}

.dn-card-paid-icon {
  font-size: 14px !important;
  color: #34d399 !important;
}

/* ===== DINNER CALENDAR ===== */
.dn-calendar { background: var(--color-bg-card, #fff); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.dn-cal-header { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--color-header); margin-bottom: 16px; }
.dn-cal-header .material-icons { font-size: 22px; color: var(--color-primary); }
.dn-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dn-cal-month-name { font-size: 14px; font-weight: 700; color: var(--color-header); text-align: center; margin-bottom: 8px; }
.dn-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dn-cal-dow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); text-align: center; padding: 4px 0; }
.dn-cal-day { position: relative; text-align: center; padding: 6px 2px; border-radius: var(--radius-sm); min-height: 34px; }
.dn-cal-empty { visibility: hidden; }
.dn-cal-num { font-size: 13px; color: var(--color-text-primary); }
.dn-cal-today { background: #eff6ff; }
.dn-cal-today .dn-cal-num { font-weight: 700; color: var(--color-primary); }
.dn-cal-has-event { cursor: pointer; background: #ecfdf5; transition: background 0.15s; }
.dn-cal-has-event:hover { background: #d1fae5; }
.dn-cal-dot { display: block; font-size: 9px; font-weight: 700; color: #059669; margin-top: 1px; }
.dn-cal-detail { margin-top: 12px; }
.dn-cal-detail-header { font-size: 14px; font-weight: 700; color: var(--color-header); padding: 8px 0 6px; border-bottom: 1px solid var(--color-border); margin-bottom: 6px; }
.dn-cal-event { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; transition: background 0.15s; }
.dn-cal-event:hover { background: #f0f5ff; }
.dn-cal-event strong { color: var(--color-header); min-width: 60px; }
.dn-cal-event .price-sm { margin-left: auto; color: var(--color-text-secondary); }

/* ===== GUEST LOOKUP ===== */
.guest-lookup { position: relative; margin-bottom: 8px; }
.guest-lookup-search { position: relative; }
.guest-lookup-search label { display: block; font-size: 12px; font-weight: 600; color: var(--color-text-secondary); margin-bottom: 4px; }
.gl-input { width: 100%; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 13px; background: var(--color-bg); transition: border-color 0.15s; }
.gl-input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); }
.gl-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg-card, #fff); border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); max-height: 280px; overflow-y: auto; z-index: 100; margin-top: 4px; }
.gl-section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-secondary); padding: 8px 12px 4px; border-top: 1px solid var(--color-border); }
.gl-section-label:first-child { border-top: none; }
.gl-result-item { padding: 8px 12px; cursor: pointer; transition: background 0.1s; }
.gl-result-item:hover { background: var(--color-bg-hover, #f5f7fa); }
.gl-result-main { font-size: 13px; font-weight: 600; color: var(--color-text); }
.gl-result-sub { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }
.gl-empty { padding: 16px; text-align: center; color: var(--color-text-secondary); font-size: 12px; }
.gl-selected-card { background: var(--color-bg-hover, #f0f7ff); border: 1px solid var(--color-primary, #3b82f6); border-radius: 8px; padding: 10px 14px; }
.gl-selected-title { font-size: 14px; font-weight: 600; color: var(--color-text); }
.gl-selected-sub { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.gl-guest-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.gl-guest-chip { display: inline-block; background: var(--color-bg-card, #fff); border: 1px solid var(--color-border); border-radius: 12px; padding: 2px 8px; font-size: 11px; color: var(--color-text-secondary); }

.badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-sm { font-size: 9px; padding: 0 4px; }

.gl-actions { margin-top: 4px; }
.btn-link { background: none; border: none; color: var(--color-primary); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.btn-link:hover { text-decoration: underline; }
.btn-xs { font-size: 11px; padding: 2px 6px; }
.gl-manual .form-row { margin-bottom: 6px; }
.gl-manual .form-group label { font-size: 11px; }
.gl-manual input { width: 100%; padding: 6px 10px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 12px; }

/* ===== HEADER: LINK BOOKING (gradient panel) ===== */
.dd-header-booking-slot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.dd-header-booking-slot--nolink {
  flex-direction: column;
  align-items: flex-end;
}

.dd-header-link-booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.dd-header-link-booking-btn .material-icons {
  font-size: 17px;
  opacity: 0.9;
}

.dd-header-link-booking-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.85);
}

.dd-header-booking-link {
  text-align: right;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  max-width: min(100%, 360px);
  padding: 2px 0;
}

.dd-header-booking-link:hover .dd-header-bk-id,
.dd-header-booking-link:hover .dd-header-bk-meta {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dd-header-bk-id {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
  line-height: 1.25;
}

.dd-header-bk-meta {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.dd-header-bk-unlink {
  flex-shrink: 0;
  align-self: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-header-bk-unlink:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dd-header-bk-unlink .material-icons {
  font-size: 18px;
}

.dd-header-booking-search-wrap {
  position: relative;
  width: min(100%, 320px);
  margin-top: 8px;
}

.dd-header-booking-input {
  width: 100%;
  font-size: 13px;
}

.dd-header-booking-results {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: min(320px, 85vw);
  max-height: 240px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  z-index: 30;
}

/* ===== BOOKING PILL ===== */
.dd-booking-pill { display: flex; align-items: center; gap: 16px; background: var(--color-primary); color: white; border-radius: var(--radius-full); padding: 10px 12px 10px 20px; margin-bottom: 16px; font-size: 13px; }
.dd-booking-pill-minimal { gap: 10px; padding: 8px 12px 8px 20px; }
.dd-booking-pill-nolink { background: var(--color-surface); border: 1px dashed var(--color-border); color: var(--color-text); flex-wrap: wrap; padding: 10px 16px; }
.dd-bk-guest { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dd-bk-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-bk-id { font-size: 12px; opacity: 0.85; font-weight: 600; }
.dd-bk-dates { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dd-bk-dates .material-icons { font-size: 16px; opacity: 0.7; }
.dd-bk-room { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.dd-bk-room .material-icons { font-size: 16px; opacity: 0.7; }
.dd-bk-room strong { font-size: 16px; font-weight: 800; }
.dd-bk-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; padding: 4px 10px; border-radius: var(--radius-sm); white-space: nowrap; text-transform: uppercase; margin-left: auto; }
.dd-bk-badge-on { background: #34d399; color: #064e3b; }
.dd-bk-badge-off { background: #fbbf24; color: #78350f; }
.dd-booking-unlink { background: rgba(255,255,255,0.2); border: none; color: white; cursor: pointer; border-radius: 4px; padding: 4px; display: flex; align-items: center; flex-shrink: 0; }
.dd-booking-unlink:hover { background: rgba(255,255,255,0.35); }

#dd-booking-search-wrap { display: flex; flex-direction: column; gap: 4px; }
#dd-booking-search-wrap .form-input { width: 100%; }
.dd-booking-search-results { max-height: 200px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: 6px; background: white; }
.dd-booking-result { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--color-border); }
.dd-booking-result:last-child { border-bottom: none; }
.dd-booking-result:hover { background: var(--color-hover); }
.dd-booking-result-main { font-size: 13px; font-weight: 600; }
.dd-booking-result-meta { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.dd-booking-result-empty { padding: 12px; text-align: center; color: var(--color-text-secondary); font-size: 12px; }

/* ===== DISCOUNT UI ===== */
.dd-discount-applied { display: flex; align-items: center; gap: 8px; background: #dcfce7; color: #166534; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.dd-discount-applied .material-icons { font-size: 16px; }
.dd-discount-amount { margin-left: auto; font-size: 14px; }
.dd-discount-remove { background: none; border: none; color: #166534; cursor: pointer; padding: 2px; display: flex; opacity: 0.6; }
.dd-discount-remove:hover { opacity: 1; }
.dd-discount-input { display: flex; align-items: center; gap: 8px; }
.dd-fin-discount td { color: #166534; font-weight: 600; }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; pointer-events: none; }
.toggle-switch::after { display: none; }
.toggle-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 20px; transition: 0.2s; }
.toggle-slider:before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; bottom: 2px; background: white; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle-switch input:checked + .toggle-slider { background: var(--color-primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); }

/* ===== MENU MANAGEMENT ===== */
.mm-menu-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.mm-menu-card.mm-expanded { border-color: var(--color-primary); }
.mm-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; user-select: none; }
.mm-menu-header:hover { background: var(--color-hover); }
.mm-menu-info { display: flex; align-items: center; gap: 10px; }
.mm-menu-name { font-weight: 600; font-size: 14px; }
.mm-menu-price { font-size: 13px; color: var(--color-text-secondary); }
.mm-menu-actions { display: flex; align-items: center; gap: 10px; }
.mm-expand-icon { font-size: 20px; color: var(--color-text-secondary); transition: transform 0.2s; }
.mm-expanded .mm-expand-icon { transform: rotate(180deg); }
.mm-menu-body { padding: 0 16px 16px; border-top: 1px solid var(--color-border); }
.mm-loading { text-align: center; padding: 12px; color: var(--color-text-secondary); font-size: 13px; }
.mm-course { margin-top: 12px; }
.mm-course-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mm-course-name { font-weight: 600; font-size: 13px; }
.mm-items { padding-left: 16px; }
.mm-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.mm-item-desc { color: var(--color-text-secondary); font-size: 11px; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 2px; color: var(--color-text-secondary); display: flex; align-items: center; }
.btn-icon:hover { color: var(--color-primary); }
.btn-icon .material-icons { font-size: 16px; }

/* ===== DATE SCHEDULING STRIP ===== */
.mm-schedule-strip { display: flex; overflow-x: auto; gap: 6px; padding: 8px 0; }
.mm-date-cell { min-width: 80px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 8px; text-align: center; cursor: pointer; background: var(--color-surface); flex-shrink: 0; transition: all 0.15s; }
.mm-date-cell:hover { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.05); }
.mm-date-today { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.mm-date-blocked { background: #fef2f2; border-color: #fca5a5; }
.mm-date-blocked:hover { background: #fee2e2; }
.mm-date-day { font-size: 11px; color: var(--color-text-secondary); text-transform: uppercase; font-weight: 600; }
.mm-date-num { font-size: 13px; font-weight: 700; margin: 2px 0; }
.mm-date-badge { font-size: 10px; color: var(--color-text-secondary); background: var(--color-hover); border-radius: 4px; padding: 1px 5px; display: inline-block; }
.mm-date-badge-blocked { background: #fca5a5; color: #991b1b; }
.mm-sd-menu-check { display: block; padding: 4px 0; font-size: 13px; cursor: pointer; }
.mm-sd-menu-check input { margin-right: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 22px; }
  .data-table-wrap { overflow-x: auto; }
  .svc-modal-panel { max-width: calc(100vw - 32px); }
  .svc-modal-overlay { padding: 20px 8px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; min-width: unset; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 640px) {
  .dn-cal-months { grid-template-columns: 1fr; }
  .section-header-actions { flex-wrap: wrap; }
  .filter-group-inline input { min-width: 160px; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .dd-guests-row { grid-template-columns: 1fr; }
  .dd-datetime { flex-direction: column; gap: 8px; }
  .dd-header { flex-direction: column; gap: 8px; }
  .dd-header-right { text-align: left; }
}

/* =========================================================================
   WI-528 — Dinner time-slot × date grid
   11 half-hour rows (5:00-10:00 PM) down, dates across, scrollable.
   Each dinner is 1 hour so a chip spans 2 row-cells. Cells overlapped by
   a neighboring dinner are blocked (display only, not clickable).
   ========================================================================= */
.dn-grid-month-label {
  font-size: 13px;
  color: var(--color-text-muted, #64748b);
  font-weight: 500;
  margin-left: 12px;
}
.dn-grid-wrap {
  position: relative;
  background: var(--color-bg-card, #fff);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dn-grid-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}
.dn-grid {
  --dn-cell-w: 84px;
  --dn-row-h: 28px;
  --dn-col-w: 96px;
  --dn-head-h: 76px;
  position: relative;
  display: grid;
  grid-template-columns: var(--dn-col-w) repeat(var(--dn-day-count, 60), var(--dn-cell-w));
  grid-template-rows: var(--dn-head-h);
  grid-auto-rows: var(--dn-row-h);
  width: max-content;
  font-size: 12px;
  color: var(--color-text, #1e293b);
}
.dn-grid-corner {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #f8fafc;
  border-right: 2px solid #cbd5e1;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 8px 8px;
  font-weight: 700;
  color: var(--color-header, #1a365d);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.dn-grid-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 18px 2px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  text-align: center;
  user-select: none;
  line-height: 1;
}
.dn-grid-day-head .dn-grid-day-dow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted, #64748b);
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.dn-grid-day-head .dn-grid-day-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-header, #1a365d);
  line-height: 1.1;
}
.dn-grid-day-head .dn-grid-day-mon {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.dn-grid-day-head--weekend { background: #f1f5f9; }
.dn-grid-day-head--today { background: #eff6ff; }
.dn-grid-day-head--today .dn-grid-day-num { color: #2563eb; }
.dn-grid-day-head--today::after {
  content: 'Today';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #2563eb;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dn-grid-slot-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f8fafc;
  border-right: 2px solid #cbd5e1;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-header, #1a365d);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.dn-grid-slot-cell--half {
  font-weight: 500;
  color: #64748b;
  background: #fafbfc;
  font-size: 11px;
}

.dn-grid-day-cell {
  position: relative;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.1s ease;
}
.dn-grid-day-cell:hover { background: #f1f5f9; }
.dn-grid-day-cell--weekend { background: #f8fafc; }
.dn-grid-day-cell--today { background: #eff6ff; box-shadow: inset 2px 0 0 #2563eb; }
.dn-grid-day-cell--past { background: repeating-linear-gradient(45deg,#f8fafc,#f8fafc 4px,#f1f5f9 4px,#f1f5f9 8px); }
.dn-grid-day-cell--blocked {
  cursor: not-allowed;
  background: repeating-linear-gradient(45deg,rgba(203,213,225,0.4),rgba(203,213,225,0.4) 4px,rgba(148,163,184,0.4) 4px,rgba(148,163,184,0.4) 8px);
}
.dn-grid-day-cell--blocked:hover { background: repeating-linear-gradient(45deg,rgba(203,213,225,0.4),rgba(203,213,225,0.4) 4px,rgba(148,163,184,0.4) 4px,rgba(148,163,184,0.4) 8px); }

.dn-grid-bar {
  position: relative;
  margin: 2px 3px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.dn-grid-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 5;
}
.dn-grid-bar-name {
  font-weight: 700;
  font-size: 12px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.dn-grid-bar-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.9;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.dn-grid-bar--paid {
  background: #2563eb;
  color: #fff;
  border: 1px solid #1d4ed8;
}
.dn-grid-bar--baldue {
  background: #2563eb;
  color: #fff;
  border: 1px solid #1d4ed8;
  box-shadow: inset -4px 0 0 #f59e0b;
}
.dn-grid-bar--awaiting {
  background: #059669;
  color: #fff;
  border: 1px solid #047857;
}
.dn-grid-bar--pending {
  background: repeating-linear-gradient(45deg,#fef3c7,#fef3c7 6px,#fde68a 6px,#fde68a 12px);
  color: #92400e;
  border: 1.5px dashed #d97706;
}
.dn-grid-bar--request {
  background: repeating-linear-gradient(45deg,#ffedd5,#ffedd5 6px,#fed7aa 6px,#fed7aa 12px);
  color: #9a3412;
  border: 1.5px dashed #ea580c;
}

.dn-grid-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 11px;
  color: var(--color-text-muted, #64748b);
}
.dn-grid-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dn-grid-legend-swatch { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.dn-grid-legend-swatch--paid { background: #2563eb; border: 1px solid #1d4ed8; }
.dn-grid-legend-swatch--baldue { background: #2563eb; border: 1px solid #1d4ed8; box-shadow: inset -4px 0 0 #f59e0b; }
.dn-grid-legend-swatch--awaiting { background: #059669; border: 1px solid #047857; }
.dn-grid-legend-swatch--pending { background: repeating-linear-gradient(45deg,#fef3c7,#fef3c7 4px,#fde68a 4px,#fde68a 8px); border: 1.5px dashed #d97706; }
.dn-grid-legend-swatch--request { background: repeating-linear-gradient(45deg,#ffedd5,#ffedd5 4px,#fed7aa 4px,#fed7aa 8px); border: 1.5px dashed #ea580c; }

.dn-grid-today-wrap { position: relative; display: inline-block; }
.dn-grid-jump-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  left: 0;
  bottom: 0;
}
.dn-grid-jump-cal.flatpickr-calendar { z-index: 60; }

@media (max-width: 768px) {
  .dn-grid { --dn-cell-w: 64px; --dn-col-w: 80px; }
}
