/* Figma: 109:435, 130:691, 33:1913, 3:54, 7:36. */
.feature-header-back, .feature-header-title { display: none; }
.app[data-feature-page] { padding-left: 18px; padding-right: 18px; min-height: calc(100vh - 110px); }
.app[data-feature-page] .top-bar { height: 110px; padding: 57px 20px 13px 18px; }
.app[data-feature-page] .top-bar-user,
.app[data-feature-page] .notification-btn { display: none; }
.app[data-feature-page] .top-bar-actions { margin-left: auto; }
.app[data-feature-page] .feature-header-back {
  position: relative; display: block; padding: 0; width: 40px; height: 40px;
  border: 0; background: transparent; flex-shrink: 0; cursor: pointer;
}
.feature-header-back img { display: block; }
.feature-header-back span { position: absolute; inset: 0; color: var(--pf-brown); font-size: 28px; line-height: 36px; }
.app[data-feature-page] .feature-header-title {
  display: block; position: absolute; left: 74px; right: 74px; top: 61px;
  margin: 0; font-size: 16px; line-height: 32px; text-align: center; color: var(--pf-brown);
}
.erp-feature-page { padding-top: 8px; }
.erp-feature-heading {
  display: none;
}
.erp-feature-page .card { border: 1px solid #eee8df; border-radius: 20px; box-shadow: none; }
body:has(.app[data-feature-page]) .customer-preview-footer { display: none; }

/* Confirmation keeps the real address, cancellation and location-change handlers. */
#locationModal .location-confirm-card {
  position: relative; display: flex; flex-direction: column;
  width: 308px; max-width: 100%; min-height: 240px;
  padding: 20px; border-radius: 20px; gap: 20px;
}
.location-confirm-heading h2 { margin: 0 0 7px; font-size: 16px; line-height: 19px; }
#locationModal .preview-label { margin: 0; font-size: 11px; line-height: 13px; color: var(--pf-brown-light); font-weight: 700; }
#locationModal .location-confirm-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; background: transparent; color: var(--pf-brown-light); font-size: 20px; cursor: pointer; }
#locationModal .location-preview { display: flex; align-items: center; gap: 15px; margin: 0; padding: 10px; border: 0; border-radius: 10px; background: var(--pf-bg); }
#locationModal .location-preview img { display: block; flex-shrink: 0; }
#locationModal .location-preview strong { min-width: 0; font-size: 16px; line-height: 20px; overflow-wrap: anywhere; }
.location-confirm-bottom { margin-top: auto; }
#locationModal .confirm-message { margin: 0 0 10px; font-size: 11px; line-height: 13px; text-align: left; color: var(--pf-brown-light); font-weight: 700; }
.location-confirm-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.location-confirm-actions button { min-height: 30px; padding: 6px 9px; border: 0; border-radius: 27px; font-size: 12px; font-weight: 700; line-height: 18px; cursor: pointer; white-space: nowrap; }
#locationModal #confirmLocationBtn { width: 119px; flex-shrink: 0; background: var(--pf-yellow); color: var(--pf-brown); }
#locationModal #changeBeforeOpenBtn { width: 82px; flex-shrink: 0; background: var(--pf-cream); color: var(--pf-brown-light); }

/* Operating state: time above the address; two compact actions below. */
#todayBusinessSection:has(.status.open) { display: flex; flex-direction: column; min-height: 197px; }
#todayBusinessSection:has(.status.open) .business-kicker,
#todayBusinessSection:has(.status.open) .location-label,
#todayBusinessSection:has(.status.closed) .business-kicker,
#todayBusinessSection:has(.status.closed) .location-label { display: none; }
#todayBusinessSection #internalBusinessInfo { border: 0; padding: 0; margin: 0; background: transparent; }
#todayBusinessSection #internalBusinessInfo > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 0; }
#todayBusinessSection #internalBusinessInfo span,
#todayBusinessSection #internalBusinessInfo strong { font-size: 11px; line-height: 13px; color: var(--pf-brown-light); font-weight: 700; }
#todayBusinessSection:has(.status.open) h2 { min-height: 39px; margin-bottom: 18px; }
#todayBusinessSection #openBusinessActions { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 8px; }
#todayBusinessSection #changeCurrentLocationBtn,
#todayBusinessSection #endBusinessBtn { width: auto; min-height: 30px; margin: 0; padding: 6px 10px; border: 0; border-radius: 27px; font-size: 12px; line-height: 18px; font-weight: 700; }
#todayBusinessSection #changeCurrentLocationBtn { min-width: 130px; background: white; color: var(--pf-brown-light); }
#todayBusinessSection #endBusinessBtn { min-width: 100px; background: var(--pf-yellow); color: var(--pf-brown); }
#todayBusinessSection #lastMoveRow { margin-bottom: 10px; font-size: 11px; color: var(--pf-brown-light); overflow-wrap: anywhere; }

