/* Страница клиента мойки — «Б2» (волна 1, claude/AUDIT-SITE-WIDE-B2-2026-11-14.md).
   Карточки — .ui-card, кнопки — .ui-btn-primary / .ui-btn-secondary из design-system.css,
   цвета — токены --ui-*. Смысловые цвета статусов (успех/ошибка) — --success/--danger. */
.wash-page { max-width: 760px; padding-bottom: 96px; color: var(--ui-text); }
#washApp { display: grid; gap: 20px; }
/* .ui-btn-* и #washApp задают display, а он перебивает атрибут hidden */
.wash-page [hidden] { display: none !important; }

/* Шапка страницы. .page-hero общий (styles.css), .eyebrow — общим правилом «Б2» (design-system.css); здесь — только вид шапки на мойке. */
.wash-page .page-hero h1 { color: var(--ui-text); }
.wash-page .page-hero p { color: var(--ui-text-2); }

.wash-card { padding: 24px; margin-bottom: 20px; }
#washApp .wash-card { margin-bottom: 0; }
.wash-card h2 { font-size: 1.15rem; margin: 0 0 16px; color: var(--ui-text); }
.wash-card p { color: var(--ui-text-2); line-height: 1.5; }

.wash-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wash-field label { font-size: .78rem; font-weight: 700; color: var(--ui-text-2); }
/* !important и селектор внутри .wash-page: старое общее правило полей в design-system.css
   задаёт фон и рамку с !important, без этого оно перебило бы «Б2». */
.wash-page .wash-field input,
.wash-page .wash-field textarea,
.wash-page .wash-field select {
  width: 100%; min-height: 44px; padding: 11px 14px; font: inherit; font-size: .92rem; color-scheme: dark;
  color: var(--ui-text) !important;
  background: var(--ui-bg) !important;
  border: 1px solid var(--ui-line-hi) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.wash-page .wash-field input:focus,
.wash-page .wash-field textarea:focus,
.wash-page .wash-field select:focus { border-color: var(--ui-accent) !important; outline: none !important; }
.wash-field textarea { resize: vertical; }
.wash-page .wash-field input[type="file"] { min-height: 0; padding: 9px 12px; color: var(--ui-text-2) !important; }
/* Кнопка выбора файла — как .ui-btn-small, а не серая браузерная. */
.wash-page .wash-field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  background: rgba(201,166,255,0.14); color: var(--ui-accent); border: 1px solid rgba(201,166,255,0.35);
}
.wash-page .wash-field input[type="file"]::file-selector-button:hover { background: rgba(201,166,255,0.22); }
.wash-field__note { font-size: .8rem; color: var(--ui-text-3); }
.wash-photo { display: block; width: fit-content; max-width: 100%; margin: 8px 0 4px; }
.wash-photo img { display: block; max-width: min(100%, 240px); max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ui-line-hi); }

.wash-hint { font-size: .86rem; margin: 4px 0 8px; }
.wash-location { font-size: .88rem; font-weight: 600; margin: 0 0 14px; color: var(--ui-text); }
.wash-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wash-page .ui-btn-primary:disabled, .wash-page .ui-btn-secondary:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.wash-muted { color: var(--ui-text-3); font-size: .88rem; margin: 4px 0 0; overflow-wrap: anywhere; }

.wash-notice { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: .88rem; line-height: 1.45; }
.wash-notice--ok { background: rgba(15,212,138,.1); border: 1px solid rgba(15,212,138,.25); color: var(--success); }
.wash-notice--error { background: rgba(242,54,90,.1); border: 1px solid rgba(242,54,90,.25); color: var(--danger); }
#washListStatus { margin: 0 0 14px; }

.wash-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.wash-list-head h2 { margin: 0; }

.wash-request { padding: 16px 0; border-top: 1px solid var(--ui-line); }
.wash-request:first-child { border-top: 0; padding-top: 0; }
.wash-request__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wash-request__head strong { min-width: 0; overflow-wrap: anywhere; color: var(--ui-text); }
.wash-status { font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--ui-text-2); }
.wash-status--open { color: var(--success); }
.wash-status--booked { color: var(--ui-accent); }
.wash-status--cancelled { color: var(--danger); }

.wash-offers { display: grid; gap: 10px; margin-top: 12px; }
.wash-offer { background: var(--ui-bg); border: 1px solid var(--ui-line-hi); border-radius: 14px; padding: 14px; }
.wash-offer--chosen { border-color: var(--ui-accent); }
.wash-offer__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; }
.wash-offer__head strong { min-width: 0; overflow-wrap: anywhere; color: var(--ui-text); }
.wash-offer__head span { color: var(--ui-text-3); font-size: .84rem; }
.wash-offer__items { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--ui-text-2); }
.wash-offer__items li { display: flex; justify-content: space-between; gap: 12px; }
.wash-offer__items li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.wash-offer__items li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wash-offer__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.wash-offer__total { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ui-text); }
.wash-chosen { color: var(--success); font-weight: 700; font-size: .88rem; }
#washInvoiceBody .wash-offer, #washResultBody .wash-offer { margin-bottom: 12px; }
#washResultBody p { margin: 0 0 12px; }

@media (max-width: 480px) { .wash-card { padding: 18px; } }
