/* Diagnostic authorization (batch U6-B, job-diagnostics.js): the advisor's card and the Repair tab's scope. shop.css tokens. */
.dg-card { display: grid; gap: 10px; min-width: 0; }
.dg-card h2, .dg-sec h2 { margin: 0; }
.dg-sec { margin-top: 22px; display: grid; gap: 12px; min-width: 0; }
.dg-sec[data-empty="1"] { display: none; }
.dg-sub { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.dg-h3 { margin: 6px 0 0; font: 600 15px/1.3 var(--font-display); }
.dg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.dg-svc, .dg-stop { background: var(--surface); border-radius: var(--r-l); padding: 14px 16px; box-shadow: 0 0 0 .5px var(--hair); display: grid; gap: 8px; min-width: 0; }
.dg-card .dg-svc, .dg-card .dg-stop { background: var(--surface-2, var(--surface)); }
.dg-stop.s-open, .dg-stop.s-declined, .dg-stop.s-sent { box-shadow: 0 0 0 1.5px var(--amber, #c98a00); }
.dg-svc p, .dg-stop p { margin: 0; overflow-wrap: anywhere; }
.dg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
.dg-top strong { overflow-wrap: anywhere; min-width: 0; }
.dg-pill { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); text-align: right; }
.dg-pill.s-signed { background: var(--green-soft); color: var(--green); }
.dg-pill.s-open, .dg-pill.s-sent, .dg-pill.s-declined, .dg-pill.s-drafted { background: var(--amber-soft); color: var(--amber); }
.dg-fine { font-size: 12.5px; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.dg-terms { margin: 0; display: grid; gap: 4px; }
.dg-row { display: grid; grid-template-columns: 11em 1fr; gap: 10px; font-size: 14px; }
.dg-row dt { color: var(--ink-2); margin: 0; }
.dg-row dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.dg-tests { list-style: none; margin: 0; padding: 0; display: grid; }
.dg-tests li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 14px; min-width: 0; }
.dg-tests li span:first-child { overflow-wrap: anywhere; min-width: 0; }
.dg-tests li.is-done span:first-child::before { content: '✓ '; color: var(--green); font-weight: 700; }
.dg-time { display: grid; gap: 4px; }
.dg-bar { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.dg-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.dg-form { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--hair); min-width: 0; }
.dg-form textarea, .dg-form input[type="text"] { width: 100%; box-sizing: border-box; min-height: 44px; }
.dg-field { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.dg-field select { min-height: 44px; max-width: 100%; }
.dg-td { display: grid; gap: 8px; }
.dg-chk { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.dg-chk input { width: 20px; height: 20px; flex: none; }
.dg-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.dg-acts button { min-height: 44px; }
.dg-add select { min-height: 44px; max-width: 100%; flex: 1 1 14em; }
.dg-disp { color: var(--ink); }
.dg-res { font-size: 13.5px; background: var(--fill); border-radius: var(--r-m); padding: 8px 10px; }
.dg-new h3 { margin: 0 0 4px; font: 600 15px/1.3 var(--font-display); }
.dg-billbox { display: grid; gap: 6px; }
.dg-bill { font-size: 14px; background: var(--fill); border-radius: var(--r-m); padding: 8px 10px; }
@media (max-width: 600px) { .dg-row { grid-template-columns: 1fr; gap: 0; } .dg-row + .dg-row { margin-top: 4px; } }
