/* Day Passes — Standalone CSS */
@import url('../booking-links/booking-links.css');

/* ===== PAGE TITLE ROW ===== */
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  font-size: 18px;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.search-input {
  padding: 7px 12px 7px 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-primary);
  width: 200px;
  background: var(--color-bg-card);
  transition: border-color 0.15s ease, width 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
  width: 260px;
}

/* ===== SECTION HEADER (legacy — keep for compat) ===== */
.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);
}

/* ===== DASHBOARD 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;
}

/* ===== DP SECTIONS ===== */
.dp-section {
  margin-bottom: var(--spacing-lg);
}

.dp-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.dp-section-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-header);
  margin: 0;
}

.dp-section-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.dp-section-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-left: 2px;
}

.dp-section-subtitle {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-left: auto;
  font-style: italic;
}

.dp-section-chevron {
  font-size: 20px;
  color: var(--color-text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dp-section-header.collapsible {
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-md);
}

.dp-section-header.collapsible:hover {
  background: #f8fafc;
}

/* When section is expanded, JS adds .expanded class */
.dp-section-header.collapsible.expanded {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dp-section-body {
  background: var(--color-bg-card);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dp-section-body.collapsed {
  display: none;
}

/* ===== 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 tr.cal-highlight td {
  background: #fef3c7;
  transition: background 0.3s ease;
}

/* ===== 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: #f3f4f6; color: #6b7280; }
.status-refunded { background: #ede9fe; color: #6d28d9; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-declined, .status-denied { background: #fee2e2; color: #991b1b; }
.status-scheduled { background: #dbeafe; color: #1e40af; }
.status-received { background: #dbeafe; color: #1e40af; }
.status-in_progress { background: #fef3c7; color: #92400e; }
.status-redeemed { background: #ccfbf1; color: #0f766e; }

/* ===== 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;
}

/* ===== CALENDAR ===== */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  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;
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}

.cal-nav-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.cal-today-btn {
  width: auto;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.cal-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-header);
  margin: 0 8px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  gap: 4px;
}

.cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  padding: 8px 0;
}

.cal-day {
  min-height: 80px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--color-bg-card);
  position: relative;
  overflow: hidden;
}

.cal-day:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.cal-day-empty {
  background: transparent;
  border: none;
  cursor: default;
  min-height: 0;
}

.cal-day-empty:hover {
  border-color: transparent;
  box-shadow: none;
}

.cal-day-today {
  border-color: var(--color-primary);
  background: #eef2ff;
}

.cal-day-has-passes {
  background: #fefce8;
}

.cal-day-today.cal-day-has-passes {
  background: #ecfdf5;
}

.cal-day-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.cal-day-today .cal-day-num {
  color: var(--color-primary);
  font-weight: 800;
}

.cal-day-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-header);
}

