/* Обзор обращений — локальные стили страницы /priem/obzor/ */
.priem-overview-page {
  min-width: 0;
}

.priem-overview-page .priem-overview.panel.panel-pad {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(20, 38, 82, 0.065);
}

.priem-overview .priem-overview__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 17px 28px;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
  font-size: 12px;
  line-height: 1.6;
  color: #758194;
}

.priem-overview__breadcrumbs a {
  color: #58667c;
  text-decoration: none;
  transition: color .18s ease;
}

.priem-overview__breadcrumbs a:hover {
  color: #263876;
  text-decoration: underline;
}

.priem-overview__breadcrumbs .sep { color: #b7bfcb; }
.priem-overview__breadcrumbs [aria-current="page"] { color: #243958; font-weight: 600; }

.priem-overview__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 30px 34px;
  overflow: hidden;
  background: linear-gradient(115deg, #f5f7fd 0%, #f9fafe 66%, #eff3fa 100%);
  border-bottom: 1px solid #e6ecf5;
}

.priem-overview__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 66px;
  height: 3px;
  background: #c29a51;
  border-radius: 3px 3px 0 0;
}

.priem-overview__header-text { position: relative; z-index: 1; min-width: 0; }

.priem-overview__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #51648b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.priem-overview__eyebrow-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #c29a51;
}

.priem-overview__heading {
  margin: 11px 0 11px;
  color: #20335e;
  font-size: clamp(25px, 2.35vw, 35px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.priem-overview__intro {
  max-width: 680px;
  margin: 0;
  color: #637189;
  font-size: 14px;
  line-height: 1.7;
}

.priem-overview__header-mark {
  display: flex;
  flex: 0 0 90px;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  color: #506aa6;
  background: rgba(255, 255, 255, .8);
  border: 1px solid #e5ebf5;
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(35, 62, 119, .055);
}

.priem-overview__content { padding: 28px 30px 34px; }

.priem-overview__list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.priem-overview__list-heading h2 {
  margin: 0;
  color: #273858;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.priem-overview__count {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 30px;
  border: 1px solid #e5eaf3;
  background: #f7f9fd;
  color: #66758d;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.priem-overview__list { display: grid; gap: 12px; }

.priem-overview__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  padding: 20px 20px 20px 19px;
  border: 1px solid #e7ebf2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(27, 48, 87, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.priem-overview__item::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #c29a51;
  opacity: 0;
  transition: opacity .2s ease;
}

.priem-overview__item:hover {
  border-color: #ced9ee;
  box-shadow: 0 9px 24px rgba(27, 48, 87, .085);
  transform: translateY(-2px);
}

.priem-overview__item:hover::before { opacity: 1; }

.priem-overview__item-main {
  display: flex;
  flex: 1 1 270px;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.priem-overview__file-icon {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 58px;
  color: #365493;
  border: 1px solid #e4eaf6;
  border-radius: 12px;
  background: #f1f5fd;
}

.priem-overview__item-copy { min-width: 0; }

.priem-overview__type {
  display: inline-block;
  margin-bottom: 5px;
  color: #7b88a0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.priem-overview__title {
  margin: 0;
  color: #263876;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.priem-overview__actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.priem-overview__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.priem-overview__button svg { flex: 0 0 auto; }

.priem-overview__button--preview {
  background: #fff;
  border-color: #d9e2f0;
  color: #263876 !important;
}

.priem-overview__button--preview:hover {
  background: #f0f4fb;
  border-color: #bccde6;
  color: #263876 !important;
}

.priem-overview__button--download {
  background: #263876;
  border-color: #263876;
  color: #fff !important;
}

.priem-overview__button--download:hover {
  background: #1e2c60;
  border-color: #1e2c60;
  box-shadow: 0 5px 14px rgba(38, 56, 118, .18);
  color: #fff !important;
}

.priem-overview__button:focus-visible,
.priem-overview__page-link:focus-visible,
.priem-overview__modal-close:focus-visible {
  outline: 3px solid #b99553;
  outline-offset: 3px;
}

.priem-overview__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #edf0f5;
}

.priem-overview__page-link,
.priem-overview__page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #e1e7f0;
  border-radius: 9px;
  background: #fff;
  color: #263876;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.priem-overview__page-link:hover { border-color: #263876; background: #f6f8fe; }
.priem-overview__page-current { border: 0; background: #f3f5fa; color: #66758b; }
.priem-overview__page-link--disabled { color: #a5afbd; background: #fafbfd; cursor: default; }

.priem-overview__empty {
  padding: 40px 20px;
  border: 1px dashed #d8e1ee;
  border-radius: 14px;
  background: #f9fbfe;
  text-align: center;
}

.priem-overview__empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #edf2fa;
  color: #5871a5;
  font-size: 30px;
}

.priem-overview__empty h2 { margin: 0 0 7px; color: #263876; font-size: 17px; }
.priem-overview__empty p { margin: 0; color: #68778e; font-size: 14px; }

/* PDF-диалог: сохраняется существующий appeals_overview.js */
.priem-overview__modal {
  width: min(96vw, 1500px);
  height: min(94vh, 1200px);
  max-width: 1500px;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .35);
}

.priem-overview__modal::backdrop { background: rgba(13, 25, 48, .78); }

.priem-overview__modal-panel { display: flex; flex-direction: column; height: 100%; background: #fff; }

.priem-overview__modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  background: #263876;
  color: #fff;
}

.priem-overview__modal-head h2 { margin: 0; color: #fff; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }

.priem-overview__modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.priem-overview__modal-close:hover { background: rgba(255, 255, 255, .23); }
#priem-pdf-frame { display: block; width: 100%; min-height: 0; flex: 1; border: 0; background: #f2f5fa; }

@media (max-width: 1100px) {
  .priem-overview__header-mark { display: none; }
  .priem-overview__actions { width: 100%; padding-left: 70px; }
}

@media (max-width: 750px) {
  .priem-overview-page .priem-overview.panel.panel-pad { border-radius: 12px; }
  .priem-overview .priem-overview__breadcrumbs { padding: 14px 18px; }
  .priem-overview__header { padding: 26px 20px 28px; }
  .priem-overview__header::after { left: 20px; }
  .priem-overview__heading { font-size: 27px; }
  .priem-overview__content { padding: 22px 18px 26px; }
  .priem-overview__item { padding: 16px; }
  .priem-overview__item-main { flex-basis: 100%; gap: 13px; }
  .priem-overview__file-icon { flex-basis: 48px; width: 48px; height: 52px; }
  .priem-overview__actions { padding-left: 0; }
  .priem-overview__button { flex: 1 1 auto; }
  .priem-overview__modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .priem-overview__modal-head { padding: 10px 14px; }
}

@media (max-width: 420px) {
  .priem-overview__list-heading { align-items: flex-start; }
  .priem-overview__list-heading h2 { font-size: 16px; }
  .priem-overview__button { min-width: 0; padding: 10px 11px; }
  .priem-overview__title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .priem-overview__item,
  .priem-overview__item::before,
  .priem-overview__button,
  .priem-overview__breadcrumbs a { transition: none; }
  .priem-overview__item:hover { transform: none; }
}
