/* zy_pdf_* = dynamische pdf-viewercomponent:
   toolbar, zoom, downloadknoppen en canvas-area. */
.zy_pdf_viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.zy_tool_worksheet_container .zy_pdf_viewer,
.zy_tool_worksheet_container .zy_pdf_canvas_wrap {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
}

.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;
  flex-direction: row;
  align-items: center;
}

.zy_pdf_btn {
  padding: 6px 10px;
  border: 1px solid #b5b5b5 !important;
  background: #d9d9d9 !important;
  background-color: #d9d9d9 !important;
  background-image: none !important;
  color: #1a1a1a !important;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
  outline: none;
}
.zy_pdf_btn:hover {
  background: #e5e5e5 !important;
  background-color: #e5e5e5 !important;
  color: #1a1a1a !important;
  border-color: #b5b5b5 !important;
}

.zy_pdf_btn:focus,
.zy_pdf_btn:focus-visible,
.zy_pdf_btn:active {
  background: #e5e5e5 !important;
  background-color: #e5e5e5 !important;
  color: #1a1a1a !important;
  border-color: #b5b5b5 !important;
  box-shadow: none !important;
  outline: none;
}

.zy_pdf_btn::-moz-focus-inner {
  border: 0;
}

.zy_pdf_btn_stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  min-width: 120px;
}

.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);
}

/* Gedeelde worksheet viewer styling */
.zy_tool_worksheet_container {
  max-height: 90svh;
}

.zy_tool_canvas,
[id$="_worksheet_canvas"],
[id$="_worksheet_canvas_answers"] {
  display: block;
  width: min(100%, 794px);
  height: auto;
  margin: 0 auto;
  background: #ffffff;
}

[id$="_worksheet_canvas_answers"] {
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .zy_tool_worksheet_container {
    max-width: 100%;
  }
}

