/* Home panel presentation. Shared inventory/workflow styles remain in main.css;
   editor gestures, faces and command bars belong to dashboard-editor.css. */
@font-face {
  font-family:"Dashboard Sans";
  src:url("/assets/fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face {
  font-family:"Dashboard Sans";
  src:url("/assets/fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
body[data-theme="agilent-web-light"] #panel-dashboard,
body[data-theme="agilent-web-light"] .dashboard-editor-dialog {
  --surface:#fff;
  --surface-2:#f4f9fc;
  --ink:#1a2d37;
  --ink-2:#527082;
  --muted:#527082;
  --line:#d7e6ed;
  --line-strong:#b8d9e8;
  --primary:#007daf;
  --primary-dark:#007daf;
  --primary-soft:#ddf3fb;
  --success:#09885a;
  --success-soft:#def4e8;
  --warn:#b27505;
  --warn-soft:#fff1d7;
  --surface-card-radius:14px;
  --surface-card-shadow:0 8px 18px rgba(25,61,79,.08);
}
body[data-theme="agilent-web-light"] .workspace-viewport:has(#panel-dashboard.active) {
  --welcome-canvas-surface:#f4f9fc;
}
body[data-theme="agilent-web-light"] .workspace-canvas:has(#panel-dashboard.active) {
  background-color:var(--welcome-canvas-surface);
}
.dashboard-widget-grid,
.dashboard-editor-toolbar,
.dashboard-editor-dialog {
  font-family:"Dashboard Sans",Arial,sans-serif;
  font-synthesis:none;
  letter-spacing:normal;
}
#panel-dashboard { --surface-card-radius:14px; }
.dashboard-widget :is(h2,h3,strong,.home-action-title,.home-space-name),
.dashboard-editor-toolbar strong,
.dashboard-editor-dialog :is(h2,h3,strong) { font-weight:700; letter-spacing:normal; }
.dashboard-widget .dashboard-content-panel {
  margin:0;
  border:0;
  border-radius:inherit;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.dashboard-widget .dashboard-content-panel > .home-section-head,
.dashboard-widget .dashboard-action-center .home-section-head {
  align-items:center;
  margin:0 16px;
  padding:17px 0 13px;
  gap:8px;
  border-bottom:1px solid var(--line);
}
.dashboard-widget .home-section-head > div { min-width:0; }
.dashboard-widget .home-section-head h2 { padding-right:0; }
.dashboard-widget .home-section-head .eyebrow { display:none; }
.dashboard-widget .home-section-head h2,
.dashboard-widget .dashboard-spaces-heading h2 {
  margin:0;
  font-size:19px;
  line-height:1.2;
}
.dashboard-widget .home-section-copy {
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
  font-weight:400;
  line-height:1.35;
}
.dashboard-widget .space-row-chevron { width:12px; height:12px; color:var(--primary-dark); }
.dashboard-widget .home-work-empty { padding:22px 14px; font-size:12px; }
.dashboard-flat-actions { display:block !important; padding:0 16px 4px !important; }
.dashboard-flat-actions .home-action-tile {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:64px;
  padding:13px 2px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  box-shadow:none;
  background:transparent;
  color:var(--ink);
  text-align:left;
}
.dashboard-flat-actions .home-action-tile::after { content:none; }
.dashboard-flat-actions .home-action-tile:last-child { border-bottom:0; }
@media (hover:hover) and (pointer:fine) { .dashboard-flat-actions .home-action-tile:hover { transform:none; box-shadow:none; background:var(--surface-2); } }
.dashboard-flat-actions .home-action-content { display:grid; gap:3px; flex:1; min-width:0; }
.dashboard-flat-actions .home-action-title { font-size:15px; line-height:1.25; }
.dashboard-flat-actions .home-action-copy { font-size:13px; line-height:1.4; font-weight:400; color:var(--muted); }
.dashboard-row-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  background:var(--primary-soft);
  color:var(--primary-dark);
}
.dashboard-row-icon svg { display:block; width:21px; height:21px; }
.dashboard-row-icon .space-kind-icon { background:transparent; }
.dashboard-row-icon--mint { color:var(--success); background:var(--success-soft); }
.dashboard-row-icon--amber { color:var(--warn); background:var(--warn-soft); }
.dashboard-row-icon--lavender { color:#7657c9; background:#eee8ff; }
.dashboard-row-icon--indigo { color:#3e64b1; background:#e7edfa; }
body[data-theme="agilent-web-dark"] .dashboard-row-icon--lavender { color:#c8b7ff; background:#302947; }
body[data-theme="agilent-web-dark"] .dashboard-row-icon--indigo { color:#adc5ff; background:#253952; }
.dashboard-view-all {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:44px;
  padding:10px 16px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--primary-dark);
  text-align:left;
  font-size:14px;
  font-weight:700;
}
.dashboard-content-panel > .dashboard-view-all { margin:0 16px; width:calc(100% - 32px); padding-inline:2px; }
/* Hidden siblings remain mounted when row limits change. The controller owns
   the visible boundary so the footer supplies the only closing separator. */
.dashboard-widget .dashboard-widget-body .is-last-visible-row { border-bottom:0; }
/* Individual metrics and grouped snapshots share one icon/text grid. */
.dashboard-widget.metric { container:dashboard-metric / inline-size; }
.dashboard-widget.metric .dashboard-widget-body,.dashboard-overview-metric {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:var(--dashboard-metric-icon,36px) minmax(0,1fr);
  align-items:center;
  align-content:center;
  gap:6px var(--dashboard-metric-gap,10px);
  min-width:0;
}
.dashboard-widget.metric .dashboard-widget-body { min-height:110px; padding:var(--dashboard-metric-padding,13px); }
.dashboard-widget.metric[data-widget-size="full"],.dashboard-overview-metric {
  --dashboard-metric-icon:42px;
  --dashboard-metric-gap:15px;
  --dashboard-metric-label:14px;
}
:is(.dashboard-widget.metric,.dashboard-overview-metric) .home-impact-head { display:contents; }
:is(.dashboard-widget.metric,.dashboard-overview-metric) .home-impact-icon {
  display:grid;
  grid-column:1;
  grid-row:1 / span 2;
  place-items:center;
  width:var(--dashboard-metric-icon,36px);
  height:var(--dashboard-metric-icon,36px);
  border-radius:50%;
  color:var(--primary-dark);
  background:var(--primary-soft);
}
:is(.dashboard-widget.metric,.dashboard-overview-metric) .home-impact-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
:is(.dashboard-widget.metric,.dashboard-overview-metric).success .home-impact-icon { color:var(--success); background:var(--success-soft); }
:is(.dashboard-widget.metric,.dashboard-overview-metric).accent .home-impact-icon { color:var(--warn); background:var(--warn-soft); }
:is(.dashboard-widget.metric,.dashboard-overview-metric) .home-impact-label {
  grid-column:2;
  grid-row:1;
  min-width:0;
  padding:0;
  color:var(--muted);
  font-size:var(--dashboard-metric-label,12px);
  font-weight:700;
  line-height:1.25;
  overflow-wrap:anywhere;
}
:is(.dashboard-widget.metric,.dashboard-overview-metric) .home-impact-value {
  grid-column:2;
  grid-row:2;
  min-width:0;
  margin:0;
  color:var(--ink);
  font-size:var(--dashboard-metric-value,27px);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:normal;
  line-height:1;
  overflow-wrap:anywhere;
}
:is(.dashboard-widget.metric,.dashboard-overview-metric) .home-impact-copy { grid-column:2; grid-row:3; margin:0; color:var(--muted); font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
.dashboard-widget.metric:not([data-widget-size="full"]) .home-impact-copy { display:none; }
.dashboard-widget.metric[data-widget-size="full"] .dashboard-widget-body { min-height:88px; padding:16px 14px; }
#panel-dashboard[data-editor-mode="edit"] .dashboard-widget.metric .dashboard-widget-body { padding-bottom:32px; }
.dashboard-overview-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:18px; padding:18px; }
.dashboard-overview-metric { padding:4px 0; }
@container dashboard-metric (max-width:170px) {
  .dashboard-widget.metric:not([data-widget-size="full"]) .dashboard-widget-body {
    --dashboard-metric-icon:32px;
    --dashboard-metric-gap:8px;
    --dashboard-metric-padding:10px;
    --dashboard-metric-value:20px;
  }
}
#panel-dashboard .dashboard-shortcut .dashboard-panel-front { border:0; background:transparent; box-shadow:none; }
.dashboard-shortcut .dashboard-widget-body { padding:0; }
.dashboard-quick-action {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:13px;
  width:100%;
  min-height:56px;
  padding:13px 16px;
  border:0;
  border-radius:8px;
  background:#0075ac;
  color:#fff;
  white-space:normal;
  text-align:left;
  box-shadow:none;
}
.dashboard-quick-action > span { display:flex; flex:0 0 24px; }
.dashboard-quick-action > span > svg { width:24px; height:24px; }
.dashboard-quick-action strong { flex:1; font-size:15px; line-height:1.2; }
.dashboard-quick-action .space-row-chevron { color:inherit; }
.dashboard-widget[data-widget-size="compact"] .dashboard-quick-action { gap:10px; min-height:64px; padding:13px 12px; }
.dashboard-widget[data-widget-size="compact"] .dashboard-quick-action strong { font-size:13px; }
.dashboard-widget[data-widget-size="compact"] .dashboard-quick-action .space-row-chevron { display:none; }
@media (hover:hover) and (pointer:fine) { .dashboard-quick-action:hover { background:#006f9f; color:#fff; } }
.dashboard-leaderboard-years { display:flex; gap:8px; margin:12px 16px 0; padding:2px 1px 6px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
.dashboard-leaderboard-years button { flex:0 0 auto; min-width:86px; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); color:var(--ink); box-shadow:none; font-size:14px; font-weight:600; white-space:nowrap; }
.dashboard-leaderboard-years button[aria-pressed="true"] { background:var(--primary); border-color:var(--primary); color:var(--primary-contrast,#fff); }
.dashboard-leaderboard-years button:focus-visible,.dashboard-reconciliation-link:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.dashboard-reconciliation-empty { padding:28px 20px 26px; text-align:center; }
.dashboard-reconciliation-empty-icon { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; margin-bottom:14px; color:var(--primary); }
.dashboard-reconciliation-empty-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.dashboard-reconciliation-empty h3 { margin:0 0 9px; color:var(--ink); font-size:20px; line-height:1.25; }
.dashboard-reconciliation-empty p { max-width:34ch; margin:0 auto; color:var(--muted); font-size:14px; line-height:1.5; }
.dashboard-reconciliation-link { display:flex; align-items:center; gap:12px; width:calc(100% - 32px); margin:0 16px; padding:18px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); box-shadow:none; text-align:left; white-space:normal; }
.dashboard-reconciliation-link > span:nth-child(2) { flex:1; min-width:0; }
.dashboard-reconciliation-link strong { display:block; font-size:14px; line-height:1.35; }
.dashboard-reconciliation-link small { display:block; margin-top:4px; font-size:13px; font-weight:400; line-height:1.4; color:var(--muted); }
.dashboard-reconciliation-link > .space-row-chevron { flex:0 0 14px; width:14px; height:14px; }
@media (hover:hover) and (pointer:fine) { .dashboard-reconciliation-link:hover { background:var(--surface-2); color:var(--ink); transform:none; } }
.dashboard-leaderboard-rows { margin:0; padding:0 16px 5px; list-style:none; }
.dashboard-leaderboard-rows li { min-height:50px; border-bottom:1px solid var(--line); }
.dashboard-leader-row { display:flex; align-items:center; gap:11px; box-sizing:border-box; width:100%; margin:0; min-height:50px; padding:10px 0; border:0; border-radius:6px; background:transparent; color:var(--ink); box-shadow:none; text-align:left; white-space:normal; }
@media (hover:hover) and (pointer:fine) { button.dashboard-leader-row:hover { background:var(--surface-2); color:var(--ink); transform:none; } }
button.dashboard-leader-row:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.dashboard-leaderboard-sort { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin:8px 16px 0; font-size:13px; color:var(--muted); }
.dashboard-leaderboard-sort select { width:auto; min-width:110px; min-height:36px; padding:5px 8px; font-size:13px; }
.dashboard-leaderboard-rows li:last-child { border-bottom:0; }
.dashboard-leaderboard-rows li.is-current-engineer { background:var(--surface-2); border-radius:7px; box-shadow:0 0 0 5px var(--surface-2); }
.dashboard-rank { display:grid; place-items:center; flex:0 0 30px; height:30px; border-radius:50%; color:var(--ink); background:var(--surface-2); font-size:14px; font-weight:700; }
.is-current-engineer .dashboard-rank { color:var(--primary-dark); background:var(--primary-soft); }
.dashboard-leader-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.dashboard-leader-name strong,.dashboard-leader-name small,.dashboard-leader-points strong { display:block; }
.dashboard-leader-name strong { font-size:16px; line-height:1.2; }
.dashboard-leader-name small { margin-top:4px; font-size:13px; color:var(--muted); }
.dashboard-leader-points { text-align:right; flex:0 0 auto; }
.dashboard-leader-points strong { color:var(--primary-dark); font-size:16px; font-variant-numeric:tabular-nums; }
.dashboard-leaderboard-more { padding-bottom:6px; }
.dashboard-widget .dashboard-action-center .home-section-head .badge { margin:0; margin-inline-start:auto; justify-self:end; min-width:24px; padding:3px 5px; color:var(--primary-dark); background:var(--primary-soft); border-color:var(--line-strong); font-size:12px; text-align:center; }
.dashboard-widget .dashboard-action-center .home-section-head { padding-right:0; }
.dashboard-widget .dashboard-action-center .home-section-head h2 { padding-right:0; }
.dashboard-widget .dashboard-action-center .home-work-list { padding:5px 14px 8px; }
/* Each action group belongs to one notification, including secondary actions. */
.dashboard-widget .dashboard-action-center .home-work-item { padding:14px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
.dashboard-widget .dashboard-action-center .home-work-item:last-child { border-bottom:0; }
.dashboard-widget .dashboard-action-center .home-work-inventory { padding:0; }
.dashboard-widget .dashboard-action-center button.home-work-stock { display:block; box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:64px; margin:0; padding:14px 0; background:transparent; color:var(--ink); border:0; border-radius:0; box-shadow:none; text-align:left; white-space:normal; font-weight:400; }
.home-work-stock .home-work-heading { grid-template-columns:36px minmax(0,1fr) 12px; align-items:center; }
.home-work-stock .home-work-primary-copy { min-width:0; overflow-wrap:anywhere; }
.home-work-stock .home-work-chevron { color:var(--muted); }
.dashboard-widget .dashboard-action-center button.home-work-stock:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; }
.home-work-heading { display:grid; grid-template-columns:36px minmax(0,1fr); gap:10px; align-items:start; }
.dashboard-widget .dashboard-action-center .home-work-icon,.dashboard-reconciliation-link .home-work-icon { width:36px; height:36px; margin:0; }
.dashboard-widget .dashboard-action-center .home-work-icon svg { width:22px; height:22px; }
.dashboard-widget .dashboard-action-center .home-work-item-title { display:block; font-size:16px; font-weight:700; line-height:1.3; }
.dashboard-widget .dashboard-action-center .home-work-item-copy { display:block; margin-top:4px; font-size:14px; line-height:1.4; font-weight:400; }
.home-work-item-detail { display:block; margin-top:6px; color:var(--muted); font-size:13px; line-height:1.4; font-weight:400; }
.home-work-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:10px 0 0 46px; min-width:0; }
.dashboard-widget .dashboard-action-center button.home-work-primary { display:inline-flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; width:auto; min-width:0; max-width:100%; min-height:44px; margin:0; padding:8px 12px; border:1px solid var(--line-strong); border-radius:8px; background:var(--primary-soft); color:var(--primary-dark); }
.dashboard-widget .dashboard-action-center .home-work-primary-label { display:block; width:auto; margin:0; padding:0; font-size:14px; font-weight:700; }
.dashboard-widget .dashboard-action-center .home-work-chevron { font-size:20px; }
.home-work-actions > button { min-height:44px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.dashboard-widget[data-widget-size="wide"] .home-work-item-detail { display:none; }
.dashboard-widget .dashboard-spaces-heading { margin:0 16px; padding:17px 0 13px; }
.dashboard-widget .dashboard-spaces-heading p { font-size:13px; color:var(--muted); }
.dashboard-widget .dashboard-spaces-group { padding:10px 16px 0; }
.dashboard-widget .dashboard-spaces-group-title { margin:0 0 4px; color:var(--muted); font-size:11px; letter-spacing:.12em; }
.dashboard-widget .dashboard-spaces-rows .dashboard-space-summary { padding:13px 0; min-height:64px; grid-template-columns:36px minmax(0,1fr) auto 12px; gap:10px; }
/* Standalone inventory cards use the same aligned row as the directory.
   Count and chevron stay beside the identity at every supported width. */
.dashboard-widget .space-kind-icon { width:36px; height:36px; border-radius:9px; }
.dashboard-widget .space-kind-icon svg { width:20px; height:20px; }
.dashboard-widget[data-widget-size="wide"] .dashboard-spaces-short .home-space-meta { display:none; }
.dashboard-widget .dashboard-space-summary .home-space-name { font-size:16px; }
.dashboard-widget .dashboard-space-summary .home-space-kind { font-size:10px; font-weight:700; letter-spacing:0; }
.dashboard-widget .dashboard-space-summary .home-space-manager { font-size:12px; font-weight:400; }
.dashboard-widget .home-space-qty strong { font-size:19px; font-weight:700; letter-spacing:normal; }
.dashboard-widget .home-space-qty small { font-size:10px; font-weight:400; }
.dashboard-widget .home-activity-list { padding:4px 14px 10px; }
.dashboard-widget .home-activity-row { grid-template-columns:34px minmax(0,1fr) 12px; grid-template-areas:"icon summary chevron" "icon time chevron"; gap:4px 10px; padding:12px 0; }
.dashboard-widget .home-activity-row .dashboard-row-icon { grid-area:icon; width:34px; height:34px; }
.dashboard-widget .home-activity-summary { grid-area:summary; font-size:16px; line-height:1.3; }
.home-activity-summary > strong,.home-activity-summary > span { display:block; }
.home-activity-summary > span { margin-top:4px; color:var(--muted); font-size:13px; font-weight:400; }
.dashboard-widget .home-activity-time { grid-area:time; font-size:12px; }
.dashboard-widget .home-activity-chevron { grid-area:chevron; }
@media(min-width:1001px) {
  .dashboard-widget .home-section-head h2,.dashboard-widget .dashboard-spaces-heading h2 { font-size:20px; }
  .dashboard-flat-actions .home-action-title { font-size:16px; }
  .dashboard-flat-actions .home-action-copy { font-size:14px; }
}

/* Request, restock and history rows share the same wrapping rules in live
   panels and editor examples. Long names never inherit button nowrap. */
.dashboard-widget-list { display:grid; gap:0; padding:4px 14px 12px; }
.dashboard-summary-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 4px; border-bottom:1px solid var(--line); }
.dashboard-summary-row > div { min-width:0; }
.dashboard-summary-row:last-child { border-bottom:0; }
.dashboard-summary-row strong { display:block; color:var(--ink); font-size:13px; }
.dashboard-summary-row span { display:block; margin-top:3px; color:var(--muted); font-size:12px; line-height:1.35; }
.dashboard-summary-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.dashboard-request-history-row { width:100%; color:inherit; text-align:left; white-space:normal; overflow-wrap:anywhere; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; cursor:pointer; }
@media (hover:hover) and (pointer:fine) { .dashboard-request-history-row:hover { background:var(--surface-2); transform:none; } }
.dashboard-request-history-row:focus-visible { outline:3px solid color-mix(in srgb,var(--primary) 30%,transparent); outline-offset:-3px; }
.dashboard-request-history-row:last-child { border-bottom:0; }
.dashboard-request-action-row { grid-template-columns:minmax(0,1fr); padding:0; gap:0; }
.dashboard-request-summary-action { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; min-width:0; min-height:72px; padding:12px 10px; border:0; border-radius:var(--radius-sm); background:transparent; color:inherit; text-align:left; white-space:normal; overflow-wrap:anywhere; cursor:pointer; box-shadow:none; }
.dashboard-request-summary-copy { min-width:0; flex:1; }
.dashboard-request-summary-copy strong { font-size:14px; }
.dashboard-request-summary-copy > span { overflow-wrap:anywhere; }
.dashboard-request-details-cue { display:inline-flex; align-items:center; gap:5px; flex:none; color:var(--primary); font-size:12px; font-weight:700; }
.dashboard-request-details-cue > span { font-size:20px; line-height:1; transition:transform .15s ease; }
@media (hover:hover) and (pointer:fine) { .dashboard-request-summary-action:hover { background:transparent; color:inherit; transform:none; box-shadow:none; } }
@media (hover:hover) and (pointer:fine) { .dashboard-request-summary-action:hover .dashboard-request-details-cue > span { transform:none; } }
.dashboard-request-summary-action:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.dashboard-request-actions { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:8px; width:100%; margin:0; padding:10px 10px 12px; border-top:1px solid var(--line); }
.dashboard-request-actions button { min-height:44px; margin:0; }
@media(max-width:720px) {
 .dashboard-summary-row { grid-template-columns:1fr; }
 .dashboard-request-action-row { gap:0; }
 .dashboard-request-summary-action { min-height:76px; padding:12px 10px; }
 .dashboard-request-actions { justify-content:flex-start; }
 .dashboard-summary-actions { justify-content:flex-start; }
}
