.page { max-width: 420px; margin: 0 auto; min-height: 100vh; background: var(--sage-50); display: flex; flex-direction: column; padding-bottom: 60px; }

/* Header */
.header { background: var(--sage-500); padding: 20px 20px 28px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.greetingName { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 2px; }
.greetingMeta { font-size: 0.8125rem; color: rgba(255,255,255,0.75); }
.statsRow { display: flex; gap: 8px; flex-wrap: wrap; }
.statChip { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-full); padding: 4px 10px; font-size: 0.75rem; font-weight: 600; color: white; }

/* Date Tabs */
.dateTabs { display: flex; gap: 8px; padding: 16px 16px 8px; overflow-x: auto; -ms-overflow-style: none; }
.dateTabs::-webkit-scrollbar { display: none; }
@supports (scrollbar-width: none) { .dateTabs { scrollbar-width: none; } }
.dateTab { flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-full); border: 1.5px solid var(--sage-200); background: var(--white); font-size: 0.8125rem; font-weight: 500; color: var(--sage-400); cursor: pointer; transition: all 0.2s; }
.dateTab:hover { border-color: var(--sage-300); }
.dateTabActive { background: var(--sage-500); border-color: var(--sage-500); color: white; font-weight: 600; }

/* Refresh bar */
.refreshBar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 4px; }
.refreshText { font-size: 0.72rem; color: var(--sage-300); }
.refreshBtn { background: none; border: 1px solid var(--sage-100); border-radius: var(--radius-md); padding: 4px 6px; cursor: pointer; color: var(--sage-300); display: flex; transition: all 0.2s; }
.refreshBtn:hover { background: var(--sage-50); color: var(--sage-500); }

/* Booking List */
.list { flex: 1; padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 14px; }

/* Card */
.card { background: var(--white); border: 1px solid var(--sage-100); border-left: 4px solid var(--sage-300); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); transition: border-color 0.3s; }
.cardDone { opacity: 0.65; border-left-color: #22c55e; }

.cardTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cardId { font-family: monospace; font-size: 0.75rem; color: var(--sage-300); }

/* Status badge */
.statusBadge { font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }
.badge_pending    { background: #f3f4f6; color: #6b7280; }
.badge_confirmed  { background: var(--sage-100); color: var(--sage-500); }
.badge_ontheway   { background: #fffbeb; color: #d97706; }
.badge_arrived    { background: #fffbeb; color: #d97706; }
.badge_inprogress { background: #dcfce7; color: #16a34a; }
.badge_done       { background: #dcfce7; color: #15803d; }

.cardCustomer { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.cardService { font-size: 0.875rem; color: var(--sage-500); font-weight: 600; margin-bottom: 2px; }
.cardTime { font-size: 0.8125rem; color: var(--sage-400); margin-bottom: 10px; }

.cardDetail { display: flex; align-items: flex-start; gap: 6px; font-size: 0.8125rem; color: var(--sage-400); margin-bottom: 5px; text-decoration: none; }
.cardDetail:hover { color: var(--sage-500); }
.detailIcon { flex-shrink: 0; margin-top: 1px; }

.commissionTag { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; color: #16a34a; margin-top: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md); padding: 6px 10px; }

/* CTA Button */
.ctaBtn {
  margin-top: 12px;
  width: 100%;
  padding: 11px;
  background: var(--cta-color, var(--sage-500));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.ctaBtn:hover:not(:disabled) { opacity: 0.9; }
.ctaBtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Skeleton */
.skeletonCard { height: 180px; background: var(--white); border-radius: var(--radius-lg); animation: shimmer 1.5s infinite; border: 1px solid var(--sage-100); }
@keyframes shimmer { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty */
.empty { text-align: center; padding: 48px 20px; }
.emptyIcon { font-size: 2.5rem; margin-bottom: 10px; }
.emptyText { color: var(--sage-300); font-size: 0.9rem; }

@media (max-width: 420px) { .page { max-width: 100%; } }

/* iOS safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .page { padding-bottom: max(60px, env(safe-area-inset-bottom)); }
}

