﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&display=swap');

:root {
  --bg: #f7f9fc;
  --panel: #fff;
  --panel-2: #f3f6fa;
  --line: #e6eaf1;
  --text: #172344;
  --muted: #8590a6;
  --accent: #009d98;
  --teal: #20bcb5;
  --purple: #9162e8;
  --blue: #79a9f5;
  --peach: #ffbb91;
  --pink: #ed86ac;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'DM Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  transition:
    background 0.16s,
    color 0.16s,
    box-shadow 0.16s;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8adbd6;
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.97);
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  font-weight: 650;
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.error {
  color: #b83e4e;
}
/* Navigation */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 18px 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.4px;
  padding: 0 13px 12px;
}
.release-reference { padding: 0 13px; margin: 0 0 22px; color: #6d7b91; font-size: 11px; line-height: 1.6; }
.release-reference span { display: block; font-size: 10px; color: #8a97aa; }
.brand-dot {
  color: var(--accent);
}
.brand-mark {
  position: relative;
  display: block;
  width: 31px;
  height: 33px;
  background: #20bcb5;
  clip-path: polygon(0 10%, 100% 0, 55% 100%);
}
.brand-mark:after {
  content: '';
  position: absolute;
  inset: 0;
  background: #048f92;
  clip-path: polygon(33% 0, 100% 0, 55% 100%);
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  margin: 0 0 31px;
}
.workspace-avatar {
  background: #f0f3fa;
  color: #6b7891;
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  border-radius: 7px;
  font-weight: 650;
}
.workspace strong,
.account strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.workspace small,
.account small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.workspace-lock {
  color: #9aa4b6;
  margin-left: auto;
}
.workspace-lock .icon {
  width: 14px;
}
.nav-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: #98a1b3;
  padding: 0 14px;
  margin-bottom: 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 0;
  background: none;
  color: #748096;
  border-radius: 7px;
  padding: 13px 15px;
  text-align: left;
  font-weight: 500;
  margin-bottom: 7px;
}
.nav-item.active {
  background: #e9f7f5;
  color: #078e89;
  font-weight: 650;
  box-shadow: inset 3px 0 #11a59e;
}
.nav-item:hover {
  background: #f0f6f8;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #eef1f6;
  color: #8992a5;
  padding: 2px 6px;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.connection-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 12px;
  margin-bottom: 18px;
  background: #fbfcfd;
}
.connection-card strong {
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #18b394;
  border-radius: 50%;
  vertical-align: middle;
  flex: none;
}
.connection-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  padding-left: 13px;
}
.connection-card:has(.bad) .live-dot {
  background: #e3a34b;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 12px;
}
.account-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e9edf7;
  color: #677b9f;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}
