/* Compact document controls inside the existing ROLLSKRAN catalogue. */
#rk-c-documents .rk-drawing-documents-intro { max-width: 850px; margin: 0 0 18px; font-size: 14px; line-height: 1.55; }
#rk-c-documents .rk-drawing-documents-note { max-width: 900px; margin: 14px 0 0; color: #616161; font-size: 13px; line-height: 1.55; }
#rk-c-documents .rk-drawing-documents-related { margin: 24px 0 12px; font-size: 15px; line-height: 1.4; }
.rk-drawing-documents,
.rk-docs-shell {
  --rk-docs-ink: #252525;
  --rk-docs-muted: #616161;
  --rk-docs-line: #d7d7d2;
  --rk-docs-accent: #F4A900;
  min-width: 0;
  color: var(--rk-docs-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
.rk-docs-shell,
.rk-docs-shell * { box-sizing: border-box; }
.rk-docs-shell [hidden] { display: none !important; }
.rk-docs-shell ::selection { color: #252525; background: #FFD27A; }
.rk-docs-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.rk-docs-shell .rk-docs-choice,
.rk-docs-shell .rk-docs-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--rk-docs-line);
  border-radius: 4px;
  background: #fff;
  color: var(--rk-docs-ink);
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}
.rk-docs-shell .rk-docs-choice { padding: 9px 12px; font-size: 14px; }
.rk-docs-shell .rk-docs-choice[aria-pressed="true"] { border-color: #F4A900; background: #FFF3D6; font-weight: 600; }
.rk-docs-shell .rk-docs-button svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rk-docs-shell .rk-docs-save { border-color: #F4A900; background: var(--rk-docs-accent); font-weight: 600; }
.rk-docs-shell .rk-docs-save > .rk-pdf-icon { display: none !important; }
.rk-docs-shell .rk-docs-button:disabled { opacity: .45; cursor: default; }
.rk-docs-shell :is(button, a, input, select, .rk-docs-stage):focus-visible { outline: 2px solid #B37A00; outline-offset: 3px; }
.rk-docs-viewer { min-width: 0; }
.rk-docs-header { margin: 0 0 10px; }
.rk-docs-shell .rk-docs-heading { margin: 0 0 3px; color: var(--rk-docs-ink); font-size: 15px; line-height: 1.4; }
.rk-docs-shell .rk-docs-subtitle { margin: 0; color: var(--rk-docs-muted); font-size: 13px; line-height: 1.45; }
.rk-docs-shell .rk-docs-notes { margin: 0 0 14px; padding: 0 0 0 18px; color: var(--rk-docs-muted); font-size: 13px; line-height: 1.5; }
.rk-docs-shell .rk-docs-notes li { margin: 0 0 3px; padding: 0; }
.rk-docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--rk-docs-line);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #fafaf8;
}
.rk-docs-control-group,
.rk-docs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.rk-docs-actions { margin-left: auto; }
.rk-docs-control-group .rk-docs-button { min-width: 34px; padding: 8px; }
.rk-docs-shell .rk-docs-page-number,
.rk-docs-shell .rk-docs-zoom {
  appearance: auto;
  height: 38px;
  min-height: 38px;
  max-width: 100%;
  margin: 0;
  padding: 6px 7px;
  border: 1px solid var(--rk-docs-line);
  border-radius: 3px;
  background: #fff;
  color: var(--rk-docs-ink);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  line-height: normal;
  caret-color: #B37A00;
}
.rk-docs-shell .rk-docs-page-number { width: 49px; text-align: center; font-variant-numeric: tabular-nums; }
.rk-docs-shell .rk-docs-zoom { width: 114px; }
.rk-docs-page-count { min-width: 27px; color: var(--rk-docs-muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk-docs-stage {
  position: relative;
  width: 100%;
  height: clamp(340px, 62vh, 660px);
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--rk-docs-line);
  border-radius: 0 0 5px 5px;
  background: #eaeae7;
  scrollbar-color: #a5a59e #eaeae7;
  scrollbar-width: thin;
}
.rk-docs-paper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  padding: 16px;
}
.rk-docs-canvas { display: block; flex: none; max-width: none; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 13%); }
.rk-docs-shell .rk-docs-status {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--rk-docs-line);
  border-radius: 3px;
  background: #fff;
  color: var(--rk-docs-muted);
  font-size: 13px;
  line-height: 1.45;
}
.rk-docs-footer,
.rk-docs-print-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.rk-docs-shell .rk-docs-fallback { color: #464646; font-size: 13px; line-height: 1.45; text-decoration: underline; text-underline-offset: 3px; }
.rk-docs-shell .rk-docs-print-status { margin: 0; color: var(--rk-docs-muted); font-size: 13px; line-height: 1.45; }
.rk-docs-error { color: #7c2a20; font-size: 14px; }
.rk-docs-shell :is(.rk-docs-heading, .rk-docs-subtitle, .rk-docs-notes, .rk-docs-print-status) { overflow-wrap: anywhere; }
.rk-docs-shell:fullscreen,
.rk-docs-dialog .rk-docs-shell { display: flex; flex-direction: column; width: 100%; height: 100%; max-width: none; margin: 0; padding: 18px; overflow: auto; background: #fff; }
.rk-docs-shell:fullscreen .rk-docs-viewer,
.rk-docs-dialog .rk-docs-viewer { display: flex; flex: 1; flex-direction: column; min-height: 260px; }
.rk-docs-shell:fullscreen .rk-docs-stage,
.rk-docs-dialog .rk-docs-stage { flex: 1; height: auto; min-height: 220px; }
.rk-docs-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.rk-docs-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.rk-docs-print-frame { position: fixed; top: 0; left: -10000px; width: 1px; height: 1px; border: 0; pointer-events: none; }
@media (hover: hover) {
  .rk-docs-shell .rk-docs-choice:hover,
  .rk-docs-shell .rk-docs-button:not(:disabled):hover { border-color: #99998e; background: #f4f4ef; }
  .rk-docs-shell .rk-docs-save:hover { border-color: #D99400; background: #F4A900; }
  .rk-docs-shell .rk-docs-choice[aria-pressed="true"]:hover { background: #FFF3D6; }
}
@media (max-width: 760px) {
  .rk-docs-choices { gap: 5px; }
  .rk-docs-shell .rk-docs-choice { flex: 1 1 140px; padding: 9px; text-align: left; justify-content: flex-start; font-size: 13px; }
  .rk-docs-toolbar { gap: 8px; padding: 8px; }
  .rk-docs-actions { flex: 1 1 100%; margin-left: 0; }
  .rk-docs-actions .rk-docs-button { flex: 1 1 auto; padding: 8px; }
  .rk-docs-shell .rk-docs-page-number,
  .rk-docs-shell .rk-docs-zoom { font-size: 16px; }
  .rk-docs-stage { height: 400px; max-height: 65vh; }
  .rk-docs-shell:fullscreen,
  .rk-docs-dialog .rk-docs-shell { padding: 10px; }
  .rk-docs-shell:fullscreen .rk-docs-stage,
  .rk-docs-dialog .rk-docs-stage { max-height: none; }
}
@media print {
  .rk-docs-print-frame { display: none; }
}
