/* =========================================================
   CLEANING REPORT — Direction C
   ========================================================= */
.btn-cleaning-report {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  color: #fff;
  font-family: inherit;
  font-size: var(--t-13);
  font-weight: var(--w-semibold);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  background: var(--accent);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.35s var(--ease-out) forwards;
}
.btn-cleaning-report:active:not(:disabled) { transform: scale(0.98); }
.btn-cleaning-report-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
  padding: 0 6px;
  font-size: var(--t-11);
  font-weight: var(--w-semibold);
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ===== LIST MODAL ===== */
.cleaning-list-overlay {
  position: fixed;
  inset: 0;
  z-index: 16000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: gateModalIn 0.3s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.cleaning-list-overlay.cleaning-list-closing {
  animation: gateModalOut 0.25s cubic-bezier(0.55,0,1,0.45) forwards;
}
.cleaning-list-overlay.cleaning-list-swipe-closing {
  animation: slideOutToRight 0.25s cubic-bezier(0.55,0,1,0.45) forwards;
}
.cleaning-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-1);
  flex-shrink: 0;
}
.cleaning-list-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cleaning-list-title {
  font-size: var(--t-16);
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cleaning-list-subtitle {
  font-size: var(--t-11);
  color: var(--ink-3);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-top: 2px;
}
.cleaning-list-close {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease);
  -webkit-user-select: none;
  user-select: none;
  font-size: 16px;
  font-weight: var(--w-medium);
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
}
.cleaning-list-close:hover  { background: var(--surface-2); }
.cleaning-list-close:active { background: var(--surface-sunken); }
.cleaning-list-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(20px + var(--safe-bottom));
}
.cleaning-item {
  background: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--sh-1);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.35s var(--ease-out) forwards;
}
.cleaning-item:hover { background: var(--surface-2); }
.cleaning-item:active { background: var(--surface-sunken); }
.cleaning-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line-1);
}
.cleaning-item-info {
  flex: 1;
  min-width: 0;
}
.cleaning-item-name {
  font-size: var(--t-14);
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cleaning-item-details {
  font-size: var(--t-12);
  color: var(--ink-3);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.cleaning-item-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--ink-4);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
  .cleaning-list-header { background: var(--surface); border-bottom-color: var(--line-1); }
  .cleaning-item { background: var(--surface); border-color: var(--line-1); }
  .cleaning-item:hover { background: var(--surface-2); }
  .cleaning-item-icon { background: var(--accent-soft); color: var(--accent); border-color: var(--line-1); }
  .cleaning-item-chevron { stroke: var(--ink-4); }
}

/* ===== FORM ===== */
.cleaning-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 17000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: gateModalIn 0.3s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.cleaning-form-overlay.cleaning-form-closing {
  animation: gateModalOut 0.25s cubic-bezier(0.55,0,1,0.45) forwards;
}
.cleaning-form-overlay.cleaning-form-swipe-closing {
  animation: slideOutToRight 0.25s cubic-bezier(0.55,0,1,0.45) forwards;
}
.cleaning-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-1);
  flex-shrink: 0;
}
.cleaning-form-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cleaning-form-title {
  font-size: var(--t-16);
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.cleaning-form-subtitle {
  font-size: var(--t-11);
  color: var(--ink-3);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-top: 2px;
}
.cleaning-form-close {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease);
  -webkit-user-select: none;
  user-select: none;
  font-size: 16px;
  font-weight: var(--w-medium);
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
}
.cleaning-form-close:hover  { background: var(--surface-2); }
.cleaning-form-close:active { background: var(--surface-sunken); }
.cleaning-form-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(20px + var(--safe-bottom));
}

.cleaning-form-info {
  background: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cleaning-form-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-13);
  color: var(--ink-1);
  font-weight: var(--w-medium);
}
.cleaning-form-info-row .info-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: var(--ink-3);
}
.cleaning-form-info-row .info-label {
  color: var(--ink-3);
  font-weight: var(--w-semibold);
  font-size: var(--t-11);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  min-width: 70px;
}
.cleaning-form-info-row .info-value {
  font-weight: var(--w-medium);
  color: var(--ink-1);
}
.cleaning-form-referrer-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  font-size: var(--t-10);
  font-weight: var(--w-semibold);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.cleaning-form-field {
  margin-bottom: 18px;
}
.cleaning-form-label {
  font-size: var(--t-11);
  font-weight: var(--w-semibold);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cleaning-form-label-required {
  color: var(--danger);
  font-size: var(--t-10);
  font-weight: var(--w-semibold);
}
.star-rating {
  display: flex;
  gap: 6px;
}
.star-rating-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  padding: 4px;
  transition: transform var(--dur-fast) var(--ease);
  -webkit-user-select: none;
  user-select: none;
  filter: grayscale(1) opacity(0.3);
}
.star-rating-btn.active {
  filter: none;
  transform: scale(1.05);
}
.star-rating-btn:active { transform: scale(0.88); }

.cleaning-select-row {
  display: flex;
  gap: 8px;
}
.cleaning-select-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-1);
  font-family: inherit;
  font-size: var(--t-13);
  font-weight: var(--w-semibold);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
.cleaning-select-btn:active { transform: scale(0.96); }
.cleaning-select-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.cleaning-dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  background: var(--surface);
  position: relative;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cleaning-dropzone:active,
.cleaning-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cleaning-dropzone-icon {
  font-size: 24px;
  line-height: 1;
  color: var(--ink-3);
}
.cleaning-dropzone-text {
  font-size: var(--t-12);
  font-weight: var(--w-medium);
  color: var(--ink-3);
}
.cleaning-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.cleaning-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cleaning-file-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--r-xs);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-1);
  box-shadow: var(--sh-1);
}
.cleaning-file-thumb img,
.cleaning-file-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cleaning-file-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: 2px solid var(--bg);
  font-size: 10px;
  font-weight: var(--w-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.cleaning-form-submit {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: var(--t-14);
  font-weight: var(--w-semibold);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}
.cleaning-form-submit:active:not(:disabled) { transform: scale(0.98); }
.cleaning-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cleaning-form-submit .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  display: inline-block;
}
.cleaning-form-submit.success {
  background: var(--ok);
  border-color: var(--ok);
}
.cleaning-form-submit.error {
  background: var(--danger);
  border-color: var(--danger);
}
