/* Dashboard (modules/dashboard.js): status card, Working on, what needs attention, quick actions,
   the business in rows, then supporting detail behind disclosure rows (docs/ux/flow-guide.md).
   Built from the shared components; this file holds only what is specific. Tokens only. */
.dash-page .status-card { margin-bottom: var(--s5); }
.dash-page .focus-picker { margin-bottom: var(--s5); }
.dash-attention .ios-row-value, .dash-stats .ios-row-value { font-size: var(--fs-subhead); }
.dash-attention .ios-row-value { color: var(--accent); font-weight: 600; }
.dash-value-danger { color: var(--danger); font-weight: 600; }
.dash-muted { color: var(--text-muted); }

/* a text button in a group header (Edit quick actions) */
.dash-link-btn { min-height: var(--tap); padding: 0 var(--s2); margin: calc(-1 * var(--s3)) calc(-1 * var(--s2)) calc(-1 * var(--s2)) 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-body); font-weight: 600; cursor: pointer; border-radius: var(--r-sm); }
.dash-link-btn:hover { background: var(--fill); }
.dash-link-btn:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.dash-quick .quick-actions { margin: 0; }
@media (max-width: 600px) { .dash-quick .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* avatars on the activity rows */
.dash-avatar { font-size: 11px; flex: none; }

/* disclosure rows for supporting detail (same look as a job's "Billing, costs & contract") */
.dash-details { margin: 0 0 var(--s4); border-radius: var(--r-group); background: var(--surface); }
.dash-details > summary { display: flex; align-items: center; min-height: var(--row); padding: var(--s3) var(--s4); cursor: pointer; font-weight: 600; font-size: var(--fs-body); list-style: none; }
.dash-details > summary::-webkit-details-marker { display: none; }
.dash-details > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform var(--t-base); }
.dash-details[open] > summary::after { transform: rotate(-135deg); }
.dash-details > summary:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: -3px; border-radius: var(--r-group); }
.dash-details-body { display: grid; gap: var(--s4); padding: 0 var(--s4) var(--s4); min-width: 0; }
.dash-details-body > .ios-group { margin: 0; }
.dash-details-body .ios-list, .dash-details-body .ios-row { background: var(--surface-2); }
.dash-details-body > * { min-width: 0; }

/* recent drawings */
.dash-drawings { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.dash-drawing { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: var(--s2); border-radius: var(--r-md); background: var(--surface-2); color: var(--text); text-decoration: none; }
.dash-drawing:active { background: var(--fill-strong); }
.dash-drawing:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.dash-thumb { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background-color: var(--paper); background-size: cover; background-position: center; display: grid; place-items: center; color: var(--text-muted); }
.dash-drawing-name { font-weight: 600; font-size: var(--fs-subhead); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-drawing-sub { font-size: var(--fs-footnote); color: var(--text-muted); }
.dash-drawing-new { align-items: center; justify-content: center; min-height: 150px; border: 1.5px dashed var(--border-input); background: transparent; color: var(--text-muted); font-weight: 600; }
/* phones: the row is the action; the "Review ..." label would squeeze the title */
@media (max-width: 600px) { .dash-attention .ios-row-value { display: none; } }
