.zy_pdf_viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
}

/* Viewer shell (tool containers) */
.zy1001_worksheet_container,
.zy1002_worksheet_container,
.zy1003_worksheet_container {
  border: 3px solid #333333;
  border-radius: 15px;
  overflow: hidden;
  box-sizing: border-box;
}

.zy_pdf_toolbar {
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #2f2f2f;
  background: #4a4a4a;
  width: 100%;
  box-sizing: border-box;
}

.zy_pdf_toolbar_left,
.zy_pdf_toolbar_center,
.zy_pdf_toolbar_right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zy_pdf_toolbar_left {
  flex: 0 0 auto;
}

.zy_pdf_toolbar_center {
  flex: 1 1 auto;
  justify-content: center;
}

.zy_pdf_toolbar_right {
  flex: 0 0 auto;
  margin-left: auto;
}

.zy_pdf_btn {
  padding: 6px 10px;
  border: 1px solid #b5b5b5;
  background: #d9d9d9;
  color: #1a1a1a;
  cursor: pointer;
  pointer-events: auto;
}
.zy_pdf_btn:hover {
  background: #e5e5e5;
}

.zy_pdf_btn_icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0);
}

.zy_pdf_zoom_label {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  color: #e6e6e6;
}

.zy_pdf_toolbar_center .zy_pdf_btn {
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  min-width: 36px;
  text-align: center;
}

.zy_pdf_zoom_label {
  font-size: 14px;
}

.zy_pdf_canvas_wrap {
  flex: 1 1 auto;
  overflow: auto;
  background: #3b3b3b;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  cursor: grab;
}
.zy_pdf_canvas_wrap:active {
  cursor: grabbing;
}

.zy_pdf_canvas {
  display: block;
  margin: 12px auto;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
}