/* Performance: responsive grid using live amounts instead of design sample values. */
#myPerformanceSection { margin: 0 -1px 16px; padding: 18px 17px; border-radius: 21px; }
#myPerformanceSection > .section-title { justify-content: flex-end; height: 24px; margin-bottom: 18px; }
#myPerformanceSection > .section-title > span:first-child { display: none; }
#myPerformanceSection .performance-month-label { color: var(--pf-brown-light); font-size: 12px; font-weight: 400; }
#myPerformanceSection .today-sales-box { min-height: 106px; margin-bottom: 18px; padding: 12px 14px; gap: 10px; border-radius: 15px; }
#myPerformanceSection .performance-label { margin-bottom: 4px; font-size: 12px; color: var(--pf-brown-light); }
#myPerformanceSection .today-sales-number { font-size: 30px; line-height: 36px; overflow-wrap: anywhere; }
#myPerformanceSection .sales-last-updated { display: block; margin-top: 4px; font-size: 11px; color: #968a7e; }
#myPerformanceSection .performance-update-btn { flex-shrink: 0; width: 78px; padding: 0; border-radius: 12px; background: var(--pf-yellow); color: var(--pf-brown); font-size: 13px; }
#myPerformanceSection .month-performance { padding: 0; }
#myPerformanceSection .month-performance-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
#myPerformanceSection .month-performance-top strong { font-size: 20px; line-height: 28px; overflow-wrap: anywhere; }
#myPerformanceSection .performance-rate-row { margin-top: 20px; margin-bottom: 9px; color: var(--pf-brown-light); font-size: 12px; }
#myPerformanceSection .performance-rate-row strong { color: var(--pf-brown); font-size: 13px; }
#myPerformanceSection .performance-progress-bar { background: var(--pf-yellow); }
#myPerformanceSection .performance-grid { margin-top: 16px; gap: 12px; }
#myPerformanceSection .performance-grid > div { min-height: 63px; padding: 8px 11px; }
#myPerformanceSection .performance-grid strong { font-size: 17px; line-height: 24px; overflow-wrap: anywhere; }
#myPerformanceSection .performance-grid span { color: var(--pf-brown-light); }
#myPerformanceSection .performance-grid .required-average { min-height: 58px; padding: 6px 12px; }
#myPerformanceSection .required-average strong { font-size: 21px; }
.performance-extra .reward-summary { margin-bottom: 0; }

/* Shared task page: compact rows, with conditional tasks retaining their state. */
#tasksFeaturePage .card { margin-bottom: 8px; padding: 17px 16px; }
#tasksFeaturePage .section-title { font-size: 17px; margin-bottom: 18px; }
#tasksFeaturePage #taskProgressCount { font-size: 13px; color: var(--pf-brown-light); font-weight: 400; }
#tasksFeaturePage .task-list { display: flex; flex-direction: column; gap: 6px; }
#tasksFeaturePage .task-item { min-height: 42px; padding: 10px 14px; border-radius: 10px; background: #f8f6f2; font-size: 14px; }
#tasksFeaturePage .task-item.completed { background: #eef7ea; }
#specialTaskSection .section-title { margin-bottom: 10px; font-size: 16px; }
#specialTaskSection .section-title > span:last-child { font-size: 11px; color: var(--pf-brown-light); }
#specialTaskSection .special-task-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#specialTaskSection .special-task-row strong { font-size: 13px; font-weight: 400; color: var(--pf-brown-light); }
#specialTaskSection .special-task-row p { display: none; }
#specialTaskSection .task-status-text { margin: 0 0 0 6px; font-size: 11px; }
#specialTaskSection .small-btn { min-height: 20px; border: 0; padding: 0; background: transparent; font-size: 13px; color: var(--pf-brown-light); white-space: nowrap; }

/* People cards keep live photos and a collapsible location detail. */
#todayPuffmanSection { padding: 15px; }
#todayPuffmanSection .section-title { margin-bottom: 18px; font-size: 17px; }
#todayPuffmanSection .team-wall-subtitle { margin-top: 7px; color: #968a7e; font-size: 11px; }
#todayPuffmanSection .team-visible-label { display: none; }
#todayPuffmanSection .team-wall-track { gap: 8px; padding-bottom: 3px; }
#todayPuffmanSection .team-person-card { flex: 0 0 101px; min-width: 101px; width: 101px; padding: 9px 8px; border: 1px solid #eee8df; border-radius: 13px; }
#todayPuffmanSection .team-person-photo,
#todayPuffmanSection .team-photo-placeholder,
#todayPuffmanSection .team-photo-preview { height: 68px; border-radius: 10px; font-size: 18px; }
#todayPuffmanSection .team-person-photo { margin-bottom: 7px; }
#todayPuffmanSection .team-person-card > strong { font-size: 14px; line-height: 19px; margin-bottom: 2px; }
#todayPuffmanSection .team-person-status { font-size: 10px; line-height: 14px; color: var(--pf-brown-light); font-weight: 400; }
.team-person-details { margin-top: 4px; font-size: 10px; line-height: 15px; color: var(--pf-brown-light); }
.team-person-details summary { cursor: pointer; }
.team-person-details p { margin: 5px 0 0; overflow-wrap: anywhere; }
#todayPuffmanSection .team-wall-help { margin: 10px 0 0; font-size: 11px; }
