/* v12.4.0 — navigation/back fixes + lubrication characteristics (no redesign) */

/* v12.3.1 — center buttons/title in unsaved modal + restore PDF preview */

/* Double-click to open passport in the list */
.passport-row {
  cursor: pointer;
}

/* Double-click to open scheme/certificate preview */
.scheme-preview {
  cursor: pointer;
}

.scheme-open-actions {
  margin-top: 0.5rem;
}

.scheme-open-actions .btn {
  padding: 0.25rem 0.6rem;
}

/* Small PDF placeholder box */
.file-pdf-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: .5rem;
  background: #fff;
}

.file-pdf-box .pdf-ico {
  font-size: 1.35rem;
  line-height: 1;
}

.file-pdf-box .pdf-meta {
  min-width: 0;
}

.file-pdf-box .pdf-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-pdf-box .pdf-hint {
  font-size: .85rem;
  color: rgba(0,0,0,.6);
}

/* Unsaved changes modal: center title + action buttons */
#unsavedModal .modal-header {
  justify-content: center;
  position: relative;
}

#unsavedModal .modal-title {
  flex: 1;
  text-align: center;
}

#unsavedModal .btn-close {
  position: absolute;
  right: 1rem;
}

#unsavedModal .modal-footer {
  justify-content: center;
  gap: .5rem;
}

/* v12.6.2 — compact preview blocks (schemes right column) */

/* Make table-name hint tighter */
.table-hint{
  margin-top: 1px;
  margin-bottom: 3px;
}