.account .icon-button {
  margin-left: auto;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #7d88a0;
  padding: 6px;
  border-radius: 5px;
  font-size: 22px;
}
/* Header and filters */
.main {
  margin-left: 222px;
  padding: 38px 36px 20px;
  max-width: 1900px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 33px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #8994a9;
  margin-bottom: 10px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.3;
}
.page-header p {
  color: #8791a6;
  font-size: 13px;
  margin-top: 8px;
}
.header-actions {
  display: flex;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #dfe5ef;
  background: white;
  color: #485570;
  border-radius: 6px;
  padding: 10px 15px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  min-height: 39px;
  box-shadow: 0 1px 2px #20314f03;
}
.button .icon {
  width: 15px;
  height: 15px;
}
.button-primary {
  background: #069b94;
  border-color: #069b94;
  color: white;
  box-shadow: 0 2px 3px #078f8914;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.tabs {
  display: flex;
  align-self: stretch;
  gap: 25px;
}
.tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 6px 6px 0 0;
  padding: 14px 16px 16px;
  color: #485570;
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}
.tab.active {
  border-bottom-color: #049c95;
  background: #e1f4f1;
  color: #066b66;
  font-weight: 750;
}
.tab:hover { background: #edf3f8; color: #263954; }
.tab.active:hover { background: #d5eeea; color: #066b66; }
.filters {
  display: flex;
  gap: 9px;
  padding-bottom: 10px;
}
.select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  background: white;
  padding: 0 10px;
  height: 35px;
  color: #6c7992;
}
.select-wrap .icon {
  width: 14px;
  height: 14px;
}
.select-wrap select {
  max-width: 175px;
  min-width: 83px;
  border: 0;
  background: transparent;
  color: #485570;
  font-size: 11px;
  padding: 7px 2px;
  cursor: pointer;
}
.range-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0 17px;
  font-size: 10px;
  color: #909aad;
}
.range-caption > span:first-child {
  color: #6d7a92;
  font-weight: 500;
}
.date-range {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 15px 0;
}
.date-range label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #718098;
}
.date-range input {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: white;
}
/* Summary and charts */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.metric-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.teal {
  background: #e8f8f5;
  color: #0aa89b;
}
.purple {
  background: #f2edfc;
  color: #9467d8;
}
.blue {
  background: #eef4fe;
  color: #729dde;
}
.metric-label {
  display: block;
  font-size: 11px;
  color: #8a94a6;
  margin-bottom: 5px;
}
.metric strong {
  display: block;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.metric-note {
  font-size: 9px;
  color: #a0a8b7;
  margin-left: auto;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 5px #21365702;
  overflow: hidden;
  margin-bottom: 20px;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel-heading {
  padding: 22px 23px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-heading h2 .icon {
  color: #7786a0;
  width: 18px;
  height: 18px;
}
.panel-heading p,
.table-toolbar p,
.report-panel p {
  font-size: 11px;
  color: #939cb0;
  margin-top: 7px;
}
.pill {
  background: #f5f7fb;
  color: #939caf;
  border: 1px solid #eff1f6;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 9px;
}
.chart-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  padding: 27px 24px 31px;
  min-height: 245px;
}
.donut {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px #00000002;
}
.donut:before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: white;
}
.donut-center {
  position: relative;
  display: grid;
  text-align: center;
  gap: 5px;
}
.donut-center strong {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.donut-center span {
  font-size: 10px;
  color: #909bae;
}
.chart-legend {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 20px;
  max-width: 290px;
}
.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #707f98;
}
.chart-legend-row .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-legend-row strong {
  margin-left: auto;
  font-weight: 600;
  color: #33415f;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  font-style: normal;
}
.teal-dot {
  background: var(--teal);
}
.purple-dot {
  background: var(--purple);
}
.gray-dot {
  background: #eaf0f6;
}
/* User activity table */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px;
}
.table-toolbar h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.count-badge {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  color: #8896a9;
  background: #f1f4f8;
  letter-spacing: 0;
}
.table-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #f3f5f9;
  border-radius: 6px;
}
.segmented button {
  border: 0;
  padding: 7px 12px;
  border-radius: 4px;
  background: transparent;
  color: #8d97aa;
  font-size: 10px;
}
.segmented button.selected {
  background: white;
  box-shadow: 0 1px 4px #1d335615;
  color: #394965;
  font-weight: 600;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  width: 180px;
  color: #99a3b7;
}
.search .icon {
  width: 14px;
  height: 14px;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 10px;
}
.search input::placeholder {
  color: #a0a9b8;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th {
  background: #f9fafc;
  font-size: 10px;
  font-weight: 500;
  color: #929cb0;
  border-block: 1px solid #edf0f5;
  padding: 13px 22px;
}
th .legend-dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
}
td {
  padding: 15px 22px;
  border-bottom: 1px solid #eff2f7;
  font-size: 12px;
  color: #687791;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdfd;
}
.ratio-column {
  width: 35%;
}
.total-column {
  text-align: right;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 135px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  background: #e4f6f5;
  color: #079f95;
  flex: none;
}
.user-name {
  font-weight: 500;
  color: #3b4b69;
  max-width: 155px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-machine {
  display: block;
  font-size: 9px;
  color: #a0a9b9;
  margin-top: 3px;
}
.activity-bar {
  height: 9px;
  border-radius: 3px;
  background: #f0f3f8;
  display: flex;
  overflow: hidden;
  min-width: 100px;
}
.activity-bar span {
  height: 100%;
  display: block;
}
.activity-bar .active {
  background: var(--teal);
}
.activity-bar .idle {
  background: var(--purple);
}
.time-total {
  text-align: right;
  color: #34445f;
  font-weight: 600;
}
.sort-button {
  border: 0;
  background: transparent;
  font-size: inherit;
  color: inherit;
  padding: 0;
}
.sort-button span {
  margin-left: 5px;
}
.table-footer {
  border-top: 1px solid #edf0f5;
  padding: 17px 23px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #a1aabc;
  font-size: 9px;
}
.legend {
  display: flex;
  gap: 22px;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend .legend-dot {
  width: 7px;
  height: 7px;
}
.empty-state {
  text-align: center;
  color: #94a0b3;
  font-size: 12px;
  padding: 45px 20px;
  line-height: 1.8;
  white-space: normal;
}
.chart-content:has(.empty-state) {
  flex-direction: column;
  gap: 10px;
}
.empty-chart {
  width: 155px;
  height: 155px;
  border: 24px solid #f0f4f8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a0aabc;
  font-size: 22px;
}
.chart-content:has(.empty-chart) .empty-state {
  padding: 0;
}
/* Supporting views */
.offline-banner {
  border: 1px solid #f1dfb9;
  background: #fff9ed;
  color: #957139;
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  color: #a1abbd;
  padding: 5px 1px 8px;
}
.page-footer .live-dot {
  width: 5px;
  height: 5px;
  margin-right: 5px;
}
.timeline {
  max-height: 550px;
  overflow: auto;
  margin: 22px;
}
.tl-row {
  display: grid;
  grid-template-columns: 125px 120px minmax(100px, 1fr) 70px;
  gap: 14px;
  padding: 13px 0;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.tl-time,
.tl-detail,
.tl-dur {
  color: #8c98ad;
}
.tl-detail {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-dur {
  text-align: right;
}
.tl-idle {
  opacity: 0.65;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 23px;
}
.chip {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 11px;
  color: #6d7b91;
  font-size: 11px;
}
.report-panel {
  padding: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.alias-edit {
  background: none;
  border: 0;
  padding: 4px 0;
  color: #148b85;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.alias-field { display: grid; gap: 8px; margin: 18px 0; }
.alias-field input, .alias-field textarea, .alias-field select {
  width: 100%; border: 1px solid #dce3ee; border-radius: 8px;
  padding: 10px; font: inherit; box-sizing: border-box;
}
.alias-actions { display: flex; justify-content: flex-end; gap: 10px; }
#alias-error { color: #b93838; }
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  color: var(--text);
  width: min(420px, calc(100% - 30px));
  box-shadow: 0 20px 100px #14254725;
}
dialog::backdrop {
  background: #13244155;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.toggle-label strong {
  font-size: 13px;
}
.toggle-label small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.toggle-label input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}
dialog .muted {
  margin: 22px 0;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 20%, #e9f7f5, transparent 65%), var(--bg);
}
.login-card {
  width: min(360px, calc(100% - 32px));
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 10px 40px #17234408;
}
.login-card h1 {
  font-size: 24px;
}
.login-card input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.login-card button {
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 12px;
}
.login-card .error {
  font-size: 12px;
}
/* Responsive and print layouts */
@media (min-width: 1500px) {
  .main {
    padding: 43px 42px;
  }
  .chart-content {
    min-height: 295px;
    gap: 40px;
  }
  .donut {
    width: 226px;
    height: 226px;
  }
  .donut:before {
    inset: 34px;
  }
  .chart-legend-row {
    font-size: 12px;
  }
  .chart-legend {
    gap: 24px;
  }
  td {
    padding-block: 18px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
    padding-inline: 12px;
  }
  .main {
    margin-left: 195px;
    padding: 30px 25px;
  }
  .chart-content {
    gap: 19px;
    padding-inline: 19px;
  }
  .donut {
    width: 150px;
    height: 150px;
  }
  .donut:before {
    inset: 23px;
  }
  .donut-center strong {
    font-size: 22px;
  }
  .chart-legend-row {
    font-size: 10px;
  }
  .chart-legend {
    gap: 17px;
  }
  .pill {
    display: none;
  }
  .metric-note {
    display: none;
  }
  .tabs {
    gap: 17px;
  }
  .table-controls {
    gap: 9px;
  }
  .search {
    width: 155px;
  }
  td,
  th {
    padding-inline: 16px;
  }
  .panel-heading {
    padding-inline: 19px;
  }
  .table-toolbar {
    padding: 20px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 21px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 76px;
    padding-inline: 10px;
  }
  .brand {
    padding: 0 12px 30px;
  }
  .brand > span:last-child,
  .workspace,
  .nav-label,
  .nav-item .nav-count,
  .connection-card,
  .account > div,
  .account-avatar {
    display: none;
  }
  .nav-item {
    font-size: 0;
    gap: 0;
    justify-content: center;
    padding: 14px;
  }
  .nav-item .icon {
    width: 21px;
    height: 21px;
  }
  .account {
    justify-content: center;
  }
  .account .icon-button {
    margin: 0;
  }
  .main {
    margin-left: 76px;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .toolbar {
    gap: 12px;
  }
  .table-toolbar {
    align-items: flex-start;
  }
  .table-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .metric {
    gap: 10px;
  }
  .metric-icon {
    width: 34px;
    height: 34px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric strong {
    font-size: 20px;
  }
  .chart-content {
    min-height: 225px;
  }
  .chart-legend-row {
    gap: 6px;
  }
  .chart-grid {
    gap: 15px;
  }
  .chart-content {
    gap: 14px;
  }
  .donut {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 760px) {
  .main {
    padding: 25px 18px;
  }
  .page-header {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .header-actions {
    width: 100%;
  }
  .page-header h1 {
    font-size: 25px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tabs {
    order: 2;
    width: 100%;
    gap: 25px;
  }
  .tab {
    padding-bottom: 13px;
  }
  .filters {
    width: 100%;
    padding-bottom: 0;
  }
  .select-wrap {
    flex: 1;
    min-width: 0;
  }
  .select-wrap select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .chart-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .chart-content {
    gap: 30px;
    padding: 25px;
    min-height: 235px;
  }
  .donut {
    width: 175px;
    height: 175px;
  }
  .donut:before {
    inset: 27px;
  }
  .chart-legend-row {
    font-size: 11px;
  }
  .chart-legend {
    max-width: 250px;
  }
  .cards {
    gap: 8px;
  }
  .metric {
    padding: 12px;
    display: block;
  }
  .metric-icon {
    display: none;
  }
  .metric-label {
    line-height: 1.5;
  }
  .metric strong {
    font-size: 18px;
    margin-top: 5px;
  }
  .table-toolbar {
    flex-wrap: wrap;
    gap: 17px;
  }
  .table-controls {
    justify-content: space-between;
    width: 100%;
  }
  .search {
    flex: 1;
    max-width: 230px;
  }
  .table-footer {
    flex-wrap: wrap;
  }
  .range-caption {
    font-size: 9px;
    align-items: flex-start;
  }
  .range-caption #status {
    text-align: right;
    max-width: 55%;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .tl-row {
    grid-template-columns: 110px 100px minmax(100px, 1fr) 60px;
  }
  .timeline {
    overflow: auto;
  }
  .report-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .date-range {
    flex-wrap: wrap;
  }
}
@media (max-width: 440px) {
  .sidebar {
    width: 58px;
    padding-inline: 5px;
  }
  .brand {
    padding-inline: 9px;
  }
  .brand-mark {
    width: 27px;
  }
  .main {
    margin-left: 58px;
    padding: 22px 12px;
  }
  .nav-item {
    padding-inline: 8px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .page-header h1 {
    font-size: 23px;
  }
  .page-header p {
    font-size: 11px;
    line-height: 1.6;
  }
  .tabs {
    gap: 16px;
    overflow-x: auto;
  }
  .tab {
    font-size: 14px;
    padding-inline: 10px;
  }
  .chart-content {
    gap: 18px;
    padding: 24px 15px;
  }
  .donut {
    width: 125px;
    height: 125px;
  }
  .donut:before {
    inset: 20px;
  }
  .donut-center strong {
    font-size: 20px;
  }
  .donut-center span {
    font-size: 8px;
  }
  .chart-legend-row {
    font-size: 9px;
  }
  .chart-legend {
    gap: 17px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric strong {
    font-size: 16px;
  }
  .table-toolbar h2 {
    font-size: 16px;
  }
  .legend {
    gap: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  .sidebar,
  .header-actions,
  .filters,
  .date-range,
  .tabs,
  .table-controls,
  .page-footer,
  #settings-dialog,
  #report-panel,
  .offline-banner {
    display: none !important;
  }
  .main {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .page-header {
    margin-bottom: 20px;
  }
  .toolbar {
    display: none;
  }
  .panel,
  .metric {
    box-shadow: none;
    break-inside: avoid;
  }
  .chart-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .chart-content {
    padding: 20px 12px;
    gap: 15px;
    min-height: 200px;
  }
  .donut {
    width: 140px;
    height: 140px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .activity-bar,
  .legend-dot,
  .user-avatar {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .table-scroll {
    overflow: visible;
  }
  td,
  th {
    padding: 11px 9px;
  }
  .table-toolbar {
    padding: 17px;
  }
  h1 {
    font-size: 25px;
  }
  .detail-cell {
    white-space: normal;
  }
}

/* Working hours report */
.report-actions {
  display: flex;
  gap: 10px;
}
.report-menu {
  position: relative;
}
.report-menu summary {
  list-style: none;
  cursor: pointer;
}
.report-menu summary::-webkit-details-marker {
  display: none;
}
.report-menu summary:focus-visible {
  outline: 3px solid #8adbd6;
  outline-offset: 3px;
}
.report-menu summary > span:last-child .icon {
  width: 12px;
}
.menu-content {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 230px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 35px #17234418;
  padding: 14px;
}
.column-menu > strong {
  display: block;
  font-size: 12px;
  margin: 3px 0 12px;
}
#report-column-options {
  max-height: 340px;
  overflow-y: auto;
}
.column-menu label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 12px;
  color: #52627c;
  cursor: pointer;
}
.column-menu input {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}
.column-menu label small {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}
.menu-reset {
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  width: 100%;
  text-align: left;
  padding: 12px 0 0;
  margin-top: 8px;
  font-size: 11px;
  color: var(--accent);
}
.export-options button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 7px;
  border: 0;
  border-radius: 5px;
  background: white;
  text-align: left;
  font-size: 12px;
  color: var(--text);
}
.export-options button:hover {
  background: #f0f8f7;
}
.export-options .icon {
  width: 16px;
  height: 16px;
}
.export-options small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin: 9px 7px 1px;
}
.report-summary {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 19px 22px;
  margin-bottom: 18px;
}
.report-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 25px;
  margin-right: 25px;
  border-right: 1px solid var(--line);
}
.report-stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.report-stat-icon .icon {
  width: 22px;
  height: 22px;
}
.report-stat strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
#report-user-count {
  font-size: 24px;
}
.report-stat > div > span {
  display: block;
  font-size: 11px;
  color: #8190a9;
  margin-top: 5px;
}
.report-date-stat {
  border: 0;
  margin-right: 0;
  max-width: 340px;
}
.report-date-stat strong {
  font-size: 15px;
}
.report-date-stat > div > span {
  font-size: 9px;
}
.report-search {
  flex: 1;
  margin-left: auto;
  min-width: 160px;
  max-width: 330px;
  background: #f9fbfe;
  padding: 12px;
}
.report-search input {
  font-size: 11px;
}
.working-hours-panel {
  border-radius: 8px;
  margin-bottom: 13px;
}
.working-hours-table {
  width: 100%;
}
.working-hours-table th {
  background: #f3f7fc;
  border-top: 0;
  border-right: 1px solid #e8eef7;
  color: #556684;
  padding: 14px 14px;
  font-size: 10px;
}
.working-hours-table th:last-child {
  border-right: 0;
}
.working-hours-table td {
  color: #5e6f8d;
  padding: 10px 14px;
  font-size: 11px;
  border-bottom: 1px solid #eaf0f8;
}
.working-hours-table tbody tr:nth-child(even) {
  background: #f8fafd;
}
.working-hours-table tbody tr:hover {
  background: #eef8f8;
}
.working-hours-table td.report-active {
  color: #172344;
  font-weight: 700;
}
.report-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: #079dbe;
}
.report-user > span:last-child {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-user small {
  display: block;
  color: #8c9aaf;
  font-size: 9px;
  margin-top: 2px;
}
.report-user .user-avatar {
  width: 29px;
  height: 29px;
  font-size: 12px;
}
.report-user-toggle { cursor: pointer; }
.ud-card { margin: 18px; border: 1px solid #9aaec6; border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 2px 6px #20314f0a; }
.ud-card > summary { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(85px, 1fr)) 20px; align-items: center; gap: 16px; padding: 22px; cursor: pointer; list-style: none; background: #eaf0f8; }
.ud-card > summary:hover { background: #e1eaf5; }
.ud-card > summary::-webkit-details-marker { display: none; }
.ud-card > summary:focus-visible { outline: 2px solid #069b94; outline-offset: -4px; }
.ud-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ud-identity > span:last-child { min-width: 0; }
.ud-identity strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
.ud-identity small, .ud-stat small { display: block; color: #8290a8; margin: 5px 0; font-size: 11px; }
.ud-identity .user-avatar { width: 44px; height: 44px; background: #edf3ff; color: #2865d0; flex-shrink: 0; }
.ud-stat strong { font-size: 21px; }
.ud-card[open] .ud-card-chevron { transform: rotate(180deg); }
.ud-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 12px 22px; background: #f4f7fb; border-top: 1px solid #b8c7da; border-bottom: 1px solid var(--line); font-size: 11px; color: #8290a8; }
.ud-meta strong { color: #43516b; margin-left: 6px; font-weight: 500; }
.ud-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 24px; gap: 24px; }
.ud-charts > .empty-state { grid-column: 1 / -1; }
.ud-chart + .ud-chart { border-left: 1px solid var(--line); padding-left: 24px; }
.ud-chart-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ud-chart-title h3 { font-size: 19px; }
.ud-chart-title strong { white-space: nowrap; font-size: 16px; }
.ud-chart > p { color: #8290a8; font-size: 11px; margin: 8px 0 18px; }
.ud-chart-content.doughnut { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: 18px; }
.ud-doughnut { width: 145px; height: 145px; border-radius: 50%; display: grid; place-items: center; }
.ud-doughnut > div { width: 104px; height: 104px; border-radius: 50%; background: white; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.ud-doughnut strong { font-size: 18px; }
.ud-doughnut small { color: #8290a8; font-size: 10px; }
.ud-category { display: grid; grid-template-columns: minmax(0, 1fr) 70px 48px; gap: 10px; align-items: center; padding: 9px 0; font-size: 11px; }
.ud-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-name i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; margin-right: 8px; }
.ud-time { color: #8290a8; text-align: right; white-space: nowrap; }
.ud-category > strong { text-align: right; }
.ud-column-labels { display: grid; grid-template-columns: minmax(0, 1fr) 70px 48px; gap: 10px; text-align: right; color: #8290a8; font-size: 9px; margin-bottom: 5px; }
.bars .ud-category { grid-template-columns: minmax(0, 1.2fr) minmax(50px, 1fr) 70px 48px; }
.ud-track { height: 12px; background: #edf1f7; border-radius: 20px; overflow: hidden; }
.ud-track > span { display: block; height: 100%; border-radius: inherit; }
.ud-card-footer { border-top: 1px solid var(--line); margin: 0 24px; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; color: #8290a8; font-size: 10px; }
.ud-card-footer > span:last-child { display: flex; gap: 18px; flex-shrink: 0; }
.ud-no-data { min-height: 145px; display: grid; place-items: center; color: #8290a8; font-size: 12px; }
.ud-note { padding: 0 20px 18px; color: #8290a8; font-size: 11px; }
@media (max-width: 1400px) {
  .ud-chart-content.doughnut { grid-template-columns: 1fr; }
  .ud-doughnut { margin: 0 auto 12px; }
}
@media (max-width: 1000px) {
  .ud-card > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ud-identity { grid-column: 1 / -1; }
  .ud-card-chevron { display: none; }
  .ud-charts { grid-template-columns: minmax(0, 1fr); }
  .ud-chart + .ud-chart { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .ud-card-footer { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .ud-card { margin: 12px; }
  .ud-card > summary, .ud-charts { padding: 16px; }
  .bars .ud-category { grid-template-columns: minmax(0, 1fr) 50px 42px; }
  .bars .ud-track { grid-column: 1 / -1; grid-row: 2; }
  .bars .ud-name { grid-column: 1; grid-row: 1; }
  .bars .ud-time { grid-column: 2; grid-row: 1; }
  .bars .ud-category > strong { grid-column: 3; grid-row: 1; }
}
@media print {
  #user-dashboard-tabs, #dashboard-collapse, .ud-card-footer button { display: none; }
  .ud-card { break-inside: avoid; }
}
.report-chevron { color: #65758d; font-size: 16px; }
.report-user-toggle:focus-visible, .report-day > summary:focus-visible {
  outline: 2px solid #069b94;
  outline-offset: 4px;
}
.working-hours-table .report-user-detail > td {
  padding: 12px 22px;
  background: #f5f8fc;
  white-space: normal;
}
.report-day { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; background: white; }
.report-day > summary { padding: 12px 14px; cursor: pointer; font-weight: 600; color: #263954; }
.report-day > summary span { margin-left: 20px; color: #6d7b91; font-weight: 400; }
.report-session-detail { padding: 0 14px 14px; }
.report-session-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
.report-session-table th, .report-session-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.report-session-table td:nth-child(4) { white-space: normal; overflow-wrap: anywhere; min-width: 160px; max-width: 400px; }
.report-detail-message { padding: 12px 0; color: #6d7b91; }
@media (max-width: 760px) {
  .report-day > summary span { display: block; margin: 6px 0 0 16px; }
}
.avatar-0 {
  background: #e1f6f2;
  color: #13a796;
}
.avatar-1 {
  background: #e5effd;
  color: #5a91d6;
}
.avatar-2 {
  background: #f8e7f0;
  color: #c56695;
}
.avatar-3 {
  background: #eee7fb;
  color: #8961c9;
}
.avatar-4 {
  background: #fff0e1;
  color: #c78e51;
}
.location-pill {
  display: inline-block;
  background: #eef2f7;
  color: #8190a6;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 10px;
}
.report-duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.report-unavailable {
  color: #9ca8bc;
}
.undefined-dot {
  background: #8591a5;
}
.peach-dot {
  background: var(--peach);
}
.report-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  font-size: 10px;
  color: #8795ae;
  border-top: 1px solid var(--line);
}
.report-legend .legend {
  color: #61718c;
  flex-wrap: wrap;
  row-gap: 10px;
}
.report-legend .legend-dot {
  width: 9px;
  height: 9px;
}
.report-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #7887a0;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pagination-controls label {
  font-size: 10px;
  margin-right: 8px;
}
.pagination-controls select {
  padding: 5px;
  color: #5e718e;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  font-size: 10px;
  margin-left: 5px;
}
.pagination-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #7790b0;
  background: white;
  font-size: 22px;
}
.pagination-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.page-number {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 32px;
  border: 1px solid #c7efee;
  border-radius: 6px;
  background: #eaf9f8;
  color: #078f89;
  font-size: 11px;
  font-weight: 600;
  padding: 0 7px;
}
.report-note {
  color: #8591a5;
  font-size: 10px;
  line-height: 1.7;
  margin: 0 2px 22px;
}
.working-hours-table .report-empty {
  padding: 65px 20px;
  font-size: 12px;
}
@media (min-width: 1500px) {
  .working-hours-table td {
    font-size: 12px;
    padding-block: 11px;
  }
  .working-hours-table th {
    font-size: 11px;
  }
  .report-summary {
    padding-block: 23px;
  }
}
@media (max-width: 1200px) {
  .report-stat {
    margin-right: 17px;
    padding-right: 17px;
    gap: 10px;
  }
  .report-stat-icon {
    width: 36px;
    height: 36px;
  }
  .report-stat strong {
    font-size: 13px;
  }
  .report-summary {
    flex-wrap: wrap;
    row-gap: 18px;
  }
  .report-search {
    max-width: none;
  }
}
@media (max-width: 760px) {
  .report-actions {
    gap: 7px;
  }
  .report-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
    padding: 18px;
  }
  .report-stat {
    border: 0;
    margin: 0;
    padding: 0;
  }
  .report-date-stat {
    grid-column: 1 / -1;
    max-width: none;
  }
  .report-search {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
  }
  .report-legend {
    flex-wrap: wrap;
  }
  .report-pagination {
    flex-wrap: wrap;
  }
  .menu-content {
    position: fixed;
    top: auto;
    right: 18px;
    margin-top: 8px;
  }
}
@media print {
  .reports-view #report-panel {
    display: block !important;
  }
  .reports-view .report-actions,
  .reports-view .report-search,
  .reports-view .report-pagination {
    display: none !important;
  }
  .reports-view .working-hours-panel {
    break-inside: auto;
    overflow: visible;
  }
  .reports-view .working-hours-table {
    table-layout: auto;
  }
  .reports-view .working-hours-table th,
  .reports-view .working-hours-table td {
    padding: 7px 4px;
    font-size: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .reports-view .working-hours-table thead {
    display: table-header-group;
  }
  .reports-view .working-hours-table tr {
    break-inside: avoid;
  }
  .reports-view .report-user {
    font-size: 9px;
    color: #172344;
  }
  .reports-view .report-user small {
    font-size: 7px;
  }
  .reports-view .report-user .user-avatar {
    display: none;
  }
  .reports-view .report-summary {
    display: flex;
    padding: 14px;
  }
  .reports-view .location-pill {
    padding: 3px;
    font-size: 8px;
  }
  .reports-view .report-duration {
    gap: 4px;
  }
  .reports-view .report-legend {
    font-size: 8px;
  }
  .reports-view .report-note {
    font-size: 8px;
  }
}
/* Shared outer frame: page changes never move the workspace controls. */
.workspace-frame .page-header {
  min-height: 90px;
  margin-bottom: 20px;
}
.workspace-controls {
  display: grid;
  grid-template-columns: 490px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px;
  margin-bottom: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.workspace-controls .filters {
  padding: 0;
  width: auto;
  align-items: center;
}
.workspace-controls .select-wrap {
  height: 44px;
  min-width: 0;
  flex: none;
}
.workspace-controls .select-wrap:first-child { width: 155px; }
.workspace-controls .select-wrap:nth-child(2) { width: 210px; }
.workspace-controls .button {
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 17px;
}
.workspace-controls .icon { width: 17px; height: 17px; }
.workspace-controls .select-wrap select {
  font-size: 14px;
  font-weight: 550;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}
.workspace-controls .header-actions {
  width: auto;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.page-content > .toolbar { margin-bottom: 18px; }
@media (max-width: 1200px) {
  .workspace-controls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .workspace-controls { padding: 12px; gap: 12px; }
  .workspace-controls .filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 9px;
  }
  .workspace-controls .select-wrap:first-child,
  .workspace-controls .select-wrap:nth-child(2) { width: auto; }
  .workspace-controls #edit-selected-user { justify-self: start; }
  .workspace-controls .header-actions { gap: 7px; }
  .workspace-controls .header-actions .button { padding: 10px 9px; gap: 6px; }
}
@media print {
  .workspace-controls { display: none; }
  .workspace-frame .page-header { min-height: 0; }
}
@media screen and (max-width: 420px) {
  .workspace-controls .header-actions {
    flex-wrap: wrap;
    min-height: 95px;
    align-content: flex-start;
  }
  .workspace-controls #refresh { flex-basis: 100%; }
}
.agent-version {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
  white-space: normal;
}
.agent-version.agent-version-old { color: #a75a00; font-weight: 600; }
.agent-version.agent-version-current { color: #087f73; }

.agent-runtime { margin: 12px 16px; font-size: 12px; line-height: 1.6; color: #42536b; }
.agent-runtime summary { cursor:pointer; font-weight:600; }
.agent-runtime ol { padding-left:24px; max-height:240px; overflow:auto; }
