/* The service desk (UI-4), on the tokens of application.css; the panels, figures, states and
   collapsible actions come from counter.css and workshop.css. */

.intake, .service-order, .service-items { display: flex; flex-direction: column; gap: 16px; }
.intake__form { gap: 16px; }
.intake__described { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.intake__described legend { padding: 0 6px; }
.stones-form .input { min-width: 90px; }
.input--file { height: auto; padding: 8px 12px; }
.input--date { max-width: 160px; }
.service-order__work { display: flex; flex-direction: column; gap: 6px; }
.states--due .states__link { font-size: 12px; min-height: 30px; }
.is-overdue { color: var(--err-ink); font-weight: 600; }
.is-overdue-row td:first-child { border-left: 3px solid var(--err-ink); }

/* The photos of a customer's piece. */
.photos { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.photos__img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* A step's inline form in a table cell (receive, part arrived). */
.form--inline-row { display: inline-flex; gap: 6px; align-items: center; margin: 4px 0 0; }
.verification-token { font-size: 11px; word-break: break-all; }

/* Service states. */
.badge--service-received, .badge--service-quoted { background: var(--warn-bg); color: var(--warn-ink); }
.badge--service-approved, .badge--service-in_progress { background: var(--info-bg); color: var(--info-ink); }
.badge--service-ready, .badge--service-delivered { background: var(--ok-bg); color: var(--ok-ink); }
.badge--service-declined, .badge--service-cancelled, .badge--blocked { background: var(--err-bg); color: var(--err-ink); }

/* The public approval page, outside the shell. */
.approval { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-muted); font-family: var(--font); color: var(--ink); }
.approval__card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.approval__brand { margin: 0; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; color: var(--ink-muted); }
.approval__card h1 { font-size: 22px; margin: 0; }
.approval__card p { margin: 0; }
.approval__lines { width: 100%; border-collapse: collapse; }
.approval__lines td, .approval__lines th { padding: 6px 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.approval__lines tfoot th { border-bottom: 0; font-size: 16px; }
.approval__buttons { display: flex; flex-direction: column; gap: 8px; }
.approval__buttons form { margin: 0; }

/* The printable intake receipt (service/orders/receipt, rendered without the shell). */
.print__item, .print__work { padding: 12px 0; }
.print__item h2, .print__work h2 { font-size: 14px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.print__specs { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.print__specs div { display: contents; }
.print__specs dt { color: var(--ink-muted); }
.print__specs dd { margin: 0; }

@media (max-width: 900px) {
  .photos__img { width: 88px; height: 88px; }
}
