@import url("/assets/index-r82.css?v=1.3.90-r106");
@import url("/assets/ui-r106.css?v=1.3.90-r106");

/* Контрастная типографика всего основного экранного интерфейса. */
@media screen {
  body { color: #000; font-weight: 400; }

  :where(.main-content, .page-content, .objects-page, .checklist-page, .administration-page, .reports-page, .violations-page)
  :where(p, li, dd, td, input, textarea, select) {
    color: #000 !important;
    font-weight: 400 !important;
  }

  :where(.main-content, .page-content, .objects-page, .checklist-page, .administration-page, .reports-page, .violations-page)
  :where(h1, h2, h3, h4, h5, h6, legend, th, label, summary, .table-head, .section-title, .card-title, .panel-title, .form-title, .requirement-card-title, .result-column-title) {
    font-weight: 700 !important;
  }

  :where(.main-content, .page-content, .objects-page, .checklist-page, .administration-page, .reports-page, .violations-page)
  :where(small, .muted, .hint, .help, .helper, .caption, .description, .field-note, .form-hint),
  input::placeholder,
  textarea::placeholder {
    color: var(--muted) !important;
    font-weight: 400 !important;
    opacity: 1;
  }
}

/* Карточки требований: явные читаемые размеры для телефонов и планшетов. */
@media screen {
  .requirement-card,
  .requirement-summary,
  .requirement-details,
  .requirement-copy,
  .result-column,
  .photo-column {
    min-width: 0;
    max-width: 100%;
  }

  .requirement-summary {
    min-height: 92px;
    height: auto;
    gap: 12px;
    padding: 14px 16px;
  }

  .requirement-code {
    width: 54px;
    min-width: 54px;
    height: auto;
    min-height: 42px;
    padding: 7px 5px;
    font-size: 12px !important;
    line-height: 1.25;
  }

  .requirement-main b {
    color: #000 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  .requirement-main small {
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .risk-label,
  .status-pill {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px !important;
    line-height: 1.3;
  }

  .requirement-details {
    gap: 18px;
    padding: 18px;
  }

  .requirement-card-title span,
  .requirement-card-title strong,
  .result-column-title span {
    font-size: 16px !important;
    line-height: 1.35;
  }

  .requirement-details label,
  .requirement-info-block label,
  .guidance-card label {
    margin-bottom: 8px;
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: .035em;
  }

  .requirement-details :where(input, select, textarea),
  .requirement-copy p,
  .requirement-info-block p,
  .guidance-card p {
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
  }

  .requirement-details :where(input, select) {
    min-height: 50px;
    padding: 10px 12px;
  }

  .requirement-details textarea {
    min-height: 104px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
  }

  .result-column-title small,
  .confirmation-state small,
  .support-details p,
  .requirement-info-block small {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .applicability-actions,
  .status-actions {
    gap: 9px;
  }

  .applicability-actions button,
  .status-actions button,
  .confirm-requirement-button,
  .photo-button,
  .photo-main-button {
    min-height: 52px;
    padding: 10px 12px;
    font-size: 15px !important;
    line-height: 1.35 !important;
    white-space: normal;
  }

  .confirmation-state span {
    font-size: 14px !important;
    line-height: 1.4;
  }
}

@media screen and (max-width: 900px) {
  .requirement-details,
  .app-shell[data-mode="field"] .requirement-details {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .result-column {
    position: static;
    top: auto;
  }

  .applicability-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Яндекс Диск: кнопки и путь всегда занимают отдельные строки. */
@media screen and (max-width: 760px) {
  .yandex-disk-picker {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .yandex-disk-picker header {
    min-height: 112px;
    padding: 18px 20px;
  }

  .yandex-disk-picker header strong {
    font-size: 24px !important;
    line-height: 1.2;
  }

  .yandex-disk-picker header small {
    font-size: 16px !important;
    line-height: 1.35;
  }

  .yandex-disk-picker nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "parent refresh"
      "path path" !important;
    align-items: stretch;
    gap: 10px;
    min-height: 128px;
    padding: 14px 16px 16px;
  }

  .yandex-disk-picker nav [data-parent] {
    grid-area: parent !important;
  }

  .yandex-disk-picker nav [data-refresh] {
    grid-area: refresh !important;
  }

  .yandex-disk-picker nav [data-parent],
  .yandex-disk-picker nav [data-refresh] {
    position: static !important;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 10px 8px;
    font-size: 15px !important;
    line-height: 1.3;
    white-space: normal;
  }

  .yandex-disk-picker nav [data-path] {
    grid-area: path !important;
    position: static !important;
    display: block;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d7e1e6;
    border-radius: 10px;
    background: #fff;
    color: #405866;
    font-size: 14px !important;
    line-height: 1.4;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
  }

  .yandex-disk-message {
    padding: 12px 16px;
    font-size: 14px !important;
    line-height: 1.4;
  }

  .yandex-disk-item b {
    font-size: 16px !important;
    line-height: 1.35;
  }

  .yandex-disk-item small {
    font-size: 14px !important;
    line-height: 1.35;
  }

  .yandex-disk-picker footer,
  .yandex-disk-picker footer button {
    font-size: 16px !important;
    line-height: 1.35;
  }
}

/* Иерархия заголовков основных разделов и реестров. */
@media screen {
  .page-heading-objects h1,
  .page-heading-reports h1,
  .page-heading-in-progress h1 {
    font-size: clamp(38px, 3vw, 46px) !important;
    font-weight: 700 !important;
    line-height: 1.15;
  }

  .page-heading-checklist h1 {
    font-size: clamp(28px, 2.2vw, 34px) !important;
    font-weight: 700 !important;
    line-height: 1.2;
  }

  .registry-toolbar b {
    font-size: 20px !important;
    line-height: 1.3;
  }

  .registry-toolbar span,
  .registry-toolbar small {
    font-size: 13px !important;
    line-height: 1.4;
  }

  .object-status-windows button {
    min-height: 136px;
    gap: 6px 18px;
    padding: 24px;
  }

  .object-status-windows b {
    font-size: 40px !important;
    line-height: 1;
  }

  .object-status-windows span {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3;
  }

  .object-status-windows small {
    font-size: 14px !important;
    line-height: 1.4;
  }

  .inspection-registry h2 {
    margin: 0 0 18px;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3;
  }

  .report-selection-empty b {
    font-size: 22px !important;
    line-height: 1.3;
  }
}

/* Проверка объекта: компактная сводка требования без тяжёлого жирного текста. */
@media screen {
  .requirement-main b {
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
  }

  .requirement-main small {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }

  .requirement-code {
    box-sizing: border-box;
    width: auto !important;
    min-width: 104px !important;
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all;
  }

  .requirement-card-title span,
  .requirement-card-title strong,
  .result-column-title span {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3;
  }

  .requirement-details label,
  .requirement-info-block label,
  .guidance-card label {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }

  .requirement-details :where(input, select, textarea),
  .requirement-copy p,
  .requirement-info-block p,
  .guidance-card p {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
  }
}

@media screen and (min-width: 761px) {
  .requirement-summary,
  .app-shell[data-mode="field"] .requirement-summary {
    grid-template-columns: 108px minmax(320px, 1fr) minmax(122px, auto) minmax(142px, auto) 24px !important;
  }
}

@media screen and (min-width: 761px) and (max-width: 1180px) {
  .requirement-summary,
  .app-shell[data-mode="field"] .requirement-summary {
    grid-template-columns: 104px minmax(220px, 1fr) minmax(108px, auto) minmax(126px, auto) 22px !important;
  }
}

@media screen and (max-width: 760px) {
  .page-heading-objects h1,
  .page-heading-reports h1,
  .page-heading-in-progress h1 {
    font-size: 32px !important;
  }

  .page-heading-checklist h1 {
    font-size: 27px !important;
  }

  .object-status-windows button {
    min-height: 118px;
    padding: 18px;
  }

  .object-status-windows span {
    font-size: 18px !important;
  }

  .requirement-summary,
  .app-shell[data-mode="field"] .requirement-summary {
    grid-template-columns: 104px minmax(0, 1fr) 20px !important;
  }

  .requirement-main b {
    font-size: 14px !important;
  }
}

/* Реестр нарушений: единая типографика и точное выравнивание пяти колонок. */
@media screen {
  .violations-table > .table-head,
  .violations-table .violation-object-rows .violation-row {
    grid-template-columns: 110px minmax(340px, 1fr) 130px 150px 140px;
    column-gap: 16px;
  }

  .violations-table > .table-head {
    min-height: 58px;
    padding: 0 18px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  .violations-table > .table-head > span,
  .violations-table > .table-head > span + span {
    min-width: 0;
    min-height: 38px;
    padding: 9px 0;
    justify-content: flex-start;
    text-align: left;
  }

  .violations-table > .table-head > span + span {
    border-left: 0;
  }

  .violations-table .violation-object-rows .violation-row {
    min-height: 86px;
    padding: 14px 18px;
    align-items: start;
  }

  .violations-table .violation-object-rows .violation-row > * {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 !important;
    align-self: start;
    justify-self: start;
    color: #111;
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: left;
  }

  .violations-table .violation-object-rows .violation-row > strong,
  .violations-table .violation-object-rows .violation-row > em,
  .violations-table .violation-object-rows .violation-row > time,
  .violations-table .violation-object-rows .violation-row > i {
    display: flex;
    min-height: 38px;
    align-items: center;
  }

  .violations-table .violation-object-rows .violation-row > strong {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .violations-table .violation-description,
  .violations-table .violation-description b,
  .violations-table .violation-description small,
  .violations-table .violation-row > strong small {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }

  .violations-table .violation-description b {
    color: #111;
    font-size: 14px !important;
  }

  .violations-table .violation-description small,
  .violations-table .violation-row > strong small {
    color: var(--muted);
    font-size: 13px !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .violations-table .violation-object-rows .violation-row > em.risk-label,
  .violations-table .violation-object-rows .violation-row > i {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .violations-table .violation-object-heading,
  .violations-table .violation-object-heading :where(b, strong, small, em) {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  }
}

@media screen and (max-width: 1180px) {
  .violations-table > .table-head,
  .violations-table .violation-object-rows .violation-row {
    grid-template-columns: 90px minmax(260px, 1fr) 110px 125px 120px;
    column-gap: 12px;
  }
}

@media screen and (max-width: 980px) {
  .violations-table .violation-object-rows .violation-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  }
}

/* Единый ритм карточек проверки и защита от наложения меток. */
@media screen and (min-width: 761px) {
  .requirement-summary,
  .app-shell[data-mode="field"] .requirement-summary {
    grid-template-columns: 108px minmax(320px, 1fr) minmax(122px, auto) minmax(142px, auto) 24px !important;
    gap: 14px !important;
    min-height: 94px;
    padding: 14px 18px;
  }

  .requirement-summary .risk-label,
  .requirement-summary .status-pill {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }
}

@media screen and (min-width: 761px) and (max-width: 1180px) {
  .requirement-summary,
  .app-shell[data-mode="field"] .requirement-summary {
    grid-template-columns: 104px minmax(220px, 1fr) minmax(108px, auto) minmax(126px, auto) 22px !important;
    gap: 10px !important;
    padding: 12px 14px;
  }

  .requirement-summary .risk-label,
  .requirement-summary .status-pill {
    padding: 8px 9px;
    font-size: 13px !important;
  }
}

@media screen {
  .filter-bar {
    gap: 12px;
    padding: 14px;
  }

  .search-box,
  .search-box input,
  .filter-bar select {
    min-height: 48px;
    height: 48px;
  }

  .search-box input,
  .filter-bar select,
  .found-count {
    font-size: 14px !important;
  }

  .checklist-list {
    gap: 12px;
  }

  .section-divider {
    margin: 24px 0 10px;
  }

  .chapter-divider {
    margin: 14px 0 6px;
    padding: 10px 14px;
    font-size: 14px !important;
    line-height: 1.4;
  }

  .requirement-card {
    border-radius: 14px;
  }
}

@media screen and (max-width: 760px) {
  .requirement-summary,
  .app-shell[data-mode="field"] .requirement-summary {
    gap: 12px !important;
    padding: 14px !important;
  }

  .filter-bar {
    gap: 10px;
    padding: 12px;
  }
}
