* {
  box-sizing: border-box;
}

.operating-dialog input[type="checkbox"] { width:20px; min-height:20px; margin:0 8px 0 0; vertical-align:middle; }
.operating-dialog button { margin:6px 4px 6px 0; padding:9px 16px; border:1px solid #d5bb8d; border-radius:999px; background:#fae7c5; color:#6b461c; font:inherit; cursor:pointer; }
.operating-dialog fieldset { border:1px solid #d5bb8d; border-radius:12px; margin:16px 0; min-width:0; }
.operating-dialog label { overflow-wrap:anywhere; }


body {
  margin: 0;

  font-family:
    "Microsoft JhengHei",
    Arial,
    sans-serif;

  background: #f7f5f0;

  color: #2f2a24;
}


button,
input,
select {
  font-family: inherit;
}


.hidden {
  display: none !important;
}


.app {
  width: 100%;

  max-width: 480px;

  margin: 0 auto;

  padding: 22px 16px 40px;
}



/* ===================== */
/* 頂部 */
/* ===================== */

.top-bar {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  margin-bottom: 22px;
}


.hello {
  margin: 0 0 6px;

  font-size: 15px;

  color: #7a6d60;
}


.top-bar h1 {
  margin: 0;

  font-size: 22px;

  line-height: 1.4;
}


.notification-btn {
  width: 44px;

  height: 44px;

  border: none;

  border-radius: 50%;

  background: white;

  font-size: 20px;

  cursor: pointer;
}



/* ===================== */
/* 卡片 */
/* ===================== */

.card {
  background: white;

  border-radius: 20px;

  padding: 18px;

  margin-bottom: 16px;

  border: 1px solid #eee8df;
}


.business-card {
  background: #fff9e9;
}


.section-title {
  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 15px;

  font-weight: bold;

  margin-bottom: 14px;
}



/* ===================== */
/* 營業 */
/* ===================== */

.location-label {
  margin: 0 0 6px;

  font-size: 12px;

  color: #8a8179;
}


.business-card h2 {
  margin: 0 0 8px;

  font-size: 19px;

  line-height: 1.5;
}


.time {
  margin: 5px 0;

  font-size: 14px;

  color: #746b62;
}


.status {
  padding: 6px 10px;

  border-radius: 999px;

  font-size: 12px;
}


.status.waiting {
  background: #eee9e0;

  color: #756b60;
}


.status.open {
  background: #dff3dd;

  color: #39723c;
}


.internal-info {
  margin-top: 16px;

  padding: 12px 14px;

  background: rgba(255,255,255,0.65);

  border-radius: 12px;
}


.internal-info > div {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  padding: 4px 0;

  font-size: 13px;
}


.internal-info span {
  color: #887d72;
}


.internal-info strong {
  color: #443b33;
}


.primary-btn {
  width: 100%;

  min-height: 50px;

  margin-top: 18px;

  border: none;

  border-radius: 14px;

  background: #f5b942;

  color: #2e2417;

  font-size: 16px;

  font-weight: bold;

  cursor: pointer;
}


.business-actions {
  margin-top: 14px;
}


.secondary-action-btn {
  width: 100%;

  min-height: 50px;

  border: 1px solid #d9c98f;

  border-radius: 14px;

  background: white;

  color: #443b33;

  font-size: 15px;

  font-weight: bold;

  cursor: pointer;
}



/* ===================== */
/* 業績 */
/* ===================== */

.sales-number {
  display: flex;

  align-items: baseline;

  gap: 6px;

  margin-bottom: 12px;
}


.sales-number strong {
  font-size: 28px;
}


.sales-number span {
  color: #8a8179;

  font-size: 14px;
}


.progress {
  width: 100%;

  height: 10px;

  background: #ece7df;

  border-radius: 999px;

  overflow: hidden;
}


.progress-bar {
  width: 68%;

  height: 100%;

  background: #f5b942;

  border-radius: 999px;
}



/* ===================== */
/* 特殊任務 */
/* ===================== */

.special-card {
  border: 1px solid #f2d68b;
}


.special-task {
  display: flex;

  align-items: center;

  gap: 12px;
}


.task-icon {
  width: 46px;

  height: 46px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #fff3cf;

  border-radius: 14px;

  font-size: 22px;

  flex-shrink: 0;
}


.task-content {
  flex: 1;

  min-width: 0;
}


.task-content strong {
  display: block;

  font-size: 14px;

  margin-bottom: 4px;
}


.task-content p {
  margin: 0;

  color: #81776d;

  font-size: 12px;

  line-height: 1.4;
}


.small-btn {
  border: none;

  background: #f5b942;

  border-radius: 10px;

  padding: 9px 12px;

  font-weight: bold;

  cursor: pointer;
}



/* ===================== */
/* 任務 */
/* ===================== */

.task-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}


.task-item {
  display: flex;

  justify-content: space-between;

  align-items: center;

  min-height: 48px;

  padding: 0 14px;

  background: #f8f6f2;

  border-radius: 12px;

  font-size: 14px;
}


.task-item.completed {
  background: #eef7ea;
}



/* ===================== */
/* 位置歷史 */
/* ===================== */

.internal-tag {
  padding: 5px 9px;

  border-radius: 999px;

  background: #f0ede8;

  color: #746b62;

  font-size: 11px;
}


.history-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}


.history-item {
  padding: 12px 14px;

  background: #f8f6f2;

  border-radius: 12px;
}


.history-top {
  display: flex;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 5px;
}


.history-top strong {
  font-size: 13px;
}


.history-time {
  color: #8b8178;

  font-size: 12px;
}


.history-address {
  margin: 0;

  font-size: 13px;

  line-height: 1.5;
}


.history-reason {
  margin: 5px 0 0;

  color: #8b8178;

  font-size: 12px;
}



/* ===================== */
/* 其他功能 */
/* ===================== */

.menu-section {
  margin-top: 24px;
}


.menu-section h2 {
  font-size: 17px;

  margin-bottom: 12px;
}


.menu-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;
}


.menu-item {
  border: 1px solid #eee8df;

  background: white;

  border-radius: 16px;

  padding: 18px 10px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  font-size: 14px;

  cursor: pointer;
}


.menu-icon {
  font-size: 24px;
}



/* ===================== */
/* Modal */
/* ===================== */

.modal-overlay {
  display: none;

  position: fixed;

  inset: 0;

  z-index: 1000;

  align-items: center;

  justify-content: center;

  padding: 18px;

  background: rgba(40, 34, 28, 0.48);
}


.modal-overlay.show {
  display: flex;
}


.modal-card {
  width: 100%;

  max-width: 430px;

  max-height: 90vh;

  overflow-y: auto;

  padding: 22px;

  background: white;

  border-radius: 24px;
}


.modal-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  margin-bottom: 22px;
}


.modal-small-title {
  margin: 0 0 4px;

  color: #9b8e80;

  font-size: 13px;
}


.modal-header h2 {
  margin: 0;

  font-size: 22px;
}


.close-btn {
  width: 38px;

  height: 38px;

  border: none;

  border-radius: 50%;

  background: #f3f0ea;

  color: #6e655c;

  font-size: 24px;

  cursor: pointer;
}


.preview-label {
  margin: 0 0 8px;

  color: #8b8178;

  font-size: 12px;
}


.location-preview {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 16px;

  margin-bottom: 14px;

  background: #fff8e7;

  border-radius: 16px;
}


.location-pin {
  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 12px;

  background: #f5b942;

  font-size: 20px;
}


.location-preview strong {
  display: block;

  font-size: 16px;

  line-height: 1.5;
}


.schedule-box {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 14px 16px;

  margin-bottom: 20px;

  background: #f7f5f0;

  border-radius: 13px;

  font-size: 14px;
}


.schedule-box span {
  color: #81776d;
}


.confirm-message {
  margin: 0 0 15px;

  text-align: center;

  color: #71675d;

  font-size: 14px;
}


.modal-primary-btn,
.modal-secondary-btn,
.modal-cancel-btn {
  width: 100%;

  min-height: 50px;

  border-radius: 14px;

  font-size: 15px;

  cursor: pointer;
}


.modal-primary-btn {
  margin-bottom: 10px;

  border: none;

  background: #f5b942;

  color: #2e2417;

  font-weight: bold;
}


.modal-secondary-btn {
  margin-bottom: 6px;

  border: 1px solid #dcd5cc;

  background: white;

  color: #443c34;

  font-weight: bold;
}


.modal-cancel-btn {
  border: none;

  background: transparent;

  color: #8b8178;
}



/* ===================== */
/* 修改位置 */
/* ===================== */

.current-location-box {
  padding: 14px 16px;

  margin-bottom: 18px;

  background: #f7f5f0;

  border-radius: 14px;
}


.current-location-box span {
  display: block;

  margin-bottom: 5px;

  color: #8b8178;

  font-size: 12px;
}


.current-location-box strong {
  display: block;

  font-size: 14px;

  line-height: 1.5;
}


.form-group {
  margin-bottom: 18px;
}


.form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;

  font-weight: bold;
}


.form-group input,
.form-group select {
  width: 100%;

  min-height: 48px;

  padding: 0 14px;

  border: 1px solid #ded7cf;

  border-radius: 12px;

  background: white;

  color: #2f2a24;

  font-size: 16px;

  outline: none;
}


.form-group input:focus,
.form-group select:focus {
  border-color: #f5b942;
}


