/* 1.3.205-r221: compact search rows and unified registry table headers. */
@media screen {
  .report-object-search {
    min-height: 0;
    margin-bottom: 10px;
    padding: 9px 14px;
    gap: 10px;
  }

  .report-object-search input {
    height: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
  }

  .violations-table > .violation-registry-search {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .violations-table > .table-head > span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.72);
    padding-left: 16px;
  }

  .registry-object-table thead th,
  .registry-object-table th.registry-action-column {
    background: linear-gradient(180deg, #17683d 0%, var(--navy) 100%);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.72);
    border-bottom-color: #0f4f35;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.14);
  }

  .registry-object-table thead th:last-child {
    border-right: 0;
  }

  .registry-object-table tr.comparison-new td:first-child,
  .registry-object-table tr.comparison-changed td:first-child,
  .registry-object-table tr.comparison-responsible_changed td:first-child,
  .registry-object-table tr.comparison-unchanged td:first-child {
    box-shadow: inset 4px 0 #16834f;
  }

  .nav-button > .violation-nav-count {
    box-sizing: border-box;
    min-width: 34px;
    height: 22px;
    padding: 0 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .requirement-summary .risk-label,
  .requirement-summary .status-pill {
    min-height: 34px !important;
    height: 34px !important;
    max-height: 34px !important;
    padding: 0 10px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .violations-table .violation-object-rows .violation-row > em.risk-label,
  .violations-table .violation-object-rows .violation-row > i {
    box-sizing: border-box;
    min-height: 34px !important;
    height: 34px !important;
    max-height: 34px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media screen and (max-width: 760px) {
  .report-object-search {
    padding: 8px 10px;
  }

  .report-object-search input {
    height: 38px;
    min-height: 38px;
  }
}

/* r225: отчёты — высокий реестр и стабильные правые колонки. */
@media screen and (min-width: 761px) {
  body:has(.report-object-search) .inspection-registry.compact {
    box-sizing: border-box;
    height: clamp(390px, calc(100vh - 430px), 650px);
    max-height: none;
    margin-bottom: 10px;
  }

  body:has(.report-object-search) .inspection-registry.compact > .inspection-registry-row {
    grid-template-columns:
      12px
      minmax(80px, 94px)
      minmax(300px, 1fr)
      minmax(118px, 136px)
      minmax(150px, 190px)
      minmax(170px, 220px)
      max-content
      max-content !important;
    column-gap: 12px;
  }

  body:has(.report-object-search) .inspection-registry.compact > .inspection-registry-row > .inspection-result-dot {
    grid-column: 1;
  }

  body:has(.report-object-search) .inspection-registry.compact > .inspection-registry-row > strong {
    grid-column: 2;
  }

  body:has(.report-object-search) .inspection-registry.compact > .inspection-registry-row > p {
    grid-column: 3;
  }

  body:has(.report-object-search) .inspection-registry.compact > .inspection-registry-row > time {
    grid-column: 4;
    width: 100%;
    line-height: 1.3;
  }

  body:has(.report-object-search) .inspection-registry.compact > .inspection-registry-row > em {
    grid-column: 5;
    width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  body:has(.report-object-search) .inspection-registry.compact .continue-inspection-label {
    grid-column: 6;
    width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  body:has(.report-object-search) .inspection-registry.compact .inspection-edit-card-control {
    grid-column: 7;
  }

  body:has(.report-object-search) .inspection-registry.compact .inspection-delete-control {
    grid-column: 8;
  }

  body:has(.report-object-search) .report-selection-empty {
    box-sizing: border-box;
    min-height: 38px;
    margin-top: 10px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  body:has(.report-object-search) .report-selection-empty b {
    font-size: 13px;
    line-height: 1.2;
  }

  body:has(.report-object-search) .report-selection-empty p {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
  }
}

@media screen and (min-width: 761px) and (max-width: 1180px) {
  body:has(.report-object-search) .inspection-registry.compact > .inspection-registry-row {
    grid-template-columns:
      10px
      minmax(68px, 78px)
      minmax(210px, 1fr)
      minmax(96px, 112px)
      minmax(126px, 150px)
      minmax(140px, 170px)
      max-content
      max-content !important;
    column-gap: 8px;
  }
}
