/* The Dashboard (design study D7, co-look 2026-11-30): plain widgets on a 12-column grid. Light look tokens
   (assets/panel-look.css): white cards, 1px border, 8px radius, 40px rows, tinted chips, no glow, no motion. */
.dw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dw-top h1 { font-size: 20px; font-weight: 400; margin: 0; }
.dw-tools { display: flex; gap: 8px; align-items: center; }
.dw-tools .sm .ic, .dw-tools .sm svg { width: 14px; height: 14px; }
.dw-tools .sm { display: inline-flex; align-items: center; gap: 6px; }
.dw-edit-wrap { position: relative; }
.dw-edit-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 240px; padding: 8px 0;
  background: var(--look-card, #fff); border: 1px solid var(--look-border, #E2E4E8); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.dw-edit-wrap.open .dw-edit-menu { display: block; }
.dw-edit-hint { padding: 4px 14px 8px; font-size: 12px; color: var(--look-text-3, #8A919C); }
.dw-edit-row { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 34px; font-size: 14px; color: var(--look-text, #1D2126); cursor: pointer; }
.dw-edit-row:hover { background: #F4F5F7; }
.dw-edit-row input { margin: 0; width: 15px; height: 15px; accent-color: #0A63E8; }

.dw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.dw-cell { min-width: 0; display: flex; }
.dw-cell > .panel { flex: 1; margin: 0; min-width: 0; }
.dw-s4 { grid-column: span 4; } .dw-s5 { grid-column: span 5; } .dw-s6 { grid-column: span 6; }
.dw-s7 { grid-column: span 7; } .dw-s8 { grid-column: span 8; } .dw-s12 { grid-column: span 12; }

.panel.dw { padding: 16px 20px; }
.dw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.dw-head h2 { font-size: 15px; font-weight: 500; margin: 0; color: var(--look-text, #1D2126); }
.dw-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: #0A63E8; cursor: pointer; }
.dw-link:hover { text-decoration: underline; }
.dw-main { font-size: 14px; color: var(--look-text, #1D2126); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-sub { font-size: 12px; color: var(--look-text-2, #5C636E); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-empty { font-size: 14px; color: var(--look-text-3, #8A919C); padding: 8px 0; }

/* the status counts: a word and a number on a tinted tile */
.dw-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.dw-count { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border: 1px solid transparent; border-radius: 6px;
  font: inherit; text-align: left; cursor: pointer; margin: 0; }
.dw-count-l { font-size: 13px; }
.dw-count-n { font-size: 24px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.dw-count.info { background: #E8F1FE; color: #0A63E8; }
.dw-count.warn { background: #FFF3E0; color: #B85F00; }
.dw-count.due { background: #FFF8DB; color: #8A6100; }
.dw-count.bad { background: #FDECEC; color: #C62828; }
.dw-count.zero { background: #F4F5F7; color: var(--look-text-2, #5C636E); border-color: var(--look-divider, #ECEEF1); }
.dw-count:hover { filter: brightness(.97); }

/* tables */
.dw-table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.dw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dw-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--look-text-2, #5C636E); height: 32px; padding: 0 8px; border-bottom: 1px solid var(--look-border, #E2E4E8); white-space: nowrap; }
.dw-table td { height: 40px; padding: 4px 8px; border-bottom: 1px solid var(--look-divider, #ECEEF1); vertical-align: middle; max-width: 320px; }
.dw-table tr:last-child td { border-bottom: 0; }
.dw-table th:first-child, .dw-table td:first-child { padding-left: 0; }
.dw-table tbody tr { cursor: pointer; }
.dw-table tbody tr:hover td { background: #F7F8FA; }
.dw-table .num { text-align: right; width: 80px; }
.dw-n { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 4px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.dw-n.ok { background: #E7F6EC; color: #1E7B3A; }
.dw-n.warn { background: #FFF3E0; color: #B85F00; }
.dw-n.bad { background: #FDECEC; color: #C62828; }
.dw-n.zero { background: #EEF0F3; color: #5C636E; }

/* the recent alerts list */
.dw-list { display: flex; flex-direction: column; }
.dw-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 0; border: 0; border-top: 1px solid var(--look-divider, #ECEEF1);
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; margin: 0; }
.dw-item:first-child { border-top: 0; }
.dw-item-t { min-width: 0; flex: 1; }
.dw-item:hover .dw-main { color: #0A63E8; }

/* waiting for a decision */
.ov-dec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 40px; border-top: 1px solid var(--look-divider, #ECEEF1); flex-wrap: wrap; }
.ov-dec:first-of-type { border-top: 0; }
.ov-dec-main { min-width: 0; flex: 1; }
.ov-dec-act { gap: 8px; }
.ov-only { font-size: 12px; }

/* the line chart */
.dw-chart { width: 100%; height: auto; display: block; }
.dw-grid-l { stroke: #ECEEF1; stroke-width: 1; }
.dw-ax { font-size: 10px; fill: #8A919C; font-family: inherit; }
.dw-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dw-line.a, .dw-pt.a { stroke: #0A63E8; } .dw-pt.a { fill: #0A63E8; }
.dw-line.b, .dw-pt.b { stroke: #E07A00; } .dw-pt.b { fill: #E07A00; }
.dw-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--look-text-2, #5C636E); }
.dw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dw-sw { display: inline-block; width: 12px; height: 2px; }
.dw-sw.a { background: #0A63E8; } .dw-sw.b { background: #E07A00; }

/* plain number widgets */
.dw-num { display: block; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.dw-big { font-size: 28px; font-weight: 400; color: var(--look-text, #1D2126); font-variant-numeric: tabular-nums; }
.dw-of { font-size: 14px; color: var(--look-text-3, #8A919C); margin-left: 2px; }

/* the old status tiles, still used on the phone (cardsRow) */
.ov-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ov-card { text-align: left; cursor: pointer; font: inherit; color: inherit; margin: 0; }
.ov-card .n { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }

#view:fullscreen { background: var(--look-page, #F4F5F7); overflow: auto; padding: 24px; }

@media (max-width: 1200px) { .dw-s4 { grid-column: span 6; } .dw-s5, .dw-s7, .dw-s8 { grid-column: span 12; } }
@media (max-width: 760px) { .dw-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .dw-cell { grid-column: auto !important; } .panel.dw { padding: 14px 16px; } .dw-table-wrap { margin: 0 -16px; padding: 0 16px; } }

/* The setup checklist with a score (design study D12, assets/panel-setup.js): the one lit card on the page. */
.panel.su-hot::before { background: var(--edge-hot); }
.su-lead { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.su-next { flex: 1; min-width: 240px; }
.su-next h2 { margin: 6px 0 4px; }
.su-next .sub { margin: 0 0 12px; }
.su-eyebrow, .su-group { font-size: 13px; font-weight: 500; color: var(--look-text-2, #5C636E); }
.su-group { margin: 16px 0 0; }
.su-tools { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.su-tools a { text-decoration: none; }
.su-act { gap: 12px; align-items: center; }
.su-how, .su-note { font-size: 13px; }
.su-text { flex: 1; min-width: 200px; }
.su-text .faint { font-size: 13px; }
.su-steps { margin-top: 14px; }
.su-steps summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--muted); }
.su-fold { margin: -6px 0 16px; font-size: 13px; }