.auto-sync-box {
  display: flex;

  align-items: flex-start;

  gap: 11px;

  padding: 14px;

  margin-bottom: 18px;

  background: #fff8e7;

  border-radius: 14px;
}


.auto-sync-box > span {
  font-size: 18px;
}


.auto-sync-box strong {
  display: block;

  margin-bottom: 4px;

  font-size: 13px;
}


.auto-sync-box p {
  margin: 0;

  color: #81776d;

  font-size: 12px;

  line-height: 1.5;
}


@media (min-width: 700px) {

  .app {
    padding-top: 40px;
  }

}
/* ===================================== */
/* 結束營業 */
/* ===================================== */

.end-business-btn {
  width: 100%;

  min-height: 50px;

  margin-top: 10px;

  border: 1px solid #d8d1c8;

  border-radius: 14px;

  background: #f3f0eb;

  color: #665d54;

  font-size: 15px;

  font-weight: bold;

  cursor: pointer;
}


.status.closed {
  background: #e7e4df;

  color: #625c56;
}


.end-summary {
  margin-bottom: 16px;

  padding: 15px 16px;

  background: #f7f5f0;

  border-radius: 14px;
}


.end-summary > div {
  display: flex;

  justify-content: space-between;

  gap: 12px;

  padding: 6px 0;

  font-size: 13px;
}


.end-summary span {
  color: #81776d;
}


.end-summary strong {
  text-align: right;

  line-height: 1.4;
}


.end-warning {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  padding: 14px;

  margin-bottom: 18px;

  background: #ffffff;

  border-radius: 14px;
}


.end-warning p {
  margin: 0;

  color: #746b62;

  font-size: 13px;

  line-height: 1.6;
}


.end-confirm-btn {
  width: 100%;

  min-height: 50px;

  margin-bottom: 8px;

  border: none;

  border-radius: 14px;

  background: #5f5953;

  color: white;

  font-size: 15px;

  font-weight: bold;

  cursor: pointer;
}
/* ===================================== */
/* Prototype 測試工具 */
/* 正式版會移除 */
/* ===================================== */

.prototype-tools {
  width: 100%;

  max-width: 480px;

  margin: 0 auto;

  padding: 0 16px 30px;
}


.prototype-tools p {
  margin: 0 0 8px;

  color: #958a7f;

  font-size: 12px;
}


.customer-preview-btn {
  width: 100%;

  min-height: 48px;

  border: 1px dashed #d2c6b9;

  border-radius: 13px;

  background: white;

  color: #655b51;

  font-size: 14px;

  font-weight: bold;

  cursor: pointer;
}
/* ===================================== */
/* Step 11 最終版 */
/* ===================================== */

.performance-card {
  overflow: hidden;
}


.performance-month-label,
.team-visible-label {
  color: #968a7e;
  font-size: 11px;
}


.today-sales-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;

  margin-bottom: 17px;
  padding: 17px;

  background: #fff7e3;

  border-radius: 16px;
}


.performance-label {
  display: block;

  margin-bottom: 4px;

  color: #897e73;

  font-size: 11px;
}


.today-sales-number {
  display: block;

  font-size: 27px;
}


.performance-update-btn {
  min-height: 40px;

  padding: 0 14px;

  border: none;
  border-radius: 11px;

  background: #f5b942;

  color: #332616;

  font-weight: bold;

  cursor: pointer;
}


.month-performance {
  padding: 2px 2px 4px;
}


.month-performance-top {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 15px;
}


.month-performance-top strong {
  display: block;

  font-size: 17px;
}


.align-right {
  text-align: right;
}


.performance-rate-row {
  display: flex;

  justify-content: space-between;

  margin-top: 18px;
  margin-bottom: 7px;

  color: #796f65;

  font-size: 12px;
}


.performance-progress {
  height: 9px;

  overflow: hidden;

  background: #eee8df;

  border-radius: 999px;
}


.performance-progress-bar {
  width: 0;
  height: 100%;

  background: #f5b942;

  border-radius: 999px;

  transition:
    width 0.25s ease;
}


.performance-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-top: 15px;
}


.performance-grid > div {
  padding: 12px;

  background: #f8f5f0;

  border-radius: 12px;
}


.performance-grid span {
  display: block;

  margin-bottom: 4px;

  color: #91867b;

  font-size: 11px;
}


.performance-grid strong {
  display: block;

  font-size: 15px;
}


.performance-grid .required-average {
  grid-column:
    1 / -1;

  background: #fff3d4;
}


.required-average strong {
  color: #9b6916;

  font-size: 21px;
}



/* 任務 */

.task-item {
  width: 100%;

  border: none;

  color: inherit;

  text-align: left;

  cursor: pointer;
}


.task-item.completed {
  background: #eef7ea;
}


.task-item.completed span:last-child {
  color: #39723c;

  font-weight: bold;
}


.task-status-text {
  display: inline-block;

  margin-top: 5px;

  color: #a97420;

  font-size: 11px;

  font-weight: bold;
}


.task-status-text.completed {
  color: #39723c;
}



/* 團隊牆 */

.team-share-card {
  display: flex;

  align-items: center;

  gap: 13px;
}


.team-photo-placeholder,
.team-photo-preview {
  width: 82px;

  height: 82px;

  flex-shrink: 0;

  border-radius: 14px;
}


.team-photo-placeholder {
  display: flex;

  align-items: center;

  justify-content: center;

  background: #f4efe8;

  font-size: 26px;
}


.team-photo-preview {
  object-fit: cover;
}


.team-share-info {
  min-width: 0;
}


.team-share-info strong {
  display: block;

  margin-bottom: 5px;

  font-size: 14px;
}


.team-share-info p {
  margin: 0 0 5px;

  color: #7d7369;

  font-size: 12px;

  line-height: 1.5;
}


.team-share-info span {
  color: #a37a31;

  font-size: 11px;

  font-weight: bold;
}


.team-wall-help {
  margin: 13px 0 0;

  color: #958a7f;

  font-size: 11px;

  line-height: 1.6;
}



/* Modal */

.task-modal-description {
  margin: -6px 0 17px;

  color: #81776d;

  font-size: 13px;

  line-height: 1.6;
}


.task-panel {
  margin-bottom: 18px;
}


.upload-box {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  min-height: 145px;

  padding: 20px;

  border:
    1px dashed #d7c797;

  border-radius: 17px;

  background: #fffaf0;

  text-align: center;

  cursor: pointer;
}


.upload-box input {
  display: none;
}


.upload-icon {
  margin-bottom: 8px;

  font-size: 30px;
}


.upload-box strong {
  margin-bottom: 5px;

  font-size: 15px;
}


.upload-box > span:last-of-type {
  color: #8b8178;

  font-size: 12px;
}


.selected-file {
  margin: 9px 0 0;

  color: #857a70;

  font-size: 12px;

  overflow-wrap: anywhere;
}


.selected-file.selected {
  color: #39723c;

  font-weight: bold;
}


.task-field-label {
  display: block;

  margin: 0 0 8px;

  font-size: 14px;

  font-weight: bold;
}


.sales-note-label {
  margin-top: 18px;
}


.money-input {
  display: flex;

  align-items: center;

  min-height: 55px;

  padding: 0 15px;

  border:
    1px solid #ded7cf;

  border-radius: 13px;

  background: white;
}


.money-input span {
  margin-right: 8px;

  font-size: 20px;

  font-weight: bold;
}


.money-input input {
  width: 100%;

  border: none;

  outline: none;

  font-size: 21px;

  font-weight: bold;
}


.task-textarea {
  width: 100%;

  min-height: 130px;

  padding: 13px 14px;

  border:
    1px solid #ded7cf;

  border-radius: 13px;

  outline: none;

  resize: vertical;

  font-family: inherit;

  font-size: 16px;

  line-height: 1.6;
}


.task-help {
  margin: 8px 2px 0;

  color: #91867b;

  font-size: 12px;

  line-height: 1.5;
}


.check-task {
  display: flex;

  align-items: center;

  gap: 11px;

  min-height: 51px;

  margin-bottom: 8px;

  padding: 0 13px;

  background: #f8f6f2;

  border-radius: 12px;

  cursor: pointer;
}


.check-task input {
  width: 20px;

  height: 20px;

  flex-shrink: 0;
}


.recording-notice {
  padding: 14px;

  margin-bottom: 14px;

  background: #fff5dc;

  border-radius: 14px;
}


.recording-notice strong {
  display: block;

  margin-bottom: 5px;
}


.recording-notice p {
  margin: 0;

  color: #7e7368;

  font-size: 12px;

  line-height: 1.6;
}
/* ===================================== */
/* 預估業績報酬 */
/* ===================================== */

.reward-summary {
  margin-top: 16px;

  padding: 16px;

  background: #fff7e3;

  border-radius: 15px;
}


.reward-title-row {
  display: flex;

  justify-content: space-between;

  align-items: center;
}


.reward-title-row > div > span {
  display: block;

  margin-bottom: 5px;

  color: #8a7d6f;

  font-size: 12px;
}


.reward-title-row strong {
  display: block;

  color: #3b3025;

  font-size: 24px;
}


.sales-last-updated {
  display: block;

  margin-top: 4px;

  color: #9a8f84;

  font-size: 11px;
}


.performance-update-btn:disabled {
  opacity: 0.55;

  cursor: default;
}
/* ===================================== */
/* 最終營業額 */
/* ===================================== */

