/* === client/css/style.css === */
/* Reset & Base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --fs-xxs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-xxl: 20px;
  --fs-display: 24px;
}
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  font-size: var(--fs-md);
}

/* Layout */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px; /* 限制最大宽度，模拟移动端 */
  margin: 0 auto;
  background: #f9f9f9; /* 整体背景偏灰白 */
  position: relative;
  overflow: hidden;
}

#app-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 0;
}

.page {
  min-height: 100%;
}

.hidden { display: none !important; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  max-width: min(88vw, 420px);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(30, 33, 40, 0.92);
  color: #fff;
  font-size: var(--fs-sm, 13px);
  line-height: 1.4;
  text-align: center;
  z-index: 5000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  word-break: break-word;
}

/* Buttons */
.btn { border: none; border-radius: 6px; padding: 12px 20px; font-size: var(--fs-md); cursor: pointer; text-align: center; font-weight: 500; }
.btn-primary { background: #FF6B35; color: #fff; }
.btn-secondary { background: #fff; border: 1px solid #ddd; color: #333; }
.btn-block { display: flex; width: 100%; justify-content: center; align-items: center; }

/* Unified Info Card Style */
.info-card .card-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
  border-left: 4px solid #FF6B35;
  padding-left: 10px;
}

/* Home Page specific */
.card {
  background: #fff;
  border-radius: 8px; /* Match list page */
  padding: 15px; /* Standardize padding */
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* User Info Card - Modified to Orange Theme */
.user-info-card {
  background: linear-gradient(135deg, #FF6B35 0%, #FF9C6E 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}
.user-info-card .user-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff; /* White text on orange */
}
.user-info-card .user-detail {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Stats Card */
.stats-card .card-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
  border-left: 3px solid #FF6B35; /* Orange accent */
  padding-left: 8px;
}
.stats-grid {
  display: flex;
  justify-content: space-around; /* Changed from space-between to reduce spacing gaps visually */
  padding: 0 10px; /* Add padding to bring items closer */
  text-align: center;
  margin-bottom: 20px;
}
.stat-col .num {
  font-size: 20px;
  font-weight: bold;
  color: #FF6B35; /* Changed from #333 to Orange */
  margin-bottom: 8px;
}
.stat-col .label {
  font-size: 12px;
  color: #666;
}
.card-footer {
  text-align: center;
}
.btn-outline {
  background: #fff;
  border: 1.5px solid #FF6B35; /* Slightly thicker border */
  border-radius: 16px; /* Capsule shape for 32px height */
  padding: 0 20px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #FF6B35;
  cursor: pointer;
  font-weight: bold;
}

/* Contact Bar */
.contact-bar {
  background: #fff;
  border-radius: 20px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.contact-bar .label {
  font-size: 13px;
  color: #333;
}
.contact-bar .action {
  font-size: 13px;
  color: #FF6B35; /* Orange text */
  cursor: pointer;
  font-weight: bold;
}

/* Brand Footer */
.brand-footer {
  text-align: center;
  padding-bottom: 20px;
}
.brand-logo {
  font-size: 14px;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px;
}
.brand-logo .icon {
  font-size: 16px;
  filter: grayscale(100%);
  opacity: 0.5;
}
.brand-slogan {
  font-size: 10px;
  color: #ddd;
  letter-spacing: 2px;
}

/* Report Page Styles */
.report-content {
  padding: 15px;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row .arrow {
  color: #ccc;
  font-size: 18px;
  margin-left: 5px;
}

.photo-card {
  padding: 15px;
}
.photo-tip {
  font-size: 12px;
  color: #999;
  margin-bottom: 15px;
  line-height: 1.4;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-item {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px dashed #ddd;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
}
.photo-item .icon {
  font-size: 24px;
  color: #ccc;
  margin-bottom: 5px;
}
.photo-item .text {
  font-size: 14px;
  color: #666;
  font-weight: bold;
  margin-bottom: 4px;
}
.photo-item .sub-text {
  font-size: 11px;
  color: #999;
}
.photo-item.upload-btn:active {
  background: #f9f9f9;
}

/* Income Page Styles */
.income-v2-page {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: #f2f3f5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.income-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 15px;
  padding-bottom: 130px; /* Space for bottom bar + batch actions */
}

.income-fixed-head {
  flex-shrink: 0;
}

.income-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 4px 6px;
}

.income-v2-page #income-list-container {
  flex: none;
  overflow: visible;
  padding: 0;
}

.income-v2-page .income-empty-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9fa3ac;
}

.income-v2-page .income-empty-state .icon {
  line-height: 1;
}

.income-v2-page .income-empty-icon-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  display: block;
}

.income-v2-page .income-empty-state .text {
  margin-top: 10px;
  font-size: var(--fs-sm, 13px);
}

.account-card {
  padding: 15px;
}
.account-card .user-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.account-card .user-name {
  font-size: 16px;
  font-weight: bold;
}
.account-card .user-detail {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.month-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 10px;
  padding: 0 5px;
}
.month-bar .month-text {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}
.month-bar .show-all {
  font-size: 12px;
  color: #666;
}

.income-date-wheel-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.income-date-wheel-column {
  min-width: 0;
}

.income-date-wheel-head {
  font-size: var(--fs-xs, 12px);
  color: #999;
  margin-bottom: 6px;
}

.income-date-wheel-box {
  position: relative;
  height: 200px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.income-date-wheel {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.income-date-wheel::-webkit-scrollbar {
  display: none;
}

.income-date-wheel-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md, 14px);
  color: #999;
  scroll-snap-align: center;
  user-select: none;
}

.income-date-wheel-item.active {
  color: #333;
  font-weight: 600;
  font-size: var(--fs-lg, 16px);
}

.income-date-wheel-item.placeholder {
  color: transparent;
  pointer-events: none;
}

.income-date-wheel-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 3;
}

.income-date-wheel-mask.top {
  top: 0;
  background: linear-gradient(to bottom, #fff 20%, rgba(255, 255, 255, 0));
}

.income-date-wheel-mask.bottom {
  bottom: 0;
  background: linear-gradient(to top, #fff 20%, rgba(255, 255, 255, 0));
}

.income-date-wheel-indicator {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 80px;
  height: 40px;
  border-radius: 8px;
  background: #f5f5f5;
  pointer-events: none;
  z-index: 1;
}

.income-item-card {
  padding: 12px 15px;
  margin-bottom: 10px;
}
.income-item-card .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.income-item-card .item-title {
  font-size: 14px;
  font-weight: bold;
}
.income-item-card .item-status-text {
  font-size: 12px;
  color: #666;
}
.income-item-card .item-body .info-row {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}
.income-item-card .item-body .value {
  color: #666;
}
.income-item-card .item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f9f9f9;
}
.income-item-card .amount-row {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
}
.income-item-card .amount-row .val {
  font-weight: bold;
}
.income-item-card .extra-tip {
  font-size: 10px;
  color: #FF4D4F;
  background: #FFF1F0;
  border: 1px solid #FFCCC7;
  border-radius: 2px;
  padding: 0 4px;
  margin-left: 10px;
}
.income-item-card .arrow-right {
  color: #ccc;
  font-size: 18px;
}

.income-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
  font-size: 13px;
  color: #333;
}

.income-bottom-bar.income-bottom-bar-actions {
  position: fixed;
  background: #fff;
  box-shadow: 0 -4px 14px rgba(25, 29, 38, 0.08);
}

.income-bottom-summary {
  width: 100%;
}

.income-pre-tax-tip {
  padding: 12px 15px;
  border-top: 1px solid #f2e5e4;
  border-bottom: 1px solid #f2e5e4;
  background: #fffaf9;
  font-size: var(--fs-xs, 12px);
  color: #cf3f36;
  line-height: 1.5;
  font-weight: 500;
}

.income-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  gap: 6px;
  padding: 14px 15px;
  background: #fff;
}

