/* 1.3.136-r152: полное отображение крайних фотографий ленты. */

/* r155: свободная карточка реконструкции / ремонта. */
.renovation-card-toggle{position:relative;z-index:12;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin:0 0 12px;padding:8px 14px;border:1px solid #4a86c5;border-radius:11px;background:#eef6ff;color:#13538f;font-weight:800;cursor:pointer}
.renovation-card-toggle.active{background:#1769aa;color:#fff;box-shadow:0 5px 16px rgba(23,105,170,.24)}
.renovation-control-card{margin-bottom:18px;padding:18px!important;border:2px solid #4a86c5!important;background:linear-gradient(180deg,#f8fbff,#edf6ff)!important}
.renovation-control-card>header{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.renovation-control-card>header>div{flex:1;min-width:0}.renovation-control-card h2,.renovation-control-card h3{margin:0;color:#134f83}.renovation-control-card p{margin:4px 0 0;color:#526b7e}
.renovation-control-icon{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border-radius:12px;background:#1769aa;color:#fff;font-size:25px}.renovation-completed-mark{padding:7px 10px;border-radius:999px;background:#dcecff;color:#13538f;font-size:12px}
.renovation-mode-toggle{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;padding:12px;border:1px solid #a8c9e8;border-radius:12px;background:#fff;color:#173d5d;font-weight:750}.renovation-mode-toggle input{width:20px;height:20px;flex:0 0 auto;accent-color:#1769aa}
.renovation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.renovation-fields .inspection-field.wide{grid-column:1/-1}.renovation-fields :is(input,select,textarea){background:#fff!important}
.renovation-slices,.renovation-photos{margin-top:16px;padding:14px;border:1px solid #b8d2e9;border-radius:13px;background:#fff}.renovation-slices>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.renovation-slices>header small{display:block;margin-top:3px;color:#657b8d}
.renovation-slices article{display:grid;grid-template-columns:auto 150px 140px minmax(240px,1fr) auto;align-items:start;gap:8px;padding:10px 0;border-top:1px solid #dce8f2}.renovation-slices article :is(input,textarea){width:100%;min-height:42px;padding:8px;border:1px solid #b9cad8;border-radius:9px;background:#fff}.renovation-slice-delete{min-height:40px;border:1px solid #d8a4a4;border-radius:9px;background:#fff5f5;color:#a32626;cursor:pointer}.renovation-empty-slices{padding:10px;border-radius:9px;background:#f3f7fa}
.renovation-photos .photo-picker{margin-top:10px}.renovation-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:12px}.renovation-photo-grid figure{position:relative;margin:0;padding:7px;border:1px solid #bfd2e1;border-radius:11px;background:#fff}.renovation-photo-grid img{display:block;width:100%;height:220px;object-fit:contain;border-radius:8px;background:#eaf1f6}.renovation-photo-grid figcaption{padding:6px 2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526b7e;font-size:12px}.renovation-photo-grid figure>button{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:#c32626;font-size:24px;box-shadow:0 2px 9px rgba(0,0,0,.2);cursor:pointer}
.renovation-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.renovation-convert{display:flex;align-items:stretch;gap:8px}.renovation-convert select{min-width:240px;padding:8px;border:1px solid #9ebbd3;border-radius:10px;background:#fff}.renovation-complete-button{border-color:#4a86c5!important;color:#13538f!important}
.inspection-registry-row.renovation-record{border-color:#76a9d8!important;background:#eef6ff!important;box-shadow:inset 5px 0 #1769aa}.inspection-result-dot.renovation{background:#2584d5!important;box-shadow:0 0 0 5px rgba(37,132,213,.15)!important}.inspection-registry-row.renovation-record>em{color:#13538f!important;font-weight:800}.registry-object-table tr.renovation-object-row>td{background:#eef6ff!important}.registry-object-table tr.renovation-object-row>td:first-child{box-shadow:inset 6px 0 #2584d5}
@media(max-width:760px){.renovation-control-card{padding:12px!important}.renovation-control-card>header{align-items:flex-start;flex-wrap:wrap}.renovation-fields{grid-template-columns:1fr}.renovation-fields .inspection-field.wide{grid-column:1}.renovation-slices article{grid-template-columns:1fr 1fr}.renovation-slices article strong,.renovation-slices article textarea{grid-column:1/-1}.renovation-actions,.renovation-convert{display:grid;grid-template-columns:1fr;width:100%}.renovation-convert select{min-width:0;width:100%}.renovation-photo-grid{grid-template-columns:1fr}.renovation-photo-grid img{height:min(55vh,420px)}}

/* r157: карточка работы с жалобой и отдельный фиолетовый статус объекта. */
.complaint-card-toggle{position:relative;z-index:12;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin:0 0 12px 8px;padding:8px 14px;border:1px solid #8656bd;border-radius:11px;background:#f6f0ff;color:#62339a;font-weight:800;cursor:pointer}.complaint-card-toggle.active{background:#7543ae;color:#fff;box-shadow:0 5px 16px rgba(117,67,174,.25)}
.complaint-control-card{margin-bottom:18px;padding:18px!important;border:2px solid #8656bd!important;background:linear-gradient(180deg,#fcfaff,#f5efff)!important}.complaint-control-card>header{display:flex;align-items:center;gap:12px;margin-bottom:14px}.complaint-control-card>header>div{flex:1;min-width:0}.complaint-control-card h2,.complaint-control-card h3{margin:0;color:#5f3291}.complaint-control-card p{margin:4px 0 0;color:#665b72}.complaint-control-icon{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border-radius:12px;background:#7543ae;color:#fff;font-size:27px;font-weight:900}.complaint-status-mark{padding:7px 10px;border-radius:999px;background:#eadcff;color:#5f3291;font-size:12px}
.complaint-mode-toggle{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;padding:12px;border:1px solid #c8afe2;border-radius:12px;background:#fff;color:#4e316d;font-weight:750}.complaint-mode-toggle input{width:20px;height:20px;flex:0 0 auto;accent-color:#7543ae}.complaint-fields,.complaint-response-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.complaint-fields .inspection-field.wide,.complaint-response-grid .inspection-field.wide{grid-column:1/-1}.complaint-fields :is(input,select,textarea),.complaint-response-grid :is(input,select,textarea){background:#fff!important}
.complaint-actions-log,.complaint-photos,.complaint-response{margin-top:16px;padding:14px;border:1px solid #cfbce3;border-radius:13px;background:#fff}.complaint-actions-log>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.complaint-actions-log>header small{display:block;margin-top:3px;color:#74667f}.complaint-actions-log article{display:grid;grid-template-columns:minmax(150px,.7fr) 150px minmax(260px,2fr) minmax(150px,.8fr) auto;align-items:start;gap:8px;padding:10px 0;border-top:1px solid #e7dcef}.complaint-actions-log article :is(input,textarea){width:100%;min-height:42px;padding:8px;border:1px solid #cbbbd8;border-radius:9px;background:#fff}.complaint-actions-log article>small{padding:9px 4px;color:#75677f}.complaint-action-delete{min-height:40px;border:1px solid #d8a4a4;border-radius:9px;background:#fff5f5;color:#a32626;cursor:pointer}.complaint-empty-actions{padding:10px;border-radius:9px;background:#f8f4fb}
.complaint-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:12px}.complaint-photo-grid figure{position:relative;margin:0;padding:7px;border:1px solid #d0c0dc;border-radius:11px;background:#fff}.complaint-photo-grid img{display:block;width:100%;height:220px;object-fit:contain;border-radius:8px;background:#f1edf4}.complaint-photo-grid figcaption{padding:6px 2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6c6075;font-size:12px}.complaint-photo-grid figure>button{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:#c32626;font-size:24px;box-shadow:0 2px 9px rgba(0,0,0,.2);cursor:pointer}
.inspection-registry-row.complaint-record{border-color:#a47acb!important;background:#f6f0ff!important;box-shadow:inset 5px 0 #7543ae!important}.inspection-result-dot.complaint{background:#8c52c5!important;box-shadow:0 0 0 5px rgba(140,82,197,.15)!important}.inspection-registry-row.complaint-record>em{color:#633596!important;font-weight:800}.registry-object-table tr.complaint-object-row>td{background:#f6f0ff!important}.registry-object-table tr.complaint-object-row>td:first-child{box-shadow:inset 6px 0 #8c52c5!important}
@media(max-width:760px){.complaint-card-toggle{margin-left:0}.complaint-control-card{padding:12px!important}.complaint-control-card>header{align-items:flex-start;flex-wrap:wrap}.complaint-fields,.complaint-response-grid{grid-template-columns:1fr}.complaint-fields .inspection-field.wide,.complaint-response-grid .inspection-field.wide{grid-column:1}.complaint-actions-log article{grid-template-columns:1fr 1fr}.complaint-actions-log article textarea,.complaint-actions-log article>small{grid-column:1/-1}.complaint-photo-grid{grid-template-columns:1fr}.complaint-photo-grid img{height:min(55vh,420px)}}

/* Статусные цвета используются только в светлой пастельной гамме. */
.renovation-card-toggle.active{border-color:#7daed8;background:#dceefa;color:#174f80;box-shadow:0 4px 12px rgba(55,119,171,.14)}
.renovation-control-icon{border:1px solid #9fc5e5;background:#dceefa;color:#174f80}
.complaint-card-toggle.active{border-color:#ae8dce;background:#eee3f8;color:#5d3387;box-shadow:0 4px 12px rgba(117,67,174,.13)}
.complaint-control-icon{border:1px solid #c2a7dc;background:#eee3f8;color:#5d3387}

/* r159: единая хронология обычных проверок, ремонта и жалоб. */
.report-inspection-brand .report-stages{min-width:min(390px,44vw);max-width:470px;gap:2px;border-left-color:#b9c6ce}
.report-inspection-brand .report-stage-line{display:block;margin:0;padding:0;color:#4f6471;font-size:8px;line-height:1.3;text-align:left;white-space:nowrap}
.report-inspection-brand .report-stage-line>strong{color:#263c49;font-size:8px}
.report-inspection-brand .report-stage-line.stage-renovation{color:#4e86aa}.report-inspection-brand .report-stage-line.stage-renovation>strong{color:#285b7d}
.report-inspection-brand .report-stage-line.stage-complaint{color:#8b68a5}.report-inspection-brand .report-stage-line.stage-complaint>strong{color:#5d3877}
.report-inspection-brand{align-items:flex-start}.report-inspection-brand .report-stages{align-self:flex-start;margin-top:0;padding-top:0;text-align:left}.report-inspection-brand .report-stage-line{display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left}.report-stage-actions{display:inline-flex;flex:none;gap:3px}.report-stage-actions button{display:inline-grid;width:20px;height:20px;min-height:0;padding:0;place-items:center;border:1px solid #c7d5cd;border-radius:5px;background:#fff;color:#35604a;font-size:12px;line-height:1;cursor:pointer}.report-stage-actions button:last-child{color:#a63b34}
@media(max-width:760px){.report-inspection-brand .report-stages{width:100%;min-width:0;max-width:none;margin:10px 0 0;padding:8px 0 0;border-top:1px solid #d6e0e5;border-left:0}.report-inspection-brand .report-stage-line{font-size:11px}.report-inspection-brand .report-stage-line>strong{font-size:12px}}
@media print{.workspace>.topbar,.content-wrap>.report-object-search,.content-wrap>.inspection-registry.compact,.content-wrap>.report-selection-empty,.report-actions{display:none!important}.report-sheet{padding:8mm!important}.report-inspection-brand{align-items:flex-start!important;padding-bottom:3mm!important}.report-inspection-brand .report-stages{width:82mm!important;min-width:82mm!important;max-width:82mm!important;margin-left:auto!important;gap:.6mm!important}.report-inspection-brand .report-stage-line{padding:0!important;border:0!important;background:transparent!important;font-size:6.5pt!important;line-height:1.2!important;white-space:nowrap!important;break-inside:avoid;color:#4f6471!important}.report-inspection-brand .report-stage-line>strong{font-size:6.5pt!important}.report-inspection-brand .report-stage-line.stage-renovation{color:#4e86aa!important}.report-inspection-brand .report-stage-line.stage-complaint{color:#8b68a5!important}.report-sheet>h2{margin-top:4mm!important}.report-subtitle{margin:3mm 0 1mm!important;break-after:avoid-page}.report-object-card{break-inside:avoid-page}.report-object-card div{padding:1.2mm 0!important}.report-object-card dt{font-size:6.5pt!important}.report-object-card dd{margin-top:.5mm!important;font-size:7.5pt!important}}
.mode-switch{display:none!important}
.icon-maintenance{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2M5 5l2 2M19 5l-2 2'/%3E%3C/svg%3E")}
.topbar,.top-actions,.breadcrumbs,.content-wrap,.page-heading,.panel,.inspection-registry-row{min-width:0}
.topbar :is(button,strong,small,span,p),.page-heading :is(h1,p),.kpi-card :is(b,p){overflow-wrap:anywhere}

.current-account-badge{display:flex;flex-direction:column;justify-content:center;min-width:0;max-width:250px;padding:8px 12px;border:1px solid #cfe0d6;border-radius:12px;background:#f5faf7;color:#164e35;line-height:1.2}
.current-account-badge strong,.current-account-badge small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.current-account-badge strong{font-size:13px}.current-account-badge small{margin-top:3px;color:#64746d;font-size:11px}

.report-object-search{display:grid;grid-template-columns:minmax(170px,.75fr) minmax(280px,2fr) auto;align-items:center;gap:12px;margin-bottom:16px;padding:16px 20px}
.report-object-search label{font-weight:800;color:#185b3d}
.report-object-search input{width:100%;min-width:0;height:48px;padding:0 16px;border:1px solid #cbdcd2;border-radius:12px;background:#fff;font:inherit;color:#17231e}
.report-object-search input:focus{outline:3px solid rgba(31,132,82,.16);border-color:#1f8452}
.report-object-search small{white-space:nowrap;color:#6a7771}
.maintenance-global-banner{position:fixed;z-index:850;left:350px;right:22px;bottom:18px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 18px;padding:13px 18px;border:1px solid #d5a531;border-radius:14px;background:#fff8df;box-shadow:0 10px 30px rgba(34,54,44,.18);color:#3f3519}
.maintenance-global-banner.active{border-color:#bd493d;background:#fff0ed;color:#732920}
.maintenance-global-banner b{font-size:15px}.maintenance-global-banner span{min-width:0;overflow-wrap:anywhere}.maintenance-global-banner time{font-weight:700;white-space:nowrap}.maintenance-global-banner em{grid-column:1/-1;font-style:normal;font-size:12px}
.maintenance-global-banner .maintenance-countdown{font-size:15px;font-weight:900;color:#a52e24}
.maintenance-lock-overlay{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:22px;background:rgba(7,34,24,.88);backdrop-filter:blur(7px)}
.maintenance-lock-overlay section{display:grid;gap:16px;width:min(560px,100%);padding:30px;border-radius:20px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.35);text-align:center}
.maintenance-lock-overlay h2,.maintenance-lock-overlay p{margin:0}.maintenance-lock-overlay strong{color:#7b322b}.maintenance-lock-overlay button{justify-self:center;min-width:180px}
.maintenance-admin-panel{display:grid;gap:16px;margin-bottom:18px;padding:22px}
.maintenance-admin-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.maintenance-admin-panel h3,.maintenance-admin-panel p{margin:0}.maintenance-admin-panel header p{margin-top:6px;color:#66766f}
.maintenance-state{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#fff4cf;color:#7a5b00}.maintenance-state.active{background:#ffe3df;color:#a23227}
.maintenance-enabled{display:flex;align-items:center;gap:10px;font-weight:700}.maintenance-enabled input{width:20px;height:20px}
.maintenance-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.maintenance-time-grid label,.maintenance-message-field{display:grid;gap:6px}.maintenance-time-grid span,.maintenance-message-field span{font-weight:700;color:#285b43}
.maintenance-time-grid input,.maintenance-message-field textarea{width:100%;min-width:0;padding:11px 13px;border:1px solid #cbdcd2;border-radius:11px;background:#fff;font:inherit}.maintenance-message-field textarea{resize:vertical}
.maintenance-admin-panel>.primary-button{justify-self:start}.maintenance-admin-notice{margin:0;color:#17663e;font-weight:700}
.login-maintenance-notice{display:grid;gap:5px;padding:11px 13px;border:1px solid #d5a531;border-radius:11px;background:#fff8df;color:#514316}.login-maintenance-notice.active{border-color:#bd493d;background:#fff0ed;color:#742a22}.login-maintenance-notice span,.login-maintenance-notice small,.login-maintenance-notice em{overflow-wrap:anywhere}.login-maintenance-notice em{font-style:normal;font-weight:700}
.current-check-object-details{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px 14px;margin-top:8px;color:#17231e}
.current-check-object-details strong{font-size:18px;color:#14683f;white-space:normal}
.current-check-object-details span{font-size:16px;color:#65736d;min-width:0;overflow-wrap:anywhere}

@media (max-width:1180px){
  .maintenance-global-banner{left:20px;right:20px;bottom:88px;grid-template-columns:1fr auto}
  .topbar:has(.breadcrumbs){height:auto!important;min-height:76px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:10px!important;padding-top:10px!important;padding-bottom:10px!important}
  .topbar .breadcrumbs{width:100%!important;max-width:none!important}
  .topbar .top-actions{width:100%!important;max-width:none!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important}
  .topbar .top-actions>*{min-width:0!important}
  .current-account-badge{margin-right:auto}
}

/* r169: единая адаптивная панель обрезки и разметки фотографии. */
.yandex-photo-annotation-tools{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;
  padding:8px;border:1px solid #d7e3dc;border-radius:12px;background:#f6faf7
}
.yandex-photo-annotation-tools button.active{background:#167b49!important;color:#fff!important;border-color:#167b49!important}
.yandex-photo-annotation-tools label{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;margin:0!important;font-weight:700}
.yandex-photo-annotation-tools input[type=color]{width:44px;height:36px;padding:2px;border:1px solid #b8cfc1;border-radius:8px;background:#fff}
.yandex-photo-annotation-tools select{min-width:112px;height:38px;padding:0 28px 0 10px;border:1px solid #b8cfc1;border-radius:8px;background:#fff}
@media(max-width:700px){
  .yandex-photo-annotation-tools{gap:6px;padding:6px}
  .yandex-photo-annotation-tools button{min-height:38px;padding:7px 9px;font-size:13px}
  .yandex-photo-annotation-tools label{font-size:12px}
  .yandex-photo-annotation-tools select{min-width:96px;font-size:12px}
}

/* r162: компактный первый лист отчёта; штатные колонтитулы браузера сохраняются. */
@media print{
  body .topbar,
  body .side-panel,
  body .bottom-nav,
  body .page-heading,
  body .report-object-search,
  body .inspection-registry.compact,
  body .report-selection-empty,
  body .report-actions{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
  body .report-stage-actions{
    display:none!important;
  }
  body .report-inspection-brand,
  body .report-inspection-brand .report-stages{
    align-items:flex-start!important;
    align-self:flex-start!important;
    margin-top:0!important;
    padding-top:0!important;
    text-align:left!important;
  }
  body .workspace,
  body .content-wrap{
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }
  body .report-sheet{
    padding:0!important;
  }
  body .report-object-card>div{
    min-height:0!important;
    padding:1mm 0!important;
  }
  body .report-object-card dt{
    font-size:6.3pt!important;
    line-height:1.1!important;
  }
  body .report-object-card dd{
    margin-top:.35mm!important;
    font-size:7.2pt!important;
    line-height:1.15!important;
  }
  body .report-score{
    min-height:0!important;
    gap:3mm!important;
    margin:3mm 0 2mm!important;
    padding:2mm 3mm!important;
    border-radius:2mm!important;
    break-inside:avoid-page!important;
  }
  body .score-ring{
    width:14mm!important;
    height:14mm!important;
  }
  body .score-ring:before{
    width:10.5mm!important;
    height:10.5mm!important;
  }
  body .score-ring span{
    font-size:10pt!important;
  }
  body .report-score>div:last-child span{
    font-size:6pt!important;
    line-height:1!important;
  }
  body .report-score h3{
    margin:.7mm 0!important;
    font-size:8.5pt!important;
    line-height:1.1!important;
  }
  body .report-score p{
    font-size:7pt!important;
    line-height:1.1!important;
  }
  body .report-metrics{
    gap:2mm!important;
    break-inside:avoid-page!important;
  }
  body .report-metrics span{
    box-sizing:border-box!important;
    min-height:0!important;
    height:11mm!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:1.5mm!important;
    padding:1.2mm 2mm!important;
    border-radius:1.5mm!important;
    font-size:6.5pt!important;
    line-height:1.1!important;
  }
  body .report-metrics b{
    flex:none!important;
    font-size:10pt!important;
    line-height:1!important;
  }
}

/* r166: первый лист начинается сверху; метки риска имеют единую высоту. */
.risk-label,
.report-violation-list header .risk-label,
.bulk-report-row header .risk-label{
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-self:flex-start!important;
  align-items:center!important;
  justify-content:center!important;
  width:max-content!important;
  min-width:0!important;
  max-width:max-content!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  padding:0 10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
}
@media print{
  body:has(.report-sheet) .content-wrap>:not(.report-layout){display:none!important}
  body:has(.report-sheet) .report-layout{
    margin-top:-30mm!important;
  }
  body .report-score{
    break-before:avoid-page!important;
    page-break-before:avoid!important;
  }
  body .report-score+.report-metrics{
    break-before:avoid-page!important;
    page-break-before:avoid!important;
  }
  body .risk-label,
  body .report-violation-list header .risk-label,
  body .bulk-report-row header .risk-label{
    height:8mm!important;
    min-height:8mm!important;
    max-height:8mm!important;
    padding:0 2.5mm!important;
    font-size:9pt!important;
  }
}

/* r151: фотографии не сжимаются и не уходят под соседний блок. */
.requirement-details .photo-column{min-width:0!important;max-width:100%!important;overflow:hidden!important}
.requirement-details .photo-grid{box-sizing:border-box!important;display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(300px,calc((100% - 10px)/2))!important;gap:10px!important;width:100%!important;max-width:100%!important;margin-top:8px!important;padding:0 0 14px!important;overflow-x:scroll!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:0;scrollbar-gutter:auto;scrollbar-color:#258454 #e1eee7;scrollbar-width:auto;-webkit-overflow-scrolling:touch}
.requirement-details .photo-grid:focus-visible{outline:3px solid rgba(37,132,84,.24);outline-offset:3px;border-radius:8px}
.requirement-details .photo-grid figure{min-width:0!important;width:100%!important;scroll-snap-align:start;scroll-snap-stop:normal}
.requirement-details .photo-grid figure:first-child{scroll-snap-align:start}
.requirement-details .photo-grid figure:last-child{scroll-snap-align:end}
.requirement-details .photo-grid::-webkit-scrollbar{height:12px}
.requirement-details .photo-grid::-webkit-scrollbar-track{border:1px solid #cfe0d6;border-radius:999px;background:#eaf3ee}
.requirement-details .photo-grid::-webkit-scrollbar-thumb{min-width:54px;border:2px solid #eaf3ee;border-radius:999px;background:#258454}
.requirement-details .photo-grid::-webkit-scrollbar-thumb:hover{background:#176b40}
@media (max-width:760px){
  .requirement-details .photo-grid{grid-auto-columns:minmax(260px,84%)!important;gap:8px!important;padding-bottom:12px!important}
  .requirement-details .photo-grid::-webkit-scrollbar{height:10px}
}
@media (min-width:761px){
  .requirement-details .photo-column{grid-column:1!important}
}

/* r150: единая компактная строка применимости и результата. */
.result-column .applicability-actions,.result-column .status-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-bottom:10px!important}
.result-column .applicability-actions button,.result-column .status-actions button{width:100%!important;min-width:0!important;min-height:34px!important;height:auto!important;padding:5px 7px!important;font-size:9px!important;line-height:1.15!important;gap:4px!important;white-space:normal!important}
.result-column .status-actions i{flex:0 0 auto;width:9px;height:9px}
.applicability-reason-disclosure{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px 9px;margin:2px 0 12px;padding:8px 10px;border:1px solid #d6e4dc;border-radius:9px;background:#f7faf8}
.applicability-reason-disclosure>input{width:17px;height:17px;margin:0;accent-color:#18824f;cursor:pointer}
.applicability-reason-disclosure>label{margin:0!important;color:#285b43;font-size:10px;font-weight:700;cursor:pointer}
.applicability-reason-field{grid-column:1/-1;display:grid;gap:5px}
.applicability-reason-disclosure>input:not(:checked)~.applicability-reason-field{display:none}
.applicability-reason-field textarea{width:100%;min-height:70px}

@media (max-width:760px){
  .maintenance-global-banner{left:10px;right:10px;bottom:78px;grid-template-columns:1fr;padding:11px 13px;gap:5px}.maintenance-global-banner time{white-space:normal}
  .maintenance-admin-panel header{display:grid}.maintenance-time-grid{grid-template-columns:1fr}.maintenance-admin-panel>.primary-button{width:100%}
  .topbar,.topbar:has(.breadcrumbs){position:relative!important;height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;gap:8px 10px!important;padding:10px 14px!important;overflow:visible!important}
  .topbar .mobile-brand{grid-column:1;display:flex!important;min-width:0;max-width:100%;overflow:hidden}
  .topbar .mobile-brand .brand-wordmark{max-width:min(180px,55vw);height:auto}
  .topbar .breadcrumbs{display:none!important}
  .topbar .top-actions{grid-column:1/-1;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;align-items:stretch!important;gap:8px!important}
  .topbar #requirement-edition-control{grid-column:1/-1;width:100%!important;max-width:none!important}
  .topbar #requirement-edition-control .edition-chip{width:100%!important;max-width:none!important;min-height:44px!important;white-space:normal!important;text-align:center!important}
  .topbar .save-indicator{grid-column:1/-1;display:flex!important;width:100%;justify-content:center;white-space:normal!important}
  .topbar .edit-inspection-card-button{grid-column:1/-1;width:100%!important;max-width:none!important;height:auto!important;min-height:44px!important;padding:9px 12px!important;white-space:normal!important}
  .current-account-badge{grid-column:1;margin:0;max-width:none;width:100%;padding:7px 10px}
  .topbar .sign-out-shortcut{grid-column:2;width:48px!important;height:48px!important;margin:0!important}
  .page-heading h1{font-size:clamp(34px,11vw,54px)!important;line-height:1.05!important}
  .page-heading p{font-size:clamp(16px,5vw,23px)!important;line-height:1.3!important}
  .current-check-object-details{grid-template-columns:1fr;gap:4px;margin:10px 0 4px;padding:11px 13px;border-left:4px solid #18824f;border-radius:0 10px 10px 0;background:#f4faf6}
  .current-check-object-details strong{font-size:17px;line-height:1.25}
  .current-check-object-details span{font-size:15px;line-height:1.35}
  .kpi-grid{grid-template-columns:1fr!important}
  .kpi-card{min-width:0!important;padding:20px!important}
  .inspection-registry-row{grid-template-columns:12px minmax(70px,.55fr) minmax(0,1.45fr)!important;gap:8px!important}
  .inspection-registry-row>*{min-width:0;white-space:normal!important}
  .report-object-search{grid-template-columns:1fr;gap:8px;padding:14px}
  .report-object-search input{font-size:16px}
  .report-object-search small{white-space:normal}
  .mobile-object-sticky-spacer,.mobile-filter-sticky-spacer{height:0;min-height:0;pointer-events:none}
  html.mobile-checklist-compact .page-heading-checklist>div>span:last-child{display:none!important}
  html.mobile-checklist-compact .current-check-object-details{position:fixed!important;z-index:1460;top:0;left:0;right:0;width:auto!important;margin:0!important;padding:7px 12px!important;border-left:4px solid #18824f;border-radius:0!important;background:#f4faf6!important;box-shadow:0 2px 9px rgba(21,70,47,.16)}
  html.mobile-checklist-compact .current-check-object-details strong{font-size:14px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
  html.mobile-checklist-compact .current-check-object-details span{font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
  html.mobile-checklist-compact .filter-bar{position:fixed!important;z-index:1450!important;top:var(--mobile-object-strip-height,48px)!important;left:0!important;right:0!important;display:flex!important;align-items:center!important;gap:6px!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:6px 8px!important;border-radius:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:thin;background:#fff!important;box-shadow:0 3px 10px rgba(21,70,47,.16)}
  html.mobile-checklist-compact .filter-bar>*{flex:0 0 auto!important;grid-column:auto!important;grid-row:auto!important;min-width:0!important;width:auto!important;height:38px!important;min-height:38px!important;margin:0!important;padding-top:0!important;padding-bottom:0!important;white-space:nowrap!important}
  html.mobile-checklist-compact .filter-bar .search-box{width:min(58vw,250px)!important}
  html.mobile-checklist-compact .filter-bar .search-box input{height:38px!important;min-height:38px!important;font-size:14px!important}
  html.mobile-checklist-compact .filter-bar select{width:142px!important;padding:0 28px 0 10px!important;font-size:13px!important}
  html.mobile-checklist-compact .filter-bar .remark-history-filter{width:205px!important}
  html.mobile-checklist-compact .filter-bar .found-count{display:flex!important;align-items:center!important;width:auto!important;padding:0 8px!important;font-size:12px!important}
  html.mobile-checklist-compact .filter-bar .finish-inspection-button{display:none!important}
  .mobile-section-sticky-sentinel,.mobile-section-sticky-spacer{display:block;width:100%;height:0;min-height:0;pointer-events:none}
  .is-mobile-compact-sticky{position:fixed!important;z-index:1440!important;top:0!important;left:0!important;right:0!important;width:auto!important;max-width:none!important;margin:0!important;border-radius:0!important;background:#fff!important;box-shadow:0 3px 10px rgba(21,70,47,.18)!important}
  .objects-sticky-tools.is-mobile-compact-sticky{display:block!important;padding:6px 8px!important}
  .objects-sticky-tools.is-mobile-compact-sticky .registry-toolbar,.objects-sticky-tools.is-mobile-compact-sticky .object-column-filters{display:none!important}
  .objects-sticky-tools.is-mobile-compact-sticky .object-search{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;width:100%!important;padding:0!important;border:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:thin;box-shadow:none!important}
  .objects-sticky-tools.is-mobile-compact-sticky .object-search>*{flex:0 0 auto!important;grid-column:auto!important;width:auto!important;height:38px!important;min-height:38px!important;margin:0!important;white-space:nowrap!important}
  .objects-sticky-tools.is-mobile-compact-sticky .object-number-search{width:min(55vw,240px)!important}
  .objects-sticky-tools.is-mobile-compact-sticky .object-number-search input{height:38px!important;min-height:38px!important;font-size:14px!important}
  .objects-sticky-tools.is-mobile-compact-sticky .object-any-search{width:210px!important;font-size:13px!important}
  .objects-sticky-tools.is-mobile-compact-sticky select{width:145px!important;font-size:13px!important}
  .objects-sticky-tools.is-mobile-compact-sticky .filter-toggle{width:132px!important;padding:0 10px!important;font-size:12px!important}
  .objects-sticky-tools.is-mobile-compact-sticky em{display:flex!important;align-items:center!important;padding:0 6px;font-size:12px!important}
  .objects-sticky-tools.is-mobile-compact-sticky .clear-object-filters{padding:0 8px!important}
  :is(.report-object-search,.registry-admin-search,.access-log-filters,.report-builder-controls).is-mobile-compact-sticky{display:flex!important;align-items:center!important;gap:6px!important;height:auto!important;min-height:0!important;padding:6px 8px!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:thin}
  :is(.report-object-search,.registry-admin-search,.access-log-filters,.report-builder-controls).is-mobile-compact-sticky>*{flex:0 0 auto!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:140px!important;height:38px!important;min-height:38px!important;margin:0!important;white-space:nowrap!important}
  .report-object-search.is-mobile-compact-sticky input{width:min(62vw,270px)!important;height:38px!important;min-height:38px!important;font-size:14px!important}
  .report-object-search.is-mobile-compact-sticky label{display:flex!important;align-items:center!important;min-width:auto!important}
  .report-object-search.is-mobile-compact-sticky small{display:flex!important;align-items:center!important;min-width:auto!important;padding:0 6px;font-size:12px!important}
}

@media (max-width:520px){
  .content-wrap{padding-left:12px!important;padding-right:12px!important}
  .panel{border-radius:18px!important}
  .inspection-registry-row{display:grid!important;grid-template-columns:10px minmax(0,1fr)!important}
  .inspection-registry-row>*:not(.inspection-result-dot){grid-column:2!important}
  .inspection-registry-row .inspection-result-dot{grid-column:1;grid-row:1/6}
}

@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
  .side-panel{display:none!important}
  .workspace{margin-left:0!important;width:100%!important;max-width:none!important}
  .bottom-nav{display:grid!important}
  .topbar,.topbar:has(.breadcrumbs){position:relative!important;inset:auto!important;z-index:20!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:6px 12px!important;gap:6px!important;box-shadow:0 1px 0 #dce8e1!important}
  .topbar .mobile-brand,.topbar .breadcrumbs,.topbar #requirement-edition-control,.topbar .save-indicator{display:none!important}
  .topbar .top-actions{grid-column:1!important;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,220px) 48px!important;align-items:stretch!important;gap:8px!important}
  .current-account-badge{grid-column:1!important;grid-row:1!important;max-width:none!important;min-height:46px;padding:6px 10px}
  .topbar .edit-inspection-card-button{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;min-height:46px!important;padding:6px 10px!important}
  .topbar .sign-out-shortcut{grid-column:3!important;grid-row:1!important;align-self:center;width:46px!important;height:46px!important}
  .content-wrap{padding-top:14px!important;padding-bottom:84px!important}
  .page-heading{margin-top:0!important;padding-top:0!important}
  .filter-bar{position:relative!important;inset:auto!important;z-index:10!important;display:grid!important;grid-template-columns:minmax(220px,1.4fr) minmax(170px,1fr) minmax(170px,1fr)!important;gap:8px!important;height:auto!important;min-height:0!important;padding:10px!important;overflow:visible!important}
  .filter-bar>*{min-width:0!important;width:100%!important;max-width:none!important;white-space:normal!important}
  .filter-bar .primary-button{grid-column:1/-1!important;min-height:46px!important;writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:normal!important}
  .filter-bar :is(input,select,button){min-height:46px!important}
  .app-shell:has(.topbar .breadcrumbs) .filter-bar{top:auto!important}
}

@media (orientation:landscape) and (max-height:430px) and (pointer:coarse){
  .current-account-badge small{display:none}
  .topbar .top-actions{grid-template-columns:minmax(0,1fr) minmax(140px,190px) 44px!important}
  .topbar .sign-out-shortcut{width:44px!important;height:44px!important}
  .filter-bar{grid-template-columns:minmax(190px,1.3fr) repeat(2,minmax(145px,1fr))!important}
}

/* r149: панель «Объекты» всегда компактна и закрепляется в своём scroll-контейнере. */
@media (max-width:760px){
  .objects-sticky-tools,.objects-sticky-tools.is-mobile-compact-sticky{position:sticky!important;inset:auto!important;top:0!important;left:auto!important;right:auto!important;z-index:1460!important;display:block!important;width:100%!important;max-width:none!important;height:50px!important;min-height:50px!important;margin:0 0 10px!important;padding:6px 8px!important;border-radius:0!important;background:var(--soft,#f2f7f4)!important;box-shadow:0 3px 10px rgba(21,70,47,.18)!important;overflow:visible!important;transform:none!important}
  .objects-sticky-tools .registry-toolbar{display:none!important}
  .objects-sticky-tools .object-search{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;width:100%!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:thin;background:transparent!important;box-shadow:none!important}
  .objects-sticky-tools .object-search>*{flex:0 0 auto!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;height:38px!important;min-height:38px!important;margin:0!important;white-space:nowrap!important}
  .objects-sticky-tools .object-number-search{width:min(55vw,240px)!important}
  .objects-sticky-tools .object-number-search input{height:38px!important;min-height:38px!important;font-size:14px!important}
  .objects-sticky-tools .object-any-search{width:210px!important;padding:0 10px!important;font-size:13px!important}
  .objects-sticky-tools .object-search select{width:145px!important;padding:0 28px 0 10px!important;font-size:13px!important}
  .objects-sticky-tools .filter-toggle{width:132px!important;padding:0 10px!important;font-size:12px!important}
  .objects-sticky-tools .object-search em{display:flex!important;align-items:center!important;width:auto!important;padding:0 6px!important;font-size:12px!important}
  .objects-sticky-tools .clear-object-filters{width:auto!important;padding:0 8px!important}
  .objects-sticky-tools .object-column-filters{position:absolute!important;z-index:1470!important;top:50px!important;left:8px!important;right:8px!important;display:block!important;width:auto!important;max-height:min(60vh,440px)!important;margin:0!important;padding:12px!important;border:1px solid #cfe0d6!important;border-radius:12px!important;overflow:auto!important;background:#fff!important;box-shadow:0 12px 32px rgba(13,55,36,.28)!important}
  .objects-sticky-tools .object-column-filter-grid{grid-template-columns:1fr!important;max-height:none!important;overflow:visible!important}
  .objects-sticky-tools.is-mobile-compact-sticky+.mobile-section-sticky-spacer,.objects-sticky-tools+.mobile-section-sticky-spacer{display:none!important;height:0!important}
}

/* r162 final print cascade: must remain the last rule in this file. */
@media print{
  body .topbar,body .side-panel,body .bottom-nav,body .page-heading,body .report-object-search,body .inspection-registry.compact,body .report-selection-empty,body .report-actions{display:none!important;visibility:hidden!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
  body .report-stage-actions{display:none!important}
  body .workspace,body .content-wrap{min-height:0!important;margin:0!important;padding:0!important}
  body .report-sheet{padding:0!important}
  body .report-inspection-brand,body .report-inspection-brand .report-stages{align-items:flex-start!important;align-self:flex-start!important;margin-top:0!important;padding-top:0!important;text-align:left!important}
  body .report-object-card>div{min-height:0!important;padding:1mm 0!important}
  body .report-object-card dt{font-size:6.3pt!important;line-height:1.1!important}
  body .report-object-card dd{margin-top:.35mm!important;font-size:7.2pt!important;line-height:1.15!important}
  body .report-score{min-height:0!important;gap:3mm!important;margin:3mm 0 2mm!important;padding:2mm 3mm!important;border-radius:2mm!important;break-inside:avoid-page!important}
  body .score-ring{width:14mm!important;height:14mm!important}
  body .score-ring:before{width:10.5mm!important;height:10.5mm!important}
  body .score-ring span{font-size:10pt!important}
  body .report-score>div:last-child span{font-size:6pt!important;line-height:1!important}
  body .report-score h3{margin:.7mm 0!important;font-size:8.5pt!important;line-height:1.1!important}
  body .report-score p{font-size:7pt!important;line-height:1.1!important}
  body .report-metrics{gap:2mm!important;break-inside:avoid-page!important}
  body .report-metrics span{box-sizing:border-box!important;min-height:0!important;height:11mm!important;flex-direction:row!important;align-items:center!important;gap:1.5mm!important;padding:1.2mm 2mm!important;border-radius:1.5mm!important;font-size:6.5pt!important;line-height:1.1!important}
  body .report-metrics b{flex:none!important;font-size:10pt!important;line-height:1!important}
}

/* r163: первый лист возвращён к утверждённой компоновке и типографике. */
@media print{
  body .report-object-card>div{min-height:14mm!important;padding:2mm 0!important}
  body .report-object-card dt{font-size:9.5pt!important;font-weight:800!important;line-height:1.25!important}
  body .report-object-card dd{margin-top:.8mm!important;font-size:10pt!important;line-height:1.3!important}
  body .report-score{min-height:0!important;gap:18px!important;margin:6mm 0!important;padding:4.5mm!important;border-radius:3.5mm!important;break-inside:avoid-page!important}
  body .score-ring{width:82px!important;height:82px!important}
  body .score-ring:before{width:64px!important;height:64px!important}
  body .score-ring span{font-size:18px!important}
  body .report-score>div:last-child span{font-size:9px!important;line-height:1.2!important}
  body .report-score h3{margin:5px 0!important;font-size:17px!important;line-height:1.2!important}
  body .report-score p{font-size:10px!important;line-height:1.25!important}
  body .report-metrics{gap:2mm!important;break-inside:avoid-page!important}
  body .report-metrics span{box-sizing:border-box!important;min-height:18mm!important;height:auto!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:1.8mm!important;padding:3mm!important;border-radius:2.5mm!important;font-size:9px!important;line-height:1.2!important;text-align:left!important}
  body .report-metrics b{font-size:20px!important;line-height:1!important}
}

/* r164: скрытая шапка не должна оставлять отдельную строку печатной сетки. */
@media print{
  html,body{min-height:0!important;height:auto!important}
  body .app-shell{display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
  body .workspace{display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
  body .content-wrap{display:block!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
  body .report-layout{display:block!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
  body .report-sheet{display:block!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
}

/* r165: окончательная геометрия первого листа и единый блок нарушения. */
.report-violation-list .report-finding,
.report-violation-list .report-row-core>p,
.report-violation-list .report-row-core>small,
.bulk-report-row .bulk-report-finding,
.bulk-report-row .report-corrective-details{
  display:block;
  margin:6px 0 0!important;
  line-height:1.35!important;
}
.report-violation-list .report-row-core>small{
  color:var(--muted);
  font-size:inherit;
}
@media print{
  @page{size:A4 portrait;margin:10mm 14mm 14mm!important}
  @page report-cover{size:A4 portrait;margin:10mm 14mm 14mm!important}
  @page report-violations{size:A3 landscape;margin:14mm!important}
  body .report-layout{position:relative!important;top:0!important;transform:none!important}
  body .report-inspection-brand{margin:0!important;padding:0 0 3mm!important}
  body .report-sheet>h2{margin:3mm 0 1mm!important}
  body .report-address{margin:0!important}
  body .report-subtitle{margin:3mm 0 1mm!important}
  body .report-object-card{margin:0!important}
  body .report-object-card>div{min-height:10mm!important;padding:1.5mm 0!important}
  body .report-object-card dt{font-size:8.5pt!important;line-height:1.2!important}
  body .report-object-card dd{margin-top:.5mm!important;font-size:9pt!important;line-height:1.22!important}
  body .report-score{margin:4mm 0!important;padding:3mm 4mm!important}
  body .score-ring{width:18mm!important;height:18mm!important}
  body .score-ring:before{width:14mm!important;height:14mm!important}
  body .score-ring span{font-size:13pt!important}
  body .report-score>div:last-child span{font-size:7.5pt!important}
  body .report-score h3{margin:1mm 0!important;font-size:11pt!important}
  body .report-score p{font-size:8.5pt!important}
  body .report-metrics{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:2mm!important;break-before:avoid-page!important;break-inside:avoid-page!important}
  body .report-metrics span{min-height:14mm!important;height:14mm!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:1mm!important;padding:2mm 3mm!important;font-size:8pt!important}
  body .report-metrics b{font-size:14pt!important}
  body .report-violation-list .report-finding,
  body .report-violation-list .report-row-core>p,
  body .report-violation-list .report-row-core>small,
  body .bulk-report-row .bulk-report-finding,
  body .bulk-report-row .report-corrective-details{
    margin:1.5mm 0 0!important;
    line-height:1.35!important;
  }
}

/* r166 final: правила ниже всех прежних печатных каскадов. */
@media print{
  body:has(.report-sheet) .content-wrap>:not(.report-layout){display:none!important}
  body:has(.report-sheet) .report-layout{
    margin-top:-30mm!important;
    margin-right:0!important;
    margin-bottom:0!important;
    margin-left:0!important;
  }
  body .report-score,
  body .report-score+.report-metrics{
    break-before:avoid-page!important;
    page-break-before:avoid!important;
  }
  body .risk-label,
  body .report-violation-list header .risk-label,
  body .bulk-report-row header .risk-label{
    box-sizing:border-box!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-self:flex-start!important;
    align-items:center!important;
    justify-content:center!important;
    width:max-content!important;
    min-width:0!important;
    max-width:max-content!important;
    height:8mm!important;
    min-height:8mm!important;
    max-height:8mm!important;
    padding:0 2.5mm!important;
    font-size:9pt!important;
    line-height:1!important;
    white-space:nowrap!important;
    writing-mode:horizontal-tb!important;
  }
}

/* r167 final: 7 мм под верхним колонтитулом и неделимые нарушения с фото. */
@media print{
  body:has(.report-sheet) .report-layout{
    margin-top:-54mm!important;
  }
  body .bulk-report-row,
  body .report-violation-list>section{
    break-inside:avoid-page!important;
    page-break-inside:avoid!important;
  }
  body .bulk-report-row .report-row-core,
  body .report-violation-list>section .report-row-core{
    break-after:avoid-page!important;
    page-break-after:avoid!important;
  }
  body .bulk-report-row .report-photo-grid,
  body .report-violation-list>section .report-photo-grid{
    break-before:avoid-page!important;
    page-break-before:avoid!important;
    break-inside:avoid-page!important;
    page-break-inside:avoid!important;
  }
}

/* r168: заголовок раздела не образует отдельный пустой лист. */
.violations-inline-title{display:none}
@media print{
  body .report-violation-list{
    display:block!important;
  }
  body .report-violation-list>section{
    display:block!important;
    margin:0 0 5mm!important;
  }
  body .report-a3-landscape:has(.report-violation-list>section)>.report-a3-header{
    display:none!important;
  }
  body .report-violation-list>section:first-child>.violations-inline-title{
    display:block!important;
    margin:0 0 4mm!important;
    padding:0 0 2mm!important;
    border-bottom:.25mm solid #c7d0d5!important;
    break-after:avoid-page!important;
    page-break-after:avoid!important;
    font-size:15pt!important;
    line-height:1.2!important;
  }
  body .report-a3-landscape,
  body .report-violation-list{
    min-height:0!important;
    height:auto!important;
  }
  body .empty-report:empty,
  body .report-photo-grid:empty{
    display:none!important;
  }
}
