/* Меняет только плотность пользовательского реестра объектов. */
.registry-object-table { font-size: 13px !important; }
.registry-object-table th { font-size: 12px !important; line-height: 1.2 !important; padding: 12px 10px !important; }
.registry-object-table td { font-size: 13px !important; line-height: 1.35 !important; padding: 10px !important; }
.registry-object-table .registry-action-column button { font-size: 11px !important; }
.inspection-start-panel .start-inspection-button,
.inspection-start-panel .control-start-button { width: 100%; height: 42px; min-height: 42px; margin-top: 8px; }
.inspection-start-panel .control-work-button { background: #176f9f; border-color: #176f9f; }
.inspection-start-panel .control-remark-button { background: #f6b04b; border-color: #d98212; color: #fff; }
.control-nav-count { background: #e89020 !important; color: #fff !important; }
.bottom-control-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #16784a; color: #fff; font-size: 10px; display: inline-grid; place-items: center; }
.control-overview-panel { display: grid; grid-template-columns: minmax(210px,auto) 1fr auto; align-items: center; gap: 18px; margin-bottom: 14px; padding: 16px 18px; border-left: 5px solid #e89020; }
.control-overview-panel h3 { margin: 0 0 4px; }
.control-overview-panel p { margin: 0; color: #61736a; }
.control-overdue-number { color: #b42318; }
.control-overview-items { display: flex; flex-wrap: wrap; gap: 7px; }
.control-overview-item { padding: 5px 8px; border-radius: 8px; background: #edf6f1; color: #155f3c; font-size: 12px; }
.control-overview-item.overdue { background: #fee7e5; color: #a41e16; }
@media (max-width: 900px) { .control-overview-panel { grid-template-columns: 1fr; } }
.control-main-registry { margin-bottom: 14px; }
.control-main-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.control-main-heading h2 { margin-bottom: 4px; }
.control-main-heading small { color: #61736a; }
.control-main-row.overdue { background: #fff3f2; }
.control-main-row.overdue em { color: #b42318; }
.control-main-row .inspection-result-dot.complaint { background: #e89020 !important; box-shadow: 0 0 0 5px #fff0d8 !important; }
.control-open-all { margin-top: 12px; }
@media print {
  .bulk-report-cover {
    justify-content: flex-start !important;
    align-content: flex-start !important;
    place-content: start !important;
    padding-top: 0 !important;
  }
}

.inspection-print-header,
.inspection-print-footer { display: none; }

/* r328: шапка экранного предпросмотра не должна сжимать название по буквам. */
@media screen {
  .report-sheet .report-inspection-brand {
    display: grid !important;
    grid-template-columns: 72px minmax(150px, 1fr) minmax(230px, 280px) !important;
    align-items: start !important;
    column-gap: 14px !important;
  }
  .report-sheet .report-inspection-brand > div:not(.report-stages) {
    min-width: 150px !important;
    width: auto !important;
  }
  .report-sheet .report-inspection-brand > div:not(.report-stages) > b,
  .report-sheet .report-inspection-brand > div:not(.report-stages) > small {
    display: block !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .report-sheet .report-inspection-brand .report-stages {
    width: auto !important;
    min-width: 230px !important;
    max-width: 280px !important;
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 1280px) {
  .report-sheet .report-inspection-brand {
    grid-template-columns: 72px minmax(180px, 1fr) !important;
  }
  .report-sheet .report-inspection-brand .report-stages {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-top: 8px !important;
  }
}

@media print {
  @page {
    margin: 16mm 14mm 20mm !important;
  }
  @page report-violations {
    size: A3 landscape;
    margin: 22mm 14mm 20mm !important;
  }
  body.print-profile-inspection .report-layout {
    display: block !important;
    align-items: start !important;
    justify-items: start !important;
    place-content: start !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.print-profile-inspection .report-sheet {
    position: static !important;
    inset: auto !important;
    align-self: start !important;
    justify-self: start !important;
    margin: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
  }
  body.print-profile-inspection .report-inspection-brand {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.print-profile-inspection .inspection-print-header,
  body.print-profile-inspection .inspection-print-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 30 !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 8mm !important;
    color: #31463c !important;
    background: #fff !important;
    font-size: 7.5pt !important;
    line-height: 1.15 !important;
  }
  body.print-profile-inspection .inspection-print-header {
    top: -15mm !important;
    padding-bottom: 2mm !important;
    border-bottom: .3mm solid #9bb4a6 !important;
  }
  body.print-profile-inspection .inspection-print-footer {
    bottom: -13mm !important;
    padding-top: 2mm !important;
    border-top: .3mm solid #9bb4a6 !important;
  }
  body.print-profile-inspection .inspection-print-footer span {
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
  /* Ни один раздел после обложки не возвращается к A4. */
  body.print-profile-inspection .report-risk-summary,
  body.print-profile-inspection .report-risk-section,
  body.print-profile-inspection .report-risk-title,
  body.print-profile-inspection .risk-bars,
  body.print-profile-inspection .report-compliance-section,
  body.print-profile-inspection .report-a3-landscape {
    page: report-violations !important;
  }
  body.print-profile-inspection .report-risk-summary,
  body.print-profile-inspection .report-risk-section,
  body.print-profile-inspection .report-risk-title,
  body.print-profile-inspection .risk-bars {
    width: 392mm !important;
    min-width: 392mm !important;
    max-width: 392mm !important;
  }
  body.print-profile-inspection .inspection-print-header,
  body.print-profile-inspection .inspection-print-footer {
    display: none !important;
  }
}
