/* Scoped dashboard surface; spreadsheet, worker panels and public shares keep their styles. */

#insightsPanel.dashboard-panel { position:relative; display:flex; flex-direction:column; padding:0; overflow:hidden; min-height:0; background:#f6f7fb; }

#insightsPanel.dashboard-panel[hidden] { display:none; }

.dashboard-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:18px 24px; background:#fff; border-bottom:1px solid #e7eaf0; flex:none; }

.dashboard-heading { display:flex; align-items:center; gap:11px; min-width:0; }

.dashboard-heading-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; color:#5364db; background:#eef0ff; }

.dashboard-heading-mark svg { width:20px; height:20px; }

.dashboard-heading p { margin:0 0 4px; font-size:11px; color:#8a93a3; max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.dashboard-heading h2 { margin:0; font-size:19px; font-weight:650; letter-spacing:-.4px; color:#202b3c; }

.dashboard-toolbar-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }

.dashboard-toolbar .button, .dashboard-inspector .button { border-radius:7px; font-size:12px; min-height:34px; }

.dashboard-save-status { display:flex; align-items:center; gap:6px; font-size:11px; color:#8b96a5; margin-right:7px; }

.dashboard-save-status::before { content:""; width:5px; height:5px; border-radius:50%; background:#6eaf99; }

.dashboard-save-status.is-dirty { color:#9b772c; }

.dashboard-save-status.is-dirty::before { background:#d6a447; }

.dashboard-icon-button { display:inline-flex; align-items:center; justify-content:center; width:29px; height:29px; padding:0; background:transparent; border:1px solid transparent; border-radius:6px; color:#8a95a5; flex:none; cursor:pointer; }

.dashboard-icon-button svg { width:15px; height:15px; }

.dashboard-icon-button:hover { background:#f2f4f9; color:#4c5e79; }

.dashboard-icon-button:disabled { opacity:.45; cursor:default; }

.dashboard-icon-button:focus-visible, .dashboard-text-button:focus-visible, .dashboard-drag-handle:focus-visible { outline:2px solid #6276ed; outline-offset:2px; }

.dashboard-workspace { display:flex; flex:1; min-height:0; min-width:0; position:relative; overflow:hidden; }

.dashboard-main { min-width:0; flex:1; padding:18px 16px 40px; overflow:auto; background-color:#f6f7fb; background-image:radial-gradient(#dfe3ec .7px,transparent .7px); background-size:18px 18px; }

.dashboard-canvas-caption { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 10px 14px; font-size:11px; color:#9aa3b0; }

.dashboard-canvas-caption>span { display:flex; align-items:center; gap:6px; }

.dashboard-canvas-caption svg { width:13px; height:13px; }

.dashboard-canvas-caption strong { font-weight:600; color:#768294; }

.dashboard-caption-separator { margin:0 4px; }

.dashboard-empty { display:flex; align-items:center; justify-content:center; flex-direction:column; min-height:380px; padding:40px 20px; text-align:center; }

.dashboard-empty h3 { margin:25px 0 10px; font-size:22px; color:#354157; font-weight:600; letter-spacing:-.5px; }

.dashboard-empty p { margin:0 0 24px; font-size:13px; color:#8a94a4; line-height:1.8; }

.dashboard-empty-symbol { padding:18px; color:#7382b1; }

.dashboard-empty-symbol svg { width:32px; height:32px; }

.dashboard-empty-illustration { display:flex; align-items:center; justify-content:center; position:relative; height:96px; width:230px; }

.dashboard-empty-illustration span { display:grid; place-items:center; width:70px; height:78px; background:#fff; color:#93a0c8; border:1px solid #e6eaf3; border-radius:12px; box-shadow:0 7px 20px #26345908; }

.dashboard-empty-illustration span svg { width:30px; height:30px; }

.dashboard-empty-illustration span:first-child { transform:rotate(-9deg) translateY(7px); }

.dashboard-empty-illustration span:nth-child(2) { color:#6678df; z-index:1; width:83px; height:92px; box-shadow:0 12px 25px #26345910; }

.dashboard-empty-illustration span:last-child { transform:rotate(9deg) translateY(7px); }

.dashboard-quick-starts { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:28px; color:#9aa4b1; font-size:11px; }

.dashboard-quick-starts>span { width:100%; margin-bottom:3px; }

.dashboard-quick-starts button { display:flex; align-items:center; gap:5px; border:1px solid #e1e6ef; background:#fff; color:#708096; padding:6px 10px; border-radius:18px; cursor:pointer; font:inherit; }

.dashboard-quick-starts button:hover { color:#5265df; border-color:#c5cdfa; }

.dashboard-quick-starts button svg { width:12px; height:12px; }

.dashboard-tile { display:flex; flex-direction:column; height:100%; min-width:0; overflow:hidden; border:1px solid #e4e8f1; border-radius:11px; background:#fff; box-shadow:0 2px 5px #24334f03; }

.dashboard-tile.is-selected { border-color:#a6b2f6; box-shadow:0 0 0 2px #6276ed10; }

.dashboard-tile-header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:16px 12px 8px 15px; flex:none; }

.dashboard-tile-heading { display:flex; gap:5px; align-items:center; min-width:0; }

.dashboard-tile-heading>div { min-width:0; }

.dashboard-drag-handle { cursor:grab; }

.dashboard-drag-handle:active { cursor:grabbing; }

.dashboard-grip { opacity:.35; color:#8993a7; margin-left:-5px; }

.dashboard-grip svg { width:12px; height:16px; }

.dashboard-tile-header:hover .dashboard-grip { opacity:1; }

.dashboard-tile h3 { margin:0 0 5px; font-size:13px; color:#3b4558; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.dashboard-tile-header p { margin:0; color:#a0a8b5; font-size:10px; }

.dashboard-tile-actions { display:flex; flex:none; gap:2px; margin-top:-3px; }
.dashboard-tile-heading { flex:1; }
.dashboard-tile-actions [data-dashboard-ask] { color:var(--blue); }
.dashboard-tile-actions .ask-presence { width:20px; height:20px; }

.dashboard-tile-actions .dashboard-icon-button { width:25px; height:25px; }

.dashboard-tile-actions .dashboard-icon-button svg { width:13px; height:13px; }

.dashboard-tile-plot { flex:1; min-height:80px; min-width:0; padding:3px 12px 5px; overflow:hidden; }

.dashboard-chart { width:100%; height:100%; min-height:80px; }

.dashboard-chart[hidden] { display:none; }

.dashboard-tile-footer { display:flex; align-items:center; justify-content:space-between; gap:7px; min-height:38px; padding:4px 12px; border-top:1px solid #f0f2f6; flex:none; }

.dashboard-tile-footer>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:flex; align-items:center; gap:5px; color:#a0a8b5; font-size:10px; margin-right:auto; }

.dashboard-tile-footer>span svg { width:12px; height:12px; }

.dashboard-text-button { display:inline-flex; align-items:center; gap:4px; padding:4px 0; border:0; background:none; color:#7887a1; font-size:10px; cursor:pointer; white-space:nowrap; }

.dashboard-text-button:hover { color:#5365dc; }

.dashboard-text-button svg { width:12px; height:12px; }

.dashboard-tile-warning { flex:none; padding:4px 14px; font-size:10px; color:#a17b34; max-height:85px; overflow:auto; }

.dashboard-tile-warning summary { display:flex; align-items:center; gap:5px; cursor:pointer; }

.dashboard-tile-warning svg { width:12px; height:12px; }

.dashboard-tile-warning p { line-height:1.5; }

.dashboard-chart-error { display:grid; align-content:center; justify-items:center; text-align:center; flex:1; padding:16px; gap:8px; font-size:12px; color:#9a8265; }

.dashboard-chart-error p { overflow-wrap:anywhere; line-height:1.6; }

.dashboard-preview-area { margin:0 8px 18px; }

.dashboard-preview-label { display:flex; align-items:center; gap:6px; margin:0 0 9px; color:#687ac4; font-size:11px; }

.dashboard-preview-label svg { width:13px; height:13px; }

.dashboard-preview-area .dashboard-tile { height:335px; border:1px dashed #aebcf1; }

.dashboard-values-scroll { width:100%; height:100%; overflow:auto; }

.dashboard-values { width:100%; min-width:0; max-width:100%; table-layout:fixed; border-collapse:collapse; font-size:11px; }

.dashboard-values th { height:auto; top:0; border:0; border-bottom:1px solid #edf0f6; padding:8px; text-align:right; font-weight:500; color:#939dad; background:#fafbfe; }

.dashboard-values th:first-child { width:54%; text-align:left; }

.dashboard-values td { border:0; border-bottom:1px solid #f1f3f7; padding:8px; text-align:right; color:#69788f; background:#fff; font-variant-numeric:tabular-nums; }

.dashboard-values td:first-child { position:static; text-align:left; }

.dashboard-values td:not(:first-child) { white-space:nowrap; }

.dashboard-values button { display:flex; align-items:center; gap:6px; padding:0; border:0; background:none; font:inherit; color:#66758e; cursor:pointer; text-align:left; overflow-wrap:anywhere; }

.dashboard-values button:hover { color:#5265dd; text-decoration:underline; }

.dashboard-values button>span { width:6px; height:6px; border-radius:50%; flex:none; }

.dashboard-values-scroll>p { margin:8px; font-size:10px; line-height:1.6; color:#9aa4b4; }

.dashboard-alert { display:flex; align-items:flex-start; gap:8px; padding:11px 13px; margin:0 8px 14px; border:1px solid #f0dfbc; border-radius:8px; background:#fffbf2; color:#9d783a; font-size:12px; line-height:1.6; }

.dashboard-alert>svg { width:16px; height:16px; flex:none; margin-top:2px; }

.dashboard-alert .dashboard-text-button { display:block; font-size:12px; text-decoration:underline; }

.dashboard-inspector { display:flex; flex-direction:column; width:302px; flex:none; min-height:0; background:#fff; border-left:1px solid #e7eaf1; z-index:35; }

.dashboard-inspector>header { display:flex; justify-content:space-between; align-items:center; flex:none; padding:19px 18px 17px; border-bottom:1px solid #edf0f5; }

.dashboard-inspector>header p { margin:0 0 6px; color:#a1aaba; font-size:9px; letter-spacing:1px; font-weight:600; }

.dashboard-inspector h3 { margin:0; font-size:14px; color:#3b4559; font-weight:600; }

.dashboard-inspector-fields { flex:1; min-height:0; padding:19px 18px; overflow:auto; }

.dashboard-field-label { display:block; color:#8c97a9; font-size:11px; margin-bottom:9px; }

.dashboard-chart-types { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:22px; }

.dashboard-chart-types button { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:9px; height:74px; border:1px solid #e5e8f1; background:#fff; border-radius:8px; color:#8c97aa; font:inherit; font-size:11px; cursor:pointer; }

.dashboard-chart-types button svg { width:24px; height:24px; }

.dashboard-chart-types button[aria-pressed="true"] { color:#5d70df; background:#f4f6ff; border-color:#b2bef6; box-shadow:0 0 0 1px #b2bef620; }

.dashboard-chart-types button:disabled { opacity:.4; cursor:default; }

.dashboard-field { display:flex; flex-wrap:wrap; align-items:center; gap:7px; color:#7d899e; font-size:11px; margin:0 0 15px; }

.dashboard-field>span { color:#bac1cd; margin-left:auto; font-size:10px; }

.dashboard-field select, .dashboard-field input { width:100%; height:35px; padding:0 10px; border:1px solid #e4e8f0; border-radius:6px; font:inherit; font-size:12px; color:#647086; background:#fff; outline:none; box-sizing:border-box; }

.dashboard-field input::placeholder { color:#b1b9c9; }

.dashboard-field select:focus, .dashboard-field input:focus { border-color:#a9b7ef; box-shadow:0 0 0 3px #6679ed0b; }

.dashboard-field-section { border-top:1px solid #edf0f5; padding-top:17px; margin-top:19px; }

.dashboard-field-section h4 { display:flex; align-items:center; gap:7px; margin:0 0 15px; color:#67748d; font-size:11px; font-weight:600; }

.dashboard-field-section h4 svg { width:13px; height:13px; color:#a0aec2; }

.dashboard-checkbox { display:flex; align-items:flex-start; gap:7px; font-size:11px; color:#8a96a9; line-height:1.5; }

.dashboard-checkbox input { margin:2px 0 0; accent-color:#6478df; }

.dashboard-field-help { margin:10px 0 0; color:#a8b0be; font-size:10px; line-height:1.7; }

.dashboard-field-note { display:flex; align-items:center; gap:6px; margin-top:22px; font-size:10px; color:#8ea99c; }

.dashboard-field-note svg { width:13px; height:13px; }

.dashboard-inspector>footer { flex:none; display:grid; gap:8px; padding:15px 18px; border-top:1px solid #edf0f5; background:#fff; }

.dashboard-inspector>footer .button { justify-content:center; width:100%; }

.dashboard-size-options { display:flex; gap:7px; }

.dashboard-size-options .button { font-size:10px; min-height:28px; padding:5px 8px; }

.dashboard-main .grid-stack-placeholder>.placeholder-content { border:1px dashed #a7b5ed; border-radius:11px; background:#677bec08; }

.dashboard-main .ui-draggable-dragging .dashboard-tile { box-shadow:0 12px 30px #34467a20; border-color:#a4b3ef; }

.dashboard-main .ui-resizable-handle { opacity:.35; }

.dashboard-main .grid-stack-item:hover .ui-resizable-handle { opacity:.8; }

.dashboard-modal-backdrop { position:fixed; inset:0; display:grid; place-items:center; z-index:2500; background:#24314c40; padding:20px; }

.dashboard-delete-dialog { box-sizing:border-box; width:390px; max-width:100%; padding:25px; border-radius:14px; background:#fff; box-shadow:0 20px 70px #19213d30; }

.dashboard-delete-icon { display:grid; place-items:center; color:#bc6575; background:#fff1f4; border-radius:10px; width:40px; height:40px; }

.dashboard-delete-icon svg { width:20px; height:20px; }

.dashboard-delete-dialog h3 { font-size:17px; color:#465067; margin:18px 0 10px; }

.dashboard-delete-dialog p { font-size:13px; line-height:1.8; color:#8a95a7; }

.dashboard-delete-dialog footer { display:flex; gap:8px; justify-content:flex-end; margin-top:23px; }

.dashboard-danger-button { border:1px solid #cc6a7a; background:#cc6a7a; color:#fff; }

@media(max-width:900px) {

  .dashboard-save-status { display:none; }

  .dashboard-toolbar { padding:16px; gap:12px; }

  .dashboard-canvas-caption>span:last-child { display:none; }

}

@media(max-width:700px) {

  .dashboard-toolbar { gap:12px; padding:14px; }

  .dashboard-heading p { max-width:240px; }

  .dashboard-heading h2 { font-size:17px; }

  .dashboard-toolbar-actions { width:100%; gap:7px; }

  #dashboardSaveLayout:disabled { display:none; }

  #dashboardAddChart { margin-left:auto; }

  .dashboard-toolbar .button { min-height:32px; font-size:11px; }

  .dashboard-main { padding:12px 6px 30px; }

  .dashboard-empty { padding:30px 15px; min-height:310px; }

  .dashboard-empty h3 { font-size:19px; }

  .dashboard-empty p { font-size:12px; }

  .dashboard-inspector { position:absolute; top:0; right:0; bottom:0; width:min(340px,100%); box-shadow:-15px 0 50px #24345218; border-left:1px solid #e7eaf1; }

  .dashboard-preview-area { margin:0 8px 14px; }

  .dashboard-preview-area .dashboard-tile { height:310px; }

  .dashboard-size-options { display:none; }

  .dashboard-tile-header { padding-top:13px; }

}

@media(prefers-reduced-motion:reduce) { .grid-stack-item { transition:none!important; } }



/* Dashboard shares the table toolbar: no second heading/action row. */

.dashboard-active .table-file-actions-wrap {display:none!important}

.dashboard-active #addWorkerButton {background:#3864ff;color:#fff;border-color:#3864ff}

.dashboard-date-filter {display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#748198;font-size:12px}

.dashboard-date-filter select,.dashboard-date-filter input {height:32px;border:1px solid #e0e5ef;border-radius:7px;background:white;padding:4px 8px;color:#526078;font:inherit;max-width:180px}

.dashboard-canvas-caption {flex-wrap:wrap;gap:12px}

#dashboardAutoSaveStatus {font-size:11px;color:#748198}

@media(max-width:900px){.dashboard-canvas-caption>.dashboard-date-filter:last-child {display:flex}}


.dashboard-page-bar {display:flex;align-items:center;gap:6px;padding:0 18px;background:#fff;border-bottom:1px solid #e5e9f2;min-height:46px;flex:none}
.dashboard-page-tabs {display:flex;gap:18px;overflow-x:auto;flex:1}
.dashboard-page-tabs button {border:0;border-bottom:2px solid transparent;background:none;padding:14px 2px 12px;color:#778298;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.dashboard-page-tabs button[aria-selected="true"] {color:#3864ff;border-bottom-color:#3864ff;font-weight:600}
.dashboard-page-tabs button span {margin-left:7px;font-size:10px;border-radius:4px;padding:2px 5px;background:#f1f4fa;color:#8691a3}
.dashboard-page-id {font-size:11px;color:#7b879b;overflow-wrap:anywhere}
.dashboard-delete-dialog .dashboard-field {font-size:12px}

@media(min-width:900px){.app-shell.ask-dashboard-preview:not(.details-closed){grid-template-columns:minmax(0,1fr) 400px}}
.ask-dashboard-preview .ask-action-card-head {display:block}
.ask-dashboard-preview .ask-action-card-head strong {overflow-wrap:normal}

/* Conversational dashboard designer: preview on canvas, discussion beside it. */
.dashboard-chart-types {grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-assistant {width:360px}
.dashboard-assistant>header h3 {font-size:15px}
.dashboard-assistant-conversation {flex:1;min-height:0;overflow:auto;padding:18px;font-size:12px;line-height:1.7}
.dashboard-assistant-welcome h4 {font-size:16px;color:#43516a;margin:15px 0 8px}
.dashboard-assistant-welcome>span {display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#eef2ff;color:#5069df}
.dashboard-assistant-welcome p,.dashboard-assistant-scope {color:#7a879d}
.dashboard-assistant-suggestion {display:block;text-align:left;width:100%;padding:10px 12px;margin:9px 0;border:1px solid #e0e6f3;border-radius:8px;color:#5b6d91;background:#fff;font:inherit;cursor:pointer}
.dashboard-assistant-suggestion:hover {background:#f5f7ff;border-color:#b7c6ef}
.dashboard-assistant-message {margin-bottom:16px;padding:12px;border-radius:9px;background:#f5f7fc;color:#52627d}
.dashboard-assistant-message.user {background:#eef2ff;color:#475c9b}
.dashboard-assistant-message>span {font-size:10px;font-weight:600;color:#8b98ad}
.dashboard-assistant-message p {margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.dashboard-assistant-target {display:flex;align-items:center;gap:7px;padding:9px;margin-bottom:15px;background:#eef2ff;border-radius:8px;color:#6175aa;font-size:11px}
.dashboard-assistant-target svg {width:14px;height:14px;flex:none}
.dashboard-assistant-proposal {border:1px solid #e1e7f3;border-radius:10px;padding:13px;color:#67758c}
.dashboard-assistant-proposal-heading {display:flex;flex-direction:column;gap:3px;margin-bottom:10px}
.dashboard-assistant-proposal-heading strong {font-size:12px;color:#496080}
.dashboard-assistant-proposal-heading span,.dashboard-assistant-scope {font-size:10px}
.dashboard-assistant-change {border-top:1px solid #e9edf5;padding:10px 0}
.dashboard-assistant-change strong {font-size:11px;font-weight:600}
.dashboard-assistant-change p {margin:6px 0 0;font-size:11px}
.dashboard-assistant-change.is-delete {color:#ae5362}
.dashboard-assistant-warnings {background:#fff9ee;padding:8px;border-radius:6px;font-size:11px;color:#94754a;margin:8px 0}
.dashboard-assistant-warnings summary {cursor:pointer}
.dashboard-assistant-question {font-weight:600;color:#536a93}
.dashboard-assistant footer textarea {width:100%;resize:vertical;min-height:65px;max-height:130px;box-sizing:border-box;border:1px solid #e0e5f0;border-radius:8px;padding:9px 10px;font:inherit;font-size:12px;color:#4d5d77;background:#fff;line-height:1.5}
.dashboard-assistant footer .dashboard-field {margin:0 0 8px}
.dashboard-assistant-cost {font-size:9px;line-height:1.6;color:#929fb1;margin:0}
.dashboard-assistant-canvas-preview {padding:0 8px 20px;border-bottom:1px solid #dce4f5;margin-bottom:18px}
.dashboard-assistant-preview-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}
.dashboard-assistant-preview-grid .dashboard-tile {height:320px;border:1px dashed #b1bfee}
.dashboard-assistant-chart-rationale {font-size:11px;line-height:1.7;color:#7b89a0;padding:0 8px;margin:8px 0}
.dashboard-inventory-dialog {background:#fff;max-width:730px;width:100%;max-height:85vh;border-radius:14px;box-shadow:0 18px 70px #1d2b4733;display:flex;flex-direction:column;overflow:hidden}
.dashboard-inventory-dialog>header {display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e4e9f3;padding:18px 23px}
.dashboard-inventory-dialog header p {font-size:9px;letter-spacing:1px;color:#99a4b7;margin:0 0 5px}
.dashboard-inventory-dialog h3 {font-size:19px;color:#495970;margin:0}
.dashboard-inventory-body {padding:5px 23px 23px;overflow:auto;font-size:12px;line-height:1.8;color:#77859b}
.dashboard-inventory-body h4 {color:#4a5b78;font-size:13px;margin-top:23px}
.dashboard-inventory-row {display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #eff2f7;padding:11px 0}
.dashboard-inventory-row strong {font-weight:500;color:#5e6f8b}
.dashboard-inventory-row code {display:block;font-size:10px;color:#97a4b8;overflow-wrap:anywhere}
.dashboard-inventory-status {font-size:9px;background:#edf8f3;color:#61a38a;flex:none;border-radius:4px;padding:1px 5px;margin-top:3px}
@media(max-width:700px){.dashboard-assistant{width:min(360px,100%)}.dashboard-page-tabs{gap:12px}.dashboard-page-bar{padding:0 10px;gap:2px}.dashboard-assistant-preview-grid{grid-template-columns:1fr}.dashboard-assistant-conversation{padding:13px}}

/* A single contextual Ask input and a shared toolbar across Data / Dashboard. */
.dashboard-toolbar-controls {display:flex;align-items:center;gap:5px;flex:none}
.dashboard-toolbar-controls[hidden] {display:none}
.dashboard-active .table-toolbar>.toolbar-left {overflow:visible}
.dashboard-toolbar-filter {position:relative}
.dashboard-toolbar-filter>summary {display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;font-size:12px}
.dashboard-toolbar-filter>summary::-webkit-details-marker {display:none}
.dashboard-toolbar-filter[open]>summary {background:#f1f4ff;color:#4867d3}
.dashboard-toolbar-date-panel {position:absolute;top:calc(100% + 9px);left:0;z-index:110;width:300px;padding:15px;box-sizing:border-box;border:1px solid #e1e6f0;border-radius:10px;background:#fff;box-shadow:0 10px 30px #23345620}
.dashboard-toolbar-date-panel>strong {display:block;font-size:12px;color:#50607c;margin-bottom:12px}
.dashboard-toolbar-date-panel .dashboard-date-filter {display:grid;grid-template-columns:1fr auto 1fr;gap:9px}
.dashboard-toolbar-date-panel select {grid-column:1/-1;max-width:none;width:100%}
.dashboard-toolbar-date-panel input {min-width:0;max-width:none;width:100%;box-sizing:border-box;font-size:11px;padding:5px}
.dashboard-period-count {border-radius:4px;padding:1px 5px;background:#edf2ff;font-size:10px;color:#496add}
.dashboard-assistant-composer-hint {font-size:11px;line-height:1.6;color:#7b8ba2;margin:0}
@media(min-width:701px){.dashboard-active .table-toolbar {grid-template-columns:minmax(210px,1fr) minmax(190px,clamp(190px,32vw,560px)) minmax(200px,1fr)}}
@media(max-width:700px){.dashboard-toolbar-date-panel {width:min(300px,calc(100vw - 24px))}}

.dashboard-pivot-panel { margin-bottom:16px; }
.dashboard-pivot-panel h4 { margin:8px 0; }
.dashboard-values th { white-space:nowrap; }

.dashboard-tile-plot:has(.dashboard-chart[style]) { overflow:auto; }

.dashboard-page-tab-wrap { display:flex; align-items:center; flex:none; }
.dashboard-page-menu-button { flex:none; width:26px; height:26px; margin-right:5px; }

.dashboard-inventory-dialog>header { flex:0 0 auto; gap:16px; }
.dashboard-inventory-dialog>header>div { min-width:0; }
.dashboard-inventory-dialog .dashboard-inventory-close { display:inline-flex; flex:0 0 auto; width:auto; align-items:center; gap:6px; }

/* Keep dashboard navigation usable on narrow screens. */
@media(max-width:700px){
 .topbar .topbar-mode-slot{min-width:0}
 .topbar .table-mode-tabs{display:flex;width:100%;box-sizing:border-box}
 .topbar .table-mode-tab{flex:1;min-width:0;padding:0 8px;font-size:12px}
 .dashboard-active .dashboard-page-tabs{min-width:0;max-width:100%;overflow-x:auto}
 #savedAnalysisPanel .analysis-actions{max-width:100%}
}

/* Local presentation: keep compact Data tools on one row. */
@media(max-width:900px){
 body:not(.dashboard-active) .table-toolbar>.toolbar-left{flex:1 1 0;flex-wrap:nowrap;gap:4px;width:auto}
 body:not(.dashboard-active) .table-toolbar>.toolbar-right{flex:0 0 auto;flex-wrap:nowrap;gap:4px;margin-left:0}
 #tableColumnsButton>span,#tableViewsButton>span{display:none}
 body:not(.dashboard-active) #addWorkerButton>span{display:none}
 body:not(.dashboard-active) #tableColumnsButton,body:not(.dashboard-active) #tableViewsButton,body:not(.dashboard-active) #addWorkerButton{width:34px;min-width:34px;height:36px;padding:6px;justify-content:center}
 body:not(.dashboard-active) .table-toolbar .metric-line:empty{display:none}
}
@media(max-width:900px){
 .dashboard-active .table-toolbar>.toolbar-left{flex:1 1 0;flex-wrap:nowrap;gap:4px;width:auto}
 .dashboard-active .table-toolbar>.toolbar-right{flex:0 0 auto;flex-wrap:nowrap;gap:4px;margin-left:0}
 .dashboard-active #addWorkerButton>span,.dashboard-toolbar-filter>summary>span:not(.dashboard-period-count){display:none}
 .dashboard-active #addWorkerButton,.dashboard-toolbar-controls .table-view-button{width:34px;min-width:34px;height:36px;padding:6px;justify-content:center}
 .dashboard-toolbar-controls{gap:4px}
}

.dashboard-autosave-status { position:absolute; top:10px; right:16px; font-size:11px; color:#748198; pointer-events:none; }
.dashboard-autosave-status:empty { display:none; }