.final-sales-box {
  margin: 18px 0;

  padding: 16px;

  background: #fffaf0;

  border: 1px solid #eee0ba;

  border-radius: 16px;
}


.final-sales-current {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  margin-bottom: 17px;

  padding-bottom: 13px;

  border-bottom: 1px solid #eee4d2;
}


.final-sales-current span {
  color: #887d72;

  font-size: 12px;
}


.final-sales-current strong {
  font-size: 18px;
}


.final-sales-field {
  margin-bottom: 16px;
}


.final-sales-field label {
  display: block;

  margin-bottom: 8px;

  font-size: 13px;

  font-weight: bold;
}


.final-sales-field label small {
  margin-left: 4px;

  color: #9c9187;

  font-size: 11px;

  font-weight: normal;
}


.final-sales-note {
  min-height: 90px;
}


.official-sales-notice {
  display: flex;

  align-items: flex-start;

  gap: 9px;

  padding: 12px 13px;

  background: #eef7ea;

  border-radius: 12px;
}


.official-sales-notice > span {
  color: #39723c;

  font-weight: bold;
}


.official-sales-notice p {
  margin: 0;

  color: #5f6e5d;

  font-size: 11px;

  line-height: 1.55;
}
/* ===================================== */
/* 今日泡芙人橫向滑動 */
/* ===================================== */

.team-wall-section {
  overflow: hidden;
}


.team-wall-subtitle {
  display: block;

  margin-top: 3px;

  color: #9b9085;

  font-size: 10px;

  font-weight: normal;
}


.team-wall-track {
  display: flex;

  gap: 11px;

  overflow-x: auto;

  padding-bottom: 9px;

  scroll-snap-type:
    x proximity;

  scrollbar-width: none;
}


.team-wall-track::-webkit-scrollbar {
  display: none;
}


.team-person-card {
  width: 145px;

  min-width: 145px;

  padding: 10px;

  border: 1px solid #eee6dc;

  border-radius: 16px;

  background: #faf8f4;

  scroll-snap-align: start;
}


.team-person-photo,
.team-photo-placeholder,
.team-photo-preview {
  width: 100%;

  height: 112px;

  margin-bottom: 9px;

  border-radius: 12px;
}


.team-person-photo,
.team-photo-placeholder {
  display: flex;

  align-items: center;

  justify-content: center;

  background: #f0ece5;

  font-size: 27px;
}


.team-photo-preview {
  display: block;

  object-fit: cover;
}


.team-person-card > strong {
  display: block;

  margin-bottom: 4px;

  font-size: 14px;
}


.team-person-card > p {
  min-height: 34px;

  margin: 0 0 6px;

  color: #80756a;

  font-size: 11px;

  line-height: 1.5;
}


.team-person-status {
  display: inline-block;

  font-size: 10px;

  font-weight: bold;
}


.team-person-status.open {
  color: #39723c;
}


.team-person-status.waiting {
  color: #9a7a3f;
}


.team-person-status.closed {
  color: #807870;
}
/* Step 11C：回報狀態與窄螢幕排版 */
#dutyTaskStatus { font-size: 12px; white-space: nowrap; }
.check-task:has(input:checked) { background: #eef7ea; }
.check-task input { accent-color: #39723c; }
.team-person-photo > .team-photo-placeholder,
.team-person-photo > .team-photo-preview { margin-bottom: 0; }
.team-person-card > p { overflow-wrap: anywhere; }
.team-wall-track:focus-visible { outline: 2px solid #9b6916; outline-offset: 3px; }
.money-input input { min-width: 0; }
.performance-grid strong #remainingShiftDays { display: inline; color: inherit; font-size: inherit; }
@media (max-width: 360px) {
  .team-wall-section .section-title { flex-wrap: wrap; gap: 8px; }
  .month-performance-top strong { font-size: 20px; }
}
/* ===================================== */
/* Step 12 我的班表 */
/* ===================================== */

.schedule-page {
  min-height: 100vh;

  background: #f7f5f0;
}


.schedule-page-inner {
  width: 100%;

  max-width: 480px;

  margin: 0 auto;

  padding: 22px 16px 45px;
}



/* 頂部 */

.schedule-page-header {
  display: flex;

  align-items: center;

  gap: 13px;

  margin-bottom: 22px;
}


.schedule-page-header p {
  margin: 0 0 3px;

  color: #978b80;

  font-size: 11px;
}


.schedule-page-header h1 {
  margin: 0;

  font-size: 23px;
}


.schedule-back-btn {
  width: 42px;

  height: 42px;

  flex-shrink: 0;

  border: none;

  border-radius: 50%;

  background: white;

  color: #51483f;

  font-size: 21px;

  font-weight: bold;

  cursor: pointer;
}



/* 月份切換 */

.schedule-month-card {
  display: grid;

  grid-template-columns:
    44px 1fr 44px;

  align-items: center;

  gap: 8px;

  padding: 15px;

  margin-bottom: 12px;

  background: #fff9e9;

  border: 1px solid #eee3c6;

  border-radius: 19px;

  text-align: center;
}


.schedule-month-card span {
  display: block;

  margin-bottom: 3px;

  color: #a27b35;

  font-size: 9px;

  font-weight: bold;

  letter-spacing: 1px;
}


.schedule-month-card strong {
  display: block;

  font-size: 18px;
}


.schedule-month-arrow {
  width: 40px;

  height: 40px;

  border: none;

  border-radius: 50%;

  background: rgba(255,255,255,0.75);

  color: #675b4d;

  font-size: 24px;

  cursor: pointer;
}



/* 摘要 */

.schedule-summary-card {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-bottom: 24px;
}


.schedule-summary-card > div {
  padding: 16px;

  background: white;

  border: 1px solid #eee8df;

  border-radius: 16px;
}


.schedule-summary-card span {
  display: block;

  margin-bottom: 7px;

  color: #91867b;

  font-size: 11px;
}


.schedule-summary-card strong {
  font-size: 24px;
}


.schedule-summary-card small {
  margin-left: 3px;

  color: #91867b;

  font-size: 11px;
}



/* 標題 */

.schedule-list-heading {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  margin-bottom: 12px;
}


.schedule-list-heading p {
  margin: 0 0 3px;

  color: #b49767;

  font-size: 9px;

  font-weight: bold;

  letter-spacing: 1px;
}


.schedule-list-heading h2 {
  margin: 0;

  font-size: 18px;
}


.schedule-list-heading > span {
  color: #948a80;

  font-size: 11px;
}



/* 班表 */

.schedule-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}


.schedule-item {
  display: grid;

  grid-template-columns:
    62px 1fr;

  gap: 13px;

  padding: 13px;

  background: white;

  border: 1px solid #eee8df;

  border-radius: 17px;
}


.schedule-date-box {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  min-height: 70px;

  background: #fff2ce;

  border-radius: 13px;
}


.schedule-date-box strong {
  font-size: 17px;
}


.schedule-date-box span {
  margin-top: 3px;

  color: #98722c;

  font-size: 10px;

  font-weight: bold;
}


.schedule-item-info {
  min-width: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;
}


.schedule-work-label {
  display: inline-block;

  align-self: flex-start;

  margin-bottom: 6px;

  padding: 4px 7px;

  background: #e4f3df;

  border-radius: 999px;

  color: #39723c;

  font-size: 9px;

  font-weight: bold;
}


.schedule-item-info strong {
  margin-bottom: 4px;

  font-size: 14px;
}


.schedule-item-info p {
  margin: 0;

  color: #7e746a;

  font-size: 11px;

  line-height: 1.5;

  overflow-wrap: anywhere;
}



/* 休假 */

.schedule-item.off-day {
  opacity: 0.75;
}


.schedule-item.off-day
.schedule-date-box {
  background: #efede9;
}


.schedule-item.off-day
.schedule-work-label {
  background: #efede9;

  color: #766e66;
}
/* ===================================== */
/* Step 12-5 Prototype 調假 */
/* ===================================== */

.schedule-swap-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ead9ad;
  border-radius: 10px;
  background: #fff8e5;
  color: #8b671d;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.schedule-swap-btn:hover {
  background: #fff2ca;
}

.swap-arrow {
  margin: 4px 0 12px;
  color: #b49767;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}
/* ===================================== */
/* Step 12-5C 班表異動紀錄 */
/* ===================================== */

.schedule-change-log {
  margin-top: 18px;
  padding: 0;
  background: white;
  border: 1px solid #eee8df;
  border-radius: 16px;
  overflow: hidden;
}

.schedule-change-log summary {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  color: #51483f;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.schedule-change-log summary::-webkit-details-marker {
  display: none;
}

.schedule-change-log summary > span:last-child {
  color: #9a8f84;
  font-size: 10px;
}

.schedule-change-history {
  padding: 0 14px 14px;
}

.schedule-change-empty {
  margin: 0;
  padding: 14px;
  background: #faf8f4;
  border-radius: 12px;
  color: #91867b;
  font-size: 11px;
  text-align: center;
}

.schedule-change-item {
  padding: 13px;
  margin-top: 9px;
  background: #faf8f4;
  border-radius: 13px;
}

.schedule-change-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.schedule-change-item p {
  margin: 4px 0 0;
  color: #746a61;
  font-size: 11px;
  line-height: 1.55;
}

.schedule-change-meta {
  margin-top: 8px !important;
  color: #a0978f !important;
  font-size: 10px !important;
}
/* ===================================== */
/* Step 13 領用回庫 */
/* ===================================== */

.inventory-page {
  min-height: 100vh;
  background: #f7f5f0;
}

.inventory-page-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 22px 16px 45px;
}

.inventory-page-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.inventory-page-header p {
  margin: 0 0 3px;
  color: #978b80;
  font-size: 11px;
}

.inventory-page-header h1 {
  margin: 0;
  font-size: 23px;
}

.inventory-back-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: white;
  color: #51483f;
  font-size: 21px;
  font-weight: bold;
  cursor: pointer;
}

