/* Office-Werkzeuge – Excel im Browser: Oberfläche (Präfix owx-) */
.owx {
	--owx-acc: #15803d;
	--owx-acc-d: #14532d;
	--owx-acc-l: #dcfce7;
	--owx-acc-xl: #f0fdf4;
	--owx-ink: #1f2937;
	--owx-mut: #5b6574;
	--owx-line: #d8dde3;
	--owx-line-l: #e7eaee;
	--owx-chrome: #f3f5f4;
	--owx-head: #f6f7f8;
	--owx-grid: #e2e5e9;
	--owx-ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: max(480px, 72vh);
	background: #fff;
	color: var(--owx-ink);
	border: 1px solid var(--owx-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -18px rgba(15, 23, 42, .25);
	font: 13px/1.35 var(--owx-ui);
	text-align: left;
	isolation: isolate;
	-webkit-text-size-adjust: 100%;
}
.owx *, .owx *::before, .owx *::after { box-sizing: border-box; }
.owx :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.owx :where(button) { cursor: pointer; margin: 0; }
.owx svg.owx-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.owx :focus-visible { outline: 2px solid var(--owx-acc); outline-offset: 1px; }
.owx-err { padding: 24px; color: #b91c1c; }
.owx-muted { color: var(--owx-mut); }
.owx-small { font-size: 12px; }

/* ---------- Kopf: Registerkarten + Menüband ---------- */
.owx-top { flex: none; background: var(--owx-chrome); border-bottom: 1px solid var(--owx-line); border-radius: 13px 13px 0 0; }
.owx-tabrow { display: flex; align-items: center; gap: 12px; padding: 4px 10px 0; min-height: 36px; }
.owx-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.owx-tabs::-webkit-scrollbar { display: none; }
.owx-tab { position: relative; border: 0; background: none; padding: 7px 12px 8px; border-radius: 8px 8px 0 0; font-weight: 600; color: #3f4a59; white-space: nowrap; }
.owx-tab:hover { background: rgba(21, 128, 61, .07); color: var(--owx-acc-d); }
.owx-tab.on { color: var(--owx-acc); }
.owx-tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--owx-acc); }
.owx-title { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; color: var(--owx-mut); font-size: 12px; white-space: nowrap; }
.owx-tname { font-weight: 650; color: var(--owx-ink); overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.owx-saved { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
.owx-saved svg.owx-i { width: 14px; height: 14px; color: var(--owx-acc); stroke-width: 2.4; }
.owx-sv-error { color: #b45309; }
/* Vorlagen: Herunterladen + Zurücksetzen in der Titelleiste, Hinweis beim ersten Öffnen */
.owx-tplbar { display: flex; align-items: center; gap: 6px; flex: none; padding-bottom: 3px; }
.owx-dlbtn { gap: 6px; padding: 0 10px 0 12px; box-shadow: 0 1px 2px rgba(21, 128, 61, .25); }
.owx-dlbtn svg.owx-dlcar { width: 14px; height: 14px; margin-left: -2px; stroke-width: 2.2; }
.owx-menu-dl { min-width: 230px; }
.owx-tplnote { display: flex; align-items: center; gap: 8px; flex: none; padding: 6px 8px 6px 12px; background: var(--owx-acc-xl); border-bottom: 1px solid #bbf7d0; color: var(--owx-acc-d); font-size: 12.5px; }
.owx-tplnote > svg.owx-i { width: 16px; height: 16px; }
.owx-tplnote > span { flex: 1 1 auto; min-width: 0; }
.owx-tplnx { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: inherit; }
.owx-tplnx:hover { background: rgba(21, 128, 61, .12); }
.owx-tplnx svg.owx-i { width: 15px; height: 15px; }

.owx-ribbon { padding: 0 8px 8px; }
.owx-panel { display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 5px 6px; background: #fff; border: 1px solid var(--owx-line-l); border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.owx-panel[hidden] { display: none; }
.owx-grp { display: flex; align-items: center; gap: 1px; padding: 0 6px; flex: none; position: relative; }
.owx-grp + .owx-grp::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--owx-line-l); }
.owx-b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 32px; padding: 0 6px; border: 1px solid transparent; border-radius: 7px; background: none; color: #2f3a48; white-space: nowrap; position: relative; transition: background-color .12s, color .12s; }
.owx-b:hover:not(:disabled) { background: #eef2f0; color: var(--owx-acc-d); }
.owx-b:active:not(:disabled) { background: #e2e8e5; }
.owx-b.on { background: var(--owx-acc-l); color: var(--owx-acc-d); border-color: #bbf7d0; }
.owx-b:disabled { opacity: .38; cursor: default; }
.owx-bt { padding: 0 9px 0 7px; }
.owx-bl { font-size: 12.5px; font-weight: 500; }
.owx-dd { padding-right: 4px; }
.owx-dd svg.owx-chev, .owx-sarr svg.owx-chev { width: 12px; height: 12px; stroke-width: 2.2; margin-left: -1px; opacity: .7; }
.owx-ddonly { min-width: 20px; padding: 0 3px; margin-left: -3px; }
.owx-li { display: inline-block; width: 18px; text-align: center; font: 700 15px/1 Georgia, "Times New Roman", serif; }
.owx-li-f { font-family: var(--owx-ui); font-weight: 800; }
.owx-li-k { font-style: italic; font-weight: 600; }
.owx-li-u { text-decoration: underline; text-underline-offset: 2px; font-family: var(--owx-ui); font-weight: 600; }
.owx-li-s { text-decoration: line-through; font-family: var(--owx-ui); font-weight: 600; }
.owx-split { display: inline-flex; align-items: center; border-radius: 7px; }
.owx-split > .owx-b:first-child { flex-direction: column; gap: 0; padding: 3px 4px 0; border-radius: 7px 0 0 7px; }
.owx-split > .owx-b:first-child svg.owx-i { width: 16px; height: 16px; }
.owx-split:hover > .owx-b { background: #f3f6f4; }
.owx-sarr { min-width: 16px; padding: 0 2px; border-radius: 0 7px 7px 0; }
.owx-cbar { display: block; width: 16px; height: 4px; border-radius: 1px; margin-top: 1px; background: #dc2626; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.owx-sel { height: 30px; border: 1px solid var(--owx-line); border-radius: 7px; background: #fff; padding: 0 6px; margin: 0 2px; color: var(--owx-ink); }
.owx-sel:hover { border-color: #b7c0ca; }
.owx-sel-font { width: 158px; }
.owx-sel-size { width: 58px; }
.owx-sel-num { width: 148px; }
.owx-fnl { display: inline-flex; align-items: center; gap: 8px; color: var(--owx-mut); font-size: 12px; }
.owx-fnin { height: 30px; width: 200px; border: 1px solid var(--owx-line); border-radius: 7px; padding: 0 8px; color: var(--owx-ink); font-size: 13px; }
.owx-rinfo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--owx-mut); line-height: 1.3; }
.owx-rinfo svg.owx-i { color: var(--owx-acc); }
/* zweizeilige Blöcke + große Knöpfe */
.owx-panel { min-height: 70px; padding: 4px 6px; }
.owx-grp { align-self: stretch; align-items: center; gap: 2px; }
.owx-rows { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.owx-row { display: flex; align-items: center; gap: 1px; }
.owx-row .owx-b { height: 28px; min-width: 28px; padding: 0 5px; }
.owx-row .owx-bt { padding: 0 8px 0 5px; }
.owx-row .owx-sel { height: 28px; margin: 0 2px 0 0; }
.owx-cats .owx-row .owx-b { justify-content: flex-start; }
.owx-b.owx-big { flex-direction: column; justify-content: center; height: 60px; min-width: 54px; max-width: 96px; padding: 4px 7px 3px; gap: 4px; }
.owx-big svg.owx-i { width: 24px; height: 24px; stroke-width: 1.6; }
.owx-big .owx-bl { font-size: 11.5px; line-height: 1.15; white-space: normal; text-align: center; hyphens: manual; }
.owx-big.owx-dd svg.owx-chev { display: none; }
.owx-big.owx-dd .owx-bl::after { content: " ▾"; font-size: 10px; color: #6b7280; }
.owx-rc1 .owx-row .owx-bt[data-lv="1"] .owx-bl, .owx-rc2 .owx-row .owx-bt .owx-bl { display: none; }
.owx-rc1 .owx-row .owx-bt[data-lv="1"], .owx-rc2 .owx-row .owx-bt { padding: 0 5px; }
.owx-rc2 .owx-big { min-width: 46px; padding: 4px 4px 3px; }
.owx-rc2 .owx-big .owx-bl { font-size: 11px; }
.owx-rc1 .owx-grp { padding: 0 4px; }
.owx-rc3 .owx-sel-font { width: 112px; }
.owx-rc3 .owx-sel-num { width: 108px; }
.owx-rc3 .owx-grp { padding: 0 3px; }
.owx-rzoom { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; color: var(--owx-mut); }

/* ---------- Bearbeitungsleiste ---------- */
.owx-fbar { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 4px 8px; border-bottom: 1px solid var(--owx-line); background: #fff; position: relative; z-index: 6; }
.owx-name { flex: none; width: 92px; height: 28px; border: 1px solid var(--owx-line); border-radius: 6px; padding: 0 8px; font-size: 13px; font-variant-numeric: tabular-nums; background: #fff; }
.owx-name:focus { border-color: var(--owx-acc); outline: none; box-shadow: 0 0 0 2px var(--owx-acc-l); }
.owx-fbtns { display: flex; align-items: center; gap: 0; padding-right: 4px; border-right: 1px solid var(--owx-line-l); }
.owx-fb { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: #6b7280; }
.owx-fb:hover { background: #eef2f0; color: var(--owx-acc-d); }
.owx-fbfx svg.owx-i { width: 20px; height: 20px; }
.owx-fxwrap { position: relative; flex: 1 1 auto; min-width: 0; height: 28px; }
.owx-fx, .owx-fxm { position: absolute; left: 0; right: 0; top: 0; height: 28px; margin: 0; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; font: 14px/20px var(--owx-ui); white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; overflow: hidden; letter-spacing: 0; tab-size: 4; }
.owx-fxm { color: var(--owx-ink); background: #fff; z-index: 1; pointer-events: none; }
.owx-fx { z-index: 2; background: transparent; color: transparent; caret-color: #111; resize: none; outline: none; }
.owx-fx::selection { background: rgba(37, 99, 235, .22); color: transparent; }
.owx-fxwrap.owx-focus .owx-fxm { border-color: var(--owx-acc); box-shadow: 0 0 0 2px var(--owx-acc-l); }
.owx-fxwrap.owx-grow .owx-fx, .owx-fxwrap.owx-grow .owx-fxm, .owx-fxbig .owx-fx, .owx-fxbig .owx-fxm { overflow-y: auto; }
.owx-fxwrap.owx-grow .owx-fxm { box-shadow: 0 0 0 2px var(--owx-acc-l), 0 10px 24px -8px rgba(15, 23, 42, .3); }
.owx-fxbig .owx-fbar { height: 98px; align-items: flex-start; }
.owx-fxbig .owx-fxwrap { height: 88px; }
.owx-fxexp { flex: none; }

/* ---------- Raster ---------- */
.owx-body { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }
.owx-gridwrap { flex: 1 1 auto; position: relative; min-width: 0; min-height: 0; }
.owx-grid { position: absolute; inset: 0; overflow: hidden; background: #fff; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.owx-corner { position: absolute; left: 0; top: 0; height: 22px; background: var(--owx-head); border-right: 1px solid var(--owx-line); border-bottom: 1px solid var(--owx-line); z-index: 3; cursor: pointer; }
.owx-corner i { position: absolute; right: 3px; bottom: 3px; width: 0; height: 0; border-style: solid; border-width: 0 0 10px 10px; border-color: transparent transparent #b9c1cb transparent; }
.owx-corner:hover i, .owx-corner.full i { border-bottom-color: var(--owx-acc); }
.owx-colhead { position: absolute; top: 0; right: 0; height: 22px; background: var(--owx-head); border-bottom: 1px solid var(--owx-line); overflow: hidden; z-index: 3; }
.owx-rowhead { position: absolute; left: 0; top: 22px; bottom: 0; background: var(--owx-head); border-right: 1px solid var(--owx-line); overflow: hidden; z-index: 3; }
.owx-colhead .owx-hfix, .owx-colhead .owx-hmain { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.owx-colhead .owx-hfix { left: 0; }
.owx-colhead .owx-hmain { right: 0; }
.owx-rowhead .owx-hfix, .owx-rowhead .owx-hmain { position: absolute; left: 0; right: 0; overflow: hidden; }
.owx-rowhead .owx-hfix { top: 0; }
.owx-rowhead .owx-hmain { bottom: 0; }
.owx-hc, .owx-hr { position: absolute; color: #5b6574; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.owx-hc { top: 0; bottom: 0; line-height: 21px; border-right: 1px solid #e1e4e8; }
.owx-hr { left: 0; right: 0; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e1e4e8; overflow: hidden; }
.owx-hc.sel, .owx-hr.sel { background: #e3efe7; color: var(--owx-acc-d); font-weight: 600; }
.owx-hc.sel { box-shadow: inset 0 -2px 0 var(--owx-acc); }
.owx-hr.sel { box-shadow: inset -2px 0 0 var(--owx-acc); }
.owx-hc.full, .owx-hr.full { background: var(--owx-acc); color: #fff; font-weight: 600; }
.owx-scroll { position: absolute; top: 22px; right: 0; bottom: 0; overflow: auto; z-index: 1; overscroll-behavior: contain; touch-action: pan-x pan-y; scrollbar-width: thin; scrollbar-color: #c3cad2 transparent; }
.owx-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.owx-scroll::-webkit-scrollbar-thumb { background: #c9d0d7; border-radius: 8px; border: 3px solid #fff; }
.owx-scroll::-webkit-scrollbar-thumb:hover { background: #a9b2bc; }
.owx-scroll::-webkit-scrollbar-corner { background: #fff; }
.owx-sizer { pointer-events: none; }
.owx-view { position: absolute; top: 22px; overflow: hidden; pointer-events: none; z-index: 2; }
.owx-pane { position: absolute; overflow: hidden; }
.owx-pin { position: absolute; left: 0; top: 0; font-family: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: #111827; will-change: transform; }
.owx-charts { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; z-index: 5; }
.owx-charts > * { pointer-events: auto; }
.owx-frz { position: absolute; background: #8c97a4; z-index: 6; }
.owx-frz-v { top: 0; bottom: 0; width: 1px; }
.owx-frz-h { left: 0; right: 0; height: 1px; }

.owx-gv, .owx-gh { position: absolute; background: var(--owx-grid); }
.owx-gv { width: 1px; }
.owx-gh { height: 1px; }
.owx-c { position: absolute; display: flex; align-items: flex-end; justify-content: flex-start; padding: 0 3px 1px; overflow: hidden; white-space: pre; line-height: 1.2; }
.owx-c.owx-xc { justify-content: center; text-align: center; }
.owx-c.owx-xr { justify-content: flex-end; text-align: right; }
.owx-c.owx-vt { align-items: flex-start; padding-top: 1px; }
.owx-c.owx-vm { align-items: center; }
.owx-c.owx-wr { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.owx-bd { position: absolute; }
.owx-showf .owx-c { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: .92em; }

/* Auswahl */
.owx-selb { position: absolute; background: rgba(21, 128, 61, .11); }
.owx-selr { position: absolute; border: 2px solid var(--owx-acc); margin: -1px 0 0 -1px; padding: 0; }
.owx-act { position: absolute; border: 2px solid var(--owx-acc); }
.owx-act-in { border: 1px solid rgba(21, 128, 61, .45); }
.owx-grid:not(:focus-within) .owx-act, .owx-grid:not(:focus-within) .owx-selr { border-color: #4b8f63; }
.owx-fillh { position: absolute; width: 8px; height: 8px; background: var(--owx-acc); border: 1px solid #fff; pointer-events: auto; cursor: crosshair; touch-action: none; z-index: 3; }
.owx-fillh::before { content: ""; position: absolute; inset: -7px; }
.owx-fillp { position: absolute; border: 1.5px dashed #6b7280; }
.owx-refhl { position: absolute; border: 2px solid; border-radius: 1px; }
.owx-ants { position: absolute; background:
	linear-gradient(90deg, var(--owx-acc) 50%, transparent 50%) repeat-x 0 0 / 8px 2px,
	linear-gradient(90deg, var(--owx-acc) 50%, transparent 50%) repeat-x 0 100% / 8px 2px,
	linear-gradient(0deg, var(--owx-acc) 50%, transparent 50%) repeat-y 0 0 / 2px 8px,
	linear-gradient(0deg, var(--owx-acc) 50%, transparent 50%) repeat-y 100% 0 / 2px 8px;
	animation: owxAnts .5s linear infinite; }
@keyframes owxAnts { to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; } }
.owx-fbtn { position: absolute; pointer-events: auto; cursor: pointer; border: 1px solid #c4cbd3; border-radius: 3px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); z-index: 2; }
.owx-fbtn::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -2px 0 0 -4px; border: 4px solid transparent; border-top: 5px solid #4b5563; border-bottom: 0; }
.owx-fbtn:hover { border-color: var(--owx-acc); }
.owx-fbtn.on { background: var(--owx-acc-l); border-color: var(--owx-acc); }
.owx-fbtn.on::after { width: 8px; height: 6px; border: 0; margin: -3px 0 0 -4px; background: var(--owx-acc); clip-path: polygon(0 0, 100% 0, 62% 55%, 62% 100%, 38% 100%, 38% 55%); }
.owx-vbtn { position: absolute; width: 18px; pointer-events: auto; cursor: pointer; background: #f3f4f6; border: 1px solid #c4cbd3; border-radius: 0 3px 3px 0; z-index: 3; }
.owx-vbtn::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -2px 0 0 -4px; border: 4px solid transparent; border-top: 5px solid #374151; border-bottom: 0; }
.owx-vbtn:hover { background: var(--owx-acc-l); border-color: var(--owx-acc); }

/* Zell-Editor */
.owx-edwrap { position: absolute; left: 0; top: 0; width: 2px; height: 2px; z-index: 4; opacity: 0; pointer-events: none; overflow: hidden; background: #fff; }
.owx-edwrap.on { opacity: 1; pointer-events: auto; border: 2px solid var(--owx-acc); margin: -1px 0 0 -1px; box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .35); border-radius: 1px; }
.owx-ed, .owx-edm { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; padding: 0 3px; line-height: 1.2; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; overflow: hidden; letter-spacing: 0; tab-size: 4; text-align: left; }
.owx-edwrap.on .owx-ed, .owx-edwrap.on .owx-edm { padding-top: 1px; }
.owx-edm { pointer-events: none; color: #111827; z-index: 1; }
.owx-ed { z-index: 2; background: transparent; resize: none; outline: none; caret-color: #111; color: transparent; }
.owx-edwrap:not(.on) .owx-ed { color: transparent; caret-color: transparent; }
.owx-ed::selection { background: rgba(37, 99, 235, .22); color: transparent; }
.owx-tstr { color: #a16207; }
.owx-terr { color: #b91c1c; }
.owx-tfn { color: #0f5132; }

.owx-drop { position: absolute; inset: 0; display: none; place-items: center; z-index: 20; background: rgba(240, 253, 244, .9); border: 2px dashed var(--owx-acc); border-radius: 6px; color: var(--owx-acc-d); }
.owx-drop.on { display: grid; }
.owx-drop div { display: grid; justify-items: center; gap: 4px; text-align: center; }
.owx-drop svg.owx-i { width: 40px; height: 40px; stroke-width: 1.5; }
.owx-drop b { font-size: 16px; }
.owx-meas { position: absolute; left: -9999px; top: 0; visibility: hidden; line-height: 1.2; padding: 1px 3px; word-break: break-word; overflow-wrap: anywhere; }

/* ---------- Blatt-Register + Statusleiste ---------- */
.owx-sheetbar { flex: none; display: flex; align-items: stretch; gap: 4px; height: 34px; padding: 0 8px; background: var(--owx-chrome); border-top: 1px solid var(--owx-line); }
.owx-sadd { flex: none; align-self: center; display: inline-grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 6px; background: none; color: #4b5563; }
.owx-sadd:hover { background: #e5ebe7; color: var(--owx-acc-d); }
.owx-slist { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.owx-slist::-webkit-scrollbar { display: none; }
.owx-st { position: relative; flex: none; border: 0; background: none; padding: 0 16px; margin-top: -1px; font-size: 12.5px; color: #3f4a59; border-radius: 0 0 8px 8px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.owx-st:hover { background: #e9eeeb; }
.owx-st.on { background: #fff; color: var(--owx-acc); font-weight: 650; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.owx-st.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--owx-acc); }
.owx-st.owx-dropt { box-shadow: inset 3px 0 0 var(--owx-acc); }
.owx-stin { height: 24px; border: 1px solid var(--owx-acc); border-radius: 4px; padding: 0 6px; font-size: 12.5px; }
.owx-status { flex: none; display: flex; align-items: center; gap: 14px; height: 28px; padding: 0 10px; background: var(--owx-chrome); border-top: 1px solid var(--owx-line-l); border-radius: 0 0 13px 13px; font-size: 12px; color: var(--owx-mut); white-space: nowrap; }
.owx-smode { min-width: 70px; }
.owx-stats { flex: 1 1 auto; display: flex; justify-content: flex-end; gap: 16px; overflow: hidden; }
.owx-stats b { color: var(--owx-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.owx-szoom { display: inline-flex; align-items: center; gap: 4px; }
.owx-zb { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: #4b5563; }
.owx-zb svg.owx-i { width: 14px; height: 14px; }
.owx-zb:hover { background: #e5ebe7; }
.owx-zr { width: 96px; accent-color: var(--owx-acc); height: 16px; }
.owx-zl { border: 0; background: none; min-width: 44px; padding: 2px 4px; border-radius: 5px; font-size: 12px; color: var(--owx-mut); font-variant-numeric: tabular-nums; }
.owx-zl:hover { background: #e5ebe7; }

/* ---------- Schwebendes: Menüs, Listen, Hinweise ---------- */
.owx-pop, .owx-ac, .owx-tip, .owx-vlist { position: fixed; z-index: 100020; }
.owx-menu, .owx-fmenu { min-width: 220px; max-width: min(360px, calc(100vw - 16px)); padding: 6px; background: #fff; border: 1px solid var(--owx-line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .08); overflow-y: auto; font: 13px/1.3 var(--owx-ui); color: var(--owx-ink); }
.owx-menu-fn { max-height: 380px; min-width: 200px; }
.owx-mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 5px 10px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--owx-ink); }
.owx-mi:hover:not(:disabled), .owx-mi:focus-visible { background: #eef5f0; color: var(--owx-acc-d); outline: none; }
.owx-mi:disabled { opacity: .4; cursor: default; }
.owx-mi .owx-i { width: 18px; height: 18px; color: #4b5563; }
.owx-mi span.owx-i { display: inline-block; }
.owx-mi.on { font-weight: 600; }
.owx-mi.on .owx-i { color: var(--owx-acc); }
.owx-ml { flex: 1 1 auto; }
.owx-mk { color: #8a94a3; font-size: 11.5px; margin-left: 12px; }
.owx-msep { height: 1px; margin: 5px 4px; background: var(--owx-line-l); }
.owx-mcustom { padding: 2px; }
.owx-pal { display: grid; gap: 8px; padding: 4px; }
.owx-palt { font-weight: 600; font-size: 12px; color: var(--owx-mut); }
.owx-palnone { border: 1px solid var(--owx-line); background: #fff; border-radius: 6px; padding: 5px 8px; text-align: left; }
.owx-palnone:hover { border-color: var(--owx-acc); }
.owx-palg { display: grid; grid-template-columns: repeat(10, 20px); gap: 4px; }
.owx-sw { width: 20px; height: 20px; padding: 0; border: 1px solid rgba(0, 0, 0, .14); border-radius: 4px; }
.owx-sw:hover { transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--owx-acc); }
.owx-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--owx-acc); }
.owx-palmore { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--owx-mut); cursor: pointer; }
.owx-palmore input { width: 36px; height: 24px; padding: 0; border: 1px solid var(--owx-line); border-radius: 4px; background: #fff; }
.owx-fmenu { width: 270px; display: grid; gap: 2px; }
.owx-fsearch { margin: 4px 2px; }
.owx-flist { max-height: 220px; overflow: auto; border: 1px solid var(--owx-line-l); border-radius: 8px; padding: 4px; margin: 0 2px; }
.owx-fi { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owx-fi:hover { background: #f3f6f4; }
.owx-fi input { accent-color: var(--owx-acc); margin: 0; }
.owx-fall { font-weight: 600; }
.owx-fbtns { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 2px 2px; }
.owx-vlist { min-width: 140px; max-height: 260px; overflow: auto; padding: 4px; background: #fff; border: 1px solid var(--owx-line); border-radius: 8px; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .35); font: 13px/1.3 var(--owx-ui); }
.owx-vli { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: 5px; background: none; text-align: left; color: var(--owx-ink); }
.owx-vli:hover, .owx-vli:focus { background: #eef5f0; outline: none; }
.owx-vli.on { font-weight: 650; color: var(--owx-acc-d); }
.owx-ac { display: none; min-width: 260px; max-width: 420px; padding: 4px; background: #fff; border: 1px solid var(--owx-line); border-radius: 8px; box-shadow: 0 14px 34px -10px rgba(15, 23, 42, .35); font: 13px/1.3 var(--owx-ui); }
.owx-ac.on { display: block; }
.owx-aci { display: grid; gap: 1px; padding: 5px 9px; border-radius: 5px; cursor: pointer; }
.owx-aci b { font-weight: 650; letter-spacing: .01em; }
.owx-aci span { color: var(--owx-mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owx-aci.on { background: var(--owx-acc-l); }
.owx-aci.on b { color: var(--owx-acc-d); }
.owx-tip { display: none; max-width: 460px; padding: 6px 10px; background: #fff; border: 1px solid var(--owx-line); border-radius: 8px; box-shadow: 0 10px 26px -10px rgba(15, 23, 42, .3); font: 12.5px/1.4 var(--owx-ui); color: var(--owx-ink); pointer-events: none; }
.owx-tip.on { display: block; }
.owx-tip.owx-sig { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; }
.owx-tip u { text-decoration: none; font-weight: 700; color: var(--owx-acc-d); background: var(--owx-acc-l); border-radius: 3px; padding: 0 2px; }
.owx-tip small { display: block; margin-top: 3px; font-family: var(--owx-ui); color: var(--owx-mut); font-size: 12px; }
.owx-toast { position: absolute; left: 50%; bottom: 74px; transform: translate(-50%, 10px); max-width: min(560px, calc(100% - 32px)); padding: 9px 16px; background: #1f2937; color: #fff; border-radius: 10px; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 30; text-align: center; }
.owx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.owx-toast.owx-toastw { text-align: left; }
.owx-toastl { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }
.owx-toastl li + li { margin-top: 2px; }

/* Dialoge */
.owx-ov { position: fixed; inset: 0; z-index: 100030; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .38); animation: owxFade .12s ease-out; }
@keyframes owxFade { from { opacity: 0; } }
.owx-dlg { width: min(460px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5); font: 13.5px/1.45 var(--owx-ui); color: var(--owx-ink); }
.owx-dlg.owx-wide { width: min(640px, 100%); }
.owx-dh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px 20px; }
.owx-dh h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--owx-ink); }
.owx-x { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: none; color: #6b7280; }
.owx-x:hover { background: #f1f5f3; color: var(--owx-ink); }
.owx-db { padding: 4px 20px 8px; overflow: auto; }
.owx-db p { margin: 0 0 10px; }
.owx-df { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 20px 18px; }
.owx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid var(--owx-line); border-radius: 8px; background: #fff; color: var(--owx-ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.owx-btn:hover:not(:disabled) { border-color: #aeb8c3; background: #f8faf9; }
.owx-btn:disabled { opacity: .45; cursor: default; }
.owx-btn svg.owx-i { width: 16px; height: 16px; }
.owx-btn.owx-pri { background: var(--owx-acc); border-color: var(--owx-acc); color: #fff; }
.owx-btn.owx-pri:hover:not(:disabled) { background: #166534; border-color: #166534; }
.owx-btn.owx-ghost { border-color: transparent; background: none; color: var(--owx-mut); }
.owx-btn.owx-ghost:hover:not(:disabled) { background: #f1f5f3; color: var(--owx-ink); }
.owx-btn.owx-small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.owx-form { display: grid; gap: 10px; }
.owx-fl { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: #374151; }
.owx-in { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--owx-line); border-radius: 8px; background: #fff; color: var(--owx-ink); font-weight: 400; font-size: 13.5px; }
.owx-in:focus { border-color: var(--owx-acc); outline: none; box-shadow: 0 0 0 3px var(--owx-acc-l); }
.owx-in-s { height: 28px; width: auto; padding: 0 6px; font-size: 12.5px; }
.owx-chk, .owx-radios label, .owx-fopts label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.owx-chk input, .owx-radios input, .owx-fopts input { accent-color: var(--owx-acc); }
.owx-radios { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.owx-levels { display: grid; gap: 8px; }
.owx-level { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 8px; align-items: center; font-size: 12.5px; color: var(--owx-mut); }
.owx-fprev { padding: 8px 10px; background: var(--owx-acc-xl); border-radius: 8px; }
/* Zellen formatieren (Strg+1) */
.owx-fcells { grid-template-columns: 1fr 1fr; align-items: start; }
.owx-fcs { margin: 0; padding: 8px 12px 10px; border: 1px solid var(--owx-line-l); border-radius: 10px; display: grid; gap: 8px; min-width: 0; }
.owx-fcs legend { padding: 0 4px; font-size: 12px; font-weight: 700; color: var(--owx-acc-d); }
.owx-fcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.owx-fcrow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.owx-fck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; }
.owx-fck input[type="color"] { width: 36px; height: 26px; padding: 0 2px; border: 1px solid var(--owx-line); border-radius: 6px; background: #fff; }
@media (max-width: 560px) { .owx-fcells { grid-template-columns: 1fr; } }
.owx-db code, .owx-lesson code { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: .92em; background: #f1f5f3; padding: 1px 5px; border-radius: 4px; }
.owx-fnlist { display: grid; max-height: 260px; overflow: auto; border: 1px solid var(--owx-line-l); border-radius: 8px; padding: 4px; }
.owx-fni { display: flex; justify-content: space-between; gap: 10px; padding: 6px 9px; border: 0; border-radius: 6px; background: none; text-align: left; }
.owx-fni span { color: var(--owx-mut); font-size: 12px; }
.owx-fni:hover { background: #f3f6f4; }
.owx-fni.on { background: var(--owx-acc-l); color: var(--owx-acc-d); }
.owx-fndesc { min-height: 40px; font-size: 12.5px; }

/* Suchen & Ersetzen */
.owx-find { position: absolute; top: 30px; right: 22px; z-index: 25; width: 330px; max-width: calc(100% - 24px); display: grid; gap: 9px; padding: 12px 14px 14px; background: #fff; border: 1px solid var(--owx-line); border-radius: 12px; box-shadow: 0 20px 44px -16px rgba(15, 23, 42, .4); }
.owx-findh { display: flex; align-items: center; gap: 4px; }
.owx-findh .owx-x { margin-left: auto; }
.owx-ftab { border: 0; background: none; padding: 5px 10px; border-radius: 7px; font-weight: 600; color: var(--owx-mut); }
.owx-ftab.on { background: var(--owx-acc-l); color: var(--owx-acc-d); }
.owx-find .owx-ronly { display: none; }
.owx-find.owx-rmode .owx-ronly { display: grid; }
.owx-find.owx-rmode .owx-fbtns .owx-ronly { display: inline-flex; }
.owx-fopts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #374151; }
.owx-find .owx-fbtns { padding: 2px 0 0; justify-content: flex-start; flex-wrap: wrap; }
.owx-fmsg { min-height: 16px; font-size: 12.5px; color: var(--owx-mut); }

/* ---------- Lektions-Modus ---------- */
.owx.owx-mode-lesson { height: max(560px, 80vh); }
.owx-lesson { flex: none; width: 340px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 10px; border-left: 1px solid var(--owx-line); background: linear-gradient(180deg, #f7fbf8, #fff 160px); display: flex; flex-direction: column; gap: 9px; }
.owx-lesson > * { flex-shrink: 0; }  /* nichts zusammenquetschen – lieber scrollen */
.owx-lesson .owx-lbar { display: none; }
.owx-lsol { margin-top: 6px; }
.owx-lesson .owx-ltask { padding: 10px 12px; font-size: 13.5px; }
.owx-lhead { display: flex; align-items: center; gap: 10px; }
.owx-lhead > svg.owx-i { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--owx-acc-l); color: var(--owx-acc-d); stroke-width: 1.7; }
.owx-lkick { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--owx-acc); }
.owx-ltitle { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 750; color: var(--owx-ink); }
.owx-lintro { margin: 0; color: var(--owx-mut); font-size: 13px; }
.owx-lprog { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--owx-mut); }
.owx-ldots { display: flex; gap: 5px; flex-wrap: wrap; }
.owx-ldot { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1.5px solid #cfd6dd; border-radius: 50%; background: #fff; font-size: 11.5px; font-weight: 700; color: var(--owx-mut); }
.owx-ldot svg.owx-i { width: 13px; height: 13px; stroke-width: 3; }
.owx-ldot.cur { border-color: var(--owx-acc); color: var(--owx-acc); box-shadow: 0 0 0 3px var(--owx-acc-l); }
.owx-ldot.done { background: var(--owx-acc); border-color: var(--owx-acc); color: #fff; }
.owx-lbar { height: 6px; background: #e7ece9; border-radius: 6px; overflow: hidden; }
.owx-lbar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, var(--owx-acc)); border-radius: 6px; transition: width .3s; }
.owx-ltask { padding: 12px 14px; background: #fff; border: 1px solid var(--owx-line-l); border-radius: 12px; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.owx-ltask p { margin: 0 0 8px; }
.owx-ltask p:last-child { margin: 0; }
.owx-lfb { display: none; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.owx-lfb.on { display: flex; }
.owx-lfb > svg.owx-i { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke-width: 2.4; }
.owx-lfb-ok { background: #ecfdf3; color: #14532d; border: 1px solid #a7f3c0; }
.owx-lfb-bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.owx-lfb-hint { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }
.owx-lfb-info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.owx-lbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.owx-lbtns .owx-btn { width: 100%; }
.owx-lbtns .owx-pri { grid-column: 1 / -1; min-height: 38px; font-size: 14px; }
.owx-lnav { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--owx-line-l); }
.owx-lnav .owx-btn { padding: 0 8px; }
.owx-lnav .owx-pri { color: #fff; }
.owx-ldone { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--owx-acc); color: #fff; font-size: 13.5px; }
.owx-ldone svg.owx-i { width: 22px; height: 22px; stroke-width: 2.6; flex: none; }

/* ---------- Vollbild ---------- */
.owx.owx-fs { position: fixed; inset: 0; z-index: 100000; width: 100vw; height: 100vh !important; height: 100dvh !important; border: 0; border-radius: 0; box-shadow: none; }
.owx.owx-fs .owx-top { border-radius: 0; }
.owx.owx-fs .owx-status { border-radius: 0; }
html.owx-noscroll, html.owx-noscroll body { overflow: hidden !important; }

/* ---------- Schmal / Mobil ---------- */
.owx-narrow .owx-title .owx-saved span { display: none; }
.owx-narrow .owx-tname { max-width: 120px; }
.owx-narrow .owx-panel { border-radius: 8px; }
.owx-narrow .owx-ribbon { padding: 0 6px 6px; }
.owx-narrow .owx-name { width: 70px; }
.owx-narrow .owx-fbtns .owx-fb:not(.owx-fbfx) { display: none; }
.owx-narrow .owx-fbtns { border: 0; padding: 0; }
.owx-narrow .owx-fxexp { display: none; }
.owx-narrow .owx-body { flex-direction: column; }
.owx-narrow .owx-lesson { order: -1; width: auto; max-height: none; border-left: 0; border-bottom: 1px solid var(--owx-line); padding: 12px 14px; gap: 10px; }
.owx-narrow.owx-mode-lesson { height: auto; }
.owx-narrow.owx-mode-lesson .owx-gridwrap { flex: none; height: 58vh; min-height: 320px; }
.owx-narrow .owx-zr { display: none; }
.owx-narrow .owx-stats { gap: 10px; }
.owx-narrow .owx-smode { min-width: 0; }
.owx-narrow .owx-tplreset span, .owx-narrow.owx-mode-template .owx-saved { display: none; }
.owx-narrow .owx-tplreset { padding: 0 7px; }
.owx-tiny .owx-dlbtn span { display: none; }
.owx-tiny .owx-dlbtn { padding: 0 8px; }
.owx-tiny .owx-tname { display: none; }
.owx-tiny .owx-tabrow { padding: 4px 6px 0; gap: 6px; }
.owx-tiny .owx-tab { padding: 7px 9px 8px; }
.owx-tiny .owx-stats span:first-child { display: none; }
.owx-tiny .owx-smode { display: none; }
.owx-tiny .owx-sel-font { width: 120px; }
.owx-tiny .owx-lbtns { grid-template-columns: 1fr 1fr; }
@media (pointer: coarse) {
	.owx-b { height: 36px; min-width: 36px; }
	.owx-fillh { width: 12px; height: 12px; }
	.owx-st { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.owx-ants { animation: none; }
	.owx *, .owx-ov { transition: none !important; animation: none !important; }
}

/* ---------- Druck ---------- */
.owx-print { display: none; }
/* Druck-Tabelle (auch für die Export-Seite der Vorlagen sichtbar nutzbar). Zellrahmen ohne Standardrahmen,
   damit eigene Rahmen beim Zusammenfallen (border-collapse) nicht vom Nachbarn überdeckt werden. */
.owx-pt { border-collapse: collapse; table-layout: fixed; font: 10pt/1.25 Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #000; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.owx-pt td { padding: 1px 4px; overflow: hidden; white-space: pre; vertical-align: bottom; border: 0; }
.owx-ptg td { border: 1px inset #d4d4d4; }
.owx-pt tr { page-break-inside: avoid; break-inside: avoid; }
.owx-ph { font: 600 9pt/1.3 "Segoe UI", Arial, sans-serif; color: #5b6574; margin: 0 0 4px; }
.owx-pchart { background: #fff; }
.owx-pchart svg { display: block; width: 100%; height: 100%; }
.owx-psheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
	html.owx-printing body > *:not(.owx-print) { display: none !important; }
	html.owx-printing body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	html.owx-printing .owx-print { display: block !important; }
	@page { margin: 12mm; }
}

/* ==================== extras.js (Diagramme, bedingte Formatierung, Pivot, Duplikate, Funktions-Assistent) ==================== */
/* Diagramme im Raster */
.owx-chart { position: absolute; background: #fff; border: 1px solid #d5dbe1; border-radius: 6px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 20px -12px rgba(15, 23, 42, .28); cursor: move; outline: none; touch-action: none; -webkit-user-select: none; user-select: none; }
.owx-chsvg { position: absolute; inset: 0; overflow: hidden; border-radius: 5px; }
.owx-chsvg svg { display: block; width: 100%; height: 100%; }
.owx-chart.sel { border-color: var(--owx-acc); box-shadow: 0 0 0 1px var(--owx-acc), 0 12px 28px -14px rgba(15, 23, 42, .4); }
.owx-chart.owx-chdrag { opacity: .93; }
.owx-chh { display: none; position: absolute; width: calc(10px / var(--owx-z, 1)); height: calc(10px / var(--owx-z, 1)); margin: calc(-5px / var(--owx-z, 1)) 0 0 calc(-5px / var(--owx-z, 1)); background: #fff; border: calc(1.6px / var(--owx-z, 1)) solid var(--owx-acc); border-radius: 50%; z-index: 2; }
.owx-chart.sel .owx-chh { display: block; }
.owx-chh-nw { left: 0; top: 0; cursor: nwse-resize; }
.owx-chh-n { left: 50%; top: 0; cursor: ns-resize; }
.owx-chh-ne { left: 100%; top: 0; cursor: nesw-resize; }
.owx-chh-e { left: 100%; top: 50%; cursor: ew-resize; }
.owx-chh-se { left: 100%; top: 100%; cursor: nwse-resize; }
.owx-chh-s { left: 50%; top: 100%; cursor: ns-resize; }
.owx-chh-sw { left: 0; top: 100%; cursor: nesw-resize; }
.owx-chh-w { left: 0; top: 50%; cursor: ew-resize; }
.owx-chtools { display: none; position: absolute; top: 6px; right: 6px; gap: 2px; padding: 2px; background: rgba(255, 255, 255, .97); border: 1px solid var(--owx-line); border-radius: 8px; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .3); z-index: 3; transform-origin: 100% 0; transform: scale(calc(1 / var(--owx-z, 1))); cursor: default; }
.owx-chart.sel .owx-chtools { display: flex; }
.owx-chtools button { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: #4b5563; }
.owx-chtools button:hover { background: #eef5f0; color: var(--owx-acc-d); }
.owx-chtools button[data-a="del"]:hover { background: #fef2f2; color: #b91c1c; }
.owx .owx-chtools svg.owx-i { width: 17px; height: 17px; }

/* Menüs mit Überschriften und Spalten */
.owx-mhead { padding: 8px 10px 3px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--owx-acc); }
.owx-menu.owx-mcols { width: 560px; max-width: calc(100vw - 16px); }
.owx-mcolrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.owx-mcol + .owx-mcol { border-left: 1px solid var(--owx-line-l); padding-left: 6px; }
.owx-mfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--owx-line-l); }
.owx-cfmenu .owx-mi { min-height: 30px; padding: 4px 10px; }
.owx-cfmenu .owx-mi svg.owx-i { color: #4b5563; }

/* Breite Dialoge */
.owx-dlg.owx-xwide { width: min(880px, 100%); }
.owx-dlg.owx-xwide, .owx-dlg.owx-cfq-dlg, .owx-dlg.owx-cfr-dlg, .owx-dlg.owx-dddlgw, .owx-dlg.owx-fw1dlg, .owx-dlg.owx-fw2dlg { max-width: calc(100vw - 32px); min-width: 0; }
.owx-cmain > *, .owx-cdlg > *, .owx-fw2 > * { min-width: 0; }
.owx-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.owx-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.owx-mono { font-family: Consolas, "Cascadia Mono", "Courier New", monospace; }

/* Diagramm-Dialog */
.owx-cdlg { display: grid; gap: 14px; padding-top: 4px; }
.owx-ctypes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.owx-ctype { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 7px; border: 1px solid var(--owx-line); border-radius: 10px; background: #fff; color: #4b5563; font-size: 12.5px; font-weight: 600; }
.owx .owx-ctype svg.owx-i { width: 26px; height: 26px; stroke-width: 1.6; }
.owx-ctype:hover { border-color: #aeb8c3; background: #f8faf9; }
.owx-ctype.on { border-color: var(--owx-acc); background: var(--owx-acc-xl); color: var(--owx-acc-d); box-shadow: inset 0 0 0 1px var(--owx-acc); }
.owx-cmain { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.owx-cprevw { display: grid; gap: 6px; }
.owx-cprev { border: 1px solid var(--owx-line-l); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.owx-cprev svg { display: block; width: 100%; height: auto; }
.owx-chint { font-size: 12px; min-height: 16px; }
.owx-cform { gap: 11px; }
.owx-cchk { display: grid; gap: 5px; font-size: 13px; }
.owx-pals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
.owx-pal1 { display: flex; height: 26px; padding: 4px; border: 1px solid var(--owx-line); border-radius: 8px; background: #fff; }
.owx-pal1 i { flex: 1; }
.owx-pal1 i:first-child { border-radius: 3px 0 0 3px; }
.owx-pal1 i:last-child { border-radius: 0 3px 3px 0; }
.owx-pal1:hover { border-color: #aeb8c3; }
.owx-pal1.on { border-color: var(--owx-acc); box-shadow: 0 0 0 2px var(--owx-acc-l); }
.owx-isgantt .owx-xg { display: none; }

/* Bedingte Formatierung */
.owx-cfq-dlg { width: min(470px, 100%); }
.owx-cfr-dlg { width: min(540px, 100%); }
.owx-cfdlg { gap: 12px; }
.owx-cfdesc { display: grid; gap: 8px; }
.owx-cfdesc:empty { display: none; }
.owx-cfq { margin: 0 !important; font-size: 13.5px; }
.owx-cfline2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.owx-cfline2 .owx-in { flex: 1 1 130px; width: auto; }
.owx-cfline2 .owx-in.owx-cfn { flex: 0 0 96px; }
.owx-cfund { color: var(--owx-mut); font-size: 13px; }
.owx-cffmt { display: grid; gap: 4px; }
.owx-cffmt[hidden] { display: none; }
.owx-cfpick { display: grid; gap: 8px; }
.owx-cfrow { display: flex; gap: 8px; align-items: center; }
.owx-cfrow select { flex: 1 1 auto; min-width: 0; }
.owx-cfs { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; height: 32px; padding: 0 10px; border: 1px solid var(--owx-line); border-radius: 6px; background: #fff; font: 13px Calibri, Carlito, "Segoe UI", sans-serif; color: #111827; white-space: nowrap; }
.owx-cfcustom { display: grid; gap: 8px; padding: 10px 12px; background: #f8faf9; border: 1px solid var(--owx-line-l); border-radius: 10px; }
.owx-cfcustom[hidden] { display: none; }
.owx-cfline { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 12.5px; }
.owx-cfline > span:first-child { width: 78px; font-weight: 600; color: #374151; }
.owx-cfsw { display: flex; gap: 4px; flex-wrap: wrap; }
.owx-sw.owx-swnone { background: linear-gradient(135deg, #fff 44%, #dc2626 44%, #dc2626 56%, #fff 56%) !important; }
.owx-cfline input[type="color"] { width: 30px; height: 22px; padding: 0; border: 1px solid var(--owx-line); border-radius: 4px; background: #fff; cursor: pointer; }
.owx-cfrange.owx-cfrq { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-weight: 400; color: var(--owx-mut); }
.owx-cfrq .owx-in { height: 30px; font-size: 13px; }
.owx-cfmitl { font-weight: 600; }
.owx-cfbars, .owx-cfscales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
.owx-cfbar, .owx-cfscale { display: grid; gap: 5px; padding: 7px; border: 1px solid var(--owx-line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 400; color: #374151; text-align: left; }
.owx-cfbar i { display: block; width: 75%; height: 16px; border-radius: 2px; }
.owx-cfscale i { display: block; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .06); }
.owx-cfbar:hover, .owx-cfscale:hover { border-color: #aeb8c3; }
.owx-cfbar.on, .owx-cfscale.on { border-color: var(--owx-acc); box-shadow: 0 0 0 2px var(--owx-acc-l); }
.owx-cfman { gap: 10px; }
.owx-cfmtop { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.owx-fl.owx-inl { min-width: 210px; }
.owx-cfmbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.owx-btn.owx-ico { padding: 0 7px; }
.owx-cftable { border: 1px solid var(--owx-line); border-radius: 10px; overflow: auto; max-height: 320px; min-height: 120px; }
.owx-cfth, .owx-cftr { display: grid; grid-template-columns: minmax(0, 1.35fr) 132px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px; }
.owx-cfth { position: sticky; top: 0; z-index: 1; background: #f6f7f8; font-size: 12px; font-weight: 700; color: var(--owx-mut); border-bottom: 1px solid var(--owx-line); }
.owx-cftr { border-bottom: 1px solid var(--owx-line-l); cursor: pointer; }
.owx-cftr:hover { background: #f8faf9; }
.owx-cftr.on { background: var(--owx-acc-xl); box-shadow: inset 3px 0 0 var(--owx-acc); }
.owx-cfrd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owx-cftr .owx-cfs { min-width: 0; width: 100%; height: 26px; font-size: 12px; }
.owx-cftr .owx-in-s { width: 100%; }
.owx-cfempty { padding: 22px 12px; color: var(--owx-mut); text-align: center; }
.owx-cfmandlg .owx-df .owx-btn:nth-child(2) { order: -1; margin-right: auto; color: #b91c1c; }

/* PivotTable */
.owx-pvdlg { gap: 12px; }
.owx-radios.owx-pvtgt { gap: 8px 18px; }
.owx-ddwarn .owx-radios { flex-direction: column; align-items: flex-start; }
.owx-pvtgt .owx-in-s { width: 90px; }
.owx-pvprev { border: 1px solid var(--owx-line-l); border-radius: 10px; padding: 8px; max-height: 270px; overflow: auto; background: #fff; font-weight: 400; }
.owx-pvt { border-collapse: collapse; font: 13px/1.3 Calibri, Carlito, "Segoe UI", sans-serif; color: #111827; }
.owx-pvt td { padding: 4px 12px; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.owx-pvt td.n { text-align: right; font-variant-numeric: tabular-nums; }
.owx-pvt td.h { background: #dcfce7; color: #14532d; }
.owx-pvt td.t { border-top: 1.5px solid var(--owx-acc); background: #f0fdf4; }
.owx-pvmore { color: var(--owx-mut); font-style: italic; text-align: center !important; }
.owx-pverr { color: #b91c1c; padding: 6px; }

/* Duplikate entfernen */
.owx-dddlgw { width: min(500px, 100%); }
.owx-ddtop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.owx-ddhdr { margin-left: auto; font-size: 13px; }
.owx-ddcols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; max-height: 240px; overflow: auto; padding: 8px 12px; border: 1px solid var(--owx-line-l); border-radius: 10px; }
.owx-ddc { padding: 4px 0; }
.owx-ddres { font-size: 14px; }

/* Funktions-Assistent */
.owx-fw1dlg { width: min(520px, 100%); }
.owx-fw1 .owx-fnlist { height: 236px; align-content: start; }
.owx-fw1 .owx-fndesc { padding: 10px 12px; background: var(--owx-acc-xl); border-radius: 8px; min-height: 62px; font-size: 12.5px; }
.owx-fnnone { padding: 12px; }
.owx-ov.owx-ov-free { background: transparent; pointer-events: none; place-items: start end; padding: 118px 28px 16px; animation: none; }
.owx-ov-free .owx-dlg { pointer-events: auto; max-height: calc(100vh - 134px); border: 1px solid var(--owx-line); box-shadow: 0 26px 60px -18px rgba(15, 23, 42, .45), 0 2px 8px rgba(15, 23, 42, .1); }
.owx-fw2dlg { width: min(580px, 100%); }
.owx-fw2 { gap: 10px; }
.owx-fwsig { font: 13px/1.5 Consolas, "Cascadia Mono", "Courier New", monospace; padding: 7px 10px; background: #f6f7f8; border-radius: 8px; color: #374151; overflow-wrap: anywhere; }
.owx-fwsig span.on { background: var(--owx-acc-l); color: var(--owx-acc-d); font-weight: 700; border-radius: 3px; padding: 0 2px; }
.owx-fwargs { display: grid; gap: 6px; max-height: 300px; overflow: auto; padding: 2px; }
.owx-fwarg { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 150px); gap: 8px; align-items: center; }
.owx-fwn { font-size: 12.5px; font-weight: 600; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.owx-fwn i { color: #b91c1c; font-style: normal; }
.owx-fwarg.on .owx-fwn { color: var(--owx-acc-d); }
.owx-fwin { display: flex; min-width: 0; }
.owx-fwin .owx-in { height: 32px; border-radius: 8px 0 0 8px; font: 13px Consolas, "Cascadia Mono", "Courier New", monospace; }
.owx-fwpick { flex: none; display: grid; place-items: center; width: 34px; padding: 0; border: 1px solid var(--owx-line); border-left: 0; border-radius: 0 8px 8px 0; background: #f8faf9; color: #4b5563; }
.owx-fwpick:hover { background: var(--owx-acc-l); color: var(--owx-acc-d); }
.owx .owx-fwpick svg.owx-i { width: 16px; height: 16px; }
.owx-fwv { font: 12px Consolas, "Cascadia Mono", "Courier New", monospace; color: var(--owx-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owx-fwerr { color: #b91c1c !important; }
.owx-fwhelp { font-size: 12.5px; padding: 8px 11px; background: var(--owx-acc-xl); border-radius: 8px; }
.owx-fwhelp p { margin: 0 0 4px; }
.owx-fwhelp p:last-child { margin: 0; }
.owx-fwres { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13.5px; padding: 2px 0 0; }
.owx-fwres .owx-fwf { margin-left: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.owx-fwtip { display: flex; gap: 8px; align-items: flex-start; margin: 0 !important; }
.owx .owx-fwtip svg.owx-i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.owx-fwmini .owx-fw2 > :not(.owx-fwargs) { display: none; }
.owx-fwmini .owx-fwarg:not(.on) { display: none; }
.owx-fwmini .owx-df { display: none; }

@media (max-width: 760px) {
	.owx-ctypes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.owx-cmain { grid-template-columns: 1fr; }
	.owx-g4 { grid-template-columns: 1fr 1fr; }
	.owx-menu.owx-mcols { width: auto; }
	.owx-mcolrow, .owx-mfoot { grid-template-columns: 1fr; }
	.owx-mcol + .owx-mcol { border-left: 0; padding-left: 0; }
	.owx-cfth, .owx-cftr { grid-template-columns: minmax(0, 1fr) 90px; }
	.owx-cfth span:last-child, .owx-cftr .owx-in-s { grid-column: 1 / -1; }
	.owx-fwarg { grid-template-columns: 1fr; gap: 3px; }
	.owx-fwn { text-align: left; }
	.owx-ov.owx-ov-free { place-items: end center; padding: 8px; }
	.owx-ov-free .owx-dlg { max-height: 70vh; }
}
@media print { .owx-chtools, .owx-chh { display: none !important; } }
