.technical-shell .report-test-sidebar {
  overflow-y: auto;
}

.technical-filter-panel {
  grid-template-columns: 140px 140px minmax(160px, 1fr) minmax(160px, 1fr) minmax(170px, 1fr) minmax(220px, 1.1fr) 140px 100px;
}

.technical-kpis {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.technical-dashboard-visuals {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.technical-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.75rem;
}

.technical-metric {
  min-height: 92px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(145, 208, 107, 0.16), rgba(255, 255, 255, 0.04));
}

.technical-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.technical-metric strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.45rem;
  line-height: 1.05;
}

.technical-dashboard-bars {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.technical-dashboard-bars h3,
.technical-specialists h3 {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}

.technical-bar-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 48px minmax(180px, 2fr);
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.5rem;
  color: var(--text);
}

.technical-bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-bar-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.technical-bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.technical-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.technical-specialists {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.technical-specialist-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 0.75rem;
}

.technical-specialist-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.technical-specialist-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: rgba(145, 208, 107, 0.1);
  font-weight: 900;
}

.technical-specialist-head strong {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.technical-specialist-group table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.technical-specialist-group th,
.technical-specialist-group td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(225, 238, 215, 0.08);
  text-align: left;
}

.technical-specialist-group tr:last-child td {
  border-bottom: 0;
}

.technical-table {
  max-height: calc(100vh - 340px);
}

.technical-table table {
  min-width: 1180px;
}

.technical-table th {
  white-space: normal;
}

.technical-table td {
  vertical-align: top;
}

.technical-table .number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.technical-table .wrap-cell {
  min-width: 220px;
  white-space: normal;
}

.technical-table td:nth-child(n + 9) {
  min-width: 240px;
  white-space: normal;
}

/* ===== Стили для модальных окон (dialog) - ВЫСОКИЙ КОНТРАСТ (ТЕМНАЯ ТЕМА) ===== */
dialog {
  border: 2px solid var(--yellow);
  border-radius: 24px;
  background: #18211f; /* Глубокий темный фон */
  color: #fbf6e6;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  padding: 0;
  max-width: 500px;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

dialog form {
  padding: 30px;
}

dialog h3 {
  margin-top: 0;
  color: var(--yellow); /* Яркий заголовок */
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(241, 200, 91, 0.3);
  padding-bottom: 10px;
}

dialog label {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--yellow); /* Желтые подписи полей */
  font-size: 0.95rem;
}

dialog input,
dialog select,
dialog textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid #4d5a57;
  border-radius: 12px;
  background: #2a3532; /* Темный фон инпутов */
  color: #ffffff; /* Белый текст в полях */
  font-size: 1.1rem;
}

dialog input:focus,
dialog select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(241, 200, 91, 0.2);
}

dialog .secondary-button {
  background: #3d4a46;
  color: #fbf6e6;
}

dialog .secondary-button:hover {
  background: #4d5a57;
}

dialog button[type="submit"] {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

dialog button[type="submit"]:hover {
  background: #e1b84b;
}

@media (max-width: 1500px) {
  .technical-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .technical-filter-panel,
  .technical-kpis,
  .technical-dashboard-grid,
  .technical-specialist-columns {
    grid-template-columns: 1fr;
  }

  .technical-bar-row {
    grid-template-columns: 1fr 42px;
  }

  .technical-bar-row div {
    grid-column: 1 / -1;
  }
}
