.dashboard-page { --dashboard-blue: #0078d4; --dashboard-teal: #00a6a6; --dashboard-purple: #8764b8; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
/* Flat M365 / Azure Command Bar (no card box, top & bottom hairline borders) */
.dashboard-command-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 6px 0; border-top: 1px solid #edebe9; border-bottom: 1px solid #edebe9; margin-bottom: 14px; background: transparent; }
.dashboard-command-bar .command-bar-primary, .dashboard-command-bar .command-bar-secondary { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: 0; }
.cmd-param-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.cmd-param-label { font-size: 12px; font-weight: 600; color: #605e5c; margin: 0; white-space: nowrap; }
.cmd-select { height: 30px; padding: 0 26px 0 8px; border: 1px solid #d1d1d1; border-radius: 3px; background-color: #fff; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23605e5c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3.5 6 4.5 4.5L12.5 6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 7px center; background-size: 12px 12px; appearance: none; font-size: 13px; color: #242424; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.cmd-select:hover { border-color: #8a8886; background-color: #faf9f8; }
.cmd-select:focus { outline: 0; border-color: #0078d4; box-shadow: inset 0 0 0 1px #0078d4; }
.cmd-date-range { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px; background: #f3f2f1; border: 1px solid #e1dfdd; border-radius: 3px; color: #323130; font-size: 12px; transition: background-color .15s ease, border-color .15s ease; }
.cmd-date-range:hover, .cmd-date-range.is-custom { background: #fff; border-color: #8a8886; }
.cmd-date-range:focus-within { background: #fff; border-color: #0078d4; box-shadow: inset 0 0 0 1px #0078d4; }
.date-segment { position: relative; display: inline-flex; align-items: center; min-width: 82px; height: 100%; cursor: pointer; margin: 0; }
.date-display { font-size: 12px; color: #242424; white-space: nowrap; pointer-events: none; }
.date-segment:hover .date-display { color: #0078d4; }
.date-segment input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.date-range-arrow { width: 13px; height: 13px; color: #605e5c; flex-shrink: 0; }
.date-range-calendar-btn { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #605e5c; cursor: pointer; }
.date-range-calendar-btn:hover { background: #e1dfdd; color: #0078d4; }
.date-range-calendar-btn svg { width: 15px; height: 15px; }
.dashboard-command-bar .cmd-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #242424; font-size: 13px; font-weight: 400; white-space: nowrap; text-decoration: none; }
.dashboard-command-bar .cmd-btn svg { width: 16px; height: 16px; color: #0078d4; }
.dashboard-command-bar .cmd-btn:hover, .dashboard-command-bar .cmd-btn:focus, .dashboard-command-bar .cmd-btn:active { background: #f3f2f1; color: #242424; text-decoration: none; }
.dashboard-command-bar .cmd-divider { width: 1px; height: 18px; background: #e1dfdd; margin: 0 4px; }
.dashboard-page .form-select { width: auto; min-height: 32px; border-radius: 4px; border-color: #b3b0ad; font-size: 12px; padding-top: 5px; padding-bottom: 5px; }
.dashboard-tabs { display: flex; gap: 20px; overflow-x: auto; border-bottom: 1px solid #edebe9; margin-bottom: 20px; scrollbar-width: thin; }
.dashboard-tabs a { display: inline-flex; align-items: center; position: relative; gap: 8px; flex-shrink: 0; color: #4b5563; font-size: 13px; font-weight: 500; padding: 10px 4px 14px; white-space: nowrap; text-decoration: none; transition: color .15s ease; }
.dashboard-tabs a svg { width: 17px; height: 17px; color: #6b7280; transition: color .15s ease; }
.dashboard-tabs a:hover { color: #0078d4; text-decoration: none; }
.dashboard-tabs a:hover svg { color: #0078d4; }
.dashboard-tabs a[aria-current=page] { font-weight: 600; color: #0078d4; }
.dashboard-tabs a[aria-current=page] svg { color: #0078d4; }
.dashboard-tabs a[aria-current=page]::after { content: ""; position: absolute; height: 3px; border-radius: 3px 3px 0 0; background: #0078d4; left: 0; right: 0; bottom: 0; }
.dashboard-tabs a:focus-visible { outline-offset: -3px; }
.dashboard-data-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border: 1px solid #b8daff; background: #eaf4ff; border-radius: 6px; font-size: 12px; margin-bottom: 24px; }
.dashboard-data-banner > svg { width: 17px; height: 17px; color: #0078d4; margin-top: 2px; }
.dashboard-data-banner strong { font-weight: 600; margin-right: 9px; color: #005a9e; }
.dashboard-data-banner span { color: #334155; line-height: 1.7; }
.dashboard-data-banner a { margin-left: auto; flex-shrink: 0; padding-top: 1px; font-weight: 600; color: #0078d4; }
.dashboard-data-banner.unconnected { background: #f8f9fa; border-color: #edebe9; }
.dashboard-data-banner.unconnected strong { color: #605e5c; }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dashboard-section-heading h2 { font-size: 19px; font-weight: 600; margin: 0 0 5px; letter-spacing: -.2px; color: #111827; }
.dashboard-section-heading p { color: #616161; font-size: 12px; margin: 0; }
.dashboard-period-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #0067b8; background: #e8f3ff; border: 1px solid #b8daff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.dashboard-period-label svg { width: 14px; height: 14px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.dashboard-metric {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #edebe9;
  border-radius: 6px;
  box-shadow: 0 1.2px 3.6px rgba(0, 0, 0, 0.04), 0 0.3px 0.9px rgba(0, 0, 0, 0.02);
}
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label h3 { font-size: 13px; font-weight: 600; line-height: 20px; color: #475569; margin: 0; }
.metric-label svg { width: 16px; height: 16px; color: #0078d4; padding: 6px; background: #e8f3ff; border: 1px solid #b8daff; border-radius: 6px; box-sizing: content-box; }
.dashboard-metric:nth-child(2) .metric-label svg { color: #239b56; background: #eaf7ef; border-color: #b7e4c7; }
.dashboard-metric:nth-child(3) .metric-label svg { color: #d97706; background: #fff8e6; border-color: #fde09b; }
.dashboard-metric:nth-child(4) .metric-label svg { color: #8764b8; background: #f4effa; border-color: #d8c8eb; }
.metric-number { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; color: #111827; }
.metric-change { font-size: 11px; color: #6b7280; margin: 6px 0 6px; display: inline-flex; align-items: center; gap: 4px; }
.metric-change.demo-change { color: #1b7f44; font-weight: 600; background: #eaf7ef; padding: 2px 8px; border-radius: 4px; border: 1px solid #b7e4c7; }
.metric-footnote { font-size: 11px; color: #6b7280; margin: 0; line-height: 1.6; }
.dashboard-analytics-grid, .dashboard-detail-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(285px, 1fr); gap: 20px; margin-bottom: 20px; }
.dashboard-panel {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #edebe9;
  border-radius: 6px;
  box-shadow: 0 1.2px 3.6px rgba(0, 0, 0, 0.04), 0 0.3px 0.9px rgba(0, 0, 0, 0.02);
}
.dashboard-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 0; }
.dashboard-panel-heading h3 { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; color: #111827; }
.dashboard-panel-heading p { color: #6b7280; font-size: 11px; line-height: 1.7; margin: 4px 0 0; }
.dashboard-panel-heading > svg { color: #0078d4; width: 19px; height: 19px; }
.panel-label { flex-shrink: 0; font-size: 9px; letter-spacing: .7px; color: #0067b8; background: #e8f3ff; border: 1px solid #b8daff; border-radius: 4px; padding: 2px 7px; font-weight: 600; margin-top: 1px; }
.chart-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 22px 0; font-size: 11px; color: #4b5563; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.primary { background: #0078d4; }
.secondary { background: #f7630c; }
.dashboard-chart { display: flex; gap: 10px; padding: 20px 22px 0; margin: 0; min-height: 216px; }
.chart-y-labels { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; min-width: 30px; height: 166px; color: #6b7280; font-size: 10px; }
.chart-columns { display: flex; align-items: flex-end; gap: 10px; flex: 1; min-width: 0; padding-top: 0; background: repeating-linear-gradient(to top, transparent 0, transparent 81px, #f0efee 81px, #f0efee 82px); }
.chart-column { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; flex: 1; height: 193px; min-width: 0; }
.chart-bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 166px; width: 100%; border-bottom: 1px solid #e1dfdd; }
.chart-bar { max-width: 34px; width: 30%; min-width: 3px; border-radius: 3px 3px 0 0; transition: filter .15s ease; }
.chart-bar:hover { filter: brightness(1.08); }
.chart-bar.primary { background: #0078d4; }
.chart-bar.secondary { background: #f7630c; }
.chart-x-label { display: block; color: #6b7280; font-size: 10px; white-space: nowrap; line-height: 27px; font-weight: 500; }
.chart-data-details { margin: 3px 22px 18px; color: #4b5563; font-size: 11px; }
.chart-data-details summary { color: #0078d4; cursor: pointer; display: list-item; width: fit-content; font-weight: 500; }
.chart-data-details[open] summary { margin-bottom: 12px; }
.composition-total { display: flex; flex-direction: column; align-items: flex-start; padding: 17px 22px 15px; }
.composition-total strong { font-size: 34px; font-weight: 700; line-height: 1.4; letter-spacing: -1px; color: #111827; }
.composition-total strong span { font-size: 19px; margin-left: 2px; color: #6b7280; font-weight: 400; }
.composition-total small { font-size: 11px; color: #6b7280; }
.composition-track { display: flex; height: 9px; margin: 0 22px; border-radius: 4px; overflow: hidden; gap: 2px; background: #edebe9; }
.share-blue { background: #0078d4; }
.share-teal { background: #239b56; }
.share-purple { background: #8764b8; }
.share-orange { background: #ffb900; }
.composition-list { list-style: none; padding: 12px 22px 10px; margin: 0; }
.composition-list li { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; gap: 12px; font-size: 12px; }
.composition-list li > span { display: inline-flex; align-items: center; gap: 9px; color: #4b5563; }
.composition-list strong { font-weight: 600; color: #111827; }
.panel-bottom-note { display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 10px; line-height: 1.7; margin: 0 22px; padding: 12px 0 14px; border-top: 1px solid #f3f4f6; }
.panel-bottom-note svg { width: 12px; height: 12px; color: #0078d4; }
.records-panel .dashboard-panel-heading { align-items: center; padding-bottom: 18px; }
.table-filter .form-select { max-width: 170px; border-color: #d1d1d1; font-size: 11px; }
.dashboard-table-scroll { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.dashboard-table th, .dashboard-table td { border-bottom: 1px solid #edebe9; padding: 13px 17px; line-height: 1.65; text-align: left; }
.dashboard-table thead th { background: #fafafa; font-weight: 600; color: #616161; font-size: 11px; white-space: nowrap; }
.dashboard-table tbody th { font-weight: 400; }
.dashboard-table tbody td { color: #616161; }
.dashboard-table tbody tr:last-child > * { border-bottom: 0; }
.dashboard-table tbody tr:hover { background: #fafafa; }
.dashboard-row-link { color: #0078d4; border: 0; background: none; padding: 0; text-align: left; font-size: 11px; min-width: 95px; }
.dashboard-row-link:hover { text-decoration: underline; }
.value-cell { white-space: nowrap; }
.dashboard-status { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 3px; background: #f3f2f1; color: #616161; white-space: nowrap; border: 1px solid #edebe9; }
.dashboard-status.success { color: #107c10; background: #f1faf1; border-color: #c7e0c7; }
.dashboard-status.warning { color: #8a5700; background: #fff8eb; border-color: #f4dfb2; }
.dashboard-status.info { color: #005a9e; background: #eff6fc; border-color: #d0e7f8; }
.table-bottom-note { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; color: #707070; font-size: 10px; border-top: 1px solid #edebe9; }
.attention-count { display: grid; place-items: center; min-width: 23px; height: 23px; color: #616161; background: #f3f2f1; border-radius: 3px; font-size: 11px; }
.attention-list { list-style: none; padding: 10px 0 0; margin: 0; }
.attention-list li { border-bottom: 1px solid #f3f2f1; }
.attention-list li:last-child { border-bottom: 0; }
.attention-list button { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 17px 20px; background: none; border: 0; text-align: left; color: #242424; }
.attention-list button:hover { background: #fafafa; }
.attention-icon { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 4px; color: #616161; background: #f3f2f1; }
.attention-icon.warning { color: #986500; background: #fff8eb; }
.attention-icon.info { color: #0078d4; background: #eff6fc; }
.attention-icon svg { width: 16px; height: 16px; }
.attention-list strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.6; }
.attention-list small { display: block; margin-top: 4px; font-size: 11px; color: #707070; line-height: 1.7; }
.attention-list .attention-arrow { width: 13px; height: 13px; margin-left: auto; margin-top: 7px; color: #8a8886; }
.dashboard-footer-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(285px, 1fr); gap: 20px; }
.dashboard-timeline { list-style: none; margin: 0; padding: 10px 22px 12px; }
.dashboard-timeline li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f3f2f1; }
.dashboard-timeline li:last-child { border-bottom: 0; }
.timeline-icon { display: grid; place-items: center; min-width: 31px; height: 31px; border: 1px solid #b8daff; background: #e8f3ff; border-radius: 50%; color: #0078d4; }
.timeline-icon svg { width: 15px; height: 15px; }
.dashboard-timeline strong { display: block; font-size: 12px; font-weight: 600; }
.dashboard-timeline small { display: block; color: #707070; font-size: 10px; margin-top: 4px; }
.timeline-time { color: #707070; font-size: 10px; white-space: nowrap; margin-left: auto; }
.dashboard-guide {
  border: 1px solid #edebe9;
  border-left: 4px solid #0078d4;
  border-radius: 6px;
  background: #ffffff;
  color: #242424;
  padding: 24px;
  box-shadow: 0 1.2px 3.6px rgba(0, 0, 0, 0.04);
}
.guide-kicker { color: #0078d4; letter-spacing: 1.2px; font-size: 10px; font-weight: 700; }
.dashboard-guide h3 { font-size: 18px; font-weight: 600; color: #111827; line-height: 1.4; margin: 10px 0 8px; letter-spacing: -.3px; }
.dashboard-guide p { color: #616161; font-size: 12px; line-height: 1.7; margin-bottom: 18px; }
.dashboard-guide > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #0078d4;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.dashboard-guide > a:hover {
  background: #106ebe;
  color: #ffffff;
  text-decoration: none;
}
.dashboard-guide > a svg { width: 14px; height: 14px; color: currentColor; }
.guide-footnote { display: flex; align-items: flex-start; gap: 7px; color: #707070; font-size: 11px; margin-top: 20px; line-height: 1.6; }
.guide-footnote svg { width: 13px; height: 13px; margin-top: 2px; color: #0078d4; }
.dashboard-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 255px; padding: 30px 25px; text-align: center; }
.dashboard-empty > svg { width: 32px; height: 32px; color: #a19f9d; margin-bottom: 14px; }
.dashboard-empty h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.dashboard-empty p { font-size: 12px; line-height: 1.8; color: #707070; max-width: 300px; margin: 0; }
@media (min-width: 1800px) {
  .dashboard-metric { padding: 22px 24px; }
  .metric-number { font-size: 34px; }
  .dashboard-panel-heading h3 { font-size: 16px; }
  .dashboard-chart { min-height: 250px; }
  .chart-column { height: 227px; }
  .chart-y-labels, .chart-bar-pair { height: 200px; }
  .dashboard-table th, .dashboard-table td { padding: 15px 22px; font-size: 12px; }
  .dashboard-row-link { font-size: 12px; }
}
@media (max-width: 1199px) {
  .dashboard-analytics-grid, .dashboard-detail-grid, .dashboard-footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; }
  .dashboard-metrics { gap: 12px; }
  .dashboard-metric { padding: 16px; }
  .metric-number { font-size: 26px; }
  .dashboard-panel-heading { padding: 17px 17px 0; }
  .dashboard-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .attention-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .attention-list li { border-bottom: 0; border-right: 1px solid #f3f2f1; }
  .attention-list li:last-child { border-right: 0; }
  .attention-list button { padding: 17px; }
  .attention-list .attention-arrow { display: none; }
}
@media (max-width: 767px) {
  .dashboard-header { margin-bottom: 12px; }
  .dashboard-command-bar { gap: 6px; margin-bottom: 12px; }
  .dashboard-command-bar .command-bar-primary { gap: 4px; width: 100%; }
  .dashboard-command-bar .cmd-divider { display: none; }
  .cmd-date-range { gap: 6px; padding: 0 5px 0 8px; }
  .date-segment { min-width: 78px; }
  .date-display { font-size: 11px; }
  .dashboard-tabs { gap: 22px; margin-bottom: 16px; }
  .dashboard-tabs a { font-size: 12px; }
  .dashboard-data-banner { flex-wrap: wrap; font-size: 11px; padding: 12px; gap: 8px; }
  .dashboard-data-banner > div { flex: 1; min-width: 220px; }
  .dashboard-data-banner strong { display: block; }
  .dashboard-data-banner a { margin-left: 25px; }
  .dashboard-section-heading { align-items: flex-start; }
  .dashboard-section-heading h2 { font-size: 17px; }
  .dashboard-section-heading p { font-size: 11px; }
  .dashboard-period-label { display: none; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-metric { padding: 14px 12px; }
  .metric-label h3 { font-size: 11px; }
  .metric-label svg { width: 16px; height: 16px; }
  .metric-number { font-size: 25px; letter-spacing: -.7px; }
  .metric-change { font-size: 10px; line-height: 1.7; min-height: 34px; }
  .metric-footnote { font-size: 10px; }
  .dashboard-analytics-grid, .dashboard-detail-grid, .dashboard-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
  .trend-panel { overflow-x: auto; }
  .dashboard-chart { min-width: 430px; }
  .chart-x-label { font-size: 9px; }
  .dashboard-panel-heading { padding: 16px 16px 0; gap: 10px; }
  .dashboard-panel-heading h3 { font-size: 14px; }
  .panel-label { font-size: 8px; }
  .dashboard-table { min-width: 580px; }
  .chart-data-details .dashboard-table { min-width: 350px; }
  .table-filter .form-select { font-size: 10px; max-width: 135px; }
  .table-bottom-note { font-size: 10px; padding: 12px 16px; }
  .table-bottom-note > span { display: none; }
  .attention-list { display: block; }
  .attention-list li { border-right: 0; border-bottom: 1px solid #f3f2f1; }
  .dashboard-timeline { padding-left: 16px; padding-right: 16px; }
  .dashboard-timeline li { flex-wrap: wrap; gap: 10px; }
  .timeline-time { width: 100%; padding-left: 41px; margin-top: -4px; font-size: 9px; }
  .dashboard-guide { padding: 20px; }
}