.inventory-date-card {
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fff8e5;
  border: 1px solid #eee0b7;
  border-radius: 17px;
}

.inventory-date-card span {
  display: block;
  margin-bottom: 4px;
  color: #ae8335;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

.inventory-date-card strong {
  font-size: 17px;
}

.inventory-action-card {
  padding: 18px;
  margin-bottom: 13px;
  background: white;
  border: 1px solid #eee8df;
  border-radius: 20px;
}

.inventory-action-top {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
}

.inventory-action-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff0c5;
  border-radius: 13px;
  color: #936b20;
  font-size: 20px;
  font-weight: bold;
}

.inventory-action-top > div:nth-child(2) span {
  display: block;
  margin-bottom: 3px;
  color: #b49767;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.inventory-action-top h2 {
  margin: 0;
  font-size: 17px;
}

.inventory-action-card > p {
  margin: 14px 0;
  color: #7c7268;
  font-size: 12px;
  line-height: 1.6;
}

.inventory-status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
}

.inventory-status.waiting {
  background: #f1efec;
  color: #857b72;
}

.inventory-status.completed {
  background: #e7f3e3;
  color: #39723c;
}

.inventory-primary-btn {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: #f8b62d;
  color: #3f3015;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
/* ===================================== */
/* Step 13 領用回庫 */
/* ===================================== */

.inventory-page {
  min-height: 100vh;
  background: #f7f5f0;
}

.inventory-page-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 22px 16px 45px;
}

.inventory-page-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.inventory-page-header p {
  margin: 0 0 3px;
  color: #978b80;
  font-size: 11px;
}

.inventory-page-header h1 {
  margin: 0;
  font-size: 23px;
}

.inventory-back-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: white;
  color: #51483f;
  font-size: 21px;
  font-weight: bold;
  cursor: pointer;
}


/* 待處理數量 */

.inventory-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px;
  margin-bottom: 12px;
  background: #fff8e5;
  border: 1px solid #eee0b7;
  border-radius: 19px;
}

.inventory-summary-card > div:first-child span {
  display: block;
  margin-bottom: 4px;
  color: #aa8034;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

.inventory-summary-card > div:first-child strong {
  font-size: 18px;
}

.inventory-pending-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.inventory-pending-number strong {
  color: #936719;
  font-size: 28px;
}

.inventory-pending-number span {
  color: #8d8175;
  font-size: 11px;
}


/* 說明 */

.inventory-help-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  margin-bottom: 24px;
  background: white;
  border: 1px solid #eee8df;
  border-radius: 14px;
}

.inventory-help-box > span {
  color: #5c8b55;
  font-weight: bold;
}

.inventory-help-box p {
  margin: 0;
  color: #7c7268;
  font-size: 11px;
  line-height: 1.6;
}


/* 標題 */

.inventory-list-heading {
  margin-bottom: 11px;
}

.inventory-list-heading p {
  margin: 0 0 3px;
  color: #b49767;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

.inventory-list-heading h2 {
  margin: 0;
  font-size: 18px;
}


/* 日期清單 */

.inventory-pending-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.inventory-empty {
  padding: 25px 16px;
  background: white;
  border: 1px solid #eee8df;
  border-radius: 16px;
  color: #958b82;
  font-size: 12px;
  text-align: center;
}
.inventory-pending-card {
  padding: 16px;
  background: white;
  border: 1px solid #eee8df;
  border-radius: 18px;
}

.inventory-pending-card-header {
  padding-bottom: 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid #f1ede7;
}

.inventory-pending-card-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.inventory-pending-card-header strong {
  font-size: 16px;
}

.inventory-pending-card-header small {
  color: #92877d;
  font-size: 10px;
}

.inventory-day-tag {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: bold;
}

.inventory-day-tag.today {
  background: #fff0c5;
  color: #936719;
}

.inventory-day-tag.overdue {
  background: #f7e7e3;
  color: #a55648;
}

.inventory-simple-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid #f4f1ed;
}

.inventory-simple-row span {
  color: #81776e;
  font-size: 12px;
}

.inventory-simple-row strong {
  font-size: 12px;
}
.inventory-simple-row {
  align-items: center;
}

.inventory-simple-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inventory-record-btn {
  min-width: 78px;
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: #fff0c5;
  color: #76551c;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.inventory-form-notice {
  padding: 16px;
  margin: 8px 0 18px;
  background: #fff8e5;
  border: 1px solid #eee0b7;
  border-radius: 15px;
}

.inventory-form-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.inventory-form-notice p {
  margin: 0;
  color: #7c7268;
  font-size: 11px;
  line-height: 1.6;
}
/* ===================================== */
/* 領用回庫品項表單 */
/* ===================================== */

.inventory-form-modal-card {
  max-height: 90vh;
  overflow-y: auto;
}

.inventory-form-fields {
  margin-bottom: 16px;
}

.inventory-form-category {
  padding: 14px;
  margin-bottom: 12px;
  background: #faf8f4;
  border: 1px solid #eee8df;
  border-radius: 15px;
}

.inventory-form-category h3 {
  margin: 0 0 10px;
  color: #665c53;
  font-size: 13px;
}

.inventory-form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eee9e3;
}

.inventory-form-item:last-child {
  border-bottom: none;
}

.inventory-form-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inventory-form-item strong {
  font-size: 12px;
}

.inventory-form-item span {
  color: #978c82;
  font-size: 9px;
}

.inventory-form-item input {
  width: 82px;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid #ddd5cb;
  border-radius: 10px;
  background: white;
  font-size: 14px;
  text-align: center;
}

.inventory-form-item input:focus {
  outline: 2px solid #f8b62d;
  border-color: transparent;
}
/* ===================================== */
/* 領用回庫耗損與備註 */
/* ===================================== */

.inventory-loss-section {
  background: #fffaf1;
}

.inventory-section-help {
  margin: -3px 0 10px;
  color: #9a8b7d;
  font-size: 10px;
  line-height: 1.5;
}

.inventory-note-section {
  padding: 14px;
  margin-bottom: 14px;
  background: #faf8f4;
  border: 1px solid #eee8df;
  border-radius: 15px;
}

.inventory-note-section label {
  display: block;
  margin-bottom: 8px;
  color: #665c53;
  font-size: 12px;
  font-weight: bold;
}

.inventory-note-input {
  width: 100%;
  min-height: 90px;
  padding: 11px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #ddd5cb;
  border-radius: 10px;
  background: white;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
}

.inventory-note-input:focus {
  outline: 2px solid #f8b62d;
  border-color: transparent;
}
/* ===================================== */
/* 領用回庫最終送出 */
/* ===================================== */

.inventory-final-submit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e5ded4;
}

.inventory-final-submit p {
  margin: 0 0 10px;
  color: #8b7c6d;
  font-size: 11px;
  line-height: 1.6;
}

.inventory-submit-btn {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: #f8b62d;
  color: #493313;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.inventory-submit-btn:active {
  transform: scale(0.98);
}
/* ===================================== */
/* Step 13-4 已送出紀錄 */
/* ===================================== */

.inventory-submitted-section {
  margin-top: 28px;
}

.inventory-submitted-count {
  font-size: 12px;
  color: #9a8b7d;
}

.inventory-history-help {
  margin: 6px 0 12px;
  color: #9a8b7d;
  font-size: 11px;
  line-height: 1.6;
}

.inventory-submitted-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inventory-submitted-card {
  padding: 15px;
  background: #ffffff;
  border: 1px solid #eee8df;
  border-radius: 16px;
}

.inventory-submitted-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inventory-submitted-top strong {
  color: #4c4239;
  font-size: 14px;
}

.inventory-submitted-status {
  color: #5b8a62;
  font-size: 11px;
  font-weight: bold;
}

.inventory-submitted-address {
  margin: 9px 0 12px;
  color: #776b61;
  font-size: 11px;
  line-height: 1.5;
}

.inventory-submitted-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #eee5dc;
}

.inventory-submitted-bottom span {
  color: #a09488;
  font-size: 10px;
}

.inventory-view-btn {
  flex-shrink: 0;
  padding: 7px 13px;
  border: 1px solid #e4d8c9;
  border-radius: 9px;
  background: #fffaf1;
  color: #6e5532;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}
/* ===================================== */
/* Step 13-4B 已送出紀錄明細 */
/* ===================================== */

.inventory-detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inventory-detail-location {
  padding: 13px;
  background: #fffaf1;
  border-radius: 13px;
}

.inventory-detail-location span {
  display: block;
  margin-bottom: 5px;
  color: #a09284;
  font-size: 10px;
}

.inventory-detail-location strong {
  color: #55493e;
  font-size: 12px;
  line-height: 1.5;
}

.inventory-detail-group-title {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8b62d;
  color: #4b3719;
  font-size: 13px;
  font-weight: bold;
}

.inventory-detail-section {
  padding: 12px;
  border: 1px solid #eee8df;
  border-radius: 13px;
  background: #ffffff;
}

.inventory-detail-section h3 {
  margin: 0 0 9px;
  color: #65594e;
  font-size: 11px;
}

.inventory-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #f2eee8;
}

