/* 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; }

/* Dashboard widened 2026-12-01: header time, edit mode with order, more widgets, Complete your setup, Get started. */
.dw-head-r { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.dw-time { font-size: 12px; color: var(--look-text-3, #8A919C); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dw-line.c, .dw-pt.c { stroke: #1E7B3A; } .dw-pt.c { fill: #1E7B3A; }
.dw-sw.c { background: #1E7B3A; }
.dw-nowrap { white-space: nowrap; }
.dw-cellt { font-size: 13px; color: var(--look-text-2, #5C636E); }

/* edit mode: the drag handle, arrows and Hide sit in each card's own header; the grid keeps its height */
.dw-edit-note { margin-top: 8px; font-size: 13px; color: var(--look-text-2, #5C636E); }
.dw-cell.dw-editing > .panel { outline: 1px dashed #8FA0B8; outline-offset: -1px; cursor: grab; }
.dw-cell.dw-editing > .panel > :not(.dw-head) { pointer-events: none; opacity: .6; }
.dw-cell.dw-editing .dw-head-r { position: relative; min-width: 124px; }
.dw-cell.dw-editing .dw-head-r > :not(.dw-ctl) { visibility: hidden; }
.dw-cell.dw-editing .dw-ctl { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.dw-head { min-height: 22px; }
.dw-ctl { display: inline-flex; align-items: center; gap: 4px; }
.dw-head .dw-mini { height: 22px; min-height: 22px; min-width: 22px; padding: 0 6px; }
.dw-head .dw-grip { min-height: 20px; height: 20px; }
.dw-cell.dw-dragging { opacity: .4; }
.dw-cell.dw-over > .panel { outline: 2px solid #0A63E8; background: #E8F1FE; }
.dw-grip { border: 0; background: none; padding: 2px; margin-left: -4px; cursor: grab; color: var(--look-text-2, #5C636E); border-radius: 4px; display: inline-flex; }
.dw-grip .ic { width: 16px; height: 16px; }
.dw-grip:focus-visible, .dw-mini:focus-visible { outline: 2px solid #0A63E8; outline-offset: 1px; }
.dw-mini { border: 1px solid var(--look-border, #E2E4E8); background: var(--look-card, #fff); border-radius: 6px; height: 26px; min-width: 26px; padding: 0 8px;
  font: inherit; font-size: 12px; color: var(--look-text, #1D2126); cursor: pointer; }
.dw-mini:hover:not([disabled]) { background: #F4F5F7; }
.dw-mini[disabled] { opacity: .4; cursor: default; }
.dw-edit-menu .dw-edit-row { width: 100%; border: 0; background: none; font: inherit; text-align: left; }

/* request activity: 14 or 30 days */
.dw-segs { display: inline-flex; border: 1px solid var(--look-border, #E2E4E8); border-radius: 6px; overflow: hidden; margin: -4px 0 8px; }
.dw-seg { border: 0; background: var(--look-card, #fff); font: inherit; font-size: 12px; padding: 4px 10px; color: var(--look-text-2, #5C636E); cursor: pointer; }
.dw-seg + .dw-seg { border-left: 1px solid var(--look-border, #E2E4E8); }
.dw-seg.on { background: #E8F1FE; color: #0A63E8; }

/* response times */
.dw-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dw-time-box { padding: 10px 12px; border: 1px solid var(--look-divider, #ECEEF1); border-radius: 6px; min-width: 0; }
.dw-time-box .dw-big { font-size: 22px; margin-top: 4px; }
.dw-big.dw-none { font-size: 14px; color: var(--look-text-3, #8A919C); }

/* requests per office: a thin bar under each name */
.dw-meter { height: 4px; background: #EEF0F3; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.dw-meter i { display: block; height: 100%; background: #0A63E8; border-radius: 2px; }
.dw-n.info { background: #E8F1FE; color: #0A63E8; }

/* server alerts and the map */
.dw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.dw-count.ok { background: #E7F6EC; color: #1E7B3A; }
.dw-map { display: flex; flex-direction: column; }
.dw-map-o { display: flex; align-items: center; gap: 10px; min-height: 44px; 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-map-o:first-child { border-top: 0; }
.dw-map-o .dw-item-t { display: flex; flex-direction: column; }
.dw-map-o:hover .dw-main { color: #0A63E8; }
.dw-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dw-dot.ok { background: #1E7B3A; } .dw-dot.bad { background: #C62828; } .dw-dot.zero { background: #C4C9D1; }

/* Complete your setup */
.dw-setup { margin-top: 16px; }
.dw-x { border: 0; background: none; font-size: 20px; line-height: 1; padding: 0 4px; color: var(--look-text-3, #8A919C); cursor: pointer; }
.dw-x:hover { color: var(--look-text, #1D2126); }
.dw-bar-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dw-progress { flex: 1; height: 8px; background: #EEF0F3; border-radius: 4px; overflow: hidden; }
.dw-progress i { display: block; height: 100%; background: #0A63E8; border-radius: 4px; }
.dw-pct { font-size: 13px; font-weight: 500; color: var(--look-text, #1D2126); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.dw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.dw-step { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--look-divider, #ECEEF1); }
.dw-step .dw-item-t { display: flex; flex-direction: column; }
.dw-step .dw-sub { white-space: normal; }
.dw-step-n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 12px; font-weight: 500; background: #EEF0F3; color: var(--look-text-2, #5C636E); }
.dw-step-n .ic { width: 14px; height: 14px; }
.dw-step.ok .dw-step-n { background: #E7F6EC; color: #1E7B3A; }
.dw-step.ok .dw-main { color: var(--look-text-2, #5C636E); }

/* Get started: a button at the bottom right and the panel it opens */
.dw-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 20px;
  border: 0; border-radius: 22px; background: #0A63E8; color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 4px 14px rgba(10,99,232,.3); }
.dw-fab:hover { background: #0855C7; }
.dw-fab:focus-visible { outline: 2px solid #1D2126; outline-offset: 2px; }
.dw-fab-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: #0A63E8; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.dw-start { position: fixed; right: 24px; bottom: 80px; z-index: 41; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto;
  background: var(--look-card, #fff); border: 1px solid var(--look-border, #E2E4E8); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.dw-start[hidden] { display: none; }
.dw-start-panel { padding: 16px 20px; }
.dw-start-panel .dw-steps { grid-template-columns: 1fr; }
.dw-start-panel #ovSetup:not(:empty) { margin-top: 16px; }

@media (max-width: 760px) {
  .dw-head-r .dw-time { display: none; }
  .dw-fab { right: 16px; bottom: 16px; }
  .dw-start { right: 16px; left: 16px; width: auto; bottom: 72px; }
  .dw-times, .dw-pair { grid-template-columns: 1fr 1fr; }
}