.income-summary-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  gap: 2px;
  color: #1f2329;
  font-size: 15px;
  white-space: normal;
  flex-wrap: wrap;
}

.income-summary-item .label {
  color: #1f2329;
}

.income-summary-item .value {
  font-weight: 500;
}

.income-summary-item.total {
  color: #e88422;
}

.income-summary-item.total .label,
.income-summary-item.total .value {
  color: #e88422;
}

.income-summary-item.total .value {
  font-size: 18px;
  font-weight: 700;
}

.income-batch-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.income-batch-tip {
  color: #666;
  font-size: 12px;
}

.income-batch-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.income-batch-tip {
  color: #666;
  font-size: 12px;
}

.income-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f3f3;
}

.income-item-actions .btn-action {
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  font-size: 13px;
}

.income-bottom-bar button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Schedule / Calendar Page Styles */
.calendar-card {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  margin: 10px 10px 0;
  box-shadow: 0 1px 4px rgba(25, 29, 38, 0.04);
  border: 1px solid #f2f2f4;
}
.calendar-header {
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 10px 6px 8px;
  color: #8f939c;
  font-size: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 8px 12px;
}
.calendar-day {
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.calendar-day.empty { cursor: default; }
.calendar-day .day-num {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50%;
  margin-bottom: 3px;
  color: #3f434c;
  border: 1px solid #eceff4;
  background: #fff;
}
.calendar-day.status-all .day-num {
  background: #fff;
  border-color: #eceff4;
  color: #3f434c;
}
.calendar-day.status-none .day-num {
  background: #ffe1e7;
  border-color: #ffc1cd;
  color: #c7384f;
}
.calendar-day.status-morning_unavailable .day-num {
  background: #e7f7ee;
  border-color: #bde8cd;
  color: #2f8f5b;
}
.calendar-day.status-afternoon_unavailable .day-num {
  background: #e6f1ff;
  border-color: #b7d4ff;
  color: #2f70c8;
}
.calendar-day.selected .day-num {
  background: #fff;
  border-color: #ffbf8b;
  color: #3f434c;
}
.calendar-day.selected.selected-all .day-num {
  background: #fff;
  border-color: #ffbf8b;
  color: #3f434c;
}
.calendar-day.selected.selected-none .day-num {
  background: #e64a63;
  border-color: #e64a63;
}
.calendar-day.selected.selected-morning_unavailable .day-num {
  background: #4caf7a;
  border-color: #4caf7a;
}
.calendar-day.selected.selected-afternoon_unavailable .day-num {
  background: #4a8fdc;
  border-color: #4a8fdc;
}
.calendar-day .lunar {
  font-size: 11px;
  color: #8f939c;
  line-height: 1;
  min-height: 12px;
}
.calendar-day.selected .lunar {
  color: #FF7E24;
  font-weight: 500;
}

.schedule-action-container {
  padding: 18px 18px 22px;
  background: #f5f6f8;
}
.schedule-draft-notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #ffd9bf;
  border-radius: 10px;
  background: #fff7f1;
}
.schedule-draft-notice-text {
  color: #8f5a2f;
  font-size: var(--fs-xs, 12px);
  line-height: 1.5;
}
.schedule-draft-notice-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.schedule-draft-btn {
  height: 28px;
  border: 1px solid #ffb077;
  border-radius: 14px;
  padding: 0 10px;
  background: #FF6B35;
  color: #fff;
  font-size: var(--fs-xs, 12px);
  line-height: 26px;
  cursor: pointer;
}
.schedule-draft-btn.secondary {
  background: #fff;
  color: #FF6B35;
}
.schedule-btn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.btn-schedule {
  height: 44px;
  border-radius: 22px;
  border: 1px solid #dfe2e7;
  background: #fff;
  color: #666d78;
  font-size: var(--fs-md, 14px);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
/* Distinct colors for different options - High contrast */
.btn-schedule.active-none { background: #e64a63; border-color: #e64a63; color: #fff; }
.btn-schedule.active-morning-unavailable { background: #4caf7a; border-color: #4caf7a; color: #fff; }
.btn-schedule.active-afternoon-unavailable { background: #4a8fdc; border-color: #4a8fdc; color: #fff; }

.btn-schedule:active { opacity: 0.8; }


/* Profile Page Styles */
.profile-page {
  padding: 0 12px 16px;
  background: #f6f7f9;
}

.profile-user-card,
.profile-metrics-card,
.profile-section-card,
.profile-menu-card {
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  box-shadow: none;
}

.profile-user-card {
  padding: 14px 12px;
  margin-bottom: 10px;
}

.profile-user-info {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff9d5c 0%, #ff7e24 100%);
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.profile-avatar.has-image {
  background: #f5f5f5;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-text {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-input-hidden {
  display: none;
}

.profile-info-main {
  min-width: 0;
}
.profile-info-main .name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #2f3440;
  margin-bottom: 4px;
}
.profile-info-main .id {
  font-size: var(--fs-sm);
  color: #8f96a3;
}

.profile-metrics-card {
  padding: 12px 8px;
  margin-bottom: 10px;
}
.profile-stats-row {
  display: flex;
  justify-content: space-between;
  text-align: center;
}
.profile-stats-item {
  flex: 1;
  position: relative;
}
.profile-stats-item + .profile-stats-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #f2f2f2;
}
.profile-stats-item .val {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: #2f3440;
  margin-bottom: 6px;
}
.profile-stats-item .lab {
  font-size: var(--fs-sm);
  color: #8f96a3;
}

.profile-section-card {
  padding: 12px;
  margin-bottom: 10px;
}
.profile-page .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 10px;
}
.profile-page .section-header .title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #2f3440;
}
.profile-page .section-header .more {
  font-size: var(--fs-sm);
  color: #8f96a3;
  cursor: pointer;
}
.profile-page .grid-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.profile-page .grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-page .grid-item .icon-box.profile-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  margin-bottom: 7px;
  border: none;
  background: transparent;
  color: #ff7e24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.profile-page .grid-item .icon-box.profile-icon .profile-pending-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .icon-box.profile-icon .profile-pending-service-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .icon-box.profile-icon .profile-completed-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .icon-box.profile-icon .profile-in-service-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .icon-box.profile-icon .profile-settled-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .icon-box.profile-icon .profile-unsettled-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .icon-box.profile-icon .profile-bonus-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .icon-box.profile-icon .profile-deduction-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.profile-page .grid-item .text {
  font-size: var(--fs-sm);
  color: #5e6472;
}

