/* App homes (components/dashboard.html): a row of figures, then two columns. The left column holds the app's work with
   Getting started at its foot; the right one holds the ways on and the settings. One column at 56.25rem and narrower. */
.dash{display:grid;gap:var(--space-3);min-width:0}
.dash > *{margin:0}
.dash-note{margin:calc(-1 * var(--space-1)) 0 0;color:var(--muted);font-size:var(--fs-sm)}

/* The figures */
.home-page{min-width:0}
.home-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:var(--space-3)}
.home-metric{display:flex;min-width:0;flex-direction:column;gap:var(--space-1);color:var(--ink);text-decoration:none}
a.home-metric:hover{border-color:var(--accent)}
.home-metric .label{color:var(--muted);font-size:var(--t-label);font-weight:var(--fw-semibold)}
.home-metric strong{font-size:var(--fs-xl);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home-metric small{color:var(--muted)}

/* The two columns */
.dash-cols,.home-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:var(--space-3);align-items:start}
.dash-col{display:grid;gap:var(--space-3);align-content:start;min-width:0}
.dash-col > .card{margin:0}
.card h3:has(> svg){display:flex;align-items:center;gap:var(--space-2)}
.card h3 > svg,.dash-menu-name svg,.dash-menu-one svg,.dash-all-set svg{width:var(--icon-sm);height:var(--icon-sm);flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.card h3 > svg{color:var(--muted)}
.dash-kv{display:grid;gap:var(--space-1)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}
.section-heading h3{margin:0}

/* A card that asks for something before the app is complete */
.card.is-warn{border-left:4px solid var(--warning)}
.card.is-warn p{margin:0}
.scm-method-default{color:var(--muted);font-style:italic}

/* Lists inside a card */
.dash-list{display:grid;gap:var(--space-1);margin:var(--space-2) 0 0;padding:0;list-style:none}
.dash-list li{display:flex;gap:var(--space-2);align-items:baseline}
.dash-list li::before{content:"";flex:none;width:.375rem;height:.375rem;border-radius:var(--radius-round);background:var(--warning);transform:translateY(-.125rem)}
.dash-empty{margin:var(--space-2) 0 0;color:var(--muted)}

/* Getting started */
.dash-count{color:var(--muted);font-size:var(--fs-sm);font-variant-numeric:tabular-nums;white-space:nowrap}
.dash-start .meter{height:.5rem;margin:var(--space-2) 0}
.dash-all-set{display:flex;align-items:center;gap:var(--space-2);margin:0 0 var(--space-2);color:var(--pos);font-weight:var(--fw-semibold)}
.dash-steps{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}
.dash-step a{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2);border-radius:var(--radius-sm);color:var(--ink);text-decoration:none}
.dash-step a:hover{background:var(--surface-2)}
.dash-mark{flex:none;display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;border:1px solid var(--line);border-radius:var(--radius-round);color:var(--muted);font-size:var(--fs-xs);font-weight:var(--fw-bold);font-variant-numeric:tabular-nums}
.dash-mark svg{width:var(--icon-xs);height:var(--icon-xs);fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.dash-step-text{min-width:0}
.dash-step.is-done .dash-mark{border-color:var(--pos);background:var(--pos);color:var(--on-strong)}
.dash-step.is-done .dash-step-text{color:var(--muted)}
.dash-step.is-next a{background:var(--accent-wash)}
.dash-step.is-next .dash-mark{border-color:var(--accent-ink);color:var(--accent-ink)}
.dash-step.is-next .dash-step-text{font-weight:var(--fw-semibold)}
.dash-next{margin-left:auto;padding-left:var(--space-2);color:var(--accent-ink);font-size:var(--fs-xs);font-weight:var(--fw-bold);white-space:nowrap}
.dash-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);margin:var(--space-3) 0 0;font-size:var(--fs-sm)}

/* The ways on: the app's menu as links */
.dash-menu-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,10rem),1fr));gap:var(--space-2);margin-top:var(--space-2)}
.dash-menu-one{display:flex;align-items:center;gap:var(--space-2);min-width:0;padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--ink);text-decoration:none;font-weight:var(--fw-medium)}
.dash-menu-one:hover{border-color:var(--accent);background:var(--surface-2)}
.dash-menu-group{grid-column:1 / -1;min-width:0}
.dash-menu-name{display:flex;align-items:center;gap:var(--space-2);margin:var(--space-1) 0;color:var(--muted);font-size:var(--t-label);font-weight:var(--fw-semibold)}
.dash-links{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-3);margin:0;padding:0;list-style:none}
.dash-links a{display:inline-block;padding:var(--space-1) 0}

/* Accounting's home: the latest entries, the New buttons and the card before setup */
.latest-entries{display:grid;margin-top:var(--space-2)}
.latest-entry{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:var(--space-2);align-items:center;padding:var(--space-2) 0;border-bottom:1px solid var(--table-rule);text-decoration:none}
.latest-entry time,.latest-entry small{color:var(--muted);font-variant-numeric:tabular-nums}
.latest-entry span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.latest-entry small{grid-column:3}
.home-new{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3)}
.home-start{max-width:45rem;width:100%;margin-inline:auto}
.home-start h2{margin:var(--space-1) 0}
.home-start p:not(.label){color:var(--muted)}
.home-start ~ .dash-start{max-width:45rem;width:100%;margin-inline:auto}

/* A location's card on the Locations home */
.dash-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,12rem),1fr));gap:var(--space-2);margin-top:var(--space-2)}
.dash-tiles > a{display:block;padding:var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--ink);text-decoration:none}
.dash-tiles > a:hover{border-color:var(--accent);background:var(--surface-2)}
.dash-tiles h4{margin:0;font-size:var(--fs-md)}
.dash-tiles p{margin:var(--space-1) 0 0}

@media(max-width:56.25rem){.dash-cols,.home-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:45rem){.home-metrics{gap:var(--space-2)}.home-metric strong{font-size:var(--fs-lg)}.latest-entry small{display:none}}