.inventory-detail-row:last-child {
  border-bottom: none;
}

.inventory-detail-row span {
  color: #766a60;
  font-size: 11px;
}

.inventory-detail-row strong {
  color: #4c4239;
  font-size: 11px;
}

.inventory-detail-empty,
.inventory-detail-note {
  margin: 0;
  color: #9b9086;
  font-size: 11px;
  line-height: 1.6;
}

.inventory-detail-note {
  white-space: pre-wrap;
}

.inventory-detail-times {
  margin: 4px 0 12px;
  padding: 12px;
  background: #faf8f4;
  border-radius: 13px;
}

.inventory-detail-times div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.inventory-detail-times span {
  color: #9b9086;
  font-size: 10px;
}

.inventory-detail-times strong {
  color: #665b51;
  font-size: 10px;
  text-align: right;
}
/* ===================================== */
/* Step 13-4 查看全部紀錄 */
/* ===================================== */

.inventory-history-open-btn {
  width: 100%;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #e7ddcf;
  border-radius: 12px;
  background: #ffffff;
  color: #6b573b;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.inventory-history-open-btn:active {
  transform: scale(0.98);
}
/* ===================================== */
/* 已送出紀錄月份切換 */
/* ===================================== */

.inventory-history-month-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 15px;
}

.inventory-history-month-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #e6ddd2;
  border-radius: 11px;
  background: #ffffff;
  color: #85776a;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.inventory-history-month-btn.active {
  border-color: #f8b62d;
  background: #fff5da;
  color: #5d451e;
}
/* ===================================== */
/* 管理端｜新增人員 */
/* ===================================== */

.employee-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.employee-modal.hidden {
  display: none;
}

.employee-modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
}

.employee-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.employee-modal-header p {
  margin: 0 0 4px;
  font-size: 12px;
  opacity: 0.55;
}

.employee-modal-header h2 {
  margin: 0;
}

.employee-modal-close {
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

#employeeForm {
  display: grid;
  gap: 18px;
}

.employee-form-field {
  display: grid;
  gap: 8px;
}

.employee-form-field span {
  font-size: 14px;
  font-weight: 700;
}

.employee-form-field input,
.employee-form-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
}

.employee-taskwall-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.admin-region-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.admin-region-card strong {
  display: block;
  margin-bottom: 4px;
}

.admin-region-card p {
  margin: 0;
  font-size: 14px;
  opacity: 0.65;
}

.admin-region-status-btn {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 9px 16px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
/* ===================================== */
/* Step 15｜我的考核／任務牆 */
/* ===================================== */

.task-wall-page {
  min-height: 100vh;
  padding: 24px 16px 40px;
}

.task-wall-page-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}



/* ===================================== */
/* 本月總覽 */
/* ===================================== */

.task-wall-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.task-wall-summary > div {
  padding: 18px;
  border-radius: 18px;
  background: #f7f7f7;
}

.task-wall-summary span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  opacity: 0.65;
}

.task-wall-summary strong {
  font-size: 28px;
}

.task-wall-summary small {
  margin-left: 4px;
  font-size: 13px;
  opacity: 0.55;
}

.task-wall-summary-help {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.65;
}



/* ===================================== */
/* 任務列表 */
/* ===================================== */

#taskWallTaskList {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}



/* ===================================== */
/* 任務卡片 */
/* ===================================== */

.task-wall-task-card {
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: #fff;
}

.task-wall-task-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.task-wall-task-top > div {
  min-width: 0;
}

.task-wall-task-number {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  opacity: 0.5;
}

.task-wall-task-name {
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

.task-wall-task-type {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
}



/* ===================================== */
/* 任務下半部 */
/* ===================================== */

.task-wall-task-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.task-wall-task-bottom > span:first-child {
  font-size: 13px;
  opacity: 0.55;
}

.task-wall-task-bottom > strong {
  font-size: 15px;
}

.task-wall-task-max {
  font-size: 12px;
  opacity: 0.55;
}



/* ===================================== */
/* 小螢幕 */
/* ===================================== */

@media (max-width: 520px) {

  .task-wall-summary {
    grid-template-columns: 1fr;
  }

  .task-wall-task-top {
    align-items: flex-start;
  }

  .task-wall-task-bottom {
    grid-template-columns: 1fr;
  }

  .task-wall-task-max {
    margin-top: 2px;
  }

}
/* ===================================== */
/* Step 15｜主管任務牆總分 */
/* ===================================== */

.task-wall-admin-score-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.task-wall-admin-score-overview > div {
  padding: 15px;
  border-radius: 14px;
  background: #f7f7f7;
}

.task-wall-admin-score-overview span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  opacity: 0.6;
}

.task-wall-admin-score-overview strong {
  font-size: 20px;
}

.task-wall-admin-score-help {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.65;
}

@media (max-width: 520px) {

  .task-wall-admin-score-overview {
    grid-template-columns: 1fr;
  }

}

/* ===================================== */
/* Round 1｜首頁頂部與今日營業改版預覽 */
/* ===================================== */
:root {
  --pf-yellow: #F8B62D;
  --pf-yellow-light: #F9C158;
  --pf-yellow-soft: #F5D243;
  --pf-yellow-deep: #DEA122;
  --pf-brown: #562E00;
  --pf-brown-light: #875424;
  --pf-cream: #FEECD2;
  --pf-bg: #fffaf3;
  --pf-card: #FFF3DF;
  --pf-card-border: #eee8df;
  --pf-icon-bg: #e3d4bd;
  --pf-shadow: 0 10px 24px rgba(86, 46, 0, 0.06);
}

body {
  background: var(--pf-bg);
  color: var(--pf-brown);
}

.app {
  padding-top: 0;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 50px 15px 10px;
  background: var(--pf-bg);
}

/* Reserve the fixed header's space, including on the prototype notice area. */
body:has(.app:not(.hidden) > .top-bar) {
  padding-top: 110px;
}

.top-bar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.user-avatar-image,
.user-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.user-avatar-image {
  display: block;
  object-fit: cover;
  background: transparent;
}

.user-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--pf-yellow-light), var(--pf-yellow));
  color: var(--pf-brown);
  font-size: 22px;
  font-weight: 700;
  border: 1px solid rgba(86, 46, 0, 0.08);
  box-shadow: 0 4px 14px rgba(248, 182, 45, 0.22);
}

.top-bar-user-text {
  min-width: 0;
  width: 131px;
}

.hello {
  margin: 0 0 3px;
  font-size: 11px;
  line-height: 14px;
  color: var(--pf-brown-light);
  font-weight: 700;
}

.top-bar h1 {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--pf-brown);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.notification-btn,
.sidebar-toggle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #eee0cd;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.notification-btn {
  background: #fff;
  color: var(--pf-yellow-deep);
  font-size: 22px;
}

.notification-icon {
  display: block;
}

.notification-dot {
  display: none;
  position: absolute;
  top: 11px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f55f2b;
  box-shadow: 0 0 0 2px var(--pf-bg);
}

.notification-btn.has-notification .notification-dot {
  display: block;
}

.notification-btn.has-notification .notification-dot {
  display: block;
}

.sidebar-toggle-btn {
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sidebar-toggle-btn span {
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: #f8f4ec;
}

.business-card {
  padding: 22px 22px 24px;
  border-radius: 28px;
  border: 1px solid var(--pf-card-border);
  background: var(--pf-card);
  box-shadow: none;
}

.business-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.business-card-title-group {
  min-width: 0;
}

.business-kicker {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--pf-brown-light);
  font-weight: 700;
}

.location-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--pf-brown-light);
  font-weight: 700;
}

.business-status-switch {
  position: relative;
  width: 116px;
  min-width: 116px;
  height: 30px;
  border-radius: 999px;
  background: #e4d5bd;
  overflow: hidden;
}

.business-status-switch .status {
  position: absolute;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 26px;
  padding: 0 14px;
  white-space: nowrap;
  border-radius: 999px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(86, 46, 0, 0.08);
  transition: transform 0.2s ease, left 0.2s ease;
}

.business-status-switch .status.waiting {
  right: 2px;
  color: #b06e23;
}

.business-status-switch .status.open {
  left: 2px;
  color: #FFFFFF;
  background: #F8B62D;
}

.business-status-switch .status.closed {
  left: 21px;
  color: #665d54;
  background: #efebe5;
}

.business-card h2 {
  margin: 0 0 16px;
  max-width: 94%;
  color: var(--pf-brown);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.internal-info {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 249, 239, 0.72);
  border: 1px solid rgba(86, 46, 0, 0.06);
}

.primary-btn {
  min-height: 64px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8c12c 0%, #efb91d 100%);
  color: var(--pf-brown);
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(86, 46, 0, 0.12);
}

.business-actions {
  margin-top: 16px;
}

.secondary-action-btn,
.end-business-btn {
  min-height: 54px;
  border-radius: 18px;
}

@media (max-width: 420px) {
  .business-card {
    padding: 20px 18px 22px;
  }

  .business-card h2 {
    font-size: 18px;
    max-width: 100%;
  }

  .business-status-switch {
    width: 106px;
    min-width: 106px;
  }

  .business-status-switch .status {
    min-width: 68px;
    font-size: 11px;
  }

}