.profile-menu-card {
  margin-bottom: 6px;
}

.profile-menu-card .menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2px;
  border-bottom: 1px solid #f5f5f5;
  font-size: var(--fs-md);
  color: #333;
  cursor: pointer;
}
.profile-menu-card .menu-row:last-child { border-bottom: none; }
.profile-menu-card .menu-row .lab {
  color: #2f3440;
  font-size: var(--fs-md);
}
.profile-menu-card .menu-row .val-sub {
  flex: 1;
  text-align: right;
  margin-right: 10px;
  color: #8f96a3;
  font-size: var(--fs-sm);
}
.profile-menu-card .menu-row .arr {
  color: #c5c9d3;
  font-size: 18px;
  line-height: 1;
}

/* Tab Bar */
.tab-bar { 
  background: #fff; border-top: 1px solid #eee; height: 50px; display: flex; flex-shrink: 0; 
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; cursor: pointer; position: relative; }
.tab-item.active { color: #FF6B35; font-weight: 500; } /* Orange active state */
.tab-item .tab-icon { font-size: 20px; margin-bottom: 2px; line-height: 1; }
.tab-item .tab-label { font-size: 10px; line-height: 1; }
.tab-item .tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f15454;
  position: absolute;
  top: 8px;
  left: calc(50% + 12px);
}