/* Compact preview table layout */
.preview-mini-table{
  table-layout: fixed;
  width: 100%;
  margin-bottom: .5rem !important;
}
.preview-mini-table th.preview-th{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-mini-table td{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* v12.6.4 — sticky footer (footer always at bottom) */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

/* v12.7.2 — actions buttons: + / edit / delete in one line, wider column */
th.actions-col,
td.actions-col {
  min-width: 170px;
  width: 170px;
  white-space: nowrap;
}

.actions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.actions-inline form { margin: 0; }

/* v12.7.5 */
.js-te-type-wrap .field-block{border-color:rgba(13,110,253,.12);}


/* v12.8.0 — section color states + toggle */
.section-toolbar-right{
  margin-left:auto;
}

.section-color-toggle{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.5rem;
  min-height:38px;
}

.section-card{
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

.section-card .section-status-badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-size:.75rem;
  font-weight:600;
  border-radius:999px;
  padding:.2rem .55rem;
  border:1px solid rgba(0,0,0,.08);
  background:#f8f9fa;
  color:#495057;
}

.section-card .section-status-badge i{
  font-size:.8rem;
}

.section-card.section-state-normal .section-status-badge{
  background:rgba(13,110,253,.08);
  color:#0d6efd;
  border-color:rgba(13,110,253,.14);
}

.section-card.section-state-empty .section-status-badge{
  background:rgba(255,193,7,.12);
  color:#b26a00;
  border-color:rgba(255,193,7,.25);
}

.section-card.section-state-overdue .section-status-badge{
  background:rgba(220,53,69,.10);
  color:#b02a37;
  border-color:rgba(220,53,69,.20);
}

body.section-colors-enabled .section-card.section-state-normal{
  background:linear-gradient(180deg, rgba(13,110,253,.05), rgba(13,110,253,.025));
  border-color:rgba(13,110,253,.18);
}

body.section-colors-enabled .section-card.section-state-empty{
  background:linear-gradient(180deg, rgba(255,193,7,.14), rgba(255,193,7,.06));
  border-color:rgba(255,193,7,.32);
}

body.section-colors-enabled .section-card.section-state-overdue{
  background:linear-gradient(180deg, rgba(220,53,69,.14), rgba(220,53,69,.06));
  border-color:rgba(220,53,69,.28);
}

body.section-colors-enabled .section-card:hover{
  transform:translateY(-1px);
}


/* v12.11.2 — repair resources dropdown */
.js-repair-resource-dropdown{position:relative; z-index:20;}
.js-repair-resource-dropdown .dropdown-menu{z-index:1200; min-width:100%;}
.field-block,.field-block .card-body{overflow:visible;}
.field-block.repair-dropdown-open{position:relative; z-index:60;}


/* v12.12.0 — repair dropdown stacking + live filter */
.js-repair-resource-dropdown,
.js-repair-resource-dropdown.dropdown,
.field-block.repair-dropdown-open,
.field-block.repair-dropdown-open .card-body,
.field-block.repair-dropdown-open .mt-2 {
  position: relative;
  z-index: 5000 !important;
  overflow: visible !important;
}
.js-repair-resource-dropdown .dropdown-menu,
.js-repair-resource-dropdown .dropdown-menu.show,
.js-repair-resource-menu {
  position: absolute !important;
  inset: auto auto auto 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  z-index: 6000 !important;
  overflow: auto !important;
  box-shadow: 0 1rem 2rem rgba(16,24,40,.16);
}
.table-responsive,
.editor-form-shell,
.editor-form-shell .card,
.editor-form-shell .card-body,
.row,
.col-12,
.col-lg-6,
.col-xl-6 {
  overflow: visible;
}
.ppr-schedule-wrap {
  overflow-x: auto;
}
.ppr-schedule-table {
  min-width: 980px;
}
.ppr-schedule-table th,
.ppr-schedule-table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.ppr-schedule-table td.ppr-empty {
  color: #adb5bd;
}
.ppr-schedule-table td.ppr-to {
  background: rgba(13,110,253,.08);
  font-weight: 600;
}
.ppr-schedule-table td.ppr-tr {
  background: rgba(255,193,7,.18);
  font-weight: 700;
}
.ppr-schedule-table td.ppr-kr {
  background: rgba(220,53,69,.10);
  font-weight: 700;
}
.ppr-schedule-table td.ppr-expertise {
  background: rgba(13,202,240,.12);
  font-weight: 700;
}
.ppr-year-row.is-hidden {
  display: none;
}


/* v12.13.0 — PPR element selector + compact rope length */
.js-ppr-resource-dropdown{position:relative; z-index:20;}
.js-ppr-resource-dropdown .dropdown-menu{z-index:1200; min-width:100%;}
.js-ppr-resource-dropdown,
.js-ppr-resource-dropdown.dropdown,
.field-block.repair-dropdown-open,
.field-block.repair-dropdown-open .card-body,
.field-block.repair-dropdown-open .mt-2 {
  position: relative;
  z-index: 5000 !important;
  overflow: visible !important;
}
.js-ppr-resource-dropdown .dropdown-menu,
.js-ppr-resource-dropdown .dropdown-menu.show,
.js-ppr-resource-menu {
  position: absolute !important;
  inset: auto auto auto 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  z-index: 6000 !important;
  overflow: auto !important;
  box-shadow: 0 1rem 2rem rgba(16,24,40,.16);
}
.compact-inline-input{max-width:180px;}


/* v13.0.3 — PPR selector stacking fix */
.field-block.ppr-dropdown-open,
.field-block.ppr-dropdown-open .card-body,
.field-block.ppr-dropdown-open .mt-2 {
  position: relative;
  z-index: 5000 !important;
  overflow: visible !important;
}
.js-ppr-resource-dropdown .dropdown-menu,
.js-ppr-resource-dropdown .dropdown-menu.show,
.js-ppr-resource-menu {
  z-index: 7000 !important;
}


/* v13.2.0 */

/* v13.3.1 — режим «Все блоки»: 4 ровные колонки, Раздел 9 закреплён по вертикали */
.all-blocks-columns-scroll{overflow:visible;padding-bottom:.5rem;margin-bottom:1rem;scrollbar-width:thin;}
.all-blocks-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;align-items:start;padding-bottom:.25rem;}
.all-blocks-layout{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;align-items:start;}
.all-blocks-column{min-width:0;max-width:none;}
.all-blocks-sticky-column{position:sticky;top:1rem;align-self:start;z-index:2;max-height:calc(100vh - 1.5rem);overflow:auto;padding-bottom:.15rem;}
.all-blocks-major-card{border:1px solid rgba(0,0,0,.08);border-radius:.95rem;background:#fff;box-shadow:0 .125rem .5rem rgba(0,0,0,.05);height:100%;display:flex;flex-direction:column;overflow:hidden;}
.all-blocks-major-head{padding:.82rem .85rem .68rem;border-bottom:1px solid rgba(0,0,0,.06);background:#fff;border-radius:.95rem .95rem 0 0;}
.all-blocks-major-title{font-size:.95rem;font-weight:700;margin:0 0 .2rem;line-height:1.22;}
.all-blocks-major-hint{font-size:.74rem;color:#6c757d;}
.all-blocks-major-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.65rem;}
.all-blocks-major-body{padding:.78rem;display:flex;flex-direction:column;gap:.62rem;}
.all-blocks-simple-stack{display:flex;flex-direction:column;gap:.62rem;}
.all-blocks-subcard{border:1px solid rgba(0,0,0,.06);border-radius:.85rem;padding:.72rem;background:#fafbfc;display:flex;flex-direction:column;gap:.42rem;min-height:112px;}
.all-blocks-simple-card{background:#fff;box-shadow:0 .125rem .45rem rgba(0,0,0,.045);}
.all-blocks-subno{font-size:.74rem;font-weight:600;color:#495057;}
.all-blocks-subtitle{font-size:.88rem;font-weight:600;line-height:1.25;}
.all-blocks-subhint code{font-size:.69rem;white-space:normal;word-break:break-word;}
.all-blocks-subactions{margin-top:auto;}
@media (max-width: 1199.98px){.all-blocks-layout,.all-blocks-columns{grid-template-columns:repeat(2,minmax(0,1fr));}.all-blocks-sticky-column{position:static;max-height:none;overflow:visible;}}
@media (max-width: 767.98px){.all-blocks-layout,.all-blocks-columns{grid-template-columns:1fr;}}
.passport-overview-toolbar{display:flex;gap:.5rem;flex-wrap:wrap;}
.overview-card{border:1px solid rgba(0,0,0,.08);border-radius:1rem;background:#fff;box-shadow:0 .125rem .5rem rgba(0,0,0,.05);margin-bottom:1rem;overflow:hidden;}
.overview-card-head{padding:1rem 1rem .85rem;border-bottom:1px solid rgba(0,0,0,.06);background:#fff;}
.overview-card-title{font-size:1rem;font-weight:700;margin:0;}
.overview-card-subtitle{font-size:.82rem;color:#6c757d;margin-top:.25rem;}
.overview-card-body{padding:1rem;}
.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;}
.overview-field{border:1px solid rgba(0,0,0,.06);border-radius:.8rem;padding:.75rem;background:#fafbfc;}
.overview-field-label{font-size:.78rem;color:#6c757d;margin-bottom:.25rem;}
.overview-field-value{font-size:.95rem;font-weight:500;white-space:pre-wrap;word-break:break-word;}
.overview-table-wrap{overflow:auto;}
.overview-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.92rem;}
.overview-table th,.overview-table td{border:1px solid rgba(0,0,0,.08);padding:.55rem .65rem;vertical-align:top;word-break:break-word;white-space:pre-wrap;}
.overview-table th{background:#f8f9fa;font-size:.78rem;text-transform:uppercase;letter-spacing:.02em;color:#6c757d;}
@media print{
  .passport-overview-toolbar,.site-header,.site-footer,.btn,.no-print{display:none!important;}
  body{background:#fff!important;}
  .container{max-width:none!important;width:100%!important;padding:0!important;}
  .overview-card,.card{box-shadow:none!important;border:1px solid #ddd!important;break-inside:avoid;}
  .overview-table-wrap{overflow:visible!important;}
}

.all-blocks-columns-scroll.drag-scroll-ready{cursor:grab;user-select:none;}
.all-blocks-columns-scroll.drag-scroll-ready a,
.all-blocks-columns-scroll.drag-scroll-ready button{user-select:none;}
.all-blocks-columns-scroll.is-dragging{cursor:grabbing;}
.all-blocks-columns-scroll.is-dragging a{pointer-events:none;}

/* v13.3.0 — выбор и скрытие разделов паспорта */
.passport-sections-picker {
  border-radius: 1rem;
}
.section-picker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  max-height: 560px;
  overflow: auto;
  padding-right: .25rem;
  align-items: stretch;
}
.section-picker-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  height: 98px;
  min-width: 0;
  padding: .68rem .72rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-left: 4px solid rgba(13, 110, 253, .18);
  border-radius: .85rem;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.section-picker-item:hover {
  border-color: rgba(13, 110, 253, .28);
  border-left-color: rgba(13, 110, 253, .55);
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}
.section-picker-item.level-1 { padding-left: .92rem; border-left-color: rgba(25, 135, 84, .35); }
.section-picker-item.level-2 { padding-left: 1.12rem; border-left-color: rgba(255, 193, 7, .45); }
.section-picker-item.level-3 { padding-left: 1.28rem; border-left-color: rgba(108, 117, 125, .35); }
.section-picker-text { min-width: 0; display:flex; flex-direction:column; }
.section-picker-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; font-size: .9rem; line-height: 1.25; color: #0f172a; }
.section-picker-code { display: block; margin-top: .22rem; font-size: .74rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1199.98px){.section-picker-list{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 767.98px){.section-picker-list{grid-template-columns:1fr;}.section-picker-item{height:auto;min-height:92px;}}
.section-hidden-admin {
  opacity: .46;
  filter: grayscale(.2);
  border-style: dashed !important;
}
.section-hidden-admin:hover {
  opacity: .78;
}
.section-hidden-badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* v13.3.2 — уточнение выбора состава разделов и режима «Все блоки» */
.section-picker-legend{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem .85rem;
  padding:.62rem .72rem;
  border:1px solid rgba(15,23,42,.08);
  border-radius:.85rem;
  background:#fff;
  color:#475569;
  font-size:.78rem;
}
.section-picker-legend span{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  white-space:nowrap;
}
.legend-dot{
  width:.6rem;
  height:.6rem;
  border-radius:999px;
  display:inline-block;
  border:1px solid rgba(15,23,42,.08);
}
.legend-level-0{background:rgba(13,110,253,.55);}
.legend-level-1{background:rgba(25,135,84,.55);}
.legend-level-2{background:rgba(255,193,7,.75);}
.legend-level-3{background:rgba(108,117,125,.55);}

.all-blocks-layout{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
}
.all-blocks-column{
  min-width:0;
}
.all-blocks-sticky-column{
  position:sticky;
  top:1rem;
  align-self:start;
  z-index:2;
  max-height:calc(100vh - 1.5rem);
  overflow:auto;
  padding-bottom:.15rem;
  scrollbar-width:thin;
}
.all-blocks-side-column{
  z-index:1;
}
.all-blocks-subcard.section-card{
  min-height:128px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow:0 .125rem .45rem rgba(0,0,0,.045);
}
.all-blocks-subcard.section-card .section-status-badge,
.all-blocks-major-card.section-card .section-status-badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-size:.75rem;
  font-weight:600;
  line-height:1.1;
  border-radius:999px;
  padding:.2rem .55rem;
  border:1px solid rgba(0,0,0,.08);
  background:#f8f9fa;
  color:#495057;
  white-space:nowrap;
}
.all-blocks-subcard.section-state-normal .section-status-badge,
.all-blocks-major-card.section-state-normal .section-status-badge{
  background:rgba(13,110,253,.08);
  color:#0d6efd;
  border-color:rgba(13,110,253,.14);
}
.all-blocks-subcard.section-state-empty .section-status-badge,
.all-blocks-major-card.section-state-empty .section-status-badge{
  background:rgba(255,193,7,.12);
  color:#b26a00;
  border-color:rgba(255,193,7,.25);
}
.all-blocks-subcard.section-state-overdue .section-status-badge,
.all-blocks-major-card.section-state-overdue .section-status-badge{
  background:rgba(220,53,69,.10);
  color:#b02a37;
  border-color:rgba(220,53,69,.20);
}
.all-blocks-subcard.section-card .section-status-badge i,
.all-blocks-major-card.section-card .section-status-badge i{
  font-size:.8rem;
}
.all-blocks-simple-stack{
  gap:.58rem;
}
.all-blocks-subtitle{
  min-height:2.2em;
}
@media (max-width: 1199.98px){
  .all-blocks-sticky-column{position:static;max-height:none;overflow:visible;}
}
@media (max-width: 767.98px){
  .section-picker-legend span{white-space:normal;}
}

/* v13.3.2 — одинаковая высота карточек внутри режима «Все блоки» */
.all-blocks-subcard.section-card{
  height:128px;
  min-height:128px;
  overflow:hidden;
}
.all-blocks-subtitle{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:auto;
}
.all-blocks-subhint code{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* v13.3.3 — краткое обучение пользователей */
.onboarding-modal .modal-content{
  border-radius:1.15rem;
  overflow:hidden;
}
.onboarding-header{
  background:linear-gradient(135deg,#0d6efd 0%,#084298 100%);
  color:#fff;
  border-bottom:0;
  padding:1.15rem 1.25rem;
}
.onboarding-eyebrow{
  letter-spacing:.08em;
  opacity:.82;
}
.onboarding-subtitle{
  color:rgba(255,255,255,.86);
}
.onboarding-intro{
  display:flex;
  gap:.9rem;
  align-items:flex-start;
  padding:1.2rem 1.25rem;
  background:linear-gradient(180deg,rgba(13,110,253,.08),rgba(13,110,253,.02));
  border-bottom:1px solid rgba(15,23,42,.08);
}
.onboarding-intro-icon{
  width:2.7rem;
  height:2.7rem;
  border-radius:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0d6efd;
  background:#fff;
  box-shadow:0 .35rem 1rem rgba(13,110,253,.12);
  flex:0 0 auto;
  font-size:1.25rem;
}
.onboarding-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.8rem;
  padding:1.1rem 1.25rem;
  background:#f8fafc;
}
.onboarding-card{
  min-height:172px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:1rem;
  padding:1rem;
  background:#fff;
  box-shadow:0 .25rem .85rem rgba(15,23,42,.045);
  display:flex;
  flex-direction:column;
}
.onboarding-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.75rem;
}
.onboarding-card-icon{
  width:2.35rem;
  height:2.35rem;
  border-radius:.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(13,110,253,.09);
  color:#0d6efd;
  font-size:1.05rem;
  flex:0 0 auto;
}
.onboarding-step{
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.03em;
  color:#64748b;
  background:#f1f5f9;
  border-radius:999px;
  padding:.2rem .55rem;
  white-space:nowrap;
}
.onboarding-card h3{
  font-size:.96rem;
  line-height:1.25;
  margin:0 0 .45rem;
  color:#0f172a;
}
.onboarding-card p{
  margin:0;
  color:#475569;
  font-size:.84rem;
  line-height:1.45;
}
.onboarding-note{
  margin:0 1.25rem 1.15rem;
  padding:.8rem .95rem;
  border:1px solid rgba(13,110,253,.12);
  border-radius:.9rem;
  background:rgba(13,110,253,.06);
  color:#334155;
  font-size:.86rem;
}
.onboarding-footer{
  border-top:1px solid rgba(15,23,42,.08);
  background:#fff;
  padding:.85rem 1.25rem;
}
@media (max-width: 1199.98px){
  .onboarding-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 767.98px){
  .onboarding-grid{grid-template-columns:1fr;padding:.85rem;}
  .onboarding-intro{padding:.95rem;}
  .onboarding-note{margin:.2rem .85rem .9rem;}
  .onboarding-card{min-height:auto;}
}

/* v13.3.4 — профиль пользователя и обращения */
.navbar-user-link{
  display:inline-flex;
  align-items:center;
  gap:.15rem;
  padding:.35rem .6rem;
  border:1px solid rgba(255,255,255,.26);
  border-radius:999px;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}
.navbar-user-link:hover{
  color:#fff!important;
  background:rgba(255,255,255,.13);
  border-color:rgba(255,255,255,.42);
  transform:translateY(-1px);
}
.profile-dashboard{
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(280px,.9fr);
  gap:.85rem;
}
.profile-hero-card,
.profile-info-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:1.1rem;
  background:#fff;
  box-shadow:0 .35rem 1rem rgba(15,23,42,.055);
  padding:1.05rem;
  display:flex;
  align-items:center;
  gap:.9rem;
  min-height:116px;
}
.profile-hero-card{
  background:linear-gradient(135deg,rgba(13,110,253,.08),#fff 58%);
}
.profile-avatar{
  width:3.4rem;
  height:3.4rem;
  border-radius:1.1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0d6efd;
  background:#fff;
  font-size:1.65rem;
  box-shadow:0 .35rem .9rem rgba(13,110,253,.12);
  flex:0 0 auto;
}
.profile-info-icon,
.profile-section-icon{
  width:2.4rem;
  height:2.4rem;
  border-radius:.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(13,110,253,.09);
  color:#0d6efd;
  flex:0 0 auto;
}
.profile-section-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:1rem;
  overflow:hidden;
}
.empty-state-soft{
  border:1px dashed rgba(15,23,42,.16);
  border-radius:.9rem;
  background:#f8fafc;
  color:#64748b;
  padding:1rem;
  text-align:center;
}
.profile-reports-table td,
.profile-reports-table th{
  vertical-align:middle;
}
.reports-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.75rem;
}
.reports-stat-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:1rem;
  background:#fff;
  box-shadow:0 .25rem .8rem rgba(15,23,42,.045);
  padding:.95rem 1rem;
}
.reports-stat-danger{
  background:linear-gradient(135deg,rgba(220,53,69,.09),#fff 62%);
  color:#842029;
}
.report-filter-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:1rem;
}
.reports-admin-list{
  display:grid;
  gap:.75rem;
}
.report-admin-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:1rem;
  overflow:hidden;
}
.report-admin-main{
  min-width:0;
  flex:1 1 520px;
}
.report-admin-form{
  flex:0 0 310px;
  max-width:100%;
  padding:.8rem;
  border:1px solid rgba(15,23,42,.08);
  border-radius:.9rem;
  background:#f8fafc;
}
.report-message-preview{
  color:#334155;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:.8rem;
  padding:.75rem .85rem;
  max-height:8.5rem;
  overflow:auto;
  line-height:1.45;
  overflow-wrap:anywhere;
}
@media (max-width: 991.98px){
  .profile-dashboard{grid-template-columns:1fr;}
  .reports-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .report-admin-form{flex-basis:100%;}
}
@media (max-width: 575.98px){
  .reports-stat-grid{grid-template-columns:1fr;}
  .profile-hero-card,.profile-info-card{align-items:flex-start;}
}


/* v13.3.5 — уточнение формата краткого обучения пользователей */
.profile-info-card .btn-outline-primary{white-space:nowrap;}

/* v13.3.7 — ППР по моточасам/циклам и график нагруженности */
.ppr-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.55rem;
}
.ppr-summary-item{
  border:1px solid rgba(15,23,42,.08);
  border-radius:.75rem;
  background:#fff;
  padding:.6rem .68rem;
}
.ppr-summary-item span{
  display:block;
  color:#6c757d;
  font-size:.76rem;
  margin-bottom:.15rem;
}
.ppr-summary-item b{
  font-size:.95rem;
}
.ppr-schedule-table td.ppr-to2{
  background:#d7ecff;
  font-weight:700;
}
.ppr-schedule-table td.ppr-so{
  background:#edf2f7;
  color:#495057;
  font-weight:700;
}
.load-profile-chart{
  display:flex;
  flex-direction:column;
  gap:.72rem;
}
.load-profile-row{
  display:grid;
  grid-template-columns:minmax(86px,120px) minmax(0,1fr) minmax(88px,130px);
  gap:.75rem;
  align-items:center;
}
.load-profile-time{
  font-size:.88rem;
  font-weight:600;
  color:#344054;
}
.load-profile-track{
  height:1.05rem;
  border-radius:999px;
  background:#eef2f6;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.06);
}
.load-profile-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(13,110,253,.35),rgba(13,110,253,.9));
  min-width:.35rem;
}
.load-profile-value{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.05rem;
  font-size:.82rem;
}
.load-profile-value span{
  color:#6c757d;
  font-size:.76rem;
}
@media (max-width: 767.98px){
  .ppr-summary-grid{grid-template-columns:1fr;}
  .load-profile-row{grid-template-columns:1fr;gap:.32rem;}
  .load-profile-value{align-items:flex-start;}
}

/* v13.3.8 — автоматический график нагруженности и уточнение ППР A7/A8 */
.load-profile-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.55rem;
}
.load-profile-chart-auto .load-profile-row{
  grid-template-columns:minmax(150px,190px) minmax(0,1fr) minmax(135px,170px);
  min-height:3.25rem;
  padding:.35rem 0;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.load-profile-chart-auto .load-profile-row:last-child{border-bottom:0;}
.load-profile-time span{
  display:block;
  margin-top:.15rem;
  font-size:.74rem;
  color:#6c757d;
  font-weight:500;
}
.auto-load-row .load-profile-track{
  height:1.18rem;
}
.auto-load-row .load-profile-value b{
  font-size:.88rem;
}
@media (max-width: 991.98px){
  .load-profile-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 575.98px){
  .load-profile-summary{grid-template-columns:1fr;}
  .load-profile-chart-auto .load-profile-row{grid-template-columns:1fr;}
}


/* v13.3.9 — уточнен интервал ТО-2 для A7/A8: 60 дней */


/* === v13.5.0: рабочее пространство паспорта с боковой навигацией === */
.passport-workspace{
  display:grid;
  grid-template-columns:minmax(250px,300px) minmax(0,1fr);
  gap:1rem;
  align-items:start;
  transition:grid-template-columns .22s ease,gap .22s ease;
}
.passport-sidebar{
  min-width:0;
  position:sticky;
  top:.75rem;
  height:calc(100vh - 1.5rem);
  overflow:hidden;
  transition:opacity .18s ease,transform .22s ease;
}
.passport-sidebar-inner{
  height:100%;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid rgba(13,110,253,.12);
  border-radius:1rem;
  box-shadow:0 .25rem 1rem rgba(31,45,61,.08);
  overflow:hidden;
}
.passport-sidebar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.85rem .9rem .7rem;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.passport-sidebar-kicker{font-size:.72rem;color:#6c757d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.passport-sidebar-title{font-size:1rem;font-weight:700;line-height:1.15;}
.passport-sidebar-toggle{width:32px;height:32px;display:grid;place-items:center;padding:0;border-color:rgba(0,0,0,.08);}
.passport-sidebar-search-wrap{position:relative;padding:.7rem .75rem .6rem;}
.passport-sidebar-search-wrap>i{position:absolute;left:1.42rem;top:50%;transform:translateY(-45%);color:#8a93a0;font-size:.82rem;pointer-events:none;}
.passport-sidebar-search-wrap input{padding-left:2rem;border-radius:.7rem;}
.passport-sidebar-nav{overflow:auto;padding:.15rem .55rem .75rem;scrollbar-width:thin;}
.passport-sidebar-link{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 10px;
  gap:.35rem;
  align-items:start;
  padding:.5rem .52rem;
  margin:.08rem 0;
  border-radius:.65rem;
  text-decoration:none;
  color:#313942;
  font-size:.82rem;
  line-height:1.25;
  border:1px solid transparent;
}
.passport-sidebar-link:hover{background:#f5f8ff;color:#0d6efd;}
.passport-sidebar-link.active{background:#eaf2ff;border-color:#cfe0ff;color:#0b5ed7;font-weight:600;}
.passport-sidebar-link.level-1{padding-left:.85rem;}
.passport-sidebar-link.level-2{padding-left:1.15rem;font-size:.79rem;}
.passport-sidebar-link.level-3{padding-left:1.45rem;font-size:.76rem;color:#56606b;}
.passport-sidebar-link.level-3.active{color:#0b5ed7;}
.passport-sidebar-no{font-size:.72rem;font-weight:700;color:#657181;white-space:nowrap;padding-top:.04rem;}
.passport-sidebar-link.active .passport-sidebar-no{color:#0b5ed7;}
.passport-sidebar-link-title{min-width:0;overflow-wrap:anywhere;}
.passport-sidebar-hidden-dot{width:7px;height:7px;border-radius:50%;background:#adb5bd;margin-top:.25rem;}
.passport-sidebar-link.is-hidden-section{opacity:.55;}
.passport-sidebar-link.is-filtered{display:none;}
.passport-workspace-content{min-width:0;position:relative;}
.passport-document-pane{
  min-height:calc(100vh - 7rem);
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:1rem;
  box-shadow:0 .25rem 1.2rem rgba(31,45,61,.07);
  padding:1rem;
}
.passport-sidebar-reopen{display:none;margin-bottom:.75rem;}
.passport-workspace.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr);gap:0;}
.passport-workspace.sidebar-collapsed .passport-sidebar{opacity:0;transform:translateX(-14px);pointer-events:none;}
.passport-workspace.sidebar-collapsed .passport-sidebar-reopen{display:inline-flex;align-items:center;}
@media (max-width: 991.98px){
  .passport-workspace{grid-template-columns:1fr;}
  .passport-sidebar{position:fixed;left:.75rem;top:4.6rem;bottom:.75rem;width:min(330px,calc(100vw - 1.5rem));height:auto;z-index:1040;}
  .passport-workspace.sidebar-collapsed{grid-template-columns:1fr;}
  .passport-workspace:not(.sidebar-collapsed) .passport-workspace-content:before{content:"";position:fixed;inset:0;background:rgba(19,31,48,.25);z-index:1030;}
  .passport-workspace-content{z-index:auto;}
  .passport-sidebar-reopen{display:inline-flex;align-items:center;}
  .passport-workspace:not(.sidebar-collapsed) .passport-sidebar-reopen{visibility:hidden;}
  .passport-document-pane{padding:.75rem;}
}