.cal-day-dots {
  display: flex;
  gap: 3px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.cal-day-names {
  font-size: 10px;
  color: var(--color-text-secondary);
  margin-top: 3px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

body.modal-open { overflow: hidden; }

.modal {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

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

.modal-close {
  width: 32px; height: 32px;
  border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--color-bg-page);
  color: var(--color-danger);
}

.modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-approve { background: #059669; color: #fff; border: none; font-weight: 600; }
.btn-approve:hover { background: #047857; }
.btn-decline { background: #dc2626; color: #fff; border: none; font-weight: 600; }
.btn-decline:hover { background: #b91c1c; }

/* ===== 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; }

/* ===== 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);
}

/* ===== 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 FORMATTING ===== */
.price { font-weight: 600; color: var(--color-header); }
.price-sm { font-size: 12px; color: var(--color-text-secondary); }

/* ===== TOAST ===== */
.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 ===== */
.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;
}

/* ===== 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); }

.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; }

.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; }
.dd-bk-badge-on { background: #34d399; color: #064e3b; }
.dd-bk-badge-off { background: #fbbf24; color: #78350f; }

/* ===== 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;
}

/* ===== STATUS MANAGEMENT SECTION ===== */
.status-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.status-section .field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary, #666);
  margin-bottom: 8px;
}

.status-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.status-dropdown {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-primary, 'Inter', sans-serif);
  color: var(--color-text-primary, #1a202c);
  background: var(--color-bg-input, #fff);
  cursor: pointer;
}

.status-dropdown:focus {
  outline: none;
  border-color: var(--color-primary, #2b6cb0);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

/* ===== CRUISE INFO ===== */
.cruise-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.cruise-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
}

.cruise-badge-sm {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
  white-space: nowrap;
}

.cruise-line-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cruise-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ===== NOTES ===== */
.notes-display {
  font-size: 14px;
  color: var(--color-text-primary, #1a202c);
  white-space: pre-wrap;
  line-height: 1.5;
}

.note-add-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.note-add-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-primary, 'Inter', sans-serif);
}

.note-add-input:focus {
  outline: none;
  border-color: var(--color-primary, #2b6cb0);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.1);
}

.text-muted {
  color: var(--color-text-secondary, #999);
  font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 22px; }
  .data-table-wrap { overflow-x: auto; }
  .dp-section-body { overflow-x: auto; }
  .modal { max-width: calc(100vw - 32px); }
  .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; }
  .page-title-row { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; flex-wrap: wrap; }
  .search-input { width: 100%; }
  .search-input:focus { width: 100%; }

  .cal-grid { gap: 2px; padding: 4px; }
  .cal-day { min-height: 60px; padding: 4px; }
  .cal-day-num { font-size: 11px; }
  .cal-day-count { font-size: 10px; }
  .cal-day-names { display: none; }
  .cal-nav-title { font-size: 14px; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .cal-day { min-height: 48px; }
  .cal-day-header { font-size: 10px; }
}

/* =========================================================================
   WI-532 — Day Pass condensed cards (replaces table list)
   Compact card grid: last name big, visit date, type × qty, cruise pill,
   status pill top-right, date received small bottom-right.
   ========================================================================= */
.dp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.dp-card-mini {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px 22px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dp-card-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}
.dp-card-mini-status {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.dp-card-mini-status--received { background: #dbeafe; color: #1e40af; }
.dp-card-mini-status--in_progress { background: #fef3c7; color: #92400e; }
.dp-card-mini-status--approved { background: #d1fae5; color: #065f46; }
.dp-card-mini-status--canceled,
.dp-card-mini-status--cancelled,
.dp-card-mini-status--denied { background: #f1f5f9; color: #475569; }
.dp-card-mini-status--redeemed { background: #ccfbf1; color: #115e59; }
.dp-card-mini-status--refunded { background: #fae8ff; color: #7e22ce; }
.dp-card-mini-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-header, #1a365d);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-right: 70px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.dp-card-mini-visit {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}
.dp-card-mini-type {
  font-size: 11px;
  color: #475569;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.dp-card-mini-cruise {
  display: inline-block;
  margin-top: 2px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-card-mini-received {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 500;
}
.dp-cards-empty {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

/* =========================================================================
   WI-532 — Day Pass diary grid (replaces month calendar)
   Horizontal row of fixed-width day columns. Each column has a sticky
   header (date) and a vertical stack of pass chips. Sort within a day:
   breakfast at top, day in middle, evening at bottom.
   ========================================================================= */
.dpg-month-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-left: 12px;
}
.dpg-controls { display: flex; gap: 8px; }
.dpg-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.dpg-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}
.dpg-row {
  display: flex;
  flex-direction: row;
  width: max-content;
  min-height: 360px;
}
.dpg-day-col {
  --dpg-col-w: 140px;
  width: var(--dpg-col-w);
  min-width: var(--dpg-col-w);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.1s ease;
}
.dpg-day-col:hover { background: #f8fafc; }
.dpg-day-col--today { background: #eff6ff; }
.dpg-day-col--today:hover { background: #dbeafe; }
.dpg-day-col--weekend { background: #f8fafc; }
.dpg-day-col--past {
  background: repeating-linear-gradient(45deg,#f8fafc,#f8fafc 4px,#f1f5f9 4px,#f1f5f9 8px);
  cursor: default;
}
.dpg-day-col--past:hover { background: repeating-linear-gradient(45deg,#f8fafc,#f8fafc 4px,#f1f5f9 4px,#f1f5f9 8px); }
.dpg-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: inherit;
  padding: 10px 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
}
.dpg-day-col--today .dpg-day-head { background: #eff6ff; }
.dpg-day-col--weekend .dpg-day-head { background: #f8fafc; }
.dpg-day-col--past .dpg-day-head { background: #f1f5f9; }
.dpg-day-head-dow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.03em;
}
.dpg-day-head-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-header, #1a365d);
  line-height: 1.1;
}
.dpg-day-col--today .dpg-day-head-num { color: #2563eb; }
.dpg-day-head-mon {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}
.dpg-day-head-today-pill {
  display: inline-block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
}
.dpg-day-head-count {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}
.dpg-day-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.dpg-pass {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.1s ease;
  border-left: 3px solid transparent;
  background: #f8fafc;
}
.dpg-pass:hover { transform: translateX(2px); background: #f1f5f9; }
.dpg-pass-name {
  font-weight: 700;
  font-size: 11px;
  color: #1e293b;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.dpg-pass-meta {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.dpg-pass--breakfast { border-left-color: #3b82f6; background: #eff6ff; }
.dpg-pass--day { border-left-color: #f97316; background: #fff7ed; }
.dpg-pass--evening { border-left-color: #8b5cf6; background: #f5f3ff; }
.dpg-pass--canceled,
.dpg-pass--cancelled,
.dpg-pass--denied,
.dpg-pass--refunded {
  opacity: 0.55;
  text-decoration: line-through;
}

.dpg-empty-day {
  font-size: 10px;
  color: #cbd5e1;
  text-align: center;
  margin: auto 0;
  font-style: italic;
}

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

@media (max-width: 768px) {
  .dpg-day-col { --dpg-col-w: 110px; }
  .dp-cards-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* WI-533: filter pills for the combined Requests section (NEW + IN PROGRESS). */
.dp-filter-bar {
  display: flex;
  gap: 8px;
  padding: 6px 0 12px;
  flex-wrap: wrap;
  align-items: center;
}
.dp-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.1s ease, background 0.1s ease;
}
.dp-filter-pill:hover { border-color: #cbd5e1; }
.dp-filter-pill--active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}
.dp-filter-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.dp-filter-pill--active .dp-filter-dot { background: rgba(255,255,255,0.18); color: #fff; }
.dp-filter-dot--all { background: #f1f5f9; color: #475569; }
.dp-filter-dot--new { background: #dbeafe; color: #1e40af; }
.dp-filter-dot--in_progress { background: #fef3c7; color: #92400e; }

/* Bucket badge on the corner of a request card so the user can still
   distinguish NEW vs IN PROGRESS within the merged grid. */
.dp-card-mini-bucket {
  position: absolute;
  top: -6px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 1;
}
.dp-card-mini-bucket--new { background: #3b82f6; color: #fff; }
.dp-card-mini-bucket--in_progress { background: #f59e0b; color: #fff; }