/* Login Page Styles (retained) */
.login-page { padding: 40px 30px; background: #fff; min-height: 100%; }
.login-logo { text-align: center; margin-bottom: 50px; }
.login-logo .icon { font-size: 48px; }
.login-logo .title { font-size: 24px; font-weight: bold; color: #FF6B35; margin: 10px 0; }
.login-logo .subtitle { color: #999; font-size: 14px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; color: #666; }
.input-group input { width: 100%; padding: 14px; border: 1px solid #eee; border-radius: 6px; font-size: 18px; background: #f9f9f9; }
.login-tips { margin-top: 40px; font-size: 14px; color: #999; text-align: center; line-height: 1.6; }

/* Dialog Styles (retained) */
.dialog { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; }
.dialog-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.dialog-content { position: relative; width: calc(100% - 40px); max-width: 360px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.dialog-title { padding: 16px 16px 0; font-size: 16px; font-weight: bold; }
.dialog-body { padding: 12px 16px 16px; color: #666; line-height: 1.5; }
.dialog-footer { display: flex; border-top: 1px solid #eee; }
.dialog-btn { flex: 1; height: 48px; border: none; background: #fff; font-size: 16px; font-weight: bold; cursor: pointer; }
.dialog-confirm { color: #FF6B35; font-weight: 600; }
.modal-overlay .reset-card { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Workorder List (retained) */
.filter-bar { display: flex; background: #fff; border-bottom: 1px solid #eee; overflow-x: auto; flex-shrink: 0; white-space: nowrap; }
.filter-item { padding: 12px 15px; font-size: 14px; color: #666; position: relative; cursor: pointer; }
.filter-item.active { color: #FF6B35; font-weight: bold; }
.filter-item.active::after { content: ''; position: absolute; bottom: 0; left: 15px; right: 15px; height: 2px; background: #FF6B35; }
.list-container { flex: 1; overflow-y: auto; padding: 10px; }
.workorder-item { background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); cursor: pointer; }
.wo-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.tag { padding: 2px 6px; border-radius: 4px; }
.tag-orange { background: #FFF7E6; color: #FA8C16; }
.tag-blue { background: #E6F7FF; color: #1890FF; }
.tag-green { background: #F6FFED; color: #52C41A; }
.tag-gray { background: #F5F5F5; color: #999; }
.tag-red { background: #FFF1F0; color: #F5222D; }
.wo-body .info-row { display: flex; margin-bottom: 6px; font-size: 14px; }
.wo-body .label { color: #999; width: 45px; flex-shrink: 0; }
.wo-body .val { color: #333; }
.wo-footer { border-top: 1px solid #f0f0f0; margin-top: 10px; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.wo-footer .price { font-size: 16px; color: #FF4D4F; font-weight: bold; }

/* Segment Control (Top Tabs) - Refined Size */
.segment-control {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 6px 0;
}
.segment-item {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 14px;
  color: #FF6B35;
  border: 2px solid #FF6B35;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s;
  font-weight: bold;
}
.segment-item:first-child {
  border-right: none;
  border-radius: 16px 0 0 16px;
}
.segment-item:last-child {
  border-left: none;
  border-radius: 0 16px 16px 0;
}
.segment-item.active {
  background: #FF6B35;
  color: #fff;
}

/* Refined Button Styles for Detail Pages - Large Accessible Capsule */
.btn-detail-primary, .btn-detail-secondary, .btn-detail-gray, .btn-action {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px !important;
  border-radius: 24px !important; /* Half height */
  font-size: 18px;
  cursor: pointer;
  box-sizing: border-box;
  font-weight: bold;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1; 
  margin: 0;
}

.btn-detail-primary {
  background: #FF6B35;
  color: #fff;
  border-color: #FF6B35;
}

.btn-detail-secondary, .btn-action.secondary {
  background: #fff;
  border-color: #FF6B35;
  color: #FF6B35;
}

.btn-detail-gray {
  background: #f5f5f5;
  color: #666;
  border-color: #ddd;
}

/* Specific override for List Page action buttons to match proportions */
.card-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

/* Nav Bar */

.nav-bar {
  display: flex;
  align-items: center;
  min-height: 44px;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 15px;
  flex-shrink: 0;
}
.nav-bar .back-btn {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  width: 60px;
}
.nav-bar .title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin-right: 60px; /* Offset back button width to center title */
}

/* Detail Status Text (Simple) */
.detail-status-text {
  font-size: 12px;
  color: #666;
}

/* Middle Action Area */
.middle-action-area {
  padding: 10px 0;
  text-align: center;
}

/* Base class overrides for legacy support or specific needs */
.btn-round, .btn-action-small {
  border-radius: 15px !important;
}

.btn-disabled {
  background: #ccc !important;
  color: #fff !important;
  border: none !important;
  cursor: not-allowed !important;
}

/* Bottom Actions Fixed Bar */
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 8px 15px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}

.bottom-actions.pending-accept-actions {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
}

.bottom-actions.pending-service-actions {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
}

.bottom-actions.in-service-actions {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
}

.bottom-actions.completed-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
}

.bottom-actions.pending-accept-actions .btn-detail-primary,
.bottom-actions.pending-accept-actions .btn-detail-secondary,
.bottom-actions.pending-accept-actions .btn-detail-gray {
  width: 100%;
  height: 40px;
  border-radius: 20px !important;
  font-size: var(--fs-md);
  font-weight: 600;
}

.bottom-actions.pending-service-actions .btn-detail-primary,
.bottom-actions.pending-service-actions .btn-detail-secondary,
.bottom-actions.pending-service-actions .btn-detail-gray {
  width: 100%;
  height: 40px;
  border-radius: 20px !important;
  font-size: var(--fs-md);
  font-weight: 600;
}

.bottom-actions.in-service-actions .btn-detail-primary,
.bottom-actions.in-service-actions .btn-detail-secondary,
.bottom-actions.in-service-actions .btn-detail-gray {
  width: 100%;
  height: 40px;
  border-radius: 20px !important;
  font-size: var(--fs-md);
  font-weight: 600;
}

.bottom-actions.completed-actions .btn-detail-primary,
.bottom-actions.completed-actions .btn-detail-secondary,
.bottom-actions.completed-actions .btn-detail-gray {
  height: 40px;
  border-radius: 20px !important;
  font-size: var(--fs-md);
  font-weight: 600;
  min-width: 98px;
}

.detail-page.pending-accept-mode .detail-content {
  padding-bottom: 260px;
}

.detail-page.pending-service-mode .detail-content {
  padding-bottom: 220px;
}

.detail-page.in-service-mode .detail-content {
  padding-bottom: 190px;
}

.detail-page.completed-mode .detail-content {
  padding-bottom: 130px;
}

/* Workorder Detail - Pending Accept */
.detail-list { padding: 0; overflow: hidden; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: #999; width: 85px; flex-shrink: 0; white-space: nowrap; }
.detail-row .value { color: #333; text-align: left; margin-left: 0; flex: 1; min-width: 0; white-space: normal; word-break: break-all; overflow-wrap: anywhere; }
.detail-row-planned .label { width: 108px; flex: 0 0 108px; }
.detail-row-planned .value { min-width: 0; word-break: break-word; }
.detail-row-top { padding: 10px 15px; border-bottom: 1px solid #f5f5f5; }
.detail-meta { color: #999; font-size: 12px; }
.detail-status-text { color: #666; font-size: 13px; }
.detail-status-group { display: inline-flex; align-items: center; gap: 8px; }
.detail-status-alert { color: #f15454; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.detail-remark { padding: 15px; }
.detail-remark .label { color: #999; font-size: 14px; margin-bottom: 10px; display: block; }
.remark-box { padding: 12px; border: 1px solid #ffccc7; background: #fff2f0; border-radius: 4px; color: #d4380d; font-size: 13px; line-height: 1.5; }

/* Detail/Report page tune-up (minimal visual alignment) */
.report-page-modern .report-content {
  padding: 12px;
}

.report-page-modern .card-title {
  margin-bottom: 10px;
}

.report-page-modern .detail-row {
  align-items: center;
  flex-wrap: nowrap;
}

.report-page-modern .detail-row .label {
  width: 108px;
  flex: 0 0 108px;
  white-space: nowrap;
}

.report-page-modern .detail-row .value {
  min-width: 0;
  word-break: break-all;
}

.report-page-modern .photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-page-modern .photo-item {
  height: 108px;
  min-height: 108px;
  aspect-ratio: auto;
  border-radius: 6px;
  padding: 8px;
}

.report-page-modern .photo-item.upload-btn {
  background: #fff7ef;
  border: 1px solid #ffe0bf;
}

.report-page-modern .photo-item.upload-btn .icon,
.report-page-modern .photo-item.upload-btn .text {
  color: #ff8a2a;
}

.report-page-modern .photo-item .text {
  font-size: var(--fs-xs);
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.report-page-modern .photo-item .sub-text {
  font-size: var(--fs-xxs);
}

.report-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-action-stack .btn-detail-primary,
.report-action-stack .btn-detail-secondary {
  width: 100%;
  height: 40px;
  border-radius: 20px !important;
  font-size: var(--fs-md);
  font-weight: 600;
}

.detail-service-name {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 700;
  color: #333;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.detail-service-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

.detail-order-kind {
  font-size: var(--fs-sm);
  color: #999;
  line-height: 1.3;
}

.detail-report-card .photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.detail-report-card .detail-photo-item {
  border: none;
  background: #eee;
  overflow: hidden;
  padding: 0;
}

.detail-report-card .detail-row .label {
  width: 108px;
  flex: 0 0 108px;
  white-space: nowrap;
}

.detail-report-card .detail-row {
  flex-wrap: nowrap;
}

.detail-report-card .detail-row .value {
  min-width: 0;
  word-break: break-all;
}

.income-detail-amount-row .label {
  width: auto;
  flex: 0 0 auto;
  margin-right: 6px;
}

.income-detail-amount-row .value {
  word-break: keep-all;
  white-space: nowrap;
}

.income-detail-page .report-content > .card.info-card:first-child .detail-row .label {
  width: auto;
  flex: 0 0 auto;
  margin-right: 6px;
}

.income-detail-page .report-content > .card.info-card:first-child .detail-row .value {
  min-width: 0;
  word-break: break-all;
  white-space: normal;
}

.photo-placeholder {
  border: 1px dashed #d9d9d9;
  background: #fafafa;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder span {
  font-size: var(--fs-xs);
}

/* Typography Normalization */
.nav-bar .title,
.month-bar .month-text,
.section-header .title,
.info-card .card-title {
  font-size: var(--fs-lg);
}

.nav-bar .back-btn,
.btn-round,
.btn-action-small,
.btn-outline,
.segment-item,
.detail-row,
.filter-item,
.wo-body .info-row,
.account-card .user-name,
.user-info-card .user-name {
  font-size: var(--fs-md);
}

.btn-action,
.btn-detail-primary,
.btn-detail-secondary,
.btn-detail-gray,
.dialog-title,
.dialog-btn {
  font-size: var(--fs-md);
}

.user-detail,
.detail-meta,
.detail-status-text,
.info-line,
.income-batch-tip,
.contact-bar .label,
.contact-bar .action,
.tab-item .tab-label,
.stat-col .label,
.brand-logo {
  font-size: var(--fs-sm);
}

.brand-slogan,
.extra-tip {
  font-size: var(--fs-xs);
}

input,
textarea,
select {
  font-size: var(--fs-md);
}

.settlement-info-card {
  padding-bottom: 14px;
}

.settlement-info-head {
  align-items: center;
}

.settlement-status-text {
  font-size: var(--fs-xs, 12px);
  color: #666;
}

.settlement-info-body {
  border-top: 1px solid #f2f2f3;
  padding-top: 12px;
}

.settlement-detail-row {
  align-items: center;
}

.settlement-actual-row {
  flex-wrap: wrap;
  row-gap: 8px;
}

.settlement-adjust-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #f2b8b1;
  background: #fff1ef;
  color: #ef5a4f;
  border-radius: 6px;
  font-size: var(--fs-xs, 12px);
  line-height: 1.4;
  margin-left: 8px;
}

.order-status-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-status-alert {
  color: #ef5a4f;
  font-size: var(--fs-xs, 12px);
  font-weight: 600;
}
.order-status-muted {
  color: #666;
  font-size: var(--fs-xs, 12px);
}
.detail-row-remark {
  align-items: flex-start;
}
.order-remark-box {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: #f7f7f8;
  border-radius: 8px;
  color: #555;
  line-height: 1.6;
}


/* === client/css/workorder.css === */
/* Workorder List Page Styles (Updated) */

/* Filter Bar */
.filter-bar { 
  display: flex; 
  background: #fff; 
  border-bottom: 1px solid #f5f5f5; 
  overflow-x: auto; 
  flex-shrink: 0; 
  white-space: nowrap;
  padding: 0 10px;
}
.filter-item { 
  padding: 14px 15px; 
  font-size: 15px; 
  color: #666; 
  position: relative; 
  cursor: pointer;
  flex: 1; /* Distribute evenly if possible, or auto */
  text-align: center;
}
.filter-item.active { 
  color: #333; 
  font-weight: 600; 
  font-size: 16px;
}
.filter-item.active::after { 
  content: ''; 
  position: absolute; 
  bottom: 6px; 
  left: 50%; 
  transform: translateX(-50%);
  width: 20px; 
  height: 3px; 
  background: #FF6B35; 
  border-radius: 2px;
}

/* Search Bar */
.search-bar {
  background: #fff;
  padding: 10px 15px;
  margin-bottom: 10px;
}
.search-input-wrapper {
  background: #f5f5f5;
  border-radius: 18px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-icon {
  font-size: 14px;
  color: #999;
  margin-right: 0;
  flex-shrink: 0;
}
.search-input-wrapper input {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  outline: none;
  color: #333;
}

.wo-search-clear {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #d3d7de;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.wo-search-clear.hidden {
  display: none;
}

.wo-search-btn {
  border: none;
  background: transparent;
  color: #8e929b;
  border-radius: 14px;
  padding: 0 2px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* List Container */
.list-container { 
  flex: 1; 
  overflow-y: auto; 
  padding: 0 15px 15px; 
  background: #f9f9f9; 
}

/* Workorder Card */
.workorder-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  position: relative;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.service-title-row {
  display: flex;
  align-items: center;
}
.checkbox-icon {
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.checkbox-icon.checked {
  background: #FF6B35;
  border-color: #FF6B35;
}
.checkbox-icon.checked::after {
  content: '✔';
  color: #fff;
  font-size: 12px;
}
.service-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.status-text {
  font-size: 12px;
  color: #666;
}

.card-content {
  padding-left: 24px; /* Align with text, skip checkbox */
  margin-bottom: 15px;
}
.info-line {
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.4;
  display: flex;
}
.info-line .label {
  color: #999;
  min-width: 65px;
}
.info-line .value {
  color: #333;
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-all;
}

.return-reason-tag {
  display: inline-block;
  margin-top: 8px;
  margin-left: 65px;
  font-size: 11px;
  color: #FF6B35;
  background: #FFF4EE;
  border: 1px solid #FFD5C2;
  border-radius: 10px;
  padding: 2px 8px;
}

.card-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f9f9f9;
  padding-left: 24px;
}

.btn-action {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  font-weight: bold;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-action.secondary {
  background: #fff;
  border: 1px solid #FF6B35; /* Orange border for secondary */
  color: #FF6B35;
}
.btn-action.primary {
  background: #FF6B35;
  color: #fff;
  border: 1px solid #FF6B35;
}
/* Orange button specific */
.btn-accept {
  /* If design uses orange for primary action */
  /* color: #FF6B35; border-color: #FF6B35; */
}

/* Floating Bar */
.wo-floating-bar {
  position: fixed;
  bottom: 0;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Correct centering */
  width: 100%;
  max-width: 480px; /* Match app container */
  background: #fff;
  padding: 12px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.select-info {
  font-size: 16px;
  color: #333;
}
.btn-float-action {
  background: #FF6B35;
  border: none;
  height: 48px;
  padding: 0 30px;
  border-radius: 24px;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}


/* === client/css/workorder-live.css === */

      .wo-v2-page {
        margin: 0;
        min-height: 100%;
        height: 100%;
        background: #f2f3f5;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .wo-v2-main {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
      }
      .wo-v2-page .wo-list-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #f2f3f5;
        padding: 0 10px;
      }
      .wo-v2-close {
        position: absolute;
        left: 12px;
        border: none;
        background: transparent;
        color: #8e9199;
        font-size: var(--fs-xl, 18px);
        line-height: 1;
        padding: 0;
        width: 24px;
        height: 24px;
      }
      .wo-v2-nav {
        height: 40px;
        background: #fff;
        display: flex;
        align-items: center;
        padding: 0 12px;
        border-bottom: 1px solid #f1f1f3;
      }
      .wo-v2-back {
        width: 64px;
        border: none;
        background: transparent;
        color: #666a73;
        font-size: var(--fs-md, 14px);
        text-align: left;
        padding: 0;
      }
      .wo-v2-page .segment-control {
        padding: 6px 0;
      }
      .wo-v2-page .segment-item {
        height: 32px;
        padding: 0 20px;
        font-size: var(--fs-md, 14px);
        border-width: 2px;
        border-color: #FF6B35;
        color: #FF6B35;
        font-weight: 700;
      }
      .wo-v2-page .segment-item:first-child {
        border-radius: 16px 0 0 16px;
        border-right: none;
      }
      .wo-v2-page .segment-item:last-child {
        border-radius: 0 16px 16px 0;
        border-left: none;
      }
      .wo-v2-page .segment-item.active {
        color: #fff;
        background: #ff7e24;
        border-color: #ff7e24;
      }
      .wo-v2-page .filter-bar {
        background: #fff;
        border-bottom: 1px solid #f1f1f3;
        padding: 0 6px;
      }
      .wo-v2-page .filter-item {
        flex: 1;
        text-align: center;
        padding: 12px 2px 11px;
        font-size: var(--fs-md, 14px);
        color: #8b8e95;
      }
      .wo-v2-page .filter-item.active {
        color: #ff7e24;
        font-size: var(--fs-md, 14px);
        font-weight: 600;
      }
      .wo-v2-page .filter-item.active::after {
        width: 34px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        height: 2px;
        bottom: 0;
        border-radius: 0;
      }
      .wo-v2-page .search-bar {
        background: #fff;
        padding: 10px 12px 12px;
        margin-bottom: 0;
        flex-shrink: 0;
      }
      .wo-v2-page .search-input-wrapper {
        background: #f4f5f7;
        border-radius: 18px;
        padding: 7px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .wo-v2-page .search-icon {
        margin-right: 0;
        flex-shrink: 0;
      }
      .wo-v2-page .search-input-wrapper input {
        font-size: var(--fs-sm, 13px);
        flex: 1;
        min-width: 0;
      }
      .wo-v2-page .wo-search-clear {
        width: 20px;
        height: 20px;
        border: none;
        border-radius: 50%;
        background: #d3d7de;
        color: #fff;
        font-size: 12px;
        line-height: 20px;
        padding: 0;
        flex-shrink: 0;
      }
      .wo-v2-page .wo-search-clear.hidden {
        display: none;
      }
      .wo-v2-page .wo-search-btn {
        background: transparent;
        color: #8e929b;
        padding: 0 2px;
        flex-shrink: 0;
      }
      .wo-v2-page .list-container {
        background: transparent;
        padding: 8px 0 0;
      }
      .wo-v2-page .empty-state {
        margin-top: 28px;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #9fa3ac;
      }
      .wo-v2-page .empty-state .icon {
        line-height: 1;
      }
      .wo-v2-page .empty-state .icon .empty-icon-img {
        width: 66px;
        height: 66px;
        object-fit: contain;
        display: block;
      }
      .wo-v2-page .empty-state .text {
        margin-top: 10px;
        font-size: var(--fs-sm, 13px);
      }
      .wo-v2-page .workorder-card {
        background: #fff;
        border-radius: 8px;
        border: 1px solid #efeff2;
        padding: 12px 12px 10px;
        margin-bottom: 10px;
        box-shadow: none;
      }
      .wo-v2-page .workorder-card:last-child {
        margin-bottom: 4px;
      }
      .wo-v2-page .card-header-row {
        margin-bottom: 0;
        padding-bottom: 8px;
      }
      .wo-v2-page .service-name {
        font-size: var(--fs-xl, 18px);
        color: #32343a;
        font-weight: 500;
      }
      .wo-v2-page .checkbox-icon {
        margin-right: 8px;
      }
      .wo-v2-page .status-text {
        font-size: var(--fs-md, 14px);
        color: #8c9098;
      }
      .wo-v2-page .status-text.status-in_service {
        color: #575b63;
      }
      .wo-v2-page .status-text.status-completed {
        color: #676b74;
      }
      .wo-v2-page .status-text.status-alert {
        color: #f15454;
      }
      .wo-v2-page .status-overdue {
        font-size: var(--fs-sm, 13px);
        color: #f15454;
        margin-right: 8px;
        font-weight: 500;
      }
      .wo-v2-page .status-confirmed {
        font-size: var(--fs-sm, 13px);
        color: #4b8f3a;
        margin-right: 8px;
        font-weight: 500;
      }
      .wo-v2-page .card-content {
        border-top: 1px solid #f1f1f4;
        padding-top: 8px;
        margin-bottom: 8px;
      }
      .wo-v2-page .card-content.no-indent {
        padding-left: 0;
      }
      .wo-v2-page .info-line {
        display: flex;
        align-items: flex-start;
        gap: 2px;
        font-size: var(--fs-md, 14px);
        color: #3e424a;
        margin-bottom: 4px;
      }
      .wo-v2-page .info-line .label {
        flex: 0 0 92px;
        min-width: 92px;
        white-space: nowrap;
        color: #686c75;
      }
      .wo-v2-page .info-line .value {
        flex: 1;
        min-width: 0;
        white-space: normal;
        word-break: break-all;
        color: #3f434c;
      }
      .wo-v2-page .return-reason-note {
        margin-top: 6px;
        color: #f15454;
        font-size: var(--fs-sm, 13px);
        line-height: 1.45;
      }
      .wo-v2-page .card-footer-actions {
        border-top: 1px solid #f1f1f4;
        margin-top: 8px;
        padding-top: 8px;
        padding-left: 0;
        gap: 8px;
      }
      .wo-v2-page .btn-action {
        height: 32px;
        border-radius: 16px !important;
        padding: 0 14px !important;
        font-size: var(--fs-sm, 13px);
        font-weight: 500;
      }
      .wo-v2-page .btn-action.secondary {
        border-color: #dddee3;
        color: #555963;
      }
      .wo-v2-page .btn-action.secondary.btn-reject.marked {
        border-color: #ff7a22;
        color: #ff7a22;
        background: #fff6ee;
      }
      .wo-v2-page .wo-floating-bar {
        border-top: 1px solid #ececf1;
        box-shadow: 0 -4px 14px rgba(20, 22, 26, 0.04);
      }
      .wo-v2-page .select-info {
        color: #666a73;
        font-size: var(--fs-sm, 13px);
      }
      .wo-v2-page .btn-float-action {
        height: 38px;
        border-radius: 19px;
        padding: 0 18px;
        font-size: var(--fs-md, 14px);
        font-weight: 600;
      }
      .wo-v2-page .btn-float-action.disabled {
        background: #c9ccd4 !important;
      }
      .wo-reason-sheet-mask {
        position: fixed;
        inset: 0;
        background: rgba(18, 20, 24, 0.45);
        z-index: 1200;
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }
      .wo-reason-sheet {
        width: 100%;
        max-width: 480px;
        background: #fff;
        border-radius: 14px 14px 0 0;
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
        box-sizing: border-box;
      }
      .wo-reason-sheet-title {
        text-align: center;
        font-size: var(--fs-md, 14px);
        color: #666a73;
        margin-bottom: 10px;
      }
      .wo-reason-options {
        margin-bottom: 10px;
      }
      .wo-reason-option {
        width: 100%;
        border: none;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 4px;
        border-bottom: 1px solid #f2f2f4;
        font-size: var(--fs-md, 14px);
        color: #3d4149;
      }
      .wo-reason-option.active {
        color: #ff7e24;
        font-weight: 600;
      }
      .wo-reason-check {
        width: 18px;
        text-align: right;
        color: #ff7e24;
        font-size: 14px;
      }
      .wo-reason-other-wrap {
        margin: 8px 0 12px;
      }
      .wo-reason-other-input {
        width: 100%;
        min-height: 66px;
        border: 1px solid #e5e7ec;
        border-radius: 8px;
        padding: 8px 10px;
        box-sizing: border-box;
        font-size: var(--fs-sm, 13px);
        resize: none;
      }
      .wo-reason-submit {
        width: 100%;
        height: 40px;
        border: none;
        border-radius: 20px;
        background: #ff7e24;
        color: #fff;
        font-size: var(--fs-md, 14px);
        font-weight: 600;
      }
      .wo-phone-sheet-mask {
        position: fixed;
        inset: 0;
        background: rgba(18, 20, 24, 0.45);
        z-index: 1210;
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }
      .wo-phone-sheet {
        width: 100%;
        max-width: 480px;
        background: #fff;
        border-radius: 14px 14px 0 0;
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
        box-sizing: border-box;
      }
      .wo-phone-sheet-title {
        text-align: center;
        font-size: var(--fs-md, 14px);
        color: #666a73;
        margin-bottom: 10px;
      }
      .wo-phone-options {
        margin-bottom: 8px;
      }
      .wo-phone-option {
        width: 100%;
        border: none;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 4px;
        border-bottom: 1px solid #f2f2f4;
        font-size: var(--fs-md, 14px);
        color: #3d4149;
      }
      .wo-phone-cancel {
        width: 100%;
        height: 40px;
        border: 1px solid #dddee3;
        border-radius: 20px;
        background: #fff;
        color: #555963;
        font-size: var(--fs-md, 14px);
        font-weight: 500;
      }
      .wo-start-report-mask {
        position: fixed;
        inset: 0;
        background: rgba(18, 20, 24, 0.45);
        z-index: 1300;
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }
      .wo-start-report-sheet {
        width: 100%;
        max-width: 480px;
        background: #fff;
        border-radius: 14px 14px 0 0;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
        box-sizing: border-box;
      }
      .wo-start-sheet-title {
        text-align: center;
        font-size: var(--fs-md, 14px);
        color: #666a73;
        margin-bottom: 10px;
      }
      .wo-start-info-card {
        background: #fff;
        border: 1px solid #efeff2;
        border-radius: 8px;
        padding: 10px 10px 8px;
        margin-bottom: 8px;
      }
      .wo-start-service-name {
        font-size: var(--fs-lg, 16px);
        color: #333742;
        font-weight: 600;
        margin-bottom: 8px;
      }
      .wo-start-info-row {
        font-size: var(--fs-md, 14px);
        color: #3e424a;
        margin-bottom: 4px;
        line-height: 1.4;
      }
      .wo-start-info-row .label {
        color: #686c75;
      }
      .wo-start-upload-area {
        border: 1px dashed #f0c8a8;
        border-radius: 8px;
        background: #fff6ef;
        min-height: 84px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .wo-start-preview-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
      }
      .wo-start-preview-link {
        border: none;
        background: transparent;
        color: #ff7e24;
        font-size: var(--fs-sm, 13px);
        line-height: 1;
        padding: 0;
      }
      .wo-start-upload-btn {
        border: none;
        background: transparent;
        color: #ff7e24;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: var(--fs-sm, 13px);
      }
      .wo-start-upload-btn .icon {
        font-size: 26px;
        line-height: 1;
      }
      .wo-start-photo-thumb {
        position: relative;
        width: 72px;
        height: 72px;
        border-radius: 6px;
        overflow: hidden;
        background: #eee;
      }
      .wo-start-photo-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      .wo-start-photo-remove {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 18px;
        height: 18px;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-size: 12px;
        line-height: 18px;
        padding: 0;
      }
      .wo-start-action-stack {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .wo-start-photo-view-mask {
        position: fixed;
        inset: 0;
        background: #f2f3f5;
        z-index: 1400;
        display: flex;
        flex-direction: column;
      }
      .wo-start-photo-view-nav {
        height: 40px;
        background: #fff;
        border-bottom: 1px solid #efeff2;
        display: flex;
        align-items: center;
        padding: 0 12px;
      }
      .wo-start-photo-view-back {
        width: 64px;
        border: none;
        background: transparent;
        color: #666a73;
        font-size: var(--fs-md, 14px);
        text-align: left;
        padding: 0;
      }
      .wo-start-photo-view-title {
        flex: 1;
        text-align: center;
        margin-right: 64px;
        color: #333742;
        font-size: var(--fs-md, 14px);
        font-weight: 500;
      }
      .wo-start-photo-view-body {
        flex: 1;
        padding: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .wo-start-photo-view-body img {
        width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 6px;
        background: #fff;
      }
      .wo-start-photo-view-actions {
        padding: 0 12px calc(12px + env(safe-area-inset-bottom));
      }
      .wo-end-report-mask {
        position: fixed;
        inset: 0;
        background: rgba(18, 20, 24, 0.45);
        z-index: 1320;
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }
      .wo-end-report-sheet {
        width: 100%;
        max-width: 480px;
        background: #fff;
        border-radius: 14px 14px 0 0;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
        box-sizing: border-box;
      }
      .wo-end-sheet-title {
        text-align: center;
        font-size: var(--fs-md, 14px);
        color: #666a73;
        margin-bottom: 10px;
      }
      .wo-end-info-card {
        background: #fff;
        border: 1px solid #efeff2;
        border-radius: 8px;
        padding: 10px 10px 8px;
        margin-bottom: 8px;
      }
      .wo-end-service-name {
        font-size: var(--fs-lg, 16px);
        color: #333742;
        font-weight: 600;
        margin-bottom: 8px;
      }
      .wo-end-info-row {
        font-size: var(--fs-md, 14px);
        color: #3e424a;
        margin-bottom: 4px;
        line-height: 1.4;
      }
      .wo-end-info-row .label {
        color: #686c75;
      }
      .wo-end-photo-grid {
        margin-top: 8px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
      }
      .wo-end-photo-thumb {
        position: relative;
        width: 100%;
        padding-top: 100%;
        border-radius: 6px;
        overflow: hidden;
        background: #eee;
      }
      .wo-end-photo-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .wo-end-photo-remove {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 18px;
        height: 18px;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-size: 12px;
        line-height: 18px;
        padding: 0;
      }
      .wo-end-upload-btn {
        border: 1px dashed #f0c8a8;
        border-radius: 6px;
        background: #fff6ef;
        color: #ff7e24;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 72px;
        font-size: var(--fs-xs, 12px);
      }
      .wo-end-upload-btn .icon {
        font-size: 20px;
        line-height: 1;
      }
      .wo-end-photo-tip {
        margin-top: 8px;
        font-size: var(--fs-xs, 12px);
        color: #8a8f99;
      }
      .wo-end-action-stack {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .wo-loadmore-tip {
        padding: 8px 0 6px;
        text-align: center;
        font-size: var(--fs-md, 14px);
        color: #7f858f;
        margin-bottom: 8px;
      }
      .wo-v2-page.has-floating .wo-loadmore-tip {
        margin-bottom: calc(52px + env(safe-area-inset-bottom));
      }
      .wo-loadmore-loading {
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }
      .wo-loadmore-spinner {
        width: 12px;
        height: 12px;
        border: 2px solid #d7dbe2;
        border-top-color: #ff7e24;
        border-radius: 50%;
        animation: wo-loadmore-spin 0.8s linear infinite;
      }
      @keyframes wo-loadmore-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
      }
    