/* Verwaltung mit Seitennavigation + Geschäftsverwaltung (Cockpit, Kunden, Belege, Editor mit Live-Ansicht) */
#kvDialog .kv.kv-mit-seite { grid-template-columns: 228px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
#kvDialog .kv-mit-seite .kv-kopf { grid-column: 1 / -1; gap: 16px; }
.kv-kopf-mitte { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
#kvDialog .kv-reiter.kv-seite { order: 0; width: auto; flex-wrap: nowrap; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 18px 12px; border-radius: 0; background: #eef2ef; border-right: 1px solid #e1e7e4; overflow-y: auto; }
.kv-gruppe { display: grid; gap: 3px; }
.kv-gruppe > small { padding: 0 10px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: #7a868c; }
#kvDialog .kv-seite button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 11px; background: none; color: #34474e; font-weight: 700; text-align: left; transition: background .15s, color .15s; }
#kvDialog .kv-seite button i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 14px; background: #fff; color: #1d6d5e; box-shadow: 0 2px 6px #14323a14; flex: none; }
#kvDialog .kv-seite button span { flex: 1; }
#kvDialog .kv-seite button:hover { background: #ffffffb3; color: #14323a; }
#kvDialog .kv-seite button[aria-selected="true"] { background: linear-gradient(135deg, #2a9079, #1d6d5e); color: #fff; box-shadow: 0 8px 18px -10px #1d6d5ecc; }
#kvDialog .kv-seite button[aria-selected="true"] i { background: #ffffff2b; color: #fff; box-shadow: none; }
.kv-zaehler { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #14323a14; color: #14323a; font-style: normal; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.kv-zaehler-rot { background: #c0392b; color: #fff; }
#kvDialog .kv-seite button[aria-selected="true"] .kv-zaehler { background: #fff; color: #14323a; }
.kv-inhalt.kv-geschaeft { padding: 22px 24px 30px; background: linear-gradient(160deg, #f6f5f0, #eef3f0); }

/* Kopf: Live & Neu */
.gs-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #ffffff1f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.gs-live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 #4ade8088; animation: gs-puls 2s infinite; }
.gs-live small { font-weight: 600; opacity: .8; letter-spacing: 0; }
.gs-live-fehler i { background: #f87171; animation: none; }
@keyframes gs-puls { 70% { box-shadow: 0 0 0 8px #4ade8000; } 100% { box-shadow: 0 0 0 0 #4ade8000; } }
.gs-neu { position: relative; }
#kvDialog .gs-neu-knopf { height: 38px; padding: 0 16px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #34a58b, #2a9079); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px -10px #000a; }
#kvDialog .gs-neu-knopf:hover { filter: brightness(1.1); }
.gs-neu-menue { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 250px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid #e1e7e4; box-shadow: 0 22px 50px -12px #14323a66; display: grid; }
#kvDialog .gs-neu-menue button { text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: #14323a; font-weight: 700; cursor: pointer; }
#kvDialog .gs-neu-menue button:hover { background: #eef7f4; }
.gs-neu-menue hr { border: 0; border-top: 1px solid #eef1ef; margin: 4px 6px; }

/* Allgemein */
.gs { animation: gs-rein .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes gs-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gs-laedt { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px; color: #45585e; font-weight: 700; }
.gs-laedt span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #1d6d5e26; border-top-color: #1d6d5e; animation: gs-dreh .8s linear infinite; }
@keyframes gs-dreh { to { transform: rotate(360deg); } }
.gs-leer { margin: 0; padding: 26px; text-align: center; color: #5a6d72; }
.gs-rot-text { color: #b3261e !important; }
.gs-rechts { text-align: right; }
#kvDialog .gs-haupt, #kvDialog .gs-neben, #kvDialog .gs-leise { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s; }
#kvDialog .gs-haupt { border: 0; background: linear-gradient(135deg, #2a9079, #1d6d5e); color: #fff; box-shadow: 0 10px 20px -12px #1d6d5ecc; }
#kvDialog .gs-haupt:hover { background: linear-gradient(135deg, #1f7a68, #14323a); transform: translateY(-1px); }
#kvDialog .gs-haupt.gs-gold { background: linear-gradient(135deg, #b07a3c, #7a4f22); }
#kvDialog .gs-neben { border: 1.5px solid #cfdcd6; background: #fff; color: #16564b; }
#kvDialog .gs-neben:hover { border-color: #1d6d5e; background: #f3faf7; }
#kvDialog .gs-leise { border: 0; background: none; color: #45585e; }
#kvDialog .gs-leise:hover { background: #14323a0f; }
.gs-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; font-style: normal; white-space: nowrap; vertical-align: 2px; }
.gs-grau { background: #eef1ef; color: #45585e; } .gs-blau { background: #e3eefb; color: #1a5aa0; } .gs-gruen { background: #e3f4ed; color: #16564b; }
.gs-rot { background: #fdecec; color: #a3261d; } .gs-gelb { background: #fdf3df; color: #8a5a10; } .gs-lila { background: #efeafc; color: #5a3fa8; }

/* Cockpit */
.gs-cockpit { display: grid; gap: 18px; }
.gs-gruss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.gs-gruss small { color: #5a6d72; font-weight: 700; }
.gs-gruss h3 { margin: 2px 0 0; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; color: #14323a; }
.gs-schnell { display: flex; flex-wrap: wrap; gap: 8px; }
#kvDialog .gs-schnell button { height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid #fff; background: #ffffffc7; color: #14323a; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px -12px #14323a99; }
#kvDialog .gs-schnell button:hover { background: #fff; border-color: #1d6d5e; }
.gs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
#kvDialog .gs-kpi { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 16px 16px 14px; border-radius: 18px; border: 1px solid #fff; background: #ffffffd9; text-align: left; cursor: pointer; box-shadow: 0 14px 30px -24px #14323a99;
  animation: gs-rein .45s cubic-bezier(.2, .8, .2, 1) both; transition: transform .2s, box-shadow .2s; }
#kvDialog .gs-kpi:nth-child(2) { animation-delay: .04s; } #kvDialog .gs-kpi:nth-child(3) { animation-delay: .08s; } #kvDialog .gs-kpi:nth-child(4) { animation-delay: .12s; } #kvDialog .gs-kpi:nth-child(5) { animation-delay: .16s; } #kvDialog .gs-kpi:nth-child(6) { animation-delay: .2s; }
#kvDialog .gs-kpi:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px #14323aa6; }
.gs-kpi i { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 15px; }
.gs-kpi small { color: #45585e; font-weight: 700; font-size: 12px; padding-right: 36px; } .gs-kpi b { font-size: 22px; letter-spacing: -.02em; color: #14323a; } .gs-kpi span { font-size: 12px; color: #5a6d72; }
.gs-kpi-gruen i { background: #e3f4ed; color: #16564b; } .gs-kpi-blau i { background: #e3eefb; color: #1a5aa0; } .gs-kpi-rot i { background: #fdecec; color: #a3261d; } .gs-kpi-rot b { color: #a3261d; }
.gs-kpi-gelb i { background: #fdf3df; color: #8a5a10; } .gs-kpi-lila i { background: #efeafc; color: #5a3fa8; } .gs-kpi-neutral i { background: #eef1ef; color: #34474e; }
.gs-zwei { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.gs-karte { padding: 16px 18px; border-radius: 18px; background: #ffffffd9; border: 1px solid #fff; box-shadow: 0 14px 30px -26px #14323a99; min-width: 0; }
.gs-karte > .gs-k-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.gs-karte h4 { margin: 0; font-size: 15px; color: #14323a; } .gs-karte > .gs-k-kopf span { font-size: 12px; font-weight: 700; color: #5a6d72; }
.gs-balken-reihe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; }
.gs-balken { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.gs-balken span { font-size: 9.5px; font-weight: 700; color: #45585e; white-space: nowrap; transform: rotate(-35deg); transform-origin: bottom center; height: 14px; }
.gs-balken i { display: block; width: 100%; max-width: 30px; height: calc(140px * var(--hz)); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #34a58b, #1d6d5e); transform-origin: bottom; animation: gs-wachsen .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 40ms); align-self: end; }
.gs-balken.gs-jetzt i { background: linear-gradient(180deg, #e2b878, #b07a3c); }
.gs-balken small { font-size: 10.5px; color: #5a6d72; font-weight: 700; }
@keyframes gs-wachsen { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.gs-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#kvDialog .gs-todo button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: #f6f8f7; text-align: left; cursor: pointer; color: #14323a; transition: background .15s, transform .15s; }
#kvDialog .gs-todo button:hover { background: #eaf5f1; transform: translateX(3px); }
.gs-todo i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.gs-todo span { flex: 1; min-width: 0; display: grid; } .gs-todo b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gs-todo small { font-size: 12px; color: #5a6d72; } .gs-todo em { font-style: normal; color: #7a868c; font-size: 18px; }
.gs-verlauf { list-style: none; margin: 0; padding: 0; display: grid; }
.gs-verlauf li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid #eef1ef; font-size: 13px; color: #34474e; }
.gs-verlauf li:first-child { border-top: 0; } .gs-verlauf time { color: #7a868c; font-variant-numeric: tabular-nums; }

/* Werkzeugleiste, Filter, Suche */
.gs-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.gs-suche { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1.5px solid #cfdcd6; margin: 0; }
.gs-suche:focus-within { border-color: #1d6d5e; box-shadow: 0 0 0 4px #1d6d5e22; }
.gs-suche span { color: #5a6d72; font-size: 17px; }
#kvDialog .gs-suche input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: #14323a; font-size: 14.5px; }
.gs-filter { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: #ffffffa6; border: 1px solid #14323a12; }
#kvDialog .gs-filter button { height: 32px; padding: 0 11px; border: 0; border-radius: 9px; background: none; color: #34474e; font-weight: 700; font-size: 13px; cursor: pointer; }
#kvDialog .gs-filter button span { margin-left: 3px; color: #7a868c; font-weight: 800; }
#kvDialog .gs-filter button[aria-pressed="true"] { background: linear-gradient(135deg, #2a9079, #1d6d5e); color: #fff; }
#kvDialog .gs-filter button[aria-pressed="true"] span { color: #e2f2ec; }

/* Tabelle der Belege */
.gs-tabelle { display: grid; gap: 6px; }
#kvDialog .gs-zeile { display: grid; grid-template-columns: 130px minmax(0, 1fr) 96px 96px 128px 110px; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid #fff; background: #ffffffd9; color: #14323a; text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 8px 20px -18px #14323a99; animation: gs-rein .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 15ms); transition: transform .15s, border-color .15s, box-shadow .15s; }
#kvDialog .gs-zeile:hover { transform: translateY(-1px); border-color: #9cc7bb; box-shadow: 0 14px 28px -18px #14323aa6; }
#kvDialog .gs-zeile.gs-kopfzeile { background: none; border: 0; box-shadow: none; padding: 0 14px 2px; cursor: default; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a868c; animation: none; }
#kvDialog .gs-zeile.gs-kopfzeile:hover { transform: none; }
.gs-nr { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; } .gs-nr em { font-style: normal; color: #8a5a10; }
.gs-kt { display: grid; min-width: 0; } .gs-kt b, .gs-kt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gs-kt small { color: #5a6d72; font-size: 12.5px; }
.gs-zeile .gs-rechts b { display: block; font-variant-numeric: tabular-nums; } .gs-zeile .gs-rechts small { color: #8a5a10; font-size: 11.5px; font-weight: 700; }
.gs-fuss { margin: 12px 4px 0; color: #5a6d72; font-size: 13px; font-weight: 600; }

/* Kunden */
.gs-kunden { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
#kvDialog .gs-kunde { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid #fff; background: #ffffffd9; text-align: left; font: inherit; color: #14323a; cursor: pointer; box-shadow: 0 10px 24px -20px #14323a99;
  animation: gs-rein .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 20ms); transition: transform .15s, border-color .15s; }
#kvDialog .gs-kunde:hover { transform: translateY(-2px); border-color: #9cc7bb; }
.gs-av { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, #2a9079, #14323a); color: #fff; font-weight: 800; font-size: 15px; }
.gs-av-gross { width: 52px; height: 52px; font-size: 18px; border-radius: 16px; }
.gs-k-text { flex: 1; min-width: 0; display: grid; } .gs-k-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gs-k-text small { color: #5a6d72; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-k-zahlen { display: grid; gap: 2px; justify-items: end; text-align: right; } .gs-k-zahlen small { display: block; font-size: 10.5px; color: #7a868c; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.gs-k-zahlen b { font-size: 13.5px; font-variant-numeric: tabular-nums; } .gs-k-offen b { color: #a3261d; } .gs-k-zahlen em { font-style: normal; font-size: 11.5px; color: #5a6d72; }

/* Overlays */
.gs-overlay { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; background: #0b182059; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: gs-ein .2s ease; }
@keyframes gs-ein { from { opacity: 0; } }
.gs-panel { width: min(980px, 100%); max-height: 100%; overflow: auto; border-radius: 22px; background: #f6f5f0; box-shadow: 0 30px 80px #0b182066; animation: gs-rein .3s cubic-bezier(.2, .8, .2, 1); }
.gs-p-kopf { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #ffffffe6; border-bottom: 1px solid #e1e7e4; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gs-p-kopf > div { flex: 1; min-width: 0; } .gs-p-kopf small { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #1d6d5e; } .gs-p-kopf h3 { margin: 2px 0 0; font-size: 20px; color: #14323a; }
#kvDialog .gs-x { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid #14323a1f; background: #fff; color: #14323a; font-size: 20px; cursor: pointer; }
#kvDialog .gs-x:hover { border-color: #14323a; }
.gs-p-inhalt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 18px 20px 22px; }
.gs-kunden-panel .gs-p-inhalt:not(:has(aside)) { grid-template-columns: 1fr; max-width: 620px; }
.gs-form { display: grid; gap: 12px; align-content: start; }
.gs-feld { display: grid; gap: 5px; margin: 0; min-width: 0; }
.gs-feld > span { font-size: 12.5px; font-weight: 800; color: #34474e; } .gs-feld > span small { font-weight: 600; color: #7a868c; }
#kvDialog .gs-feld input, #kvDialog .gs-feld select, #kvDialog .gs-feld textarea { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 11px; border: 1.5px solid #cfdcd6; background: #fff; color: #14323a; font: 14.5px/1.4 Manrope, "Segoe UI", system-ui, sans-serif; resize: vertical; }
#kvDialog .gs-feld input:focus, #kvDialog .gs-feld select:focus, #kvDialog .gs-feld textarea:focus { outline: none; border-color: #1d6d5e; box-shadow: 0 0 0 4px #1d6d5e22; }
.gs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gs-3 { display: grid; grid-template-columns: 110px 1fr 140px; gap: 10px; }
.gs-segment { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e8eeeb; justify-self: start; }
.gs-segment label { margin: 0; cursor: pointer; } .gs-segment input { position: absolute; opacity: 0; pointer-events: none; }
.gs-segment span { display: block; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: #45585e; }
.gs-segment input:checked + span { background: #fff; color: #14323a; box-shadow: 0 3px 10px #14323a1a; }
.gs-segment input:focus-visible + span { outline: 2px solid #1d6d5e; }
.gs-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.gs-p-seite { display: grid; gap: 10px; align-content: start; }
.gs-p-seite h4 { margin: 4px 0 0; font-size: 14px; color: #14323a; }
.gs-mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gs-mini-kpis span { display: grid; padding: 10px 12px; border-radius: 13px; background: #fff; border: 1px solid #e1e7e4; } .gs-mini-kpis small { font-size: 11px; color: #5a6d72; font-weight: 700; } .gs-mini-kpis b { font-size: 15px; color: #14323a; }
.gs-p-belege { display: grid; gap: 6px; padding: 0 0 4px; }
.gs-wahl .gs-p-belege { padding: 0 20px 20px; }
#kvDialog .gs-p-belege button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e1e7e4; background: #fff; text-align: left; font: inherit; color: #14323a; cursor: pointer; }
#kvDialog .gs-p-belege button:hover { border-color: #9cc7bb; background: #f6fbf9; }
.gs-p-belege button > span:first-child { display: grid; min-width: 0; } .gs-p-belege small { color: #5a6d72; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-p-belege .gs-rechts { display: grid; justify-items: end; gap: 3px; }
.gs-info { margin: 0; padding: 10px 14px; border-radius: 12px; background: #eaf5f1; color: #16564b; font-size: 13px; font-weight: 600; }
.gs-wahl > .gs-info { margin: 16px 20px; }
.gs-gelb-info { background: #fdf3df; color: #7a4f10; }

/* Beleg-Editor mit Live-Ansicht */
.gs-editor-overlay { padding: 10px; place-items: stretch; }
.gs-editor { display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 22px; background: #f6f5f0; box-shadow: 0 30px 80px #0b182066; overflow: hidden; animation: gs-rein .3s cubic-bezier(.2, .8, .2, 1); }
.gs-e-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px 12px 20px; background: #ffffffe6; border-bottom: 1px solid #e1e7e4; }
.gs-e-kopf > div:first-child { flex: 1 1 220px; min-width: 0; } .gs-e-kopf small { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: #1d6d5e; } .gs-e-kopf h3 { margin: 2px 0 0; font-size: 19px; color: #14323a; }
.gs-e-aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
#kvDialog .gs-e-aktionen button { height: 38px; padding: 0 13px; font-size: 13px; }
.gs-e-raum { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.05fr); min-height: 0; }
.gs-e-form { display: grid; gap: 12px; align-content: start; padding: 16px 18px 26px; overflow-y: auto; border-right: 1px solid #e1e7e4; }
.gs-e-form[inert] { opacity: .75; }
.gs-feldgruppe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-breit { grid-column: 1 / -1; }
.gs-mit-knopf { display: flex; gap: 6px; } .gs-mit-knopf select { flex: 1; min-width: 0; }
.gs-pos-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.gs-pos-kopf h4 { margin: 0; font-size: 14.5px; color: #14323a; }
.gs-preisliste { position: relative; }
#kvDialog .gs-preisliste > button { height: 34px; padding: 0 12px; font-size: 12.5px; }
.gs-preis-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 340px; max-height: 360px; overflow-y: auto; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid #e1e7e4; box-shadow: 0 22px 50px -12px #14323a66; }
.gs-preis-menue h5 { margin: 8px 8px 4px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #1d6d5e; }
#kvDialog .gs-preis-menue button { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; width: 100%; padding: 7px 9px; border: 0; border-radius: 9px; background: none; text-align: left; color: #14323a; cursor: pointer; font: inherit; font-size: 13px; }
#kvDialog .gs-preis-menue button:hover { background: #eef7f4; }
.gs-preis-menue button b { font-variant-numeric: tabular-nums; } .gs-preis-menue button small { grid-column: 1 / -1; color: #7a868c; font-size: 11px; }
.gs-positionen { display: grid; gap: 6px; }
.gs-pos { display: grid; grid-template-columns: 24px repeat(4, minmax(0, 1fr)) auto; grid-template-areas: "nr text text text text knopf" "nr beschr beschr beschr beschr beschr" "nr menge einheit preis summe summe"; gap: 6px 8px; align-items: end; padding: 10px; border-radius: 13px; background: #fff; border: 1px solid #e1e7e4; }
.gs-pos .gs-griff { grid-area: nr; align-self: start; } .gs-p-text { grid-area: text; } .gs-pos-knoepfe { grid-area: knopf; } .gs-p-beschr { grid-area: beschr; }
label.gs-p-zahl:nth-of-type(1) { grid-area: menge; } label.gs-p-zahl:nth-of-type(2) { grid-area: einheit; } label.gs-p-zahl:nth-of-type(3) { grid-area: preis; } span.gs-p-zahl.gs-p-summe { grid-area: summe; text-align: right; }
.gs-p-zahl { display: grid; gap: 2px; margin: 0; min-width: 0; } .gs-p-zahl small { font-size: 10.5px; font-weight: 800; color: #7a868c; letter-spacing: .04em; }
#kvDialog .gs-p-text { font-weight: 700; }
.gs-pos:focus-within { border-color: #9cc7bb; box-shadow: 0 0 0 3px #2a907918; }
.gs-griff { width: 24px; height: 36px; display: grid; place-items: center; color: #9aa6ab; font-size: 12px; font-weight: 800; }
.gs-pos-text { display: grid; gap: 4px; min-width: 0; }
#kvDialog .gs-pos input, #kvDialog .gs-pos textarea { width: 100%; height: 36px; padding: 6px 8px; border-radius: 9px; border: 1.5px solid #e1e7e4; background: #fbfcfb; color: #14323a; font: 13.5px/1.35 Manrope, "Segoe UI", system-ui, sans-serif; }
#kvDialog .gs-pos textarea { height: auto; min-height: 30px; resize: none; font-size: 12.5px; color: #45585e; }
#kvDialog .gs-pos input:focus, #kvDialog .gs-pos textarea:focus { outline: none; border-color: #1d6d5e; background: #fff; }
#kvDialog .gs-pos input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }
.gs-pos-summe { height: 36px; display: flex; align-items: center; justify-content: flex-end; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; color: #14323a; }
.gs-pos-knoepfe { display: flex; gap: 2px; height: 36px; align-items: center; }
#kvDialog .gs-pos-knoepfe button { width: 27px; height: 27px; border: 0; border-radius: 8px; background: #f1f4f2; color: #45585e; cursor: pointer; font-weight: 800; }
#kvDialog .gs-pos-knoepfe button:hover { background: #fdecec; color: #a3261d; }
#kvDialog .gs-plus { justify-self: start; height: 38px; padding: 0 14px; border-radius: 11px; border: 1.5px dashed #9cc7bb; background: #f3faf7; color: #16564b; font-weight: 800; cursor: pointer; }
#kvDialog .gs-plus:hover { border-style: solid; background: #eaf5f1; }
.gs-summen-mini { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: end; gap: 6px 16px; }
.gs-summen-mini span { display: grid; text-align: right; } .gs-summen-mini small { font-size: 11px; color: #5a6d72; font-weight: 700; } .gs-summen-mini b { font-size: 14px; font-variant-numeric: tabular-nums; }
.gs-summen-mini .gs-gesamt b { font-size: 19px; color: #1d6d5e; }
.gs-zahlungen { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e1e7e4; }
.gs-zahlungen h4 { margin: 0; font-size: 14px; } .gs-zahlungen h4 small { color: #5a6d72; font-weight: 700; margin-left: 6px; }
.gs-fortschritt { height: 8px; border-radius: 99px; background: #eef1ef; overflow: hidden; } .gs-fortschritt i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34a58b, #1d6d5e); transition: width .5s; }
.gs-zahlung { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; font-size: 13px; padding: 4px 0; border-top: 1px solid #f1f4f2; } .gs-zahlung b { font-variant-numeric: tabular-nums; }
.gs-zahlform { display: grid; gap: 10px; margin: 12px 18px 0; padding: 14px; border-radius: 14px; background: #fff; border: 2px solid #2a9079; box-shadow: 0 14px 30px -20px #1d6d5ecc; animation: gs-rein .25s ease; }
.gs-zahlform h4 { margin: 0; }
.gs-live-ansicht { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; background: linear-gradient(160deg, #dfe7e3, #e9eeec); }
.gs-la-kopf { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.gs-la-kopf .gs-live { background: #14323a; }
.gs-la-zoom { display: flex; gap: 4px; }
#kvDialog .gs-la-zoom button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #14323a26; background: #ffffffb3; color: #14323a; font-weight: 800; cursor: pointer; }
.gs-blatt-rahmen { --z: 1; position: relative; overflow: auto; min-height: 0; }
.gs-blatt { display: block; width: 840px; height: 1240px; border: 0; margin: 0 auto 20px; zoom: var(--z); }

@media (max-width: 1150px) { .gs-e-raum { grid-template-columns: 1fr; overflow-y: auto; } .gs-e-form { border-right: 0; overflow: visible; } .gs-live-ansicht { min-height: 700px; } .gs-zwei { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  #kvDialog .kv.kv-mit-seite { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); }
  #kvDialog .kv-reiter.kv-seite { flex-direction: row; gap: 10px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid #e1e7e4; overflow-x: auto; overflow-y: hidden; }
  .kv-gruppe { display: flex; gap: 4px; } .kv-gruppe > small { display: none; }
  #kvDialog .kv-seite button { flex: none; height: 36px; padding: 0 10px 0 6px; }
  .kv-kopf-mitte .gs-live small { display: none; }
  .kv-inhalt.kv-geschaeft { padding: 14px; }
  .gs-e-kopf, .gs-p-kopf { position: relative; padding-right: 62px !important; }
  #kvDialog .gs-e-kopf .gs-x, #kvDialog .gs-p-kopf .gs-x { position: absolute; right: 12px; top: 12px; }
  #kvDialog .gs-zeile { grid-template-columns: 1fr auto; gap: 4px 10px; }
  #kvDialog .gs-zeile > span:nth-child(3), #kvDialog .gs-zeile > span:nth-child(4) { display: none; }
  #kvDialog .gs-zeile.gs-kopfzeile { display: none; }
  .gs-p-inhalt, .gs-feldgruppe, .gs-2 { grid-template-columns: 1fr; }
  .gs-3 { grid-template-columns: 1fr 1fr; }
  .gs-pos { grid-template-columns: 20px repeat(2, minmax(0, 1fr)) auto; grid-template-areas: "nr text text knopf" "nr beschr beschr beschr" "nr menge einheit einheit" "nr preis summe summe"; }
  .gs-balken span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gs, .gs-kpi, .gs-zeile, .gs-kunde, .gs-balken i, .gs-live i, .gs-panel, .gs-editor { animation: none !important; } }

/* Produkte & Artikelnummern */
.gs-art { display: inline-block; padding: 2px 7px; border-radius: 7px; background: #eef3f1; color: #34474e; font: 800 11px/1.4 ui-monospace, Consolas, monospace; font-style: normal; letter-spacing: .02em; white-space: nowrap; }
.gs-pos-knoepfe .gs-art { margin-right: 4px; }
.gs-preis-menue .gs-art { margin-right: 4px; }
#kvDialog .gs-preis-suche { width: 100%; height: 36px; margin: 2px 0 4px; padding: 0 10px; border-radius: 9px; border: 1.5px solid #cfdcd6; font: 13.5px Manrope, sans-serif; }
#kvDialog .gs-preis-suche:focus { outline: none; border-color: #1d6d5e; }
.gs-preis-menue button[hidden] { display: none !important; }
.gs-kpis-klein { margin-bottom: 14px; }
#kvDialog .gs-kpi.gs-kpi-still { cursor: default; } #kvDialog .gs-kpi.gs-kpi-still:hover { transform: none; }
.gs-kpi.gs-kpi-still b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#kvDialog .gs-produkte .gs-zeile { grid-template-columns: 120px minmax(0, 1fr) 90px 120px 110px 100px; }
.gs-p-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 7px; background: linear-gradient(140deg, #eaf5f1, #fbf3e6); font-style: normal; font-size: 12px; vertical-align: middle; }
#kvDialog .gs-zeile.gs-inaktiv { opacity: .6; }
.gs-grau-text { color: #9aa6ab; }
.gs-schalter-zeile { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e1e7e4; cursor: pointer; }
.gs-schalter-zeile input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #1d6d5e; flex: none; }
.gs-schalter-zeile span { display: grid; } .gs-schalter-zeile small { color: #5a6d72; font-size: 12px; }
@media (max-width: 860px) { #kvDialog .gs-produkte .gs-zeile { grid-template-columns: 1fr auto; } #kvDialog .gs-produkte .gs-zeile > span:nth-child(3), #kvDialog .gs-produkte .gs-zeile > span:nth-child(5) { display: none; } }
