/* 2.73.0: TIKOS Import "Teile anlegen" · 2.73.2: Optik wie "Mitarbeiter ändern" (Schritt-Karten, kompakte Knoepfe rechts).
   Dunkelmodus kommt global ueber den Invert-Filter (theme-2703.css) - hier nur helle Farben. */
.tikos-teile .tikos-step-heading{margin-bottom:14px}

/* Ablauf oben rechts: erledigt = gruen mit Haken, aktuell = umrandet */
.tikos-teile-weg span{transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.tikos-teile-weg span.aktiv{border-color:#8cc63f;color:#2f5d17;background:#f4faee}
.tikos-teile-weg span.fertig{color:#2f5d17}
.tikos-teile-weg span.fertig b{background:#8cc63f;color:#fff;font-size:0}
.tikos-teile-weg span.fertig b::after{content:"✓";font-size:11px}

/* Schritt 1: Kunde | Liste | Pruefen in einer Zeile */
.tikos-teile-form{display:grid;grid-template-columns:minmax(220px,300px) minmax(280px,1fr) auto;gap:16px;align-items:start}
.tikos-teile-feld{display:grid;gap:6px;min-width:0}
.tikos-teile-feld>label{font-size:12px;color:#667068;font-weight:700}
.tikos-teile-feld input[type="text"]{height:44px;margin:0;font-size:15px;font-weight:700;padding:8px 12px;border-radius:10px}
.tikos-teile-feld .ruess-upload{margin:0}
#tikosTabPanelTeile button.tikos-teile-knopf{width:auto;margin:0;padding:10px 20px;min-height:42px;border-radius:10px;font-size:13px;font-weight:800;white-space:nowrap;transform:none}
#tikosTabPanelTeile button.tikos-teile-knopf:hover{transform:none}
.tikos-teile-form #tikosTeilePruefen{min-width:120px;min-height:44px}
#tikosTabPanelTeile button.tikos-teile-knopf:disabled{opacity:.45;cursor:not-allowed}
#tikosTabPanelTeile button.tikos-teile-anlegen{background:#3f7a1f;border:1px solid #3f7a1f;color:#fff}
#tikosTabPanelTeile button.tikos-teile-anlegen:hover:not(:disabled){background:#356a19}

.tikos-teile-spalten{margin-top:14px;border-top:1px solid #edf0ec;padding-top:10px}
.tikos-teile-spalten summary{cursor:pointer;font-size:12px;font-weight:700;color:#5d6760;list-style:none;display:inline-flex;align-items:center;gap:6px}
.tikos-teile-spalten summary::-webkit-details-marker{display:none}
.tikos-teile-spalten summary::before{content:"?";display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#eef2ec;color:#5d6760;font-size:10px}
.tikos-teile-spalten p{margin:8px 0 0;font-size:12px;color:#68706b}
.tikos-teile-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}
.tikos-teile-chips span{padding:3px 9px;border-radius:999px;background:#eef6e9;border:1px solid #d5e8c9;color:#315f26;font-size:12px;font-weight:700}
.tikos-teile-chips span.optional{background:#f6f7f5;border-color:#e3e7e1;color:#68706b}
.tikos-teile-chips em{font-size:11px;color:#8a928c;font-style:normal;margin-left:6px}

/* Meldung (Fehler beim Pruefen, "Pruefe ...") */
.tikos-teile-meldung{padding:11px 14px;border-radius:12px;margin:0;font-size:13px;background:#f1f6fb;border:1px solid #d9e6f2;color:#28466b}
.tikos-teile-meldung-fehler{background:#fdf0ee;border-color:#f3cdc6;color:#8a1c1c}
.tikos-teile-meldung-gut{background:#f1f8ec;border-color:#cfe5c0;color:#2f5d17}

/* Schritt 2: Ergebnis */
.tikos-teile-ergebnis{display:grid;gap:16px}
.tikos-teile-kacheln{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}
.tikos-teile-kachel{display:grid;gap:1px;padding:12px 14px;border:1px solid #e3e8e1;border-radius:12px;background:#fafbfa}
.tikos-teile-kachel strong{font-size:24px;line-height:1.1;color:#202722}
.tikos-teile-kachel span{font-size:13px;font-weight:700;color:#3d4640}
.tikos-teile-kachel small{font-size:11px;color:#7a837c}
.tikos-teile-kachel.gut{border-color:#bcdc9d;background:#f4faee}
.tikos-teile-kachel.gut strong{color:#3f7a1f}
.tikos-teile-kachel.info{border-color:#d6e2ef;background:#f5f8fc}
.tikos-teile-kachel.warn{border-color:#efc78a;background:#fff8ec}
.tikos-teile-kachel.warn strong{color:#a3591a}

.tikos-teile-hinweis{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;font-size:12px;color:#68706b}
.tikos-teile-hinweis span{padding:2px 8px;border-radius:6px;background:#f3f5f2;border:1px solid #e3e7e1;color:#3d4640;font-family:ui-monospace,Consolas,monospace;font-size:11px}

.tikos-teile-tabelle{border:1px solid #e3e8e1;border-radius:12px;overflow:auto}
.tikos-teile-tabelle table{width:100%;border-collapse:collapse;font-size:13px}
.tikos-teile-tabelle th{text-align:left;padding:9px 12px;background:#fbfcfb;color:#6f7a72;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid #e8ece6}
.tikos-teile-tabelle td{padding:9px 12px;border-bottom:1px solid #f0f2ef;color:#2f3631}
.tikos-teile-tabelle tbody tr:last-child td{border-bottom:none}
.tikos-teile-tabelle tbody tr:hover{background:#f7faf5}
.tikos-teile-tabelle.zahlen th:last-child,.tikos-teile-tabelle.zahlen td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.tikos-teile-tabelle tfoot td{border-top:1px solid #e3e8e1;border-bottom:none;font-weight:800;background:#fbfcfb}
.tikos-teile-pille{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#eef0ed;color:#58615a}
.tikos-teile-pille.neu{background:#e9f5df;color:#2f6d1f}

.tikos-teile-liste{margin-top:10px;border:1px solid #e3e8e1;border-radius:12px;background:#fff;overflow:hidden}
.tikos-teile-liste summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;cursor:pointer;list-style:none;font-size:13px;font-weight:700;color:#3d4640}
.tikos-teile-liste summary::-webkit-details-marker{display:none}
.tikos-teile-liste summary b{min-width:24px;padding:1px 8px;border-radius:999px;background:#eef0ed;color:#58615a;font-size:12px;text-align:center}
.tikos-teile-liste summary::after{content:"+";color:#8a928c;font-weight:500;font-size:18px;line-height:1}
.tikos-teile-liste summary span{flex:1}
.tikos-teile-liste[open] summary{border-bottom:1px solid #edf0ec}
.tikos-teile-liste[open] summary::after{content:"–"}
.tikos-teile-liste .tikos-teile-tabelle{border:none;border-radius:0}
.tikos-teile-liste.warn summary b{background:#fdebd3;color:#a3591a}
.tikos-teile-liste.info summary b{background:#e6eef8;color:#2f5480}

/* Schritt 3: Probelauf und Anlegen - Status links, Knoepfe kompakt rechts */
.tikos-teile-aktion-zeile{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tikos-teile-aktion-info{flex:1 1 320px;display:grid;gap:8px;min-width:0}
.tikos-teile-status{margin:0;font-size:13px;color:#5d6760}
.tikos-teile-status.gut{color:#2f6d1f;font-weight:700}
.tikos-teile-status.gut::before{content:"✓ "}
.tikos-teile-status.fehler{color:#a3271b;font-weight:700}
.tikos-teile-status em{display:block;font-style:normal;font-weight:600;color:#8a6a1c;margin-top:2px}
.tikos-teile-knoepfe{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.tikos-teile-balken{height:8px;border-radius:999px;background:#e8ece6;overflow:hidden;max-width:420px}
.tikos-teile-balken span{display:block;height:100%;background:#8cc63f;transition:width .3s}
#tikosTeileFortschritt small{font-size:12px;color:#68706b}

.tikos-teile-idents{width:100%;font-family:monospace}

@media(max-width:1100px){
  .tikos-teile-kacheln{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .tikos-teile-form{grid-template-columns:1fr}
  .tikos-teile-platz{display:none}
  .tikos-teile-kacheln{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tikos-teile-knoepfe{justify-content:flex-start}
}

/* 2.74.0: Umschalter Excel-Liste / Fuer einen Traeger (Segment wie ein Reiter, keine gruene Flaeche) */
.tikos-teile-kopfzeile{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tikos-teile-modus{display:inline-flex;padding:3px;border:1px solid #e1e8de;border-radius:11px;background:#f6f8f5;gap:2px}
#tikosTabPanelTeile button.tikos-teile-modus-knopf{background:transparent;color:#5d6760;border:none;min-height:34px;padding:7px 14px;font-size:12px;box-shadow:none}
#tikosTabPanelTeile button.tikos-teile-modus-knopf.aktiv{background:#fff;color:#2f5d17;box-shadow:0 1px 4px rgba(32,39,34,.12)}
.tikos-teile-eingabe[data-modus="traeger"] .tikos-teile-form{grid-template-columns:minmax(220px,300px) minmax(260px,420px) auto;justify-content:start}

/* Traeger-Erfassung */
.tikos-teile-erfassung{margin-top:16px;padding-top:14px;border-top:1px solid #edf0ec;display:grid;gap:12px}
.tikos-teile-person{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding:10px 14px;border-radius:12px;background:#f4faee;border:1px solid #d5e8c9}
.tikos-teile-person strong{font-size:15px;color:#2f5d17}
.tikos-teile-person span{font-size:12px;color:#5d6760}
.tikos-teile-vorlage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#tikosTabPanelTeile [data-nur].hidden{display:none}
.tikos-teile-vorlage select,.tikos-teile-erfassen select,.tikos-teile-erfassen input{height:38px;margin:0;padding:6px 10px;line-height:1.3;border-radius:9px;font-size:13px}
.tikos-teile-vorlage select{width:100%;height:42px}
.tikos-teile-erfassen td{vertical-align:middle}
.tikos-teile-erfassen td small{display:block;font-size:11px;color:#7a837c;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tikos-teile-erfassen select{min-width:110px}
.tikos-teile-erfassen input[data-feld="identnummer"]{width:170px;font-family:ui-monospace,Consolas,monospace;font-weight:700;letter-spacing:.03em}
.tikos-teile-erfassen tr.erfasst td{background:#f4faee}
.tikos-teile-erfassen tr.erfasst input[data-feld="identnummer"]{border-color:#9cc56f}
#tikosTabPanelTeile button.tikos-teile-weg-knopf{background:transparent;color:#8a928c;border:1px solid transparent;min-height:30px;padding:4px 9px;font-size:12px}
#tikosTabPanelTeile button.tikos-teile-weg-knopf:hover{color:#a3271b;border-color:#f3cdc6;background:#fdf0ee}
.tikos-teile-zaehler{margin:0;font-size:12px;color:#68706b}
@media(max-width:760px){
  .tikos-teile-eingabe[data-modus="traeger"] .tikos-teile-form,.tikos-teile-vorlage{grid-template-columns:1fr}
}

/* 2.76.0: Barcode tauschen */
.tikos-teile-barcode{margin-top:16px}
.tikos-teile-barcode .tikos-teile-knoepfe{justify-content:flex-start}
#tikosTeileBarcodeStatus:not(:empty){margin-top:10px}
