/* Heger CAD Zeiterfassung – Anthrazit, Signalgelb, technisches Raster */
/* ---------- Darstellung hell / dunkel (ab 2.20.0) ----------
   <html data-design="hell|dunkel|auto">: hell wie bisher, dunkel, oder automatisch wie das Betriebssystem.
   Alle Farben stehen als Paar light-dark(hell, dunkel) in Variablen – in den Regeln weiter unten steht keine
   feste Farbe mehr, außer Weiß auf farbigem Grund. Bereiche mit „color-scheme: light“ bleiben in jeder Darstellung
   hell (das Belegblatt = Papier) bzw. unverändert (die Kopfleiste). Neue Farbe: unten in die Tabelle eintragen. */
:root {
  color-scheme: light;
  --anthrazit: light-dark(#2e2e2d, #ececea); /* Schrift */
  --g9: light-dark(#3c3c3b, #dcdde0);
  --g7: light-dark(#575756, #c1c3c7);
  --g6: light-dark(#6b6b6a, #aeb1b6); /* leise Schrift */
  --g4: light-dark(#a3a3a0, #7e828a);
  --g3: light-dark(#cdcdc9, #5b5f67); /* Rahmen von Feldern */
  --g2: light-dark(#e3e3df, #494d54); /* Linien */
  --g1: light-dark(#efefec, #3d4046); /* ruhige Flächen */
  --papier: light-dark(#f6f6f3, #2f3135);
  --weiss: light-dark(#ffffff, #34373c); /* Karten, Felder */
  --gelb-d: light-dark(#c79e00, #d6aa00);
  --gelb-h: light-dark(#fff6d6, #423c22); /* gelbe Fläche */
  --gruen: light-dark(#2e8b57, #62be8c);
  --gruen-h: light-dark(#e5f3ea, #2a4134);
  --rot: light-dark(#b83227, #f4958a);
  --rot-h: light-dark(#fbe9e7, #4d2b28);
  --kgrau: light-dark(#a3a3a0, #7e828a); /* Kunde ohne eigene Farbe */
  --knopf: light-dark(#2e2e2d, #555a62); /* dunkler Knopf (Vorgabe von .btn) */
  --knopf-h: light-dark(#3c3c3b, #646973); /* … unter der Maus */
  --blase: light-dark(#2e2e2d, #17181a); /* Sprechblasen und Meldungen auf dunklem Grund */
  --rot-f: light-dark(#b83227, #c6483c); /* rote Fläche mit weißer Schrift */
  --gruen-f: light-dark(#2e8b57, #2c8a5a); /* grüne Fläche mit weißer Schrift */
  --dlg-bg: light-dark(#ffffff, #34373c); /* Dialoge */
  --dlg-text: light-dark(#000000, #ececea);
  --raster: light-dark(rgba(46,46,45,.045), rgba(255,255,255,.035)); /* feines Karo (Anmeldeseite) */
  --marke-linie: light-dark(rgba(46,46,45,.4), rgba(255,255,255,.45));
  --schraffur: light-dark(rgba(46,46,45,.14), rgba(255,255,255,.17)); /* abwesend */
  --schraffur-l: light-dark(rgba(46,46,45,.08), rgba(255,255,255,.10));
  --schraffur-s: light-dark(rgba(46,46,45,.3), rgba(255,255,255,.34));
  --schatten-1: light-dark(rgba(46,46,45,.07), rgba(0,0,0,.30));
  --schatten-2: light-dark(rgba(46,46,45,.06), rgba(0,0,0,.22));
  --galerie-bg: light-dark(#111111, #111111); /* ab 2.68.0: Bilder im Chat groß – immer dunkel wie ein Bildbetrachter */
  --galerie-kopf: light-dark(#1d1d1d, #1d1d1d);
  --galerie-text: light-dark(#eeeeee, #eeeeee);
  --galerie-leise: light-dark(#bbbbbb, #bbbbbb);
  --gelb: #f2c100; /* Signalgelb (in der zweiten Firma: ihre Akzentfarbe) */
  --auf-gelb: #2e2e2d; /* Schrift auf Gelb */
  --kopf-bg: #2e2e2d; /* Kopfleiste und Kopf der Anmeldung */
  --kopf-gruen: #62be8c; /* ab 2.64.0: eingestempelt (Knopf im dunklen Kopf) */
  --np-schrift: light-dark(#2b2b2b, #ececea); /* zweite Firma: Schrift, … */
  --np-g9: light-dark(#383838, #dcdde0);
  --np-kopf: #2b2b2b; /* … und ihre Kopfleiste */
  --np-sch: light-dark(#9a5200, #ffb257); /* ab 2.26.0: Schätzwerte (orange) */
  --np-sch-h: light-dark(#fff1dd, #3b2a12);
  --np-punkt: light-dark(#d0021b, #e5484d); /* ab 2.33.0: roter Punkt – neue Anfragen von novoprint3d.de */
  --np-sch-r: light-dark(#e09a45, #a36a22);
  --auf-dunkel: #ffffff; /* Schrift auf dunklen Flächen */
  --auf-dunkel-leise: #cdcdc9; /* … leise (Hilfetexte auf Sprechblasen und Leisten) */
  --radius: 6px;
  --schrift: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
:root[data-design="dunkel"] { color-scheme: dark; }
:root[data-design="auto"] { color-scheme: light dark; }
@media print { :root, :root[data-design] { color-scheme: light; } }
/* Farbtabelle: feste Farben des Programms, je einmal als Paar (Name = der helle Wert) */
:root {
  --f-1d6b40: light-dark(#1d6b40, #8fc9a2);
  --f-1f4f7a: light-dark(#1f4f7a, #a1c9f1);
  --f-1f5e99: light-dark(#1f5e99, #8cbdf2);
  --f-1f6b38: light-dark(#1f6b38, #91ca9d);
  --f-1f6b40: light-dark(#1f6b40, #90c9a2);
  --f-222222: light-dark(#222222, #dee2e8);
  --f-257348: light-dark(#257348, #89c49d);
  --f-284868: light-dark(#284868, #b0cdec);
  --f-2a5a9c: light-dark(#2a5a9c, #92bcf7);
  --f-2b2b2b: light-dark(#2b2b2b, #dadde3);
  --f-2c5a92: light-dark(#2c5a92, #96bef0);
  --f-2e7d32: light-dark(#2e7d32, #79c379);
  --f-2e7d4f: light-dark(#2e7d4f, #77c090);
  --f-2f5503: light-dark(#2f5503, #b0d498);
  --f-2f5f99: light-dark(#2f5f99, #91baee);
  --f-2f5f9a: light-dark(#2f5f9a, #91baee);
  --f-2f9a52: light-dark(#2f9a52, #4cac67);
  --f-333333: light-dark(#333333, #d6d9df);
  --f-383838: light-dark(#383838, #d1d5db);
  --f-498205: light-dark(#498205, #81bb56);
  --f-4a7fc1: light-dark(#4a7fc1, #699ddd);
  --f-4d4d4d: light-dark(#4d4d4d, #c1c4ca);
  --f-4d535b: light-dark(#4d535b, #bbc0c8);
  --f-4f9d69: light-dark(#4f9d69, #59a270);
  --f-555555: light-dark(#555555, #bbbec4);
  --f-5b6470: light-dark(#5b6470, #acb4be);
  --f-5f5f5a: light-dark(#5f5f5a, #aeb1b6);
  --f-69797e: light-dark(#69797e, #95a5aa);
  --f-6b6450: light-dark(#6b6450, #b9b29d);
  --f-6b6b6b: light-dark(#6b6b6b, #aaadb3);
  --f-757575: light-dark(#757575, #9195a0);
  --f-7a1f17: light-dark(#7a1f17, #fdb7ab);
  --f-7a5f00: light-dark(#7a5f00, #c8b176);
  --f-7bd389: light-dark(#7bd389, #297e3d);
  --f-80581a: light-dark(#80581a, #d1ae80);
  --f-86a3c2: light-dark(#86a3c2, #a9c0d8); /* ab 2.28.0: 3D-Betrachter – Modell */
  --f-8a4b00: light-dark(#8a4b00, #e2aa7c);
  --f-8a6400: light-dark(#8a6400, #cda65c);
  --f-8a6d00: light-dark(#8a6d00, #c1a453);
  --f-8a8a8a: light-dark(#8a8a8a, #8c8f95);
  --f-8a9099: light-dark(#8a9099, #868c94);
  --f-8d8d89: light-dark(#8d8d89, #8a8d93);
  --f-8f1d20: light-dark(#8f1d20, #fda9a2);
  --f-9a6b00: light-dark(#9a6b00, #c8994b);
  --f-9a7b00: light-dark(#9a7b00, #b39538);
  --f-9a9a94: light-dark(#9a9a94, #818489);
  --f-9a9a96: light-dark(#9a9a96, #818489);
  --f-9aa0a6: light-dark(#9aa0a6, #7d8085);
  --f-9fcfb1: light-dark(#9fcfb1, #477158);
  --f-a0a09a: light-dark(#a0a09a, #7c7f85);
  --f-a6a6a0: light-dark(#a6a6a0, #787b80);
  --f-a6a6a6: light-dark(#a6a6a6, #777a80);
  --f-a9a8a2: light-dark(#a9a8a2, #76797e);
  --f-b3261e: light-dark(#b3261e, #fb9082);
  --f-b8dcc6: light-dark(#b8dcc6, #3e634e);
  --f-b9cfe9: light-dark(#b9cfe9, #4d5f75);
  --f-b9dcc6: light-dark(#b9dcc6, #3f634e);
  --f-bbbbbb: light-dark(#bbbbbb, #686b70);
  --f-c0504d: light-dark(#c0504d, #e77973);
  --f-c3c3bd: light-dark(#c3c3bd, #62656a);
  --f-c4c4bf: light-dark(#c4c4bf, #5b5f67); /* ab 2.28.0: 3D-Betrachter – Raster */
  --f-c97b10: light-dark(#c97b10, #c17819);
  --f-c9c9c4: light-dark(#c9c9c4, #5e6166);
  --f-cfcfcf: light-dark(#cfcfcf, #595c61);
  --f-d13438: light-dark(#d13438, #fe6864);
  --f-d2d2d2: light-dark(#d2d2d2, #575a5f);
  --f-d6d5cf: light-dark(#d6d5cf, #55585d);
  --f-d9c27a: light-dark(#d9c27a, #77631c);
  --f-dcdcd7: light-dark(#dcdcd7, #505358);
  --f-dddddd: light-dark(#dddddd, #4f5156);
  --f-dde6f2: light-dark(#dde6f2, #3e4c5f);
  --f-dfe9f3: light-dark(#dfe9f3, #3b4b5a);
  --f-e08a1e: light-dark(#e08a1e, #b16c15);
  --f-e0b400: light-dark(#e0b400, #83690a);
  --f-e1f1e5: light-dark(#e1f1e5, #334d3a);
  --f-e3b2ac: light-dark(#e3b2ac, #845b57);
  --f-e3edf9: light-dark(#e3edf9, #384759);
  --f-e5f3ea: light-dark(#e5f3ea, #334a3c);
  --f-c8341b: light-dark(#c8341b, #f5a28e); /* ab 2.21.0: novoprint3D-Spalten im Adressbuch */
  --f-e6dcc0: light-dark(#e6dcc0, #5d512d);
  --f-e6eef8: light-dark(#e6eef8, #3a4655);
  --f-e7b9b3: light-dark(#e7b9b3, #7e5853);
  --f-e8f0fb: light-dark(#e8f0fb, #384455);
  --f-ebebe7: light-dark(#ebebe7, #44474c);
  --f-ecd789: light-dark(#ecd789, #5f5631);
  --f-ecd98a: light-dark(#ecd98a, #5e5530);
  --f-ececea: light-dark(#ececea, #43464b);
  --f-eceeea: light-dark(#eceeea, #42454a);
  --f-eee1ba: light-dark(#eee1ba, #594d2a);
  --f-eeeee9: light-dark(#eeeee9, #2b2d31);
  --f-eeeeea: light-dark(#eeeeea, #424449);
  --f-eef3f8: light-dark(#eef3f8, #3e4146);
  --f-eef3f9: light-dark(#eef3f9, #3e4146);
  --f-efc0bb: light-dark(#efc0bb, #78524e);
  --f-efc4bf: light-dark(#efc4bf, #74514d);
  --f-efefeb: light-dark(#efefeb, #414449);
  --f-f0a030: light-dark(#f0a030, #996312);
  --f-f0c98f: light-dark(#f0c98f, #75551e);
  --f-f0dd99: light-dark(#f0dd99, #5b512d);
  --f-f1ead6: light-dark(#f1ead6, #524624);
  --f-f1efe6: light-dark(#f1efe6, #474436);
  --f-f2f2ee: light-dark(#f2f2ee, #3f4246);
  --f-f2f6fb: light-dark(#f2f6fb, #3c3f44);
  --f-f2f7fd: light-dark(#f2f7fd, #3c3e43);
  --f-f3eddb: light-dark(#f3eddb, #4e4427);
  --f-f3f3ef: light-dark(#f3f3ef, #3e4146);
  --f-f3f8f4: light-dark(#f3f8f4, #3c3e43);
  --f-f4f4f1: light-dark(#f4f4f1, #3d4045);
  --f-f4f4f2: light-dark(#f4f4f2, #2b2d31);
  --f-f6ecd9: light-dark(#f6ecd9, #524223);
  --f-f6f1e2: light-dark(#f6f1e2, #49412a);
  --f-f6f6f3: light-dark(#f6f6f3, #3c3f44);
  --f-f7f6f2: light-dark(#f7f6f2, #2d2f33);
  --f-f8f4e6: light-dark(#f8f4e6, #302e28);
  --f-f8f8f6: light-dark(#f8f8f6, #3b3d42);
  --f-fafaf7: light-dark(#fafaf7, #393c41);
  --f-fbe0dc: light-dark(#fbe0dc, #643e39);
  --f-fbe9e7: light-dark(#fbe9e7, #4d2b28);
  --f-fbf6df: light-dark(#fbf6df, #473f1a);
  --f-fbf8ef: light-dark(#fbf8ef, #423d2f);
  --f-fbfbf9: light-dark(#fbfbf9, #303236);
  --f-fdecec: light-dark(#fdecec, #543b3b);
  --f-ffc400: light-dark(#ffc400, #745808);
  --f-ffd21f: light-dark(#ffd21f, #615631);
  --f-ffe27a: light-dark(#ffe27a, #574c28);
  --f-fff1c2: light-dark(#fff1c2, #4c411d);
  --f-fff1e0: light-dark(#fff1e0, #513c20);
  --f-fff4c2: light-dark(#fff4c2, #49411c);
  --f-fff4cc: light-dark(#fff4cc, #49401b);
  --f-fff8db: light-dark(#fff8db, #463d19);
  --f-fff9e0: light-dark(#fff9e0, #453d18);
  --f-fff9e3: light-dark(#fff9e3, #463c18);
  --f-fffaeb: light-dark(#fffaeb, #433b24);
  --f-fffbe6: light-dark(#fffbe6, #433c19);
  --f-fffbea: light-dark(#fffbea, #423b20);
  --f-fffcef: light-dark(#fffcef, #3f3a26);
}
/* Browser ohne light-dark() (vor 2024): die helle Darstellung */
@supports not (color: light-dark(#fff, #000)) {
  :root {
    --np-sch: #9a5200; --np-sch-h: #fff1dd; --np-sch-r: #e09a45; --np-punkt: #d0021b;
    --anthrazit: #2e2e2d; --g9: #3c3c3b; --g7: #575756; --g6: #6b6b6a; --g4: #a3a3a0; --g3: #cdcdc9; --g2: #e3e3df; --g1: #efefec; --papier: #f6f6f3; --weiss: #ffffff; --gelb-d: #c79e00; --gelb-h: #fff6d6; --gruen: #2e8b57; --gruen-h: #e5f3ea; --rot: #b83227; --rot-h: #fbe9e7; --kgrau: #a3a3a0; --knopf: #2e2e2d; --knopf-h: #3c3c3b; --blase: #2e2e2d; --rot-f: #b83227; --gruen-f: #2e8b57; --np-schrift: #2b2b2b; --np-g9: #383838; --dlg-bg: #ffffff; --dlg-text: #000000;
    --raster: rgba(46,46,45,.045); --marke-linie: rgba(46,46,45,.4); --schraffur: rgba(46,46,45,.14); --schraffur-l: rgba(46,46,45,.08); --schraffur-s: rgba(46,46,45,.3); --schatten-1: rgba(46,46,45,.07); --schatten-2: rgba(46,46,45,.06);
    --galerie-bg: #111111; --galerie-kopf: #1d1d1d; --galerie-text: #eeeeee; --galerie-leise: #bbbbbb;
    --f-1d6b40: #1d6b40; --f-1f4f7a: #1f4f7a; --f-1f5e99: #1f5e99; --f-1f6b38: #1f6b38; --f-1f6b40: #1f6b40; --f-222222: #222222; --f-257348: #257348; --f-284868: #284868;
    --f-2a5a9c: #2a5a9c; --f-2b2b2b: #2b2b2b; --f-2c5a92: #2c5a92; --f-2e7d32: #2e7d32; --f-2e7d4f: #2e7d4f; --f-2f5503: #2f5503; --f-2f5f99: #2f5f99; --f-2f5f9a: #2f5f9a;
    --f-2f9a52: #2f9a52; --f-333333: #333333; --f-383838: #383838; --f-498205: #498205; --f-4a7fc1: #4a7fc1; --f-4d4d4d: #4d4d4d; --f-4d535b: #4d535b; --f-4f9d69: #4f9d69;
    --f-555555: #555555; --f-5b6470: #5b6470; --f-5f5f5a: #5f5f5a; --f-69797e: #69797e; --f-6b6450: #6b6450; --f-6b6b6b: #6b6b6b; --f-757575: #757575; --f-7a1f17: #7a1f17; --f-7a5f00: #7a5f00; --f-7bd389: #7bd389;
    --f-80581a: #80581a; --f-86a3c2: #86a3c2; --f-8a4b00: #8a4b00; --f-8a6400: #8a6400; --f-8a6d00: #8a6d00; --f-8a8a8a: #8a8a8a; --f-8a9099: #8a9099; --f-8d8d89: #8d8d89; --f-8f1d20: #8f1d20;
    --f-9a6b00: #9a6b00; --f-9a7b00: #9a7b00; --f-9a9a94: #9a9a94; --f-9a9a96: #9a9a96; --f-9aa0a6: #9aa0a6; --f-9fcfb1: #9fcfb1; --f-a0a09a: #a0a09a; --f-a6a6a0: #a6a6a0;
    --f-a6a6a6: #a6a6a6; --f-a9a8a2: #a9a8a2; --f-b3261e: #b3261e; --f-b8dcc6: #b8dcc6; --f-b9cfe9: #b9cfe9; --f-b9dcc6: #b9dcc6; --f-bbbbbb: #bbbbbb; --f-c0504d: #c0504d;
    --f-c3c3bd: #c3c3bd; --f-c4c4bf: #c4c4bf; --f-c97b10: #c97b10; --f-c9c9c4: #c9c9c4; --f-cfcfcf: #cfcfcf; --f-d13438: #d13438; --f-d2d2d2: #d2d2d2; --f-d6d5cf: #d6d5cf; --f-d9c27a: #d9c27a;
    --f-dcdcd7: #dcdcd7; --f-dddddd: #dddddd; --f-dde6f2: #dde6f2; --f-dfe9f3: #dfe9f3; --f-e08a1e: #e08a1e; --f-e0b400: #e0b400; --f-e1f1e5: #e1f1e5; --f-e3b2ac: #e3b2ac;
    --f-e3edf9: #e3edf9; --f-e5f3ea: #e5f3ea; --f-c8341b: #c8341b; --f-e6dcc0: #e6dcc0; --f-e6eef8: #e6eef8; --f-e7b9b3: #e7b9b3; --f-e8f0fb: #e8f0fb; --f-ebebe7: #ebebe7; --f-ecd789: #ecd789;
    --f-ecd98a: #ecd98a; --f-ececea: #ececea; --f-eceeea: #eceeea; --f-eee1ba: #eee1ba; --f-eeeee9: #eeeee9; --f-eeeeea: #eeeeea; --f-eef3f8: #eef3f8; --f-eef3f9: #eef3f9;
    --f-efc0bb: #efc0bb; --f-efc4bf: #efc4bf; --f-efefeb: #efefeb; --f-f0a030: #f0a030; --f-f0c98f: #f0c98f; --f-f0dd99: #f0dd99; --f-f1ead6: #f1ead6; --f-f1efe6: #f1efe6;
    --f-f2f2ee: #f2f2ee; --f-f2f6fb: #f2f6fb; --f-f2f7fd: #f2f7fd; --f-f3eddb: #f3eddb; --f-f3f3ef: #f3f3ef; --f-f3f8f4: #f3f8f4; --f-f4f4f1: #f4f4f1; --f-f4f4f2: #f4f4f2;
    --f-f6ecd9: #f6ecd9; --f-f6f1e2: #f6f1e2; --f-f6f6f3: #f6f6f3; --f-f7f6f2: #f7f6f2; --f-f8f4e6: #f8f4e6; --f-f8f8f6: #f8f8f6; --f-fafaf7: #fafaf7; --f-fbe0dc: #fbe0dc;
    --f-fbe9e7: #fbe9e7; --f-fbf6df: #fbf6df; --f-fbf8ef: #fbf8ef; --f-fbfbf9: #fbfbf9; --f-fdecec: #fdecec; --f-ffc400: #ffc400; --f-ffd21f: #ffd21f; --f-ffe27a: #ffe27a;
    --f-fff1c2: #fff1c2; --f-fff1e0: #fff1e0; --f-fff4c2: #fff4c2; --f-fff4cc: #fff4cc; --f-fff8db: #fff8db; --f-fff9e0: #fff9e0; --f-fff9e3: #fff9e3; --f-fffaeb: #fffaeb;
    --f-fffbe6: #fffbe6; --f-fffbea: #fffbea; --f-fffcef: #fffcef;
  }
}
* { box-sizing: border-box; }
html { font-size: 15px; }
dialog { background: var(--dlg-bg); color: var(--dlg-text); }
body {
  margin: 0; font-family: var(--schrift); color: var(--anthrazit); background: var(--papier);
  line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: var(--anthrazit); text-decoration-color: var(--gelb-d); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--anthrazit); }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.2; }
h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
small, .klein { font-size: .84rem; }
.leise { color: var(--g6); }
.zahl, td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tab-num { font-variant-numeric: tabular-nums; }

/* Kopfleiste mit feinem Karo */
.kopf {
  color-scheme: light; /* sieht in jeder Darstellung gleich aus */
  background-color: var(--anthrazit);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 14px 14px;
  border-bottom: 3px solid var(--gelb);
  color: var(--weiss);
  position: sticky; top: 0; z-index: 60; /* ab 2.5.0: Menüleiste bleibt immer sichtbar */
}
.kopf-innen { max-width: none; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; min-height: 58px; flex-wrap: wrap; }
.marke { display: flex; align-items: baseline; gap: 10px; color: var(--weiss); text-decoration: none; }
.marke b { font-size: 1.12rem; letter-spacing: .02em; }
.marke span { font-size: .78rem; color: var(--g3); letter-spacing: .18em; text-transform: uppercase; }
.wuerfel { width: 22px; height: 22px; align-self: center; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--g2); text-decoration: none; padding: 7px 12px; border-radius: 4px; font-size: .93rem; }
.nav a:hover { background: rgba(255,255,255,.08); color: var(--weiss); }
.nav a.aktiv { background: rgba(242,193,0,.16); color: var(--weiss); box-shadow: inset 0 -2px 0 var(--gelb); }
.wer { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--g3); }
.wer form { margin: 0; }
.wer button { background: none; border: 1px solid rgba(255,255,255,.25); color: var(--g2); border-radius: 4px; padding: 4px 9px; cursor: pointer; font: inherit; }
.wer button:hover { border-color: var(--gelb); color: var(--weiss); }
.unternav { background: var(--weiss); border-bottom: 1px solid var(--g2); position: sticky; top: var(--kopf-h, 61px); z-index: 59; }
html { scroll-padding-top: calc(var(--oben, 61px) + 10px); }
.unternav .innen { max-width: none; margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; flex-wrap: wrap; }
.unternav a { padding: 10px 8px; font-size: .88rem; text-decoration: none; color: var(--g7); border-bottom: 2px solid transparent; white-space: nowrap; }
.unternav a.aktiv { color: var(--anthrazit); border-bottom-color: var(--gelb); font-weight: 600; }
.unternav a:hover { color: var(--anthrazit); }

main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 60px; }
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.seitenkopf p { margin: 2px 0 0; color: var(--g6); }

.meldung, .fehler { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.meldung { background: var(--gruen-h); border-color: var(--f-b8dcc6); }
.fehler { background: var(--rot-h); border-color: var(--f-efc0bb); color: var(--f-7a1f17); }
.hinweis { background: var(--gelb-h); border: 1px solid var(--f-f0dd99); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }

/* Karten und Raster */
.karte { background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.karte > h2:first-child { margin-top: 0; }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.karte-kopf h2 { margin: 0; }
.raster { display: grid; gap: 18px; }
.raster > * { min-width: 0; } /* breite Tabellen scrollen in der Karte statt die Seite zu verbreitern */
code { overflow-wrap: anywhere; }
.raster.zwei { grid-template-columns: 1.15fr 1fr; }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .raster.zwei, .raster.drei { grid-template-columns: 1fr; } }

.kennzahl { background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); padding: 14px 18px; position: relative; overflow: hidden; }
.kennzahl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--g3); }
.kennzahl.gelb::before { background: var(--gelb); }
.kennzahl.gruen::before { background: var(--gruen); }
.kennzahl .wert { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kennzahl .bez { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--g6); }

/* Tabellen */
.tab { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tab th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g6); font-weight: 600; padding: 7px 8px; border-bottom: 2px solid var(--anthrazit); white-space: nowrap; }
.tab td { padding: 8px 8px; border-bottom: 1px solid var(--g1); vertical-align: top; }
.tab tr:last-child td { border-bottom: none; }
.tab tfoot td { border-top: 2px solid var(--anthrazit); font-weight: 700; }
.tab tr.markiert td { background: var(--gelb-h); }
.tab tr.gesperrt td { color: var(--g6); }
.tab .unter { display: block; color: var(--g6); font-size: .82rem; }
.tab td.aktion { white-space: nowrap; text-align: right; }
.scroll { overflow-x: auto; }

/* Formulare */
label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--g6); margin-bottom: 4px; font-weight: 600; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=date], input[type=time], input[type=number], input[type=month], input[type=search], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--anthrazit); background: var(--weiss);
  border: 1px solid var(--g3); border-radius: 4px; padding: 8px 10px; min-height: 38px;
}
textarea { min-height: 70px; resize: vertical; }
/* grauer Vorgabetext leerer Felder: hell wie die Vorgabe des Browsers, dunkel heller (sonst kaum lesbar) */
::placeholder { color: var(--f-757575); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gelb); outline-offset: 0; border-color: var(--gelb-d); }
/* Kommissions-Auswahl: jeder Eintrag zart in der Farbe seines Kunden (22 % Kundenfarbe, sonst die Kartenfarbe – hell
   also Weiß, dunkel die dunkle Karte); nicht abrechenbare grau. Das Feld selbst färbt app.js nach der Auswahl. */
option[data-kf] { background-color: color-mix(in srgb, var(--kf) 22%, var(--weiss)); color: var(--anthrazit); }
option[data-nab] { color: var(--f-5f5f5a); }
.feld { margin-bottom: 12px; }
.felder { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.felder .feld { margin: 0; }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--anthrazit); font-weight: 400; }
.check input { width: 18px; height: 18px; flex: none; } /* ab 2.15.0: bleibt auch neben umbrechendem Text 18 px */
fieldset.nurlesen { border: 0; padding: 0; margin: 0; min-width: 0; }
input[data-fix-nummer][readonly] { background: var(--g1); color: var(--g7); cursor: default; }
.fix-haken { margin-top: 6px; font-size: .85rem; }
.rechte-titel { margin: 18px 0 2px; }
.rechte { display: grid; gap: 10px; margin: 10px 0 16px; }
.check.recht { align-items: flex-start; }
.check.recht input[type=checkbox] { margin-top: 2px; flex: none; }
.check.recht input:disabled + input + span b { color: var(--g6); }
.check.recht .unter { display: block; color: var(--g6); font-size: .82rem; margin-top: 1px; }
.check.recht [data-recht-hinweis] { margin-left: 6px; }
.zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zeile > * { margin: 0; }
.inline { display: inline; margin: 0; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .92rem;
  padding: 8px 15px; min-height: 38px; border-radius: 4px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--knopf); background: var(--knopf); color: var(--auf-dunkel); white-space: nowrap;
}
.btn:hover { background: var(--knopf-h); }
.btn.gelb { background: var(--gelb); border-color: var(--gelb-d); color: var(--auf-gelb); }
.btn.gelb:hover { background: var(--f-ffd21f); }
.btn.hell { background: var(--weiss); color: var(--anthrazit); border-color: var(--g3); }
.btn.hell:hover { border-color: var(--anthrazit); }
.btn.rot { background: var(--weiss); color: var(--rot); border-color: var(--f-e3b2ac); }
.btn.rot:hover { background: var(--rot-h); }
.btn.gross { font-size: 1.05rem; padding: 12px 22px; min-height: 48px; }
.btn.klein { font-size: .82rem; padding: 4px 9px; min-height: 28px; font-weight: 500; }
.umschalter { display: inline-flex; }
.umschalter .btn { border-radius: 0; }
.umschalter .btn:first-child { border-radius: 4px 0 0 4px; }
.umschalter .btn:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.chip { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--g1); color: var(--g7); white-space: nowrap; }
.chip.gruen { background: var(--gruen-h); color: var(--f-1d6b40); }
.chip.gelb { background: var(--gelb-h); color: var(--f-7a5f00); }
.chip.rot { background: var(--rot-h); color: var(--rot); }
.chip.dunkel { background: var(--knopf); color: var(--auf-dunkel); }
.ampel { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--g3); vertical-align: -1px; }
.ampel.rot { background: var(--rot); } .ampel.gelb { background: var(--gelb); } .ampel.gruen { background: var(--gruen); }

/* Stempeln */
.jetzt { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.uhr { font-size: 3.1rem; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1; }
.laeuft-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gruen); margin-right: 8px; animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .25; } }
.jetzt .was { font-size: 1.08rem; font-weight: 600; margin-top: 8px; }
.jetzt .was span { color: var(--g6); font-weight: 400; }
.knoepfe { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .jetzt { grid-template-columns: 1fr; } .knoepfe { flex-direction: row; } .uhr { font-size: 2.4rem; } }
.favoriten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.favoriten form { margin: 0; }
.favoriten button { width: 100%; text-align: left; background: var(--weiss); border: 1px solid var(--g2); border-left: 5px solid var(--kf, var(--kgrau)); border-radius: 4px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--anthrazit); }
.favoriten button:hover { border-color: var(--anthrazit); border-left-color: var(--kf, var(--kgrau)); background: var(--papier); }
.favoriten b { display: block; font-size: .95rem; }
.favoriten span { font-size: .84rem; color: var(--g6); }
.favoriten button.aktuell { border-color: var(--gruen); border-left-color: var(--kf, var(--kgrau)); background: var(--gruen-h); }
/* Kundenfarbe: Quadrat vor der Kommission; ohne Farbe grau */
.kf { display: inline-block; width: .72em; height: .72em; border-radius: 2px; background: var(--kf, var(--kgrau)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); margin-right: .45em; vertical-align: -.03em; }
.feld input[type=color] { width: 52px; height: 34px; padding: 2px; border: 1px solid var(--g3); border-radius: 4px; background: var(--weiss); cursor: pointer; }

/* Monat */
.monatsnav { display: flex; align-items: center; gap: 6px; }
.monatsnav strong { min-width: 150px; text-align: center; font-size: 1.05rem; }
.tag { border-top: 1px solid var(--g2); padding: 10px 0 4px; }
.tag:first-child { border-top: none; }
.tag-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.tag-kopf b { font-size: .98rem; }
.tag.fokus { background: linear-gradient(90deg, var(--gelb-h), transparent 60%); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.tag.wochenende .tag-kopf b { color: var(--g6); }
.balken { height: 6px; background: var(--g1); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.balken i { display: block; height: 100%; background: var(--gelb); }

/* Aufgaben */
.aufgaben { list-style: none; padding: 0; margin: 0; }
.aufgaben li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--g1); }
.aufgaben li:last-child { border-bottom: none; }
.aufgaben .ampel { margin-top: 5px; flex: none; }
.aufgaben a { margin-left: auto; white-space: nowrap; font-size: .88rem; }
.leer { color: var(--g6); padding: 6px 0; }

/* Anmeldung */
.mitte { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px);
  background-size: 18px 18px; }
.anmeldebox { width: 100%; max-width: 380px; background: var(--weiss); border: 1px solid var(--g2); border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.anmeldebox .oben { background: var(--kopf-bg); color: var(--auf-dunkel); padding: 20px 24px 16px; border-bottom: 3px solid var(--gelb); }
.anmeldebox .oben b { font-size: 1.25rem; display: block; }
.anmeldebox .geraet-stand { margin: 0; padding: 18px 24px; font-size: 1rem; } /* ab 2.67.1: Anmeldung mit dem gemerkten Gerät */
.anmeldebox form[hidden], .anmeldebox .ms-anmeldung[hidden], .anmeldebox .geraet-stand[hidden] { display: none; }
.anmeldebox .oben span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--auf-dunkel-leise); }
.anmeldebox form, .anmeldebox .inhalt { padding: 22px 24px 24px; }
.anmeldebox .btn { width: 100%; }

.qr { background: #fff; /* auch dunkel weiß: der Code wird schwarz auf weiß abgelesen */ padding: 6px; border: 1px solid var(--g2); display: inline-block; border-radius: 4px; }
.qr svg { display: block; width: 200px; height: 200px; }
.geheim { font-family: Consolas, "Courier New", monospace; font-size: 1rem; letter-spacing: .06em; background: var(--g1); padding: 6px 10px; border-radius: 4px; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.pdf-rahmen { width: 100%; height: 75vh; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--g1); }
details > summary { cursor: pointer; font-weight: 600; }
details.karte > summary { font-size: 1.05rem; font-weight: 700; }
/* Leistungsnachweis zusammenstellen */
.auswahl-ma { border-top: 1px solid var(--g2); padding: 10px 0 6px; }
.auswahl-kopf { display: flex; gap: 8px; align-items: center; font-size: 1.02rem; }
.auswahl-monat { margin: 4px 0 0 28px; }
.auswahl-monat-kopf { display: flex; gap: 12px; align-items: center; }
.auswahl-monat-kopf label { min-width: 150px; display: flex; gap: 8px; align-items: center; }
.auswahl label { text-transform: none; letter-spacing: normal; font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }
.auswahl-tage { display: grid; gap: 2px; margin: 4px 0 8px 28px; }
.auswahl-tage[hidden] { display: none; }
.auswahl-tag { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.auswahl-tag > label { flex: 1; min-width: 0; display: grid; grid-template-columns: 18px 92px 52px 1fr; gap: 8px; align-items: baseline; }
.auswahl-tag .leise { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auswahl-tag.neu > label { grid-template-columns: 18px 92px 52px auto 1fr; }
.auswahl-tag.neu .chip { font-size: .7rem; padding: 1px 6px; }
.auswahl-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auswahl-monat-kopf .pz-feld { margin-left: auto; }
.auswahl-monat-kopf > .tab-num { min-width: 150px; text-align: right; } /* „Tage“-Knöpfe untereinander */
.pz-feld { white-space: nowrap; color: var(--g6); font-size: .88rem; }
.pz-feld input.pz { width: 66px; min-height: 28px; padding: 2px 6px; text-align: right; font-size: .9rem; }
.pz-feld input.pz.anders { border-color: var(--gelb-d); background: var(--gelb-h); color: var(--anthrazit); font-weight: 600; }
#auswahl-anteil b { color: var(--anthrazit); }
.auswahl-fuss { position: sticky; bottom: 0; background: var(--weiss); border-top: 2px solid var(--anthrazit); padding: 12px 0 2px; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filterleiste select { width: auto; min-width: 180px; }
details[open] > summary { margin-bottom: 10px; }
.fuss { text-align: center; color: var(--g4); font-size: .78rem; padding: 24px 0 10px; }
hr { border: none; border-top: 1px solid var(--g2); margin: 16px 0; }
@media print { .kopf, .unternav, .knoepfe, form, .fuss { display: none !important; } body { background: #fff; } .karte { border: none; } }

/* Auswahlfelder in Zeilen nicht auf volle Breite ziehen */
.zeile > select, .zeile > input[type=search], .zeile > input[type=text], .zeile > input[type=password] { width: auto; min-width: 150px; }

/* Schmale Bildschirme (Handy) */
@media (max-width: 760px) {
  html { font-size: 15px; }
  .kopf-innen { gap: 4px 12px; padding: 8px 14px; min-height: 0; }
  .marke { flex: 1; }
  .wer span { display: none; }
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .nav a { padding: 6px 10px; }
  main { padding: 16px 14px 40px; }
  .seitenkopf { align-items: flex-start; }
  .karte { padding: 14px 14px; }
  .unternav .innen { flex-wrap: nowrap; overflow-x: auto; padding: 0 10px; }
  .zeile > select, .zeile > input { min-width: 0; flex: 1 1 140px; }
}

/* Zahlen-Spaltenköpfe rechtsbündig (über .tab th) */
.tab th.zahl { text-align: right; }

/* Gesamtübersicht (Matrix) */
.matrix .tab { min-width: 100%; }
.matrix .tab th, .matrix .tab td { white-space: nowrap; }
.matrix .erste { position: sticky; left: 0; z-index: 1; background: var(--weiss); min-width: 240px; max-width: 380px; white-space: normal !important; box-shadow: 1px 0 0 var(--g2); }
.matrix thead .erste { z-index: 2; }
.matrix th .unter { font-size: .7rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.matrix th a { color: inherit; text-decoration: none; }
.matrix td.zahl a { text-decoration: none; }
.matrix td.zahl a:hover { text-decoration: underline; text-decoration-color: var(--gelb-d); }
.matrix tr.gruppe td { background: var(--g1); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--g6); font-weight: 700; padding-top: 9px; padding-bottom: 7px; position: static; }
.matrix tr.zwischensumme td { font-weight: 700; background: var(--papier); border-top: 1px solid var(--g3); }
.matrix tr.zwischensumme td.erste { background: var(--papier); }
.matrix .summe { background: var(--gelb-h); font-weight: 700; }
.matrix tfoot td.erste { background: var(--weiss); }
.matrix tfoot tr.anteil td { border-top: none; font-weight: 500; color: var(--g6); }
.matrix th.ma { text-transform: none; letter-spacing: 0; font-size: .84rem; color: var(--anthrazit); }

/* Wochenraster */
.woche-tag { padding-bottom: 14px; }
.woche-tag.wochenende { background: var(--papier); }
.woche-tag .tab.vorhanden { margin-bottom: 10px; }
.woche-tag .tab.vorhanden td { padding: 5px 8px; font-size: .88rem; }
.woche-kopf, .woche-zeile { display: grid; gap: 6px; grid-template-columns: minmax(180px, 2.2fr) minmax(130px, 1.3fr) 104px 104px 70px minmax(160px, 3fr); align-items: start; }
.woche-kopf span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g6); font-weight: 600; padding: 0 2px 2px; }
.woche-zeile { margin-bottom: 6px; }
.woche-zeile select, .woche-zeile input { min-height: 34px; padding: 6px 8px; }
.woche-zeile.falsch select, .woche-zeile.falsch input { border-color: var(--rot); background: var(--rot-h); }
.zeilenfehler { grid-column: 1 / -1; color: var(--rot); font-size: .84rem; margin-top: -2px; }
.woche-fuss { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border-left: 3px solid var(--gelb); }
.woche-fuss p { margin: 4px 0 0; max-width: 760px; }
@media (max-width: 900px) {
  .woche-kopf { display: none; }
  .woche-zeile { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--g1); }
  .woche-zeile input[name=text] { grid-column: 1 / -1; }
}
.knopfstapel { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; }
@media (min-width: 1280px) { .knopfstapel { display: inline-grid; grid-template-columns: repeat(2, auto); } .knopfstapel form .btn { width: 100%; } } /* breite Abrechnung: 2 × 2 statt 4 untereinander */

/* ---------- 1.3.0: Vorschau, Bearbeiten in der Zeile, Auswahl in Zeiten ---------- */
/* PDF-Vorschau im Dialog */
dialog.vorschau { width: min(1100px, 96vw); height: 92vh; padding: 0; border: 1px solid var(--g3); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(0,0,0,.28); background: var(--weiss); }
dialog.vorschau[open] { display: flex; flex-direction: column; }
dialog.vorschau::backdrop { background: rgba(46,46,45,.55); }
.vorschau-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 2px solid var(--anthrazit); }
.vorschau-kopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vorschau-kopf a[hidden] { display: none; }
dialog.vorschau iframe { flex: 1; width: 100%; border: 0; background: var(--g1); }
a.vorschau-link { text-decoration: none; display: block; }
a.vorschau-link:hover b { text-decoration: underline; text-decoration-color: var(--gelb-d); }

/* Schnellstart: letzte Beschreibung */
.favoriten .fav-text { display: block; margin-top: 3px; font-size: .8rem; color: var(--g7); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Budget einer Kommission (ab 2.3.5) */
.budget { font-size: .9rem; padding-top: 4px; }
.budget-balken { height: 7px; background: var(--g2); border-radius: 4px; overflow: hidden; margin: 2px 0 5px; max-width: 320px; }
.budget-balken i { display: block; height: 100%; background: var(--gruen); }
.budget.gelb .budget-balken i { background: var(--gelb-d); }
.budget.rot .budget-balken i { background: var(--rot); }
.budget.rot b { color: var(--rot); }
.budget .unter { display: block; color: var(--g6); font-size: .8rem; }

/* Kunde und Bestell-Nr. bei der Kommission (ab 2.3.4) */
.kzusatz { color: var(--g6); font-size: .84em; font-weight: 400; }
.jetzt .was-zusatz { color: var(--g6); font-size: .86rem; margin-top: 2px; }
.favoriten .fav-kunde { display: block; margin-top: 2px; font-size: .78rem; color: var(--g6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-b .wk-kunde { font-style: normal; opacity: .75; }
.ueb-tab thead th span.ueb-kunde { font-size: .72rem; }

/* Bearbeiten in der Zeile */
.tab tr.ie-zeile > td { background: var(--gelb-h); border-bottom: 2px solid var(--gelb-d); padding: 12px 10px; }
.ie { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); align-items: end; }
.ie-feld label { margin-bottom: 3px; }
.ie-feld input, .ie-feld select { min-height: 34px; padding: 6px 8px; }
.ie-feld.komm { grid-column: span 2; }
.ie-feld.text { grid-column: 1 / -1; }
.ie-leiste { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.ie-fehler { color: var(--rot); font-weight: 600; margin-right: auto; }
@media (max-width: 560px) { .ie-feld.komm { grid-column: 1 / -1; } }

/* Verwaltung → Zeiten: Monatszeilen und Auswahl */
.tab th.wahl, .tab td.wahl { width: 30px; padding-right: 0; }
.tab td.wahl input { width: 17px; height: 17px; margin: 2px 0 0; }
.tab tr.monatszeile td { background: var(--g1); border-top: 2px solid var(--g3); border-bottom: 1px solid var(--g3); padding-top: 9px; padding-bottom: 9px; }
.tab tbody:first-of-type tr.monatszeile td { border-top: none; }
.sammelleiste { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--weiss); border-top: 2px solid var(--anthrazit); padding: 12px 0 4px; margin-top: 12px; }
.sammelleiste[hidden] { display: none; }
.sammelleiste select { width: auto; min-width: 260px; }
.sammelleiste input[type=text] { width: auto; flex: 1 1 220px; }

/* abzurechnender Anteil */
label.anteil { display: inline-flex; align-items: center; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--anthrazit); font-weight: 400; }
label.anteil input { width: 74px; min-height: 34px; padding: 5px 8px; text-align: right; }
.ie-feld input:disabled, .ie-feld select:disabled { background: var(--g1); color: var(--g6); }
/* Alle bearbeiten: schmal drei Zeilen je Buchung, ab 760 px Breite eine */
.ie-mehr-rahmen { container-type: inline-size; }
.ie-mehr .ie { grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; grid-template-areas: "von bis dauer weg" "komm komm taet taet" "text text text text" "hw hw hw hw"; }
.ie-mehr .ie-feld.von { grid-area: von; }
.ie-mehr .ie-feld.bis { grid-area: bis; }
.ie-mehr .ie-feld.komm { grid-area: komm; }
.ie-mehr .ie-feld.taet { grid-area: taet; }
.ie-mehr .ie-feld.text { grid-area: text; }
.ie-mehr .ie-feld.dauer { grid-area: dauer; }
.ie-mehr .ie-feld.weg { grid-area: weg; } /* ab 2.2.3: Zeile löschen */
.ie-mehr .ie-hinweis { grid-area: hw; }
@container (min-width: 760px) {
  .ie-mehr .ie { grid-template-columns: 112px 112px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 2fr) 64px 40px; grid-template-areas: "von bis komm taet text dauer weg" "hw hw hw hw hw hw hw"; }
}
.btn[hidden] { display: none; }
.ie-dauer { display: block; min-height: 34px; padding: 7px 0; font-weight: 600; }
/* Bearbeiten in der Zeile: Zeile in der Farbe des Kunden (ohne Farbe grau), Balken links */
.tab tr.ie-zeile.kf-zeile > td { background: color-mix(in srgb, var(--kf) 14%, var(--weiss)); border-bottom-color: color-mix(in srgb, var(--kf) 55%, var(--weiss)); box-shadow: inset 6px 0 0 var(--kf); }
.tab tr.ie-zeile.ie-falsch > td { background: var(--f-fdecec); border-bottom-color: var(--rot); }
.tab tr.ie-zeile.ie-mehr.ie-falsch > td { box-shadow: inset 6px 0 0 var(--rot), inset 0 0 0 2px var(--rot); } /* ab 2.2.3: Fehler deutlich anders als eine rote Kundenfarbe */
/* ab 2.2.3: Hinweis je Zeile (Ende vor Beginn, Überschneidung, wird gelöscht) und gelöschte Zeilen */
.ie-hinweis { font-size: .84rem; color: var(--rot); font-weight: 600; margin-top: -4px; }
.ie-hinweis.leise { color: var(--g6); font-weight: 400; }
.ie-hinweis:empty { display: none; }
.ie-weg-knopf { width: 100%; min-height: 34px; padding: 0 !important; font-size: 1rem; line-height: 1; }
.tab tr.ie-zeile.ie-weg > td { background: var(--g1); box-shadow: inset 6px 0 0 var(--g4); border-bottom-color: var(--g3); }
.ie-weg .ie-feld:not(.weg) { opacity: .5; }
.ie-weg .ie-feld input, .ie-weg .ie-feld select { text-decoration: line-through; }
.ie-weg .ie-hinweis, .ie-weg .ie-hinweis.leise { color: var(--rot); font-weight: 600; }
.ie-alle { margin-top: 10px; }
.ie-alle .check { margin: 0 6px 0 0; }
@keyframes ie-blink { from { background: var(--f-ffe27a); } to { background: var(--weiss); } }
.ie-blink { animation: ie-blink 1.2s ease-out; }

/* ---------- 1.4.0: Navigation, Archiv, volle Breite ---------- */
.unternav .subnav-trenner { flex: 1 1 24px; min-width: 24px; }
.unternav .subnav-gruppe { display: flex; gap: 2px; padding-left: 12px; margin-left: 4px; border-left: 2px solid var(--g2); }
.unternav .subnav-gruppe a { color: var(--g6); }
.unternav .innen > .subnav-gruppe:first-child { border-left: 0; padding-left: 0; margin-left: 0; }
@media (max-width: 760px) { .unternav .subnav-trenner { flex: 0 0 8px; min-width: 8px; } }
main.breit { max-width: none; padding-left: 24px; padding-right: 24px; }
@media (max-width: 760px) { main.breit { padding-left: 14px; padding-right: 14px; } }
/* Reiter innerhalb einer Seite (Archiv) */
.reiter { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; border-bottom: 2px solid var(--g2); }
.reiter a { padding: 9px 14px; text-decoration: none; color: var(--g7); border: 1px solid transparent; border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -2px; }
.reiter a .leise { font-size: .8rem; margin-left: 4px; }
.reiter a.aktiv { background: var(--weiss); color: var(--anthrazit); font-weight: 600; border-color: var(--g2); border-bottom: 2px solid var(--weiss); }
.reiter a:hover { color: var(--anthrazit); }
details.aufklapp { display: inline-block; text-align: left; vertical-align: top; }
details.aufklapp[open] > form { margin-top: 8px; min-width: 240px; max-width: 380px; background: var(--weiss); white-space: normal; }

/* ---------- Urlaubsplaner ---------- */
.zahlmarke { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: 4px; border-radius: 1em; background: var(--gelb); color: var(--auf-gelb); font-size: .74rem; font-weight: 700; line-height: 1.45; text-align: center; }
.urlaubsplan { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .82rem; user-select: none; }
.urlaubsplan th, .urlaubsplan td { border-bottom: 1px solid var(--g2); padding: 0; text-align: center; }
.urlaubsplan thead th { font-weight: 600; padding: 4px 0 6px; min-width: 26px; color: var(--g7); border-bottom: 2px solid var(--anthrazit); }
.urlaubsplan thead th span { display: block; font-size: .68rem; font-weight: 400; color: var(--g6); }
.urlaubsplan th.name { text-align: left; padding: 6px 12px 6px 2px; white-space: nowrap; position: sticky; left: 0; background: var(--weiss); z-index: 1; min-width: 150px; font-weight: 500; }
.urlaubsplan td { height: 30px; min-width: 26px; border-left: 1px solid var(--g1); }
.urlaubsplan td.zahl, .urlaubsplan th.zahl { min-width: 44px; padding: 0 6px; text-align: right; color: var(--g7); }
.urlaubsplan .we { background: var(--g1); }
.urlaubsplan .ft { background: var(--f-f1ead6); }
.urlaubsplan thead th.heute { color: var(--anthrazit); background: var(--gelb-h); }
.urlaubsplan td.heute { box-shadow: inset 2px 0 0 var(--gelb), inset -2px 0 0 var(--gelb); }
.urlaubsplan tr.eigene th.name { font-weight: 700; background: var(--gelb-h); box-shadow: inset 4px 0 0 var(--gelb); padding-left: 10px; }
.urlaubsplan tr.eigene th.name::after { content: " · du"; font-weight: 400; color: var(--g6); }
.urlaubsplan tr.eigene td:not(.abw) { background-color: var(--f-fffaeb); }
.urlaubsplan tr.eigene td.we:not(.abw) { background-color: var(--f-f3eddb); }
.urlaubsplan tr.eigene td.ft:not(.abw) { background-color: var(--f-eee1ba); }
.urlaubsplan tr.eigene > th, .urlaubsplan tr.eigene > td { border-bottom-color: var(--f-ecd789); }
.urlaubsplan tbody tr:not(.eigene):hover th.name { background: var(--g1); }
.urlaubsplan tr[data-waehlbar] td[data-tag] { cursor: crosshair; }
.urlaubsplan td.abw, .legende i.abw { background-color: var(--g4); }
.urlaubsplan td.urlaub, .legende i.urlaub { background-color: var(--f-4f9d69); }
.urlaubsplan td.ueberstunden, .legende i.ueberstunden { background-color: var(--f-4a7fc1); }
.urlaubsplan td.krank, .legende i.krank { background-color: var(--f-c0504d); }
.urlaubsplan td.abwesend, .legende i.abwesend { background-color: var(--f-9a9a96); }
.urlaubsplan td.beantragt, .legende i.beantragt { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0 4px, transparent 4px 8px); }
.urlaubsplan td.rueckgabe, .legende i.rueckgabe { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.8) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.urlaubsplan td.wahl { background: var(--gelb) !important; background-image: none !important; }
/* Urlaubsplaner: Jahresband – je Mitarbeiter eine Zeile, das ganze Jahr */
.jahresband { position: relative; min-width: 1180px; font-size: .82rem; user-select: none; }
.jb-kopf, .jb-zeile { display: grid; grid-template-columns: 170px minmax(0, 1fr) 62px 62px 52px; }
.jb-kopf { border-bottom: 2px solid var(--anthrazit); font-weight: 600; color: var(--g7); }
.jb-kopf .jb-name, .jb-kopf .jb-summe { padding: 4px 6px 6px 2px; align-items: flex-end; }
.jb-name { display: flex; align-items: center; padding: 0 12px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; z-index: 2; background: var(--weiss); }
.jb-band { position: relative; height: 28px; background-image: var(--jb-bg); }
.jb-kopf .jb-monate { height: 30px; background: none; }
.jb-monat { position: absolute; top: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; color: var(--g7); text-decoration: none; border-left: 1px solid var(--g3); }
.jb-monat:first-child { border-left: 0; }
.jb-monat:hover { background: var(--g1); color: var(--anthrazit); }
.jb-monat.aktuell { color: var(--anthrazit); font-weight: 700; }
.jb-heute { position: absolute; bottom: -2px; width: 0; height: 0; margin-left: -5px; border: 5px solid transparent; border-bottom: 7px solid var(--gelb); }
.jb-zeile { border-bottom: 1px solid var(--g2); }
.jb-zeile:hover .jb-name { background: var(--g1); }
.jb-summe { display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 0 6px; color: var(--g7); font-variant-numeric: tabular-nums; }
.jb-summe small { color: var(--g6); font-size: .74rem; }
.jb-zeile.eigene { background: var(--f-fffaeb); border-bottom-color: var(--f-ecd789); }
.jb-zeile.eigene .jb-name { font-weight: 700; background: var(--gelb-h); box-shadow: inset 4px 0 0 var(--gelb); padding-left: 10px; }
.jb-zeile.eigene .jb-name::after { content: "· du"; font-weight: 400; color: var(--g6); margin-left: 4px; }
.jb-zeile .jb-band { cursor: pointer; }
.jb-zeile[data-waehlbar] .jb-band { cursor: crosshair; }
.jb-seg { position: absolute; top: 5px; bottom: 5px; min-width: 3px; border-radius: 2px; background-color: var(--f-9a9a96); }
.jb-seg.urlaub { background-color: var(--f-4f9d69); }
.jb-seg.ueberstunden { background-color: var(--f-4a7fc1); }
.jb-seg.krank { background-color: var(--f-c0504d); }
.jb-seg.beantragt { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px); }
.jb-seg.rueckgabe { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.85) 0 2px, transparent 2px 4px); }
.jb-wahl { position: absolute; top: 2px; bottom: 2px; background: rgba(242, 193, 0, .55); border: 1px solid var(--gelb-d); border-radius: 2px; pointer-events: none; }
.jb-linie { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--marke-linie); pointer-events: none; z-index: 1; }
.jb-tip { position: fixed; z-index: 60; max-width: 360px; padding: 6px 9px; border-radius: 4px; background: var(--blase); color: #fff; font-size: .78rem; line-height: 1.4; white-space: pre-line; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.legende { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 12px; font-size: .84rem; color: var(--g7); align-items: center; }
.legende i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,.08); }
.legende i.ft { background: var(--f-f1ead6); }

/* ---------- Wochenkalender (Ziehen, Kopieren) ---------- */
.wk-rahmen { overflow-x: auto; background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); margin-bottom: 14px; }
.wk { --hh: 46px; min-width: 860px; user-select: none; }
.wk-zeile { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); }
.wk-kopfzeile { position: sticky; top: 0; z-index: 3; background: var(--weiss); border-bottom: 2px solid var(--anthrazit); }
.wk-ecke { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; padding: 6px 8px 8px; font-size: .7rem; color: var(--g6); }
.wk-ecke b { color: var(--anthrazit); font-size: 1rem; line-height: 1.1; }
.wk-jetzt { position: absolute; left: 0; right: 0; z-index: 2; top: calc(var(--o) * var(--hh) / 60); border-top: 2px solid var(--rot); pointer-events: none; }
.wk-jetzt::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); }
.wk-kopf { padding: 6px 8px 6px; border-left: 1px solid var(--g2); min-width: 0; }
.wk-kopf.we { background: var(--g1); }
.wk-kopf.ft, .wk-kopf.abw { background: var(--f-f6f1e2); }
.wk-kopf.heute { box-shadow: inset 0 3px 0 var(--gelb); background: var(--gelb-h); }
.wk-datum { display: flex; justify-content: space-between; gap: 6px; font-size: .86rem; white-space: nowrap; }
.wk-datum span { color: var(--g7); font-size: .8rem; }
.wk-info { font-size: .72rem; color: var(--g7); min-height: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-tagknoepfe { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
/* TiMaS (ab 1.12.0): Kommen/Gehen im Tageskopf, Anwesenheit als Band im Raster */
.wk-timas { font-size: .72rem; color: var(--f-2f5f99); line-height: 1.3; overflow: hidden; }
.wk-timas.rot { color: var(--rot); }
.wk-timas-marke, .timas-kurz .timas-marke { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--f-4a7fc1); }
.wk-timas-hinweis { display: block; color: var(--g7); white-space: normal; }
.wk-timas.rot .wk-timas-hinweis { color: var(--rot); }
.wk-anw { position: absolute; z-index: 0; left: 0; right: 0; pointer-events: none;
  top: calc(var(--o) * var(--hh) / 60); height: calc(var(--l) * var(--hh) / 60);
  background: rgba(74, 127, 193, .13); border-left: 3px solid var(--f-4a7fc1); }
.wk-legende { margin: 0 0 8px; }
.wk-anw-probe { display: inline-block; width: 14px; height: 12px; margin-right: 6px; vertical-align: -1px; background: rgba(74, 127, 193, .13); border-left: 3px solid var(--f-4a7fc1); }
.timas-kurz { color: var(--f-2f5f99); margin-left: 10px; }
.timas-kurz.rot b { color: var(--rot); }
.wk-k { font: inherit; font-size: .72rem; line-height: 1; padding: 4px 7px; border: 1px solid var(--g3); background: var(--weiss); border-radius: 4px; cursor: pointer; color: var(--g7); }
.wk-k:hover:not(:disabled) { border-color: var(--anthrazit); color: var(--anthrazit); }
.wk-k:disabled { opacity: .45; cursor: default; }
.wk-k.einf { background: var(--gelb); border-color: var(--gelb-d); color: var(--auf-gelb); font-weight: 600; }
.wk-k[hidden] { display: none; }
.wk-koerper { position: relative; }
.wk-achse .wk-h { height: var(--hh); position: relative; border-top: 1px solid transparent; }
.wk-achse .wk-h span { position: absolute; top: -.55em; right: 6px; font-size: .7rem; color: var(--g6); font-variant-numeric: tabular-nums; background: var(--weiss); padding: 0 2px; }
.wk-achse .wk-h:first-child span { top: 2px; }
.wk-spalte { position: relative; height: calc(var(--stunden) * var(--hh)); border-left: 1px solid var(--g2); cursor: crosshair;
  background-image: linear-gradient(var(--g2) 1px, transparent 1px), linear-gradient(var(--g1) 1px, transparent 1px);
  background-size: 100% var(--hh), 100% calc(var(--hh) / 2); background-position: 0 0, 0 calc(var(--hh) / 2); }
.wk-spalte.we { background-color: var(--f-f8f8f6); }
.wk-spalte.ft, .wk-spalte.abw { background-color: var(--f-fbf8ef); }
.wk-spalte.heute { background-color: var(--f-fffcef); }
.wk-b { position: absolute; z-index: 1; overflow: hidden; cursor: grab;
  top: calc(var(--o) * var(--hh) / 60); height: max(14px, calc(var(--l) * var(--hh) / 60 - 2px));
  left: calc(3px + var(--s, 0) * (100% - 6px) / var(--n, 1)); width: calc((100% - 6px) / var(--n, 1) - 2px);
  background: var(--weiss); border: 1px solid var(--g3); border-left: 4px solid var(--kf, var(--kgrau)); border-radius: 4px;
  padding: 2px 5px 2px 6px; font-size: .74rem; line-height: 1.25; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wk-b:hover { border-color: var(--g6); box-shadow: 0 2px 6px rgba(0,0,0,.14); z-index: 2; }
.wk-b:focus-visible { outline: 2px solid var(--anthrazit); outline-offset: 1px; }
.wk-b .wk-zeit { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-b .wk-was { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-b .wk-text { display: block; color: var(--g7); overflow: hidden; }
.wk-b .wk-nr { position: absolute; right: 4px; bottom: 2px; font-size: .64rem; color: var(--g6); background: var(--weiss); padding: 0 2px; }
.wk-b.kurz { padding-top: 0; padding-bottom: 0; }
.wk-b.kurz .wk-zeit { display: inline; margin-right: 4px; }
.wk-b.kurz .wk-was { display: inline; }
.wk-b.kurz .wk-text, .wk-b.kurz .wk-nr { display: none; }
.wk-b.fest { cursor: pointer; background: repeating-linear-gradient(135deg, var(--f-f4f4f1) 0 6px, var(--f-ebebe7) 6px 12px); color: var(--g7); }
.wk-b.laeuft { cursor: pointer; border-style: dashed; border-left-style: solid; background: var(--f-fffbea); }
.wk-b.teil-anfang { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-style: dashed; }
.wk-b.teil-ende { border-top-left-radius: 0; border-top-right-radius: 0; border-top-style: dashed; }
.wk-b.gewaehlt { outline: 2px solid var(--gelb-d); outline-offset: 1px; background: var(--gelb-h); }
.wk-griff { position: absolute; left: 0; right: 0; height: 7px; cursor: ns-resize; z-index: 1; }
.wk-griff.oben { top: -1px; }
.wk-griff.unten { bottom: -1px; }
.wk-b:hover .wk-griff.unten { background: linear-gradient(transparent 3px, var(--g4) 3px, var(--g4) 4px, transparent 4px); }
.wk-b.wk-quelle { opacity: .35; }
.wk-b.wk-aendert { z-index: 4; box-shadow: 0 4px 14px rgba(0,0,0,.22); border-color: var(--anthrazit); }
.wk-geist { z-index: 5; pointer-events: none; opacity: .92; border: 2px dashed var(--anthrazit); border-left-width: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wk-geist.kopie { border-color: var(--gruen); background: var(--gruen-h); }
.wk-geist.neu { background: rgba(242,193,0,.28); border: 2px solid var(--gelb-d); box-shadow: none; }
body.wk-zieht, body.wk-zieht * { cursor: grabbing !important; user-select: none; }
details.wk-hilfe { margin: -4px 0 12px; font-size: .86rem; color: var(--g7); }
details.wk-hilfe summary { cursor: pointer; color: var(--anthrazit); display: inline-block; list-style: none; text-decoration: underline; text-decoration-color: var(--gelb-d); text-underline-offset: 2px; }
details.wk-hilfe summary::-webkit-details-marker { display: none; }
details.wk-hilfe summary::before { content: "▸ "; display: inline-block; width: 1em; }
details.wk-hilfe[open] summary::before { content: "▾ "; }
details.wk-hilfe ul { margin: 6px 0 0; padding-left: 20px; columns: 2 360px; column-gap: 32px; }
details.wk-hilfe li { margin-bottom: 4px; break-inside: avoid; }
kbd { font: inherit; font-size: .78em; padding: 1px 5px; border: 1px solid var(--g3); border-bottom-width: 2px; border-radius: 3px; background: var(--weiss); white-space: nowrap; }
/* Ablage und Meldung (unten fest) */
.wk-ablage { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20; width: min(980px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 14px; background: var(--blase); color: var(--auf-dunkel);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.3); border-top: 3px solid var(--gelb); }
.wk-ablage[hidden] { display: none; }
.wk-ablage .leise { color: var(--auf-dunkel-leise); }
.wk-ablage kbd { color: var(--anthrazit); }
.wk-ablage .zeile { margin-left: auto; gap: 6px; }
.wk-ablage.fremd { border-top-color: var(--rot); }
.wk-ablage details.aufklapp summary { list-style: none; }
.wk-ablage details.aufklapp summary::-webkit-details-marker { display: none; }
.wk-zeitraum-box { position: absolute; bottom: calc(100% + 8px); right: 0; background: var(--weiss); color: var(--anthrazit); border: 1px solid var(--g3);
  border-radius: var(--radius); padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; width: 340px; }
.wk-zeitraum-box .wk-werktage, .wk-zeitraum-box button { grid-column: 1 / -1; }
.wk-zeitraum-box .wk-werktage { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--anthrazit); display: flex; gap: 6px; align-items: flex-start; }
.wk-zeitraum { position: relative; }
.wk-meldung { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 30; max-width: min(460px, calc(100vw - 32px)); padding: 10px 34px 10px 14px;
  background: var(--gruen-h); border: 1px solid var(--f-b9dcc6); border-left: 4px solid var(--gruen); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: .9rem; }
.wk-meldung.fehler { background: var(--rot-h); border-color: var(--f-efc4bf); border-left-color: var(--rot); }
.wk-meldung[hidden] { display: none; }
.wk-meldung ul { margin: 6px 0 0; padding-left: 18px; font-size: .84rem; }
.wk-meldung-zu { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--g7); line-height: 1; }
/* Dialog neu/bearbeiten */
dialog.wk-dlg { width: min(640px, 94vw); border: 1px solid var(--g3); border-radius: var(--radius); padding: 0; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
dialog.wk-dlg::backdrop { background: rgba(46,46,45,.45); }
dialog.wk-dlg form { padding: 14px 16px 16px; }
.wk-dlg-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid var(--anthrazit); }
dialog.wk-dlg .hinweis { margin: 12px 0 0; }
dialog.wk-dlg .ie-leiste { margin-top: 14px; }
dialog.wk-dlg [hidden] { display: none; }
.tag-kopf [data-tag-einfuegen][hidden] { display: none; }
@media print { .wk-ablage, .wk-meldung, .wk-tagknoepfe, details.wk-hilfe { display: none !important; } }

/* ---------- Meldungen (Popup für Admin und Buchhaltung) ---------- */
dialog.meldungen-dlg { width: min(640px, 94vw); border: 1px solid var(--g3); border-top: 4px solid var(--gelb); border-radius: var(--radius); padding: 0; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
dialog.meldungen-dlg::backdrop { background: rgba(46,46,45,.45); }
.meld-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--g2); font-size: 1.05rem; }
.meld-zu { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--g7); }
.meld-liste { list-style: none; margin: 0; padding: 4px 16px; max-height: 62vh; overflow: auto; }
.meld { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 11px 0 11px 12px; border-bottom: 1px solid var(--g1); border-left: 3px solid var(--g3); }
.meld:last-child { border-bottom: 0; }
.meld.antrag { border-left-color: var(--gelb); }
.meld.krank { border-left-color: var(--rot); }
.meld.entschieden, .meld.eingetragen { border-left-color: var(--gruen); }
.meld-text { min-width: 0; }
.meld-inhalt { display: block; margin-top: 3px; }
.meld-knoepfe { display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; }
.meld-knoepfe details.aufklapp form { min-width: 240px; }
.meld-fuss { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--g2); background: var(--g1); border-radius: 0 0 var(--radius) var(--radius); }
.meld-fuss .leise { flex-basis: 100%; }
.fuss a { color: inherit; }
/* Datenschutzhinweis */
.ds h2 { margin-top: 22px; }
.ds table.tab td, .ds table.tab th { vertical-align: top; }
.ds p, .ds li { max-width: 78ch; }
.nr-zelle > a, .nr-zelle > b { white-space: nowrap; }

/* Stempeluhr TiMaS: Zeile im Tageskopf („Meine Zeiten“) und Abgleich */
.timas-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .86rem; color: var(--g7); background: var(--g1); border-radius: var(--radius); padding: 4px 10px; margin: 2px 0 6px; }
.timas-marke { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g6); }
.tab tr.wochenende td { color: var(--g6); }
/* Stundenlisten aller Monate (Meine Zeiten) */
details.aufklapp-liste { margin-top: 10px; }
details.aufklapp-liste > summary { font-size: .86rem; color: var(--g7); }
.tab th.wahl-spalte, .tab td.wahl-spalte { width: 30px; padding-right: 0; }
.tab td.wahl-spalte input, .tab th.wahl-spalte input { width: 16px; height: 16px; margin: 0; vertical-align: middle; }
/* volle Breite: links die Tage, rechts Summen und Listen */
main.breit .raster.zwei.links-breit { grid-template-columns: minmax(0, 2.4fr) minmax(360px, 1fr); }
@media (max-width: 900px) { main.breit .raster.zwei.links-breit { grid-template-columns: 1fr; } }
.tab td.voll { width: 100%; }
.tab td.zeitspalte { width: 104px; white-space: nowrap; }
@media (max-width: 640px) { .tab td.zeitspalte { width: 96px; white-space: normal; } }
/* Personaldaten: Sollzeit je Wochentag */
.soll-tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.soll-tage .feld input { text-align: right; padding-left: 4px; padding-right: 6px; }
@media (max-width: 560px) { .soll-tage { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- ab 1.13.0 ---------- */
.weitere { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.weitere-zeile { display: inline-flex; align-items: center; gap: 4px; }
.weitere-zeile select { width: auto; min-width: 150px; }
.weitere-sl { color: var(--g6); font-weight: 700; }
.laufend-taet { align-items: center; flex-wrap: wrap; gap: 8px; }
.laufend-taet select#lauf-taet { width: auto; min-width: 180px; }
.laufend-taet .weitere { margin-top: 0; }
.gespeichert { color: var(--f-2e7d32); }
.fehlertext { color: var(--f-b3261e); }
.chip.ho { background: var(--f-e3edf9); color: var(--f-2f5f9a); border-color: var(--f-b9cfe9); }
.homeoffice-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--f-4a7fc1); }
.homeoffice-leiste > div { display: flex; flex-direction: column; gap: 2px; }
.homeoffice-leiste.an { background: var(--f-f2f7fd); }
.deaktiviert-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ausgegraut { opacity: .5; pointer-events: none; filter: grayscale(1); }
fieldset[disabled] { opacity: .62; }
.stammtabelle td { vertical-align: top; }
.stammtabelle input[type=text], .stammtabelle textarea, .stammtabelle select { width: 100%; min-width: 110px; }
.stammtabelle textarea { min-height: 2.6em; resize: vertical; font-size: .9rem; }
.stammtabelle input[type=color] { width: 44px; height: 32px; padding: 2px; }
.stammtabelle tr.neu-zeile td { background: var(--f-fffbe6); }
.stammtabelle tr.geaendert td { background: var(--f-fff4c2); }
.stammtabelle .vorzeilen { white-space: pre-line; }
/* Untermenü in Gruppen (ab 1.13.0): Zeiten · Aufträge · Stammdaten · System */
.unternav .innen { gap: 0; align-items: stretch; }
.unternav .subnav-gruppe { display: flex; align-items: stretch; gap: 2px; padding: 0 10px 0 10px; margin: 0; border-left: 1px solid var(--g2); position: relative; padding-top: 14px; }
.unternav .subnav-gruppe:first-child { border-left: none; padding-left: 0; }
.unternav .subnav-gruppe a { color: var(--g7); padding-top: 4px; }
.unternav .subnav-titel { position: absolute; top: 3px; left: 18px; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g5, var(--f-9a9a96)); font-weight: 700; pointer-events: none; }
.unternav .subnav-gruppe:first-child .subnav-titel { left: 8px; }
@media (max-width: 700px) { .unternav .subnav-titel { display: none; } .unternav .subnav-gruppe { padding-top: 0; } }
.kw-zeile th.kw { font-size: .66rem; letter-spacing: .06em; color: var(--g6); text-align: left; border-left: 1px solid var(--g2); padding: 2px 4px; white-space: nowrap; }
.filter-aktiv { background-color: var(--f-e3edf9) !important; border-color: var(--f-4a7fc1) !important; }
label.filter-aktiv { border-radius: 6px; padding: 2px 6px; }
.filter-zurueck { align-self: flex-end; margin-left: 6px; }
/* Prozente direkt hinter den Stunden (ab 1.13.0) */
.auswahl-kopfzeile { justify-content: flex-start; }
.auswahl-monat-kopf .pz-feld { margin-left: 0; }
.auswahl-monat-kopf > .tab-num { min-width: 0; text-align: left; }
.auswahl-tag > label, .auswahl-tag.neu > label { flex: none; grid-template-columns: 18px 92px 52px; }
.auswahl-tag .texte { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-hinter { font-size: .78rem; color: var(--g6); white-space: nowrap; }
.notfall-liste { columns: 2; font-size: 1.15rem; letter-spacing: .08em; margin: 14px 0; }
.notfall-liste li { margin: 4px 0; }
@media print { .notfall-karte form, .notfall-karte .btn { display: none !important; } }
.unternav .subnav-gruppe { padding: 14px 4px 0 6px; }
.unternav .subnav-gruppe a { padding: 4px 6px 9px; font-size: .86rem; }
.unternav .subnav-titel { left: 12px; }
.felder > .filter-zurueck { justify-self: start; align-self: end; margin-bottom: 2px; }
td.datum-wt { white-space: nowrap; }

/* ===================== ab 2.0.0: Rechnungen, Planung, Vermerke ===================== */
.rot { color: var(--rot); } .gruen { color: var(--f-1d6b40); }
b.rot, span.rot { color: var(--rot); }
.vorzeilen { white-space: pre-line; }
.kennzahl.rot::before { background: var(--rot); }
.kennzahl .wert { overflow-wrap: anywhere; }
.chip.test { background: var(--gelb); color: var(--auf-gelb); font-size: .66rem; padding: 1px 6px; margin-left: 2px; }
.aufgaben.links a, .karte .aufgaben a { margin-left: 0; white-space: normal; }
hr.trenner { border: 0; border-top: 1px solid var(--g2); margin: 14px 0; }
.link-knopf { border: 0; background: none; padding: 0; color: var(--anthrazit); text-decoration: underline; text-decoration-color: var(--gelb-d); cursor: pointer; font: inherit; }
.karte-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.karte-kopf h2 { margin: 0; }

/* Superadmin: leicht eingefärbt */
.nav a.sa { box-shadow: inset 0 -2px 0 rgba(242,193,0,.45); }
.unternav a.sa { color: var(--f-7a5f00); }
body.sa-seite { background: var(--f-f8f4e6); }
body.sa-seite main::before { content: "nur für den Superadmin"; display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--f-7a5f00); margin-bottom: 8px; }

/* Meldung unten (kurz) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--blase); color: var(--auf-dunkel); padding: 10px 16px; border-radius: var(--radius); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; max-width: min(90vw, 640px); }
.toast.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.toast.fehler { background: var(--rot-f); }

/* Belege: Kopf, Positionseditor, Summen */
.raster.beleg-kopf { grid-template-columns: 1.6fr 1fr; }
textarea.anschrift { min-height: 130px; font-family: var(--schrift); }
.pos-leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.pos-karte .pos-leiste select { width: auto; font-size: .82rem; padding: 4px 6px; min-height: 28px; }
.pos-tabelle ~ .pos-auswahl, .pos-karte .pos-auswahl { display: inline-flex; gap: 6px; align-items: center; padding-left: 8px; border-left: 2px solid var(--gelb); }
.pos-auswahl[hidden] { display: none; }
.pos-tabelle { min-width: 900px; }
.pos-tabelle td { padding: 4px 4px; vertical-align: top; }
.pos-tabelle input, .pos-tabelle select, .pos-tabelle textarea { width: 100%; padding: 5px 6px; font-size: .9rem; min-height: 32px; }
.pos-tabelle textarea { min-height: 44px; margin-top: 4px; font-size: .84rem; color: var(--g7); }
.pos-tabelle input.zahl { text-align: right; }
.pos-tabelle td.zahl { width: 110px; }
.pos-tabelle td:nth-child(5) { width: 150px; }
.pos-tabelle input.einheit { width: 84px; }
.pos-textzelle { min-width: 280px; }
.pos-tabelle .pos-griff, .pos-griff-sp { width: 18px; color: var(--g4); cursor: grab; text-align: center; user-select: none; padding-top: 10px !important; }
.pos-tabelle .pos-nr { padding-top: 11px !important; color: var(--g6); width: 36px; }
.pos-tabelle .pos-gesamt { padding-top: 11px !important; font-weight: 600; }
.pos-tabelle tr.gewaehlt td { background: var(--gelb-h); }
.pos-tabelle tr.titelzeile td { background: var(--g1); }
.pos-tabelle tr.titelzeile input[data-f=text] { font-weight: 700; }
.titel-summe { padding-top: 11px !important; color: var(--g7); font-weight: 600; }
.pos-aktionen { white-space: nowrap; width: 1%; }
.pos-k { border: 1px solid transparent; background: none; cursor: pointer; padding: 3px 5px; border-radius: 4px; color: var(--g6); font-size: .9rem; line-height: 1; }
.pos-k:hover { border-color: var(--g3); color: var(--anthrazit); background: var(--weiss); }
.pos-k.weg:hover { color: var(--rot); border-color: var(--f-e3b2ac); }
.pos-k.an { color: var(--gelb-d); }
tr.zieht { opacity: .4; }
tr.ziel-oben td { box-shadow: inset 0 2px 0 var(--gelb-d); }
tr.ziel-unten td { box-shadow: inset 0 -2px 0 var(--gelb-d); }
tr.ziel-in td { background: var(--gelb-h); }
.vorschlaege { position: absolute; z-index: 900; background: var(--weiss); border: 1px solid var(--g3); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 320px; overflow: auto; }
.vorschlag { padding: 7px 10px; cursor: pointer; display: flex; flex-direction: column; border-bottom: 1px solid var(--g1); }
.vorschlag:hover, .vorschlag.aktiv { background: var(--gelb-h); }
.summen { margin: 14px 0 6px auto; border-collapse: collapse; min-width: 320px; font-variant-numeric: tabular-nums; }
.summen td { padding: 4px 8px; }
.summen tr.gesamt td { border-top: 2px solid var(--anthrazit); font-weight: 700; }
.summen tr.abzug td { color: var(--g7); }
.summen tr.rot td { color: var(--rot); }
.beleg-fuss { position: sticky; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--papier) 96%, transparent); border-top: 1px solid var(--g2); padding: 10px 0; margin: 0 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-editor { margin-top: 10px; }
.plan-editor td.rot, td.rot { color: var(--rot); font-weight: 700; }
.pos-ansicht td { vertical-align: top; }
.pos-ansicht tr.titelzeile td { background: var(--g1); }
.folge-form { margin-bottom: 4px; }
dialog.pos-dialog { width: min(720px, 94vw); border: 1px solid var(--g3); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.pos-dialog::backdrop { background: rgba(46,46,45,.35); }
.pos-dialog input[type=search] { margin-bottom: 10px; }
.pos-dialog-liste, .pos-dialog-pos { max-height: 55vh; overflow: auto; margin-bottom: 10px; }
.pos-beleg { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--g1); padding: 8px 4px; cursor: pointer; font: inherit; }
.pos-beleg:hover { background: var(--gelb-h); }
.pos-zeile-wahl { padding: 4px 0; font-size: .9rem; }
.pos-zeile-wahl.titel { font-weight: 700; }

/* Dateien hochladen und ablegen */
.ablegen-zone { border: 2px dashed var(--g3); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; background: var(--papier); }
.ablegen-zone.klein-zone { border-width: 1px; padding: 6px 10px; margin: 0; }
.ablegen-zone.ziel { border-color: var(--gelb-d); background: var(--gelb-h); }
.ablegen-hinweis { margin: 6px 0 0; }
.foto-knopf { cursor: pointer; }
.dateiliste td { vertical-align: top; }

/* Übersicht: Säulen */
.saeulen { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 190px; padding-top: 10px; }
.saeule { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.saeule i { display: block; width: 100%; max-width: 34px; background: var(--gelb); border-radius: 3px 3px 0 0; min-height: 2px; }
.saeule .wert { font-size: .62rem; color: var(--g6); white-space: nowrap; transform: rotate(-60deg); transform-origin: bottom left; margin: 0 0 6px 18px; height: 0; overflow: visible; }
.saeule .bez { font-size: .72rem; color: var(--g6); margin-top: 4px; white-space: nowrap; }
.kennzahl-text { font-size: 1.4rem; margin: 0 0 4px; }

/* Bank */
.umsaetze { display: flex; flex-direction: column; gap: 10px; }
.umsatz { border: 1px solid var(--g2); border-left: 4px solid var(--g3); border-radius: var(--radius); padding: 10px 12px; background: var(--weiss); }
.umsatz.ein { border-left-color: var(--gruen); }
.umsatz.aus { border-left-color: var(--rot); }
.umsatz-kopf { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.umsatz-betrag { min-width: 110px; text-align: right; }
.umsatz.aus .umsatz-betrag { color: var(--rot); }
.umsatz-name { flex: 1; min-width: 200px; }
.umsatz-zweck { color: var(--g7); margin: 4px 0 8px; overflow-wrap: anywhere; }
.umsatz-form .zeile select { max-width: 420px; }
.vorschlag-zeile { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 4px; font-size: .9rem; flex-wrap: wrap; }
.vorschlag-zeile.gruen { background: var(--gruen-h); }
.vorschlag-zeile.gelb { background: var(--gelb-h); }
.reiter-sprung .btn { min-height: 26px; }

/* Eingangsrechnung: Vorschau */
.raster.eingang-raster { grid-template-columns: 1fr 1.1fr; }
.vorschau-karte { position: sticky; top: calc(var(--oben, 0px) + 12px); align-self: start; }
.beleg-vorschau { width: 100%; height: 78vh; border: 1px solid var(--g2); border-radius: 4px; background: var(--g1); }
.beleg-vorschau-bild { max-width: 100%; height: auto; border: 1px solid var(--g2); border-radius: 4px; }
.felder.betraege input[readonly] { background: var(--g1); }

/* Import */
.import-felder { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Vermerke */
.vermerk-liste { list-style: none; margin: 0 0 10px; padding: 0; }
.vermerk { border-left: 3px solid var(--g3); padding: 8px 10px; margin-bottom: 8px; background: var(--papier); border-radius: 0 var(--radius) var(--radius) 0; }
.vermerk.fuer-mich { border-left-color: var(--gelb); background: var(--gelb-h); }
.vermerk.erledigt { opacity: .62; }
.vermerk-kopf { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vermerk-text { white-space: pre-wrap; margin: 4px 0 6px; overflow-wrap: anywhere; }
.vermerk-knoepfe { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.vermerk-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.vermerk-personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; margin: 6px 0; }
details.vermerk-an summary { cursor: pointer; color: var(--g7); }
details.vermerk-neu summary { list-style: none; }
details.vermerk-neu summary::-webkit-details-marker { display: none; }

/* Planungstafel */
.tafel-steuerung { gap: 6px; }
.tafel-steuerung select { width: auto; min-height: 28px; padding: 3px 6px; font-size: .85rem; }
.tafel-karte { padding: 10px 0 12px; }
.tafel-scroll { overflow-x: auto; position: relative; }
.tafel { --sp: 30px; --name: 170px; position: relative; width: max-content; min-width: 100%; }
.tafel.wochen { --sp: 74px; }
.tafel-kopf, .tafel-zeile { display: flex; }
.tafel-name { flex: none; width: var(--name); position: sticky; left: 0; z-index: 6; background: var(--weiss); padding: 6px 10px; border-right: 1px solid var(--g2); display: flex; flex-direction: column; justify-content: center; }
.tafel-kopf .tafel-name { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g6); }
.tafel-spalten { display: grid; grid-template-columns: repeat(var(--spalten), var(--sp)); }
.tk { font-size: .66rem; text-align: center; color: var(--g6); padding: 4px 0; border-left: 1px solid var(--g1); line-height: 1.25; position: relative; }
.tk b { display: block; font-size: .7rem; color: var(--g7); font-weight: 600; }
.tk span { display: block; }
.tk i { position: absolute; top: 2px; left: 3px; font-style: normal; font-size: .6rem; color: var(--anthrazit); white-space: nowrap; font-weight: 700; z-index: 1; }
.tafel.tage .tk { padding-top: 27px; }
.tafel.wochen .tk { padding-top: 16px; }
/* ab 2.3.5: oben Monat und Jahr (am Monatsersten), darunter KW; Monatslinie über die ganze Tafel */
.tk i.mon { top: 2px; font-size: .62rem; }
.tafel.tage .tk i.kw { top: 14px; color: var(--g7); font-weight: 600; }
.tafel.tage .tk.monat, .tafel.tage .tz.monat { border-left: 2px solid var(--g4); }
/* Tage (ab 2.3.4 wie im Wochenkalender): Wochenende grau, Feiertag beige, heute gelb über alle Zeilen */
.tk.we { background: var(--g1); }
.tk.ft { background: var(--f-f6f1e2); }
.tk.montag { border-left: 1px solid var(--g3); }
.tk.heute { background: var(--gelb-h); box-shadow: inset 0 3px 0 var(--gelb); color: var(--anthrazit); }
.tafel-zeile { border-top: 1px solid var(--g2); }
.tafel-zeile.ich .tafel-name { box-shadow: inset 3px 0 0 var(--gelb); }
.tafel-bahn { position: relative; flex: none; width: calc(var(--spalten) * var(--sp)); min-height: 34px; }
.tafel-raster { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--spalten), var(--sp)); }
.tz { border-left: 1px solid var(--g1); position: relative; }
.tz.heute { background-color: var(--f-fff9e0); }
.tz.frei { background-color: var(--papier); }
.tz.we { background-color: var(--g1); }
.tz.ft { background-color: var(--f-f6f1e2); }
.tz.montag { border-left-color: var(--g3); }
.tz.abw { background-image: repeating-linear-gradient(135deg, var(--schraffur) 0 4px, transparent 4px 8px); }
.tz.teilabw { background-image: repeating-linear-gradient(135deg, var(--schraffur-l) 0 3px, transparent 3px 11px); }
.tz.ueber { box-shadow: inset 0 -3px 0 var(--rot); }
.tz.ueber span { position: absolute; bottom: 3px; right: 2px; font-size: .55rem; color: var(--rot); font-weight: 700; }
.pbalken { --kf: var(--kgrau); position: absolute; left: calc(var(--l) * var(--sp) + 1px); width: max(calc(var(--b) * var(--sp) - 2px), 10px); top: calc(var(--lane, 0) * 26px + 4px); height: 22px;
  background: var(--kf); color: #fff; border-radius: 4px; font-size: .74rem; line-height: 22px; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: grab; z-index: 3; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.pbalken.projekt { background: color-mix(in srgb, var(--kf) 18%, var(--weiss)); color: var(--anthrazit); border: 2px dashed var(--kf); line-height: 18px; text-shadow: none; }
.pbalken span { opacity: .85; font-size: .7rem; }
.pbalken em { font-style: normal; font-size: .68rem; opacity: .85; margin-left: 4px; }
.pbalken.spaet { outline: 2px solid var(--rot); outline-offset: 1px; }
.pbalken.offen-ende { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pbalken.zieht { opacity: .45; }
.pbalken:focus-visible { outline: 2px solid var(--gelb-d); }
.heute-linie { position: absolute; top: 0; bottom: 0; left: calc(var(--name) + var(--l) * var(--sp) + var(--sp) / 2); width: 2px; background: var(--gelb-d); z-index: 4; pointer-events: none; }
.tafel-geist { position: absolute; background: rgba(242,193,0,.28); border: 1px dashed var(--gelb-d); z-index: 5; pointer-events: none; font-size: .6rem; text-align: center; padding-top: 2px; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px 0; color: var(--g7); }
.legende .lg { display: inline-block; width: 18px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.lg.fest { background: var(--g7); } .lg.projekt { border: 2px dashed var(--g7); }
.lg.abw { background: repeating-linear-gradient(135deg, var(--schraffur-s) 0 3px, transparent 3px 6px); border: 1px solid var(--g2); }
.lg.frei { background: var(--papier); border: 1px solid var(--g2); }
.lg.we { background: var(--g1); border: 1px solid var(--g2); }
.lg.ft { background: var(--f-f6f1e2); border: 1px solid var(--f-e6dcc0); }
.lg.heute { background: var(--f-fff9e0); box-shadow: inset 0 3px 0 var(--gelb); border: 1px solid var(--g2); } .lg.ueber { box-shadow: inset 0 -3px 0 var(--rot); border: 1px solid var(--g2); }
.lg.spaet { outline: 2px solid var(--rot); }
.quellen { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.quelle { --kf: var(--kgrau); border: 1px solid var(--g2); border-left: 4px solid var(--kf); border-radius: var(--radius); padding: 8px 10px; background: var(--weiss); cursor: grab; }
.quelle.projekt { border-left-style: dashed; }
.quelle.spaet { box-shadow: inset 0 0 0 1px var(--rot); }
.quelle.zieht { opacity: .5; }
.quelle-kopf span { color: var(--g6); font-size: .85rem; }
.quelle-planen summary { cursor: pointer; color: var(--g6); margin-top: 4px; }
.quelle-planen form { margin-top: 6px; }
.balken-form { display: flex; flex-direction: column; gap: 10px; }
.balken-form label { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.balken-form label[hidden] { display: none; }
.balken-form p { margin: 0; }
.ep-wahl { display: flex; flex-direction: column; gap: 6px; }
.ep-wahl label.aus { opacity: .5; }
.quelle.voll { background: var(--g1); }
.quelle-stand { margin-top: 3px; }
.quelle-wer { color: var(--g7); margin-left: 2px; }

/* Projektplanung */
.projektbaum { min-width: 1080px; }
.projektbaum td { padding: 4px 4px; vertical-align: top; }
.projektbaum input, .projektbaum select, .projektbaum textarea { padding: 5px 6px; font-size: .88rem; min-height: 30px; }
.projektbaum select { max-width: 170px; }
.projektbaum .pb-name { min-width: 300px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.projektbaum .pb-name input { flex: 1; min-width: 180px; }
.projektbaum .pb-name textarea { flex-basis: 100%; min-height: 40px; }
.projektbaum tr.pb-teil td { background: var(--g1); }
.projektbaum tr.pb-teil .pb-name input { font-weight: 700; }
.projektbaum tr.gewaehlt td { background: var(--gelb-h); }
.pb-klapp { border: 0; background: none; cursor: pointer; width: 18px; color: var(--g7); font-size: .9rem; padding: 0; }
.pb-punkt { width: 18px; text-align: center; color: var(--g4); }
.pb-nr { padding-top: 10px !important; color: var(--g6); white-space: nowrap; }
.pb-stunden { white-space: nowrap; }
.pb-stunden input.zahl { width: 80px; text-align: right; }
.pb-omp input { width: 46px; text-align: right; margin-right: 2px; }
.pb-e { font-size: .8rem; color: var(--g7); margin-right: 4px; }
.pb-fertig { width: 64px; }
.projektbaum td.pb-betrag { padding-top: 10px; }
.klein-balken { height: 4px; margin-top: 3px; }

/* Kunde: Stundensätze */
.tab.saetze td { padding: 4px 6px; }

@media (max-width: 900px) {
  .raster.beleg-kopf, .raster.eingang-raster { grid-template-columns: 1fr; }
  .vorschau-karte { position: static; }
  .tafel { --name: 110px; }
}

/* Mitarbeiter: Felder aus den Personaldaten */
input.aus-personal[readonly] { background: var(--g1); color: var(--g7); cursor: not-allowed; }
.quelle.ohne-aufwand { border-left-style: dotted; background: var(--papier); }
details.vermerk-neu { display: block; margin-top: 6px; }
.vermerk-form textarea { width: 100%; }
.raster.kennzahlen { margin-bottom: 18px; }
.auftrag { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--g1); }
.auftrag .tab td { vertical-align: middle; }
.auftrag .tab td.aktion { white-space: normal; text-align: left; }
.auftrag .chip { white-space: normal; }
h2.abschnitt { margin: 26px 0 12px; }
/* Teil-Tag im Leistungsnachweis (ab 2.1.0) */
.auswahl-ziel { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px dashed var(--g2); }
.auswahl-ziel label { font-weight: 600; }
.auswahl-ziel input[type=text] { width: 86px; min-height: 30px; padding: 2px 8px; text-align: right; }
#auswahl-ziel-info { color: var(--g7); flex: 1; min-width: 220px; }
#auswahl-ziel-info.rot-text, .rot-text { color: var(--rot); }
.teil-knopf { border: 1px solid var(--g3); background: var(--weiss); color: var(--g6); border-radius: 6px; min-width: 30px; min-height: 28px; padding: 0 6px; cursor: pointer; font-size: .9rem; line-height: 1; }
.teil-knopf:hover { border-color: var(--anthrazit); color: var(--anthrazit); }
.teil-knopf.an { background: var(--gelb); border-color: var(--gelb-d); color: var(--auf-gelb); font-weight: 700; }
.teil-knopf:focus-visible { outline: 2px solid var(--anthrazit); outline-offset: 2px; }
.teil-info { font-size: .8rem; font-weight: 600; color: var(--anthrazit); background: var(--gelb-h); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.teil-chip { background: var(--gelb-h); color: var(--anthrazit); cursor: help; }
@media (max-width: 700px) { .teil-info { white-space: normal; } }
/* Wochenkalender: Kopie hängt an der Maus (ab 2.1.0) */
body.wk-haengt .wk-spalte, body.wk-haengt .wk-b { cursor: copy; }
.wk-geist.haengt { opacity: .88; transition: none; }
.wk-geist.konflikt { border-color: var(--rot); background: var(--rot-h); }
.wk-geist.konflikt .wk-zeit::after { content: " · überschneidet sich"; color: var(--rot); font-weight: 600; }
.wk-geist.zukunft { border-color: var(--gelb-d); background: var(--gelb-h); } /* ab 2.2.2; ab 2.38.0 gelb: wird geplant */
.wk-geist.zukunft .wk-zeit::after { content: " · in der Zukunft: wird geplant"; color: var(--anthrazit); font-weight: 600; }
.wk-geist.zukunft.konflikt { border-color: var(--rot); background: var(--rot-h); }
.wk-geist.zukunft.konflikt .wk-zeit::after { content: " · überschneidet sich"; color: var(--rot); }
/* ab 2.38.0: geplante Zeiten im Wochenkalender (gelb, keine Buchung) */
.wk-b.geplant { background: var(--gelb-h); border: 1px dashed var(--gelb-d); border-left: 4px solid var(--kf, var(--gelb-d)); }
.wk-b.geplant:hover { border-color: var(--anthrazit); border-left-color: var(--kf, var(--gelb-d)); }
.wk-b.geplant.fest { background: repeating-linear-gradient(135deg, var(--gelb-h) 0 6px, var(--f-ebebe7) 6px 12px); }
.wk-b.geplant.plan-fehler { box-shadow: inset 0 0 0 2px var(--rot); }
.wk-b .wk-plan-marke { font-style: normal; font-weight: 600; font-size: .66rem; text-transform: uppercase; letter-spacing: .02em; color: var(--gelb-d); }
.wk-b.geplant.plan-fehler .wk-plan-marke { color: var(--rot); }
.wk-geplant-summe { font-style: normal; font-size: .72rem; padding: 0 4px; border-radius: 3px; background: var(--gelb-h); border: 1px solid var(--gelb-d); color: var(--anthrazit); }
.wk-dlg.geplant #wk-dlg-info { display: inline-block; padding: 1px 6px; border-radius: 3px; background: var(--gelb-h); border: 1px solid var(--gelb-d); color: var(--anthrazit); }
/* Schnellstart merken und „Ich arbeite bei …“ (ab 2.1.0) */
.favoriten .fav { position: relative; }
.favoriten .fav.gemerkt button { border-color: var(--gelb-d); background: linear-gradient(var(--gelb-h), var(--weiss) 70%); }
.favoriten .fav-pin { font-size: .8rem; }
.favoriten .fav-weg { position: absolute; top: 4px; right: 4px; margin: 0; }
.favoriten .fav-weg button { width: 24px; height: 24px; min-height: 0; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--g6); font-size: 1rem; line-height: 1; text-align: center; cursor: pointer; }
.favoriten .fav-weg button:hover { border-color: var(--rot); color: var(--rot); background: var(--weiss); }
.favoriten .fav.gemerkt form:first-child button { padding-right: 30px; }
.start-zeile { align-items: center; gap: 14px; }
.kundenfilter { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px 4px 12px; border: 1px solid var(--g2); border-radius: 8px; background: var(--weiss); }
.kundenfilter label { font-size: .84rem; color: var(--g6); white-space: nowrap; margin: 0; }
.kundenfilter select { min-width: 170px; border: none; background-color: transparent; font-weight: 600; }
.kundenfilter.an { border-color: var(--gelb-d); background: var(--gelb-h); box-shadow: inset 4px 0 0 var(--gelb); }

/* Mehr Schattierungen (ab 2.1.0): Karten, Köpfe und Tabellen deutlicher voneinander abgesetzt */
:root { --schatten: 0 1px 2px var(--schatten-1), 0 3px 12px var(--schatten-2); --kopf-ton: var(--f-f2f2ee); --zebra: var(--f-fafaf7); --zeile-hover: var(--f-fff9e3); }
body { background: var(--f-eeeee9); }
.karte { border-color: var(--f-dcdcd7); box-shadow: var(--schatten); }
.karte > h2:first-child, .karte > .karte-kopf:first-child { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--g2); }
details.karte > summary { font-weight: 700; }
details.karte[open] > summary { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--g2); }
.seitenkopf { padding-bottom: 14px; border-bottom: 1px solid var(--f-dcdcd7); }
.unternav { box-shadow: 0 1px 4px var(--schatten-1); }
h2.abschnitt { background: var(--kopf-ton); border: 1px solid var(--f-dcdcd7); border-left: 4px solid var(--gelb); border-radius: var(--radius); padding: 9px 14px; margin: 26px 0 14px; }
.tab thead th { background: var(--kopf-ton); }
.tab > tbody > tr:where(:nth-child(even)) > td { background: var(--zebra); }
.tab > tbody > tr:where(:hover) > td { background: var(--zeile-hover); }
.tab tfoot td { background: var(--kopf-ton); }
.hinweis { box-shadow: var(--schatten); }
/* „hidden“ gewinnt immer (ab 2.1.0) – sonst heben Regeln wie .vermerk-form { display:flex } das Ausblenden auf */
[hidden] { display: none !important; }
/* Dauer statt Start/Stopp (ab 2.1.0): Wochenraster mit Spalte „Dauer“, „Alle bearbeiten“ mit Eingabe */
.woche-kopf, .woche-zeile { grid-template-columns: minmax(180px, 2.2fr) minmax(130px, 1.3fr) 96px 96px 76px 70px minmax(160px, 3fr); }
@media (max-width: 900px) { .woche-zeile { grid-template-columns: 1fr 1fr; } }
input.ie-dauer { font-weight: 600; padding: 6px 8px; min-height: 34px; width: 100%; }
/* Monatsübersicht (ab 2.1.0, Beta) */
.ueb { padding: 0; overflow: hidden; }
.ueb-rahmen { overflow: auto; max-height: calc(100vh - 260px); }
.ueb-tab { border-collapse: separate; border-spacing: 0; font-size: .9rem; min-width: 100%; }
.ueb-tab th, .ueb-tab td { border-bottom: 1px solid var(--g2); border-right: 1px solid var(--g1); padding: 0; }
.ueb-tab thead th { position: sticky; top: 0; z-index: 3; background: var(--kopf-ton); border-bottom: 2px solid var(--anthrazit); padding: 8px 10px; text-align: left; vertical-align: bottom; min-width: 112px; }
.ueb-tab thead th.ueb-sp { border-top: 4px solid var(--kf, var(--kgrau)); position: sticky; }
.ueb-tab thead th b { display: block; }
.ueb-tab thead th span { display: block; font-size: .76rem; font-weight: 400; color: var(--g6); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ueb-tab thead th .ueb-taet { color: var(--anthrazit); font-weight: 600; }
.ueb-tab .ueb-tag { position: sticky; left: 0; z-index: 2; background: var(--weiss); text-align: left; padding: 6px 12px; min-width: 120px; white-space: nowrap; font-weight: 400; border-right: 2px solid var(--g3); }
.ueb-tab thead .ueb-tag { z-index: 4; background: var(--kopf-ton); }
.ueb-tab .ueb-tag span { display: block; font-size: .74rem; color: var(--g6); }
.ueb-tab tbody tr.we td, .ueb-tab tbody tr.we th { background: var(--f-f3f3ef); }
.ueb-tab tbody tr.ft td, .ueb-tab tbody tr.ft th, .ueb-tab tbody tr.abw td, .ueb-tab tbody tr.abw th { background: var(--f-eef3f9); }
.ueb-tab tbody tr:hover td, .ueb-tab tbody tr:hover th { background: var(--zeile-hover); }
.ueb-tab input.ueb-z { width: 100%; min-width: 84px; border: none; border-radius: 0; background: transparent; text-align: right; padding: 7px 10px; font-size: .92rem; min-height: 34px; }
.ueb-tab input.ueb-z:focus { outline: 2px solid var(--anthrazit); outline-offset: -2px; background: var(--weiss); }
.ueb-tab input.ueb-z.geaendert { background: var(--gelb-h); font-weight: 700; box-shadow: inset 3px 0 0 var(--gelb); }
.ueb-tab input.ueb-z.falsch { background: var(--rot-h); color: var(--rot); }
.ueb-tab .ueb-fest { display: block; text-align: right; padding: 7px 10px; color: var(--g6); background: repeating-linear-gradient(135deg, var(--f-f6f6f3) 0 6px, var(--f-eeeeea) 6px 12px); min-height: 34px; cursor: help; }
.ueb-tab .ueb-summe { text-align: right; padding: 7px 12px; font-weight: 600; background: var(--kopf-ton); min-width: 80px; }
.ueb-tab tfoot th, .ueb-tab tfoot td { position: sticky; bottom: 0; background: var(--kopf-ton); border-top: 2px solid var(--anthrazit); padding: 8px 10px; font-weight: 700; z-index: 2; }
.ueb-tab tfoot .ueb-tag { z-index: 4; }
.ueb-weg { float: right; margin: -4px -6px 0 6px; border: none; background: none; color: var(--g6); cursor: pointer; font-size: 1rem; }
.ueb-weg:hover { color: var(--rot); }
.ueb-fuss { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--g2); background: var(--weiss); position: sticky; bottom: 0; }
.ueb-fuss #ueb-info { margin-right: auto; color: var(--g7); }
.ueb-neu .zeile select { min-width: 220px; }
.monatsname { min-width: 120px; text-align: center; }
/* Entwürfe (ab 2.1.0) */
.entwurf-leiste { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 9px 12px; border: 1px solid var(--gelb-d); border-left: 4px solid var(--gelb); border-radius: var(--radius); background: var(--gelb-h); font-size: .9rem; }
.ie-fehler.ie-info { color: var(--g7); font-weight: 600; }
/* Monatsübersicht kompakt (2.1.0): ganzer Monat auf einen Blick, Wochentage ausgeschrieben */
.seitenkopf:has(+ .ueb) { margin-bottom: 10px; padding-bottom: 8px; }
.ueb-rahmen { max-height: calc(100vh - 205px); }
.ueb-tab { font-size: .84rem; }
.ueb-tab thead th { padding: 5px 8px; }
.ueb-tab thead th span { font-size: .72rem; }
.ueb-tab .ueb-tag { padding: 0 10px; height: 22px; line-height: 22px; min-width: 150px; }
.ueb-tab .ueb-tag .ueb-wt { display: inline-block; min-width: 82px; color: var(--g7); }
.ueb-tab .ueb-tag i { font-style: normal; font-size: .72rem; color: var(--g6); }
.ueb-tab input.ueb-z { min-height: 22px; height: 22px; padding: 0 8px; font-size: .86rem; }
.ueb-tab .ueb-fest { min-height: 22px; height: 22px; line-height: 22px; padding: 0 8px; }
.ueb-tab .ueb-summe { padding: 0 10px; line-height: 22px; }
.ueb-tab tfoot th, .ueb-tab tfoot td { padding: 5px 10px; }
.ueb-tab tbody tr.we .ueb-tag .ueb-wt { color: var(--g6); }
.ueb-fuss { padding: 8px 16px; }
.ueb-tab { width: auto; min-width: 0; }
.ueb-rahmen { max-height: calc(100vh - 190px); }
.ueb-tab thead th { padding: 3px 8px 4px; line-height: 1.2; }
.ueb-tab thead th.ueb-sp { border-top-width: 3px; }
.ueb-tab tbody th, .ueb-tab tbody td { border-bottom-color: var(--g1); }
.ueb-tab .ueb-tag { height: 20px; line-height: 20px; min-width: 0; width: 170px; }
.ueb-tab input.ueb-z { height: 20px; min-height: 20px; min-width: 78px; font-size: .84rem; }
.ueb-tab .ueb-fest { height: 20px; min-height: 20px; line-height: 20px; }
.ueb-tab .ueb-summe { line-height: 20px; }
.ueb-tab tfoot th, .ueb-tab tfoot td { padding: 3px 10px; }
.ueb-fuss { padding: 6px 14px; }
.ueb-fuss .btn { min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.ueb-tab .ueb-tag, .ueb-tab .ueb-summe { height: 19px; line-height: 19px; }
.ueb-tab input.ueb-z, .ueb-tab .ueb-fest { height: 19px; min-height: 19px; line-height: 19px; }
.ueb-tab .ueb-tag .ueb-wt, .ueb-tab .ueb-tag b, .ueb-tab .ueb-tag i { vertical-align: top; line-height: 19px; }
.ueb-tab input.ueb-z, .ueb-tab .ueb-fest { display: block; vertical-align: top; }

/* ab 2.1.1: Monatsübersicht – Tage nach heute ruhig statt schraffiert (nichts einzutragen) */
.ueb-tab tr.zukunft .ueb-fest { background: none; cursor: default; }
.ueb-tab tr.zukunft th, .ueb-tab tr.zukunft td { color: var(--g5, var(--f-9a9a94)); }

/* Linien (ab 2.1.2): Zeilen überall sichtbar getrennt, in Rastern (Monatsübersicht, Gesamtübersicht,
   Urlaubsplaner) auch die Spalten; in der Monatsübersicht eine kräftigere Linie nach jedem Sonntag. */
:root { --linie: var(--f-d6d5cf); --linie-stark: var(--f-a9a8a2); }
.tab td { border-bottom-color: var(--linie); }
.tab tr.monatszeile td { border-top-color: var(--linie-stark); border-bottom-color: var(--linie); }
.raster-tab th + th, .raster-tab td + td { border-left: 1px solid var(--linie); }
.raster-tab tbody td { border-bottom-color: var(--linie); }
.ueb-tab th, .ueb-tab td, .ueb-tab tbody th, .ueb-tab tbody td { border-bottom: 1px solid var(--linie); border-right: 1px solid var(--linie); }
.ueb-tab tbody tr.so th, .ueb-tab tbody tr.so td { border-bottom: 2px solid var(--linie-stark); }
.ueb-tab .ueb-tag { border-right: 2px solid var(--linie-stark); }
.ueb-tab tbody td.ueb-summe, .ueb-tab thead th.ueb-summe, .ueb-tab tfoot td.ueb-summe { border-left: 2px solid var(--linie-stark); }
.ueb-tab thead th { border-bottom: 2px solid var(--anthrazit); }
.ueb-tab tfoot th, .ueb-tab tfoot td { border-top: 2px solid var(--anthrazit); border-bottom: none; }
.urlaubsplan th, .urlaubsplan td { border-bottom-color: var(--linie); }
.urlaubsplan td { border-left-color: var(--linie); }

/* Ansichten Monat | Woche | Übersicht (ab 2.1.2): gleicher Kopf, gleiche Breite – beim Wechsel springt
   nichts. Umschalter ganz rechts, davor der Zeitraum (feste Breite), Zusätze links davon; Untertitel
   immer einzeilig. Bildlaufleiste reserviert ihren Platz immer (kein Seitenruck bei kurzen Seiten). */
html { scrollbar-gutter: stable; }
.seitenkopf.ansichtkopf { flex-wrap: nowrap; align-items: flex-end; min-height: 76px; margin-bottom: 12px; padding-bottom: 10px; }
.ansichtkopf .ak-titel { min-width: 0; flex: 1 1 auto; }
.ansichtkopf h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ansichtkopf .ak-unter { margin: 4px 0 0; height: 24px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.ansichtkopf .ak-unter .chip { vertical-align: middle; }
.ansichtkopf .ak-steuer { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 8px; }
.ansichtkopf .ak-nav { gap: 6px; }
.ansichtkopf .ak-zeitraum { display: inline-block; min-width: 150px; text-align: center; font-size: 1.05rem; font-weight: 700; }
.ansichtkopf .ak-ansicht .btn { min-width: 76px; justify-content: center; text-align: center; }
@media (max-width: 1100px) { .seitenkopf.ansichtkopf { flex-wrap: wrap; } .ansichtkopf .ak-steuer { flex-wrap: wrap; } }
.ansichtkopf .ak-steuer select { width: auto; min-height: 28px; height: 28px; padding: 1px 8px; font-size: .88rem; }
.ansichtkopf + details.wk-hilfe { margin-top: 0; }

/* „hier weiter“ in der Liste Heute (ab 2.2.0) */
.tab td.aktion form.hier-weiter { margin-right: 6px; }
.tab td.aktion form.hier-weiter .btn { white-space: nowrap; }

/* Resturlaub (ab 2.2.0) */
.jb-kopf, .jb-zeile { grid-template-columns: 170px minmax(0, 1fr) 62px 62px 52px 56px; }
.jb-rest b { color: var(--anthrazit); }
.rest-box { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--f-dcdcd7); border-left: 4px solid var(--f-4f9d69); border-radius: var(--radius); background: var(--f-f3f8f4); }
.rest-box > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rest-box b { font-size: 1.35rem; }
.rest-box p { margin: 0; }
.rest-box.minus { border-left-color: var(--rot); background: var(--rot-h); }
/* ab 2.3.0: Überstundenkonto – Kasten (Urlaub, Personal) blau statt grün, kurz in Kopfzeilen */
.rest-box.ueber-box { border-left-color: var(--f-4a7fc1); background: var(--f-f2f6fb); }
.rest-box.ueber-box.minus { border-left-color: var(--rot); background: var(--rot-h); }
.ueber-kurz.minus b { color: var(--rot); }
/* ab 2.7.0: Überstunden abbauen – reicht das Konto? */
.abbau-konto { font-size: 0.8rem; color: var(--f-5b6470); }
.abbau-konto.minus, .abbau-konto.minus b { color: var(--rot); }
.ueber-frei { margin: -8px 0 12px; }
.ueber-buchungen tr.leise td { color: var(--f-8a9099); }
/* ab 2.3.3: Monatsübersicht – Spalte TiMaS (passt die Anwesenheit zu den Buchungen?) und Beschreibungen je Projekt */
.ueb-tab .ueb-timas { padding: 6px 10px; min-width: 160px; font-size: .84rem; white-space: nowrap; text-align: left; }
.ueb-ti { color: var(--g6); }
.ueb-ti b { color: var(--anthrazit); }
.ueb-ti.gruen { color: var(--f-2e7d4f); }
.ueb-ti.gelb { color: var(--f-8a6400); }
.ueb-ti.rot { color: var(--rot); font-weight: 600; }
/* ab 2.59.1: Spalte „TiMaS-Pause“; ≈ = geschätzt (TiMaS hat den Tag noch nicht gerechnet) */
.ueb-tab .ueb-tpause { padding: 6px 10px; min-width: 86px; font-size: .84rem; white-space: nowrap; text-align: right; color: var(--g8); }
.ueb-tab thead th.ueb-tpause { text-align: right; }
.ueb-tp.geschaetzt, .ueb-ca { color: var(--g6); }
.ueb-ti2 { display: block; font-size: .78rem; line-height: 1.25; } /* ab 2.42.0: „außerhalb gebucht“ als 2. Zeile */
.ueb-neulegen { display: block; font-size: .74rem; color: var(--g6); text-decoration: underline dotted; } /* ab 2.42.0 */
.ueb-neulegen:hover { color: var(--anthrazit); }
.nl-tab td, .nl-tab th { vertical-align: top; }
.nl-zeiten { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.nl-zeiten li { white-space: nowrap; }
.nl-zeiten .nl-fest { color: var(--g6); }
.nl-zeiten .nl-neu { color: var(--f-2e7d4f); }
.nl-bleibt td { color: var(--g6); }
.ueb-tab tbody.ueb-texte tr:first-child > * { border-top: 2px solid var(--anthrazit); }
.ueb-tab tbody.ueb-texte th.ueb-tag { font-weight: 600; vertical-align: top; }
.ueb-tab td.ueb-text { padding: 6px 10px; vertical-align: top; font-size: .84rem; white-space: normal; max-width: 220px; }
.ueb-tab td.ueb-text span { display: block; overflow-wrap: anywhere; }
.ueb-tab td.ueb-text small { display: block; color: var(--g6); }

/* ab 2.4.0: Woche – links und rechts eine Woche blättern (Pfeil bleibt beim Scrollen sichtbar) */
.wk-blaettern { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; margin-bottom: 14px; }
.wk-blaettern > .wk-rahmen { margin-bottom: 0; }
.wk-seite { display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--g1); color: var(--g7); text-decoration: none; }
.wk-seite:hover, .wk-seite:focus-visible { background: var(--gelb-h); border-color: var(--gelb-d); color: var(--anthrazit); }
.wk-seite .pf { position: sticky; top: 38vh; bottom: 30vh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; }
.wk-seite .pf b { font-size: 1.9rem; line-height: 1; font-weight: 400; }
.wk-seite .pf small { font-size: .66rem; line-height: 1.15; text-align: center; color: var(--g6); }
@media (max-width: 760px) { .wk-blaettern { grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 4px; } .wk-seite .pf b { font-size: 1.4rem; } }
@media print { .wk-seite { display: none; } .wk-blaettern { display: block; } }

/* ---------- ab 2.4.0: Verkauf – Listen, Belegkette ---------- */
.raster.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .raster.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .raster.vier { grid-template-columns: 1fr; } }
.reiter a.rot .leise { color: var(--rot); font-weight: 700; }
.vk-filter { margin: 4px 0 12px; }
.vk-neu select { max-width: 300px; }
.vk-tab td.aktion { white-space: nowrap; }
.vk-aktion form, .vk-aktion details { display: inline-block; vertical-align: top; }
.vk-zahlung[open] form { margin-top: 6px; }
.vk-neuform > summary { list-style: none; display: inline-flex; }
.vk-neuform > summary::-webkit-details-marker { display: none; }
.vk-neuform[open] > summary { margin-bottom: 12px; }
.vk-neuform .feld.breit { grid-column: span 2; }
.kette-mini { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.kette-mini li { font-size: .68rem; font-weight: 600; padding: 1px 6px; border-radius: 10px; background: var(--g1); color: var(--g6); border: 1px solid var(--g2); white-space: nowrap; }
.kette-mini li.fertig { background: var(--gruen-h); color: var(--f-1f6b40); border-color: var(--f-b9dcc6); }
.kette-mini li.halb { background: var(--gelb-h); color: var(--f-7a5f00); border-color: var(--f-ecd98a); }
.kette-mini li.offen { background: var(--f-fff1e0); color: var(--f-8a4b00); border-color: var(--f-f0c98f); }
.kette-mini li.leer { opacity: .5; }
.vk-balken { display: block; height: 4px; background: var(--g1); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.vk-balken i { display: block; height: 100%; background: var(--gruen); }
.vk-schritt { margin: 0 0 14px; }
/* ab 2.49.4: „Als Nächstes“ führt dorthin, wo man den Schritt erledigt; die Stelle leuchtet kurz auf */
a.vk-schritt-ziel { display: flex; align-items: baseline; gap: .35em; color: inherit; text-decoration: none; cursor: pointer; }
a.vk-schritt-ziel:hover, a.vk-schritt-ziel:focus-visible { filter: brightness(1.06); box-shadow: 0 0 0 2px var(--gelb); }
a.vk-schritt-ziel .vk-pfeil { margin-left: auto; font-weight: 700; }
#kunde:target, #zuordnen:target, #umwandeln:target, #antwort:target, #versand:target, #nachfassen:target, #ln:target, #kette:target,
#au-ab:target, #au-ls:target, #au-plan:target, #au-rechnungen:target, #au-abschliessen:target, #au-belege:target, #vg-abschliessen:target, #pos-editor:target {
  animation: ziel-leuchten 2.4s ease-out 1; border-radius: 8px; }
@keyframes ziel-leuchten { 0%, 35% { box-shadow: 0 0 0 3px var(--gelb); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { #kunde:target, #zuordnen:target, #umwandeln:target, #antwort:target, #versand:target, #nachfassen:target, #ln:target, #kette:target,
  #au-ab:target, #au-ls:target, #au-plan:target, #au-rechnungen:target, #au-abschliessen:target, #au-belege:target, #vg-abschliessen:target, #pos-editor:target { animation: none; box-shadow: 0 0 0 3px var(--gelb); } }
.kette { list-style: none; margin: 0; padding: 0 0 0 24px; position: relative; }
.kette::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 10px; width: 2px; background: var(--g2); }
.kette > li { position: relative; padding: 0 0 16px; }
.kette > li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--g3); }
.kette > li.fertig::before { background: var(--gruen); border-color: var(--gruen); }
.kette > li.halb::before { background: var(--gelb); border-color: var(--gelb-d); }
.kette > li.offen::before { background: var(--f-f0a030); border-color: var(--f-c97b10); }
.kette > li.leer { color: var(--g6); }
.kette-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; min-height: 24px; }
.kette-kopf form { margin: 0; }
.kette-beleg { font-size: .92rem; padding: 2px 0; }
.kette-plan td { padding-top: 4px; padding-bottom: 4px; }
.mahn-liste { margin: 0 0 8px; padding-left: 18px; font-size: .9rem; }

/* ---------- ab 2.4.0: Beleg als A4-Blatt (Maße wie im PDF, DIN 5008 Form B) ---------- */
.beleg-leiste { position: sticky; top: var(--oben, 0px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 10px 0 12px; margin: -8px 0 16px; background: var(--papier); border-bottom: 1px solid var(--g2); }
.beleg-leiste h1 { font-size: 1.35rem; margin: 0; }
.beleg-leiste p { margin: 3px 0 0; }
.bl-knoepfe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bl-stand { min-width: 110px; text-align: right; }
.bl-stand.rot { color: var(--rot); font-weight: 600; }
.beleg-arbeit { display: grid; grid-template-columns: max-content minmax(290px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1250px) { .beleg-arbeit { grid-template-columns: minmax(0, 1fr); } }
.blatt-rahmen { overflow-x: auto; padding: 2px 2px 30px; }
.beleg-seite { position: sticky; top: calc(var(--oben, 0px) + 74px); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - var(--oben, 0px) - 86px); overflow-y: auto; padding-bottom: 8px; }
@media (max-width: 1250px) { .beleg-seite { position: static; max-height: none; } }
.bs-karte { margin: 0; padding: 14px 16px; }
.bs-karte h2 { font-size: 1rem; margin: 0 0 10px; }
.bs-karte .feld { margin-bottom: 10px; }
.bs-hilfe ul { margin: 6px 0 0; padding-left: 18px; }
.bs-hilfe li { margin-bottom: 4px; }
.bs-pruefen { border-left: 4px solid var(--gelb); }
.bs-umwandeln { border-left: 4px solid var(--gruen); }

.blatt { color-scheme: light; /* Papier: bleibt in jeder Darstellung weiß – so sieht das PDF aus */
  position: relative; box-sizing: border-box; width: 210mm; min-height: 297mm; background: #fff; color: var(--f-333333);
  font-family: Arial, Arimo, "Liberation Sans", Helvetica, sans-serif; font-size: 9.2pt; line-height: 4.3mm;
  padding: 92.46mm var(--rr, 22mm) 36mm var(--rl, 22mm); box-shadow: 0 1px 3px rgba(0, 0, 0, .14), 0 10px 30px rgba(0, 0, 0, .08); }
.blatt.eigen { background: #fff url(/rechnungen/briefpapier/erste) 0 0 / 210mm 297mm no-repeat; }
.blatt label { display: inline; font: inherit; text-transform: none; letter-spacing: 0; color: inherit; margin: 0; }
.blatt .feld-auf { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 2px; margin: 0; padding: 0; width: 100%; min-height: 0; box-shadow: none; }
.blatt .feld-auf:hover { background: rgba(242, 193, 0, .08); outline: 1px dashed var(--f-d9c27a); outline-offset: 1px; }
.blatt .feld-auf:focus { background: var(--f-fffbea); outline: 1px solid var(--f-e0b400); outline-offset: 1px; }
.blatt .feld-auf::placeholder { color: var(--f-c3c3bd); opacity: 1; }
.blatt textarea.feld-auf { resize: none; overflow: hidden; display: block; }
.blatt input[type=date].feld-auf { font-variant-numeric: tabular-nums; }
.blatt .r { text-align: right; }
.blatt-logo { position: absolute; left: 22mm; top: 15mm; width: 166mm; height: 21.106mm; pointer-events: none; }
.blatt-falz { position: absolute; left: 3.5mm; width: 5mm; height: 0; border-top: .5pt solid var(--f-8a8a8a); }
.blatt-falz.loch { width: 7mm; }
.blatt-ruecksende { position: absolute; left: var(--rl, 22mm); top: 58.7mm; width: 85mm; font-size: 6.5pt; line-height: 3mm; color: var(--f-8a8a8a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blatt-anschrift { position: absolute; left: var(--rl, 22mm); top: 63.5mm; width: 85mm; height: 25.4mm; font-size: 10pt; line-height: 4.23mm; color: var(--f-333333); }
.blatt .blatt-anschrift.feld-auf { height: 25.6mm; }
.blatt-info { position: absolute; left: 120mm; right: var(--rr, 22mm); top: 50mm; display: grid; grid-template-columns: minmax(17.5mm, max-content) minmax(0, 1fr);
  column-gap: 1.5mm; grid-auto-rows: 3.704mm; align-items: center; }
.blatt-info > span { font-size: 6.5pt; color: var(--f-8a8a8a); line-height: 3.704mm; white-space: nowrap; }
.blatt-info > b, .blatt-info > input { font-weight: 400; font-size: 8.5pt; line-height: 3.704mm; color: var(--f-333333); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blatt-info > input.feld-auf { height: 3.6mm; }
.blatt-info .bi-leer { grid-column: 1 / -1; }
.blatt-titel { display: flex; align-items: flex-end; justify-content: space-between; gap: 6mm; height: 9mm; margin-bottom: 3mm; }
.blatt-titel h2 { display: flex; align-items: baseline; gap: 2.4mm; flex: 1; min-width: 0; margin: 0; font-size: 17pt; line-height: 8mm; font-weight: 400; color: var(--f-8a8a8a); }
.blatt-titel h2 b { color: var(--f-4d4d4d); font-weight: 700; white-space: nowrap; }
.blatt-titel h2 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blatt-titel h2 input.feld-auf { flex: 1; min-width: 0; height: 8mm; font-size: 17pt; color: var(--f-8a8a8a); }
.bt-nr { text-align: right; line-height: 1.15; white-space: nowrap; }
.bt-nr small { display: block; font-size: 8pt; color: var(--f-8a8a8a); }
.bt-nr b { font-size: 10pt; color: var(--f-4d4d4d); }
.blatt-raster { display: grid; grid-template-columns: repeat(var(--sp, 4), minmax(0, 1fr)); column-gap: 4mm; row-gap: 3.2mm; padding-bottom: 3.5mm;
  margin-bottom: 5mm; border-bottom: .18mm solid var(--f-d2d2d2); }
.blatt-raster small { display: block; font-size: 6.6pt; line-height: 3.2mm; letter-spacing: .35pt; text-transform: uppercase; color: var(--f-a6a6a6); margin-bottom: 1.2mm; }
.blatt-raster span, .blatt-raster input { font-size: 9.2pt; line-height: 4.1mm; color: var(--f-333333); }
.blatt-raster .zeitraum { display: flex; flex-direction: column; gap: .8mm; }
.blatt-raster .zeitraum input { width: 100%; }
.blatt-anrede { margin: 0 0 1.2mm; }
.blatt-text { margin: 0 0 3mm; }
p.blatt-text { white-space: pre-line; }
.blatt textarea.blatt-text { min-height: 4.3mm; line-height: 4.3mm; }
/* Positionen: Pos. 10 · Bezeichnung · Menge 19 · Einheit 15 · Einzelpreis 25 · Gesamt 27 mm (Lieferschein: Menge 24, Einheit 20) */
.pos-kopf, .blatt .pos { display: grid; grid-template-columns: 10mm minmax(0, 1fr) 19mm 15mm 25mm 27mm; }
.ohne-preise .pos-kopf, .blatt.ohne-preise .pos { grid-template-columns: 10mm minmax(0, 1fr) 24mm 20mm; }
.pos-kopf { align-items: center; height: 5.4mm; margin-bottom: 1.6mm; border-bottom: .3mm solid var(--f-333333); font-size: 6.9pt; font-weight: 700; letter-spacing: .3pt; text-transform: uppercase; color: var(--f-8a8a8a); }
.pos-kopf .r { text-align: right; }
.blatt .pos { position: relative; align-items: baseline; padding: 1.1mm 0 2.1mm; border-bottom: .15mm solid var(--f-d2d2d2); font-size: 8.8pt; line-height: 4mm; }
.blatt .pos input.feld-auf { height: 4.2mm; line-height: 4.2mm; }
.blatt .pos:has(+ .pos.titel), .blatt .pos.titel, .blatt .pos:last-child { border-bottom-color: transparent; }
.blatt .pos.titel { padding-top: 3mm; }
.pos-nr { grid-column: 1; }
.pos-text { grid-column: 2; font-weight: 700; padding-right: 3mm; min-width: 0; }
.pos-text input.feld-auf { font-weight: 700; }
.blatt .pos-text textarea.pos-ueberschrift { font-weight: 700; line-height: 4mm; min-height: 4.2mm; height: 4.2mm; white-space: pre-wrap; overflow-wrap: anywhere; }
.pos.titel .pos-text { grid-column: 2 / 6; color: var(--f-4d4d4d); }
.ohne-preise .pos.titel .pos-text { grid-column: 2 / -1; }
.pos-titelsumme { grid-column: 6; font-size: 7.6pt; color: var(--f-8a8a8a); }
.pos-menge { grid-column: 3; text-align: right; }
.pos-einheit { grid-column: 4; padding-left: 1.5mm; }
.pos-preis { grid-column: 5; text-align: right; }
.pos-gesamt { grid-column: 6; text-align: right; }
.blatt .pos-gesamt, .blatt .pos-preis, .blatt .pos-menge { font-weight: 400; }
.blatt .pos-einheit input.feld-auf { position: relative; z-index: 1; width: calc(100% + 7mm); }
.pos-lang { grid-column: 2 / 6; min-width: 0; padding-right: 4mm; font-size: 8.2pt; line-height: 3.75mm; color: var(--f-555555); font-weight: 400; }
.ohne-preise .pos-lang { grid-column: 2 / 3; }
.pos-lang p, .pos-lang ul { margin: 0; }
.pos-lang > :first-child, .pos-lang .pos-lang-ansicht > :first-child { margin-top: .5mm; }
.pos-lang .luecke { margin-top: 2.1mm; }
.pos-lang ul { list-style: none; padding: 0; }
.pos-lang li { position: relative; padding-left: 3.6mm; margin-top: .35mm; }
.pos-lang li::before { content: ""; position: absolute; left: .35mm; top: 1.2mm; width: 1.15mm; height: 1.15mm; background: var(--akzent, var(--f-ffc400)); }
.pos-lang textarea.feld-auf { display: none; margin-top: .5mm; font-size: 8.2pt; line-height: 3.75mm; color: var(--f-555555); }
.pos-lang.bearbeiten textarea.feld-auf { display: block; }
.pos-lang.bearbeiten .pos-lang-ansicht, .pos-lang:not(.hat) .pos-lang-ansicht { display: none; }
.pos-lang-ansicht { cursor: text; border-radius: 2px; }
.pos-lang-ansicht:hover { background: rgba(242, 193, 0, .08); outline: 1px dashed var(--f-d9c27a); outline-offset: 1px; }
/* Bedienelemente erscheinen ohne das Blatt zu verschieben (sonst rutscht ein angeklickter Knopf weg) */
.pos-lang { position: relative; }
.pos-lang-neu { position: absolute; left: 0; top: -.3mm; visibility: hidden; font-size: 7.5pt; line-height: 3mm; background: #fff; padding: 0 1mm 0 0; }
.pos-lang.hat .pos-lang-neu, .pos-lang.bearbeiten .pos-lang-neu { display: none; }
.pos:hover .pos-lang-neu, .pos:focus-within .pos-lang-neu { visibility: visible; }
.pos-taet { margin-top: 1mm; font-size: 6.6pt; line-height: 1.2; color: var(--f-8a8a8a); width: 20mm; }
.pos-taet label { display: block; }
.blatt .pos-taet select { display: block; width: 20mm; min-height: 0; margin-top: .3mm; padding: 0 1px; font-size: 7pt; border: 1px solid var(--f-dddddd); border-radius: 2px; background: #fff; }
.pos-taet.hat select { border-color: var(--f-d9c27a); }
.pos-rand-l { position: absolute; right: 100%; top: 1mm; margin-right: 2.5mm; display: flex; align-items: center; gap: 1.2mm; opacity: 0; transition: opacity .1s; }
.pos-rand-r { position: absolute; left: 100%; top: .5mm; margin-left: 1.5mm; display: flex; flex-wrap: wrap; gap: 1px; width: 20mm; opacity: 0; transition: opacity .1s; }
.pos:hover .pos-rand-l, .pos:focus-within .pos-rand-l, .pos.gewaehlt .pos-rand-l, .pos:hover .pos-rand-r, .pos:focus-within .pos-rand-r { opacity: 1; }
.pos-rand-l input { width: 14px; height: 14px; margin: 0; }
.pos-griff { cursor: grab; color: var(--f-a6a6a0); font-size: 13px; user-select: none; }
.pos-rand-r .pos-k { width: 6.2mm; height: 5.6mm; padding: 0; font-size: 11px; }
/* ab 2.5.0: Schätzung, Rabatt, optional/Alternative im rechten Rand; Vermerk über der Beschreibung */
.pos-rand-r { pointer-events: none; z-index: 4; }
.pos:hover .pos-rand-r, .pos:focus-within .pos-rand-r { pointer-events: auto; z-index: 8; background: rgba(255,255,255,.96); box-shadow: 0 0 0 1mm rgba(255,255,255,.96); }
.pos-extra { display: flex; flex-direction: column; gap: .8mm; margin-top: 1mm; width: 20mm; font-size: 6.6pt; line-height: 1.2; color: var(--f-8a8a8a); }
.pos-extra label { display: block; }
.blatt .pos-extra input, .blatt .pos-extra select { display: block; width: 20mm; min-height: 0; margin-top: .3mm; padding: 0 2px; font-size: 7pt; border: 1px solid var(--f-dddddd); border-radius: 2px; background: #fff; height: 4.4mm; }
.pos-extra small { display: block; font-size: 6.2pt; color: var(--f-9a7b00); }
.pos-std.aus { display: none !important; }
.pos-vermerk { margin: .5mm 0 0; font-size: 7.6pt; line-height: 3.5mm; color: var(--f-8a8a8a); font-style: italic; }
.pos-vermerk:empty { display: none; }
.blatt .pos.ohne .pos-gesamt, .blatt .pos.ohne .pos-preis { color: var(--f-8a8a8a); }
/* ab 2.67.3: Zeile ohne Preis – Text und Menge, Einzelpreis und Gesamt leer (im Editor ein leiser Hinweis) */
.blatt .pos-ohnepreis { font-size: 7.4pt; color: var(--f-8a8a8a); align-self: start; padding-top: 1.2mm; white-space: nowrap; }
.blatt .pos.ohne .pos-text input.feld-auf, .blatt .pos.ohne .pos-text b { color: var(--f-6b6b6b); }
.blatt .pos.gewaehlt { background: var(--f-fff8db); box-shadow: -2mm 0 0 var(--f-fff8db), 2mm 0 0 var(--f-fff8db); }
.blatt .pos.zieht { opacity: .4; }
.blatt .pos.ziel-oben { box-shadow: 0 -2px 0 var(--f-e0b400); }
.blatt .pos.ziel-unten { box-shadow: 0 2px 0 var(--f-e0b400); }
.blatt-link { background: none; border: 0; padding: 0; font: inherit; font-size: 8pt; color: var(--f-9a7b00); cursor: pointer; }
.blatt-link:hover { color: var(--f-333333); text-decoration: underline; }
.blatt-link.rot { color: var(--rot); }
.pos-leiste { display: flex; gap: 4mm; align-items: center; flex-wrap: wrap; margin: 1.5mm 0 4mm; font-size: 8pt; min-height: 5mm; }
.pos-leiste .pos-auswahl { display: inline-flex; gap: 3mm; align-items: center; padding: 0 2mm; background: var(--f-fff8db); border-radius: 3px; }
.pos-leiste .pos-alle { margin-left: auto; font-size: 7.5pt; display: inline-flex; gap: 1mm; align-items: center; }
/* Summen */
.blatt-summen { margin: 0 0 5mm; padding-top: 1.5mm; border-top: .3mm solid var(--f-333333); }
.blatt-summen .bs-z { display: flex; justify-content: space-between; width: 88mm; margin-left: auto; font-size: 8.8pt; line-height: 5mm; }
.blatt-summen { position: relative; }
.blatt-summen.mit-giro { min-height: 25mm; }
.bs-giro { position: absolute; left: 0; top: 2.5mm; display: flex; gap: 2.5mm; align-items: flex-start; }
.bs-giro img, .bs-giro > span { width: 22mm; height: 22mm; flex: none; }
.bs-giro > span { display: flex; align-items: center; justify-content: center; text-align: center; border: .3mm solid var(--f-cfcfcf); font-size: 6.5pt; line-height: 3mm; color: var(--f-8a8a8a); }
.bs-giro p { margin: 1mm 0 0; font-size: 7pt; line-height: 3.3mm; color: var(--f-8a8a8a); }
.bs-giro p b { color: var(--f-333333); font-size: 7.2pt; }
.bs-skonto { width: 88mm; margin: 1.5mm 0 0 auto; font-size: 7.6pt; line-height: 3.5mm; color: var(--f-8a8a8a); }
.blatt-abrechnung .bs-skonto { width: auto; text-align: right; }
.blatt .bs-ust { display: inline-block; width: 5.2mm !important; text-align: right; }
/* Einleitung und Schluss: mit Platzhaltern zeigt das Blatt den Text wie im PDF, beim Klicken die Platzhalter */
.text-feld { position: relative; }
.text-feld .text-ansicht { display: none; white-space: pre-line; cursor: text; border-radius: 2px; margin: 0 0 3mm; }
.text-feld.platzhalter:not(.bearbeiten) .text-ansicht { display: block; }
.text-feld.platzhalter:not(.bearbeiten) textarea { display: none; }
.text-feld .text-ansicht:hover { background: rgba(242, 193, 0, .08); outline: 1px dashed var(--f-d9c27a); outline-offset: 1px; }
.text-ansicht .ph { background: var(--f-fff4cc); border-radius: 2px; }
.text-ansicht ul.ta-liste { list-style: none; padding: 0; margin: 0; }
.text-ansicht .ta-liste li { position: relative; padding-left: 4mm; }
.text-ansicht .ta-liste li::before { content: ""; position: absolute; left: .4mm; top: 1.5mm; width: 1.3mm; height: 1.3mm; background: var(--akzent, var(--f-ffc400)); }
.text-ansicht b.ta-z { display: block; }
.text-ansicht .ta-leer { height: 2.6mm; }
/* ab 2.41.0: fett/kursiv direkt im Feld (contenteditable statt Textfeld) – Überschrift, Beschreibung, Einleitung, Schluss */
.blatt .rich { display: block; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; min-height: 4.2mm; }
.blatt .rich:empty::before { content: attr(data-placeholder); color: var(--f-c3c3bd); pointer-events: none; }
.blatt .rich b, .text-ansicht b, .pos-lang-ansicht b { font-weight: 700; }
.blatt .rich i, .text-ansicht i, .pos-lang-ansicht i { font-style: italic; }
.blatt .pos-text .rich.pos-ueberschrift { line-height: 4mm; min-height: 4.2mm; }
.blatt .rich.blatt-text { min-height: 4.3mm; line-height: 4.3mm; }
.pos-lang .rich.feld-auf { display: none; margin-top: .5mm; font-size: 8.2pt; line-height: 3.75mm; color: var(--f-555555); min-height: 7.5mm; }
.pos-lang.bearbeiten .rich.feld-auf { display: block; }
.text-feld.platzhalter:not(.bearbeiten) .rich { display: none; }
.rich-leiste { position: absolute; z-index: 950; display: flex; gap: 2px; padding: 2px; background: var(--weiss); border: 1px solid var(--g3); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
.rich-leiste[hidden] { display: none; }
.rich-leiste button { min-width: 28px; height: 26px; min-height: 0; padding: 0 6px; margin: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: 600 14px/1 Arial, Arimo, sans-serif; box-shadow: none; cursor: pointer; }
.rich-leiste button:hover:not(:disabled) { background: var(--g1); }
.rich-leiste button[aria-pressed="true"] { background: var(--gelb); color: var(--auf-gelb); }
.rich-leiste button:disabled { opacity: .35; cursor: default; }
p.blatt-text.vorzeilen { white-space: pre-line; }
.klein-zahl { width: 4.6em !important; }
.bs-plan { gap: 8px; align-items: center; flex-wrap: wrap; }
.uw-optionen { border: 1px solid var(--g2); border-radius: var(--radius); padding: 6px 10px 8px; margin: 6px 0 10px; }
.uw-optionen legend { font-size: .82rem; color: var(--g6); padding: 0 4px; }
.bs-gesamt { position: relative; display: flex; justify-content: space-between; align-items: center; width: 88mm; margin: 1mm 0 0 auto; padding: 2mm 0 0 4.5mm;
  border-top: .3mm solid var(--f-333333); font-weight: 700; font-size: 10.5pt; line-height: 7.4mm; box-sizing: border-box; }
.bs-gesamt i { position: absolute; left: 0; top: 2mm; width: 1.6mm; height: 7.4mm; background: var(--akzent, var(--f-ffc400)); }
.bs-gesamt span:last-child { font-size: 11.5pt; }
.blatt-abrechnung { margin: 2mm 0 5mm; }
.ba-z { display: grid; grid-template-columns: minmax(0, 1fr) 27mm 27mm 27mm; align-items: baseline; padding: 1.1mm 0 1.3mm; border-bottom: .15mm solid var(--f-d2d2d2); font-size: 8.8pt; line-height: 4mm; }
.ba-z small { display: block; font-size: 7.8pt; color: var(--f-8a8a8a); }
.ba-kopf { font-size: 6.9pt; font-weight: 700; letter-spacing: .3pt; text-transform: uppercase; color: var(--f-8a8a8a); border-bottom: .3mm solid var(--f-333333); }
.ba-kopf .bs-ust { font-size: 6.9pt; }
.ba-rest { position: relative; padding: 2mm 0 0 4.5mm; border-top: .3mm solid var(--f-333333); border-bottom: 0; font-weight: 700; font-size: 10.5pt; line-height: 7.4mm; }
.ba-rest i { position: absolute; left: 0; top: 2mm; width: 1.6mm; height: 7.4mm; background: var(--akzent, var(--f-ffc400)); }
.ba-rest span:last-child { font-size: 11.5pt; }
/* Zahlungsplan */
.blatt-plan { margin: 1mm 0 4mm; }
.bp-titel { font-weight: 700; margin-bottom: 1.2mm; }
.blatt .bp-z { position: relative; display: grid; grid-template-columns: 14mm minmax(0, 1fr) 30mm; column-gap: 4mm; align-items: baseline; padding: .9mm 0 .9mm;
  border-bottom: .15mm solid var(--f-d2d2d2); font-size: 8.8pt; line-height: 4mm; }
.blatt .bp-kopf { border-bottom: .3mm solid var(--f-333333); font-size: 6.9pt; font-weight: 700; letter-spacing: .3pt; text-transform: uppercase; color: var(--f-8a8a8a); }
.bp-proz { display: flex; align-items: baseline; justify-content: flex-end; gap: .8mm; font-weight: 700; }
.blatt .bp-proz input.feld-auf { width: 9mm; text-align: right; font-weight: 700; }
.bp-rand { position: absolute; left: 100%; top: .3mm; margin-left: 1.5mm; opacity: 0; }
.bp-z:hover .bp-rand, .bp-z:focus-within .bp-rand { opacity: 1; }
.bp-fuss { display: flex; gap: 4mm; align-items: center; margin-top: 1.2mm; font-size: 8pt; }
.bp-fuss .rot { color: var(--rot); }
/* ab 2.5.0: Zahlungsplan je Phase */
.bp-k-phase { display: none; }
.blatt-plan.phasen .bp-k-phase { display: block; }
.blatt-plan.phasen .bp-k-anteil, .blatt-plan.phasen [data-plan-neu] { display: none; }
.blatt .blatt-plan.phasen .bp-z { grid-template-columns: 62mm minmax(0, 1fr) 30mm; }
.bp-phase { font-weight: 700; white-space: pre-wrap; }
.bp-hinweis { margin: 1.2mm 0 0; padding-top: 1.2mm; border-top: .3mm solid var(--f-333333); font-size: 7.6pt; line-height: 3.5mm; color: var(--f-8a8a8a); }
/* Gruß, Unterschriften, Hinweise, Fuß */
.blatt-gruss { margin-top: 5mm; }
.blatt-gruss p { margin: 0; }
.blatt-gruss .bg-name { margin-top: 7mm; }
.blatt-gruss .bg-firma { font-size: 7.6pt; line-height: 3.6mm; color: var(--f-8a8a8a); }
.blatt-unterschriften { display: flex; gap: 14mm; margin-top: 13mm; font-size: 7.2pt; line-height: 3.4mm; color: var(--f-8a8a8a); }
.blatt-unterschriften div { flex: 1; padding-top: 1mm; border-top: .2mm solid var(--f-8a8a8a); }
.blatt-unterschriften i { display: none; }
.blatt-hinweis { margin-top: 4mm; font-size: 7.4pt; line-height: 3.5mm; color: var(--f-8a8a8a); }
.blatt-hinweis textarea.feld-auf { margin-top: .6mm; font-size: 7.4pt; line-height: 3.5mm; color: var(--f-8a8a8a); }
.blatt-fuss { position: absolute; left: var(--rl, 22mm); right: var(--rr, 22mm); bottom: 6.6mm; font-size: 6.5pt; line-height: 3.4mm; color: var(--f-8a8a8a); }
.bf-seite { display: flex; justify-content: space-between; margin-bottom: .9mm; }
.bf-spalten { display: grid; grid-template-columns: 41mm 40mm 47mm minmax(0, 1fr); padding-top: 1.3mm; border-top: .25pt solid var(--f-d2d2d2); }
.bf-spalten b { display: block; font-size: 6pt; }
.bf-spalten span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 2mm; }
.blatt-seitenende { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--f-c9c9c4); pointer-events: none; }
.blatt-seitenende { font-size: 9px; line-height: 1; color: var(--f-a0a09a); text-align: right; padding-right: 3mm; }
@media print { .beleg-leiste, .beleg-seite, .pos-rand-l, .pos-rand-r, .pos-leiste { display: none !important; } .blatt { box-shadow: none; } }
/* hidden gilt auch für Elemente, die oben eine eigene Anzeige bekommen (Blatt, Seitenleiste, Listen) */
.pos-leiste [hidden], .blatt [hidden], .beleg-seite [hidden], .vk-neuform [hidden], .auftrag-form [hidden], .kette [hidden] { display: none !important; }
.auftrag-form .plan-editor input[name=p_prozent] { width: 64px; min-width: 0; }
.auftrag-form .plan-editor td:nth-child(2) { width: 100%; }
.auftrag-form .plan-editor td { padding-left: 4px; padding-right: 4px; }

/* ---------- ab 2.6.0: Planung – vorläufig, N. N., Plan/Ist, Terminplan, Kapazität ---------- */
.pbalken b, .pbalken em, .pbalken span { position: relative; z-index: 1; }
.pbalken.vorlaeufig { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--kf) 14%, var(--weiss)) 0 6px, var(--weiss) 6px 12px);
  color: var(--g7); border: 2px dotted var(--kf); line-height: 18px; text-shadow: none; opacity: .92; }
.pbalken.vorlaeufig b { font-weight: 600; }
.pbalken .pb-ist { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--ia, 0) * 100%); background: rgba(0,0,0,.14); pointer-events: none; z-index: 0;
  box-shadow: inset 0 -3px 0 var(--ist-f, var(--gruen)); }
.pbalken.projekt .pb-ist { background: rgba(0,0,0,.06); }
.pbalken.ist-wenig { --ist-f: var(--f-e08a1e); }
.pbalken.ist-viel { --ist-f: var(--rot); }
.pbalken.ist-ok { --ist-f: var(--f-7bd389); }
.lg.vorlaeufig { border: 2px dotted var(--g7); background: repeating-linear-gradient(135deg, var(--g2) 0 3px, transparent 3px 6px); }
.lg.ist { background: linear-gradient(var(--g7), var(--g7)) left/55% 100% no-repeat, var(--g4); box-shadow: inset 0 -3px 0 var(--f-7bd389); }
.tafel-zeile.platzhalter { border-top: 2px dashed var(--g3); }
.tafel-zeile.platzhalter .tafel-name { background: repeating-linear-gradient(135deg, var(--g1) 0 6px, var(--weiss) 6px 12px); }
.tafel-zeile.platzhalter .tafel-name b { font-style: italic; }
.tz.parallel { box-shadow: inset 0 -3px 0 var(--g4); }
.tz.parallel span { position: absolute; bottom: 3px; right: 2px; font-size: .55rem; color: var(--g7); font-weight: 700; }
.quelle.vorlaeufig { border-left-style: dotted; background: repeating-linear-gradient(135deg, var(--papier) 0 8px, var(--weiss) 8px 16px); }
.chip.klein-chip { font-size: .66rem; padding: 0 6px; vertical-align: 1px; }
.heute-geplant .favoriten button { border-left-style: double; border-left-width: 6px; }
.heute-geplant .karte-kopf h2 { display: inline-flex; gap: 6px; align-items: center; }

/* Terminplan (Gantt) */
.gantt-scroll { overflow-x: auto; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--weiss); }
.gantt { display: block; font-family: var(--schrift); }
.gantt .g-we { fill: var(--f-f4f4f1); }
.gantt .g-woche { stroke: var(--f-ececea); stroke-width: 1; }
.gantt .g-monatlinie { stroke: var(--g3); stroke-width: 1; }
.gantt .g-kopflinie { stroke: var(--anthrazit); stroke-width: 1; }
.gantt .g-monat { font-size: 11px; font-weight: 700; fill: var(--g9); }
.gantt .g-kw { font-size: 10px; fill: var(--g6); }
.gantt .g-zeile { fill: var(--weiss); }
.gantt .g-zeile.g-ungerade { fill: var(--f-fafaf7); }
.gantt .g-text { font-size: 12px; fill: var(--anthrazit); }
.gantt .g-text.g-fett { font-weight: 700; }
.gantt .g-nr { fill: var(--g6); font-weight: 400; }
.gantt .g-bar rect:first-of-type { fill: var(--f-8d8d89); }
.gantt .g-bar.krit rect:first-of-type { fill: var(--rot); }
.gantt .g-bar.erledigt rect:first-of-type { fill: var(--f-9fcfb1); }
.gantt .g-bar.verz rect:first-of-type { stroke: var(--rot); stroke-width: 2; stroke-dasharray: 4 2; }
.gantt .g-fort { fill: rgba(255,255,255,.75); }
.gantt .g-wer { font-size: 10px; fill: #fff; pointer-events: none; }
.gantt .g-teil { fill: var(--g9); }
.gantt .g-ms { fill: var(--g9); }
.gantt .g-ms.krit { fill: var(--rot); }
.gantt .g-basis { fill: none; stroke: var(--g4); stroke-width: 1; stroke-dasharray: 3 2; }
.gantt .g-pfeil { fill: none; stroke: var(--g6); stroke-width: 1.2; }
.gantt .g-spitze { fill: var(--g6); }
.gantt .g-heute { stroke: var(--gelb-d); stroke-width: 2; }
.gantt .g-lt { stroke: var(--rot); stroke-width: 1.5; stroke-dasharray: 5 3; }
.termin-kopf { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 10px; }
.termin-kopf b.rot { color: var(--rot); }
.legende.gantt-legende { padding: 8px 0 0; }
.lg.g-krit { background: var(--rot); } .lg.g-norm { background: var(--f-8d8d89); } .lg.g-erl { background: var(--f-9fcfb1); }
.lg.g-basis { border: 1px dashed var(--g4); background: none; height: 4px; vertical-align: 2px; }
.lg.g-verz { border: 2px dashed var(--rot); background: var(--f-8d8d89); }
.tab.basis-tab td, .tab.basis-tab th { white-space: nowrap; }
.abw-plus { color: var(--rot); font-weight: 600; }
.abw-minus { color: var(--gruen); font-weight: 600; }
.pb-rest { white-space: nowrap; }
.pb-rest input { width: 64px; text-align: right; }
.pb-rest small { display: block; color: var(--g6); font-size: .74rem; margin-top: 2px; }
.pb-rest small.rot { color: var(--rot); font-weight: 600; }

/* Kapazität */
.kap-tab { min-width: 900px; }
.kap-tab th, .kap-tab td { text-align: center; padding: 5px 4px; }
.kap-tab th:first-child, .kap-tab td:first-child { text-align: left; white-space: nowrap; }
.kap-tab th.heute { box-shadow: inset 0 3px 0 var(--gelb); }
.kap-zelle { display: block; border-radius: 4px; padding: 3px 2px; font-size: .82rem; line-height: 1.25; }
.kap-zelle b { display: block; font-size: .9rem; }
.kap-zelle small { color: var(--g6); font-size: .7rem; }
.kap-zelle.l0 { background: var(--g1); color: var(--g6); }
.kap-zelle.l1 { background: var(--f-e5f3ea); }
.kap-zelle.l2 { background: var(--f-fff1c2); }
.kap-zelle.l3 { background: var(--f-fbe0dc); }
.kap-zelle .vorl { display: block; font-size: .68rem; color: var(--f-8a6d00); }
.kap-tab tr.team td { font-weight: 700; border-top: 2px solid var(--anthrazit); }
.kap-tab tr.platzhalter td:first-child { font-style: italic; }
.kap-tab tr.ich td:first-child { box-shadow: inset 3px 0 0 var(--gelb); }

/* ab 2.6.0: Monatsübersicht – Maske rechts zum gewählten Feld */
.ueb.mit-maske { display: grid; grid-template-columns: minmax(0, max-content) 350px; grid-template-areas: "tab maske" "fuss fuss"; width: fit-content; max-width: 100%; }
.ueb.mit-maske > .ueb-rahmen { grid-area: tab; }
.ueb.mit-maske > .ueb-maske { grid-area: maske; }
.ueb.mit-maske > .ueb-fuss { grid-area: fuss; }
.ueb-maske { border-left: 1px solid var(--g2); padding: 12px 14px; overflow: auto; max-height: calc(100vh - 205px); background: var(--weiss); font-size: .9rem; }
.ueb-maske.laedt { opacity: .6; }
.ueb-maske h3 { margin: 0 0 4px; font-size: 1rem; }
.ueb-maske h4 { margin: 14px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--g6); }
.um-kopf { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--g2); }
.um-was span { color: var(--g6); }
.um-taet { font-weight: 600; font-size: .85rem; color: var(--g7); }
.um-liste { display: flex; flex-direction: column; gap: 8px; }
.um-zeit { border: 1px solid var(--g2); border-left: 3px solid var(--gelb); border-radius: var(--radius); padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; background: var(--papier); }
.um-zeit.neu { border-left-color: var(--gruen); }
.um-zeit.weg { opacity: .5; text-decoration: line-through; border-left-color: var(--rot); }
.um-zeit.fest { border-left-color: var(--g4); background: repeating-linear-gradient(135deg, var(--f-f6f6f3) 0 6px, var(--f-efefeb) 6px 12px); }
.um-zeit.fest small { display: block; color: var(--g6); }
.um-zeit-kopf { display: flex; align-items: center; gap: 4px; }
.um-zeit-kopf input[type=time] { width: 104px; padding: 3px 4px; min-height: 28px; }
.um-dauer { margin-left: auto; color: var(--g6); font-size: .8rem; }
.um-weg { border: 0; background: none; cursor: pointer; color: var(--g6); font-size: 1rem; padding: 0 2px; }
.um-weg:hover { color: var(--rot); }
.um-zeit select, .um-zeit input[type=text] { width: 100%; padding: 4px 6px; min-height: 28px; font-size: .85rem; }
.um-plus { margin-top: 8px; }
.um-fuss { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--g2); }
.um-fuss > span { margin-right: auto; }
.um-hinweis { background: var(--gelb-h); border-radius: 4px; padding: 4px 8px; margin: 0 0 8px; }
.um-andere div { color: var(--g7); padding: 1px 0; }
.ueb-tab td.gewaehlt { box-shadow: inset 0 0 0 2px var(--gelb-d); }
.ueb-tab .ueb-fest:focus { outline: 2px solid var(--anthrazit); outline-offset: -2px; }
@media (max-width: 1100px) {
  .ueb.mit-maske { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tab" "maske" "fuss"; width: auto; }
  .ueb-maske { border-left: 0; border-top: 1px solid var(--g2); max-height: none; }
}

/* ab 2.6.0: Kundenliste – alle Stundensätze */
.saetze-zelle { min-width: 170px; max-width: 300px; }
.saetze-zelle div { line-height: 1.35; }
.saetze-zelle span { color: var(--g6); font-size: .82rem; }
.saetze-zelle b { font-weight: 600; white-space: nowrap; }

/* ab 2.7.0: Anwesenheit laut TiMaS in Verwaltung → Übersicht */
.anw-kopf { margin-left: auto; margin-right: 12px; color: var(--f-5b6470); }
.anw-zelle { white-space: nowrap; }
.anw { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; background: var(--f-eceeea); color: var(--f-4d535b); }
.anw-da { background: var(--f-e1f1e5); color: var(--f-1f6b38); font-weight: 600; }
.anw-da::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--f-2f9a52); vertical-align: 1px; }
.anw-weg { background: var(--f-f1efe6); color: var(--f-6b6450); }
.anw-ho { background: var(--f-e6eef8); color: var(--f-2c5a92); }
.anw-abw { background: var(--f-f6ecd9); color: var(--f-80581a); }
.anw-ohne { background: none; color: var(--f-9aa0a6); padding-left: 0; }

/* ab 2.8.0: Überstundenkonto – Grenze überschritten */
.ueber-grenze { color: var(--rot); font-weight: 600; }

/* ab 2.8.0: halbe Tage im Urlaubsplaner (Monat, Jahr, Legende) */
#urlaubsplan td.abw.halb, .legende i.abw.halb { background-image: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.85) 50%); }
.jb-seg.halb { opacity: .55; }
/* ab 2.8.0: Kunde auch im Balken der Planungstafel und in der Maske der Monatsübersicht */
.pbalken .b-kunde { font-weight: 400; opacity: .8; }
.um-was .um-kunde { color: var(--g6); }
#urlaubsplan td.abw.halb.beantragt { background-image: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.85) 50%), repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0 4px, transparent 4px 8px); }

/* ab 2.8.1: Kunden-Filter oben auf der Seite (gilt für alle Kommissions-Auswahllisten der Seite); Hinweis unter einem Feld */
.kundenfilter-seite { margin-left: auto; }
.seitenkopf .zeile > .kundenfilter-seite, .ansichtkopf .ak-steuer > .kundenfilter-seite { margin-left: 0; }
.ansichtkopf .ak-steuer > .kundenfilter-seite { padding-top: 0; padding-bottom: 0; }
.kundenfilter-seite select { min-width: 150px; }
.feld-hinweis { display: block; color: var(--g6); font-size: .82rem; margin-top: 4px; }

/* ---------- Chat (ab 2.9.0) ---------- */
main.breit:has(> .chat) { padding-top: 14px; padding-bottom: 12px; }
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - var(--kopf-h, 61px) - 30px); min-height: 460px; background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); overflow: hidden; }
.chat-seite { display: flex; flex-direction: column; border-right: 1px solid var(--g2); background: var(--f-fbfbf9); min-height: 0; }
.chat-seite-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 8px; }
.chat-seite-kopf h1 { font-size: 1.25rem; margin: 0; }
.chat-suche { padding: 0 14px 10px; margin: 0; }
.chat-suche input { width: 100%; }
.chat-liste { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.chat-eintrag { display: flex; gap: 10px; align-items: center; padding: 9px 14px; text-decoration: none; color: var(--anthrazit); border-left: 3px solid transparent; }
.chat-eintrag:hover { background: var(--g1); }
.chat-eintrag.aktiv { background: var(--gelb-h); border-left-color: var(--gelb); }
.chat-eintrag-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.chat-eintrag-kopf { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.chat-eintrag-kopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chat-eintrag.ungelesen .chat-eintrag-kopf b { font-weight: 800; }
.chat-eintrag-zeit { margin-left: auto; padding-left: 6px; font-size: .76rem; color: var(--g6); white-space: nowrap; }
.chat-eintrag-unter { display: flex; gap: 6px; align-items: center; min-width: 0; }
.chat-vorschau { font-size: .84rem; color: var(--g6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.chat-eintrag.ungelesen .chat-vorschau { color: var(--anthrazit); }
.zahlmarke.grau { background: var(--g3); }
.chat-symbol { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; background: var(--g2); color: var(--anthrazit); text-transform: uppercase; }
.chat-symbol.chat-alle { background: var(--kopf-bg); color: var(--gelb); font-size: 1rem; }
.chat-symbol.chat-admins { background: var(--gelb); color: var(--auf-gelb); }
.chat-symbol.chat-gruppe { background: var(--f-dfe9f3); color: var(--f-1f4f7a); }
.chat-symbol.gross { width: 42px; height: 42px; font-size: .86rem; }
.chat-stumm-zeichen { font-size: .78rem; }
.chat-seite-fuss { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--g2); flex-wrap: wrap; }
.chat-seite-fuss [hidden] { display: none; }
.chat-seite-fuss:not(:has(> :not([hidden]))) { display: none; }
.chat-eintrag-unter .zahlmarke { white-space: nowrap; flex: 0 0 auto; }
.chat-haupt { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.chat-haupt > .leer { padding: 24px; }
.chat-kopf { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--g2); }
.chat-kopf-text { min-width: 0; flex: 1 1 auto; }
.chat-kopf-text h2 { margin: 0; font-size: 1.1rem; }
.chat-kopf-text .leise { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-kopf-knoepfe { display: flex; gap: 6px; flex: 0 0 auto; }
.chat-kopf-knoepfe form { margin: 0; }
.chat-verlauf { flex: 1 1 auto; overflow-y: auto; padding: 12px 18px 10px; background: var(--f-f7f6f2); min-height: 0; }
.chat-verlauf:focus { outline: none; }
.chat-aelter { text-align: center; margin-bottom: 8px; }
.chat-aelter[hidden] { display: none; }
.chat-tag { text-align: center; margin: 14px 0 6px; }
.chat-tag span { background: var(--weiss); border: 1px solid var(--g2); border-radius: 1em; padding: 2px 10px; font-size: .76rem; color: var(--g6); }
.chat-neu-linie { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; color: var(--rot); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.chat-neu-linie::before, .chat-neu-linie::after { content: ""; flex: 1; border-top: 1px solid var(--rot); opacity: .45; }
.chat-system { text-align: center; color: var(--g6); font-size: .82rem; margin: 8px 0; }
.chat-n { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.chat-n.folge { margin-top: 3px; }
.chat-n.folge .chat-kreis { visibility: hidden; height: 1px; }
.chat-n.folge .chat-n-kopf { display: none; }
.chat-kreis { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--g2); color: var(--anthrazit); font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; }
.chat-blase { background: var(--weiss); border: 1px solid var(--g2); border-radius: 10px; padding: 6px 10px 7px; max-width: min(720px, 78%); min-width: 0; }
.chat-n.eigen { flex-direction: row-reverse; }
.chat-n.eigen .chat-blase { background: var(--gelb-h); border-color: var(--f-f0dd99); }
.chat-n.eigen .chat-kreis { display: none; }
.chat-n.fuer-mich .chat-blase { box-shadow: inset 3px 0 0 var(--gelb); }
.chat-n-kopf { font-size: .8rem; color: var(--g6); margin-bottom: 1px; }
.chat-n-kopf b { color: var(--anthrazit); font-weight: 600; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.42; }
.chat-text a { color: var(--f-1f5e99); }
.chat-erw { background: var(--f-eef3f8); color: var(--f-1f4f7a); border-radius: 3px; padding: 0 2px; font-weight: 600; }
.chat-erw.ich { background: var(--gelb); color: var(--auf-gelb); }
.chat-n.geloescht .chat-text { color: var(--g6); }
.chat-bearb { font-size: .74rem; color: var(--g6); font-style: italic; }
.chat-uhr { font-size: .74rem; color: var(--g6); }
.chat-aktionen { opacity: 0; display: flex; gap: 2px; align-self: center; transition: opacity .15s; }
.chat-n:hover .chat-aktionen, .chat-n:focus-within .chat-aktionen { opacity: 1; }
.chat-knopf { border: 1px solid var(--g3); background: var(--weiss); border-radius: 4px; padding: 1px 6px; cursor: pointer; font-size: .8rem; color: var(--g7); }
.chat-knopf:hover { border-color: var(--anthrazit); color: var(--anthrazit); }
.chat-n.gesucht .chat-blase { box-shadow: 0 0 0 3px var(--gelb); }
.chat-aendern-feld { display: block; width: min(560px, 60vw); margin-top: 4px; font: inherit; }
.chat-aendern-leiste { display: flex; gap: 6px; margin-top: 4px; justify-content: flex-end; }
.chat-neue-knopf { position: absolute; right: 24px; bottom: 84px; background: var(--knopf); color: var(--auf-dunkel); border: none; border-radius: 1em; padding: 6px 12px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.chat-neue-knopf[hidden] { display: none; }
.chat-eingabe { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 12px; border-top: 1px solid var(--g2); background: var(--weiss); flex-wrap: wrap; margin: 0; }
.chat-eingabe-feld { position: relative; flex: 1 1 auto; min-width: 0; }
.chat-eingabe textarea { width: 100%; resize: none; min-height: 40px; max-height: 220px; line-height: 1.4; display: block; }
.chat-fehler { flex-basis: 100%; color: var(--rot); font-weight: 600; font-size: .86rem; }
.chat-fehler:empty { display: none; }
.chat-vorschlaege { position: absolute; bottom: 100%; left: 0; margin: 0 0 4px; padding: 4px; list-style: none; background: var(--weiss); border: 1px solid var(--g3); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); min-width: 240px; z-index: 5; }
.chat-vorschlaege[hidden] { display: none; }
.chat-vorschlaege li { padding: 5px 8px; border-radius: 4px; cursor: pointer; }
.chat-vorschlaege li.an, .chat-vorschlaege li:hover { background: var(--gelb-h); }
.chat-treffer { overflow-y: auto; padding: 8px 16px; flex: 1 1 auto; min-height: 0; }
.chat-treffer-eintrag { display: block; padding: 8px 10px; border-bottom: 1px solid var(--g2); text-decoration: none; color: var(--anthrazit); }
.chat-treffer-eintrag:hover { background: var(--g1); }
.chat-treffer-kopf { display: flex; gap: 6px; font-size: .86rem; }
.chat-treffer-text { display: block; color: var(--g7); font-size: .9rem; }
.chat-treffer-text mark { background: var(--gelb); color: var(--auf-gelb); padding: 0 1px; }
dialog.chat-dlg { width: min(560px, 94vw); border: 1px solid var(--g3); border-radius: var(--radius); padding: 0; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
dialog.chat-dlg::backdrop { background: rgba(46,46,45,.45); }
.chat-dlg-innen { padding: 16px 18px; }
.chat-dlg-innen h2 { margin: 0 0 8px; }
.chat-dlg-teil { padding: 10px 0; border-top: 1px solid var(--g2); margin: 0; }
.chat-dlg-teil h3 { margin: 0 0 8px; font-size: 1rem; }
.chat-personen { border: none; padding: 0; margin: 8px 0; max-height: 240px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.chat-personen legend { font-size: .84rem; color: var(--g6); margin-bottom: 4px; }
.chat-dlg-fuss { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--g2); }
/* Hinweise zu neuen Nachrichten auf anderen Seiten */
.chat-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.chat-toast { position: relative; display: block; background: var(--weiss); border: 1px solid var(--g3); border-left: 4px solid var(--gelb); border-radius: var(--radius); padding: 10px 34px 10px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.2); text-decoration: none; color: var(--anthrazit); transition: opacity .4s; }
.chat-toast b { display: block; font-size: .9rem; }
.chat-toast span { color: var(--g7); font-size: .86rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.chat-toast-zu { position: absolute; top: 6px; right: 6px; border: none; background: transparent; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--g6); }
.chat-toast.weg { opacity: 0; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-seite { border-right: none; border-bottom: 1px solid var(--g2); max-height: 42vh; }
  .chat-haupt { height: 72vh; }
  .chat-blase { max-width: 88%; }
}
/* eigenes Fenster bzw. als App: ohne Kopfzeile der Zeiterfassung, volle Höhe */
.chat-fenster .kopf, .chat-fenster .unternav { display: none; }
.chat-fenster main.breit { padding: 0; }
.chat-fenster .chat { height: 100vh; border: none; border-radius: 0; }

/* ---------- Kommission öffnen (ab 2.10.0) ---------- */
.ka-ordner { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--g6); }
.ka-ordner:first-of-type { margin-top: 6px; }
.ka-dateien { list-style: none; margin: 0; padding: 0; }
.ka-datei { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.ka-datei:last-child { border-bottom: 0; }
.ka-endung { flex: none; width: 42px; height: 42px; border-radius: 7px; background: var(--g1); color: var(--g6); font-size: .64rem; font-weight: 700; letter-spacing: .04em; display: grid; place-items: center; }
.ka-endung.pdf { background: var(--f-fbe9e7); color: var(--rot); }
.ka-endung.bild { background: var(--f-e8f0fb); color: var(--f-2a5a9c); }
.ka-name { flex: 1; min-width: 0; }
.ka-name > a { font-weight: 600; overflow-wrap: anywhere; }
.ka-name .unter { display: block; color: var(--g6); font-size: .82rem; }
.ka-knoepfe { flex: none; display: flex; gap: 4px; align-items: center; }
.ka-kunde { margin-top: 12px; }
.ka-fortschritt .balken { margin-top: 4px; }
.kennzahl .ka-prozent { font-size: .95rem; font-weight: 600; color: var(--g6); }
.kennzahl.rot .balken i { background: var(--rot); }
.kennzahl.gruen .balken i { background: var(--gruen); }
.kennzahl.gelb .balken i { background: var(--gelb-d); }
.unter.ka-rot, .ka-rot { color: var(--rot); }
.unter.ka-gelb { color: var(--gelb-d); }
a.still { color: inherit; text-decoration: none; }
a.still:hover { text-decoration: underline; }
/* ab 2.14.0: Kommission überall anklickbar – unauffällig gepunktet, beim Darüberfahren gelb */
a.komm-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--g6); }
a.komm-link:hover { border-bottom: 1px solid var(--gelb-d); }

/* ---------- Vermerk-Fähnchen, Kommissions-Chat, Kategorien (ab 2.11.0) ---------- */
.kat { --kat: var(--f-69797e); display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; line-height: 1.2; padding: 2px 8px 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--kat) 14%, var(--weiss)); border: 1px solid color-mix(in srgb, var(--kat) 45%, var(--weiss)); color: var(--anthrazit); white-space: nowrap; }
.kat::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--kat); flex: none; }
.fahne-knopf { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--g3); background: var(--weiss); color: var(--anthrazit); font: inherit; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.16); cursor: pointer; }
.fahne-knopf:hover { border-color: var(--gelb-d); }
.fahne-knopf.an { background: var(--gelb); border-color: var(--gelb-d); }
.fahne-knopf .chip { font-size: .66rem; }
@media (max-width: 640px) { .fahne-knopf { left: 10px; bottom: 10px; padding: 8px 11px; } .fahne-knopf .fk-text, .fahne-knopf .chip { display: none; } }
@media print { .fahne-knopf, .fahnen-ebene, .fahne-dlg, .fahne-toast { display: none !important; } }
.chat-fenster .fahne-knopf { display: none; }
/* ab 2.12.1: schmale Lasche am linken Rand – verdeckt keine Knöpfe mehr; „Vermerk“ erst bei Zeiger, Fokus oder im Modus */
.fahne-knopf { left: 0; bottom: 18px; padding: 9px 10px 9px 9px; border-left: 0; border-radius: 0 999px 999px 0; }
.fahne-knopf .fk-text, .fahne-knopf .chip { display: none; }
.fahne-knopf:hover .fk-text, .fahne-knopf:focus-visible .fk-text, .fahne-knopf.an .fk-text { display: inline; }
.fahne-knopf:hover .chip, .fahne-knopf:focus-visible .chip, .fahne-knopf.an .chip { display: inline-block; }
@media (max-width: 640px) { .fahne-knopf { left: 0; bottom: 10px; padding: 8px 9px 8px 8px; } }
html.fahne-modus, html.fahne-modus * { cursor: crosshair !important; }
.fahne-hover { outline: 2px dashed var(--gelb-d) !important; outline-offset: 2px; background-color: color-mix(in srgb, var(--gelb) 10%, transparent); }
.fahne-gesucht { outline: 3px solid var(--gelb) !important; outline-offset: 2px; transition: outline-color .4s; }
.fahne-cursor { position: fixed; z-index: 120; width: 22px; height: 26px; pointer-events: none; transform: translate(-3px, -100%); }
.fahnen-ebene { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 70; }
.fahne-marke { position: absolute; width: 22px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-3px, -100%); filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.fahne-marke svg, .fahne-cursor svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fahne-marke .stange, .fahne-cursor .stange { stroke: var(--anthrazit); stroke-width: 2; stroke-linecap: round; fill: none; }
.fahne-marke .tuch, .fahne-cursor .tuch { fill: var(--f-d13438); stroke: var(--f-8f1d20); stroke-width: 1; }
.fahne-marke.eigen .tuch { fill: var(--gelb); stroke: var(--gelb-d); }
.fahne-marke.erledigt .tuch { fill: var(--f-498205); stroke: var(--f-2f5503); }
.fahne-marke.neu { animation: fahne-wehen .9s ease-in-out infinite alternate; }
@keyframes fahne-wehen { from { transform: translate(-3px, -100%) rotate(-4deg); } to { transform: translate(-3px, -100%) rotate(4deg); } }
.fahne-marke:focus-visible { outline: 2px solid var(--gelb-d); outline-offset: 2px; }
.fahne-blase { position: absolute; z-index: 75; width: min(340px, calc(100vw - 24px)); background: var(--weiss); border: 1px solid var(--g3); border-left: 4px solid var(--f-d13438); border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: .9rem; }
.fb-kopf { margin-bottom: 4px; }
.fb-kat { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.fb-kat:empty { display: none; }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.fb-hinweis { color: var(--gelb-d); font-size: .82rem; margin: 4px 0; }
.fb-erledigt { color: var(--f-2f5503); font-size: .84rem; margin: 4px 0; }
.fb-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.fb-knoepfe .fb-zu { margin-left: auto; }
.fahne-dlg { position: fixed; z-index: 110; width: min(380px, calc(100vw - 16px)); background: var(--weiss); border: 1px solid var(--g3); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 18px 48px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 16px); overflow-y: auto; }
.fahne-dlg h2 { margin: 0; font-size: 1.05rem; }
.fahne-dlg label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g6); }
.fahne-dlg select, .fahne-dlg textarea { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.fahne-dlg textarea { resize: vertical; min-height: 64px; }
.fd-ort { margin: 0; overflow-wrap: anywhere; }
.fd-kat-titel { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g6); }
.fd-fehler { color: var(--rot); margin: 0; font-size: .86rem; }
.fd-fehler:empty { display: none; }
.kat-picker { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.kat-picker input[type=search], .kat-suche { width: 100%; }
.kat-liste { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; padding: 2px; }
.kat-zeile { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 4px; text-transform: none; letter-spacing: 0; color: var(--anthrazit); font-size: .9rem; }
.kat-zeile.vorschlag { background: var(--f-fbf6df); }
.kat-zeile[hidden] { display: none; }
.fahne-toast { position: fixed; left: 16px; bottom: 66px; z-index: 115; max-width: min(460px, calc(100vw - 32px)); background: var(--blase); color: #fff; border-radius: var(--radius); padding: 9px 12px; box-shadow: 0 10px 26px rgba(0,0,0,.25); font-size: .9rem; }
.fahne-toast a { color: var(--gelb); }
.fahne-toast[hidden] { display: none; }
/* im Chat: Nachricht mit Fähnchen */
.chat-n.fahne .chat-blase { border-left: 4px solid var(--f-d13438); }
.chat-n.fahne-erledigt .chat-blase { border-left-color: var(--f-498205); }
.cf-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .84rem; margin-bottom: 2px; }
.cf-ort { display: block; font-size: .84rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.cf-fuss { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.cf-erledigt { color: var(--f-2f5503); font-size: .82rem; }
.chat-vermerke-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--g2); text-decoration: none; color: var(--anthrazit); font-weight: 600; }
.chat-vermerke-link:hover { background: var(--g1); }
.chat-symbol.chat-kommission { background: var(--f-e8f0fb); color: var(--f-2a5a9c); }
/* Chat zur Kommission auf deren Seite */
.ka-chat-innen { display: flex; flex-direction: column; border: 1px solid var(--g2); border-radius: var(--radius); overflow: hidden; position: relative; }
.ka-chat-innen .chat-verlauf { max-height: 420px; min-height: 140px; }
.ka-chat-innen .chat-eingabe { padding: 8px 10px 10px; }
.ka-chat-innen .chat-blase { max-width: 88%; }
.ka-kategorien { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ka-kat-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.kat-wahl { position: relative; }
.kat-wahl > summary { list-style: none; }
.kat-wahl > summary::-webkit-details-marker { display: none; }
.kat-wahl[open] > .kat-form { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: min(320px, calc(100vw - 32px)); background: var(--weiss); border: 1px solid var(--g3); border-radius: var(--radius); padding: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 8px; }
.ka-liste-kat { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
/* Übersicht „Vermerke im Chat“ */
.fahnen-liste { list-style: none; margin: 0; padding: 0; }
.fahnen-alt-kopf { margin: 22px 0 8px; font-size: 1.05rem; }
/* ab 2.12.0: E-Mail über Microsoft 365 */
.btn.laeuft { opacity: .65; cursor: progress; }
.m365-status { list-style: none; margin: 8px 0 10px; padding: 0; font-size: .9rem; }
.m365-status li { margin: 2px 0; }
.m365-status code { font-size: .8rem; }
.m365-vorschau { width: 100%; height: 280px; border: 1px solid var(--linie, var(--f-dddddd)); border-radius: 8px; background: #fff; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.zahlmarke.vermerk-zahl { background: var(--gelb, var(--f-ffc400)); color: var(--auf-gelb); }
.fahnen-zeile { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--linie); border-left: 4px solid var(--f-d13438); margin-bottom: 6px; }
.fahnen-zeile.erledigt { border-left-color: var(--f-498205); opacity: .8; }
.fahnen-zeile.fuer-mich { background: var(--f-fffbea); }
.fz-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.fz-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 6px; }
.fz-fuss { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ab 2.12.1: Leistungsnachweis bearbeiten – Prozent zählt nur bei angehakten Tagen; Änderungen sichtbar */
.auswahl-tag:has(input[name=b]:not(:checked)) .pz { opacity: .45; }
.pz-alt { margin-left: 6px; white-space: nowrap; }
#auswahl-aenderung { margin-right: 8px; }
#auswahl-aenderung.nichts { color: var(--f-9a6b00); font-weight: 600; }

/* ---------- ab 2.15.0: Meine Zeiten, Woche und Monatsübersicht am Handy ---------- */
/* Die Leiste rechts im Seitenkopf (Filter, Monat blättern, Ansicht) bricht um statt die Seite breiter zu
   machen; die Zeilen der Tage rücken zusammen, damit „Bearbeiten“ im Bild bleibt. */
@media (max-width: 640px) {
  .seitenkopf.ansichtkopf { align-items: stretch; min-height: 0; }
  .ansichtkopf h1 { white-space: normal; }
  .ansichtkopf .ak-unter { white-space: normal; height: auto; }
  .ansichtkopf .ak-steuer { flex: 1 1 100%; min-width: 0; justify-content: flex-start; gap: 8px; }
  .ansichtkopf .ak-steuer > * { max-width: 100%; }
  .ansichtkopf .ak-steuer select { max-width: 100%; }
  .ansichtkopf .ak-nav { flex: 1 1 100%; justify-content: space-between; }
  .ansichtkopf .ak-zeitraum { min-width: 0; flex: 1 1 auto; }
  .tag-kopf { flex-wrap: wrap; gap: 4px 8px; }
  .tag .tab td { padding: 7px 4px; }
  .tag .tab td.zeitspalte { width: 62px; white-space: normal; }
  .tag .tab td.voll { overflow-wrap: anywhere; }
  .tag .tab td.aktion .btn, .tag .tab td.aktion .chip { padding-left: 7px; padding-right: 7px; }
}

/* ---------- ab 2.15.0: Schnellsuche im Kopf ---------- */
/* Im Kopf steht nur die Lupe (Strg+K) – so bleibt das Menü einzeilig. Das Feld klappt darüber auf und
   verschiebt nichts; am Handy bekommt es eine eigene Zeile unter dem Menü. */
.kopf-suche { position: relative; display: flex; align-items: center; }
.kopf-suche .suche-knopf { display: inline-flex; align-items: center; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--g2); border-radius: 4px; padding: 6px 8px; cursor: pointer; line-height: 0; }
.kopf-suche .suche-knopf:hover { border-color: var(--gelb); color: var(--weiss); }
.kopf-suche input { display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(360px, 80vw); min-height: 34px; height: 34px; padding: 4px 12px; font-size: .95rem;
  border-radius: 4px; border: 2px solid var(--gelb); background: var(--weiss); color: var(--anthrazit); z-index: 81; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.kopf-suche.offen input { display: block; }
.kopf-suche.offen .suche-knopf { visibility: hidden; }
.suche-liste { position: absolute; top: calc(100% + 14px); right: 0; width: min(440px, 92vw); max-height: 70vh; overflow-y: auto; background: var(--weiss); color: var(--anthrazit); border: 1px solid var(--g3); border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.22); z-index: 80; padding: 4px 0; }
.suche-liste .sl-art { padding: 7px 12px 3px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--g6); font-weight: 600; }
.suche-liste a { display: block; padding: 6px 12px 6px 10px; text-decoration: none; color: inherit; border-left: 4px solid var(--kf, transparent); }
.suche-liste a b { font-weight: 600; }
.suche-liste a span { display: block; font-size: .82rem; color: var(--g6); }
.suche-liste a:hover, .suche-liste a.aktiv { background: var(--gelb-h); }
.suche-liste .sl-leer { padding: 10px 12px; color: var(--g6); font-size: .9rem; }
@media (max-width: 900px) {
  .kopf-suche.offen { flex: 1 1 100%; order: 5; padding-bottom: 8px; }
  .kopf-suche.offen .suche-knopf { display: none; }
  .kopf-suche.offen input { position: static; transform: none; width: 100%; box-shadow: none; }
  .kopf-suche.offen .suche-liste { left: 0; right: 0; width: auto; top: calc(100% - 2px); }
}
@media print { .kopf-suche { display: none !important; } }

/* ---------- ab 2.15.0: Hinweise auf fehlende Zeiten (Stempel-Seite) ---------- */
.hinweis-karte { border-left: 3px solid var(--gelb-d); }
.hinweis-tage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 18px; }
.hinweis-tage li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .93rem; }
.hinweis-tage li b { flex: 0 0 76px; }
.hinweis-tage li span { flex: 1 1 auto; color: var(--g7, var(--g6)); }

/* ab 2.15.0: „Mit Microsoft anmelden“ unter dem Anmeldeformular */
.ms-anmeldung { padding: 14px 24px 22px; border-top: 1px solid var(--g2); display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.ms-anmeldung .btn { justify-content: center; text-align: center; }
.ms-anmeldung p { margin: 0; }

/* ---------- ab 2.15.0: Vorschläge aus Teams ---------- */
.tv .tv-titel { margin: 0 0 10px; font-size: 1.02rem; }
.tv .tv-form .felder { grid-template-columns: minmax(200px, 2fr) minmax(150px, 1fr) minmax(110px, auto) minmax(110px, auto); }
.tv .tv-knoepfe { margin-top: 10px; align-items: center; }
.tv .tv-weg { margin-left: auto; }
.tv .hinweis { margin-bottom: 12px; }
@media (max-width: 760px) {
  .tv .tv-form .felder { grid-template-columns: 1fr 1fr; }
  .tv .tv-form .tv-komm { grid-column: 1 / -1; }
}

/* ---------- ab 2.15.0: Reisekosten (Karte auf der Kommission) ---------- */
/* Die Karte steht mal breit, mal in einer halben Spalte, mal am Handy: Wird sie für die Tabelle zu schmal,
   steht je Eintrag ein Block (Datum · Was · Menge · Knopf) – nach der Breite der Karte, nicht des Fensters. */
#reise { container: reise / inline-size; }
.reise-tab .reise-was { min-width: 150px; }
.reise-tab .reise-akt { white-space: nowrap; width: 1%; }
.reise-tab .reise-akt form { display: inline; }
@container reise (max-width: 480px) {
  .reise-tab, .reise-tab tbody { display: block; }
  .reise-tab thead { display: none; }
  .reise-tab tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 2px; border-bottom: 1px solid var(--g2); }
  .reise-tab td { display: block; padding: 0; border: 0; text-align: left; }
  .reise-tab > tbody > tr > td { background: none; }
  .reise-tab .reise-was { grid-column: 1 / -1; min-width: 0; font-weight: 600; }
  .reise-tab .reise-akt { width: auto; text-align: right; }
}
/* mit „Wer“ und „für die Rechnung“ (Verwaltung) braucht die Tabelle mehr Platz */
@container reise (max-width: 760px) {
  .reise-alle, .reise-alle tbody { display: block; }
  .reise-alle thead { display: none; }
  .reise-alle tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 2px; border-bottom: 1px solid var(--g2); }
  .reise-alle td { display: block; padding: 0; border: 0; text-align: left; }
  .reise-alle > tbody > tr > td { background: none; }
  .reise-alle .reise-was { grid-column: 1 / -1; min-width: 0; font-weight: 600; }
  .reise-alle .reise-wer, .reise-alle .reise-netto { text-align: right; }
  .reise-alle .reise-netto::before { content: "für die Rechnung "; color: var(--g6); font-size: .82rem; }
  .reise-alle .reise-akt { grid-column: 1 / -1; width: auto; text-align: right; }
  .reise-alle .reise-akt:empty { display: none; }
}

/* ---------- ab 2.16.0: Monatsübersicht – je Spalte Zeit (schmal) und Beschreibung unter einer Überschrift ---------- */
.ueb-tab.mit-texten thead th.ueb-sp { min-width: 0; }
.ueb-tab.mit-texten td.ueb-zt { border-right: 1px dotted var(--g2); }
.ueb-tab.mit-texten input.ueb-z { min-width: 0; width: 52px; padding: 0 6px; }
.ueb-tab.mit-texten .ueb-fest { min-width: 52px; padding: 0 6px; }
.ueb-tab td.ueb-bt { min-width: 120px; max-width: 230px; padding: 0 8px; font-size: .76rem; color: var(--g7); cursor: pointer; vertical-align: middle; }
.ueb-tab td.ueb-bt span { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 19px; }
.ueb-tab td.ueb-bt.schmal, .ueb-tab td.ueb-text.schmal, .ueb-tab td.ueb-bt-leer.schmal { min-width: 14px; max-width: 14px; width: 14px; padding: 0; }
.ueb-tab td.ueb-bt.gewaehlt { box-shadow: inset 0 0 0 2px var(--gelb-d); color: var(--anthrazit); }
.ueb-tab tbody tr:hover td.ueb-bt { color: var(--anthrazit); }
.ueb-tab td.ueb-text-min { padding: 6px 6px; vertical-align: top; text-align: right; color: var(--g6); font-size: .78rem; }
.ueb-tab.mit-texten td.ueb-text { max-width: 230px; }
/* ab 2.35.0: Kopf der Monatsübersicht – Kommissionsnummer dünner und kleiner, Bezeichnung größer (bis zu zwei Zeilen) */
.ueb-tab thead th.ueb-sp b { font-weight: 500; font-size: .8rem; letter-spacing: .01em; }
.ueb-tab thead th.ueb-sp span.ueb-ktext { font-size: 1.02rem; font-weight: 500; color: var(--anthrazit); max-width: 340px; white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.2; margin: 1px 0 2px; } /* ab 2.37.0 noch größer */
/* Fuß: „Summe“ klebt unten; darunter Übertrag, geschätzter Aufwand und übriges Stundenbudget */
.ueb-tab tfoot tr.ueb-fzeile > td { position: static; }
.ueb-tab tfoot tr.ueb-fzeile > th.ueb-tag { position: sticky; left: 0; bottom: auto; }
.ueb-tab tfoot tr.ueb-fzeile > * { border-top: 1px solid var(--linie); border-bottom: none; background: var(--weiss); font-weight: 400; padding: 3px 10px; line-height: 19px; }
.ueb-tab tfoot tr.ueb-fuebertrag > * { border-top: 2px solid var(--linie-stark); }
.ueb-tab tfoot tr.ueb-fzeile th.ueb-tag { font-weight: 600; white-space: nowrap; }
.ueb-tab tfoot tr.ueb-fzeile th.ueb-tag small { font-weight: 400; color: var(--g6); }
.ueb-tab tfoot tr.ueb-fzeile td.zahl { padding: 3px 6px; }
.ueb-tab tfoot td.ueb-gruppe { text-align: center; border-right: 1px solid var(--linie-stark); white-space: nowrap; }
.ueb-tab tfoot td.ueb-gruppe small { color: var(--g6); font-weight: 400; }
.ueb-tab tfoot td.ueb-gruppe.ueberzogen { color: var(--rot); background: var(--rot-h); }
.ueb-tab tfoot td.ueb-gruppe.ueberzogen small { color: var(--rot); }
.ueb-legende { margin: 0; padding: 8px 18px 0; }
.ueb.mit-maske { grid-template-areas: "tab maske" "leg leg" "fuss fuss"; }
.ueb.mit-maske > .ueb-legende { grid-area: leg; }
@media (max-width: 1100px) { .ueb.mit-maske { grid-template-areas: "tab" "leg" "maske" "fuss"; } }
/* Neue Kommission (Monatsübersicht) und Bearbeiten durch den Anleger (Seite der Kommission) */
.ueb-komm-neu > summary, .ka-anleger > summary { cursor: pointer; }
.ueb-komm-neu[open] > summary, .ka-anleger[open] > summary { margin-bottom: 12px; }
.kf-aufwand { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kf-aufwand input { max-width: 180px; }
.kf-hinweis { margin-top: -4px; }
.ka-stufen span { display: block; }
.ka-rest b { color: inherit; }
/* ab 2.16.0: „‹ Zurück“ im Kopf – zur letzten anderen Seite (nie zweimal zurück nach dem Speichern) */
.kopf-zurueck { display: inline-flex; align-items: center; gap: 5px; color: var(--g2); text-decoration: none; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 4px 10px 4px 8px; font-size: .86rem; white-space: nowrap; line-height: 1.3; }
.kopf-zurueck:hover, .kopf-zurueck:focus-visible { border-color: var(--gelb); color: var(--weiss); }
.kopf-zurueck[hidden] { display: none; }
@media (max-width: 1500px) { .kopf-zurueck span { display: none; } .kopf-zurueck { padding: 4px 9px; font-size: 1rem; } }
/* ab 2.16.0: Leistungsnachweis – „Ist die Kommission damit abgeschlossen?“ */
.ln-frage-dlg { border: none; border-radius: 8px; padding: 20px 22px 18px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 14px 44px rgba(0,0,0,.35); color: var(--anthrazit); }
.ln-frage-dlg::backdrop { background: rgba(27,27,27,.5); }
.ln-frage-dlg h2 { margin: 0 0 6px; font-size: 1.15rem; }
.ln-frage-dlg > p { margin: 6px 0; }
.ln-frage { margin-top: 14px !important; }
.ln-frage-liste { display: grid; gap: 6px; margin: 10px 0 2px; max-height: 50vh; overflow: auto; padding: 2px; }
.ln-frage-knoepfe { margin-top: 16px; gap: 10px; flex-wrap: wrap; }

/* ab 2.16.0: „Mitteilen an …“ neben den Aktionsknöpfen – gewählte Personen bekommen nach der Aktion eine Aufgabe im Chat */
.mitteilen { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: .86rem; color: var(--g6); white-space: nowrap; vertical-align: middle; }
.mitteilen .mt-an { color: var(--g6); }
.mt-wahl { display: inline-block; user-select: none; font: inherit; font-size: .86rem; line-height: 1.3; border: 1px solid var(--g3); background: var(--weiss); color: var(--g7); border-radius: 4px; padding: 4px 9px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-wahl:hover, .mt-wahl:focus-visible { border-color: var(--gelb-d); color: var(--anthrazit); outline: none; }
.mitteilen.gewaehlt .mt-wahl { background: var(--gelb-h); border-color: var(--gelb-d); color: var(--anthrazit); font-weight: 600; }
.mitteilen.klein { margin-left: 6px; font-size: .8rem; gap: 4px; }
.mitteilen.klein .mt-wahl, .mitteilen.kurz .mt-wahl { font-size: .8rem; padding: 2px 7px; }
.mitteilen.kurz { margin-left: 4px; }
.mt-pop { position: absolute; z-index: 1300; background: var(--weiss); border: 1px solid var(--g3); border-radius: 8px; box-shadow: 0 12px 34px rgba(0,0,0,.2); padding: 12px 12px 10px; display: grid; gap: 8px; color: var(--anthrazit); }
.mt-kopf { font-weight: 600; font-size: .95rem; }
.mt-suche { width: 100%; }
.mt-liste { max-height: 260px; overflow: auto; display: grid; gap: 1px; font-size: .92rem; }
.mt-person { padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.mt-person:hover { background: var(--zeile-hover); }
.mt-person[hidden] { display: none; }
.mt-person small { margin-left: auto; padding-left: 10px; }
.mt-notiz { width: 100%; resize: vertical; min-height: 44px; font: inherit; font-size: .9rem; }
.mt-hinweis { margin: 0; font-size: .78rem; color: var(--g6); line-height: 1.35; }
.mt-fuss { display: flex; justify-content: flex-end; gap: 8px; }
form.mitteilen-allein { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
form.mitteilen-allein .mitteilen { margin-left: 2px; }
@media (max-width: 640px) {
  .mitteilen { margin-left: 0; margin-top: 6px; white-space: normal; flex-wrap: wrap; }
  .mt-wahl { max-width: 70vw; }
}

/* ab 2.16.0: Rechte in der Mitarbeiterliste – was er darf; zusätzlich gelb, entzogen durchgestrichen */
.rechte-zelle { line-height: 1.9; }
.rchip { display: inline-block; font-size: .78rem; line-height: 1.35; padding: 1px 7px; margin: 0 4px 2px 0; border-radius: 10px; background: var(--g1); border: 1px solid var(--g2); color: var(--g9); white-space: nowrap; }
.rchip.plus { background: var(--gelb-h); border-color: var(--gelb-d); color: var(--anthrazit); font-weight: 600; }
.rchip.weg { background: var(--rot-h); border-color: var(--f-e7b9b3); color: var(--rot); }
.rchip.weg s { text-decoration-thickness: 1.5px; }
.rechte-legende .rchip { margin: 0 2px; }

/* ab 2.16.0: Monatsübersicht speichert sofort – Zustände der Felder und der Zeiten rechts */
.ueb-tab input.ueb-z.nicht-gespeichert { background: var(--rot-h); color: var(--rot); font-weight: 700; box-shadow: inset 3px 0 0 var(--rot); }
.ueb-fuss #ueb-info.gespeichert { color: var(--gruen); }
.ueb-fuss #ueb-info.laeuft { color: var(--g6); }
.um-zeit.falsch { border-left-color: var(--rot); background: var(--rot-h); }
.um-fehler { color: var(--rot); }
.um-fehler:empty { display: none; }
.gruen-text { color: var(--gruen); }
/* ab 2.16.0: Zeilen speichern sich beim Verlassen (Meine Zeiten, Heute, Wochenraster) */
.woche-zeile.speichert { opacity: .6; }
.ie-still { margin-right: auto; }
.ie-leiste .ie-still + .btn { margin-left: 0; }
.ie-leiste .ie-fehler:empty { display: none; }

/* ab 2.17.0: Kennzeichen „adm“ (sehen nur Admin und Buchhaltung) wie „Beta“; Reiter „Fehler“ */
.chip.adm { background: var(--f-dde6f2); color: var(--f-284868); font-size: .66rem; padding: 1px 6px; margin-left: 2px; letter-spacing: .03em; }
.chip.adm, .chip.test { text-transform: none; } /* auch in Überschriften in Großbuchstaben: „adm“, „Beta“ */
/* ab 2.61.2: im Menü oben kleiner (jetzt an vier Punkten) – und zwischen 1101 und 1679 px beim vollsten Kopf ohne */
.nav a .chip.adm { font-size: .6rem; padding: 0 4px; margin-left: 1px; vertical-align: 1px; }
@media (min-width: 1101px) and (max-width: 1679px) { .kopf-innen:has(.firma-wechsel) .nav .chip.adm { display: none; } }
.zahlmarke.rot { background: var(--rot-f); color: #fff; }
.fehler-tab td { vertical-align: top; }
.fehler-tab .fehler-text { min-width: 280px; overflow-wrap: anywhere; }
.fehler-tab tr.fehler-fehler td:first-child { box-shadow: inset 3px 0 0 var(--rot); }
.fehler-tab tr.fehler-warnung td:first-child { box-shadow: inset 3px 0 0 var(--gelb); }
.fehler-details { margin-top: 4px; }
.fehler-details summary { cursor: pointer; font-size: .8rem; color: var(--g7); }
.fehler-details pre { margin: 4px 0 0; padding: 6px 8px; background: var(--g1); border-radius: 6px; font-size: .74rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
details.karte > summary { cursor: pointer; }

/* ---------- ab 2.19.0: Fähnchen zum Stundenkontingent ---------- */
.kont-karte { border-left: 3px solid var(--rot); }
.kont-zahl { white-space: nowrap; }
.kont-fahne { padding: 10px 0 12px; border-top: 1px solid var(--g2); }
.kont-fahne:first-of-type { border-top: 0; padding-top: 2px; }
.kont-kopf { display: flex; gap: 10px; align-items: flex-start; }
.kont-zeichen { font-size: 1.25rem; line-height: 1.3; }
.kont-text { margin-top: 2px; }
.kont-fahne.voll .kont-text b { color: var(--rot); }
.kont-antworten { margin: 10px 0 0 32px; }
.kont-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.kont-knoepfe label { cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; position: relative; }
.kont-knoepfe input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.kont-knoepfe label.kont-gruen { background: var(--gruen-f); border-color: var(--f-257348); color: #fff; }
.kont-knoepfe label:focus-within { outline: 2px solid var(--anthrazit); outline-offset: 2px; }
.kont-knoepfe label.gewaehlt { box-shadow: 0 0 0 2px var(--anthrazit); }
.kont-antworten:has(input[value="erledigt"]:checked) form[data-kont-art="erledigt"],
.kont-antworten:has(input[value="verlaengert"]:checked) form[data-kont-art="verlaengert"],
.kont-antworten:has(input[value="hilfe"]:checked) form[data-kont-art="hilfe"] { display: grid; }
.kont-form { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--g2); border-radius: 8px; background: var(--g1); display: grid; gap: 10px; max-width: 760px; }
.kont-form[hidden] { display: none; }
.kont-an { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.kont-an legend { padding: 0; margin-bottom: 4px; font-weight: 600; font-size: .9rem; }
.kont-an.fehlt legend { color: var(--rot); }
.kont-person { margin: 0; }
.kont-std label, .kont-notiz label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--anthrazit); }
.kont-std input { width: 7em; }
.kont-notiz input { width: 100%; }
.kont-info { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--g2); }
.kont-liste .chip.gelb { background: var(--gelb); color: var(--auf-gelb); }
@media (max-width: 640px) { .kont-antworten { margin-left: 0; } .kont-info { flex-direction: column; align-items: flex-start; } }

/* ---------- ab 2.19.0: „Meine To-dos“ und ausgegraute Zeilen im Archiv ---------- */
/* Menü: mit „Meine To-dos“ bleibt es zwischen 1101 und 1500 px einzeilig (engere Abstände) */
@media (min-width: 1101px) and (max-width: 1500px) { .kopf-innen { gap: 14px; } .nav a { padding: 7px 8px; font-size: .9rem; } .nav a .chip, .nav a .zahlmarke { margin-left: 2px; } }
.todo-tag { font-size: .95rem; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--anthrazit); display: flex; gap: 8px; align-items: baseline; }
.todo-tag:first-of-type { margin-top: 4px; }
.todo-kont { border-left-color: var(--rot); }
.tab tr.ausgegraut > td { color: var(--f-9a9a96); background: var(--g1); }
.tab tr.ausgegraut > td a, .tab tr.ausgegraut > td b, .tab tr.ausgegraut > td .unter { color: inherit; }
.tab tr.ausgegraut > td .chip, .tab tr.ausgegraut > td .kat { background: var(--g2); color: var(--f-9a9a96); border-color: var(--g3); }
.tab tr.ausgegraut > td .btn { background: transparent; color: var(--f-9a9a96); border-color: var(--g3); }
.tab tr.ausgegraut > td .kf { filter: grayscale(1); opacity: .5; }
.tab tr.ausgegraut:hover > td { color: var(--g6); }

/* ---------- ab 2.20.0: zweite Firma novoprint3D ---------- */
/* Knopf oben rechts: zur anderen Firma (bei Heger CAD nur für den, der hinein darf) */
.firma-wechsel { display: inline-block; padding: 4px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px;
  color: var(--weiss); text-decoration: none; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.firma-wechsel:hover { border-color: var(--gelb); background: rgba(255,255,255,.08); }
.firma-wechsel.sa { border-style: dashed; border-color: rgba(242,193,0,.6); } /* Beta: sieht nur der Superadmin (ohne Chip – der Kopf ist voll) */
@media (min-width: 1101px) and (max-width: 1500px) { .wer { gap: 8px; } .firma-wechsel { padding: 4px 8px; font-size: .82rem; } }
/* Wer den Knopf zur zweiten Firma hat, hat den vollsten Kopf (Admin): auf schmaleren Bildschirmen steht statt des Namens
   das Kürzel (Name im Tooltip), das Menü rückt zusammen – so bleibt alles in einer Zeile (ab 1366 px). Ab 2.61.2 bis
   2047 px (bis 2.61.1: 1750 px) – mit „adm“ an Team-Zeiten und Eingang brach das Menü sonst z. B. bei 1920 px um. */
.wer-kurz { display: none; }
@media (min-width: 1101px) and (max-width: 2047px) {
  .wer:has(.firma-wechsel) .wer-name { display: none; }
  .wer:has(.firma-wechsel) .wer-kurz { display: inline; }
  .kopf-innen:has(.firma-wechsel) { gap: 12px; padding: 0 16px; }
  .kopf-innen:has(.firma-wechsel) .nav a { padding: 7px 8px; }
  .kopf-innen:has(.firma-wechsel) .marke span { display: none; }
}
@media (min-width: 1101px) and (max-width: 1420px) {
  .kopf-innen:has(.firma-wechsel) { gap: 9px; padding: 0 12px; }
  .kopf-innen:has(.firma-wechsel) .nav a { padding: 7px 5px; font-size: .9rem; }
  .kopf-innen:has(.firma-wechsel) .wer { gap: 6px; }
  .kopf-innen:has(.firma-wechsel) .firma-wechsel { padding: 4px 6px; }
}
@media (min-width: 1101px) and (max-width: 1340px) {
  .kopf-innen:has(.firma-wechsel) { gap: 7px; padding: 0 10px; }
  .kopf-innen:has(.firma-wechsel) .nav a { padding: 7px 4px; font-size: .86rem; }
  .kopf-innen:has(.firma-wechsel) .nav .chip { display: none; } /* „Beta“/„adm“ – auf schmalen Bildschirmen ohne */
}
/* Eigener Look: Dunkelgrau var(--f-2b2b2b) und die Akzentfarbe aus den Einstellungen der zweiten Firma. Die Farben kommen
   als Variablen am <body> (--gelb, --gelb-d, --gelb-h, --auf-gelb) – alles, was sonst gelb ist, nimmt den Akzent. */
body.np { --anthrazit: var(--np-schrift); --g9: var(--np-g9); --kopf-bg: var(--np-kopf);
  --zeile-hover: color-mix(in srgb, var(--gelb) 9%, var(--weiss)); background: var(--f-f4f4f2); }
body.np .kopf { background: var(--np-kopf); background-image: none; border-bottom: 3px solid var(--gelb); }
body.np .np-marke { align-items: center; }
body.np .np-logo { display: block; height: 30px; width: auto; } /* Würfel auf weißer Kachel + Schriftzug, „3D“ als rote Kontur */
body.np .nav a.aktiv { background: color-mix(in srgb, var(--gelb) 22%, transparent); }
body.np .btn.gelb:hover { background: color-mix(in srgb, var(--gelb) 86%, #fff); }
body.np .blatt .feld-auf:hover, body.np .pos-lang-ansicht:hover, body.np .text-feld .text-ansicht:hover { background: color-mix(in srgb, var(--gelb) 8%, transparent); outline-color: color-mix(in srgb, var(--gelb) 55%, var(--f-bbbbbb)); }
body.np .fuss { color: var(--g6); }
.np-logo-probe { padding: 14px 16px; margin: 0 0 8px; background: #fff; border: 1px solid var(--g2); border-radius: var(--radius); }
.np-logo-probe img { display: block; width: 66mm; max-width: 100%; height: auto; }

/* ---------- ab 2.20.0: Darstellung wählen (Knopf im Kopf) ---------- */
.design-wahl { position: relative; }
.design-wahl > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 4px; color: var(--g2); }
.design-wahl > summary::-webkit-details-marker { display: none; }
.design-wahl > summary:hover, .design-wahl > summary:focus-visible, .design-wahl[open] > summary { border-color: var(--gelb); color: #fff; outline: none; }
.design-liste { position: absolute; right: 0; top: calc(100% + 12px); z-index: 90; min-width: 236px; margin: 0; padding: 6px; display: grid; gap: 2px;
  background: var(--kopf-bg); border: 1px solid rgba(255,255,255,.18); border-top: 2px solid var(--gelb); border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.design-liste button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 0; border-radius: 4px; background: none; white-space: nowrap;
  color: var(--g2); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.design-liste button:hover, .design-liste button:focus-visible { background: rgba(255,255,255,.09); color: #fff; border: 0; outline: none; }
.design-liste button.an { background: color-mix(in srgb, var(--gelb) 18%, transparent); color: #fff; box-shadow: inset 2px 0 0 var(--gelb); }
.design-liste small { margin-left: auto; padding-left: 14px; color: var(--g4); font-size: .74rem; }
/* Zwischen Handy und breitem Bildschirm (761–1100 px) steht das Menü voller Köpfe (mit „Verwaltung“) in einer eigenen
   Zeile unter Marke und Konto. Bisher zwängte es sich dazwischen (bis zu vier Zeilen) – mit den neuen Knöpfen rechts
   wären es noch mehr geworden. */
@media (min-width: 761px) and (max-width: 1100px) {
  .kopf-innen:has(.nav a[href="/verwaltung"]) { gap: 0 12px; padding: 5px 16px 3px; }
  .kopf-innen:has(.nav a[href="/verwaltung"]) .nav { order: 3; flex: 0 0 100%; margin-left: -8px; }
  .kopf-innen:has(.nav a[href="/verwaltung"]) .nav a { padding: 6px 9px; }
  .kopf-innen:has(.nav a[href="/verwaltung"]) .kopf-suche { margin-left: auto; }
  .kopf-innen:has(.nav a[href="/verwaltung"]):not(:has(.kopf-suche)) .wer { margin-left: auto; }
}
/* zweite Firma: breites Logo und vier Menüpunkte – bis 1000 px steht auch dort das Menü in der eigenen Zeile */
@media (min-width: 761px) and (max-width: 1000px) {
  body.np .kopf-innen { gap: 0 12px; padding: 5px 16px 3px; }
  body.np .kopf-innen .nav { order: 3; flex: 0 0 100%; margin-left: -8px; }
  body.np .kopf-innen .nav a { padding: 6px 9px; }
  body.np .kopf-innen .kopf-suche { margin-left: auto; }
  body.np .kopf-innen:not(:has(.kopf-suche)) .wer { margin-left: auto; }
}
/* Handy: mit dem Knopf zur anderen Firma wird die obere Zeile eng – ohne „Zeit“ neben der Marke und ohne „zu“ */
@media (max-width: 760px) {
  .kopf-innen:has(.firma-wechsel) .marke span, .firma-wechsel .fw-zu { display: none; }
  .nav a { flex: none; white-space: nowrap; } /* Menüpunkte einzeilig – die Zeile lässt sich seitlich schieben (bisher brach „Meine Zeiten“ um) */
  .firma-wechsel { padding: 4px 7px; font-size: .8rem; }
  .wer { gap: 7px; }
  .design-wahl { position: static; }
  .design-liste { left: 8px; right: 8px; top: auto; min-width: 0; margin-top: 6px; }
}
/* der zusätzliche Knopf braucht Platz: knapp über der Handy-Ansicht rückt der Kopf für alle etwas zusammen */
@media (min-width: 1101px) and (max-width: 1230px) { .kopf-innen { gap: 12px; padding: 0 14px; } .nav a { padding: 7px 8px; } .wer { gap: 7px; } }
/* Suchfeld und Trefferliste im Kopf folgen der Darstellung (der Kopf selbst bleibt, wie er ist) */
:root[data-design="dunkel"] .kopf-suche input, :root[data-design="dunkel"] .suche-liste { color-scheme: dark; }
:root[data-design="auto"] .kopf-suche input, :root[data-design="auto"] .suche-liste { color-scheme: light dark; }

/* ---------- ab 2.21.0: Adressbuch (Kunden und Lieferanten beider Firmen, jedes Feld speichert sofort) ---------- */
.adr-karte { padding-top: 12px; }
.adr-status { margin-left: auto; min-height: 1.2em; }
.adr-tab { font-size: .88rem; border-collapse: separate; border-spacing: 0; }
.adr-tab th { white-space: nowrap; }
.adr-tab th, .adr-tab td { padding: 2px 3px; vertical-align: middle; }
.adr-tab tr.adr-zeile > td > input[type=text], .adr-tab tr.adr-zeile > td > input[type=email] { width: 100%; min-width: 4.5em; border: 1px solid transparent;
  background: transparent; padding: 3px 5px; border-radius: 4px; font: inherit; color: inherit; box-shadow: none; }
.adr-tab tr.adr-zeile:hover > td > input[type=text], .adr-tab tr.adr-zeile:hover > td > input[type=email] { border-color: var(--g2); }
.adr-tab tr.adr-zeile > td > input[type=text]:focus, .adr-tab tr.adr-zeile > td > input[type=email]:focus { border-color: var(--g3); background: var(--weiss);
  outline: 2px solid var(--gelb); outline-offset: -1px; }
.adr-tab .adr-name { white-space: nowrap; }
.adr-tab .adr-name input { font-weight: 600; min-width: 12em; width: calc(100% - 2.6em); }
/* ab 2.49.3: feste Breite – bisher galt width: 100% (die Regel darüber war schwächer); mit der Farbmarke davor ragte
   das Feld samt ↗ und Marken (MUSTER, XRechnung, ⚠) in die Spalte Straße */
.adr-tab tr.adr-zeile > td.adr-name > input[type=text] { min-width: 12em; width: 16em; }
.adr-tab tr.adr-zeile > td > input.adr-str { min-width: 9em; }
.adr-tab tr.adr-zeile > td > input.adr-plz { min-width: 4.6em; width: 5.2em; }
.adr-tab tr.adr-zeile > td > input.adr-ort { min-width: 7em; }
.adr-tab tr.adr-zeile > td > input.adr-land { min-width: 2.8em; width: 3.2em; text-transform: uppercase; }
.adr-tab tr.adr-zeile > td > input.adr-mail { min-width: 10em; }
.adr-tab tr.adr-zeile > td > input.adr-tel { min-width: 7em; }
.adr-tab tr.adr-zeile > td > input.adr-ust { min-width: 7.5em; }
.adr-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.adr-paar input { min-width: 0; }
.adr-tab .adr-ap { white-space: nowrap; max-width: 10em; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; }
.adr-tab .adr-k { text-align: center; width: 3.6em; }
.adr-tab th.adr-k { font-weight: 500; font-size: .72rem; letter-spacing: .02em; }
.adr-tab .adr-firmen th { border-bottom: 0; padding-bottom: 0; }
.adr-tab .adr-firma { text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--gelb); }
.adr-tab .adr-firma.adr-np { border-bottom-color: var(--f-c8341b); color: var(--f-c8341b); }
.adr-tab td.adr-np { background: var(--g1); }
.adr-tab .adr-auf { width: 1.8em; padding: 0; }
/* ab 2.35.0: Kunden- und Lieferantennummer je Firma (hinter dem Kreuz) */
.adr-tab th.adr-nr { font-weight: 500; font-size: .72rem; letter-spacing: .02em; text-align: left; }
.adr-tab tr.adr-zeile > td.adr-nr > input[type=text] { min-width: 4.6em; width: 5.6em; font-variant-numeric: tabular-nums; }
.adr-tab tr.adr-zeile > td.adr-nr > input[disabled] { background: transparent; border-color: transparent; text-align: center; cursor: not-allowed; }
.adr-mehr-knopf { border: 0; background: none; cursor: pointer; color: var(--g6); font-size: .95rem; width: 1.8em; height: 1.8em; border-radius: 4px; }
.adr-mehr-knopf:hover, .adr-mehr-knopf:focus-visible { background: var(--g1); color: var(--anthrazit); }
/* ab 2.49.3: ↗ neben dem Namen öffnet die Seite des Kunden bzw. Lieferanten */
.adr-seite { display: inline-flex; align-items: center; justify-content: center; width: 1.8em; height: 1.8em; margin-left: 2px; border-radius: 4px;
  color: var(--g6); text-decoration: none; vertical-align: middle; font-size: .95rem; }
.adr-seite:hover, .adr-seite:focus-visible { background: var(--g1); color: var(--anthrazit); }
.adr-zeile.offen > td { background: var(--gelb-h); }
.adr-zeile.gesperrt input[type=text], .adr-zeile.gesperrt input[type=email] { color: var(--g6); }
.adr-mehr > td, .adr-mehr:hover > td { background: var(--weiss); padding: 10px 14px 16px 18px; border-bottom: 2px solid var(--g2); box-shadow: inset 3px 0 0 var(--gelb); }
.adr-mehr-innen .felder { gap: 8px 14px; }
.adr-mehr-innen h3 { font-size: .92rem; margin: 6px 0 6px; }
.adr-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px 28px; margin-bottom: 6px; }
.adr-spalten section { min-width: 0; }
.adr-privat { gap: 18px; margin: 4px 0; }
.adr-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: .85rem; }
.adr-doppelt { margin-bottom: 8px; }
.adr-doppelt > div + div { margin-top: 4px; }
.adr-warn { color: var(--gelb-d); margin-left: 3px; cursor: help; font-size: .9rem; }
.adr-neu td { padding-top: 8px; }
.adr-neu input[data-neu-name] { width: 100%; border: 1px dashed var(--g3); background: var(--weiss); padding: 4px 6px; border-radius: 4px; font: inherit; color: inherit; }
.adr-tab input.adr-ok { box-shadow: inset 0 0 0 2px var(--gruen); transition: box-shadow 1.2s ease-out; }
.adr-tab input.adr-fehler, .adr-tab select.adr-fehler, .adr-tab textarea.adr-fehler { border-color: var(--rot); background: var(--rot-h); }
.kontakte-tab { font-size: .86rem; }
.kontakte-tab td { padding: 2px 3px; }
.kontakte-tab input, .kontakte-tab select { width: 100%; min-width: 4em; }
.kontakte-tab td:first-child { width: 5.5em; }
.kontakte + .btn, .kontakte [data-kontakt-neu] { margin-top: 6px; }
@media (max-width: 760px) {
  .adr-spalten { grid-template-columns: 1fr; }
}

/* ab 2.21.0: Abrechnung → „Rechnung offen“: Knöpfe brechen um statt waagerecht zu scrollen */
.tab td.aktion.ln-offen { white-space: normal; min-width: 340px; }
.tab td.aktion.ln-offen > a, .tab td.aktion.ln-offen > form, .tab td.aktion.ln-offen > details { display: inline-block; margin: 2px 0 2px 4px; vertical-align: top; }
.tab td.aktion.ln-offen > details[open] { display: block; text-align: left; }

/* ab 2.21.0: Vorschläge aus Teams in den Tageslisten – Kalender hellblau (nur heute), Anruf grün (tatsächlich) */
tr.tv-zeile > td { background: var(--f-e3edf9); vertical-align: top; }
tr.tv-zeile.anruf > td { background: var(--gruen-h); }
tr.tv-zeile .tv-art { background: transparent; border: 1px solid currentColor; color: var(--f-1f5e99); margin-right: 4px; }
tr.tv-zeile.anruf .tv-art { color: var(--f-1d6b40); }
.tv-inline { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; }
.tv-inline select { min-width: 200px; max-width: 360px; flex: 1 1 220px; }
tr.tv-zeile td.aktion { white-space: nowrap; }
tr.tv-zeile td.aktion form.inline { display: inline-block; }
.tv-legende { margin-top: 8px; }
.tv-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; background: var(--f-e3edf9); border: 1px solid var(--f-1f5e99); }
.tv-punkt.anruf { background: var(--gruen-h); border-color: var(--f-1d6b40); }


/* ab 2.22.0: „Beta“ anklicken (Superadmin im Firmennetz) → Einstellungen → Neue Funktionen */
.beta-klick .chip.test[data-freigabe] { cursor: pointer; }
.beta-klick .chip.test[data-freigabe]:hover { box-shadow: inset 0 0 0 1.5px var(--auf-gelb); }
.beta-band { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 6px 12px; border: 1px dashed rgba(242,193,0,.7); border-radius: 6px; background: var(--f-f8f4e6); color: var(--f-7a5f00); font-size: .84rem; }
.beta-band .chip.test { margin-left: 0; }
table.funktionen tr, #nur-superadmin { scroll-margin-top: 150px; }
table.funktionen tr:target > td { background: var(--gelb-h); }
table.funktionen tr:target > td:first-child { box-shadow: inset 3px 0 0 var(--gelb); }
#nur-superadmin { margin-top: 16px; padding: 10px 12px 2px; border-top: 1px solid var(--g2); }
#nur-superadmin:target { background: var(--gelb-h); border-radius: 6px; }
#nur-superadmin h3 { margin: 0 0 4px; font-size: .95rem; }
.firma-wechsel:has(.chip.test) { position: relative; }
.firma-wechsel .chip.test { position: absolute; top: -8px; right: -8px; margin: 0; padding: 0 4px; font-size: .55rem; line-height: 1.4; } /* als Zeichen an der Ecke – der Kopf ist voll */
.kopf-suche > .chip.test { position: absolute; top: -7px; right: -10px; margin: 0; padding: 0 4px; font-size: .58rem; pointer-events: auto; }
.beta-rahmen { outline: 1.5px dashed rgba(242,193,0,.8); outline-offset: 4px; border-radius: 3px; }
.adr-tab td.adr-name:has(> .chip.test) input { width: calc(100% - 6.2em); }
.adr-tab td.adr-name > .chip.test { margin-left: 4px; }
/* „Beta“ bleibt im Kopf sichtbar: wo der Kopf eng wird (sonst ohne Kennzeichen), als kleines Zeichen an der Ecke */
@media (min-width: 1101px) and (max-width: 1340px) {
  .kopf-innen:has(.firma-wechsel) .nav a:has(.chip.test) { position: relative; }
  .kopf-innen:has(.firma-wechsel) .nav .chip.test { display: inline-block; position: absolute; top: -7px; right: -4px; margin: 0; padding: 0 3px; font-size: .52rem; line-height: 1.4; }
}
@media (max-width: 760px) { .wer .firma-wechsel .chip.test { display: inline-block; } } /* sonst blendet „.wer span“ es aus */
/* ab 2.23.0: „SA“ – sieht nur der Superadmin (Beta sehen alle Admins) */
.chip.sa { background: transparent; color: var(--g7); border: 1px solid var(--gelb-d); font-size: .66rem; font-weight: 700; padding: 0 5px; margin-left: 2px; letter-spacing: .02em; text-transform: none; }
.beta-klick .chip.sa[data-freigabe] { cursor: pointer; }
.adr-tab td.adr-name:has(> .chip) input { width: calc(100% - 6.2em); }
/* Ausdruck: keine Kennzeichen */
@media print { .chip.test, .chip.sa, .beta-band { display: none !important; } .beta-rahmen { outline: none; } }

/* ---------- ab 2.25.0 (novoprint3D): Anfragen von novoprint3d.de und Preisberechnung ---------- */
.np-status { border: 1px solid var(--g2); border-left: 4px solid var(--gruen); background: var(--weiss); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.np-status.gelb { border-left-color: var(--gelb-d); background: var(--gelb-h); }
.np-status.rot { border-left-color: var(--rot); background: var(--rot-h); }
.np-status.grau { border-left-color: var(--g3); }
.np-liste tr.np-neu td { background: var(--gelb-h); }
.np-liste tr.np-neu td:first-child { box-shadow: inset 4px 0 0 var(--gelb-d); }
.np-liste td.nw, .np-tab td.nw { white-space: nowrap; }
.np-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
.np-dl dt { color: var(--g6); font-size: .85rem; }
.np-dl dd { margin: 0; overflow-wrap: anywhere; }
.np-nachricht { white-space: pre-wrap; overflow-wrap: anywhere; }
.np-mail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; background: var(--g1); padding: 12px; border-radius: var(--radius); max-height: 520px; overflow: auto; }
.np-sha { font-family: ui-monospace, Consolas, monospace; }
.np-pruefwert { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.np-pruefwert code { font-size: .8rem; overflow-wrap: anywhere; background: var(--g1); padding: 4px 6px; border-radius: 4px; }
.np-karte > summary { cursor: pointer; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.np-karte-titel { font-weight: 700; }
.np-kurz { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .92rem; }
.np-karte-innen { margin-top: 12px; }
.np-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
.np-feld { margin: 0; }
.np-feld label { font-size: .85rem; }
.np-eingabe { display: flex; align-items: stretch; }
.np-eingabe input { flex: 1; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.np-einheit { display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--g3); border-left: none; background: var(--g1); color: var(--g7); font-size: .8rem; border-radius: 0 4px 4px 0; white-space: nowrap; }
.np-hilfe { display: block; color: var(--g6); font-size: .75rem; margin-top: 2px; }
.np-fehlt input { border-color: var(--rot); background: var(--f-fdecec); }
.np-fehlt-text { color: var(--rot); }
.np-unter { margin: 16px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g6); }
.np-ergs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin: 8px 0; }
.np-erg { border: 1px solid var(--g2); border-radius: var(--radius); padding: 8px 10px; background: var(--g1); min-width: 0; }
.np-erg-fehlt { border-color: var(--rot-h); background: var(--weiss); }
.np-erg-kopf { display: flex; gap: 8px; align-items: baseline; }
.np-sym { font-weight: 700; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.np-erg-name { color: var(--g6); font-size: .8rem; }
.np-erg-wert { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-formel { font-size: .76rem; color: var(--g7); margin-top: 4px; overflow-wrap: anywhere; }
.np-formel > span { display: block; }
.np-regel { color: var(--g6); font-style: italic; }
.np-mit { font-variant-numeric: tabular-nums; }
.np-fehlt-liste { color: var(--rot); }
.np-weg { margin-top: 12px; color: var(--rot); }
.np-leiste { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0 18px; box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.np-version { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.np-version input { width: 260px; max-width: 100%; }
.np-tab th, .np-tab td.zahl { white-space: nowrap; }
.np-check .unter { display: block; color: var(--g6); font-size: .82rem; font-weight: 400; margin-top: 2px; }
.np-klein { font-size: .82rem; max-width: 620px; margin: 8px 0; }
tr.np-anteile > td { background: var(--g1); padding-top: 4px; }
tr.np-warn td { background: var(--gelb-h); }
.np-spalten { columns: 2 320px; }
.np-check { align-items: flex-start; }
.unter.rot, span.rot, b.rot { color: var(--rot); }
@media (max-width: 700px) { .np-felder, .np-ergs { grid-template-columns: 1fr; } .np-kurz { margin-left: 0; } }
/* ab 2.26.0: Reiter je Drucker, Schätzwerte, Vergleich je Drucker */
.np-reiter { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--g2); position: sticky; top: var(--oben, 0px); z-index: 4; background: var(--papier); padding-top: 6px; }
.np-reiter-seite details.np-karte, .np-reiter-seite .np-neu, .np-reiter-seite { scroll-margin-top: 58px; } /* ab 2.26.1: unter den Reitern */
@media (max-width: 760px) { .np-reiter { position: static; } .np-reiter-seite details.np-karte, .np-reiter-seite .np-neu, .np-reiter-seite { scroll-margin-top: 0; } }
.np-reiter-knopf { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--g3); background: var(--weiss); color: var(--anthrazit); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.np-reiter-knopf:hover { border-color: var(--g6); }
.np-reiter-knopf.an { background: var(--knopf); color: var(--auf-dunkel); border-color: var(--knopf); }
.np-reiter-knopf.np-reiter-fehlt:not(.an) { border-color: var(--rot); }
.np-reiter-info { font-size: .72rem; opacity: .75; font-variant-numeric: tabular-nums; }
.np-reiter-sch { font-size: .72rem; font-weight: 700; color: var(--np-sch); background: var(--np-sch-h); border-radius: 99px; padding: 0 6px; }
.np-reiter-seite { margin-bottom: 18px; }
.np-reiter-seite[hidden] { display: none; }
.np-drucker-kopf { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.np-drucker-kopf h3 { margin: 0; }
.np-drucker-kopf .np-kurz { margin-left: auto; }
.np-geschaetzt input, .np-geschaetzt select { border-color: var(--np-sch-r); background: var(--np-sch-h); }
.np-geschaetzt .np-einheit { border-color: var(--np-sch-r); }
.np-sch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 3px; }
.np-sch-marke { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--np-sch); background: var(--np-sch-h); border: 1px solid var(--np-sch-r); border-radius: 4px; padding: 0 5px; }
.np-sch-quelle { font-size: .72rem; color: var(--g6); flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.np-sch-ok { font: inherit; font-size: .72rem; border: 1px solid var(--np-sch-r); background: var(--weiss); color: var(--np-sch); border-radius: 4px; padding: 0 6px; cursor: pointer; }
.np-sch-ok:hover { background: var(--np-sch-h); }
.np-sch-weg .np-sch-marke { color: var(--gruen); border-color: var(--gruen); background: var(--gruen-h); }
.np-sch-leiste { font-size: .82rem; background: var(--np-sch-h); border: 1px solid var(--np-sch-r); border-radius: var(--radius); padding: 6px 10px; margin: 0 0 10px; }
.chip.np-chip-sch { background: var(--np-sch-h); color: var(--np-sch); }
.np-sch-text { color: var(--np-sch); }
.kennzahl.np-kennzahl-sch { box-shadow: inset 4px 0 0 var(--np-sch-r); }
.np-links { text-align: left !important; }
tr.np-gruppe th { background: var(--g1); text-align: left; font-size: .86rem; padding-top: 10px; }
.np-jedrucker tr.np-bester td { background: var(--gruen-h); }
.np-jedrucker tr.np-grau td { color: var(--g6); }
.np-kennungen { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; margin: 6px 0; }
.np-klein-tab td, .np-klein-tab th { font-size: .82rem; }
details.aufklapp.np-block { display: block; }
details.aufklapp.np-block:not(.karte) { margin-top: 10px; }
.np-tab tr.np-grau td { color: var(--g6); }
.np-ist { margin: 4px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--g2); }
.np-ist h3 { margin: 0 0 10px; }
.np-hersteller { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--g2); }
.np-hersteller-hinweis { margin-bottom: 12px; }
.np-hersteller-liste { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0; }
.np-hersteller-liste .check { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--g2); border-radius: 99px; padding: 3px 10px 3px 8px; font-size: .86rem; background: var(--weiss); cursor: pointer; }
.np-hersteller-liste .check:has(input:checked:not(:disabled)) { border-color: var(--knopf); box-shadow: inset 0 0 0 1px var(--knopf); }
.np-hersteller-liste .check.np-hw-da { color: var(--g6); background: var(--g1); cursor: default; }
/* ab 2.27.0: Slicer-Datei lesen, Entfernen mit Verweisen, Schätzwerte auffrischen, Lager, Wartung, Preise je Drucker */
.np-slicer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 8px 10px; border: 1px dashed var(--g3); border-radius: var(--radius); background: var(--papier); }
.np-slicer-knopf { position: relative; overflow: hidden; cursor: pointer; }
.np-slicer-knopf input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.np-slicer [data-np-slicer-text] { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.np-slicer-liste { flex-basis: 100%; overflow-x: auto; }
.np-aus-slicer { border-color: var(--gruen) !important; box-shadow: inset 0 0 0 1px var(--gruen); }
.np-warn-text { color: var(--rot); }
.np-weg .unter.np-warn-text { display: block; margin-top: 2px; font-size: .82rem; }
.np-auffrischen { border: 1px solid var(--np-sch-r); background: var(--np-sch-h); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0 12px; }
.np-auffrischen .btn { margin-top: 6px; }
.np-stand { margin: 4px 0 8px; }
.np-tab tr.np-je-drucker td { border-top-style: dashed; background: var(--papier); }
.np-lager-aktionen { gap: 12px 18px; margin: 8px 0; }
.np-lager-aktionen form { min-width: 0; }
input[type=date].np-datum-klein { width: 9.8em; padding: 3px 6px; font-size: .82rem; display: inline-block; vertical-align: middle; }
.tab td.aktion form.inline:has(.np-datum-klein) { white-space: nowrap; }
.np-wartung-liste { list-style: none; padding: 0; }
@media print { .np-reiter { display: none; } .np-reiter-seite[hidden] { display: block; } .np-slicer { display: none; } }

/* ab 2.28.0: Spulen und Kanister, Rüststand, Trocknungskurven */
.np-ruest { border-top: 1px solid var(--g2); padding-top: 10px; margin-top: 10px; }
.np-ruest:first-of-type { border-top: 0; margin-top: 0; }
.np-ruest-aktionen { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 8px 0 4px; }
.np-einlegen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.np-einlegen select { max-width: 420px; }
.np-einlegen .np-platz { width: 170px; }
.chip.np-kl-4 { background: var(--rot-h); color: var(--rot); border-color: var(--rot); }
.chip.np-kl-3 { background: var(--np-sch-h); color: var(--np-sch); border-color: var(--np-sch-r); }
.chip.np-kl-2 { background: var(--gelb-h); color: var(--g9); }
.chip.np-kl-1, .chip.np-kl-0 { background: var(--gruen-h); color: var(--gruen); }
.np-suche { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.np-suche input { width: 240px; }
.np-eingabe select { width: auto; flex: 0 0 auto; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.np-rest { max-width: 110px; }
.np-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
.np-dl dt { color: var(--g6); font-size: .85rem; }
.np-dl dd { margin: 0; overflow-wrap: anywhere; }
.np-nachricht { white-space: pre-wrap; overflow-wrap: anywhere; }
.np-mail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; background: var(--g1); padding: 12px; border-radius: var(--radius); max-height: 520px; overflow: auto; }
.np-sha { font-family: ui-monospace, Consolas, monospace; }
.np-pruefwert { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.np-pruefwert code { font-size: .8rem; overflow-wrap: anywhere; background: var(--g1); padding: 4px 6px; border-radius: 4px; }
.np-karte > summary { cursor: pointer; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.np-karte-titel { font-weight: 700; }
.np-kurz { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .92rem; }
.np-karte-innen { margin-top: 12px; }
.np-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
.np-feld { margin: 0; }
.np-feld label { font-size: .85rem; }
.np-eingabe { display: flex; align-items: stretch; }
.np-eingabe input { flex: 1; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.np-einheit { display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--g3); border-left: none; background: var(--g1); color: var(--g7); font-size: .8rem; border-radius: 0 4px 4px 0; white-space: nowrap; }
.np-hilfe { display: block; color: var(--g6); font-size: .75rem; margin-top: 2px; }
.np-fehlt input { border-color: var(--rot); background: var(--f-fdecec); }
.np-fehlt-text { color: var(--rot); }
.np-unter { margin: 16px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g6); }
.np-ergs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin: 8px 0; }
.np-erg { border: 1px solid var(--g2); border-radius: var(--radius); padding: 8px 10px; background: var(--g1); min-width: 0; }
.np-erg-fehlt { border-color: var(--rot-h); background: var(--weiss); }
.np-erg-kopf { display: flex; gap: 8px; align-items: baseline; }
.np-sym { font-weight: 700; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.np-erg-name { color: var(--g6); font-size: .8rem; }
.np-erg-wert { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-formel { font-size: .76rem; color: var(--g7); margin-top: 4px; overflow-wrap: anywhere; }
.np-formel > span { display: block; }
.np-regel { color: var(--g6); font-style: italic; }
.np-mit { font-variant-numeric: tabular-nums; }
.np-fehlt-liste { color: var(--rot); }
.np-weg { margin-top: 12px; color: var(--rot); }
.np-leiste { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0 18px; box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.np-version { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.np-version input { width: 260px; max-width: 100%; }
.np-tab th, .np-tab td.zahl { white-space: nowrap; }
.np-check .unter { display: block; color: var(--g6); font-size: .82rem; font-weight: 400; margin-top: 2px; }
.np-klein { font-size: .82rem; max-width: 620px; margin: 8px 0; }
tr.np-anteile > td { background: var(--g1); padding-top: 4px; }
tr.np-warn td { background: var(--gelb-h); }
.np-spalten { columns: 2 320px; }
.np-check { align-items: flex-start; }
.unter.rot, span.rot, b.rot { color: var(--rot); }
@media (max-width: 700px) { .np-felder, .np-ergs { grid-template-columns: 1fr; } .np-kurz { margin-left: 0; } }
/* ab 2.26.0: Reiter je Drucker, Schätzwerte, Vergleich je Drucker */
.np-reiter { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--g2); position: sticky; top: var(--oben, 0px); z-index: 4; background: var(--papier); padding-top: 6px; }
.np-reiter-seite details.np-karte, .np-reiter-seite .np-neu, .np-reiter-seite { scroll-margin-top: 58px; } /* ab 2.26.1: unter den Reitern */
@media (max-width: 760px) { .np-reiter { position: static; } .np-reiter-seite details.np-karte, .np-reiter-seite .np-neu, .np-reiter-seite { scroll-margin-top: 0; } }
.np-reiter-knopf { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--g3); background: var(--weiss); color: var(--anthrazit); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.np-reiter-knopf:hover { border-color: var(--g6); }
.np-reiter-knopf.an { background: var(--knopf); color: var(--auf-dunkel); border-color: var(--knopf); }
.np-reiter-knopf.np-reiter-fehlt:not(.an) { border-color: var(--rot); }
.np-reiter-info { font-size: .72rem; opacity: .75; font-variant-numeric: tabular-nums; }
.np-reiter-sch { font-size: .72rem; font-weight: 700; color: var(--np-sch); background: var(--np-sch-h); border-radius: 99px; padding: 0 6px; }
.np-reiter-seite { margin-bottom: 18px; }
.np-reiter-seite[hidden] { display: none; }
.np-drucker-kopf { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.np-drucker-kopf h3 { margin: 0; }
.np-drucker-kopf .np-kurz { margin-left: auto; }
.np-geschaetzt input, .np-geschaetzt select { border-color: var(--np-sch-r); background: var(--np-sch-h); }
.np-geschaetzt .np-einheit { border-color: var(--np-sch-r); }
.np-sch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin-top: 3px; }
.np-sch-marke { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--np-sch); background: var(--np-sch-h); border: 1px solid var(--np-sch-r); border-radius: 4px; padding: 0 5px; }
.np-sch-quelle { font-size: .72rem; color: var(--g6); flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.np-sch-ok { font: inherit; font-size: .72rem; border: 1px solid var(--np-sch-r); background: var(--weiss); color: var(--np-sch); border-radius: 4px; padding: 0 6px; cursor: pointer; }
.np-sch-ok:hover { background: var(--np-sch-h); }
.np-sch-weg .np-sch-marke { color: var(--gruen); border-color: var(--gruen); background: var(--gruen-h); }
.np-sch-leiste { font-size: .82rem; background: var(--np-sch-h); border: 1px solid var(--np-sch-r); border-radius: var(--radius); padding: 6px 10px; margin: 0 0 10px; }
.chip.np-chip-sch { background: var(--np-sch-h); color: var(--np-sch); }
.np-sch-text { color: var(--np-sch); }
.kennzahl.np-kennzahl-sch { box-shadow: inset 4px 0 0 var(--np-sch-r); }
.np-links { text-align: left !important; }
tr.np-gruppe th { background: var(--g1); text-align: left; font-size: .86rem; padding-top: 10px; }
.np-jedrucker tr.np-bester td { background: var(--gruen-h); }
.np-jedrucker tr.np-grau td { color: var(--g6); }
.np-kennungen { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; margin: 6px 0; }
.np-klein-tab td, .np-klein-tab th { font-size: .82rem; }
details.aufklapp.np-block { display: block; }
details.aufklapp.np-block:not(.karte) { margin-top: 10px; }
.np-tab tr.np-grau td { color: var(--g6); }
.np-ist { margin: 4px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--g2); }
.np-ist h3 { margin: 0 0 10px; }
.np-hersteller { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--g2); }
.np-hersteller-hinweis { margin-bottom: 12px; }
.np-hersteller-liste { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0; }
.np-hersteller-liste .check { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--g2); border-radius: 99px; padding: 3px 10px 3px 8px; font-size: .86rem; background: var(--weiss); cursor: pointer; }
.np-hersteller-liste .check:has(input:checked:not(:disabled)) { border-color: var(--knopf); box-shadow: inset 0 0 0 1px var(--knopf); }
.np-hersteller-liste .check.np-hw-da { color: var(--g6); background: var(--g1); cursor: default; }
/* ab 2.27.0: Slicer-Datei lesen, Entfernen mit Verweisen, Schätzwerte auffrischen, Lager, Wartung, Preise je Drucker */
.np-slicer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 8px 10px; border: 1px dashed var(--g3); border-radius: var(--radius); background: var(--papier); }
.np-slicer-knopf { position: relative; overflow: hidden; cursor: pointer; }
.np-slicer-knopf input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.np-slicer [data-np-slicer-text] { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.np-slicer-liste { flex-basis: 100%; overflow-x: auto; }
.np-aus-slicer { border-color: var(--gruen) !important; box-shadow: inset 0 0 0 1px var(--gruen); }
.np-warn-text { color: var(--rot); }
.np-weg .unter.np-warn-text { display: block; margin-top: 2px; font-size: .82rem; }
.np-auffrischen { border: 1px solid var(--np-sch-r); background: var(--np-sch-h); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0 12px; }
.np-auffrischen .btn { margin-top: 6px; }
.np-stand { margin: 4px 0 8px; }
.np-tab tr.np-je-drucker td { border-top-style: dashed; background: var(--papier); }
.np-lager-aktionen { gap: 12px 18px; margin: 8px 0; }
.np-lager-aktionen form { min-width: 0; }
input[type=date].np-datum-klein { width: 9.8em; padding: 3px 6px; font-size: .82rem; display: inline-block; vertical-align: middle; }
.tab td.aktion form.inline:has(.np-datum-klein) { white-space: nowrap; }
.np-wartung-liste { list-style: none; padding: 0; }
@media print { .np-reiter { display: none; } .np-reiter-seite[hidden] { display: block; } .np-slicer { display: none; } }

/* ab 2.28.0: Spulen und Kanister, Rüststand, Trocknungskurven */
.np-ruest { border-top: 1px solid var(--g2); padding-top: 10px; margin-top: 10px; }
.np-ruest:first-of-type { border-top: 0; margin-top: 0; }
.np-ruest-aktionen { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 8px 0 4px; }
.np-einlegen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.np-einlegen select { max-width: 420px; }
.np-einlegen .np-platz { width: 170px; }
.chip.np-kl-4 { background: var(--rot-h); color: var(--rot); border-color: var(--rot); }
.chip.np-kl-3 { background: var(--np-sch-h); color: var(--np-sch); border-color: var(--np-sch-r); }
.chip.np-kl-2 { background: var(--gelb-h); color: var(--g9); }
.chip.np-kl-1, .chip.np-kl-0 { background: var(--gruen-h); color: var(--gruen); }
.np-trocken-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .np-trocken-raster { grid-template-columns: 1fr; } }
.np-tk { width: 100%; height: auto; max-width: 640px; display: block; }
.np-tk .np-tk-raster { stroke: var(--g2); stroke-width: 1; }
.np-tk .np-tk-t { fill: var(--g6); font-size: 11px; }
.np-tk .np-tk-maxt { fill: var(--rot); }
.np-tk-ofen { fill: var(--gelb-h); stroke: var(--gelb-d); stroke-width: 1.5; fill-opacity: .8; }
.np-tk-bett { fill: var(--g1); stroke: var(--g6); stroke-width: 1.5; stroke-dasharray: 4 3; fill-opacity: .8; }
.np-tk-ams { fill: var(--gruen-h); stroke: var(--gruen); stroke-width: 1.5; fill-opacity: .8; }
.np-tk .np-tk-richt { fill: none; stroke: var(--rot); stroke-width: 2; }
.np-tk .np-tk-max { stroke: var(--rot); stroke-width: 1.5; stroke-dasharray: 5 4; }
.np-tk-leg { display: inline-block; width: 14px; height: 10px; border: 1.5px solid; vertical-align: middle; margin-right: 2px; }
span.np-tk-leg.np-tk-ofen { background: var(--gelb-h); border-color: var(--gelb-d); }
span.np-tk-leg.np-tk-bett { background: var(--g1); border-color: var(--g6); border-style: dashed; }
span.np-tk-leg.np-tk-ams { background: var(--gruen-h); border-color: var(--gruen); }
.np-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 10px; }
.np-dl dt { color: var(--g6); }
.np-dl dd { margin: 0; }
/* ab 2.28.0: Anfrage – Modelle, Ansichten, 3D-Betrachter */
.np-modell-karte { border: 1px solid var(--g2); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; background: var(--weiss); }
.np-modell-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.np-modell-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; margin-top: 10px; }
@media (max-width: 900px) { .np-modell-raster { grid-template-columns: 1fr; } }
.np-3d { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 440px; background: var(--g1); border: 1px solid var(--g2); border-radius: var(--radius); overflow: hidden; }
.np-3d canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.np-3d canvas:active { cursor: grabbing; }
.np-3d-info { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: var(--g6); pointer-events: none; }
.np-3d-knoepfe { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.np-3d-knoepfe button { font-size: 11px; padding: 2px 7px; }
.np-3d-meldung { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--g6); font-size: 13px; }
.np-ansichten { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.np-ansichten figure { margin: 0; }
.np-ansichten img { width: 100%; height: auto; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--weiss); }
.np-ansichten figcaption { font-size: 11px; color: var(--g6); }
.np-wahl-liste { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.np-wahl-liste dt { color: var(--g6); }
.np-wahl-liste dd { margin: 0; }
.np-3d { --np3d-modell: var(--f-86a3c2); --np3d-raster: var(--f-c4c4bf); }
.np-3d:fullscreen { max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.np-3d-meldung[hidden] { display: none; }
.np-3d.fehler .np-3d-meldung { color: var(--rot); }
.np-3d-ohne { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 140px; padding: 16px; margin: 0; background: var(--g1); border: 1px dashed var(--g3); border-radius: var(--radius); color: var(--g6); font-size: 13px; }
.np-modell-karte h3 { margin: 0; }
.np-modell-karte .knopfleiste { margin-top: 10px; flex-wrap: wrap; align-items: center; }
.np-grabcad-meldung { flex-basis: 100%; color: var(--g6); }
.np-hilfe-3d { margin: 4px 0 0; }
.np-umruesten td { background: var(--gelb-h); }
.np-liste tr[data-np-zeile] { cursor: pointer; }
.np-liste tr[data-np-zeile]:hover td { background: var(--g1); }
.np-mini { width: 56px; padding-top: 4px; padding-bottom: 4px; }
.np-mini img { display: block; width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--g2); border-radius: 4px; background: var(--weiss); }
.np-mini .np-mini-leer { display: block; width: 48px; height: 48px; border: 1px dashed var(--g3); border-radius: 4px; }
/* ab 2.28.0: Chat – Formatierung, Antworten, Reaktionen, Dateien, Lesebestätigung, angeheftet, Eingabe */
.chat-text p, .chat-text blockquote, .chat-text li { margin: 0; white-space: pre-wrap; }
.chat-text p + p, .chat-text p + ul, .chat-text p + ol, .chat-text ul + p, .chat-text ol + p, .chat-text pre + p, .chat-text p + pre, .chat-text blockquote + p, .chat-text p + blockquote { margin-top: 4px; }
.chat-text ul, .chat-text ol { margin: 2px 0; padding-left: 1.4em; white-space: normal; }
.chat-text blockquote { border-left: 3px solid var(--g3); padding: 1px 0 1px 8px; color: var(--g7); }
.chat-text code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--g1); border: 1px solid var(--g2); border-radius: 3px; padding: 0 3px; }
.chat-text pre.chat-code { margin: 4px 0; padding: 6px 8px; background: var(--g1); border: 1px solid var(--g2); border-radius: 4px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em; white-space: pre; overflow-x: auto; max-width: 100%; }
.chat-n.eigen .chat-text code, .chat-n.eigen .chat-text pre.chat-code { background: var(--weiss); }
.chat-zitat { display: block; margin: 2px 0 4px; padding: 3px 8px; border-left: 3px solid var(--gelb-d); background: var(--g1); border-radius: 3px; color: var(--g7); font-size: .88em; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chat-zitat:hover { background: var(--g2); }
.chat-n.eigen .chat-zitat { background: var(--weiss); }
.chat-weiter { font-size: .8rem; color: var(--g6); font-style: italic; margin: 1px 0 3px; }
.chat-marke { font-size: .78rem; }
.chat-dateien { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-bild { display: block; line-height: 0; border: 1px solid var(--g2); border-radius: 6px; overflow: hidden; background: var(--weiss); max-width: 100%; }
.chat-bild img { display: block; max-width: 360px; max-height: 300px; width: auto; height: auto; object-fit: contain; } /* ab 2.68.1 ohne „100 %“: sonst ist der Rahmen breiter als das Bild */
@media (max-width: 480px) { .chat-bild img { max-width: 100%; } }
.chat-datei { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--g3); border-radius: 6px; background: var(--weiss); color: var(--anthrazit); text-decoration: none; max-width: 320px; }
.chat-datei:hover { border-color: var(--anthrazit); }
.chat-datei.gesperrt { color: var(--g6); border-style: dashed; }
.chat-datei-endung { flex: none; font-size: .72rem; font-weight: 700; padding: 3px 5px; border-radius: 3px; background: var(--g1); color: var(--g7); }
.chat-datei-text { display: flex; flex-direction: column; min-width: 0; }
.chat-datei-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.chat-datei-groesse { font-size: .74rem; color: var(--g6); }
.chat-reaktionen { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chat-reaktion { border: 1px solid var(--g3); background: var(--weiss); border-radius: 12px; padding: 0 7px; font-size: .82rem; line-height: 1.6; cursor: pointer; }
.chat-reaktion span { font-size: .76rem; color: var(--g7); }
.chat-reaktion.ich { border-color: var(--gelb-d); background: var(--gelb-h); }
.chat-reaktion:hover { border-color: var(--anthrazit); }
.chat-lese { display: block; text-align: right; font-size: .72rem; color: var(--g6); margin-top: 2px; min-height: 1em; cursor: default; }
.chat-lese.alle { color: var(--gruen); }
.chat-aktionen { flex-wrap: wrap; max-width: 110px; }
.chat-menue { position: fixed; z-index: 60; display: flex; flex-direction: column; min-width: 190px; padding: 4px; background: var(--dlg-bg); color: var(--dlg-text); border: 1px solid var(--g3); border-radius: 8px; box-shadow: 0 6px 24px var(--schatten-1); }
.chat-menue button { border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 5px; cursor: pointer; color: inherit; font: inherit; font-size: .9rem; }
.chat-menue button:hover, .chat-menue button:focus { background: var(--g1); outline: none; }
.chat-menue-reaktionen { flex-direction: row; min-width: 0; }
.chat-menue-reaktionen button { font-size: 1.25rem; padding: 4px 6px; }
.chat-anheft { display: flex; align-items: flex-start; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--g2); background: var(--gelb-h); font-size: .86rem; }
.chat-anheft-liste { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-anheft-eintrag { color: var(--anthrazit); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-anheft-eintrag:hover { text-decoration: underline; }
.chat-anheft-eintrag.weitere { display: none; }
.chat-anheft.offen .chat-anheft-eintrag.weitere { display: block; }
.ka-chat-innen .chat-anheft { padding: 5px 10px; }
.chat-format { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.chat-format .chat-knopf { font-size: .78rem; min-width: 26px; }
.chat-antwort-leiste { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-left: 3px solid var(--gelb-d); background: var(--g1); border-radius: 3px; font-size: .86rem; }
.chat-antwort-leiste[hidden], .chat-anhaenge[hidden] { display: none; }
.chat-antwort-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-anhaenge { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-anhang { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 6px; border: 1px solid var(--g3); border-radius: 6px; font-size: .8rem; max-width: 280px; background: var(--weiss); }
.chat-anhang img { width: 34px; height: 34px; object-fit: cover; border-radius: 3px; }
.chat-anhang span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-unten { flex-basis: 100%; display: flex; gap: 12px; min-height: 0; }
.chat-tippt { font-size: .78rem; color: var(--g6); font-style: italic; }
.chat-tippt:empty, .chat-fehler:empty { display: none; }
.chat-entwurf { color: var(--rot); font-weight: 600; }
.chat-haupt.chat-ziehen, .ka-chat-innen.chat-ziehen { outline: 3px dashed var(--gelb-d); outline-offset: -6px; }
.chat-lesen-schalter { margin: 6px 12px 0; }
.chat-lesen-schalter .btn { width: 100%; justify-content: center; }

/* ---------- ab 2.29.0 (novoprint3D): Seite je Drucker, „Gerade gerüstet“ im Lager, Anfrage mit Teilen ---------- */
.np-drucker-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 14px; }
.np-drucker-karte { display: flex; flex-direction: column; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--weiss); color: inherit; text-decoration: none; overflow: hidden; box-shadow: var(--schatten-1); transition: border-color .15s, box-shadow .15s; }
.np-drucker-karte:hover, .np-drucker-karte:focus-visible { border-color: var(--knopf); box-shadow: var(--schatten-2); text-decoration: none; }
.np-drucker-karte.np-partner { background: var(--papier); }
.np-drucker-bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--g1); color: var(--g4); overflow: hidden; }
.np-drucker-bild img { width: 100%; height: 100%; object-fit: contain; background: var(--weiss); display: block; }
.np-drucker-bild a { display: block; width: 100%; height: 100%; }
.np-drucker-bild.gross { border-radius: var(--radius); border: 1px solid var(--g2); }
.np-drucker-bild.mit-foto, .np-drucker-bild.mit-foto img { background: #fff; } /* ab 2.29.1: Produktfotos stehen auf Weiß – auch im dunklen Bild */
.np-drucker-symbol { width: 72px; height: 72px; }
.np-drucker-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.np-drucker-name { font-weight: 700; font-size: 1.08rem; }
.np-drucker-zeilen { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; overflow-wrap: anywhere; }
.np-drucker-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.np-dseite-kopf { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 16px; align-items: start; }
.np-dseite-kopf > .karte { margin-bottom: 16px; min-width: 0; }
@media (max-width: 900px) { .np-dseite-kopf { grid-template-columns: 1fr; } }
.np-drucker-foto { margin: 0 0 8px; }
.np-drucker-foto figcaption { margin-top: 6px; overflow-wrap: anywhere; }
.np-bild-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0; }
.np-bild-form label { flex-basis: 100%; }
.np-bild-zeile { display: flex; gap: 6px; flex: 1 1 260px; min-width: 0; }
.np-bild-zeile input { flex: 1 1 auto; min-width: 0; }
.np-steckbrief dd { overflow-wrap: anywhere; }
.np-q { font-size: .78rem; color: var(--g6); text-decoration: none; vertical-align: super; }
.np-q:hover { text-decoration: underline; }
.np-quellen { padding-left: 1.4em; margin: 4px 0 8px; }
.np-quellen li { margin: 2px 0; overflow-wrap: anywhere; }
.np-quellen li:target { background: var(--gelb-h); }
.np-hersteller-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.np-geruestet { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; margin: 6px 0 12px; }
.np-geruestet-drucker { border: 1px solid var(--g2); border-radius: var(--radius); padding: 8px 12px; background: var(--weiss); min-width: 0; }
.np-geruestet-drucker h4 { margin-top: 0; }
.np-geruestet-liste { list-style: none; margin: 0; padding: 0; }
.np-geruestet-liste li { padding: 3px 0; border-top: 1px dashed var(--g2); font-size: .92rem; }
.np-geruestet-liste .unter { display: block; color: var(--g6); font-size: .8rem; }
.np-geruestet-liste li:first-child { border-top: 0; }
.np-verwendung { margin: 4px 0 0; }
.np-modell-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ab 2.30.0: Pakete (Einstellungen, novoprint3D) und Versand an der Anfrage */
.np-pakete input[type=text] { width: 100%; min-width: 4.5em; }
.np-pakete td:first-child input { min-width: 12em; }
.np-versand { border-left: 3px solid var(--g2); padding: 2px 0 2px 10px; margin: 8px 0; }
.np-versand.fehlt { border-left-color: var(--gelb); }
.np-versand p { margin: 2px 0; }
/* ab 2.30.0: kleines Bild links an einer Position (wie im PDF: 15 × 15 mm, Text 17 mm weiter rechts) */
.blatt .pos.mit-bild { min-height: 18.4mm; }
.blatt .pos.mit-bild .pos-text, .blatt .pos.mit-bild .pos-lang { padding-left: 17mm; }
.pos-bild { position: absolute; left: 10mm; top: 1.2mm; width: 15mm; height: 15mm; }
.pos-bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pos-bild.fehlt { border: .2mm dashed var(--f-d2d2d2); }
.pos-bild.fehlt img { visibility: hidden; }
.pos-bild-weg { position: absolute; top: -1.6mm; right: -1.6mm; width: 4.4mm; height: 4.4mm; padding: 0; border: 1px solid var(--f-d2d2d2); border-radius: 50%; background: #fff; color: var(--f-6b6b6b); font-size: 6.5pt; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .1s; }
.pos:hover .pos-bild-weg, .pos-bild-weg:focus { opacity: 1; }
@media print { .pos-bild-weg { display: none !important; } }
/* ab 2.31.0: Material kaufen */
.np-kauf input.np-menge { width: 5.5em; text-align: right; }
.np-summe { font-size: 1.05rem; margin: 10px 0 4px; }
.np-kaufteile input[type=text] { width: 100%; min-width: 6em; }
.np-kaufteile td:nth-child(3) input { min-width: 14em; }
.np-kaufteile td:nth-child(7) input { min-width: 10em; }
.np-kaufteile select { min-width: 8em; }

/* ab 2.32.0: Stammdaten für novoprint3d.de – buchbar, Lieferzeit (ab 2.33.0 ohne die Farben-Karte: „vorrätig“ aus dem Bestand) */
.np-z { text-align: center; }
.np-lieferzeit .feld { max-width: 11em; }

/* ab 2.33.0: Seite eines Druckers – Steckbrief und eure Werte eingeklappt rechts vom Bild, Maschinenstatus */
.np-dseite-rechts { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin-bottom: 16px; }
.np-dseite-rechts > .karte { margin: 0; min-width: 0; }
details.np-klapp > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
details.np-klapp > summary::-webkit-details-marker { display: none; }
details.np-klapp > summary h2 { margin: 0; font-size: 1.05rem; }
details.np-klapp > summary h2::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--g6); transition: transform .15s; }
details.np-klapp[open] > summary h2::before { transform: rotate(90deg); }
details.np-klapp[open] > summary { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--g2); }
.np-vorhanden { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.np-duese { width: 11em; }
.np-duese-form { display: inline-flex; align-items: center; gap: 6px; }

/* ab 2.33.0: ausführliche Erklärung je Feld der Preisberechnung – beim Überfahren mit der Maus (nach kurzer Pause) */
.np-feld, label.np-check { position: relative; }
.np-erkl { display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 60; width: max-content; max-width: min(440px, calc(100vw - 32px));
  padding: 9px 12px; border-radius: 8px; background: var(--blase); color: #fff; font-size: .82rem; font-weight: 400; line-height: 1.45;
  text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
.np-feld:hover > .np-erkl, label.np-check:hover > .np-erkl { display: block; animation: np-erkl-ein .15s ease-out .4s both; }
@keyframes np-erkl-ein { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (hover: none) { .np-erkl { display: none !important; } }

/* ab 2.33.0: Materiallager – volle Breite, je Drucker gruppiert, „Buchen …“ klappt eine Zeile darunter auf */
.np-formeln { margin: 0 0 4px; padding-left: 1.1em; color: var(--g7); }
.np-formeln li { margin: 3px 0; }
.np-formeln code { font-size: .8rem; color: var(--anthrazit); }
.np-lager-tab tr.np-lager-gruppe th { background: var(--g1); color: var(--anthrazit); font-size: .95rem; font-weight: 700; text-transform: none; letter-spacing: 0;
  padding: 9px 10px; border-bottom: 1px solid var(--g2); }
.np-lager-tab tbody + tbody tr.np-lager-gruppe th { border-top: 14px solid var(--weiss); }
.np-lager-anzahl { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: var(--weiss); color: var(--g6);
  font-size: .78rem; font-weight: 600; text-align: center; vertical-align: 1px; }
.np-lager-tab td { vertical-align: top; }
.np-lager-tab td.np-lager-name { min-width: 15rem; width: 26%; }
.np-lager-tab td.np-lager-name > b { font-size: .98rem; }
.np-lager-tab td.np-lager-bestand > b { font-size: 1.15rem; }
.np-lager-tab td.np-lager-lief { min-width: 7rem; max-width: 14rem; overflow-wrap: anywhere; }
.np-lager-tab td.np-lager-knoepfe { white-space: nowrap; text-align: right; }
.np-lager-tab td.np-lager-knoepfe .btn + .btn { margin-left: 4px; }
.np-lager-tab tr.np-lager-aktion { display: none; }
.np-lager-tab tr.np-lager-aktion:target { display: table-row; }
.np-lager-tab tr.np-lager-aktion > td { background: var(--papier); padding: 12px 16px 16px; border-bottom: 2px solid var(--g2); }
.np-lager-aktion-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.np-lager-aktion-kopf .btn { margin-left: auto; }
.np-lager-tab tr.np-lager-zeile:target > td { animation: np-lager-hier 2.4s ease-out; }
@keyframes np-lager-hier { from { background: var(--gelb-h); } to { background: transparent; } }

/* ab 2.33.0: Material kaufen – Datum je Preis (älter als ein Jahr markiert) */
.np-kauf td.np-preis-alt { color: var(--np-sch); }
.np-kaufteile input.np-preisam { min-width: 9.5em; }

/* ab 2.33.0: neue Anfragen von novoprint3d.de – roter Punkt mit Zahl (Wechsel „zu novoprint3D“, Menü „Anfragen“) */
.np-punkt { display: inline-block; min-width: 1.45em; padding: 0 .38em; margin-left: 5px; border-radius: 1em; background: var(--np-punkt); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: 1px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.zahlmarke.np-rot { background: var(--np-punkt); color: #fff; }
.chat-toast.np-toast { border-left-color: var(--np-punkt); }

/* ab 2.34.0: Bestand direkt in der Lagerliste (Zahl = gezählt, −/＋ = Buchung) und Rest der ausgepackten Gebinde */
.np-lager-schnell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.np-lager-schnell .np-schnell-minus { order: 1; }
.np-lager-schnell .np-schnell-le { order: 2; font-weight: 700; }
.np-lager-schnell .np-schnell-zahl { order: 3; }
.np-lager-schnell .np-schnell-plus { order: 4; }
.np-lager-schnell .np-schnell-ok { order: 5; visibility: hidden; }
.np-lager-schnell:focus-within .np-schnell-ok { visibility: visible; }
.np-lager-schnell .btn { min-width: 30px; padding: 2px 8px; justify-content: center; }
input[type=text].np-schnell-zahl { width: 5.2em; min-height: 30px; padding: 3px 6px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.np-lager-tab td.np-lager-bestand { white-space: nowrap; }
.np-rest-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.np-rest-form select { width: auto; min-height: 30px; padding: 3px 6px; }
.np-rest-tab td.np-rest-zelle { white-space: nowrap; }
.np-rest-tab td.np-rest-zelle form.inline { margin-left: 4px; }

/* ab 2.34.0: Empfehlungswert im Kleingedruckten, Angaben des Herstellers in der Werkstoffkarte */
.np-empf { display: block; margin-top: 2px; font-size: .76rem; line-height: 1.35; color: var(--g7); overflow-wrap: anywhere; }
.np-empf-marke { display: inline-block; padding: 0 5px; border-radius: 3px; background: var(--g2); color: var(--anthrazit); font-size: .68rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.np-empf b { color: var(--anthrazit); }
.np-herst { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--g3); border-left: 4px solid var(--gelb-d); border-radius: 4px; background: var(--papier); }
.np-herst p { margin: 0 0 4px; }
.np-herst ul { margin: 0 0 6px 1.1em; padding: 0; }
.np-herst-ok { color: var(--gruen); font-weight: 600; }

/* ===================== ab 2.35.0: novoprint3D – Verbesserungen ===================== */
/* Empfehlung übernehmen (P3), Herkunft gemessener/berechneter Werte (P7/P8), Rechner am Feld, alte Quelle (P5) */
.np-sch.np-sch-empf .np-sch-marke { background: var(--g2); color: var(--anthrazit); }
.np-empf-ok { margin-left: 6px; padding: 0 7px; min-height: 0; border: 1px solid var(--g3); border-radius: 4px; background: var(--weiss); color: var(--anthrazit);
  font-size: .72rem; font-weight: 600; line-height: 1.6; cursor: pointer; vertical-align: 1px; }
.np-empf-ok:hover { border-color: var(--gelb-d); background: var(--gelb-h); }
.np-herkunft { display: block; margin-top: 2px; font-size: .74rem; color: var(--f-1d6b40); overflow-wrap: anywhere; }
.np-herkunft::before { content: "✓ "; }
.np-quelle-alt { display: block; margin-top: 2px; font-size: .74rem; color: var(--np-sch); }
details.np-rechner { margin-top: 4px; }
details.np-rechner > summary { cursor: pointer; color: var(--g7); font-size: .76rem; }
.np-rechner-innen { margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--g3); border-radius: 6px; background: var(--papier); }
.np-rechner-innen .felder { margin-bottom: 6px; }
.np-karte-speichern { margin: 10px 0 0; text-align: right; }
/* bis zur ersten Version (P15) */
.np-bis-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 18px; margin: 6px 0 10px; }
.np-bis-drucker p { margin: 2px 0; }
.np-bis-drucker .np-unter { margin: 4px 0 2px; }
/* Staffel, Express, Leistungen (P11, P12) */
.np-staffel-tab input[type=text] { width: 100%; min-width: 5em; }
.np-staffel-tab td, .np-leist-tab td { padding: 3px 6px; vertical-align: middle; }
.np-leist-tab input[type=text] { width: 100%; min-width: 6em; }
.np-leist-tab tr.np-neu-zeile td { background: var(--papier); }
.np-partner-angebot { margin: 0 0 10px; padding: 7px 10px; border-left: 3px solid var(--g3); background: var(--papier); font-size: .84rem; }
.np-partner-angebot.np-warn { border-left-color: var(--gelb-d); background: var(--gelb-h); }
/* Quellen (P5, T7) */
.np-quellen-tab input[type=text], .np-quellen-tab input[type=url], .np-quellen-tab input[type=date] { width: 100%; min-width: 8em; }
.np-quellen-liste { margin: 0 0 8px 1.1em; padding: 0; }
.np-quellen-liste li { margin: 2px 0; }
.np-quelle-alt-li { color: var(--np-sch); }
/* Vergleich und Preisverlauf (P13) */
.np-vgl-wahl .felder { margin: 0; }
svg.np-spark { display: block; overflow: visible; }
.np-spark-linie { fill: none; stroke: var(--g7); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.np-spark-punkt { fill: var(--gelb-d); }
/* Seite des Druckers: Werte ändern (P2), Auslastung (D1), Düsen, Kalibrierung, Störungen, Dokumente (D2–D7) */
.np-dseite-form { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--g2); }
.np-stoer-jetzt { margin-bottom: 10px; }
.np-wochen-bild { margin: 0; }
svg.np-wochen { display: block; width: 100%; max-width: 760px; height: auto; }
.np-w-gitter { stroke: var(--g2); stroke-width: 1; }
.np-w-achse { fill: var(--g6); font-size: 9px; font-family: var(--schrift); }
.np-w-ist { fill: var(--gruen); }
.np-w-plan { fill: var(--gelb-d); opacity: .75; }
.np-w-soll { stroke: var(--rot); stroke-width: 1.4; stroke-dasharray: 5 4; }
.np-leg { display: inline-block; width: 12px; height: 10px; margin: 0 3px 0 8px; vertical-align: -1px; border-radius: 2px; }
.np-leg-ist { background: var(--gruen); }
.np-leg-plan { background: var(--gelb-d); }
.np-leg-soll { height: 0; border-top: 2px dashed var(--rot); }
.np-duesen-form, .np-service-form { margin-bottom: 10px; }
.np-service-form { margin-top: 14px; } /* ab 2.35.0: Abstand zum Kleingedruckten der Dokumente */
/* Wartung: Zeit und Kosten (D8) */
.np-erledigt-form { white-space: normal; }
details.np-erledigt-mehr { display: block; margin-top: 4px; text-align: left; }
details.np-erledigt-mehr > summary { cursor: pointer; color: var(--g6); }
details.np-erledigt-mehr .felder { margin: 6px 0 4px; min-width: 260px; }
/* Werkstatt und Spule am Handy (B3, L3) */
.np-mobil { max-width: 720px; }
.np-mobil .kennzahl .wert.kennzahl-text { font-size: 1rem; }
.np-mobil-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.np-mobil-knoepfe .btn, .np-mobil-form .btn { min-height: 44px; padding-left: 16px; padding-right: 16px; }
.np-mobil-form { margin-top: 8px; }
.np-mobil-suche .zeile { display: flex; gap: 8px; }
.np-mobil-suche input[type=search] { flex: 1; min-height: 44px; font-size: 1.05rem; }
.np-mobil-liste { list-style: none; margin: 4px 0 8px; padding: 0; }
.np-mobil-liste li { padding: 7px 0; border-bottom: 1px solid var(--g1); }
.np-mobil-liste li form.inline { margin-left: 8px; }
.np-mobil-drucker.np-warn { border-left: 4px solid var(--rot); }
/* Etikett mit QR-Code (L3) */
.np-etikett { display: flex; align-items: center; gap: 4mm; width: 90mm; min-height: 29mm; padding: 2mm 3mm; border: 1px dashed var(--g4); background: #fff; color: var(--f-222222); }
.np-etikett-qr { width: 25mm; height: 25mm; flex: none; }
.np-etikett-text { display: flex; flex-direction: column; gap: 1mm; min-width: 0; font-size: 9pt; line-height: 1.2; }
.np-etikett-id { font-size: 16pt; letter-spacing: .02em; }
@media print { .np-nicht-drucken { display: none !important; } .np-etikett { border: none; margin: 0; } form.np-druckbar { display: block !important; } form.np-druckbar input { border: 1px solid var(--g4); } }
.np-gebinde-daten { margin-top: 10px; }
/* Inventur, Lager (L7–L10) */
.np-inventur-tab td { vertical-align: middle; }
.np-inv-farbe { display: inline-flex; align-items: center; gap: 4px; margin: 2px 8px 2px 0; font-size: .8rem; color: var(--g7); }
.np-inv-farbe input { width: 4.5em; }
.np-rueck { margin: 6px 0 0; color: var(--g6); }
/* Material kaufen (K2, K4) */
.np-vorlage-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--g1); }
.np-vorlage-zeile .btn { margin-left: auto; }
details.np-bestell-aktion { display: inline-block; vertical-align: top; text-align: left; }
details.np-bestell-aktion > summary { list-style: none; }
details.np-bestell-aktion > summary::-webkit-details-marker { display: none; }
details.np-bestell-aktion[open] { display: block; margin: 6px 0; padding: 8px; border: 1px solid var(--g2); border-radius: 6px; background: var(--papier); }
.np-frachtfrei { margin-top: 10px; }
/* Anfrage: Ablauf, Richtpreis, Slicer-Ordner (A3–A9) */
.np-ampel-0 { background: var(--gruen-h); color: var(--f-1d6b40); }
.np-ampel-1 { background: var(--gelb-h); color: var(--anthrazit); }
.np-ampel-2 { background: var(--rot-h); color: var(--rot); }
/* ab 2.41.0: breite Liste der Anfragen – Häkchen, Stand und zuständig in der Zeile, Aktionen mit Menü */
.np-breit td { vertical-align: top; }
.np-breit th, .np-breit td { padding-left: 6px; padding-right: 6px; }
.np-liste .np-wahl { width: 30px; padding-left: 8px; padding-right: 2px; cursor: default; }
.np-liste .np-wahl input { width: 16px; height: 16px; margin: 3px 0 0; }
.np-liste tr.gewaehlt td { background: var(--gelb-h); }
.np-sammel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 10px; padding: 7px 10px; border: 1px dashed var(--g3); border-radius: var(--radius); }
.np-sammel.aktiv { border-style: solid; border-color: var(--gelb-d); background: var(--gelb-h); }
.np-sammel-teil { display: inline-flex; gap: 6px; align-items: center; }
.np-sammel select, .np-sofort select { width: auto; min-height: 0; padding: 3px 6px; font-size: .86rem; }
.np-sofort { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; }
.np-sofort select { max-width: 150px; }
.np-sofort select.np-stand-neu { background: var(--gelb-h); border-color: var(--gelb-d); }
.np-sofort select.np-stand-auftrag { background: var(--gruen-h); }
.np-sofort select.np-stand-abgelehnt { color: var(--rot); }
.np-ich, .np-akt { white-space: nowrap; }
.np-akt-zeile { display: flex; gap: 6px; align-items: flex-start; }
.np-akt-zeile form { margin: 0; }
details.np-mehr > summary { list-style: none; cursor: pointer; }
details.np-mehr > summary::-webkit-details-marker { display: none; }
.np-mehr-menue { position: fixed; z-index: 60; display: flex; flex-direction: column; min-width: 220px; padding: 4px; background: var(--dlg-bg); color: var(--dlg-text); border: 1px solid var(--g3); border-radius: 8px; box-shadow: 0 6px 24px var(--schatten-1); }
.np-mehr-menue form { margin: 0; }
.np-menue-k { display: block; box-sizing: border-box; width: 100%; min-height: 0; padding: 6px 10px; margin: 0; border: 0; border-radius: 5px; background: none; box-shadow: none; color: inherit; font: inherit; font-size: .9rem; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
a.np-menue-k:hover, button.np-menue-k:hover:not(:disabled), .np-menue-k:focus-visible { background: var(--g1); outline: none; }
.np-menue-k:disabled { opacity: .45; cursor: default; }
span.np-menue-k { cursor: default; font-size: .82rem; }
.np-menue-k.rot-text, .btn.rot-text { color: var(--rot); }
.np-filter-haken { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
dialog.np-kunde-dlg { width: min(520px, 94vw); padding: 0; border: 1px solid var(--g3); border-top: 4px solid var(--gelb); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
dialog.np-kunde-dlg::backdrop { background: rgba(46, 46, 45, .45); }
dialog.np-kunde-dlg form { padding: 16px 20px 18px; }
dialog.np-kunde-dlg h2 { margin: 0 0 6px; }
.np-ablauf-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; }
.np-ablauf-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; }
.np-ablauf-zeile input[type=text] { width: 12em; }
.np-richtpreis { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--g2); border-left: 4px solid var(--gelb-d); border-radius: 4px; background: var(--papier); }
.np-richtpreis .np-unter { margin-top: 0; }
.np-slicer-fund { margin: 6px 0 10px; padding: 8px 10px; border: 1px solid var(--g2); border-left: 4px solid var(--gruen); border-radius: 4px; background: var(--papier); }
.np-slicer-fund.np-warn { border-left-color: var(--rot); }
.np-slicer-fund p { margin: 0 0 6px; }
/* Startseite (A1), Druckplan (A2), Auswertung (A12) */
.np-hinweis-liste { list-style: none; margin: 0 0 8px; padding: 0; }
.np-hinweis-liste li { padding: 6px 10px; margin: 3px 0; border-left: 3px solid var(--g3); background: var(--papier); font-size: .88rem; }
.np-hinweis-liste li.np-hinweis-1 { border-left-color: var(--gelb-d); }
.np-hinweis-liste li.np-hinweis-2 { border-left-color: var(--rot); }
.np-alles-gut { margin: 0 0 16px; color: var(--f-1d6b40); }
.np-start-liste { list-style: none; margin: 0; padding: 0; }
.np-start-liste li { padding: 6px 0; border-bottom: 1px solid var(--g1); }
.np-plan { overflow-x: auto; }
.np-plan-skala { position: relative; height: 18px; margin-left: 180px; border-bottom: 1px solid var(--g2); font-size: .72rem; color: var(--g6); }
.np-plan-skala span { position: absolute; top: 0; padding-left: 3px; border-left: 1px solid var(--g3); white-space: nowrap; }
.np-plan-zeile { display: flex; align-items: center; min-width: 680px; padding: 5px 0; border-bottom: 1px solid var(--g1); }
.np-plan-kopf { flex: none; width: 180px; padding-right: 10px; font-size: .86rem; }
.np-plan-bahn { position: relative; flex: 1; height: 26px; background: var(--g1); border-radius: 4px; }
a.np-plan-balken { position: absolute; top: 3px; height: 20px; overflow: hidden; border-radius: 3px; background: var(--gruen); color: #fff; font-size: .72rem;
  font-weight: 600; line-height: 20px; text-align: center; text-decoration: none; white-space: nowrap; box-shadow: inset -1px 0 0 var(--weiss); }
a.np-plan-balken.np-knapp { background: var(--gelb-d); }
a.np-plan-balken.np-spaet { background: var(--rot-f); }
select.np-plan-wahl { width: auto; min-height: 28px; padding: 2px 6px; }
.np-balken-liste { margin: 0 0 12px; }
.np-balken-zeile { display: grid; grid-template-columns: 90px 1fr 110px; align-items: center; gap: 8px; padding: 2px 0; }
.np-balken-name { font-size: .82rem; color: var(--g7); }
.np-balken { display: block; height: 12px; border-radius: 3px; background: var(--g1); overflow: hidden; }
.np-balken-wert { display: block; height: 100%; background: var(--gelb-d); }
/* Verbindung: Meldungen der Automatik (V2), Abweichung (V6), Schlüsseltausch (V8) */
.np-auto-meldung, .np-abweichung { margin: 0 0 8px; }
ol.np-schritte { margin: 6px 0 8px 1.2em; padding: 0; }
ol.np-schritte li { margin: 4px 0; color: var(--g7); }
ol.np-schritte li.np-schritt-ok { color: var(--f-1d6b40); }
ol.np-schritte li.np-schritt-ok::marker { content: "✓ "; }
ol.np-schritte li.np-schritt-jetzt { color: var(--anthrazit); font-weight: 600; }
/* „i“ an jedem Feld der Preisberechnung (B4): Erklärung auch am Handy */
.np-i { position: absolute; top: 0; right: 0; width: 18px; height: 18px; padding: 0; border: 1px solid var(--g3); border-radius: 50%; background: var(--weiss);
  color: var(--g7); font: italic 700 11px/16px Georgia, serif; text-align: center; cursor: pointer; }
label.np-check > .np-i { position: static; margin-left: 6px; flex: none; }
.np-i:hover, .np-i[aria-expanded=true] { border-color: var(--gelb-d); color: var(--anthrazit); }
.np-feld > label { padding-right: 22px; }
.np-erkl-an > .np-erkl { display: block; pointer-events: auto; }
@media (hover: none) { .np-erkl-an > .np-erkl { display: block !important; } }
/* Formeln ausblenden (B6), Meldung beim Speicherort (B7) */
body.np-formeln-zu .np-karte .np-ergs, body.np-formeln-zu .np-karte h4.np-erg-titel { display: none; }
.np-toast-hier { position: relative; margin: 6px 0 8px; padding: 8px 12px; border-left: 4px solid var(--gruen); border-radius: 4px; background: var(--gruen-h);
  font-size: .86rem; box-shadow: 0 2px 8px var(--schatten-1); transition: opacity .6s; }
.np-toast-hier.fehler { border-left-color: var(--rot); background: var(--rot-h); }
.np-toast-hier.weg { opacity: 0; }
.np-farbwerte { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 8px; }
.np-farbwert { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.np-farbwert input[type=color] { width: 34px; height: 26px; padding: 0; border: 1px solid var(--g3); border-radius: 4px; background: var(--weiss); }
/* ab 2.36.0: geplante Zeiten in der Monatsübersicht – gelb, zählen erst, wenn vorbei */
.ueb-tab td.ueb-zt.geplant, .ueb-tab td.ueb-zt.geplant input.ueb-z { background: var(--gelb-h); color: var(--anthrazit); }
.ueb-tab td.ueb-zt.geplant input.ueb-z { font-weight: 600; }
.ueb-tab tr.zukunft input.ueb-z { color: var(--anthrazit); } /* ab 2.36.0: Zukunft ist planbar */
.ueb-tab td.ueb-zt.geplant input.ueb-z:focus { background: var(--weiss); }
.ueb-tab td.ueb-zt.plan-fehler { box-shadow: inset 0 0 0 2px var(--rot); }
.ueb-tab td.ueb-summe.geplant, .ueb-tab tfoot tr.ueb-fgeplant td.geplant { background: var(--gelb-h); }
.ueb-tab tfoot tr.ueb-fgeplant th { font-weight: 600; }
.ueb-gelb-marke { display: inline-block; padding: 0 6px; border-radius: 3px; background: var(--gelb-h); border: 1px solid var(--gelb-d); color: inherit; }
.ueb-planfehler { margin: 0 0 8px; }
.um-zeit.geplant { background: var(--gelb-h); border-left-color: var(--gelb-d); }
.um-zeit.geplant .um-plan-marke { font-size: .78rem; font-weight: 700; color: var(--gelb-d); }
.um-zeit.plan-fehler { box-shadow: inset 0 0 0 2px var(--rot); }
/* ab 2.36.0: Kanister je Werkstoff (Material kaufen) – der, mit dem gerechnet wird, grün */
.np-kanister { margin: 10px 0 4px; padding: 8px 10px; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--papier); }
.np-kanister-kopf { margin: 0 0 6px; }
.np-kanister-tab td, .np-kanister-tab th { vertical-align: middle; }
.np-kanister-tab tr.np-kanister-an td { background: var(--gruen-h); }

/* ab 2.37.0: Monatsübersicht – Spalte „Pause“ ganz rechts: Pause des Tages eintragen; rot = länger als laut TiMaS */
.ueb-tab .ueb-pause { min-width: 62px; width: 62px; text-align: right; border-left: 2px solid var(--linie-stark); padding: 0; }
.ueb-tab thead th.ueb-pause { min-width: 62px; padding: 3px 8px 4px; text-align: right; }
.ueb-tab thead th.ueb-pause span { max-width: none; }
.ueb-tab tfoot td.ueb-pause { padding: 3px 8px; }
.ueb-tab input.ueb-pz { display: block; width: 100%; min-width: 56px; height: 19px; min-height: 19px; line-height: 19px; border: none; border-radius: 0; background: transparent;
  text-align: right; padding: 0 8px; font-size: .84rem; color: inherit; vertical-align: top; }
.ueb-tab input.ueb-pz:focus { outline: 2px solid var(--anthrazit); outline-offset: -2px; background: var(--weiss); color: var(--anthrazit); }
.ueb-tab input.ueb-pz.geaendert { background: var(--gelb-h); font-weight: 700; color: var(--anthrazit); box-shadow: inset 3px 0 0 var(--gelb); }
.ueb-tab input.ueb-pz.falsch, .ueb-tab input.ueb-pz.nicht-gespeichert { background: var(--rot-h); color: var(--rot); font-weight: 700; box-shadow: inset 3px 0 0 var(--rot); }
.ueb-tab .ueb-pfest { display: block; height: 19px; line-height: 19px; padding: 0 8px; color: var(--g6); cursor: help; }
.ueb-tab td.ueb-pause.pause-vorgemerkt input.ueb-pz { font-style: italic; }
.ueb-tab td.ueb-pause.pause-laenger { box-shadow: inset 0 0 0 2px var(--rot); background: var(--rot-h); }
.ueb-tab td.ueb-pause.pause-laenger input.ueb-pz, .ueb-tab td.ueb-pause.pause-laenger .ueb-pfest { color: var(--rot); font-weight: 700; }
.ueb-pause-marke { display: inline-block; padding: 0 6px; border-radius: 3px; background: var(--rot-h); border: 1px solid var(--rot); color: var(--rot); }

/* ab 2.38.0: novoprint3D – Teil einer Baugruppe ohne eigenes Bild: die Ansichten der ganzen Baugruppe sind gekennzeichnet */
.np-baugruppe-hinweis { margin: 10px 0 4px; padding: 6px 10px; border-left: 3px solid var(--gelb); background: var(--gelb-h); border-radius: var(--radius); color: var(--anthrazit); }
.np-ansichten.np-baugruppe img { opacity: .78; border-style: dashed; }

/* ab 2.39.0: Formel 1 – „keine Mengenstaffel“, Startwerte der Website */
.np-check-klein { margin-top: 6px; font-size: .92em; }
.np-startwerte .btn { margin-left: 6px; vertical-align: baseline; }

/* ab 2.40.0: Adressbuch – für die E-Rechnung nötige Felder (XR) und was einem Kunden fehlt */
.adr-xr-zeichen { font-size: .6rem; font-weight: 700; letter-spacing: .03em; color: var(--rot); margin-left: 3px; vertical-align: super; cursor: help; }
.adr-tab tr.adr-zeile > td > input.adr-xr-fehlt[type], .adr-mehr-innen input.adr-xr-fehlt { border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); background: var(--rot-h); }
.adr-xr-chip { display: block; width: fit-content; margin: 2px 0 0; font-size: .72rem; white-space: normal; }
.adr-xr-chip[hidden], .adr-xr-hinweis[hidden] { display: none; }
.adr-xr-beispiel { border: 2px solid var(--rot); border-radius: 4px; padding: 0 4px; background: var(--rot-h); color: var(--rot); }

/* ab 2.40.0: Wochentag und Datum in der Monatsübersicht führen zum Tag in der Monatsansicht */
.ueb-tab .ueb-tag a.ueb-taglink { color: inherit; text-decoration: none; }
.ueb-tab .ueb-tag a.ueb-taglink:hover .ueb-wt, .ueb-tab .ueb-tag a.ueb-taglink:hover b { text-decoration: underline; text-decoration-color: var(--gelb-d); text-underline-offset: 2px; color: var(--anthrazit); }
.tag .tag-leer { margin: 2px 0 4px; }
/* ab 2.41.0: Verträge – Dokumente und Kündigungen zum Ansehen (Vorschau), per Mail versenden */
.tab .unter.vertrag-doks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.vertrag-doks .chip { text-decoration: none; cursor: pointer; }
.vertrag-doks .chip:hover { border-color: var(--gelb-d); }
.vertrag-dok-tab tr:has(+ .vertrag-mail-zeile) td { border-bottom: 0; padding-bottom: 2px; }
.vertrag-dok-tab .vertrag-mail-zeile td { padding-top: 2px; }
.vertrag-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vertrag-mail input[type=email] { flex: 1 1 200px; min-width: 0; max-width: 340px; }
/* ab 2.41.0: Leistungsnachweis über mehrere Kommissionen – Häkchen in der Abrechnung, je Kommission ein Block */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tab th.sammel-sp, .tab td.sammel-sp { width: 1.8em; padding-left: 6px; padding-right: 0; text-align: center; }
.sammel-leiste { margin: 0 0 10px; gap: 10px; flex-wrap: wrap; align-items: center; }
.auswahl-komm { border-top: 2px solid var(--g3); margin-top: 14px; padding-top: 10px; }
.auswahl-komm:first-of-type { margin-top: 0; }
.auswahl-komm-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 4px; }
.auswahl-komm-kopf .auswahl-kopf { font-size: 1.12rem; }
.auswahl-komm .auswahl { margin-left: 18px; }
/* ab 2.41.0: Monatsübersicht – Kommen–Gehen laut TiMaS (alle Blöcke des Tages) */
.ueb-tab .ueb-stempel { padding: 6px 10px; font-size: .84rem; white-space: nowrap; text-align: left; color: var(--g8); }
/* ab 2.41.0: Versand – Anhänge der E-Mail wählen */
.anhang-wahl { border: 1px solid var(--g2); border-radius: 6px; padding: 6px 10px 8px; margin: 0 0 10px; }
.anhang-wahl legend { padding: 0 4px; color: var(--g6); }
.anhang-wahl .check { display: flex; gap: 6px; align-items: baseline; margin: 3px 0; }

/* ab 2.42.0: Anfragen und Vorgänge */
.raster-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 8px; }
.raster-dl dt { color: var(--g6); }
.raster-dl dd { margin: 0; }
.vorformatiert { white-space: pre-line; }
.mail-text { white-space: pre-wrap; font-family: inherit; font-size: .88rem; max-height: 420px; overflow: auto; background: var(--g1); padding: 10px; border-radius: 6px; }
.liste-einfach { list-style: none; margin: 0 0 6px; padding: 0; }
.liste-einfach li { padding: 4px 0; border-bottom: 1px solid var(--g2); }
.liste-einfach li:last-child { border-bottom: 0; }
.vg-tab td { vertical-align: top; }
.vg-tab .unter { display: block; }
.vg-tab tr.vg-zu td { color: var(--g6); }
.vg-post { margin: -4px 0 8px; }
.vg-hochladen { text-transform: none; letter-spacing: normal; font-size: inherit; cursor: pointer; }
.ln-vorgang { min-width: 160px; }
.ln-vorgang select { max-width: 220px; }
.anfrage-karte dl { margin-bottom: 4px; }
/* 2.43.0: Einheit aller gewählten Positionen */
.pos-einheit-alle { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.pos-einheit-alle select { font-size: 12px; padding: 1px 4px; min-height: 0; width: auto; }
/* 2.43.0: in langen Listen bleibt die Kopfzeile stehen (Simon: „In solchen Tabellen muss immer die oberste Zeile fest
   sein.“). Passt die Tabelle in die Breite (app.js setzt „kopf-seite“), scrollt die Seite und die Kopfzeile bleibt unter
   der Menüleiste stehen; ist sie breiter (bzw. ohne Skript), scrollt sie in ihrem Rahmen – höchstens so hoch wie das
   Fenster unter der Menüleiste –, die Kopfzeile oben im Rahmen. */
.scroll { overflow: auto; max-height: calc(100vh - var(--oben, 110px) - 16px); }
.scroll > table.tab > thead { position: sticky; top: 0; z-index: 3; }
.scroll > table.tab > thead th { background: var(--kopf-ton); }
.scroll.kopf-seite { overflow: visible; max-height: none; }
.scroll.kopf-seite > table.tab > thead { top: var(--tab-oben, var(--oben, 0px)); }
@media print { .scroll, .scroll.kopf-seite { max-height: none; overflow: visible; } .scroll > table.tab > thead { position: static; } }
/* 2.43.0: Vorgänge – Kommissionen, Kategorien, LN als Links, „ausgewählt“ */
.vg-komms { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.vg-komm { font-size: .8rem; color: var(--g7); text-decoration: none; border-bottom: 1px dotted var(--g4); }
.vg-komm:hover { color: var(--anthrazit); border-bottom-color: var(--gelb-d); }
.vg-kat { min-width: 96px; }
.vg-katwahl > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 3px; }
.vg-katwahl > summary::-webkit-details-marker { display: none; }
.vg-katplus { display: inline-block; padding: 0 7px; border: 1px dashed var(--g3); border-radius: 999px; }
.vg-katwahl:not([open]) > summary:hover .vg-katplus { border-color: var(--gelb-d); color: var(--anthrazit); }
.vg-katform { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; min-width: 230px; padding: 8px 10px; background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); }
.vg-katform input[type=text] { width: 100%; }
.vg-ln { min-width: 110px; }
.vg-lnnr { display: block; font-size: .85rem; white-space: nowrap; }
.vg-lnnr.vg-ab { color: var(--g6); }
.vg-lnnr.vg-ab::after { content: " ✓"; color: var(--gruen); }
.vg-ausw .chip { text-decoration: none; white-space: nowrap; }
.vg-lnwahl { list-style: none; margin: 4px 0 8px; padding: 0; }
.vg-lnwahl li { padding: 2px 0; white-space: nowrap; }
.tab tr.vg-nachricht > td:first-child { box-shadow: inset 4px 0 0 var(--gelb); }
.vg-kliste li, .vg-nliste li { padding: 3px 0; }
.vg-kommdazu select { max-width: 100%; }
/* 2.44.0: Vorgänge mit Nummer – „Zum Vorgang“, Spalte „zugeordnete Kommissionen“, LN zusammenstellen, Seite des Vorgangs */
.vg-zum { white-space: nowrap; }
.vg-zum-nr { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 4px; color: var(--g7); }
.vg-nr { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vg-vorgang { min-width: 150px; }
.vg-kopfnr { font-variant-numeric: tabular-nums; color: var(--g7); margin-right: 4px; }
.vg-kommsp { min-width: 110px; }
.vg-kommwahl > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.vg-kommwahl > summary::-webkit-details-marker { display: none; }
.vg-kommwahl:not([open]) > summary:hover .vg-katplus { border-color: var(--gelb-d); color: var(--anthrazit); }
.vg-kommwahl:not([open]) > summary:hover .vg-komm { color: var(--anthrazit); border-bottom-color: var(--gelb-d); }
.vg-komm.vg-haupt { font-weight: 600; }
.vg-lnzus { margin-top: 6px; text-align: left; }
.vg-lnzus > summary { list-style: none; display: inline-flex; white-space: nowrap; }
.vg-lnzus > summary::-webkit-details-marker { display: none; }
.vg-lnform { margin-top: 6px; min-width: 340px; max-width: 520px; padding: 10px 12px; background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); }
.vg-lnform .vg-lnwahl { max-height: 320px; overflow: auto; }
.vg-lnform select { max-width: 100%; }
.vg-lnknoepfe { gap: 6px; flex-wrap: wrap; }
.vg-seite .kette-beleg .unter { display: block; }
.vg-auftragneu { margin-top: 6px; }
.vg-auftragneu form { margin-top: 8px; }
.vg-titel form { margin-top: 6px; }
.vg-katseite { margin-top: 0; border: 0; padding: 0; min-width: 0; }
.vg-chatliste { max-height: 520px; overflow: auto; padding: 4px 2px; margin-bottom: 10px; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--g1); }
.vg-chatn { background: var(--weiss); border: 1px solid var(--g2); border-radius: 8px; padding: 6px 10px; margin: 6px 4px; }
.vg-chatn.eigen { border-color: var(--gelb); }
.vg-chatn.system, .vg-chatn.geloescht { background: transparent; border-style: dashed; }
.vg-chatkopf { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.vg-chattext p { margin: 2px 0; }
.vg-chatform textarea { width: 100%; }
.vg-korr .feld select { max-width: 100%; }
.vg-verlauf li { padding: 3px 0; }
.vg-seite .unter, .vg-nliste .unter { display: block; } /* eigene Zeile (wie in Tabellen): Verlauf, Kette, Nachrichten */
.vg-kommvorg { margin: -4px 0 10px; gap: 6px; flex-wrap: wrap; }
.vg-bzu { display: inline-block; vertical-align: top; position: relative; }
.vg-bzu > summary { list-style: none; display: inline-flex; white-space: nowrap; }
.vg-bzu > summary::-webkit-details-marker { display: none; }
.vg-bzu .vg-bzuform { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 300px; max-width: 360px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.vg-bzu .vg-bzuform select { max-width: 100%; }
.vg-tab .vg-bzu { display: block; position: static; }
.vg-tab .vg-bzu .vg-bzuform { position: static; box-shadow: none; min-width: 230px; }
/* ab 2.45.0: Eingangsrechnungen – Prüfung und Inhalt der E-Rechnung */
.eingang-pruefung.rot-rand { border-left: 4px solid var(--rot); }
.eingang-pruefung ul { margin: 0 0 8px; }
.eingang-pruefung li { padding: 3px 0; }
.er-inhalt .er-kopf { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 10px; font-size: .9rem; }
.er-inhalt .er-kopf dt { color: var(--g6); }
.er-inhalt .er-kopf dd { margin: 0; overflow-wrap: anywhere; }
.er-inhalt .er-summen { width: auto; min-width: 60%; margin: 8px 0 4px auto; }
.er-inhalt .er-pos td:nth-child(2) { min-width: 160px; }
/* ab 2.47.0: Löschen mit zweitem Admin, ein Eingang für alles, Bestellungen von Kunden, Angebote von Lieferanten */
.hinweis.gruen { background: var(--gruen-h); border-color: var(--gruen); color: inherit; }
.loesch-antrag p { margin: 0 0 6px; }
.loesch-antrag .zeile { gap: 6px; flex-wrap: wrap; }
details.loeschen[open] > form { max-width: 460px; }
.eingang-arten td:first-child { white-space: nowrap; }
.la-vorschau { width: 100%; min-height: 640px; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--weiss); }
.la-bild { max-width: 100%; border: 1px solid var(--g2); border-radius: var(--radius); }
.gelb-zeile > td { background: var(--gelb-h); }
/* ab 2.48.0: Vorschläge der lokalen KI – blau abgesetzt (Korrekturvorschlag: gelb), übernommen wird nur mit Klick */
.ki-karte { border: 1px solid var(--g2); border-left: 4px solid var(--f-1f5e99); border-radius: var(--radius); background: var(--weiss); padding: 10px 14px; margin: 10px 0; }
.ki-karte.korrektur { border-left-color: var(--gelb-d); }
.chip.ki { background: var(--f-e3edf9); color: var(--f-1f5e99); }
.ki-kopf { margin-bottom: 4px; }
.ki-text, .ki-lang { white-space: pre-line; }
.ki-text { margin: 4px 0; }
.ki-felder { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 6px 0; }
.ki-felder dt { color: var(--g6); }
.ki-felder dd { margin: 0; overflow-wrap: anywhere; }
.ki-liste { margin: 6px 0; padding-left: 18px; }
.ki-formel { font-family: Consolas, "Courier New", monospace; color: var(--g7); margin: 4px 0; }
.ki-hinweis { color: var(--g7); margin: 4px 0; }
.ki-hinweis::before { content: "Hinweis: "; font-weight: 600; }
.ki-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ki-aendern { margin-top: 6px; }
.ki-aendern > summary { cursor: pointer; color: var(--g7); font-size: .9rem; }
.ki-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 12px; margin: 8px 0; }
.ki-raster .feld.breit { grid-column: 1 / -1; }
.ki-quelle { margin: 6px 0 0; }
.ki-ausstehend { margin: 6px 0; }
.ki-funktionen td:first-child { width: 1%; white-space: nowrap; }
@media (max-width: 640px) { .ki-felder { grid-template-columns: 1fr; } .ki-felder dt { margin-top: 4px; } }
.ln-text { margin: 10px 0 0; }
.ln-text-vorschau { white-space: pre-line; color: var(--g7); margin: 4px 0 0; }
.ln-text textarea { width: 100%; }
.ki-zu { margin: 14px 0 -4px; font-size: .92rem; }
.ki-liste .unter { display: block; color: var(--g6); font-size: .82rem; }

/* ab 2.49.0: Erklärung der Seite (oben rechts, aus dem Handbuch) und Rückfragen an der Anfrage */
/* ab 2.49.1: Der Knopf schwebt nur neben dem Seitenkopf. Vor allem anderen (Chat, Beleg-Editor, Handy-Seiten der
   Werkstatt) steht er in einer eigenen Zeile – sonst würde der ganze Block dahinter um seine Breite schmaler. */
details.erkl { position: relative; z-index: 30; display: block; text-align: right; margin: -6px 0 6px; }
main > details.erkl:has(+ .seitenkopf) { float: right; margin: 0 0 6px 12px; }
details.erkl + .chat { height: calc(100vh - var(--kopf-h, 61px) - 30px - 28px); }
@media print { details.erkl { display: none !important; } }
details.erkl > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--g3); background: var(--weiss); color: var(--anthrazit); font-size: .82rem; font-weight: 600; }
details.erkl > summary::-webkit-details-marker { display: none; }
details.erkl > summary:hover, details.erkl[open] > summary { border-color: var(--gelb-d); }
details.erkl[data-sa] > summary { border-style: dashed; }
.erkl-feld { position: absolute; right: 0; top: calc(100% + 6px); width: min(560px, calc(100vw - 32px)); max-height: 72vh; overflow: auto; background: var(--weiss); color: var(--anthrazit); border: 1px solid var(--g3); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 14px 16px; text-align: left; }
.erkl-feld h2 { font-size: 1.05rem; margin: 0 0 6px; }
.erkl-feld h3 { font-size: .9rem; margin: 12px 0 4px; }
.erkl-feld ol, .erkl-feld ul { margin: 0; padding-left: 20px; }
.erkl-feld li { margin: 3px 0; }
.erkl-kurz { margin: 0; }
.erkl-quelle { margin: 12px 0 0; }
.erkl-feld .ki-karte { margin: 10px 0 0; }
ul.einfach { list-style: none; padding: 0; margin: 0; }
.scroll.ki-scroll { max-height: none; }
ul.einfach li { margin: 3px 0; }
@media (max-width: 640px) { details.erkl, main > details.erkl:has(+ .seitenkopf) { float: none; display: block; text-align: left; margin: 0 0 8px; } .erkl-feld { position: static; width: auto; margin-top: 6px; } }

/* ab 2.50.0: Reiter „Zuordnen“ – Herkunft, Vorschlag, eindeutige Zeilen grün */
.btn.gruen { background: var(--gruen-f); border-color: var(--gruen-f); color: #fff; }
.btn.gruen:hover { filter: brightness(.9); }
.zu-tab td { vertical-align: top; }
.zu-tab .unter { display: block; }
.zu-herkunft { white-space: nowrap; }
.chip.zu-mail { background: var(--f-e8f0fb); color: var(--f-1f4f7a); }
tr.zu-sicher > td:first-child { box-shadow: inset 3px 0 0 var(--gruen); }
.zu-aktion { white-space: nowrap; }
.zu-aktion form.inline { margin: 0 4px 4px 0; }
.zu-aendern { display: inline-block; vertical-align: top; }
.zu-aendern[open] { display: block; margin-top: 6px; white-space: normal; }
.zu-aendern > summary { list-style: none; }
.zu-aendern > summary::-webkit-details-marker { display: none; }
.zu-form { flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.zu-form select { max-width: 280px; }
.zu-was b { word-break: break-word; }
@media (max-width: 640px) { .zu-aktion { white-space: normal; } .zu-form select { max-width: 100%; } }
.vg-neu { display: inline-block; position: relative; }
.vg-neu > summary { list-style: none; }
.vg-neu > summary::-webkit-details-marker { display: none; }
.vg-neu[open] .vg-neuform { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--weiss); border: 1px solid var(--g3); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 10px 12px; flex-wrap: wrap; gap: 6px; width: min(520px, calc(100vw - 32px)); }
.vg-neuform select, .vg-neuform input[type=text] { flex: 1 1 200px; min-width: 0; }
@media (max-width: 640px) { .vg-neu { display: block; } .vg-neu[open] .vg-neuform { position: static; width: auto; margin-top: 6px; } }
.zu-wartet .zeile { margin-top: 6px; gap: 6px; }
.erkl-warten { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.erkl-punkte { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gelb-d); border-top-color: transparent; animation: erkl-dreh 1s linear infinite; flex: none; }
@keyframes erkl-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .erkl-punkte { animation: none; } }

/* ab 2.51.0: zwei Uhren gleichzeitig (Stempeln) – je Uhr ein Block, darunter Pause/Feierabend für beide */
.jetzt.jetzt-zwei + .jetzt.jetzt-zwei { border-top: 1px dashed var(--g3); padding-top: 14px; margin-top: 14px; }
.jetzt-beide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--g2); }
.jetzt-beide form { margin: 0; }
.jetzt-hinweis { margin: 10px 0 0; }
.chip.parallel { background: var(--gelb-h); color: var(--f-7a5f00); }
/* ab 2.59.3: „Es läuft schon eine Uhr – zweite Uhr dazu oder wechseln?“ */
.uhr-frage { border-left: 3px solid var(--gelb-d); }
.uhr-frage form { gap: 8px; margin-top: 12px; }

/* ab 2.52.0: Chat „Fragen zum Programm“ (lokale KI) */
.chat-symbol.chat-ki { background: var(--f-e3edf9); color: var(--f-1f5e99); }
.chat-n.ki .chat-kreis { background: var(--f-e3edf9); color: var(--f-1f5e99); }
.chat-n.ki .chat-blase { border-left: 3px solid var(--f-1f5e99); }
.chat-ki-start { padding: 8px 14px; border-top: 1px solid var(--g2); margin: 0; }
.chat-ki-start .btn { width: 100%; justify-content: center; }
.chat-ki-fuss { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.chat-ki-seiten { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-ki-seite { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chat-ki-gemerkt { color: var(--f-1d6b40); }
.chat-ki-quelle { color: var(--g6); }
.chat-ki-wartet { margin-top: 6px; font-style: italic; }
.chat-ki-hinweis { margin: 0 0 6px; padding: 6px 10px; border-radius: 6px; background: var(--g1); color: var(--anthrazit); }
.chat-ki-hinweis.warn { background: var(--gelb-h); color: var(--f-7a5f00); }

/* ---------- ab 2.53.0 ---------- */
/* Knöpfe je Zeile der Vorgänge (Spalte „neu“) */
.btn.mini { font-size: .74rem; padding: 2px 7px; min-height: 22px; font-weight: 500; line-height: 1.2; }
.vg-neu-knoepfe { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; min-width: 140px; }
.vg-neu-knoepfe form { display: inline-block; margin: 0; }
/* ab 2.67.3: Karte „Texte aus dem Vorgang“ im Entwurf der Abschlagsrechnung */
.vt-gruppe { margin: 8px 0 10px; padding-top: 6px; border-top: 1px solid var(--g2); }
.vt-gruppe .vt-kopf { margin-bottom: 2px; }
.vt-gruppe .vt-zeile { display: flex; align-items: flex-start; gap: 6px; padding-left: 18px; line-height: 1.35; }
.vt-gruppe .vt-zeile span { overflow-wrap: anywhere; }
/* ab 2.67.2: „+ Rechnung ▾“ – Rechnung, Abschlagsrechnung oder Schlussrechnung (öffnet den Vorgang mit dem Formular) */
.vg-rechwahl { display: inline-block; }
.vg-rechwahl[open] { flex-basis: 100%; }
.vg-rechwahl > summary { list-style: none; cursor: pointer; }
.vg-rechwahl > summary::-webkit-details-marker { display: none; }
.vg-rechwahl-menu { display: flex; flex-direction: column; gap: 2px; width: max-content; margin-top: 4px; padding: 6px 10px; background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); }
.vg-rechwahl-menu a { font-size: .82rem; white-space: nowrap; padding: 2px 0; }
/* „keine Anfrage?“ in der Kette */
.vg-als { display: inline-block; margin-left: 6px; }
.vg-als > summary { list-style: none; cursor: pointer; font-size: .8rem; }
.vg-als > summary::-webkit-details-marker { display: none; }
.vg-als[open] form { margin-top: 4px; }
/* Dialog „Vorgang abschließen“ */
.vg-abschluss { position: relative; }
.vg-abschluss[open] > form { position: absolute; right: 0; z-index: 20; width: min(520px, 90vw); margin-top: 6px; padding: 14px 16px;
  background: var(--weiss); border: 1px solid var(--g2); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.vg-abschlussliste li { margin: 4px 0; }
/* Gesamtübersicht: abgeschlossene Kommission ausgegraut und mit großem Kreuz durchgestrichen */
.raster-tab tr.komm-zu > td { opacity: .5; }
.raster-tab tr.komm-zu { background-image:
  linear-gradient(to top right, transparent calc(50% - 1.2px), var(--g6) calc(50% - 1.2px), var(--g6) calc(50% + 1.2px), transparent calc(50% + 1.2px)),
  linear-gradient(to bottom right, transparent calc(50% - 1.2px), var(--g6) calc(50% - 1.2px), var(--g6) calc(50% + 1.2px), transparent calc(50% + 1.2px));
  background-repeat: no-repeat; background-size: 100% 100%; }
.raster-tab tr.komm-zu > td { background-color: transparent !important; }
.komm-zu-chip { color: var(--g7); font-weight: 600; }
/* ab 2.53.0: mehr Punkte in der Leiste (Eingang, Team-Zeiten) – auf normalen Bildschirmen enger, damit alles in eine Zeile passt */
@media (min-width: 1101px) and (max-width: 1750px) { .nav { gap: 1px; } .nav a { padding: 7px 6px; font-size: .87rem; } }
/* ab 2.53.0: Meine Zeiten → Übersicht – Spalten einer abgeschlossenen Kommission ausgegraut; die Felder sind gesperrt */
.ueb-rahmen { position: relative; }
.ueb-tab tbody tr td.ueb-zu { background-color: var(--g1); color: var(--g4); }
.ueb-tab td.ueb-zu .ueb-fest { background: none; color: var(--g4); cursor: not-allowed; }
.ueb-tab td.ueb-zu > span { opacity: .6; }
.ueb-tab tfoot td.ueb-zu { color: var(--g4); }
.ueb-tab thead th.ueb-sp.ueb-zu > b, .ueb-tab thead th.ueb-sp.ueb-zu > span:not(.ueb-zu-chip) { opacity: .45; }
.ueb-tab thead th.ueb-sp span.ueb-zu-chip { color: var(--g7); font-weight: 700; font-size: .72rem; }
/* ab 2.58.6: das Kreuz nur im Spaltenkopf (vorher über allen Tageszeilen) – die Zellen darunter nur ausgegraut */
.ueb-tab thead th.ueb-sp.ueb-zu { background-image:
  linear-gradient(to top right, transparent calc(50% - 1px), var(--g4) calc(50% - 1px), var(--g4) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(to bottom right, transparent calc(50% - 1px), var(--g4) calc(50% - 1px), var(--g4) calc(50% + 1px), transparent calc(50% + 1px));
  background-repeat: no-repeat; background-size: 100% 100%; }
/* ab 2.54.0: lokale KI – Chat „Fragen zum Programm“ (Modus Verbesserungsvorschlag, denkt nach, unsicher, Notiz) und Seite „Lokale KI“ */
.chat-ki-modus { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 12px; padding: 8px 12px;
  border: 1px solid var(--gelb-d); border-left: 4px solid var(--gelb); border-radius: var(--radius); background: var(--gelb-h); font-size: .9rem; }
.ki-modus-vorschlag [data-ki-verb] { display: none; }
.chat-ki-denkt { margin: 6px 12px; padding: 8px 12px; border: 1px dashed var(--g3); border-radius: var(--radius); background: var(--g1); font-size: .85rem; }
.chat-ki-denkt-info { color: var(--g7); font-weight: 600; }
.chat-ki-denkt-text, .ki-denken { margin: 6px 0 0; max-height: 9.5em; overflow: hidden; white-space: pre-wrap; color: var(--g6); font-size: .8rem; font-family: inherit; }
.chat-ki-unsicher { margin-top: 4px; color: var(--rot); font-weight: 600; }
.chat-ki-notiz { margin-top: 6px; }
.chat-ki-verb { margin: 8px 0 4px; padding: 8px 10px; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--weiss); }
.chat-ki-verb-felder { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 6px 0; font-size: .85rem; }
.chat-ki-verb-felder dt { color: var(--g6); }
.chat-ki-verb-felder dd { margin: 0; white-space: pre-wrap; }
.chat-ki-verb-knopf { margin-top: 6px; }
.ki-live-zeile { padding: 6px 0; border-bottom: 1px solid var(--g1); }
.ki-notiz { padding: 8px 0; border-bottom: 1px solid var(--g1); }
.ki-notiz.offen { background: var(--gelb-h); padding: 8px; border-radius: var(--radius); }
.ki-notiz .zeile { margin-top: 4px; }
.ki-wissen-text, .verb-prompt { white-space: pre-wrap; font-family: inherit; font-size: .85rem; background: var(--g1); padding: 8px; border-radius: var(--radius); max-height: 30em; overflow: auto; }
.verb-status select, .verb-status input { min-height: 30px; }
.ki-unsicher { color: var(--rot); font-weight: 600; margin: 4px 0; }
/* ab 2.55.0: Knopf „🤖“ (Frage bzw. Verbesserung zu dieser Seite) – schmale Lasche am linken Rand über dem Fähnchen */
.ki-knopf { position: fixed; left: 0; bottom: 18px; z-index: 80; }
.ki-knopf.neben-fahne { bottom: 66px; }
.ki-knopf > summary { list-style: none; display: inline-flex; align-items: center; padding: 8px 10px 8px 9px; border: 1px solid var(--g3); border-left: 0; border-radius: 0 999px 999px 0;
  background: var(--weiss); color: var(--anthrazit); box-shadow: 0 6px 18px rgba(0,0,0,.16); cursor: pointer; font-size: 1.05rem; line-height: 1.2; }
.ki-knopf > summary::-webkit-details-marker { display: none; }
.ki-knopf > summary:hover, .ki-knopf > summary:focus-visible { border-color: var(--gelb-d); }
.ki-knopf[open] > summary { background: var(--gelb); border-color: var(--gelb-d); }
.ki-knopf-menue { position: absolute; left: 8px; bottom: calc(100% + 6px); display: grid; gap: 6px; min-width: 15rem; padding: 10px; border: 1px solid var(--g3); border-radius: var(--radius);
  background: var(--weiss); box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.ki-knopf-menue form, .ki-knopf-menue p { margin: 0; }
.ki-knopf-menue .btn { width: 100%; justify-content: flex-start; text-align: left; }
.chat-fenster .ki-knopf { display: none; }
@media print { .ki-knopf { display: none !important; } }
/* ab 2.55.0: Chat mit HegerKI – „👎“ unter Antworten, Band „Frage zur Seite“ */
.chat-ki-daumen { margin-top: 6px; }
.chat-ki-daumen > summary { list-style: none; display: inline-flex; cursor: pointer; }
.chat-ki-daumen > summary::-webkit-details-marker { display: none; }
.chat-ki-daumen[data-an] > summary { background: var(--gelb-h); border-color: var(--gelb-d); }
.chat-ki-rueck { display: grid; gap: 6px; max-width: 38rem; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--weiss); }
.chat-ki-rueck textarea { width: 100%; font: inherit; }
.chat-ki-rueck .check { font-size: .82rem; align-items: flex-start; }
.chat-ki-seitenband { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 12px; padding: 6px 12px;
  border: 1px solid var(--g3); border-left: 4px solid var(--anthrazit); border-radius: var(--radius); background: var(--g1); }
.chat-ki-seitenband form { margin: 0; }
/* ab 2.55.0: Verbesserungsvorschläge – von HegerKI, Bilder, Themen, Rückmeldungen; Lokale KI – Quellen */
.verb-ki { border-left: 4px solid var(--gelb); }
.verb-ki-chip { background: var(--gelb-h); color: var(--anthrazit); letter-spacing: 0; }
.verb-lernen p { margin: 0; }
.verb-bilder-liste { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.verb-bilder-liste img { display: block; max-width: 220px; max-height: 140px; object-fit: contain; border: 1px solid var(--g3); border-radius: var(--radius); background: var(--g1); }
.verb-themen, .verb-rueck { list-style: none; margin: 8px 0 0; padding: 0; }
.verb-themen li, .verb-rueck li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--g1); }
.verb-themen li > span:first-child, .verb-rueck li > span:first-child { flex: 1 1 14rem; }
.verb-bilder { margin: 10px 0; padding: 8px 10px; border: 1px solid var(--g2); border-radius: var(--radius); }
.verb-bilder legend { padding: 0 4px; }
.verb-bilder .check { margin: 2px 0; }
.ki-quellen td form { margin: 0; }
.ki-quellen .unter { display: block; }
/* ab 2.56.0: Seite „Lokale KI“ – Auslastung (Säulen je Stunde: Hintergrund unten, pausiert darüber; Chat darunter) */
.ki-last { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; margin: 10px 0 12px; }
.ki-last-std { display: flex; flex-direction: column; gap: 3px; padding: 3px 2px 2px; border-radius: 4px; }
.ki-last-std.nacht { background: var(--g1); }
.ki-last-std.jetzt { outline: 1px dashed var(--g6); outline-offset: -1px; }
.ki-last-saeule { height: 90px; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--g3); }
.ki-last-saeule span, .ki-last-chat span { display: block; width: 100%; }
.ki-last-saeule .hinter { background: var(--gelb); border-radius: 2px 2px 0 0; }
.ki-last-saeule .pause { background: repeating-linear-gradient(135deg, var(--schraffur-s) 0 3px, transparent 3px 6px); }
.ki-last-chat { height: 18px; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--g2); }
.ki-last-chat span { background: var(--f-4a7fc1); }
.ki-last-std.leer .ki-last-saeule { border-bottom-style: dotted; }
.ki-last-uhr { font-size: .7rem; color: var(--g6); text-align: center; font-variant-numeric: tabular-nums; }
.ki-last-farbe { display: inline-block; width: .9em; height: .9em; border-radius: 2px; vertical-align: -1px; }
.ki-last-farbe.lf-hinter { background: var(--gelb); }
.ki-last-farbe.lf-chat { background: var(--f-4a7fc1); }
.ki-last-farbe.lf-pause { background: repeating-linear-gradient(135deg, var(--schraffur-s) 0 3px, transparent 3px 6px); border: 1px solid var(--g3); }
.ki-last-tage th .unter { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
.ki-last-tage tr.heute td { font-weight: 600; }
/* ab 2.56.0: Beleg – Hinweis „Anschriftfeld weicht von den Stammdaten ab“ (rechts im Kopf) */
.bs-karte .anschrift-ab { margin: 2px 0 10px; padding: 6px 10px; box-shadow: none; line-height: 1.5; }
.bs-karte .anschrift-ab .btn { margin-left: 4px; vertical-align: baseline; }
/* ab 2.56.0: Monatsübersicht – Zeile „andere an der Kommission“ (Kürzel, gesamt bis heute, im Monat) */
.ueb-fandere td.ueb-andere { text-align: left; vertical-align: top; font-size: .86rem; line-height: 1.5; }
.ueb-fandere td.ueb-andere div { white-space: nowrap; }
.ueb-fandere td.ueb-andere b { display: inline-block; min-width: 3em; }
/* ab 2.56.0: Kommission – Abrechnung je Monat (Zeilen als Raster, je Monat aufklappbar) */
.komm-abr-zeile { display: grid; grid-template-columns: minmax(120px, 1.1fr) repeat(4, minmax(78px, .6fr)) minmax(200px, 2.4fr); gap: 4px 12px; align-items: baseline; padding: 6px 8px; }
.komm-abr-kopf { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--g6); border-bottom: 1px solid var(--g2); }
.komm-abr-monat { border-bottom: 1px solid var(--g1); }
.komm-abr-monat > summary { cursor: pointer; list-style: none; }
.komm-abr-monat > summary::-webkit-details-marker { display: none; }
.komm-abr-monat > summary > span:first-child::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--g6); }
.komm-abr-monat[open] > summary > span:first-child::before { content: "▾"; }
.komm-abr-monat > summary:hover { background: var(--g1); }
.komm-abr-zeile .zahl { text-align: right; }
.komm-abr-ln { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.komm-abr-lnx { white-space: nowrap; }
.komm-abr-innen { padding: 4px 8px 12px 28px; }
.komm-abr-innen .tab { margin-bottom: 6px; }
.komm-abr-summe { border-top: 2px solid var(--g2); }
/* ab 2.57.0: 🤖-Hinweis – Stand der KI an einer Stelle (statt „KI-Prüfung ausstehend“) */
.ki-stand { margin: 6px 0; font-size: .86rem; color: var(--g6); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ki-stand.ki-vorschlag, .ki-stand.ki-fehler { color: inherit; }
.ki-stand.ki-laeuft { color: var(--f-4a7fc1); }
.ki-stand form.inline { display: inline; }
.ki-mini { display: inline-flex; align-items: center; gap: 1px; margin-left: 6px; padding: 0 5px; border-radius: 9px; font-size: .78rem; line-height: 1.5; text-decoration: none; border: 1px solid var(--g2); background: var(--g1); color: var(--g6); vertical-align: baseline; }
.ki-mini b { font-weight: 600; }
.ki-mini.ki-vorschlag { background: var(--gelb-h); border-color: var(--gelb); color: inherit; }
.ki-mini.ki-laeuft { border-color: var(--f-4a7fc1); }
.ki-vorgang { margin: -4px 0 10px; }
/* ab 2.57.0: Einsortieren prüfen – Spalte „KI“ und Knöpfe je Zeile */
.vg-artpruef td.nowrap { white-space: nowrap; }
.vg-artpruef .vg-artki { max-width: 340px; }
.vg-artpruef .vg-artki .ki-stand { display: inline-flex; margin: 0; }
.vg-artpruef .zeile { margin: 6px 0 10px; }
/* ab 2.57.0: „+ Rechnung im Vorgang“ – breiter als die üblichen Aufklapp-Formulare */
details.aufklapp.vg-rechnungneu { display: block; margin-top: 6px; }
details.aufklapp.vg-rechnungneu[open] > form { max-width: 640px; }
details.aufklapp.vg-rechnungneu .check { margin: 4px 0; }
/* ---------- ab 2.58.0: freier KI-Chat „💬 KI-Chat“ ---------- */
/* Knopf im Kopf (ab 2.58.2 ein Link zur Seite des KI-Chats) */
.kichat-knopf { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--marke-linie); border-radius: 4px;
  color: var(--auf-dunkel); text-decoration: none; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.kichat-knopf:hover { border-color: var(--gelb); }
.kichat-knopf.aktiv { background: var(--gelb); border-color: var(--gelb); color: var(--auf-gelb); }
/* Seite */
.kfchat { display: grid; grid-template-columns: 270px minmax(0, 1fr); height: calc(100vh - var(--kopf-h, 61px) - 30px); min-height: 460px;
  background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); overflow: hidden; }
main.breit:has(> .kfchat) { padding-top: 14px; padding-bottom: 12px; }
.kf-seite { display: flex; flex-direction: column; border-right: 1px solid var(--g2); background: var(--f-fbfbf9); min-height: 0; }
.kf-seite-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 8px; }
.kf-seite-kopf h1 { font-size: 1.15rem; margin: 0; }
.kf-suche { padding: 0 14px 10px; margin: 0; }
.kf-suche input { width: 100%; }
.kf-liste { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.kf-eintrag { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; padding: 8px 14px; text-decoration: none; color: var(--anthrazit); border-left: 3px solid transparent; }
.kf-eintrag:hover { background: var(--g1); }
.kf-eintrag.aktiv { background: var(--gelb-h); border-left-color: var(--gelb); }
.kf-eintrag-titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.kf-eintrag-zeit { flex-basis: 100%; font-size: .74rem; color: var(--g6); }
/* ab 2.62.0: Gerade bei der KI (unten in der Seitenleiste) */
.kf-schlange { flex: 0 0 auto; max-height: 45%; overflow-y: auto; border-top: 1px solid var(--g2); padding: 8px 14px 10px; font-size: .8rem; }
.kf-schlange h3 { margin: 0 0 4px; font-size: .86rem; }
.kf-schlange p { margin: 2px 0; }
.kf-sch-teil + .kf-sch-teil { margin-top: 6px; }
.kf-sch-titel { display: block; margin: 4px 0 2px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--g6); }
.kf-sch-liste { list-style: none; margin: 0; padding: 0; }
.kf-sch-zeile { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; margin: 2px 0; padding: 2px 0 2px 8px; border-left: 3px solid var(--g3); }
.kf-sch-zeile.laeuft { border-left-color: var(--gruen); }
.kf-sch-zeile.eigen { background: var(--gelb-h); border-left-color: var(--gelb); }
.kf-sch-wer { font-weight: 600; }
.kf-sch-art { color: var(--g6); }
.kf-sch-stand { flex-basis: 100%; font-size: .74rem; color: var(--g6); }
.kf-sch-zeit { flex-basis: 100%; font-size: .74rem; color: var(--g6); cursor: help; } /* ab 2.66.0: Zeitschätzung mit Formel */
.kf-sch-pause { padding: 3px 6px; background: var(--gelb-h); border-radius: 4px; }
.kf-haupt { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.kf-kopf { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--g2); }
.kf-titel { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; }
.kf-titel h2 { margin: 0; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-menue { position: relative; }
.kf-menue > summary { list-style: none; }
.kf-menue > summary::-webkit-details-marker { display: none; }
.kf-menue-inhalt { position: absolute; z-index: 20; top: 110%; left: 0; min-width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 10px;
  background: var(--dlg-bg); border: 1px solid var(--g3); border-radius: var(--radius); box-shadow: 0 4px 14px var(--schatten-1); }
.kf-menue-inhalt form { margin: 0; }
.kf-stufe { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .86rem; }
.kf-ohne { margin: 0; padding: 6px 16px; font-size: .8rem; color: var(--g6); background: var(--g1); border-bottom: 1px solid var(--g2); }
.kf-pause { margin: 0; padding: 6px 16px; font-size: .84rem; background: var(--gelb-h); border-bottom: 1px solid var(--g2); }
.kf-verlauf { flex: 1 1 auto; overflow-y: auto; padding: 12px 18px 10px; background: var(--f-f7f6f2); min-height: 0; }
.kf-start { max-width: 640px; margin: 24px auto; color: var(--g7); }
.kf-system { text-align: center; color: var(--g6); font-size: .82rem; margin: 10px 0; }
.kf-system.warn { color: var(--rot); }
.kf-n { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.kf-n.eigen { flex-direction: row-reverse; }
.kf-kreis { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--kopf-bg); color: var(--gelb); font-size: .68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; color-scheme: light; }
.kf-blase { background: var(--weiss); border: 1px solid var(--g2); border-radius: 10px; padding: 7px 11px 8px; max-width: min(820px, 88%); min-width: 0; }
.kf-n.eigen .kf-blase { background: var(--gelb-h); border-color: var(--f-f0dd99); }
.kf-n.werkzeug .kf-blase { border-style: dashed; }
.kf-n-kopf { font-size: .8rem; color: var(--g6); margin-bottom: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.kf-n-kopf b { color: var(--anthrazit); }
.kf-chip { font-size: .72rem; padding: 0 6px; border-radius: 9px; background: var(--g1); border: 1px solid var(--g2); }
.kf-chip.rot { color: var(--rot); border-color: var(--rot); }
.kf-chip.grau { color: var(--g6); }
.kf-text { line-height: 1.45; overflow-wrap: anywhere; }
.kf-text p, .kf-text li, .kf-text blockquote { margin: 0; white-space: pre-wrap; }
.kf-text p + p, .kf-text p + ul, .kf-text p + ol, .kf-text ul + p, .kf-text ol + p, .kf-text blockquote + p, .kf-text p + blockquote { margin-top: 6px; }
.kf-text ul, .kf-text ol { margin: 4px 0; padding-left: 1.4em; }
.kf-text blockquote { border-left: 3px solid var(--g3); padding: 1px 0 1px 8px; color: var(--g7); margin: 6px 0; }
.kf-text code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--g1); border: 1px solid var(--g2); border-radius: 3px; padding: 0 3px; }
.kf-text a { color: var(--f-1f5e99); }
.kf-text hr { border: 0; border-top: 1px solid var(--g2); margin: 10px 0; }
.kf-h1, .kf-h2, .kf-h3 { margin: 10px 0 4px; line-height: 1.3; }
.kf-h1 { font-size: 1.08rem; }
.kf-h2 { font-size: 1rem; }
.kf-h3 { font-size: .94rem; }
.kf-text > :first-child { margin-top: 0; }
.kf-code { margin: 6px 0; border: 1px solid var(--g2); border-radius: 6px; overflow: hidden; background: var(--g1); }
.kf-code-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 6px 3px 10px; font-size: .76rem; color: var(--g6); border-bottom: 1px solid var(--g2); }
.kf-code pre { margin: 0; padding: 8px 10px; overflow-x: auto; white-space: pre; font-family: Consolas, "Cascadia Mono", monospace; font-size: .86rem; }
.kf-tab { margin: 6px 0; font-size: .88rem; }
.kf-tab th, .kf-tab td { white-space: normal; vertical-align: top; }
.kf-n-fuss { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.kf-n-fuss form { margin: 0; }
.kf-nochmal { margin: 6px 0 0; }
.kf-zus { margin: 12px auto; max-width: 820px; padding: 8px 12px; border: 1px solid var(--g2); border-left: 4px solid var(--gelb); border-radius: 6px; background: var(--weiss); }
.kf-datei { margin-top: 6px; }
.kf-datei.bild img { display: block; max-width: min(420px, 100%); max-height: 320px; border-radius: 4px; border: 1px solid var(--g2); background: var(--schraffur-l); }
.kf-datei-info { display: block; font-size: .8rem; color: var(--g7); margin-top: 3px; }
.kf-werkzeuge { margin-top: 4px; }
.kf-werkzeuge > summary { list-style: none; display: inline-block; }
.kf-werkzeuge > summary::-webkit-details-marker { display: none; }
.kf-wz-form { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0 0; padding: 8px; border: 1px solid var(--g2); border-radius: 6px; background: var(--g1); font-size: .84rem; }
.kf-wz-form [data-w] { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kf-wz-form [data-w][hidden] { display: none; }
.kf-wz-form input[type=number] { width: 6em; }
.kf-weiter { padding: 10px 16px; border-top: 1px solid var(--g2); background: var(--gelb-h); }
.kf-offen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 16px; border-top: 1px solid var(--g2); background: var(--weiss); font-size: .88rem; }
.kf-offen form { margin: 0 0 0 auto; }
.kf-denken { flex-basis: 100%; margin: 0; max-height: 7.5em; overflow: hidden; white-space: pre-wrap; font-size: .76rem; color: var(--g6); font-style: italic; }
.kf-fuell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 16px; border-top: 1px solid var(--g2); }
.kf-fuell form { margin: 0; }
.kf-balken { flex: 0 0 160px; height: 8px; border-radius: 4px; background: var(--g2); overflow: hidden; }
.kf-balken span { display: block; height: 100%; background: var(--gruen); }
.kf-balken.voll span { background: var(--gelb-d); }
.kf-eingabe { margin: 0; padding: 8px 16px 12px; border-top: 1px solid var(--g2); background: var(--weiss); }
.kf-eingabe textarea { width: 100%; resize: vertical; min-height: 4.2em; max-height: 40vh; }
.kf-eingabe.ziehen { outline: 2px dashed var(--gelb-d); outline-offset: -4px; }
.kf-eingabe-fuss { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.kf-eingabe-fuss .btn[data-kf-senden] { margin-left: auto; }
.kf-platz.zu-voll { color: var(--rot); font-weight: 600; }
.kf-datei-knopf { cursor: pointer; }
.kf-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; }
.kf-anhaenge:not(:empty) { margin-bottom: 6px; }
.kf-anhang { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 3px 4px 3px 8px; border: 1px solid var(--g3); border-radius: 14px; background: var(--g1); font-size: .82rem; max-width: 100%; }
.kf-anhang.laedt { color: var(--g6); }
.kf-anhang.fehler { border-color: var(--rot); color: var(--rot); }
.kf-anhang-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-anhang-hinweis { color: var(--rot); }
.kf-seiten { width: 7em; padding: 1px 4px; font-size: .8rem; }
.kf-anhang-weg { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; color: var(--g6); }
.kf-anhang-weg:hover { color: var(--rot); }
.kf-treffer { overflow-y: auto; padding: 8px 16px; }
.kf-treffer-eintrag { display: block; padding: 8px 6px; border-bottom: 1px solid var(--g2); text-decoration: none; color: var(--anthrazit); }
.kf-treffer-eintrag:hover { background: var(--g1); }
.kf-auszug { display: block; font-size: .84rem; color: var(--g7); }
/* Lokale KI: Priorität und Speicher des KI-Chats */
.ki-prio select { min-width: 7em; }
.ki-frei-tab input[type=number] { width: 6em; }
/* ab 2.58.0: Bildwerkzeuge – HegerZeit und Bild-Dienst, Schritte, Vorschlag zum Entfernen, Markieren */
.kf-wz { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; margin-top: 6px; }
.kf-wz-gruppe { border: 1px solid var(--g2); border-radius: 6px; padding: 6px 8px; background: var(--g1); font-size: .84rem; }
.kf-wz-gruppe .kf-wz-form { border: 0; padding: 4px 0 0; background: none; }
.kf-wz-zeile { margin: 6px 0 0; }
.kf-wz select, .kf-n-fuss select { width: auto; min-width: 0; }
#kichat h3 { margin-top: 18px; }
/* ab 2.58.2: Werkzeuge des Bild-Dienstes (Lokale KI, Einstellungen) */
.ki-dienst-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0; }
.ki-dienst-stand form.inline { margin: 0; }
.ki-werkzeuge td { vertical-align: top; }
.ki-werkzeuge td:nth-child(2) { white-space: nowrap; }
.wz-zustand { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .8rem; font-weight: 600; background: var(--g1); color: var(--g7); }
.wz-zustand.gruen { background: var(--gruen-h); color: var(--f-1d6b40); }
.wz-zustand.gelb { background: var(--gelb-h); color: var(--f-7a5f00); }
.wz-zustand.rot { background: var(--rot-h); color: var(--rot); }
#werkzeuge h3 { margin-top: 18px; }
.kf-wz-zeile fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kf-wz-zeile fieldset[disabled] { opacity: .55; }
.kf-wz-zeile input[type=number] { width: 5em; }
.kf-wz-zeile input[type=color] { width: 2.4em; height: 1.8em; padding: 0; border: 1px solid var(--g3); }
.kf-schritt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .86rem; }
.kf-schritt form { margin: 0; }
.kf-schritt-fehler { margin: 4px 0; color: var(--rot); font-size: .86rem; }
.kf-vorschlag { position: relative; display: inline-block; max-width: min(420px, 100%); margin-top: 4px; }
.kf-vorschlag img { display: block; max-width: 100%; max-height: 320px; border-radius: 4px; border: 1px solid var(--g2); }
.kf-rechteck { position: absolute; border: 2px dashed var(--rot); background: var(--rot-h); opacity: .7; box-sizing: border-box; pointer-events: none; }
.kf-maske-dlg { max-width: 96vw; width: auto; padding: 10px; border: 1px solid var(--g3); border-radius: var(--radius); background: var(--dlg-bg); color: var(--dlg-text); }
.kf-maske-dlg::backdrop { background: var(--schatten-2); }
.kf-maske-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; font-size: .88rem; }
.kf-maske-kopf b { margin-right: auto; }
.kf-maske-feld { position: relative; display: inline-block; line-height: 0; }
.kf-maske-feld img { display: block; max-width: min(1200px, 90vw); max-height: 72vh; }
.kf-maske-feld canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kf-maske-vor { cursor: crosshair; touch-action: none; }

/* ab 2.58.4: KI-Chat – Stand je Frage (mehrere nacheinander), löschen, Teil für Teil, Bild-Dienst live */
.kf-verlauf .kf-offen { margin: 4px 0 0 auto; max-width: min(820px, 88%); border: 1px solid var(--g2); border-radius: 8px; padding: 6px 10px; }
.kf-verlauf .kf-system + .kf-offen { margin: 4px auto 0; }
.kf-weg { margin: 0 0 0 auto; display: inline; }
.kf-weg-knopf { border: 0; background: none; cursor: pointer; padding: 0 2px; font-size: .82rem; color: var(--g6); opacity: .65; }
.kf-weg-knopf:hover, .kf-weg-knopf:focus-visible { opacity: 1; color: var(--rot); }
.kf-n-fuss .kf-weg { margin-left: auto; }
.kf-system .kf-weg { margin: 0; }
.kf-teile { margin-top: 6px; font-size: .84rem; }
.kf-teile > summary { cursor: pointer; color: var(--g7); }
.kf-teile-liste { margin: 4px 0 0; padding-left: 1.6em; max-height: 22em; overflow-y: auto; }
.kf-teile-liste li { margin: 3px 0; }
.kf-teile-liste li:not(.fertig) { color: var(--g6); }
.kf-teil-text { white-space: pre-wrap; color: var(--g7); font-size: .8rem; margin: 1px 0 4px; }
/* ab 2.66.0: Websuche unter der Frage (live und danach aufklappbar), Quellen am Ende der Antwort */
.kf-recherche { margin-top: 6px; font-size: .84rem; }
.kf-recherche > summary { cursor: pointer; color: var(--g7); }
.kf-offen .kf-recherche { flex-basis: 100%; margin-top: 2px; }
.kf-recherche-liste { margin: 4px 0 0; padding-left: 1.6em; max-height: 22em; overflow-y: auto; list-style: none; padding-left: .4em; }
.kf-recherche-liste li { margin: 3px 0; overflow-wrap: anywhere; }
.kf-recherche-liste li.fehler { color: var(--rot); }
.kf-recherche-liste a, .kf-quellen a { color: var(--f-1f5e99); }
.kf-quellen { margin: 8px 0 0; padding: 6px 0 0; border-top: 1px solid var(--g2); font-size: .86rem; overflow-wrap: anywhere; }
.kf-quellen > b { font-size: .82rem; color: var(--g7); }
.kf-quellen ol { margin: 2px 0 0; padding-left: 1.6em; }
.kf-quellen li { margin: 2px 0; }
.kf-dienst-live { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.kf-balken.klein { flex: 0 0 180px; height: 6px; }
.kf-balken.geschaetzt span { background: repeating-linear-gradient(45deg, var(--gruen) 0 6px, var(--gruen-h) 6px 12px); }
.kf-dienst-schritt { flex-basis: 100%; color: var(--g7); }
.kf-dienst-hinweis { flex-basis: 100%; margin: 0; }

/* ab 2.58.5: KI-Chat – „Teil für Teil“ schon vor dem Senden (nicht rot); die Sanduhr dreht sich beim Warten alle 5 s um
   (Simon) – zwei halbe Drehungen je 10 s, so läuft es nahtlos weiter (das Skript hält alle im selben Takt) */
.kf-platz.teile { color: var(--f-7a5f00); font-weight: 600; }
/* Ordner (Anhänge je oberstem Ordner, aufklappbar) – im Eingabefeld und in der Nachricht */
.kf-ordner { flex-basis: 100%; border: 1px solid var(--g3); border-radius: 10px; background: var(--g1); font-size: .82rem; }
.kf-ordner > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 3px 4px 3px 10px; cursor: pointer; list-style: none; }
.kf-ordner > summary::-webkit-details-marker { display: none; }
.kf-ordner > summary::before { content: "▸"; color: var(--g6); }
.kf-ordner[open] > summary::before { content: "▾"; }
.kf-ordner-name { font-weight: 600; }
.kf-ordner > summary .kf-anhang-weg { margin-left: auto; }
.kf-ordner-inhalt { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 8px; max-height: 14em; overflow-y: auto; }
.kf-ordner-hinweis { flex-basis: 100%; color: var(--f-7a5f00); }
.kf-ordner-n { margin-top: 6px; background: none; }
.kf-ordner-n > summary { padding: 4px 8px; }
.kf-ordner-n > .kf-datei { margin: 4px 8px; }
.kf-nr { width: 5em; }
.kf-stufen { margin: 6px 0 2px; }
.sanduhr { display: inline-block; animation: sanduhr-drehen 10s ease-in-out infinite; }
@keyframes sanduhr-drehen {
  0%, 44% { transform: rotate(0deg); }
  50%, 94% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* ab 2.58.0: Verbesserungsvorschlag – Wege zur Wahl */
.chat-ki-wege { margin: 8px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.chat-ki-weg { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--g1); }
.chat-ki-weg .btn { align-self: flex-start; margin-top: 4px; }

/* ab 2.58.1: Reihenfolge der Mitarbeiter (Urlaubsplaner) */
.reihenfolge-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.reihenfolge-leiste form.zeile { gap: 8px; align-items: center; }
.rf-griff { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; vertical-align: middle; }
.rf-zieh { cursor: grab; color: var(--g6); padding: 0 3px; user-select: none; }
.rf-pfeil { border: 1px solid var(--g3); background: var(--weiss); color: var(--anthrazit); border-radius: 4px; padding: 0 5px; font: inherit; font-size: .8rem; line-height: 1.5; cursor: pointer; }
.rf-pfeil:hover, .rf-pfeil:focus-visible { border-color: var(--g6); }
.reihenfolge .rf-zieht { opacity: .45; }
.urlaubsplan.reihenfolge th.name, .jahresband.reihenfolge .jb-name { white-space: nowrap; }
#reihenfolge-form[hidden], [data-reihenfolge-start][hidden] { display: none; }
/* ab 2.58.6: KI-Chat schmaler – Verlauf, Füllstand und Eingabe in einer mittigen Spalte (wie im Claude-Chat), damit die
   eigenen Fragen (rechts) und die Antworten (links) auf breiten Bildschirmen nicht an den Rändern stehen */
.kfchat { --kf-spalte: 960px; }
.kf-verlauf { padding-left: max(18px, calc((100% - var(--kf-spalte)) / 2)); padding-right: max(18px, calc((100% - var(--kf-spalte)) / 2)); }
.kf-fuell, .kf-eingabe, .kf-weiter { padding-left: max(16px, calc((100% - var(--kf-spalte)) / 2)); padding-right: max(16px, calc((100% - var(--kf-spalte)) / 2)); }
/* ab 2.58.6: Monatsübersicht – Zeile „zuletzt gebucht“; „andere an der Kommission“ je Kommission aus- und einblenden
   (Knopf nur für Admins im Firmennetz) */
.ueb-fletzt td.ueb-letzt { text-align: left; vertical-align: top; font-size: .86rem; white-space: nowrap; }
/* ab 2.67.3: Zeile „Kosten“ je Kommission (alle Personen, im Monat) */
.ueb-fkosten td.ueb-kosten { text-align: left; vertical-align: top; font-size: .86rem; white-space: nowrap; }
.ueb-fkosten td.ueb-kosten.aus { color: var(--g6); }
.ueb-fkosten .ueb-ohnesatz { color: var(--g6); }
/* ab 2.67.3: Kommen und Gehen in der Monatsübersicht ändern (Knopf ✎ in der Spalte „Stempel“, Fenster) */
.ueb-stz-knopf { margin-left: 6px; padding: 0 4px; border: 1px solid transparent; border-radius: 3px; background: none; font: inherit; font-size: .82rem; line-height: 1.3; color: var(--g6); cursor: pointer; }
.ueb-stz-knopf:hover, .ueb-stz-knopf:focus-visible { border-color: var(--g3); color: var(--anthrazit); background: var(--g1); }
dialog.ueb-stz-dlg { width: min(560px, 94vw); border: 1px solid var(--g3); border-radius: var(--radius); padding: 0; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
dialog.ueb-stz-dlg::backdrop { background: rgba(46,46,45,.45); }
dialog.ueb-stz-dlg .ueb-stz-inhalt { padding: 14px 16px 16px; }
dialog.ueb-stz-dlg .wk-dlg-kopf { align-items: center; }
dialog.ueb-stz-dlg .stempel-liste { gap: 8px; }
.ueb-stz-hinweis { margin: 12px 0 0; }
.ueb-fandere td.ueb-andere.aus { color: var(--g6); }
.ueb-andere-knopf { display: block; margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: .76rem; color: var(--f-1f5e99);
  text-decoration: underline; cursor: pointer; }
.ueb-fandere td.ueb-andere.aus .ueb-andere-knopf { display: inline; margin: 0 0 0 4px; }
.ueb-andere-knopf:hover, .ueb-andere-knopf:focus-visible { color: var(--anthrazit); }
/* ab 2.58.6: Meine Zeiten → Soll/Ist (je Monat und je Tag) */
.sollist-monate tbody tr.aktiv > td { background: var(--gelb-h); }
.sollist-monate tfoot th, .sollist-monate tfoot td { background: var(--kopf-ton); border-top: 2px solid var(--anthrazit); border-bottom: 0; }
.sollist-monate tfoot th { font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--anthrazit); font-weight: 700; }
.sollist-tage tbody tr.we > td { color: var(--g6); background: var(--g1); }
.sollist-tage tbody tr.heute > td { font-style: italic; }
.sollist-tage td.klein { color: var(--g7); }
/* ab 2.58.7: Karte „Soll/Ist · Überstunden · Urlaub“ auf der Übersicht (Meine Zeiten) unter Meine Stundenlisten */
.karte#sollist .rest-box { margin-top: 8px; }
.sollist-karte { margin-top: 10px; font-size: .88rem; }
.sollist-karte tbody tr.aktiv > td { background: var(--gelb-h); }
.sollist-karte tfoot th, .sollist-karte tfoot td { background: var(--kopf-ton); border-top: 2px solid var(--anthrazit); border-bottom: 0; }
.sollist-karte tfoot th { font-size: .86rem; text-transform: none; letter-spacing: 0; color: var(--anthrazit); font-weight: 700; }

/* ab 2.58.9: KI-Chat – Nachtrag („Jetzt senden“) und verbrauchte Tokens live */
.kf-n.eigen + .kf-n.eigen.nachtrag { margin-top: 4px; }
.kf-n.eigen.nachtrag .kf-blase { border-style: dashed; }
.kf-chip.nachtrag { background: var(--weiss); border-color: var(--f-f0dd99); color: var(--anthrazit); }
.kf-offen form + form { margin-left: 0; }
.kf-offen-tok { order: 2; flex-basis: 100%; font-size: .8rem; color: var(--g7); }
.kf-offen .kf-denken { order: 3; }
.kf-n-kopf .kf-tok { white-space: normal; }
/* ab 2.58.9: Monatsübersicht – Zeit in einem Leistungsnachweis auf einer Kommission, die weiterläuft: gesperrt, aber
   nicht grau schraffiert (grau nur, wenn sie beim Nachweis abgeschlossen wurde) */
.ueb-tab .ueb-fest.ln { background: none; color: var(--anthrazit); }
/* ab 2.58.9: KI-Chat – die Nachricht ist unterwegs (steht sofort im Verlauf, bis die Seite mit der gespeicherten neu lädt) */
.kf-n.eigen.kf-sendet .kf-blase { opacity: .8; }
.kf-sendet-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.kf-sendet-dateien { margin-top: .3rem; overflow-wrap: anywhere; }
/* ab 2.59.0: KI-Chat – fertige Antworten (noch nicht angesehen) in der Liste; alle Dateien einer Nachricht als ZIP */
.kf-neu { display: inline-block; min-width: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--np-punkt); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.25rem; text-align: center; margin-left: .25rem; }
.kf-zip { margin: .4rem 0 0; }
/* ab 2.59.0: KI-Chat – kleine Vorschau der Anhänge im Absendefenster (Bild bzw. Anfang des Texts) */
.kf-anhang.mit-vorschau { border-radius: 10px; padding: 4px 4px 4px 4px; }
.kf-anhang-bild { display: block; height: 44px; width: auto; max-width: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--g3); background: var(--weiss); }
.kf-anhang-text { display: block; width: 150px; max-height: calc(3 * 1.25em + 6px); overflow: hidden; padding: 3px 6px; border: 1px solid var(--g3); border-radius: 6px; background: var(--weiss); color: var(--g7); font-size: .66rem; line-height: 1.25; white-space: pre-line; overflow-wrap: anywhere; }
/* ab 2.60.0: KI-Chat – Gedächtnis (Merkliste), Bezug unter der Antwort, Inhalt der Dateien */
.kf-merk { padding: 4px 16px; border-top: 1px solid var(--g2); background: var(--weiss); font-size: .84rem; }
.kf-merk { padding-left: max(16px, calc((100% - var(--kf-spalte)) / 2)); padding-right: max(16px, calc((100% - var(--kf-spalte)) / 2)); }
.kf-merk > summary { cursor: pointer; color: var(--g7); }
.kf-merk p { margin: 4px 0; }
.kf-merk-liste { list-style: none; margin: 4px 0 6px; padding: 0; max-height: 16em; overflow-y: auto; }
.kf-merk-liste li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; border-bottom: 1px dotted var(--g2); }
.kf-merk-nr { flex: 0 0 2.2em; text-align: right; color: var(--g6); font-size: .78rem; }
.kf-merk-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.kf-merk-liste form { margin: 0; }
.kf-merk-weg { border: 0; background: none; cursor: pointer; color: var(--g6); padding: 0 4px; }
.kf-merk-weg:hover, .kf-merk-weg:focus-visible { color: var(--rot); }
.kf-bezug { margin: 6px 0 0; color: var(--g6); overflow-wrap: anywhere; }
.kf-bezug a { color: var(--f-1f5e99); }
.kf-datei-inhalt { display: block; margin-top: 2px; font-style: italic; }

/* ab 2.61.1: Vorgänge sortieren – Auswahl rechts in der Filterleiste, Spaltenköpfe „Kunde“ und „Vorgang“ zum Anklicken */
.vg-sortwahl { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--g6); }
.vg-sortform { display: contents; }
.vg-sortkopf { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; white-space: nowrap; }
.vg-sortkopf:hover, .vg-sortkopf:focus-visible { text-decoration: underline; }
.vg-pfeil { font-size: .8em; }

/* ---------- ab 2.61.3: Leistungsnachweise – Vorgang direkt in der Zeile „Rechnung offen“ ---------- */
.ln-vg-zeile, .ln-vg-eins { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0 0; }
.ln-vg-zeile select { max-width: 260px; }
.ln-vg-form select { max-width: 100%; }
.ln-vgneu { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--g7); }
.ln-vgneu select { max-width: 320px; }
/* Vorgang: Nachweise – Link in Leistungsnachweise, Vorschläge, offene Zeiten */
.vg-lnlink { margin-left: 6px; white-space: nowrap; }
.vg-lnvorschlag, .vg-lnoffen { margin: 8px 0 4px; padding: 6px 10px; border-left: 3px solid var(--gelb); background: var(--g1); border-radius: 4px; }
.vg-lnvorschlag p, .vg-lnoffen p { margin: 0 0 4px; }
.vg-lnvorschlag .kette-beleg form { margin-left: 6px; }
.vg-lnoffen .kette-beleg .btn { margin-left: 6px; }

/* ---------- ab 2.63.0: KI-Chat – PDF-Dienst (Treffer zum Schwärzen, alt → neu, Formularfelder, Bericht) ---------- */
.kf-pdf-liste { margin: 4px 0 0; padding-left: 1.4em; font-size: .86rem; }
.kf-pdf-liste li { margin: 2px 0; }
/* ab 2.67.1: Text ersetzen – gekürzt bzw. Liste zum Ändern */
.kf-ersetzt { margin: 6px 0 0; }
.kf-ersetzt summary { cursor: pointer; }
.kf-ersetzen-liste { margin: 8px 0 0; }
.kf-ersetzen-tab td { vertical-align: middle; }
.kf-ersetzen-tab input[type=text] { width: 100%; min-width: 12em; box-sizing: border-box; }
.kf-pdf-form { margin: 4px 0 0; }
.kf-pdf-treffer { display: flex; flex-direction: column; gap: 2px; max-height: 18em; overflow-y: auto; padding: 4px 8px; border: 1px solid var(--g2); border-radius: 6px; background: var(--g1); }
.kf-pdf-treffer .check { font-size: .84rem; gap: 6px; }
.kf-pdf-treffer .check input { width: 16px; height: 16px; }
.kf-pdf-felder { font-size: .84rem; margin-top: 4px; }
.kf-pdf-felder td { padding: 4px 8px; }
.kf-pdf-felder .unter { display: block; }
.kf-pdf-bericht { margin: 4px 0 0; padding-left: 1.4em; font-size: .84rem; color: var(--g7); }
.kf-pdf-bericht li { margin: 1px 0; }
.kf-wz-block fieldset { align-items: flex-end; }
.kf-wz-block label { font-size: .84rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--g7); }
.kf-wz-gruppe .check { font-size: inherit; gap: 6px; } /* Häkchen im Menü so groß wie der Rest */
.kf-wz-gruppe .check input { width: 16px; height: 16px; }
.kf-wz-block textarea { width: min(100%, 26em); min-height: 3em; font-size: .84rem; }

/* ---------- ab 2.64.0: eigene Stempeluhr – Knopf im Kopf, Stempelzeiten ändern ---------- */
.stempel-form { margin: 0; display: inline-flex; }
.wer .stempel-knopf { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--marke-linie); border-radius: 4px;
  background: none; color: var(--auf-dunkel); font: inherit; font-size: .84rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.wer .stempel-knopf:hover, .wer .stempel-knopf:focus-visible { border-color: var(--gelb); color: var(--auf-dunkel); }
.wer .stempel-knopf.ein { border-color: color-mix(in srgb, var(--kopf-gruen) 75%, transparent); }
.wer .stempel-knopf.ein:hover { border-color: var(--gelb); }
.wer .stempel-knopf[disabled] { opacity: .6; cursor: progress; }
.stempel-uhr { flex: none; display: block; opacity: .85; }
.stempel-knopf.ein .stempel-uhr { color: var(--kopf-gruen); opacity: 1; }
.stempel-knopf.gemeldet { border-color: var(--gelb); }
.wer .stempel-seit { display: inline; font-weight: 400; color: var(--g3); }
.wer .stempel-seit[hidden] { display: none; }
.stempel-fehlt { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: -6px; border-radius: 50%;
  background: var(--rot); color: #fff; font-weight: 700; font-size: .8rem; text-decoration: none; }
.stempel-fehlt:hover { background: var(--gelb); color: var(--auf-gelb); }
/* Meine Zeiten: Stempelzeiten ändern */
.stempel-nachtragen { margin: 4px 0 10px; }
.stempel-nachtragen > summary { cursor: pointer; display: inline-block; font-size: .86rem; color: var(--g7); }
.stempel-nachtragen > summary:hover { color: var(--anthrazit); }
.stempel-tag { margin-left: auto; }
.stempel-tag > summary { cursor: pointer; font-size: .8rem; color: var(--g6); list-style: none; text-decoration: underline dotted; }
.stempel-tag > summary::-webkit-details-marker { display: none; }
.stempel-tag[open] { flex: 1 0 100%; margin-left: 0; }
.stempel-tag[open] > summary { margin-bottom: 4px; }
.stempel-liste { display: grid; gap: 4px; }
.stempel-zeile-paar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stempel-zeile { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.stempel-zeile label { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.stempel-zeile input[name="kommen"], .stempel-zeile input[name="gehen"] { width: 5.2em; padding: 3px 6px; font-variant-numeric: tabular-nums; }
.stempel-zeile input[type="date"] { padding: 3px 6px; }
.stempel-nachtragen .stempel-zeile { margin-top: 6px; }
/* Kopf in einer Zeile (ab 1101 px): kopf.js setzt eng1 … eng5, solange er sonst umbräche – Stufe für Stufe enger */
.kopf-innen.eng1 .stempel-knopf .stempel-text, .kopf-innen.eng1 .kichat-knopf-text { display: none; }
.kopf-innen.eng1 .stempel-knopf { padding: 4px 8px; }
.kopf-innen.eng1 .kichat-knopf { padding: 4px 8px; }
.kopf-innen.eng1 .firma-wechsel .fw-zu { display: none; }
.kopf-innen.eng2 .marke span { display: none; }
.kopf-innen.eng2 .wer-name { display: none; }
.kopf-innen.eng2 .wer-kurz { display: inline; }
.kopf-innen.eng2 .nav a { padding: 7px 6px; }
.kopf-innen.eng2, .kopf-innen.eng2 .wer { gap: 8px; }
.kopf-innen.eng3 .nav a { padding: 7px 4px; font-size: .86rem; }
.kopf-innen.eng3 .nav .chip { display: none; }
.kopf-innen.eng3 { gap: 6px; padding-left: 10px; padding-right: 10px; }
.kopf-innen.eng3 .wer { gap: 6px; }
.kopf-innen.eng4 .kopf-zurueck { display: none; }
.kopf-innen.eng4 .nav a { font-size: .82rem; padding: 7px 3px; }
.kopf-innen.eng4 .firma-wechsel { padding: 4px 5px; font-size: .78rem; }
.kopf-innen.eng5 .marke b { display: none; } /* ganz eng: nur der Würfel als Link zur Startseite */
.kopf-innen.eng5 .wer button { padding: 4px 6px; }
.kopf-innen.eng5 .nav a { padding: 7px 2px; }
.kopf-innen.eng5 .design-wahl > summary { width: 26px; }

/* ---------- ab 2.65.0: App fürs Handy – HegerZeit (Stempeln) und HegerKI (KI-Chat) ----------
   html.app setzt appmodus.js nur in der App vom Home-Bildschirm (ohne Browserleiste). Dann: Kopf der App statt der
   Kopfleiste vom PC, Notch und Home-Leiste beachtet (safe-area), Eingabefelder mindestens 16 px (sonst zoomt iOS), und
   alle Seiten außer Stempeln und KI-Chat (body ohne data-app-seite) zeigen nur „nur am PC“. Am PC ändert sich nichts. */
.app-kopf, .nur-pc { display: none; }
.app-hinweis[hidden] { display: none; }
.app-hinweis { border-left: 3px solid var(--gelb); }
.app-hinweis .karte-kopf { gap: 10px; }
.app-hinweis p { margin: 4px 0; }
html.app body { background: var(--papier); }
html.app .kopf, html.app .unternav, html.app .fuss, html.app .ki-knopf, html.app .fahne-knopf, html.app [data-nur-pc], html.app .ms-anmeldung { display: none !important; }
html:not(.app) [data-nur-app] { display: none !important; } /* ab 2.67.8: nur in der App fürs Handy */
.karte.gehen-vergessen { border-left: 3px solid var(--gelb); } /* ab 2.67.8 */
html.app .app-kopf { color-scheme: light; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 60;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) calc(env(safe-area-inset-right, 0px) + 12px) 8px calc(env(safe-area-inset-left, 0px) + 12px);
  background: var(--kopf-bg); color: var(--auf-dunkel); border-bottom: 3px solid var(--gelb); min-height: 48px; }
.app-marke { display: inline-flex; flex: none; }
.app-titel { font-size: 1.05rem; letter-spacing: .02em; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-knopf { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 38px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--marke-linie); background: none; color: var(--auf-dunkel); font: inherit; font-size: 1.15rem; text-decoration: none; cursor: pointer; }
.app-kopf .stempel-knopf { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--marke-linie);
  background: none; color: var(--auf-dunkel); font: inherit; font-size: .95rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.app-kopf .stempel-knopf.ein { border-color: color-mix(in srgb, var(--kopf-gruen) 80%, transparent); }
.app-kopf .stempel-seit { font-weight: 400; color: var(--auf-dunkel-leise); }
.app-kopf .stempel-seit[hidden] { display: none; }
.app-kopf .stempel-fehlt { margin-left: -4px; }
.app-menue { position: relative; flex: none; }
.app-menue > summary { list-style: none; }
.app-menue > summary::-webkit-details-marker { display: none; }
.app-menue-inhalt { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 240px; display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: var(--dlg-bg); color: var(--dlg-text); border: 1px solid var(--g3); border-radius: var(--radius); box-shadow: 0 8px 24px var(--schatten-1); color-scheme: inherit; }
.app-menue-inhalt form { margin: 0; }
.app-menue-inhalt .btn { width: 100%; justify-content: center; }
html.app main { padding-left: calc(env(safe-area-inset-left, 0px) + 12px); padding-right: calc(env(safe-area-inset-right, 0px) + 12px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
html.app input, html.app select, html.app textarea { font-size: 16px; }
html.app body:not([data-app-seite]) main > * { display: none !important; }
html.app body:not([data-app-seite]) main > .nur-pc { display: block !important; margin-top: calc(env(safe-area-inset-top, 0px) + 40px); text-align: center; }
html.app .mitte { padding-top: calc(env(safe-area-inset-top, 0px) + 20px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
html.app dialog { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px); }
/* Stempeln in Handybreite (App und Browser) */
@media (max-width: 640px) {
  body[data-app-seite] input, body[data-app-seite] select, body[data-app-seite] textarea { font-size: 16px; }
  body[data-app-seite] .seitenkopf { flex-direction: column; align-items: stretch; gap: 8px; }
  body[data-app-seite] .seitenkopf .zeile { flex-wrap: wrap; }
  body[data-app-seite] .jetzt .knoepfe { flex-wrap: wrap; }
  body[data-app-seite] .jetzt .knoepfe form { flex: 1 1 0; }
  body[data-app-seite] .jetzt .knoepfe .btn { width: 100%; }
  body[data-app-seite] .laufend-form .zeile > input[type=text] { min-width: 0 !important; }
  body[data-app-seite] .felder { grid-template-columns: 1fr !important; }
  body[data-app-seite] .felder .feld { grid-column: auto !important; }
  body[data-app-seite] #taet { margin-top: 0 !important; }
  body[data-app-seite] .favoriten { grid-template-columns: 1fr 1fr; }
  body[data-app-seite] .start-zeile { flex-wrap: wrap; }
  body[data-app-seite] .homeoffice-leiste { flex-wrap: wrap; }
}
/* KI-Chat in Handybreite: die Liste der Chats über ☰, Eingabe unten (App und Browser) */
.kf-liste-knopf { display: none; }
@media (max-width: 760px) {
  .kfchat { grid-template-columns: minmax(0, 1fr); position: relative; height: calc(100dvh - var(--kopf-h, 61px) - 30px); min-height: 0; border-radius: 0; border-left: 0; border-right: 0; }
  main.breit:has(> .kfchat) { padding: 0; }
  .kf-seite { display: none; }
  .kfchat.liste-offen .kf-seite { display: flex; position: absolute; inset: 0 auto 0 0; width: min(86vw, 340px); z-index: 30; box-shadow: 4px 0 18px var(--schatten-1); }
  .kf-liste-knopf { display: inline-flex; }
  .kf-kopf { padding: 8px 12px; gap: 6px 8px; }
  .kf-stufe label { display: none; }
  .kf-ohne { font-size: .76rem; padding: 4px 12px; }
  .kf-verlauf { padding-left: 10px; padding-right: 10px; }
  .kf-eingabe { padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .kf-eingabe textarea { font-size: 16px; min-height: 3em; }
  .kf-eingabe-fuss { flex-wrap: wrap; gap: 6px 8px; }
  .kf-platz { order: 3; flex-basis: 100%; }
  .kf-menue-inhalt { min-width: min(300px, 86vw); }
  .kf-fuell { font-size: .78rem; }
}
html.app .kfchat { height: calc(100dvh - 51px - env(safe-area-inset-top, 0px)); }
html.app main.breit:has(> .kfchat) { padding: 0; }
/* ---------- ab 2.67.1: App fürs Handy – fürs Handy gemacht ----------
   Simon (01.12.2026): „die Apps funktionieren, sind aber nicht optimiert für Handy, das kann man viel besser machen“. Nur in
   der App (html.app): Schrift größer (16 statt 15 px, kleine Schrift mindestens 13 px), Tippflächen mindestens 44 × 44 px
   (Empfehlung von Apple), keine Erklärung-Kästen, Kopf des KI-Chats in einer Zeile, Hinweise kompakt, die Eingabe unten mit
   Rücksicht auf Home-Leiste und Tastatur (--app-vh aus visualViewport, --app-kopf-h = Höhe des App-Kopfs; appmodus.js). */
html.app { font-size: 16px; }
html.app .erkl { display: none !important; }
html.app .klein, html.app small, html.app .chip, html.app .kf-chip, html.app .kf-uhr, html.app .btn.klein, html.app th, html.app .kf-ohne,
  html.app .kf-datei-info, html.app .kf-fuell, html.app .kf-merk { font-size: max(.82rem, 13px); }
html.app .btn, html.app main select, html.app main button, html.app main summary.btn { min-height: 44px; }
html.app .btn.klein { padding: 8px 12px; }
html.app main input[type=text], html.app main input[type=search], html.app main input[type=number], html.app main input[type=date],
  html.app main input[type=time] { min-height: 44px; }
html.app .app-knopf { min-width: 44px; height: 44px; }
html.app .app-kopf .stempel-knopf { height: 44px; }
html.app .app-menue-inhalt { right: calc(env(safe-area-inset-right, 0px)); max-width: calc(100vw - 24px); }
/* ab 2.67.4: Karte „Überstunden · Urlaub“ unter Stempeln – nur in der App (am PC steht das unter Meine Zeiten) */
.app-konto { display: none; }
html.app .app-konto { display: block; }
.app-konto .rest-box { margin-top: 10px; }
.app-konto-monat { margin: 10px 0 0; }
html.app .kf-weg-knopf, html.app .kf-merk-weg { min-width: 44px; min-height: 44px; padding: 8px; opacity: .8; }
html.app details > summary.klein, html.app .kf-merk > summary, html.app .kf-recherche > summary { padding-block: 11px; }
/* KI-Chat: Kopf in einer Zeile – ☰, Titel, Stufe, ⋯; das Menü bleibt im Bild */
html.app .kf-kopf { flex-wrap: nowrap; position: relative; padding: 6px 10px; gap: 6px; }
html.app .kf-titel h2 { font-size: 1rem; }
html.app .kf-liste-knopf, html.app .kf-menue > summary { min-width: 44px; justify-content: center; font-size: 1.1rem; }
html.app .kf-stufe { flex: 0 1 auto; min-width: 0; }
html.app .kf-stufe select { max-width: 40vw; }
html.app .kf-menue { position: static; }
html.app .kf-menue-inhalt { left: 8px; right: 8px; top: calc(100% + 2px); min-width: 0; width: auto; }
html.app .kf-menue-inhalt .zeile { flex-wrap: nowrap; }
html.app .kf-menue-inhalt .zeile input { flex: 1 1 auto; min-width: 0; }
html.app .kfchat:has(.kf-eintrag) .kf-ohne { display: none; } /* „kein Zugriff auf HegerZeit“ nur, solange es noch keinen Chat bzw. keine Aufgabe gibt */
html.app .kf-start .leise { display: none; } /* Hinweise für den PC (Enter, Ordner hereinziehen) */
/* Merkliste und Füllstand schmal über der Eingabe */
html.app .kf-merk { padding-top: 0; padding-bottom: 0; }
html.app .kf-fuell { padding: 4px 12px; gap: 4px 8px; }
html.app .kf-fuell .kf-balken { flex: 0 0 64px; }
/* Eingabe unten – Home-Leiste und Tastatur */
html.app .kfchat { height: calc(var(--app-vh, 100dvh) - var(--app-kopf-h, calc(51px + env(safe-area-inset-top, 0px)))); }
html.app .kf-eingabe { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
html.app .kf-eingabe textarea { min-height: 2.8em; max-height: 34vh; }
html.app .kf-eingabe-fuss [data-kf-senden] { margin-left: auto; min-width: 96px; }
html.app .kf-datei-knopf:has(> [data-kf-ordner]) { display: none; } /* Ordner wählen geht auf dem iPhone nicht */
/* Antworten und Aufgaben: Knöpfe mit Luft, breite Tabellen rollen waagerecht */
html.app .kf-n-fuss { gap: 8px; }
/* lange Knöpfe (z. B. „↻ mit „maximal“ auf dem Prozessor (ca. 25 min)“) brechen um statt über den Rand zu ragen */
html.app .kf-n-fuss form, html.app .kf-nochmal form { max-width: 100%; }
html.app .kf-n-fuss .btn, html.app .kf-nochmal .btn { white-space: normal; max-width: 100%; height: auto; text-align: left; }
html.app .kf-text table { display: block; max-width: 100%; overflow-x: auto; }
html.app .kf-reiter a { padding: 11px 8px; }
html.app .kf-eintrag { padding-block: 12px; }
/* Stufe neben dem Füllstand über der Eingabe (appmodus.js verschiebt sie dorthin, sobald der Chat Nachrichten hat) */
html.app .kf-fuell .kf-stufe { margin-left: auto; }
html.app .kf-fuell > .leise { flex: 1 1 8em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.app .kf-platz:not(.zu-voll):not(.teile) { display: none; } /* „belegt …“ nur, wenn es eng wird – sonst steht es im Füllstand */
/* Stempeln: kleine Knöpfe und Schrift */
html.app .fav-weg button { min-width: 44px; min-height: 44px; }
html.app main summary { padding-block: 10px; }
html.app .mt-wahl { padding-block: 10px; }
html.app label, html.app .favoriten .fav-kunde, html.app .favoriten .fav-text, html.app .kf-merk-nr { font-size: max(.82rem, 13px); }
/* ab 2.66.0: Aufgaben in Heger KI („📋 Aufgaben“) – Reiter neben den Chats, Seite wie der KI-Chat */
.kf-reiter { display: flex; gap: 4px; padding: 0 14px 10px; }
.kf-reiter a { flex: 1 1 0; text-align: center; padding: 5px 8px; border: 1px solid var(--g2); border-radius: var(--radius); text-decoration: none; color: var(--anthrazit); font-size: .86rem; white-space: nowrap; }
.kf-reiter a:hover { background: var(--g1); }
.kf-reiter a.aktiv { background: var(--gelb-h); border-color: var(--gelb); font-weight: 600; }
.kfa-zahl { margin: 0; padding: 8px 14px; border-top: 1px solid var(--g2); }
.kfa-geteilt { color: var(--g6); white-space: nowrap; }
.kfa-inhalt { display: flex; flex-direction: column; gap: 10px; }
.kfa-kopf { display: flex; flex-direction: column; gap: 6px; }
.kfa-info { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .88rem; }
.kfa-stand { font-weight: 600; }
.kfa-aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.kfa-block { background: var(--weiss); border: 1px solid var(--g2); border-radius: var(--radius); padding: 6px 12px; }
.kfa-block > summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.kfa-block[open] > summary { margin-bottom: 6px; }
.kfa-auftrag { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.kfa-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.kfa-feld { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.kfa-feld > span { color: var(--g7); font-weight: 600; }
.kfa-feld textarea { min-height: 6em; resize: vertical; }
.kfa-zeile { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.kfa-zeile .kfa-feld { flex: 0 1 auto; }
.kfa-haken { display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.kfa-kollegen { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.kfa-knoepfe { display: flex; gap: 8px; }
.kfa-neu { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.kfa-neu > p { margin: 0; line-height: 1.45; }
.kfa-hinweis { margin: 0; padding: 6px 10px; border-left: 3px solid var(--gelb); background: var(--gelb-h); border-radius: 4px; }
.kfa-laeufe { display: flex; flex-direction: column; gap: 10px; }
.kfa-laeufe > h3 { margin: 6px 0 0; font-size: 1rem; }
.kfa-lauf { background: var(--weiss); border: 1px solid var(--g2); border-left: 4px solid var(--g3); border-radius: var(--radius); padding: 8px 12px; }
.kfa-lauf.neu { border-left-color: var(--gelb); }
.kfa-lauf.fehler { border-left-color: var(--rot); }
.kfa-lauf.ungesehen { box-shadow: 0 0 0 2px var(--gelb-h); }
.kfa-lauf-kopf { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-bottom: 6px; font-size: .88rem; }
.kfa-marke { display: inline-block; padding: 0 .45rem; border-radius: 999px; background: var(--g1); color: var(--g7); font-size: .74rem; font-weight: 700; line-height: 1.3rem; }
.kfa-marke.neu { background: var(--gelb); color: var(--auf-gelb); }
.kfa-marke.fehler { background: var(--rot-h); color: var(--rot); }
.kfa-ungesehen { color: var(--np-punkt); font-size: .8rem; }
.kfa-fehler { margin: 0; color: var(--rot); }
[data-kfa-nur][hidden] { display: none; }
@media (max-width: 760px) {
  .kfa-zeile { flex-direction: column; align-items: stretch; }
  .kfa-feld textarea, .kfa-feld input, .kfa-feld select { font-size: 16px; }
}

/* ---------- ab 2.66.1: „Gerade bei der KI“ groß in einer Spalte rechts; Chat und KI-Chat ohne Rollbalken der Seite ---------- */
.kf-rechts { display: none; }
@media (min-width: 1200px) {
  .kfchat:has(> .kf-rechts) { grid-template-columns: 270px minmax(0, 1fr) 340px; }
  .kf-rechts { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--g2); background: var(--f-fbfbf9); }
  .kfchat:has(> .kf-rechts) > .kf-seite > .kf-schlange { display: none; } /* steht jetzt rechts */
  .kf-schlange.kf-schlange-gross { flex: 1 1 auto; max-height: none; border-top: 0; padding: 14px 16px; font-size: 1rem; }
  .kf-schlange-gross h3 { font-size: 1.12rem; margin-bottom: 8px; }
  .kf-schlange-gross .kf-sch-titel { font-size: .8rem; margin-top: 10px; }
  .kf-schlange-gross .kf-sch-zeile { margin: 6px 0; padding: 5px 0 5px 10px; }
  .kf-schlange-gross .kf-sch-stand, .kf-schlange-gross .kf-sch-zeit { font-size: .9rem; }
  .kf-schlange-gross .klein { font-size: .9rem; }
}
/* Simon: „nimm den Scrollbalken im Chatfenster weg (also nicht vom Chat selber, aber vom Reiter Chat)“ – der Chat füllt den
   Platz zwischen Kopfleiste und Fußzeile (die Seite rollt nicht mehr; nur Liste und Verlauf rollen) */
@media (min-width: 761px) {
  html:not(.app) body:has(> main > .chat, > main > .kfchat) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  html:not(.app) body:has(> main > .chat, > main > .kfchat) > main { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; }
  html:not(.app) body:has(> main > .chat, > main > .kfchat) > main > .chat,
  html:not(.app) body:has(> main > .chat, > main > .kfchat) > main > .kfchat { flex: 1 1 auto; height: auto; min-height: 460px; }
  html:not(.app) body:has(> main > .chat, > main > .kfchat) > .fuss { flex: none; padding: 6px 0; }
}
.chat-fenster .fuss { display: none; } /* eigenes Chatfenster: ohne Fußzeile */
/* ab 2.66.1: Schnellstart per Drag & Drop ordnen (am PC) – gezogen wird der ganze Knopf; die Stelle bleibt fest */
.fav-hilfe { display: none; }
.fav-ordnen .fav-hilfe { display: inline; }
.favoriten.ordnen .fav { cursor: grab; }
.favoriten.ordnen .fav.zieht { opacity: .4; }
.favoriten.ordnen .fav.zieht button { border-style: dashed; }

/* ab 2.67.0: Abschlagsrechnungen und Schlussrechnung im Vorgang */
.chip.abschlag { background: var(--f-e3edf9); color: var(--f-1f5e99); }
.vg-lnnr.vg-im { color: var(--g6); }
.vg-lnnr.vg-im::after { content: " ◐"; color: var(--f-1f5e99); }
.vg-rechnungneu [hidden] { display: none !important; }
.vgr-art { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.vgr-art legend { padding: 0; margin-bottom: 2px; }
.vgr-abzug { margin: 4px 0; }

/* ---------- ab 2.67.2: Formeln im KI-Chat (MathML aus HegerZeit, Beta) ---------- */
.kf-text math { font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", math; font-size: 1.1em; }
.kf-formel { margin: 10px 0; padding: 4px 2px; overflow-x: auto; overflow-y: hidden; }
.kf-formel math { font-size: 1.18em; }
.kf-text math .f-fett { font-weight: bold; }
.kf-text math .f-oben { border-top: 1px solid currentColor; padding-top: 1px; }
.kf-text math .f-unten { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.kf-text math .f-box { border: 1px solid currentColor; padding: 2px 5px; }
.kf-text math .f-durch { text-decoration: line-through; }
.kf-text math mtd.f-l { text-align: left; }
.kf-text math mtd.f-r { text-align: right; }
.kf-text math mtable.f-ausr mtd { padding-left: 0; padding-right: 0; }
.kf-text math mtable.f-ausr mtd.f-r:not(:first-child) { padding-left: 1.5em; }
.kf-text math mtable.f-faelle mtd + mtd { padding-left: 1em; }

/* ab 2.67.5: Herkunft aus einem Import – Chip an Buchungen (nur Verwaltung), Kennzeichen auf der Import-Seite */
.chip.herkunft { background: var(--f-dde6f2); color: var(--f-284868); text-transform: none; letter-spacing: .02em; margin-right: 4px; }
.auswahl-tag .chip.herkunft, .auswahl-monat-kopf .chip.herkunft { margin-left: 6px; }
.import-kz { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.import-kz input { width: 9.5rem; min-width: 0; }

/* ab 2.67.6: fehlende Einträge beim Zusammenstellen, Tätigkeit für Zeiten ohne Tätigkeit */
.karte.ln-fehlt { border-left: 4px solid var(--f-f0dd99); background: var(--gelb-h); }
.karte.ln-fehlt p { margin: 4px 0 10px; }
.ln-taet-ohne { display: inline-flex; align-items: center; gap: 6px; }
.ln-taet-ohne select { max-width: 16em; }
.chip.ln-fehlt-chip { margin-left: 4px; }

/* ab 2.67.6: Feld der Monatsübersicht in einem Leistungsnachweis – die Verwaltung ändert mit Rückfrage */
.ueb-z.ueb-ln { box-shadow: inset 0 0 0 1px var(--f-dde6f2); background: var(--f-dde6f2); }

/* ab 2.67.6: Schritte zurücknehmen (Superadmin) */
.tab.schritte tr.schritt-nicht td { color: var(--g7); }
.tab.schritte .schritt-grund { max-width: 46ch; }

/* ab 2.67.8: Gesamtübersicht – Filter (aufklappbar) und Auswahl mehrerer Mitarbeiter bzw. Tätigkeiten */
details.gesamt-filter > summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; }
details.gesamt-filter > summary::-webkit-details-marker { display: none; }
details.gesamt-filter > summary::before { content: "▸"; color: var(--g7); }
details.gesamt-filter[open] > summary::before { content: "▾"; }
details.gesamt-filter[open] > summary { margin-bottom: 12px; }
.gesamt-filter-felder { align-items: end; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.gesamt-filter-felder .feld { min-width: 0; }
.gesamt-filter-felder .gesamt-filter-knoepfe { grid-column: span 2; } /* „Filtern“ und „Filter entfernen“ nebeneinander */
.gesamt-filter-felder .gesamt-filter-knoepfe .zeile { flex-wrap: nowrap; }
@media (max-width: 560px) { .gesamt-filter-felder .gesamt-filter-knoepfe { grid-column: auto; } .gesamt-filter-felder .gesamt-filter-knoepfe .zeile { flex-wrap: wrap; } }
details.mehrfach { position: relative; }
details.mehrfach > summary { cursor: pointer; list-style: none; font: inherit; color: var(--anthrazit); background: var(--weiss); border: 1px solid var(--g3); border-radius: 4px; padding: 8px 10px; min-height: 38px; min-width: 150px; }
details.mehrfach > summary::-webkit-details-marker { display: none; }
details.mehrfach > summary::after { content: " ▾"; color: var(--g7); }
details.mehrfach[open] > summary { border-color: var(--gelb-d); }
.mehrfach-liste { position: absolute; z-index: 30; margin-top: 4px; max-height: 280px; overflow: auto; background: var(--weiss); border: 1px solid var(--g3); border-radius: 4px; padding: 6px 10px; box-shadow: var(--schatten-2); min-width: 230px; }
.mehrfach-liste .check { display: flex; gap: 6px; align-items: center; padding: 3px 0; white-space: nowrap; }

/* ab 2.68.0: Bezeichnung neben der Kommissionsnummer (überall) – normal statt fett, im Wochenkalender etwas leiser */
.kl-bez, b .kl-bez, .wk-was .wk-kbez { font-weight: 400; }
.wk-was .wk-kbez { opacity: .85; }
.ueb-taet-dlg select, .taet-frage-dlg select { width: 100%; margin: 6px 0 12px; }
/* ab 2.68.0: „Positionen übernehmen aus …“ im Rechnungsentwurf */
.pos-aus .pos-aus-quellen { display: grid; gap: 4px; margin: 6px 0 8px; }
.pos-aus .pos-aus-modus { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.pos-aus .pos-aus-modus legend { padding: 0; margin-bottom: 4px; }
/* ab 2.68.0: Reaktionen direkt an der Nachricht (beim Darüberfahren) – ein Klick sendet; schwebt über der Nachricht
   (nimmt keinen Platz in der Zeile) */
.chat-aktionen { position: relative; }
.chat-schnell { position: absolute; bottom: calc(100% + 3px); left: 0; z-index: 5; display: flex; flex-wrap: nowrap; width: max-content; gap: 1px; padding: 1px 4px;
  background: var(--dlg-bg); border: 1px solid var(--g3); border-radius: 14px; box-shadow: 0 2px 8px var(--schatten-1);
  opacity: 0; pointer-events: none; transition: opacity .12s; }
.chat-n:hover .chat-schnell, .chat-n:focus-within .chat-schnell { opacity: 1; pointer-events: auto; }
.chat-n.eigen .chat-schnell { left: auto; right: 0; }
.chat-knopf.chat-schnell-r { padding: 0 3px; font-size: .95rem; line-height: 1.45; border-color: transparent; background: transparent; }
.chat-knopf.chat-schnell-r:hover, .chat-knopf.chat-schnell-r:focus-visible { border-color: var(--g3); background: var(--weiss); transform: scale(1.15); }
@media (hover: none) { .chat-schnell { display: none; } }
/* ab 2.68.0: viele Bilder in einer Nachricht (bis 100) – kleine Kacheln statt großer Vorschauen */
.chat-dateien.viele { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-width: 720px; }
.chat-dateien.viele .chat-bild img { width: 100%; height: 96px; max-width: none; max-height: none; object-fit: cover; }
/* ab 2.68.0: Bilder im Chat groß ansehen und blättern */
.chat-galerie { width: min(96vw, 1400px); height: min(92vh, 1000px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 10px;
  background: var(--galerie-bg); color: var(--galerie-text); display: none; flex-direction: column; overflow: hidden; }
.chat-galerie[open] { display: flex; }
.chat-galerie::backdrop { background: rgba(0, 0, 0, .78); }
.chat-galerie-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--galerie-kopf); }
.chat-galerie-zahl { font-weight: 600; min-width: 64px; }
.chat-galerie-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--galerie-leise); font-size: .9rem; }
.chat-galerie-flaeche { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.chat-galerie-bild { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.chat-galerie-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.chat-galerie-pfeil:hover, .chat-galerie-pfeil:focus-visible { background: rgba(255, 255, 255, .28); }
.chat-galerie-pfeil.links { left: 10px; }
.chat-galerie-pfeil.rechts { right: 10px; }
.chat-galerie.nur-eins .chat-galerie-pfeil { display: none; }
/* ab 2.68.1: Bilder und Dateien im Chat auswählen (Kreis, Strg+Klick) und kopieren – Leiste über dem Eingabefeld */
.chat-bild, .chat-datei { position: relative; }
.chat-wahl { position: absolute; top: 5px; left: 5px; z-index: 1; width: 20px; height: 20px; box-sizing: border-box; border: 2px solid #fff;
  border-radius: 50%; background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); color: var(--auf-gelb);
  font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; opacity: 0; transition: opacity .12s; cursor: pointer; }
.chat-datei .chat-wahl { top: -7px; left: -7px; }
.chat-bild:hover .chat-wahl, .chat-datei:hover .chat-wahl, .chat-waehlt .chat-wahl { opacity: 1; }
.gewaehlt .chat-wahl { opacity: 1; background: var(--gelb); }
.gewaehlt .chat-wahl::after { content: "✓"; }
.chat-bild.gewaehlt { outline: 3px solid var(--gelb); outline-offset: -3px; }
.chat-datei.gewaehlt { border-color: var(--gelb-d); background: var(--gelb-h); }
@media (hover: none) { .chat-wahl { opacity: .85; } }
.chat-auswahl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 16px; background: var(--blase); color: var(--auf-dunkel); font-size: .88rem; }
.chat-auswahl[hidden], .chat-auswahl .btn[hidden] { display: none; }
.chat-auswahl-zahl { font-weight: 600; margin-right: 4px; }
.chat-auswahl-status { flex: 1 1 220px; min-width: 0; color: var(--auf-dunkel-leise); }
