/* License: MIT (see ../license.txt); alternatively GPL v3.0. (c) 2026 ISSP Software und Service GmbH */
/* cloccojs annotations (viewer.js): the tool bar and the annotations on the page.
   Sizes follow the zoom through --z, which viewer.js sets on every page. */
.annotation-toolbar{flex:none;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:7px 10px;background:#263342}
.annotation-toolbar .vt-tool{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 11px;border:0;border-radius:8px;background:#40536a;color:#fff;font:13px/1 inherit;cursor:pointer}
.annotation-toolbar .vt-tool:hover:not(:disabled){background:#4b6079}
.annotation-toolbar .vt-tool.active{background:#3269e8}
.annotation-toolbar .vt-tool .vi{width:16px;height:16px}
.annotation-toolbar .vt-remove:hover:not(:disabled){background:#a63c3c}
.annotation-toolbar .vt-sep{width:1px;height:20px;background:#ffffff2a;margin:0 4px}
.annotation-toolbar #toolStatus{color:#d2deec;font-size:12px;margin-left:6px}

.annotation-layer{position:absolute;inset:0;pointer-events:auto;touch-action:none;line-height:1.3;text-align:left}
.annotation-layer[hidden]{display:none}
#pdfHost[data-tool]:not([data-tool=select]) .annotation-layer{cursor:crosshair}
.ann{position:absolute;box-sizing:border-box;cursor:move;font-size:calc(var(--z,1) * 13px);touch-action:none;user-select:none}
.ann:focus-visible{outline:2px solid #fff;outline-offset:1px}
.ann.selected{outline:2px solid #3269e8;outline-offset:1px}
.ann-body{height:100%;overflow:hidden;white-space:pre-wrap;word-break:break-word}
.ann-note,.ann-text{padding:.35em .55em;border:1px solid;box-shadow:0 3px 10px #0004}
.ann-note{background:#fff39a;border-color:#e5be22;color:#312b06}
.ann-note.green{background:#bdf5cf;border-color:#2c9b58;color:#0d3320}
.ann-note.blue{background:#aee9ff;border-color:#2196c5;color:#06283a}
.ann-text{background:#aee9ff;border-color:#2196c5;color:#06283a}
.ann-highlight{background:#ffe94d;mix-blend-mode:multiply;opacity:.65}
.ann-marker{background:#050505}
.ann-preview{position:absolute;box-sizing:border-box;border:2px dashed #3269e8;background:#3269e822;pointer-events:none}
.ann-edit{display:block;width:100%;height:100%;box-sizing:border-box;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;resize:none;outline:0;user-select:text}
.ann.selected:has(.ann-edit){cursor:text}

/* resize handles on every corner and the delete button above the selected annotation */
.ann-h{position:absolute;width:11px;height:11px;box-sizing:border-box;background:#fff;border:2px solid #3269e8;border-radius:50%;box-shadow:0 1px 3px #0005}
.ann-h-nw{left:-7px;top:-7px;cursor:nwse-resize}
.ann-h-ne{right:-7px;top:-7px;cursor:nesw-resize}
.ann-h-sw{left:-7px;bottom:-7px;cursor:nesw-resize}
.ann-h-se{right:-7px;bottom:-7px;cursor:nwse-resize}
.ann-del{position:absolute;right:0;top:-28px;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#b22222;color:#fff;font:700 15px/22px inherit;text-align:center;cursor:pointer;box-shadow:0 1px 4px #0006}
.ann-del:hover{background:#d03030}
.annotations .ann-item{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.annotations .ann-item.active{color:var(--accent-text,var(--blue))}
.annotations .ann-item span{color:var(--muted);font-size:12px}

.annotations{list-style:none;margin:0;padding:0}

/* arrow annotation: the element is the bounding box of the line; the line is an svg drawn by viewer.js */
.ann-arrow{min-width:0;min-height:0;overflow:visible;cursor:move}
.ann-arrow-svg{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.ann-arrow-svg path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.ann-arrow-line{stroke:var(--ann-line,#e5484d);stroke-width:calc(var(--z,1) * 3px)}
.ann-arrow-hit{stroke:transparent;stroke-width:14px;pointer-events:stroke}
.ann-arrow.selected{outline:0}
.ann-arrow.selected .ann-arrow-line{filter:drop-shadow(0 0 2px #3269e8) drop-shadow(0 0 1px #3269e8)}
.ann-preview.ann-preview-line{border-style:dashed;background:transparent}