/* Figma 42:178 — today's business card; keep the existing state controls. */
#todayBusinessSection {
  position: relative;
  overflow: hidden;
  min-height: 197px;
  margin-left: -1px;
  margin-right: -1px;
  padding: 25px 20px;
  border: 1px solid #f4d7a7;
  border-radius: 20px;
  background: linear-gradient(128.229deg, #fff 2.8134%, var(--pf-cream) 65.061%);
}
#todayBusinessSection .business-card-header { gap: 10px; margin-bottom: 18px; }
#todayBusinessSection .business-kicker,
#todayBusinessSection .location-label { font-size: 11px; line-height: 13px; }
#todayBusinessSection .business-kicker { margin-bottom: 4px; }
#todayBusinessSection .business-status-switch {
  width: 90px; min-width: 90px; height: 16px;
  border: 1px solid #f4d7a7;
}
#todayBusinessSection .status {
  top: -1px; min-width: 61px; height: 16px;
  padding: 0 6px; border: 1px solid #f4d7a7;
  font-size: 11px; font-weight: 500; line-height: 13px;
  box-shadow: none;
}
#todayBusinessSection .status.waiting { right: -1px; color: var(--pf-brown-light); }
#todayBusinessSection .status.open { left: -1px; }
#todayBusinessSection .status.closed { left: auto; right: -1px; }
#todayBusinessSection h2 {
  position: relative;
  width: calc(100% - 112px); max-width: 206px; min-height: 39px;
  margin: 0 0 18px;
  font-size: 16px; line-height: 19.5px;
}
#todayBusinessSection #startBusinessBtn {
  position: relative;
  width: 160px; max-width: calc(100% - 112px);
  min-height: 40px; padding: 8px; margin: 0;
  border: 0; border-radius: 27px;
  background: var(--pf-yellow); color: var(--pf-brown);
  font-size: 16px; line-height: 24px; box-shadow: none;
}
.business-mascot {
  position: absolute; right: 16px; top: 65px;
  width: 115.088px; height: 133.026px;
  pointer-events: none;
}
.business-mascot img { position: absolute; display: block; max-width: none; }
#todayBusinessSection:has(.status.open) .business-mascot,
#todayBusinessSection:has(.status.closed) .business-mascot { display: none; }
#todayBusinessSection:has(.status.open) h2,
#todayBusinessSection:has(.status.closed) h2 { width: 100%; max-width: none; }

.quick-navigation {
  margin: 18px -1px;
  scroll-margin-top: 128px;
}
.quick-navigation h2 {
  margin: 0 0 11px; padding-left: 10px;
  font-size: 14px; line-height: 17px; color: var(--pf-brown-light);
}
.quick-navigation-items {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 0 5px; scrollbar-width: thin;
  scrollbar-color: #e4d5bd transparent;
}
.quick-navigation-item {
  flex: 0 0 83px; width: 83px; height: 83px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 2px 8px;
  border: 1px solid #f4d7a7; border-radius: 20px;
  background: white; color: var(--pf-brown); cursor: pointer;
  font-size: 12px; font-weight: 700; line-height: 15px;
}
.quick-navigation-item.is-featured { background: var(--pf-cream); }
.quick-navigation-item img { display: block; flex-shrink: 0; }
.quick-navigation-item span { white-space: nowrap; }
.quick-navigation-item:focus-visible, .erp-feature-heading button:focus-visible {
  outline: 2px solid var(--pf-brown); outline-offset: -3px;
}
.quick-navigation-item:hover { background: var(--pf-cream); }
.app[data-feature-page] > section:not(.erp-feature-page) { display: none !important; }
.erp-feature-page { padding-top: 18px; }
.erp-feature-heading { margin-bottom: 18px; }
.erp-feature-heading button {
  border: 1px solid #f4d7a7; border-radius: 16px; padding: 10px 14px;
  background: var(--pf-card); color: var(--pf-brown); font: inherit; cursor: pointer;
}
.erp-feature-heading h2 { font-size: 20px; margin: 16px 0 0; }

/* Figma 42:784: use supplied illustrations with the original feature actions. */
#otherFeaturesSection { margin: 18px -1px 0; scroll-margin-top: 128px; }
#otherFeaturesSection > h2 {
  margin: 0 0 11px; padding-left: 10px;
  color: var(--pf-brown-light); font-size: 14px; font-weight: 700; line-height: 17px;
}
#otherFeaturesSection .menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#otherFeaturesSection .menu-item {
  position: relative; display: block; min-width: 0; height: 157px;
  padding: 15px 20px 10px; overflow: hidden;
  border: 1px solid #f4d7a7; border-radius: 20px;
  background: linear-gradient(155.214deg, #fff 4.4574%, var(--pf-card) 82.946%);
  color: var(--pf-brown); font-size: 16px; font-weight: 700; line-height: 19px;
  text-align: left; cursor: pointer; box-shadow: none;
}
#otherFeaturesSection .menu-item:nth-child(even) {
  background: linear-gradient(154.237deg, #fff 7.975%, var(--pf-cream) 82.446%);
}
#otherFeaturesSection .menu-item > span { position: absolute; top: 15px; left: 20px; z-index: 1; }
#otherFeaturesSection .menu-item img { position: absolute; display: block; max-width: none; pointer-events: none; }
#otherFeaturesSection .feature-inventory img { right: 20px; top: 44px; }
#otherFeaturesSection .feature-schedule img { right: 20px; top: 47.5px; }
#otherFeaturesSection .feature-schedule-count {
  position: absolute; top: 39px; left: 20px; z-index: 1;
  font-size: 11px; font-weight: 600; line-height: 16px; color: var(--pf-brown-light);
}
#otherFeaturesSection .feature-assessment img { right: 19px; top: 34px; }
#otherFeaturesSection .feature-growth img { left: 33px; top: 39px; object-fit: cover; }
#otherFeaturesSection .menu-item:focus-visible { outline: 3px solid var(--pf-brown); outline-offset: -4px; }

.todo-reminder { margin: 18px -1px; scroll-margin-top: 128px; }
.todo-reminder > h2 {
  margin: 0 0 11px; padding-left: 10px;
  font-size: 14px; font-weight: 700; line-height: 17px; color: var(--pf-brown-light);
}
.todo-reminder-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px; border: 1px solid #f4d7a7; border-radius: 20px;
  background: linear-gradient(122.348deg, #fff 5.1978%, var(--pf-cream) 59.249%);
}
.todo-reminder-art { position: relative; flex: 0 0 70.433px; height: 61.2px; transform: translateX(12px); }
.todo-reminder-art img { position: absolute; display: block; max-width: none; }
.todo-reminder-content { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 213px; min-width: 0; }
.todo-reminder-content h3 { margin: 0; font-size: 16px; line-height: 18px; color: var(--pf-brown); }
.todo-reminder-count { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin: 0; font-size: 12px; font-weight: 700; line-height: 19px; }
.todo-reminder-count > span { white-space: nowrap; }
.todo-reminder-count strong { color: var(--pf-yellow); font-size: 16px; margin: 0 2px; }
.todo-reminder-button {
  min-height: 30px; max-width: 100%; padding: 5px 10px; border: 0; border-radius: 27px;
  background: var(--pf-yellow); color: var(--pf-brown); font-size: 14px; font-weight: 700; line-height: 20px; cursor: pointer;
}
.todo-reminder-button:focus-visible { outline: 2px solid var(--pf-brown); outline-offset: 3px; }
@media (max-width: 374px) {
  .todo-reminder-card { gap: 12px; padding: 18px 16px; }
  .todo-count-divider { display: none; }
}

/* Figma Frame 28: footer artwork scales with the existing 480px page limit. */
.customer-preview-footer {
  width: 100%; max-width: 480px; margin: 0 auto; padding: 0;
}
.customer-preview-footer .customer-preview-btn {
  display: flex; align-items: center; justify-content: center; gap: 21px;
  width: 100%; height: 74.62px; padding: 10px 0;
  border: 0; border-radius: 0; box-shadow: none;
  background: transparent url("assets/customer-footer-board.svg") center top / 100% 74px no-repeat;
  color: var(--pf-brown); font-size: 16px; font-weight: 700; line-height: 19px;
  cursor: pointer;
}
.customer-preview-footer .customer-preview-btn img { display: block; flex-shrink: 0; }
.customer-preview-footer .customer-preview-btn span { white-space: nowrap; }
.customer-preview-footer .customer-preview-btn:focus-visible { outline: 2px solid var(--pf-brown); outline-offset: -3px; }

