/* TIKOS Import (2.36.0) - ausschließlich scoped .tikos-import-* Regeln, keine globalen Selektoren. */

.tikos-import-page{display:grid;gap:18px;max-width:1580px;margin:0 auto;}
.tikos-import-card{margin:0;}
.tikos-import-header-card .analysis-subtitle{margin-bottom:10px;}

.tikos-import-tabs{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap;}

/* TIKOS Personenimport erweitern (2.38.0): Tab-Leiste "Mitarbeiter anlegen" / "Bestehende
   Mitarbeiter ändern" / "Import-Historie". Scoped .tikos-tab-* Regeln, orientiert an den
   bestehenden .tikos-import-tab-Regeln oben. */
.tikos-tabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;border-bottom:1px solid var(--border,#e3e7e4);}
.tikos-tab-button{
  border:1px solid transparent;
  background:transparent;
  border-radius:12px 12px 0 0;
  padding:8px 14px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  color:#5b6260;
}
.tikos-tab-button.active{background:#e9f5df;border-color:#bfe3a0;color:#2f6d1f;}
.tikos-tab-panel.hidden{display:none;}
.tikos-import-tab{
  border:1px solid var(--border,#e3e7e4);
  background:#fafbfa;
  border-radius:12px;
  padding:8px 14px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}
.tikos-import-tab.active{background:#e9f5df;border-color:#bfe3a0;color:#2f6d1f;}
.tikos-import-tab-disabled{cursor:not-allowed;opacity:.65;display:flex;align-items:center;gap:6px;}
.tikos-import-badge{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  background:#eceff0;
  color:#5b6260;
  border-radius:999px;
  padding:2px 8px;
}

.tikos-import-steps{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap;}
.tikos-import-step{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#f4f6f3;
  font-size:12px;
  font-weight:700;
  color:#6a716d;
}
.tikos-import-step.active{background:#e9f5df;color:#2f6d1f;}
.tikos-import-step.done{background:#eef2eb;color:#3f463f;}
.tikos-import-step-num{
  width:20px;height:20px;
  border-radius:50%;
  background:#dde3da;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;
}
.tikos-import-step.active .tikos-import-step-num{background:#7ac74a;color:#fff;}

.tikos-import-step-panel{display:grid;gap:18px;}

.tikos-import-template-row{display:flex;justify-content:flex-end;margin-bottom:12px;}

.tikos-import-dropzone{display:grid;gap:8px;justify-items:center;text-align:center;padding:36px 20px;}
.tikos-import-dropzone small{color:#7a8280;}

.tikos-import-known-columns{margin-top:14px;font-size:12px;color:#6a716d;}

.tikos-import-preview-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:#5b6260;margin-bottom:12px;}
.tikos-import-preview-meta strong{color:#232a27;}

.tikos-import-table-wrap{overflow-x:auto;}
.tikos-import-table{width:100%;border-collapse:collapse;font-size:13px;}
.tikos-import-table th,.tikos-import-table td{padding:8px 10px;border-bottom:1px solid var(--border,#e3e7e4);text-align:left;white-space:nowrap;}
.tikos-import-table th{color:#6a716d;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.02em;}

.tikos-import-row-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:700;
  padding:2px 10px;
  border-radius:999px;
}
.tikos-import-row-status.ok{background:#e9f5df;color:#2f6d1f;}
.tikos-import-row-status.error{background:#fbe4e1;color:#a3271b;}

.tikos-import-pagination{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;}
.tikos-import-pagination button{padding:6px 12px;font-size:12px;}
.tikos-import-pagination button.active{background:#7ac74a;color:#fff;}

.tikos-import-check-grid{display:grid;gap:18px;grid-template-columns:repeat(3,1fr);}
.tikos-import-checklist,.tikos-import-hints,.tikos-import-errors{display:grid;gap:8px;margin-top:10px;font-size:13px;}

.tikos-import-check-item{display:flex;align-items:flex-start;gap:8px;}
.tikos-import-check-item.ok{color:#2f6d1f;}
.tikos-import-check-item.warn{color:#9a6b12;}
.tikos-import-check-item.error{color:#a3271b;}

.tikos-import-hint-item{color:#5b6260;}

.tikos-import-error-item{
  border:1px solid #f3c9c3;
  background:#fbe4e1;
  border-radius:10px;
  padding:8px 10px;
  color:#a3271b;
}
.tikos-import-errors-empty,.tikos-import-hints-empty{color:#7a8280;}

.tikos-import-actions{display:flex;justify-content:space-between;gap:10px;}

.tikos-import-result{display:grid;gap:14px;}
.tikos-import-result-recordset table{width:100%;border-collapse:collapse;font-size:12px;margin-top:6px;}
.tikos-import-result-recordset th,.tikos-import-result-recordset td{padding:6px 8px;border-bottom:1px solid var(--border,#e3e7e4);text-align:left;}
.tikos-import-result-meta{font-size:12px;color:#6a716d;}

@media(max-width:900px){
  .tikos-import-check-grid{grid-template-columns:1fr;}
}

/* Direkterfassung (2.36.x) - schnelle Massentabelle für Mitarbeiter direkt im Hub. */

.tikos-import-entry-modes{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap;}
.tikos-import-entry-mode{
  border:1px solid var(--border,#e3e7e4);
  background:#fafbfa;
  border-radius:12px;
  padding:8px 14px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}
.tikos-import-entry-mode.active{background:#e9f5df;border-color:#bfe3a0;color:#2f6d1f;}

.tikos-import-direct-panel{display:grid;gap:18px;}

.tikos-import-direct-defaults{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:10px;}
.tikos-import-direct-default-field{display:grid;gap:4px;font-size:12px;color:#5b6260;}
.tikos-import-direct-default-field input{font-size:13px;padding:6px 8px;}

.tikos-import-direct-bulk-row{display:flex;align-items:center;gap:10px;margin-top:12px;}
.tikos-import-direct-selected-count{font-size:12px;color:#6a716d;}

.tikos-import-direct-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;}
.tikos-import-direct-toolbar-add{display:flex;align-items:center;gap:6px;font-size:12px;color:#5b6260;}
.tikos-import-direct-toolbar-add input{width:70px;padding:6px 8px;font-size:13px;}
.tikos-import-direct-toolbar-select{display:flex;gap:8px;margin-left:auto;}

.tikos-import-direct-table-wrap{overflow-x:auto;max-height:60vh;overflow-y:auto;}
.tikos-import-direct-table{width:100%;border-collapse:collapse;font-size:13px;}
.tikos-import-direct-table th,.tikos-import-direct-table td{padding:4px 6px;border-bottom:1px solid var(--border,#e3e7e4);text-align:left;}
.tikos-import-direct-table th{
  color:#6a716d;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.02em;
  position:sticky;top:0;background:#fafbfa;white-space:nowrap;
}
.tikos-import-direct-table td input{width:100%;min-width:70px;padding:5px 6px;font-size:12px;border:1px solid transparent;background:transparent;}
.tikos-import-direct-table td input:focus{border-color:#bfe3a0;background:#fff;}
.tikos-import-direct-row-num{color:#7a8280;font-size:12px;text-align:center;}
.tikos-import-direct-row-actions{display:flex;gap:4px;white-space:nowrap;}
.tikos-import-direct-row-actions button{padding:4px 8px;font-size:12px;}
tr.tikos-import-direct-row-error td input{background:#fbe4e1;}
.tikos-import-direct-table td input.tikos-import-direct-cell-error{background:#fbe4e1;border-color:#e59a92;}

@media(max-width:900px){
  .tikos-import-direct-defaults{grid-template-columns:repeat(2,1fr);}
}

/* ===================================================================== */
/* UX-Neufassung "Mitarbeiter anlegen" (Personenimport als eine           */
/* Arbeitsfläche statt Wizard) - ausschließlich scoped .tikos-*-Klassen,  */
/* keine globalen Selektoren, nutzt bestehende Farben/Abstände/Cards.     */
/* ===================================================================== */

.tikos-module{margin:0;}
.tikos-module-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:4px;}
.tikos-module-title{font-weight:800;font-size:15px;color:#232a27;}
.tikos-module-closed{opacity:.75;}
.tikos-module-closed .analysis-subtitle{margin:6px 0 0;}

.tikos-workspace{display:grid;gap:18px;margin-top:10px;}
.tikos-workspace-header h3{margin:0 0 4px;}
.tikos-workspace-header .analysis-subtitle{margin:0;}

.tikos-workspace-section{border:1px solid var(--border,#e3e7e4);border-radius:14px;padding:16px;background:#fafbfa;}
.tikos-workspace-section h4{margin:0 0 4px;font-size:14px;}
.tikos-workspace-section .analysis-subtitle{margin:0 0 10px;}

.tikos-customer-section label[for="tikosCustomerNumber"]{font-weight:700;font-size:13px;color:#5b6260;display:block;margin-bottom:6px;}
.tikos-customer-row{display:flex;gap:10px;align-items:center;}
.tikos-customer-row input{max-width:280px;font-size:15px;font-weight:700;padding:8px 12px;}
.tikos-customer-row button{width:auto;margin-top:0;}
.tikos-customer-hint{font-size:12px;color:#9a6b12;margin:6px 0 0;min-height:14px;}

.tikos-fixvalues-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.tikos-fixvalues-grid label{display:grid;gap:4px;font-size:12px;color:#5b6260;}
.tikos-fixvalues-grid input,.tikos-fixvalues-grid select{font-size:13px;padding:6px 8px;}
.tikos-fixvalues-more{margin-top:10px;}
.tikos-fixvalues-more summary{cursor:pointer;font-size:12px;font-weight:700;color:#2f6d1f;}
.tikos-fixvalues-more .tikos-fixvalues-grid{margin-top:10px;}

.tikos-serial-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px;}
.tikos-serial-field{display:flex;align-items:center;gap:6px;font-size:12px;color:#5b6260;}
.tikos-serial-field span{min-width:150px;font-weight:700;}
.tikos-serial-field input{width:90px;padding:6px 8px;font-size:13px;}

.tikos-add-row{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:13px;}
.tikos-add-row input{width:80px;padding:6px 8px;}
.tikos-add-row button{width:auto;margin-top:0;}

.tikos-table-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;}
.tikos-table-toolbar button{width:auto;margin-top:0;}
.tikos-toggle-fields{font-size:12px;color:#5b6260;display:flex;align-items:center;gap:6px;}
.tikos-table-status{font-size:12px;font-weight:700;color:#5b6260;margin-left:auto;}

.tikos-bulk-bar{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  background:#e9f5df;border:1px solid #bfe3a0;border-radius:12px;padding:10px 12px;margin-bottom:10px;
}
.tikos-bulk-bar.hidden{display:none;}
.tikos-bulk-bar span{font-weight:700;font-size:13px;color:#2f6d1f;}
.tikos-bulk-bar button{width:auto;margin-top:0;}

/* Bugfix (visueller Smoke-Test): .tikos-table-section ist ein Grid-Item in .tikos-workspace
   (display:grid). Ohne min-width:0 erzwingt der Browser für Grid-Items eine automatische
   Mindestbreite = Inhalts-Mindestbreite (hier: die 18-spaltige Tabelle mit min-width:70px pro
   Zelle) - das sprengt bei 10+ Zeilen die ganze Seite horizontal, statt dass NUR
   .tikos-table-wrap (das bereits overflow-x:auto hat) intern scrollt. */
.tikos-table-section{min-width:0;}
.tikos-table-wrap{overflow-x:auto;max-height:56vh;overflow-y:auto;}
.tikos-table{width:100%;border-collapse:collapse;font-size:13px;}
.tikos-table th,.tikos-table td{padding:4px 6px;border-bottom:1px solid var(--border,#e3e7e4);text-align:left;}
.tikos-table th{
  color:#6a716d;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.02em;
  position:sticky;top:0;background:#fafbfa;white-space:nowrap;
}
/* Abschnitt 5 (Erweiterung): editierbare Felder müssen dauerhaft eindeutig als Input/Select
   erkennbar sein - vorher unsichtbarer Rand im Normalzustand wirkte "erst beim Fokus" wie ein
   Eingabefeld. Bewusst NUR innerhalb .tikos-table gescoped, keine globale input-/select-Regel. */
.tikos-table td input,.tikos-table td select{
  width:100%;min-width:70px;padding:5px 6px;font-size:12px;
  border:1px solid #cfe3c4;background:#fff;border-radius:6px;
}
.tikos-table td input:focus,.tikos-table td select:focus{border-color:#7ac74a;background:#fff;box-shadow:0 0 0 1px #7ac74a;}
.tikos-table td input.tikos-cell-error{background:#fbe4e1;border-color:#e59a92;}
.tikos-table td input:disabled,.tikos-table td select:disabled,
.tikos-table td input[readonly]{
  background:#eef0ee;color:#8a908c;border-color:#d7dcd6;cursor:not-allowed;
}

.tikos-row-num{color:#7a8280;font-size:12px;text-align:center;}
.tikos-row-status-cell{text-align:center;font-size:14px;}
.tikos-row-status-cell.tikos-row-status-ok{color:#2f6d1f;}
.tikos-row-status-cell.tikos-row-status-warn{color:#a3271b;}
.tikos-row-actions{display:flex;gap:4px;white-space:nowrap;}
.tikos-row-actions button{width:auto;margin-top:0;padding:4px 8px;font-size:12px;}
tr.tikos-row-error td input,tr.tikos-row-error td select{background:#fbe4e1;}

/* "Weitere Felder anzeigen" - optionale Spalten standardmäßig ausgeblendet, kein Datenverlust. */
.tikos-optional-col{display:none;}
.tikos-table-section.tikos-show-more .tikos-optional-col{display:table-cell;}

.tikos-sticky-bar{
  position:sticky;bottom:0;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  background:#fff;border:1px solid var(--border,#e3e7e4);border-radius:14px;padding:12px 16px;
  box-shadow:0 -2px 10px rgba(0,0,0,.04);
}
.tikos-sticky-bar span{font-weight:700;font-size:13px;color:#232a27;}
.tikos-sticky-actions{display:flex;gap:10px;}
.tikos-sticky-actions button{width:auto;margin-top:0;}

/* Sicherheitsfix: "TIKOS prüfen" muss im deaktivierten Zustand eindeutig erkennbar sein - der
   Button ist funktional bereits korrekt disabled, sieht im bestehenden Hub-Button-Stil aber kaum
   anders aus als aktiv. Bewusst NUR auf diesen einen Button gescoped (ID-Selektor gewinnt gegen
   das globale button:hover ohne !important) - keine globale button/:disabled-Regel geändert,
   aktiver Zustand bleibt unverändert im bestehenden RUESS-Hub-Stil. */
#tikosCheckButton:disabled{
  opacity:.4;
  cursor:not-allowed;
}
#tikosCheckButton:disabled:hover{
  background:var(--primary);
  transform:none;
}

/* Produktiver Commit ("Jetzt in TIKOS anlegen") - bewusst deutlich von "TIKOS prüfen"
   unterschieden (kräftiges Orange statt des normalen Primärgrüns), da dieser Button produktive
   Daten in TIKOS schreibt. Gescoped auf diese eine Klasse - keine globale button-Regel geändert. */
.tikos-commit-button{
  background:#c9660a;color:#fff;border:1px solid #a8540a;
}
.tikos-commit-button:hover{
  background:#a8540a;
}
.tikos-commit-button:disabled{
  opacity:.4;cursor:not-allowed;background:#c9660a;transform:none;
}

.tikos-check-result-import-id{margin-top:6px;color:#5b6260;font-size:12px;font-family:monospace;}
.tikos-check-result-manual-review-hint{margin-top:8px;font-size:12px;font-weight:700;}

.tikos-check-result{border-radius:14px;padding:14px 16px;font-size:13px;}
.tikos-check-result-ok{background:#e9f5df;border:1px solid #bfe3a0;color:#2f6d1f;}
.tikos-check-result-warn{background:#fbe4e1;border:1px solid #f3c9c3;color:#a3271b;}
.tikos-check-result-error{background:#fbe4e1;border:1px solid #f3c9c3;color:#a3271b;}
.tikos-check-result-heading{font-weight:800;margin-bottom:6px;}
.tikos-check-result-errors{display:grid;gap:6px;margin-top:8px;}
.tikos-check-result-error-item{
  text-align:left;background:#fff;border:1px solid #f3c9c3;border-radius:8px;padding:6px 10px;
  font-size:12px;color:#a3271b;cursor:pointer;
}
.tikos-check-result-info{margin-top:8px;color:#5b6260;font-size:12px;}
.tikos-check-result-commit-hint{margin-top:6px;color:#5b6260;font-size:12px;}
.tikos-check-result-info-details{margin-top:8px;}
.tikos-check-result-info-details summary{cursor:pointer;color:#5b6260;font-size:12px;}
.tikos-check-result-info-details .tikos-check-result-info{margin-top:6px;}

/* 2.39.5: Excel-Vorlage + Dateiimport im bestehenden "Mitarbeiter anlegen"-Workspace.
   Ausschließlich TIKOS-scoped; keine globalen Button/Input/Table-Regeln. */
.tikos-excel-import-panel{
  display:grid;gap:14px;margin-top:14px;padding:18px;border:1px solid #dfe8dc;border-radius:14px;background:#fff;
}
.tikos-excel-import-panel.hidden{display:none;}
.tikos-excel-import-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
.tikos-excel-import-head h5{margin:0 0 4px;font-size:16px;color:#232a27;}
.tikos-excel-import-head p{margin:0;color:#68716c;font-size:13px;}
.tikos-excel-import-head button{width:auto;margin:0;white-space:nowrap;}
.tikos-excel-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.tikos-excel-steps span{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:10px;background:#f5f8f3;color:#4c574f;font-size:12px;font-weight:700;}
.tikos-excel-steps b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#6da52e;color:#fff;font-size:12px;}
.tikos-excel-dropzone{display:grid;place-items:center;gap:5px;min-height:116px;padding:20px;border:2px dashed #9acb72;border-radius:12px;background:#f7fbf4;cursor:pointer;text-align:center;transition:.15s ease;}
.tikos-excel-dropzone:hover,.tikos-excel-dropzone.is-dragover{border-color:#5f9d2c;background:#eff8e9;}
.tikos-excel-dropzone strong{font-size:15px;color:#30452b;}
.tikos-excel-dropzone span{font-size:12px;color:#6d746f;}
.tikos-excel-import-summary{padding:10px 12px;border-radius:10px;background:#f5f8f3;color:#42503f;font-size:13px;font-weight:700;}
.tikos-excel-import-summary.is-success{background:#edf8e8;color:#285f1b;}
.tikos-excel-import-summary.is-warning{background:#fff6e5;color:#855b0a;}
.tikos-excel-import-summary.is-error{background:#fff0ee;color:#98271d;}
.tikos-excel-import-meta{font-size:12px;color:#6d746f;}
.tikos-excel-preview-wrap{overflow:auto;border:1px solid #e2e8df;border-radius:12px;}
.tikos-excel-preview-wrap.hidden{display:none;}
.tikos-excel-preview-table{width:100%;border-collapse:collapse;min-width:760px;}
.tikos-excel-preview-table th,.tikos-excel-preview-table td{padding:9px 11px;border-bottom:1px solid #edf0eb;text-align:left;font-size:12px;}
.tikos-excel-preview-table th{background:#f6f8f5;color:#465047;font-weight:800;}
.tikos-excel-preview-table tr:last-child td{border-bottom:0;}
.tikos-excel-preview-table .tikos-excel-row-warn td{background:#fff8ed;}
.tikos-excel-status-ok{color:#2f6d1f;font-weight:800;}
.tikos-excel-status-warn{color:#9a6510;font-weight:800;}
.tikos-excel-import-actions{display:flex;justify-content:flex-end;gap:10px;}
.tikos-excel-import-actions button{width:auto;margin:0;}

@media(max-width:760px){
  .tikos-excel-import-head{display:grid;}
  .tikos-excel-import-head button{width:100%;}
  .tikos-excel-steps{grid-template-columns:1fr;}
  .tikos-excel-import-actions{display:grid;grid-template-columns:1fr;}
  .tikos-excel-import-actions button{width:100%;}
}

/* "Liste einfügen" (Massen-Paste) - Abschnitt 3/4 der Erweiterung. */

.tikos-paste-panel{
  display:grid;gap:10px;margin-top:14px;padding:14px;
  border:1px solid var(--border,#e3e7e4);border-radius:12px;background:#fff;
}
.tikos-paste-panel.hidden{display:none;}
.tikos-paste-panel label{font-size:12px;font-weight:700;color:#5b6260;}
.tikos-paste-panel textarea{
  width:100%;min-height:110px;font-family:inherit;font-size:13px;padding:8px 10px;
  border:1px solid #cfe3c4;border-radius:8px;resize:vertical;
}
.tikos-paste-panel textarea:focus{border-color:#7ac74a;box-shadow:0 0 0 1px #7ac74a;}
.tikos-paste-summary{font-size:12px;font-weight:700;color:#2f6d1f;}
.tikos-paste-mapping{display:flex;gap:12px;flex-wrap:wrap;}
.tikos-paste-mapping-field{display:grid;gap:4px;font-size:11px;color:#5b6260;}
.tikos-paste-mapping-field select{font-size:12px;padding:5px 6px;border:1px solid #cfe3c4;border-radius:6px;}
.tikos-paste-preview{
  display:grid;gap:4px;max-height:220px;overflow-y:auto;
  border-top:1px solid var(--border,#e3e7e4);padding-top:8px;
}
.tikos-paste-preview-row{font-size:12px;color:#5b6260;}
.tikos-paste-preview-row-error{color:#a3271b;font-weight:700;}
.tikos-paste-preview-more{font-size:12px;color:#7a8280;}
.tikos-paste-actions{display:flex;justify-content:flex-end;gap:10px;}
.tikos-paste-actions button{width:auto;margin-top:0;}

/* 2.39.0: Massenänderungs-Workspace ("Bestehende Mitarbeiter ändern") - Filter, Liste-einfügen,
   Individuelle-Werte-Editor. Ausschließlich hier scoped, kein globales CSS. */
.tikos-filter-section label{display:block;font-size:12px;color:#5b6260;margin-bottom:6px;}
.tikos-filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px;}
.tikos-filter-grid label{display:grid;gap:4px;font-size:12px;color:#5b6260;}
.tikos-filter-grid input,.tikos-filter-grid select{font-size:13px;padding:6px 8px;}

.tikos-paste-section textarea,
.tikos-fixvalues-section textarea{
  width:100%;font-family:inherit;font-size:13px;padding:8px;margin-bottom:8px;
  border:1px solid #cfe3c4;border-radius:8px;resize:vertical;
}
.tikos-paste-section textarea:focus,
.tikos-fixvalues-section textarea:focus{border-color:#7ac74a;box-shadow:0 0 0 1px #7ac74a;}

/* 2.39.2: ruhiger, geführter Änderungsablauf. Sämtliche Regeln bleiben auf TIKOS beschränkt. */
.tikos-update-flow{max-width:1120px;margin:0 auto;gap:18px;}
.tikos-step-card{border:1px solid #dfe8dc;background:#fff;border-radius:16px;padding:20px;box-shadow:0 4px 18px rgba(35,42,39,.04);}
.tikos-step-heading{display:flex;align-items:center;gap:10px;margin-bottom:16px;}
.tikos-step-heading>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e9f5df;color:#2f6d1f;font-weight:800;}
.tikos-step-heading h4{margin:0;font-size:18px;color:#232a27;}
.tikos-customer-success,.tikos-customer-error{display:grid;gap:3px;margin-top:12px;padding:13px 15px;border-radius:12px;}
.tikos-customer-success{background:#edf8e8;border:1px solid #bfe3a0;color:#285f1b;}
.tikos-customer-error{background:#fff0ee;border:1px solid #f3c9c3;color:#98271d;}
.tikos-customer-success strong,.tikos-customer-error strong{font-size:14px;}
.tikos-customer-success span{display:block;}
.tikos-advanced-options,.tikos-quick-select{margin-top:14px;border:1px solid #dfe8dc;border-radius:12px;padding:12px 14px;background:#f9fbf8;}
.tikos-advanced-options summary,.tikos-quick-select summary{cursor:pointer;font-weight:700;color:#3d493f;}
.tikos-quick-select-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;align-items:end;margin:14px 0;}
.tikos-quick-select-grid label{display:grid;gap:5px;color:#5b6260;font-size:12px;}
.tikos-quick-select-grid>div{display:grid;gap:8px;}
.tikos-quick-select-grid button{width:auto;margin:0;}
.tikos-employee-list-wrap{max-height:520px;overflow:auto;}
.tikos-employee-list tr{cursor:pointer;}
.tikos-employee-list tbody tr:hover,.tikos-employee-list tbody tr.selected{background:#f0f8eb;}
.tikos-employee-list td strong,.tikos-employee-list td small,.tikos-preview-table td strong,.tikos-preview-table td small{display:block;}
.tikos-employee-list td small,.tikos-preview-table td small{margin-top:3px;color:#6d746f;font-size:11px;}
.tikos-change-summary{margin:14px 0;padding:12px 14px;border-radius:10px;background:#f1f6ef;color:#364332;font-weight:700;}
.tikos-preview-status{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:12px;margin:14px 0;}
.tikos-preview-status article{display:grid;gap:2px;padding:14px;border:1px solid #dfe8dc;border-radius:12px;background:#f9fbf8;}
.tikos-preview-status strong{font-size:22px;color:#2f6d1f;}
.tikos-preview-status span{color:#5b6260;font-size:12px;}
#tikosUpdateCommitSection{text-align:right;}
#tikosUpdateCommitButton{width:auto;min-width:260px;font-size:15px;padding:12px 18px;}
#tikosTabPanelHistory td small{display:block;margin-top:3px;color:#6d746f;}

@media(max-width:900px){
  .tikos-fixvalues-grid{grid-template-columns:repeat(2,1fr);}
  .tikos-filter-grid{grid-template-columns:1fr 1fr;}
  .tikos-serial-grid{grid-template-columns:1fr;}
  .tikos-quick-select-grid{grid-template-columns:1fr 1fr;}
}

@media(max-width:600px){
  .tikos-filter-grid{grid-template-columns:1fr;}
  .tikos-step-card{padding:15px;}
  .tikos-quick-select-grid,.tikos-preview-status{grid-template-columns:1fr;}
  .tikos-employee-list th:nth-child(4),.tikos-employee-list td:nth-child(4){display:none;}
  #tikosUpdateCommitButton{width:100%;min-width:0;}
}

/* =====================================================================
   2.39.3: TIKOS Mitarbeiter ändern – reiner UX/UI-Fix.
   Keine globalen Selektoren, keine Änderungen an Anlegen/Undo/Backend.
   ===================================================================== */

/* Die linke Hub-Navigation ist jetzt die einzige Bereichsnavigation. */
.tikos-import-page .tikos-module-header,
.tikos-import-page .tikos-tabs{display:none;}

.tikos-update-flow{
  max-width:1360px;
  margin:0 auto;
  gap:16px;
}

.tikos-update-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:4px 2px 2px;
}
.tikos-update-hero h3{margin:2px 0 4px;font-size:28px;line-height:1.15;color:#202722;}
.tikos-update-hero .analysis-eyebrow{margin:0 0 5px;color:#6f7a72;font-size:11px;font-weight:800;letter-spacing:.08em;}
.tikos-update-hero .analysis-subtitle{margin:0;color:#68706b;}
.tikos-update-journey{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.tikos-update-journey span{
  display:flex;align-items:center;gap:7px;
  padding:7px 10px;border:1px solid #e1e8de;border-radius:999px;
  background:#fff;color:#667068;font-size:12px;font-weight:700;
}
.tikos-update-journey b{
  display:grid;place-items:center;width:20px;height:20px;border-radius:50%;
  background:#e8f3df;color:#356b27;font-size:11px;
}

.tikos-update-flow .tikos-step-card{
  border:1px solid #dfe7dc;
  background:#fff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 3px 14px rgba(32,39,34,.035);
}
.tikos-update-flow .tikos-step-heading{margin-bottom:14px;align-items:flex-start;}
.tikos-update-flow .tikos-step-heading>span{width:28px;height:28px;flex:0 0 28px;}
.tikos-update-flow .tikos-step-heading h4{font-size:17px;line-height:1.25;margin:1px 0 2px;}
.tikos-update-flow .tikos-step-heading small{display:block;color:#778078;font-size:12px;font-weight:500;}

/* Schritt 1 kompakt und horizontal. */
.tikos-customer-card{display:grid;grid-template-columns:minmax(320px,480px) minmax(260px,1fr);column-gap:22px;align-items:end;}
.tikos-customer-card .tikos-step-heading{grid-column:1/-1;}
.tikos-customer-compact{display:grid;gap:6px;}
.tikos-customer-compact>label{font-size:12px;color:#667068;font-weight:700;}
.tikos-customer-card .tikos-customer-row{display:flex;gap:8px;align-items:center;}
.tikos-customer-card .tikos-customer-row input{min-width:0;flex:1;height:42px;font-size:15px;font-weight:700;}
.tikos-customer-card .tikos-customer-row button{width:auto;margin:0;white-space:nowrap;}
.tikos-customer-card #tikosUpdateHint{margin:0;min-height:42px;align-self:end;}
.tikos-customer-card .tikos-customer-success,
.tikos-customer-card .tikos-customer-error{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  min-height:42px;padding:10px 13px;border-radius:10px;
}
.tikos-customer-card .tikos-customer-success strong,
.tikos-customer-card .tikos-customer-error strong{font-size:13px;}
.tikos-customer-card .tikos-customer-success span{display:inline;font-size:12px;}
.tikos-customer-card .tikos-customer-success span+span{padding-left:10px;border-left:1px solid #b9d9aa;}

/* Schritt 2 + Schritt 3 bilden bei Auswahl einen Arbeitsbereich. */
.tikos-update-main-grid{display:block;}
.tikos-update-main-grid:has(#tikosUpdateChangeSection:not(.hidden)){
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,370px);
  gap:16px;
  align-items:start;
}
.tikos-selection-card{min-width:0;}
.tikos-change-card{position:sticky;top:14px;align-self:start;}

.tikos-selection-search-row{
  display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px;align-items:end;
  margin-bottom:10px;
}
.tikos-selection-search{display:grid;gap:6px;margin:0!important;}
.tikos-selection-search span{font-size:12px;color:#667068;font-weight:700;}
.tikos-selection-search input{height:42px;font-size:14px;padding:9px 12px;border-radius:10px;}
.tikos-selection-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:0 14px;border-radius:10px;
  background:#eef6e9;border:1px solid #cfe3c4;color:#315f26;
  font-size:12px;white-space:nowrap;
}

.tikos-selection-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 14px;}
.tikos-selection-tools .tikos-advanced-options,
.tikos-selection-tools .tikos-quick-select{
  margin:0;padding:0;border:1px solid #e0e6dd;border-radius:10px;background:#fafcf9;overflow:hidden;
}
.tikos-selection-tools summary{
  padding:10px 12px;list-style:none;display:flex;align-items:center;justify-content:space-between;
  font-size:12px;font-weight:800;color:#465048;cursor:pointer;
}
.tikos-selection-tools summary::-webkit-details-marker{display:none;}
.tikos-selection-tools summary::after{content:"+";font-size:18px;line-height:1;color:#7b847d;font-weight:500;}
.tikos-selection-tools details[open] summary::after{content:"–";}
.tikos-selection-tools details[open] summary{border-bottom:1px solid #e5eae3;background:#fff;}
.tikos-selection-tools .tikos-filter-grid{padding:12px;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));}
.tikos-selection-tools .tikos-quick-select-grid{padding:12px;margin:0;grid-template-columns:1fr 1fr;}
.tikos-selection-tools .tikos-quick-select-grid>div{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.tikos-selection-tools .tikos-quick-select-grid>div button{white-space:nowrap;}
.tikos-quick-paste{display:grid;gap:8px;padding:12px;border-top:1px solid #e5eae3;background:#fff;}
.tikos-quick-paste h4{margin:0;font-size:13px;}
.tikos-quick-paste .analysis-subtitle{margin:2px 0 0;font-size:11px;}
.tikos-quick-paste textarea{min-height:84px;margin:0;}
.tikos-quick-paste>button{width:max-content;margin:0;}

.tikos-employee-panel{margin-top:2px;border:1px solid #e1e7df;border-radius:12px;background:#fff;overflow:hidden;}
.tikos-selection-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:10px 12px;background:#f8faf7;border-bottom:1px solid #e5eae3;
}
.tikos-selection-toolbar>div{display:flex;gap:8px;flex-wrap:wrap;}
.tikos-selection-toolbar button{width:auto;margin:0;padding:7px 11px;font-size:12px;}
.tikos-employee-list-wrap{max-height:none;overflow-x:auto;overflow-y:visible;}
.tikos-employee-list{font-size:13px;}
.tikos-employee-list th{position:static;background:#fbfcfb;padding:9px 12px;}
.tikos-employee-list td{padding:9px 12px;vertical-align:middle;}
.tikos-employee-list th:first-child,.tikos-employee-list td:first-child{width:74px;text-align:center;}
.tikos-employee-list th:nth-child(2),.tikos-employee-list td:nth-child(2){width:82px;}
.tikos-employee-list tbody tr{transition:background .12s ease;}
.tikos-employee-list tbody tr:hover{background:#f5f9f2;}
.tikos-employee-list tbody tr.selected{background:#edf7e8;}
.tikos-employee-list input[type="checkbox"]{width:17px;height:17px;accent-color:#73b842;}

/* Schritt 3 als ruhige, bei längeren Listen sticky bleibende Aktionskarte. */
.tikos-change-fields{display:grid;gap:12px;}
.tikos-change-fields label{display:grid;gap:6px;font-size:12px;color:#667068;font-weight:700;}
.tikos-change-fields select,.tikos-change-fields input{width:100%;min-height:40px;font-size:13px;}
.tikos-change-card .tikos-change-summary{
  margin:14px 0 10px;padding:11px 12px;border-radius:10px;background:#f1f6ef;color:#334b2c;font-size:12px;
}
.tikos-change-card .tikos-primary-action{width:100%;margin:0;padding:11px 14px;font-size:13px;font-weight:800;}
.tikos-change-card .tikos-change-advanced{margin-top:12px;padding:10px 12px;}
.tikos-change-card .tikos-change-advanced summary{font-size:12px;}

/* Schritt 4 deutlich vom Auswahlbereich trennen. */
.tikos-preview-card{margin-top:0;overflow-x:auto;}
.tikos-preview-card .tikos-preview-status{grid-template-columns:repeat(3,minmax(120px,190px));justify-content:start;}
.tikos-preview-card .tikos-preview-status article{padding:11px 13px;}
.tikos-preview-card .tikos-preview-status strong{font-size:20px;}
.tikos-update-commit-card{
  display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;
  padding:12px 0 2px;
}
.tikos-update-commit-card #tikosUpdateCommitButton{margin:0;}
.tikos-update-commit-card #tikosUpdateCommitHint{margin:0;}

@media(max-width:1050px){
  .tikos-update-main-grid:has(#tikosUpdateChangeSection:not(.hidden)){display:block;}
  .tikos-change-card{position:static;margin-top:16px;}
  .tikos-customer-card{grid-template-columns:1fr;}
  .tikos-customer-card #tikosUpdateHint{margin-top:10px;}
}

@media(max-width:760px){
  .tikos-update-hero{display:block;}
  .tikos-update-journey{justify-content:flex-start;margin-top:12px;}
  .tikos-selection-search-row,.tikos-selection-tools{grid-template-columns:1fr;}
  .tikos-selection-count{justify-self:start;}
  .tikos-selection-tools .tikos-filter-grid,
  .tikos-selection-tools .tikos-quick-select-grid{grid-template-columns:1fr;}
  .tikos-customer-card .tikos-customer-success span+span{padding-left:0;border-left:0;}
}
