.operator-documents {
  background: #f1f4ed;
}
.operator-documents h2 {
  max-width: 660px;
}
.document-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #9bae95 transparent;
  padding: 3px 3px 18px;
  overscroll-behavior-x: contain;
}
.document-slide {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  background: white;
  border: 1px solid #d5decf;
  border-radius: 10px;
  padding: 18px;
  scroll-snap-align: start;
}
.document-open {
  position: relative;
  display: block;
  background: #e8ede2;
  border-radius: 6px;
  overflow: hidden;
}
.document-open img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  padding: 10px;
}
.document-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 7px 12px;
  border-radius: 5px;
  background: #153b2f;
  color: white;
  font-size: 13px;
}
.document-slide h3 {
  font-size: 20px;
  margin: 20px 0 8px;
}
.document-slide p {
  font-size: 14px;
  line-height: 1.45;
  color: #63745d;
  min-height: 42px;
}
.document-download {
  display: inline-block;
  margin-top: 14px;
  border-bottom: 1px solid #8ca182;
  font-size: 14px;
}
.document-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 14px;
  color: #617453;
}
.document-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid #b8c8ac;
  border-radius: 50%;
  background: #fff;
  color: #203e2c;
  font-size: 23px;
  margin-left: 6px;
}
.document-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.document-dialog {
  width: min(1100px, calc(100% - 24px));
  height: 90dvh;
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #eef2eb;
  color: #163c2c;
  overflow: hidden;
}
.document-dialog-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
}
.document-dialog-head h2 {
  font-size: 20px;
  line-height: 1.2;
  flex: 1;
  letter-spacing: 0;
}
.document-dialog-head button,
.document-save {
  border: 1px solid #c8d5bd;
  border-radius: 6px;
  background: #fff;
  padding: 8px 12px;
  font-size: 14px;
  color: #183d2a;
}
.document-dialog-head .document-close {
  font-size: 24px;
  padding: 4px 12px;
}
.document-view {
  height: calc(100% - 76px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
}
.document-view img {
  max-width: 100%;
  width: auto;
  height: auto;
  margin: auto;
  display: block;
}
.document-view.zoomed img {
  max-width: none;
  width: auto;
  max-height: none;
}
.document-dialog-head {
  min-height: 76px;
}
@media (max-width: 760px) {
  .document-slide {
    flex-basis: 85%;
    padding: 15px;
  }
  .document-open img {
    height: 260px;
  }
  .document-track {
    gap: 14px;
  }
  .document-dialog-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .document-dialog-head h2 {
    font-size: 17px;
    min-width: 55%;
  }
  .document-dialog-head button,
  .document-save {
    font-size: 13px;
    padding: 7px;
  }
  .document-dialog-head .document-close {
    margin-left: auto;
  }
  .document-view {
    height: calc(100% - 115px);
    padding: 12px;
  }
  .operator-documents h2 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .document-track {
    scroll-behavior: auto;
  }
}