.default-avatar-image {
  display: block;
  object-fit: cover;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 營業地址依容器寬度自然換行，不會橫向裁切 */


/* ============================================ */
/* 首頁側邊導覽｜品牌 UI V8                */
/* 全螢幕展開／點選區塊後關閉              */
/* ============================================ */
body.erp-sidebar-open {
  overflow: hidden;
}

.erp-sidebar {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 2100;
  overflow-x: hidden;
  overflow-y: auto;
  background: #F8B62D;
  color: #562E00;
  transform: translateX(101%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(.25,.8,.25,1), visibility 320ms;
  -webkit-overflow-scrolling: touch;
}

.erp-sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.erp-sidebar-close {
  position: absolute;
  top: max(19px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #FEECD2;
  cursor: pointer;
}

.erp-sidebar-close span {
  position: absolute;
  left: 9px;
  top: 22px;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: #F8B62D;
}

.erp-sidebar-close span:first-child { transform: rotate(45deg); }
.erp-sidebar-close span:last-child { transform: rotate(-45deg); }

.erp-sidebar-content {
  width: 100%;
  max-width: 540px;
  min-height: 100%;
  margin: 0 auto;
  padding: max(52px, calc(env(safe-area-inset-top) + 30px)) 22px max(54px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.erp-sidebar-profile {
  text-align: center;
}

.erp-sidebar-avatar {
  display: block;
  width: 114px;
  height: 114px;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 50%;
  border: 5px solid #FEECD2;
  object-fit: cover;
  background: #F8B62D;
}

.erp-sidebar-brand {
  margin: 13px 0 5px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #875424;
}

.erp-sidebar-name {
  margin: 0;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.35;
  color: #562E00;
}

.erp-sidebar-nav {
  width: min(72%, 390px);
  margin: 55px auto 0;
}

.erp-sidebar-link {
  display: flex;
  width: 100%;
  min-height: 49px;
  gap: 17px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #562E00;
  border: 0;
  border-bottom: 1px solid rgba(86, 46, 0, .87);
  padding: 0 10px;
  font: inherit;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.erp-sidebar-link:hover,
.erp-sidebar-link:focus-visible {
  background: rgba(254, 236, 210, .20);
}

.erp-sidebar-chevron {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex-shrink: 0;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  transform: rotate(45deg) scale(.82);
}

.erp-sidebar-close:focus-visible,
.erp-sidebar-link:focus-visible {
  outline: 3px solid #562E00;
  outline-offset: 3px;
}

#todayBusinessSection,
#myPerformanceSection,
#specialTaskSection,
#todayTasksSection,
#todayPuffmanSection,
#otherFeaturesSection {
  scroll-margin-top: 105px;
}

.erp-sidebar-notice {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 2105;
  max-width: calc(100vw - 44px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #562E00;
  color: #fffaf3;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.erp-sidebar-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  .erp-sidebar-content { padding-top: 50px; }
  .erp-sidebar-avatar { width: 100px; height: 100px; }
  .erp-sidebar-name { font-size: 25px; }
  .erp-sidebar-nav { width: 78%; margin-top: 40px; }
  .erp-sidebar-link { min-height: 45px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .erp-sidebar, .erp-sidebar-notice { transition: none; }
}

/* 任務牆封存與我的成長 */
.task-wall-admin-lock-notice { padding: 12px 16px; background: #fff4d6; color: #694316; border-radius: 10px; line-height: 1.6; }
.task-wall-history-entry { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid #eadccb; border-radius: 12px; padding: 16px; margin: 10px 0; cursor: pointer; }
.task-wall-history-entry > span { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.task-wall-history-entry:focus-visible { outline: 3px solid #b7781f; outline-offset: 3px; }
.task-wall-history-person { border-top: 1px solid #eadccb; margin-top: 20px; padding-top: 12px; }
#growthPage .task-wall-page-inner { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
body:has(#growthPage:not(.hidden)) .schedule-change-log { display: none; }
.growth-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.growth-metrics span { display: block; font-size: 14px; color: #725e48; }
.growth-metrics strong { display: block; margin-top: 8px; font-size: 24px; color: #562e00; }
.growth-score { font-size: 30px; font-weight: 700; color: #562e00; margin: 12px 0; }
.growth-history-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eadccb; }
#taskWallAdminEmployeeEditor :disabled, #taskWallAdminRegionEditor :disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 360px) { .growth-metrics { grid-template-columns: 1fr; } }

/* 營業管理沿用既有卡片與頁首，表格於窄螢幕可橫向捲動。 */
.business-management-filters { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0; }
.business-management-filters label { display:grid; gap:6px; }
.business-management-filters input, .business-management-filters select { padding:10px; border:1px solid #ddd; border-radius:8px; background:#fff; color:#333; }
.business-table-scroll { overflow-x:auto; }
.business-management-table { width:100%; border-collapse:collapse; text-align:left; }
.business-management-table th, .business-management-table td { padding:12px 10px; border-bottom:1px solid #eee; min-width:85px; }
.business-person-btn { border:0; background:transparent; color:#986036; text-decoration:underline; cursor:pointer; font:inherit; padding:4px 0; }
.business-daily-record { border-top:1px solid #eee; padding:16px 0; overflow-wrap:anywhere; }
.business-daily-record p { margin:8px 0; }
#businessManagementPage > .task-wall-admin-inner { max-width:1100px; margin:0 auto; padding:22px 16px 40px; }
#backFromBusinessManagementBtn { border:1px solid #e5d6c7; border-radius:10px; background:#fff; color:inherit; padding:10px 14px; cursor:pointer; }
#businessManagementPage h2 { font-size:20px; }

/* STEP 19：沿用品牌鈴鐺紅點與卡片，不改既有首頁樣式。 */
.notification-page { max-width:760px; margin:0 auto; padding:22px 16px 40px; }
.notification-page h1 { font-size:24px; }
.notification-page h2 { font-size:20px; overflow-wrap:anywhere; }
.notification-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.notification-toolbar button, .notification-back-btn, .notification-admin-row button { border:1px solid #e5d6c7; border-radius:10px; padding:10px 14px; background:#fffaf3; color:inherit; cursor:pointer; }
.notification-toolbar [aria-pressed="true"] { background:var(--pf-brown); color:#fff; }
.notification-toolbar button:disabled { opacity:.5; cursor:default; }
.notification-entry { display:grid; gap:10px; width:100%; text-align:left; padding:18px; margin-bottom:12px; border:1px solid #e5d6c7; border-left:4px solid transparent; border-radius:16px; background:#fff; color:inherit; font:inherit; cursor:pointer; overflow-wrap:anywhere; }
.notification-entry.is-unread { border-left-color:var(--pf-yellow-deep); background:#fff8e8; }
.notification-meta { font-size:13px; }
.notification-preview { font-size:14px; line-height:1.6; }
.notification-content { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; }
.notification-form { display:grid; gap:14px; }
.notification-form label { display:grid; gap:6px; }
.notification-form input, .notification-form select, .notification-form textarea { width:100%; padding:10px; border:1px solid #e5d6c7; border-radius:8px; font:inherit; }
.notification-admin-row { border-bottom:1px solid #e5d6c7; padding:12px 0; overflow-wrap:anywhere; }
body:has(#notificationCenterPage:not(.hidden)) .schedule-change-log { display:none; }
.prototype-identity-panel { max-width:760px; margin:12px auto; padding:12px 16px; border:1px dashed #c5a47e; border-radius:12px; background:#fffaf3; }
.prototype-identity-panel label { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.prototype-identity-panel select { max-width:100%; padding:8px; border-radius:8px; border:1px solid #e5d6c7; }
.prototype-identity-panel p { margin:8px 0; }
/* STEP 23：沿用卡片與品牌色的每日明細。 */
.business-record-date { display:block; width:100%; padding:12px; margin:8px 0; text-align:left; border:1px solid #ddd; border-radius:10px; background:transparent; color:inherit; }
.business-record-date[aria-pressed="true"] { border-color:currentColor; font-weight:700; }
.business-record-history { margin:14px 0; overflow-wrap:anywhere; }
.business-record-history summary { cursor:pointer; font-weight:600; padding:8px 0; }
#myBusinessRecordDetail, #businessDailyDetail { overflow-wrap:anywhere; }
#businessDailyDate { max-width:100%; padding:8px; }
#employeeDateNotice { position:relative; z-index:1100; }

@media (max-width: 600px) {
 .modal-overlay { padding:12px; }
 .modal-overlay .modal-card { max-height:calc(100dvh - 24px); }
 .modal-card input, .modal-card select, .modal-card textarea { font-size:16px; }
}

/* 同區班表：固定姓名欄，日期只在表格容器內水平捲動。 */
.schedule-view-switch { display:flex; gap:10px; margin:16px 0; }
.schedule-view-switch button { padding:10px 16px; border:1px solid #d6c7b5; border-radius:12px; background:#fff; color:#513e30; cursor:pointer; }
.schedule-view-switch button[aria-pressed="true"] { background:#513e30; color:#fff; }
#scheduleTablePanel { min-width:0; }
#scheduleTablePanel > p { font-size:13px; line-height:1.7; color:#716558; }
.schedule-matrix-scroll { max-width:100%; overflow-x:auto; border:1px solid #d6c7b5; border-radius:10px; }
.schedule-matrix { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; font-size:13px; text-align:center; }
.schedule-matrix caption { text-align:left; padding:12px; font-weight:bold; }
.schedule-matrix th,.schedule-matrix td { min-width:44px; padding:10px 6px; border-right:1px solid #e6ded4; border-bottom:1px solid #e6ded4; }
.schedule-matrix th { background:#f4eee5; }
.schedule-matrix tr > th:first-child { position:sticky; left:0; z-index:1; min-width:105px; max-width:145px; white-space:normal; overflow-wrap:anywhere; box-shadow:1px 0 #d6c7b5; }
.schedule-matrix small { display:block; margin-top:5px; }
.schedule-matrix .schedule-weekend { color:#ad4437; }
.schedule-matrix .schedule-off { background:#eeeae5; }
.schedule-matrix .schedule-self-row > * { border-top:2px solid #b38b5b; border-bottom:2px solid #b38b5b; }
.schedule-matrix tfoot { font-weight:bold; }

.schedule-batch-dates { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; max-height:300px; overflow-y:auto; padding:8px 0; }
.schedule-batch-dates label { display:flex; align-items:flex-start; gap:6px; font-size:13px; padding:8px; border:1px solid #e6ded4; border-radius:8px; overflow-wrap:anywhere; }
.schedule-batch-dates input[type="checkbox"] { width:18px; height:18px; flex:0 0 18px; }
.schedule-batch-dates label:has(input:disabled) { color:#777; background:#f1eeea; }

.schedule-matrix-cell { min-width:44px; min-height:44px; padding:6px; border:1px solid #d6c7b5; border-radius:6px; background:#fff; color:#513e30; cursor:pointer; }
.schedule-matrix-cell.is-draft { background:#fff0c9; border:2px solid #ad7e3e; }
.schedule-matrix-cell:disabled { color:#777; background:#eeeae5; cursor:default; }
#scheduleMatrixEditor { margin:16px 0; padding:12px; border:1px solid #d6c7b5; border-radius:10px; }

/* 主管同身分的營業／管理入口，保留兩個 Prototype 分頁。 */
#supervisorPageSwitcher { margin: 12px auto; padding: 14px; max-width: 720px; box-sizing: border-box; background: #fff8e8; border: 1px solid #ead9bb; border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#supervisorPageSwitcher[hidden] { display: none; }
#supervisorPageSwitcher a { padding: 10px 14px; background: #513e30; color: #fff; border-radius: 8px; text-decoration: none; }
#supervisorPageSwitcher small { flex-basis: 100%; line-height: 1.6; }
#supervisorWorkspaceFrame { display: block; width: 100%; height: 100dvh; border: 0; background: #fff; }
#supervisorWorkspaceFrame[hidden] { display: none; }
body > [hidden] { display: none !important; }
.prototype-login-page { min-height: 100dvh; box-sizing: border-box; padding: 28px 16px; display: grid; place-items: center; background: #fff8e8; }
.prototype-login-card { width: min(100%, 440px); box-sizing: border-box; }
.prototype-login-card label { display: grid; gap: 8px; margin: 16px 0; }
.prototype-login-card input { width: 100%; box-sizing: border-box; padding: 12px; font-size: 16px; }
.prototype-login-card button { min-height: 44px; margin: 6px 0; }
#prototypeDemoAccounts { display: grid; }
.prototype-session-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; background: #fff8e8; }
.prototype-session-bar small { flex-basis: 100%; }
body.prototype-logged-out > :not(#prototypeLoginPage):not(#passwordRecoveryDialog):not(script) { display: none !important; }
#adminTemporaryPasswordDialog { width: min(460px, calc(100vw - 32px)); box-sizing: border-box; border: 1px solid #d8bd88; border-radius: 20px; padding: 24px; background: #fff9ed; color: #543b1d; }
#adminTemporaryPasswordDialog::backdrop { background: #0008; }
#adminTemporaryPasswordDialog input { display: block; box-sizing: border-box; width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #d8bd88; border-radius: 12px; }
#adminTemporaryPasswordDialog button { border: 0; border-radius: 20px; background: #f8b62d; color: #543b1d; padding: 12px 20px; margin-top: 12px; cursor: pointer; }
#adminTemporaryPasswordDialog output { display: block; overflow-wrap: anywhere; user-select: all; font-family: monospace; }
#adminResetTemporaryPassword {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 12px 0 4px;
  padding: 11px 18px;
  border: 1px solid #dfb77e;
  border-radius: 24px;
  background: var(--pf-cream, #f9e4c3);
  color: var(--pf-brown, #543b1d);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
}
#adminResetTemporaryPassword:hover { background: #f5d8a9; border-color: #bc8b44; }
#adminResetTemporaryPassword:focus-visible { outline: 2px solid #a66808; outline-offset: 3px; }
#adminResetTemporaryPassword:disabled { opacity: .55; cursor: default; }
#adminResetTemporaryPassword[hidden] { display: none !important; }
#employeeForm label:has(#employeeChangeReason) {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--pf-brown, #543b1d);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
#employeeChangeReason {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 108px;
  padding: 13px 14px;
  border: 1px solid #d9ba91;
  border-radius: 14px;
  background: var(--pf-bg, #fff8ed);
  color: var(--pf-brown, #543b1d);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  resize: vertical;
}
#employeeChangeReason:focus-visible { outline: 2px solid #a66808; outline-offset: 2px; }
#cloudDataPanel { width: 100%; box-sizing: border-box; margin: 16px 0; padding: 12px; border: 1px solid #e6d2ae; border-radius: 12px; background: #fff9ed; color: #543b1d; }
#cloudDataPanel summary { cursor: pointer; font-weight: 700; }
#cloudDataPanel #supabaseTrialNotice { position: relative; inset: auto; z-index: auto; margin: 12px 0 0; padding: 0; width: auto; font-size: 13px; overflow-wrap: anywhere; }
body:has(#cloudDataPanel) { padding-bottom: 0; }
#cloudDataPanel button { display: block; margin: 8px 0 14px; padding: 9px 12px; border: 1px solid #e6d2ae; border-radius: 16px; background: #fff0cf; color: #543b1d; cursor: pointer; }
#prototypeIdentityPanel label[hidden] { display: none; }
.prototype-login-card button { border: 1px solid #d7bea0; border-radius: 8px; padding: 10px 14px; background: #fff8e8; color: #513e30; cursor: pointer; }
.prototype-login-card button[type="submit"] { width: 100%; background: #513e30; color: #fff; font-weight: 700; }
.prototype-login-card input { border: 1px solid #bbaa99; border-radius: 8px; }
/* Point report shares the existing brand and is usable on narrow phones. */
.site-report-dialog { box-sizing:border-box; width:min(94vw,640px); max-height:90dvh; overflow:auto; border:1px solid #d5bb8d; border-radius:18px; padding:22px; color:#493014; background:#fffaf1; }
.site-report-dialog::backdrop { background:rgb(0 0 0 / .45); }
.site-report-dialog label { display:block; margin:14px 0; }
.site-report-dialog input,.site-report-dialog select,.site-report-dialog textarea { box-sizing:border-box; display:block; width:100%; min-height:44px; margin-top:6px; padding:10px; border:1px solid #d5bb8d; border-radius:8px; background:white; font:inherit; }
.site-report-dialog textarea { min-height:100px; }
.site-report-dialog button { min-height:44px; }
.site-report-dialog [data-site-close] { border:1px solid #d5bb8d; border-radius:999px; padding:9px 20px; background:#fae7c5; color:#6b461c; font:inherit; font-weight:600; cursor:pointer; }
.site-report-dialog [data-site-close]:hover { background:#f5d99e; }
.site-report-dialog [data-site-close]:focus-visible { outline:3px solid #c38617; outline-offset:3px; }
.site-report-summary { overflow-wrap:anywhere; margin:16px 0; }
#siteReportError { color:#a42c19; }
#erpSalesSlot { width:100%; min-height:44px; font:inherit; margin:8px 0 14px; }

#passwordRecoveryDialog { width:min(420px, calc(100vw - 48px)); box-sizing:border-box; border:1px solid #dfcaa6; border-radius:20px; padding:24px; background:#fff9ed; color:#543b1d; }
#passwordRecoveryDialog::backdrop { background:rgb(0 0 0 / 45%); }
#passwordRecoveryDialog input { box-sizing:border-box; width:100%; padding:12px; margin:8px 0 16px; border:1px solid #dfcaa6; border-radius:10px; font:inherit; }
#passwordRecoveryDialog button { padding:12px 18px; border:0; border-radius:20px; background:#f8b62d; color:#543b1d; cursor:pointer; }
#passwordRecoveryDialog p { line-height:1.6; overflow-wrap:anywhere; }
#changeMyPasswordBtn {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  margin-top: 8px;
  border: 1px solid #dfb77e;
  border-radius: 24px;
  background: var(--pf-cream, #f9e4c3);
  color: var(--pf-brown, #543b1d);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
}
#changeMyPasswordBtn:hover { background: #f5d8a9; }
#changeMyPasswordBtn:focus-visible,
#passwordRecoveryDialog button:focus-visible { outline: 2px solid #a66808; outline-offset: 3px; }
#passwordRecoveryDialog button { box-sizing: border-box; width: 100%; min-height: 44px; font: inherit; font-size: 14px; font-weight: 600; border-radius: 24px; }
#passwordRecoveryDialog #closePasswordChange { background: var(--pf-cream, #f9e4c3); border: 1px solid #dfb77e; }
#passwordRecoveryDialog button:disabled { opacity: .55; cursor: default; }
.account-password-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; overflow-y: auto; border: 1px solid #d8bd88; border-radius: 20px; padding: 24px; background: #fff9ed; color: #543b1d; }
.account-password-dialog::backdrop { background: #0008; }
.account-password-dialog p { line-height: 1.6; overflow-wrap: anywhere; }
.account-password-dialog input { box-sizing: border-box; width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #d8bd88; border-radius: 12px; font: inherit; }
.account-password-dialog button { width: 100%; min-height: 44px; border: 0; border-radius: 24px; background: #f8b62d; color: #543b1d; padding: 12px 20px; margin-top: 12px; font: inherit; cursor: pointer; }
.account-password-dialog button.close { background: #f9e4c3; border: 1px solid #dfb77e; }
.account-password-dialog button:disabled { opacity: .55; cursor: default; }
.account-password-dialog output { display: block; overflow-wrap: anywhere; user-select: all; font-family: monospace; }
