
    #dashboard-view {
      display: grid;
      gap: 18px;
      color: #2f2945;
      background: linear-gradient(180deg, #fff 0%, #f8f6fc 100%);
      box-shadow: 0 18px 48px rgba(64, 44, 96, 0.1);
      --engineer-text-xs: 12px;
      --engineer-text-sm: 13px;
      --engineer-text-md: 14px;
      --engineer-text-lg: 16px;
      --engineer-text-value-sm: 18px;
      --engineer-text-value: 24px;
    }

    #dashboard-view[hidden] {
      display: none;
    }

    .engineer-dashboard {
      display: grid;
      gap: 16px;
      --engineer-text-xs: 12px;
      --engineer-text-sm: 13px;
      --engineer-text-md: 14px;
      --engineer-text-lg: 16px;
      --engineer-text-value-sm: 18px;
      --engineer-text-value: 24px;
    }

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

    .engineer-dashboard-head {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 12px;
    }

    .engineer-dashboard-head .result-status {
      flex: 1 1 220px;
      min-width: 0;
      margin: 8px 0 0;
      font-weight: 500;
    }

    .engineer-dashboard-date-badge {
      display: inline-flex;
      min-height: 42px;
      align-items: center;
      gap: 10px;
      margin-left: auto;
      padding: 7px 14px 7px 10px;
      border: 1px solid rgba(128, 102, 217, 0.14);
      border-radius: 16px;
      color: #2f2945;
      background: rgba(255, 255, 255, 0.86);
      box-shadow: 0 8px 24px rgba(64, 44, 96, 0.08), 0 1px 3px rgba(64, 44, 96, 0.04);
      font-size: var(--engineer-text-md);
      font-weight: 600;
      white-space: nowrap;
    }

    .engineer-dashboard-date-badge strong {
      font-weight: 600;
    }

    .engineer-dashboard-date-icon {
      position: relative;
      display: inline-block;
      width: 30px;
      height: 30px;
      border: 2px solid #8066d9;
      border-radius: 9px;
      background: #f1ecff;
    }

    .engineer-dashboard-date-icon::before {
      position: absolute;
      top: 8px;
      left: 5px;
      right: 5px;
      border-top: 2px solid rgba(128, 102, 217, 0.5);
      content: "";
    }

    .engineer-dashboard-date-icon::after {
      position: absolute;
      top: 15px;
      left: 7px;
      width: 4px;
      height: 4px;
      border-radius: 2px;
      background: #8066d9;
      box-shadow: 7px 0 0 #8066d9, 14px 0 0 #8066d9;
      content: "";
    }

    .engineer-dashboard-top {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
    }

    .engineer-dashboard-card,
    .dashboard-action {
      border: 1px solid rgba(111, 84, 166, 0.09);
      border-radius: 22px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(64, 44, 96, 0.07), 0 1px 3px rgba(64, 44, 96, 0.04);
    }

    .engineer-dashboard-card {
      position: relative;
      display: grid;
      align-content: space-between;
      gap: 9px;
      min-height: 130px;
      overflow: hidden;
      padding: 18px;
      background: linear-gradient(135deg, #fff 0%, #f1ecff 135%);
    }

    .engineer-dashboard-card::after {
      position: absolute;
      top: 16px;
      right: 16px;
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 14px;
      color: #8066d9;
      background: rgba(128, 102, 217, 0.12);
      font-size: var(--engineer-text-md);
      font-weight: 600;
      content: "●";
    }

    .engineer-dashboard-card:nth-child(1) {
      background: linear-gradient(135deg, #fff 0%, #eef5ff 135%);
    }

    .engineer-dashboard-card:nth-child(1)::after {
      color: #4b83e6;
      background: #eef5ff;
      content: "Э";
    }

    .engineer-dashboard-card:nth-child(2) {
      background: linear-gradient(135deg, #fff 0%, #fff6e6 135%);
    }

    .engineer-dashboard-card:nth-child(2)::after {
      color: #e9a23b;
      background: #fff6e6;
      content: "Д";
    }

    .engineer-dashboard-card:nth-child(3) {
      background: linear-gradient(135deg, #fff 0%, #ecf8f0 135%);
    }

    .engineer-dashboard-card:nth-child(3)::after {
      color: #33a65c;
      background: #ecf8f0;
      content: "✓";
    }

    .engineer-dashboard-card span {
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      line-height: 1.35;
    }

    .engineer-dashboard-card strong {
      color: #2f2945;
      font-size: var(--engineer-text-value);
      font-weight: 700;
      line-height: 1.1;
      padding-right: 44px;
    }

    .engineer-dashboard-card small {
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      line-height: 1.35;
    }

    .engineer-dashboard-summary-card {
      align-content: stretch;
      gap: 0;
      min-height: 0;
      padding: 0;
      background: linear-gradient(135deg, #fff 0%, #f1ecff 135%);
    }

    .engineer-dashboard-summary-card::after {
      display: none;
    }

    .engineer-dashboard-summary-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      min-height: 64px;
      padding: 15px 18px;
    }

    .engineer-dashboard-summary-row:not(:last-child) {
      border-bottom: 1px solid rgba(111, 84, 166, 0.08);
    }

    .engineer-dashboard-summary-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .engineer-dashboard-card .engineer-dashboard-summary-label {
      color: #2f2945;
      font-size: var(--engineer-text-sm);
      font-weight: 600;
      line-height: 1.3;
    }

    .engineer-dashboard-summary-note {
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      line-height: 1.35;
    }

    .engineer-dashboard-summary-value {
      display: inline-flex;
      align-items: baseline;
      justify-content: flex-end;
      gap: 8px;
      min-width: 0;
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      line-height: 1.2;
      text-align: right;
      white-space: nowrap;
    }

    .engineer-dashboard-summary-value strong {
      padding-right: 0;
      color: #2f2945;
      font-size: var(--engineer-text-value);
      font-weight: 700;
      line-height: 1;
    }

    .engineer-dashboard-call-counts {
      align-items: center;
      color: #9b8aa8;
      font-size: var(--engineer-text-md);
      font-weight: 600;
    }

    .engineer-dashboard-call-counts small {
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
    }

    .engineer-dashboard-water-breakdown {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
    }

    .engineer-dashboard-water-item {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #2f2945;
      font-size: var(--engineer-text-xs);
      font-weight: 600;
    }

    .engineer-dashboard-water-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72);
    }

    .engineer-dashboard-water-dot.hot {
      background: #ef4444;
    }

    .engineer-dashboard-water-dot.cold {
      background: #2563eb;
    }

    .engineer-dashboard-attention {
      display: grid;
      gap: 8px;
      align-content: stretch;
      min-width: 0;
      min-height: 130px;
      padding: 12px;
      border: 1px solid rgba(111, 84, 166, 0.09);
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 237, 0.9) 140%);
      box-shadow: 0 8px 24px rgba(64, 44, 96, 0.06), 0 1px 3px rgba(64, 44, 96, 0.04);
    }

    .engineer-dashboard-attention h2 {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin: 0;
      color: #2f2945;
      font-size: var(--engineer-text-md);
      font-weight: 700;
      line-height: 1.2;
    }

    .engineer-attention-row {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .engineer-attention-row-main {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .engineer-attention-row-secondary {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .engineer-attention-card {
      display: grid;
      align-content: center;
      gap: 3px;
      min-height: 50px;
      min-width: 0;
      padding: 8px 9px;
      border: 1px solid rgba(233, 162, 59, 0.13);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.88);
      box-shadow: 0 8px 18px rgba(64, 44, 96, 0.05);
    }

    .engineer-attention-card.active {
      border-color: rgba(230, 92, 104, 0.18);
      background: rgba(255, 250, 245, 0.96);
    }

    .engineer-attention-card.missing {
      border-color: rgba(111, 84, 166, 0.08);
      background: rgba(255, 255, 255, 0.72);
    }

    .engineer-attention-value {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .engineer-attention-dot {
      width: 9px;
      height: 9px;
      flex: 0 0 9px;
      border-radius: 999px;
      background: #e9a23b;
      box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.12);
    }

    .engineer-attention-card.active .engineer-attention-dot {
      background: #e65c68;
      box-shadow: 0 0 0 3px rgba(230, 92, 104, 0.12);
    }

    .engineer-attention-card.missing .engineer-attention-dot {
      background: #c6bdd9;
      box-shadow: 0 0 0 3px rgba(128, 102, 217, 0.1);
    }

    .engineer-attention-value strong {
      padding-right: 0;
      color: #2f2945;
      font-size: var(--engineer-text-value-sm);
      font-weight: 700;
      line-height: 1;
    }

    .engineer-attention-card.missing .engineer-attention-value strong {
      color: #8b8499;
    }

    .engineer-attention-card > span {
      min-width: 0;
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 600;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .engineer-dashboard-sections {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .dashboard-building-metrics {
      display: grid;
      gap: 12px;
      padding: 18px;
      border: 1px solid rgba(111, 84, 166, 0.09);
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 8px 24px rgba(64, 44, 96, 0.07), 0 1px 3px rgba(64, 44, 96, 0.04);
      cursor: zoom-in;
      min-width: 0;
      transform-origin: top center;
      transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

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

    .dashboard-building-metrics.expanded {
      min-height: min(82vh, 860px);
      border-color: rgba(128, 102, 217, 0.22);
      box-shadow: 0 18px 48px rgba(64, 44, 96, 0.13), 0 4px 12px rgba(64, 44, 96, 0.06);
      cursor: zoom-out;
      transform: translateY(-4px);
    }

    .dashboard-building-metrics-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: nowrap;
      gap: 10px;
      min-width: 0;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .dashboard-building-metrics-title-row {
      display: inline-flex;
      flex: 1 1 auto;
      align-items: center;
      gap: 8px;
      min-width: 0;
      white-space: nowrap;
    }

    .dashboard-building-metrics-tabs {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: flex-end;
      gap: 2px;
      min-height: 38px;
      padding: 4px 4px 0;
      border: 1px solid rgba(128, 102, 217, 0.11);
      border-bottom-color: rgba(128, 102, 217, 0.18);
      border-radius: 14px 14px 8px 8px;
      background: #f4f0ff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    }

    .dashboard-building-metrics-tab {
      appearance: none;
      min-height: 34px;
      min-width: 92px;
      border: 1px solid transparent;
      border-bottom: 0;
      border-radius: 12px 12px 0 0;
      padding: 0 16px;
      color: #6650b8;
      background: transparent;
      font: inherit;
      font-size: var(--engineer-text-sm);
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
      transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    }

    .dashboard-building-metrics-tab[hidden] {
      display: none;
    }

    .dashboard-building-metrics-tab:hover {
      color: #2f2945;
      background: rgba(255, 255, 255, 0.55);
    }

    .dashboard-building-metrics-tab.active {
      color: #2f2945;
      border-color: rgba(128, 102, 217, 0.16);
      background: #fff;
      box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.96), 0 7px 16px rgba(64, 44, 96, 0.08);
      transform: translateY(1px);
    }

    .dashboard-building-metrics-head h2 {
      flex: 0 0 auto;
      margin: 0;
      color: #2f2945;
      font-size: var(--engineer-text-lg);
      font-weight: 700;
      line-height: 1.25;
    }

    .dashboard-building-metrics-head .result-status {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      min-height: 24px;
      margin: 0;
      padding: 0 8px;
      border-radius: 999px;
      color: #6650b8;
      background: #f1ecff;
      font-size: var(--engineer-text-xs);
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
    }

    .dashboard-building-metrics-controls {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: nowrap;
      gap: 6px;
    }

    .dashboard-building-metrics-controls select,
    .dashboard-building-metrics-controls input {
      min-height: 38px;
      border: 1px solid rgba(128, 102, 217, 0.16);
      border-radius: 12px;
      padding: 0 12px;
      color: #2f2945;
      background: #fff;
      box-shadow: inset 0 1px 2px rgba(64, 44, 96, 0.05);
      font: inherit;
      font-size: var(--engineer-text-sm);
      font-weight: 600;
    }

    .dashboard-building-metrics-controls select {
      width: 86px;
    }

    .dashboard-building-metrics-controls input[type="date"] {
      width: 138px;
    }

    .dashboard-building-metrics-controls .reset-button {
      min-height: 38px;
      margin: 0;
      border-radius: 12px;
      padding: 0 12px;
      white-space: nowrap;
    }

    .dashboard-building-metrics-wrap {
      max-height: min(54vh, 560px);
      overflow: auto;
      border: 1px solid rgba(111, 84, 166, 0.09);
      border-radius: 14px;
      background: #fff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .dashboard-staff-metrics-panel {
      min-height: 220px;
      overflow: hidden;
      border: 1px solid rgba(111, 84, 166, 0.09);
      border-radius: 14px;
      background: #fff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .dashboard-staff-metrics-panel[hidden] {
      display: none;
    }

    .dashboard-staff-metrics-wrap {
      max-height: min(54vh, 560px);
      overflow: auto;
    }

    .dashboard-staff-metrics-table {
      width: 100%;
      min-width: 960px;
      border-collapse: separate;
      border-spacing: 0;
      color: #2f2945;
      font-size: var(--engineer-text-sm);
    }

    .dashboard-staff-metrics-table th,
    .dashboard-staff-metrics-table td {
      padding: 11px 12px;
      border-bottom: 1px solid rgba(111, 84, 166, 0.08);
      vertical-align: middle;
      white-space: nowrap;
    }

    .dashboard-staff-metrics-table th {
      position: sticky;
      top: 0;
      z-index: 2;
      color: #4c4562;
      background: #f7f3ff;
      font-size: var(--engineer-text-xs);
      font-weight: 700;
      line-height: 1.15;
      text-align: right;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .dashboard-staff-metrics-table th span {
      display: block;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    .dashboard-staff-metrics-table th[data-dashboard-staff-sort] {
      padding-right: 24px;
      cursor: pointer;
      user-select: none;
    }

    .dashboard-staff-metrics-table th[data-dashboard-staff-sort]::after {
      position: absolute;
      top: 50%;
      right: 8px;
      transform: translateY(-50%);
      color: #8066d9;
      content: "";
      font-size: 10px;
      line-height: 1;
    }

    .dashboard-staff-metrics-table th[data-dashboard-staff-sort]:hover,
    .dashboard-staff-metrics-table th[data-dashboard-staff-sort].active {
      color: #6650b8;
      background: #eee7ff;
    }

    .dashboard-staff-metrics-table th[data-sort-direction="desc"]::after {
      content: "↓";
    }

    .dashboard-staff-metrics-table th:first-child,
    .dashboard-staff-metrics-table td:first-child {
      position: sticky;
      left: 0;
      text-align: left;
    }

    .dashboard-staff-metrics-table th:first-child {
      z-index: 3;
      background: #f7f3ff;
    }

    .dashboard-staff-metrics-table td:first-child {
      z-index: 1;
      background: #fff;
    }

    .dashboard-staff-metrics-table tbody tr:nth-child(even) td {
      background: #fbfaff;
    }

    .dashboard-staff-metrics-table tbody tr:nth-child(even) td:first-child {
      background: #fbfaff;
    }

    .dashboard-staff-metrics-table tbody tr:hover td,
    .dashboard-staff-metrics-table tbody tr:hover td:first-child {
      background: #f1ecff;
    }

    .dashboard-staff-metrics-table th:not(.dashboard-staff-metrics-person),
    .dashboard-staff-metrics-table td.dashboard-staff-metrics-number {
      text-align: right;
    }

    .dashboard-staff-metrics-person {
      min-width: 220px;
      text-align: left;
    }

    .dashboard-staff-metrics-table th.dashboard-staff-metrics-person {
      text-align: left;
    }

    .dashboard-staff-metrics-person strong,
    .dashboard-staff-metrics-person span {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dashboard-staff-metrics-person strong {
      color: #2f2945;
      font-weight: 800;
      line-height: 1.25;
    }

    .dashboard-staff-metrics-person span {
      margin-top: 2px;
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 600;
      line-height: 1.2;
    }

    .dashboard-staff-metrics-number {
      color: #2f2945;
      font-variant-numeric: tabular-nums;
      font-weight: 800;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
    }

    .dashboard-staff-metrics-empty {
      padding: 24px;
      color: #777186;
      font-size: var(--engineer-text-sm);
      font-weight: 600;
      text-align: center;
      white-space: normal;
    }

    .dashboard-building-metrics.expanded .dashboard-building-metrics-wrap {
      max-height: min(72vh, 760px);
    }

    .dashboard-building-metrics.expanded .dashboard-staff-metrics-panel {
      min-height: min(64vh, 620px);
    }

    .dashboard-building-metrics.expanded .dashboard-staff-metrics-wrap {
      max-height: min(72vh, 760px);
    }

    .dashboard-building-metrics-table {
      width: 100%;
      min-width: 1180px;
      border-collapse: separate;
      border-spacing: 0;
      color: #2f2945;
      font-size: var(--engineer-text-sm);
    }

    .dashboard-building-metrics-table th,
    .dashboard-building-metrics-table td {
      padding: 11px 12px;
      border-bottom: 1px solid rgba(111, 84, 166, 0.08);
      vertical-align: middle;
      white-space: nowrap;
    }

    .dashboard-building-metrics-table th {
      position: sticky;
      top: 0;
      z-index: 2;
      color: #4c4562;
      background: #f7f3ff;
      font-size: var(--engineer-text-xs);
      font-weight: 700;
      text-align: right;
    }

    .dashboard-building-metrics-table th[data-dashboard-building-sort] {
      padding-right: 24px;
      cursor: pointer;
      user-select: none;
    }

    .dashboard-building-metrics-table th[data-dashboard-building-sort]::after {
      position: absolute;
      top: 50%;
      right: 8px;
      transform: translateY(-50%);
      color: #8066d9;
      content: "";
      font-size: 10px;
      line-height: 1;
    }

    .dashboard-building-metrics-table th span {
      display: block;
      line-height: 1.15;
    }

    .dashboard-building-metrics-table th[data-dashboard-building-sort]:hover,
    .dashboard-building-metrics-table th[data-dashboard-building-sort].active {
      color: #6650b8;
      background: #eee7ff;
    }

    .dashboard-building-metrics-table th[data-sort-direction="asc"]::after {
      content: "↑";
    }

    .dashboard-building-metrics-table th[data-sort-direction="desc"]::after {
      content: "↓";
    }

    .dashboard-building-metrics-table th:first-child,
    .dashboard-building-metrics-table td:first-child {
      position: sticky;
      left: 0;
      text-align: left;
    }

    .dashboard-building-metrics-table th:first-child {
      z-index: 3;
      background: #f7f3ff;
    }

    .dashboard-building-metrics-table td:first-child {
      z-index: 1;
      background: #fff;
    }

    .dashboard-building-metrics-table tbody tr:nth-child(even) td {
      background: #fbfaff;
    }

    .dashboard-building-metrics-table tbody tr:nth-child(even) td:first-child {
      background: #fbfaff;
    }

    .dashboard-building-metrics-table tbody tr:hover td,
    .dashboard-building-metrics-table tbody tr:hover td:first-child {
      background: #f1ecff;
    }

    .dashboard-building-metrics-building {
      min-width: 220px;
    }

    .dashboard-building-metrics-building strong {
      display: block;
      color: #2f2945;
      font-size: var(--engineer-text-sm);
      font-weight: 700;
      line-height: 1.25;
    }

    .dashboard-building-metrics-building span {
      display: block;
      max-width: 280px;
      overflow: hidden;
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dashboard-building-metrics-number,
    .dashboard-building-metrics-payment {
      text-align: right;
      font-variant-numeric: tabular-nums;
    }

    .dashboard-building-metrics-payment strong {
      color: #33a65c;
      font-size: var(--engineer-text-sm);
      font-weight: 800;
    }

    .dashboard-building-metrics-empty {
      padding: 24px;
      color: #777186;
      text-align: center;
      white-space: normal;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard {
      gap: 10px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-top {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-card {
      min-height: 0;
      padding: 10px 12px;
      border-radius: 14px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-card::after {
      top: 10px;
      right: 10px;
      width: 26px;
      height: 26px;
      border-radius: 10px;
      font-size: 11px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-summary-card {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: stretch;
      gap: 0;
      padding: 0;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-summary-row {
      min-height: 46px;
      padding: 9px 11px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-summary-row:not(:last-child) {
      border-right: 1px solid rgba(111, 84, 166, 0.08);
      border-bottom: 0;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-card .engineer-dashboard-summary-label {
      overflow: hidden;
      font-size: 11px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-summary-note {
      display: none;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-summary-value strong {
      font-size: 16px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-call-counts {
      gap: 4px;
      font-size: 11px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-water-breakdown {
      display: none;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-attention {
      gap: 6px;
      padding: 8px 10px;
      border-radius: 14px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-attention h2 {
      font-size: 12px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-attention-row {
      gap: 6px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-attention-card {
      min-height: 44px;
      gap: 2px;
      padding: 7px 9px;
      border-radius: 12px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-attention-value strong {
      font-size: 16px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-attention-card > span {
      overflow: hidden;
      font-size: 11px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-card {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-header {
      min-width: 0;
      gap: 8px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-icon {
      width: 28px;
      height: 28px;
      border-radius: 10px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-icon svg {
      width: 17px;
      height: 17px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-header h2 {
      overflow: hidden;
      font-size: 12px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-body {
      display: block;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-circle {
      width: 48px;
      height: 48px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-percent {
      font-size: 12px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-billing-details {
      display: none;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-dashboard-sections {
      display: flex;
      grid-template-columns: none;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-section-card {
      flex: 0 0 150px;
      min-height: 0;
      gap: 0;
      padding: 10px 12px;
      border-radius: 14px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-section-head {
      gap: 8px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-section-number {
      width: 28px;
      height: 28px;
      font-size: 12px;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-section-head h2 {
      overflow: hidden;
      font-size: 12px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #dashboard-view.dashboard-building-metrics-expanded .engineer-section-lines,
    #dashboard-view.dashboard-building-metrics-expanded .engineer-worker-list,
    #dashboard-view.dashboard-building-metrics-expanded .engineer-section-progress-row {
      display: none;
    }

    @media (max-width: 900px) {
      .engineer-attention-row-main,
      .engineer-attention-row-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 620px) {
      .engineer-attention-row-main,
      .engineer-attention-row-secondary {
        grid-template-columns: 1fr;
      }
    }

    .engineer-billing-card {
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 14px;
      padding: 18px;
      background: linear-gradient(135deg, #fff 0%, #fdeff2 135%);
    }

    .engineer-billing-card::after {
      display: none;
    }

    .engineer-billing-header {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .engineer-billing-icon {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(236, 65, 96, 0.12);
      color: #dc3545;
    }

    .engineer-billing-header h2 {
      margin: 0;
      font-size: var(--engineer-text-lg);
      font-weight: 600;
      color: #2f2945;
    }

    .engineer-billing-body {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      align-items: center;
      gap: 18px;
    }

    .engineer-billing-progress {
      display: grid;
      place-items: center;
    }

    .engineer-billing-circle {
      position: relative;
      display: grid;
      place-items: center;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background:
        radial-gradient(closest-side, white 79%, transparent 80% 100%),
        conic-gradient(#93eab3 calc(var(--value, 0) * 1%), #eef2f7 0);
      animation: progress-grow 1s ease-out;
    }

    .engineer-billing-percent {
      font-size: var(--engineer-text-value);
      font-weight: 700;
      color: #2f2945;
    }

    .engineer-billing-details {
      display: grid;
      gap: 10px;
    }

    .engineer-billing-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px;
      font-size: var(--engineer-text-sm);
      font-weight: 500;
      color: var(--muted);
    }

    .engineer-billing-row strong {
      font-size: var(--engineer-text-md);
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
    }

    #engineer-billing-paid {
      color: #93eab3;
    }

    .engineer-billing-row.unpaid strong {
      color: var(--danger);
    }

    .engineer-billing-row.total {
      margin-top: 4px;
      padding-top: 8px;
      border-top: 1px solid #e9edf3;
      color: var(--text);
      font-weight: 600;
    }

    @keyframes progress-grow {
      from { --value: 0; }
    }


    .engineer-section-card {
      display: grid;
      gap: 13px;
      padding: 18px 20px;
      border: 1px solid rgba(111, 84, 166, 0.1);
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 8px 24px rgba(64, 44, 96, 0.07), 0 1px 3px rgba(64, 44, 96, 0.04);
    }

    .engineer-section-card:nth-child(3n + 1) {
      border-color: rgba(128, 102, 217, 0.18);
    }

    .engineer-section-card:nth-child(3n + 2) {
      border-color: rgba(233, 162, 59, 0.22);
    }

    .engineer-section-card:nth-child(3n + 3) {
      border-color: rgba(230, 92, 104, 0.2);
    }

    .engineer-section-head {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .engineer-section-head h2 {
      margin: 0;
      color: #2f2945;
      font-size: var(--engineer-text-lg);
      font-weight: 600;
      line-height: 1.25;
    }

    .engineer-section-number {
      display: inline-grid;
      flex: 0 0 auto;
      place-items: center;
      width: 40px;
      height: 40px;
      border: 1px solid rgba(255, 255, 255, 0.48);
      border-radius: 999px;
      color: #fff;
      background: linear-gradient(180deg, #4f76f0, #3157d9);
      box-shadow: 0 10px 18px rgba(49, 87, 217, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.38);
      font-size: var(--engineer-text-lg);
      font-weight: 600;
    }

    .engineer-section-card:nth-child(3n + 2) .engineer-section-number {
      background: linear-gradient(180deg, #f5ae38, #e28a15);
      box-shadow: 0 10px 18px rgba(226, 138, 21, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.38);
    }

    .engineer-section-card:nth-child(3n + 3) .engineer-section-number {
      background: linear-gradient(180deg, #f16972, #dc3545);
      box-shadow: 0 10px 18px rgba(220, 53, 69, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.38);
    }

    .engineer-section-description {
      margin: -6px 0 0;
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      line-height: 1.4;
    }

    .engineer-section-lines {
      display: grid;
      gap: 9px;
    }

    .engineer-section-line {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: baseline;
      min-width: 0;
      color: #2f2945;
      font-size: var(--engineer-text-sm);
      font-weight: 500;
      line-height: 1.35;
    }

    .engineer-section-line-label {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .engineer-section-line-value {
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      text-align: right;
      white-space: nowrap;
    }

    .engineer-section-line strong {
      color: #2f2945;
      font-size: var(--engineer-text-value-sm);
      font-weight: 700;
      line-height: 1;
    }

    .engineer-section-progress-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      margin-top: 2px;
    }

    .engineer-section-progress-ratio {
      color: #2f2945;
      font-size: var(--engineer-text-sm);
      font-weight: 600;
      white-space: nowrap;
    }

    .engineer-section-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .engineer-section-metric {
      display: grid;
      gap: 4px;
      padding: 11px;
      border: 1px solid rgba(111, 84, 166, 0.06);
      border-radius: 14px;
      background: #fbfaff;
    }

    .engineer-section-metric:nth-child(2) {
      background: #ecf8f0;
    }

    .engineer-section-metric span {
      color: #777186;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
    }

    .engineer-section-metric strong {
      color: #2f2945;
      font-size: var(--engineer-text-value-sm);
      font-weight: 700;
      line-height: 1;
    }

    .engineer-section-progress {
      height: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: #eeeef5;
    }

    .engineer-section-progress span {
      display: block;
      width: var(--progress, 0%);
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #8066d9, #a891f0);
    }

    .engineer-section-card:nth-child(3n + 2) .engineer-section-progress span {
      background: linear-gradient(90deg, #e9a23b, #f7c76c);
    }

    .engineer-section-card:nth-child(3n + 3) .engineer-section-progress span {
      background: linear-gradient(90deg, #e65c68, #ff8b96);
    }

    .engineer-worker-list {
      display: grid;
      gap: 8px;
    }

    .engineer-worker-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-height: 42px;
      padding: 8px 10px;
      border: 1px solid rgba(111, 84, 166, 0.07);
      border-radius: 13px;
      background: #fff;
      box-shadow: 0 4px 14px rgba(64, 44, 96, 0.04);
    }

    .engineer-worker-row strong {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      max-width: 100%;
      color: #2f2945;
      font-size: var(--engineer-text-sm);
      font-weight: 500;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .engineer-worker-copy {
      display: flex;
      align-items: center;
      min-width: 0;
    }

    .engineer-worker-row .engineer-worker-name {
      display: block;
      min-width: 0;
      margin-top: 0;
      overflow: hidden;
      color: inherit;
      font-size: inherit;
      font-weight: inherit;
      line-height: inherit;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .engineer-worker-row .engineer-worker-status-dot {
      display: inline-block;
      flex: 0 0 auto;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-top: 0;
      background: #9ca3af;
    }

    .engineer-worker-status-dot.online {
      background: #22c55e;
    }

    .engineer-worker-status-dot.unlinked {
      background: #3b82f6;
    }

    .engineer-online-pill {
      justify-self: end;
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      color: #b42318;
      background: #fff0f1;
      font-size: var(--engineer-text-xs);
      font-weight: 500;
      white-space: nowrap;
    }

    .engineer-online-pill.online {
      color: #33a65c;
      background: #ecf8f0;
    }

    .engineer-online-pill.unlinked {
      color: #4b83e6;
      background: #eef5ff;
    }

    .engineer-dashboard-empty {
      margin: 0;
      padding: 16px;
      border: 1px dashed rgba(111, 84, 166, 0.18);
      border-radius: 16px;
      color: #777186;
      background: #fff;
      font-size: var(--engineer-text-sm);
      font-weight: 500;
      text-align: center;
    }
