/* The dashboards (/dashboard, /dashboard/design, /dashboard/admin): the workbench's colours, in cards */
.dash { max-width: 1400px; margin: 0 auto; padding: 18px 24px 56px; color: #182b3c; }
.dash h1 { font-size: 28px; margin: 0 0 4px; }
.dash-intro { color: #637588; font-size: 14px; margin-bottom: 20px; }
.dash-message { background: #eef6ee; border: 1px solid #c9e2c9; border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.dash-card { background: #fff; border: 1px solid #dce4ec; border-radius: 8px; padding: 16px 18px; min-width: 0; overflow-x: auto; }
.dash-card.wide { grid-column: 1 / -1; }
.dash-card h2 { font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.dash-card h2 .count { background: #e8eef4; color: #3b5268; border-radius: 10px; font-size: 12px; padding: 1px 8px; font-weight: normal; }
.dash-empty { color: #8597a8; font-size: 13px; padding: 6px 0; }
.dash table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash th { text-align: left; color: #637588; font-weight: 600; border-bottom: 1px solid #dce4ec; padding: 5px 6px; }
.dash td { border-bottom: 1px solid #f0f3f6; padding: 6px; vertical-align: top; }
.dash td.num { text-align: right; }
.dash-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.dash-stat { border: 1px solid #dce4ec; border-radius: 6px; padding: 8px 14px; min-width: 110px; }
.dash-stat b { display: block; font-size: 22px; }
.dash-stat span { color: #637588; font-size: 12px; }
.dash-badge { display: inline-block; border-radius: 9px; padding: 0 7px; font-size: 12px; }
.dash-badge.is-error { background: #fbe4e4; color: #a12626; }
.dash-badge.is-warning { background: #fdf1d8; color: #8a5a00; }
.dash-badge.is-ok { background: #e3f3e6; color: #22662f; }
.dash-badge[title] { cursor: help; }
.dash-start { border-top: 1px solid #f0f3f6; padding: 10px 0; }
.dash-start:first-of-type { border-top: 0; }
.dash-start summary { cursor: pointer; }
.dash-start form { margin-top: 8px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; align-items: center; }
.dash-start form button { grid-column: 2; justify-self: start; }
.dash form.inline { display: inline; }
.dash-form { display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; align-items: center; max-width: 520px; }
.dash-form button { grid-column: 2; justify-self: start; }
.dash dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 13px; }
.dash dt { color: #637588; font-weight: normal; }
.dash code { font-size: 12px; overflow-wrap: anywhere; }
.dash-muted { color: #8597a8; font-size: 12px; }
@media (max-width: 600px) {
  .dash { padding: 12px 16px 40px; }
  .dash-grid { grid-template-columns: 1fr; }
}
/* the model catalog */
.dash-catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.dash-catalog-filters input { flex: 1 1 240px; max-width: 420px; padding: 6px 10px; }
.dash-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.catalog-entry[hidden] { display: none; }
.catalog-preview { display: block; background: #f6f9fb; border: 1px solid #edf1f5; border-radius: 6px; margin-bottom: 12px; height: 170px; }
.catalog-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.catalog-issues { margin: 6px 0 10px; font-size: 13px; }
.catalog-issues ul { padding-left: 18px; margin: 6px 0 0; }
.catalog-import { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.catalog-import input { flex: 1 1 160px; min-width: 0; padding: 4px 8px; }
@media (max-width: 600px) { .dash-catalog { grid-template-columns: 1fr; } }
.model-description { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* what a task is for: its label and its case's (engine/Labels.ts) */
.task-label { color: #667085; font-size: 0.85em; }

/* the Integration page: its points, and each point's settings */
.integration-points { margin: 6px 0 4px; font-size: 13px; }
.dash-card h3 { font-size: 14px; margin: 16px 0 8px; }
.integration-settings td { vertical-align: top; }
.integration-settings td:first-child { max-width: 420px; }
.integration-settings td:last-child { min-width: 240px; }
.integration-settings .form-control { height: 30px; padding: 4px 8px; font-size: 13px; }
.integration-settings .checkbox-inline { font-size: 12px; margin-right: 8px; }

/* the Design page's policies (docs/docs/add-ons/policies.md): what each decides, and the policy laid out to read */
.dash .policy-new { margin: 4px 0 8px; }
.dash .policy-decides { margin-right: 4px; }
.dash .policy-view-row td { border-top: none; padding-top: 0; }
.dash .policy-view-row summary { cursor: pointer; color: #666; font-size: 12px; }
.dash pre.policy-view { white-space: pre; font-size: 12px; line-height: 1.45; background: #fafafa; border: 1px solid #eee; padding: 8px 10px; max-height: 420px; overflow: auto; }
.dash .policy-view .pv-header, .dash .policy-view .pv-section, .dash .policy-view .pv-rule { color: #6a1b9a; font-weight: 600; }
.dash .policy-view .pv-step { color: #1565c0; font-weight: 600; }
.dash .policy-view .pv-name { font-weight: 600; }
.dash .policy-view .pv-comment { color: #888; font-style: italic; }
.dash .policy-view .pv-table { color: #2e7d32; }
.dash .policy-subhead { font-size: 15px; margin-top: 14px; }
.dash .policy-problems { margin: 6px 0 0; font-size: 12px; }
/* a policy marked: the DSL's words plain (its keywords bold), the model's terms (fields, defined terms) blue, values green */
.dash .policy-legend { font-size: 12px; margin: 6px 0 4px; }
.dash .policy-legend span { margin-right: 12px; }
.dash .pv-kw { color: #6a1b9a; font-weight: 600; }
.dash .pv-dsl { color: #333; }
.dash .pv-term { color: #1565c0; font-weight: 600; background: #e8f0fe; border-radius: 2px; }
.dash .pv-value { color: #2e7d32; background: #edf7ed; border-radius: 2px; }
.dash .pv-name { font-weight: 600; }
.dash .pv-comment { color: #888; font-style: italic; }
/* the policy language's categories (docs/design/policy-language.md §9) */
.dash .pv-construct { color: #6b3fb5; background: #f1ebfb; border-radius: 2px; padding: 0 2px; }
.dash .pv-var { color: #0b7a75; background: #e3f4f2; border-radius: 2px; padding: 0 2px; }
.dash .pv-prop { color: #b35a00; background: #fdf0e1; border-radius: 2px; padding: 0 2px; }
.dash .pv-concept { color: #1f5fbf; background: #e7effc; border-radius: 2px; padding: 0 2px; font-weight: 500; }
.dash .pv-error { color: #b3261e; text-decoration: wavy underline; }
.dash .policy-view [title] { cursor: help; }
