/* Мастер-инспектор «Клининг и Залоги», полноэкранный экран входа клинера (8346) и мобильный кабинет (Apple HIG) */
.maid-login-gate {
  position: fixed; inset: 0; z-index: 700;
  background: #f5f5f7; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.maid-login-card {
  width: min(400px, 100%); background: #ffffff; border-radius: 26px;
  padding: 26px 22px 22px; box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  display: flex; flex-direction: column; gap: 14px;
}
.maid-login-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.maid-login-badge {
  width: 44px; height: 44px; border-radius: 13px; background: #1d1d1f; color: #ffffff;
  font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.maid-login-title { font-size: 20px; line-height: 24px; font-weight: 700; color: #1d1d1f; letter-spacing: -0.02em; }
.maid-login-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #1d1d1f; }

.lh-erp-split {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(380px, 0.85fr);
  gap: 0; overflow: hidden; background: var(--surface);
}
.lh-erp-master-pane {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--divider); padding: 14px 16px; gap: 10px; overflow-y: auto;
}
.lh-erp-inspector-pane {
  display: flex; flex-direction: column; min-height: 0;
  padding: 18px 22px; gap: 16px; overflow-y: auto; background: var(--surface);
}
.lh-turnover-card, .lh-smart-cand-card {
  background: var(--canvas); border-radius: 15px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  transition: background-color 90ms ease;
}
.lh-turnover-card:hover, .lh-smart-cand-card:hover { background: var(--hover); }
.lh-turnover-card.is-selected, .lh-smart-cand-card.is-selected { background: var(--selected); }
.lh-smart-cand-card.is-busy-cand { opacity: 0.78; }
.lh-smart-candidates-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.lh-turnover-top, .lh-turnover-mid, .lh-turnover-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.lh-turnover-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.lh-arrival-window-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--text);
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.lh-live-timer-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.lh-live-stopwatch-banner {
  background: #1d1d1f; color: #ffffff; border-radius: 16px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lh-live-stopwatch-val { font-size: 20px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lh-sla-math-box { background: var(--canvas); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.lh-sla-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lh-sla-metric { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lh-sla-metric strong { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.lh-guest-tiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lh-guest-turnover-tile { background: var(--surface); border-radius: 13px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.lh-guest-turnover-tile:hover { background: var(--hover); }
.lh-guest-tile-lead { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.lh-guest-tile-ava { width: 34px; height: 34px; border-radius: 50%; background: #1d1d1f; color: #ffffff; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lh-guest-tile-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lh-guest-tile-meta strong { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.maid-tab-ico-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.maid-tab-dot { position: absolute; top: -2px; right: -5px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #ffffff; }
.maid-tab-dot.is-blue { background: #007aff; }
.maid-tab-dot.is-green { background: #16a34a; }
.maid-tab-dot.is-red { background: #dc2626; }
.maid-tab-badge { position: absolute; top: -5px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #1d1d1f; color: #ffffff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.maid-hero-shift-card, .maid-task-card { background: #ffffff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.maid-active-banner-card { background: #1d1d1f; color: #ffffff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.maid-active-banner-card .tma-sub { color: rgba(255, 255, 255, 0.72); }
.maid-empty-order-box { background: #ffffff; border-radius: 24px; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.maid-order-map-box { width: 100%; height: 210px; border-radius: 18px; overflow: hidden; background: #e5e9f0; }
.maid-window-banner { background: #f2f3f7; border-radius: 15px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.maid-minimal-status, .maid-verdict-minimal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #1d1d1f; background: transparent !important; }
.maid-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #007aff; display: inline-block; }
.maid-verdict-minimal.is-approved { color: #15803d; }
.maid-verdict-minimal.is-rejected { color: #dc2626; }
.maid-verdict-ico { font-weight: 800; font-size: 14px; }
.maid-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(60, 60, 67, 0.08); }
.maid-receipt-row:last-child { border-bottom: 0; }
.maid-inline-error { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border-radius: 14px; padding: 11px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }

.maid-inspect-points { display: flex; flex-direction: column; gap: 6px; }
.maid-inspect-point-row { width: 100%; border: 0; border-radius: 14px; background: #f2f3f7; color: #1d1d1f; padding: 11px 13px; text-align: left; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.maid-inspect-point-row.is-selected { background: #1d1d1f; color: #ffffff; }
.maid-point-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.08); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.maid-inspect-point-row.is-selected .maid-point-num { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
.maid-capture-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.maid-tiles-stack { display: flex; flex-direction: column; gap: 8px; }
.maid-upload-tile { background: #f2f3f7; border-radius: 15px; padding: 8px 10px; display: flex; align-items: center; gap: 11px; }
.maid-upload-tile-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #e5e6ec; }
.maid-upload-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.maid-upload-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.maid-upload-tile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1d1d1f; font-weight: 500; }
.maid-upload-tile-pct { font-variant-numeric: tabular-nums; color: #1d1d1f; }
.maid-upload-tile-track { width: 100%; height: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.maid-upload-tile-fill { height: 100%; width: 0%; background: #007aff; border-radius: 999px; transition: width 160ms ease; }
.maid-upload-tile-fill.is-complete { width: 100%; background: #1d1d1f; }
.maid-upload-tile-del { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.06); color: #1d1d1f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.maid-voice-bar { background: #f2f3f7; border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.maid-voice-wave-box { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.maid-voice-circle-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #007aff; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; user-select: none; touch-action: none; transition: transform 140ms ease; }
.maid-voice-circle-btn:active { transform: scale(0.92); }
.maid-v-ico { position: absolute; transition: opacity 180ms ease, transform 180ms ease; }
.maid-v-ico.is-check { opacity: 0; transform: scale(0.5); }
.maid-voice-circle-btn.is-check-mode .maid-v-ico.is-mic { opacity: 0; transform: scale(0.5); }
.maid-voice-circle-btn.is-check-mode .maid-v-ico.is-check { opacity: 1; transform: scale(1); }

.maid-cam-fullscreen { position: fixed; inset: 0; z-index: 640; background: #000000; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.maid-cam-video-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.maid-cam-grad-top { position: relative; z-index: 3; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 28px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.68) 0%, transparent 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #ffffff; }
.maid-cam-back-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.maid-cam-title { font-size: 15px; font-weight: 600; text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maid-cam-grad-bottom { position: relative; z-index: 3; padding: 32px 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%); display: flex; align-items: center; justify-content: center; }
.maid-cam-shutter-btn { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #ffffff; background: rgba(255, 255, 255, 0.22); padding: 5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.maid-cam-shutter-inner { width: 100%; height: 100%; border-radius: 50%; background: #ffffff; display: block; transition: transform 100ms ease; }
.maid-cam-shutter-btn:active .maid-cam-shutter-inner { transform: scale(0.88); }
.maid-cam-preview-overlay { position: absolute; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.64); backdrop-filter: blur(12px); padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.maid-cam-preview-frame { flex: 1; min-height: 0; border-radius: 24px; border: 2px solid rgba(255, 255, 255, 0.88); overflow: hidden; background: #141416; display: flex; align-items: center; justify-content: center; }
.maid-cam-captured-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.maid-cam-overlay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.maid-white-wizard { position: fixed; inset: 0; z-index: 630; background: #ffffff; color: #1d1d1f; display: flex; flex-direction: column; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.maid-white-wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.maid-white-step-dots { display: flex; align-items: center; gap: 6px; }
.maid-step-dot { width: 24px; height: 6px; border-radius: 999px; border: 0; background: #e5e6ec; cursor: pointer; transition: width 180ms ease, background-color 180ms ease; }
.maid-step-dot.is-filled { background: #8e8e93; }
.maid-step-dot.is-current { width: 36px; background: #1d1d1f; }
.maid-white-wiz-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow-y: auto; }
.maid-white-question-box { display: flex; flex-direction: column; gap: 6px; }
.maid-white-question-box h2 { font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -0.02em; }
.maid-white-question-box p { font-size: 14.5px; line-height: 20px; color: #6e6e73; }
.maid-white-wiz-foot { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; padding-top: 10px; }
@keyframes maidDrawCheck { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.maid-white-done-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; }
.maid-done-check-svg { width: 76px; height: 76px; }
.maid-done-circle, .maid-done-path { stroke-dasharray: 120; stroke-dashoffset: 0; animation: maidDrawCheck 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@media (max-width: 1024px) {
  .lh-erp-split, .lh-guest-tiles-grid { grid-template-columns: 1fr; }
}
