/* ================================================================
   Berufszuweisung — nutzt die Farb- und Schrift-Tokens aus app.css
   ================================================================ */

.prof-head{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;
  padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line-soft);
}
.prof-head-meta{font-size:12px;color:var(--bone-dim);font-family:var(--font-mono);}
.prof-head-meta b{color:var(--bone);}
.prof-head-meta .sep,.prof-stats-sum .sep{color:var(--bone-faint);margin:0 6px;}

/* ---------------------------------------------------------- Statistikleiste */
.prof-stats{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-bottom:12px;}
.prof-stat{
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  background:var(--bg-inset);border:1px solid var(--line-soft);border-radius:3px;
  padding:4px 9px;font-family:var(--font-mono);font-size:11px;color:var(--bone-dim);
  transition:all .12s ease;
}
.prof-stat:hover{border-color:var(--bone-faint);color:var(--bone);}
.prof-stat .ct{color:var(--bone-faint);font-size:10.5px;}
.prof-stat.active{background:var(--rust);border-color:var(--rust-bright);color:#fff2ea;}
.prof-stat.active .ct{color:#ffd9c8;}
/* Nebenberufe optisch zurücknehmen */
.prof-stat.kind-neben{border-style:dashed;}
.prof-stat.kind-rp{border-color:var(--amber);}
.prof-stat.kind-gesperrt{border-color:var(--danger);color:var(--danger);}
.prof-stats-sum{margin-left:auto;font-size:11px;font-family:var(--font-mono);color:var(--bone-faint);}

/* ---------------------------------------------------------- ID-Listen */
.prof-export{
  border:1px solid var(--verdigris);border-radius:4px;background:var(--bg-panel-2);
  padding:11px 12px;margin-bottom:12px;
}
.prof-export-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px;font-size:12px;color:var(--bone-dim);}
.prof-export-head > b{font-family:var(--font-display);letter-spacing:0.05em;text-transform:uppercase;font-size:12px;color:var(--bone);}
.pe-fmt{display:inline-flex;gap:4px;}
.pe-note{font-size:11px;color:var(--bone-faint);font-family:var(--font-mono);}
.pe-note b{color:var(--amber);}
.pe-right{margin-left:auto;display:inline-flex;gap:6px;}
.prof-export .tag-note code{
  font-family:var(--font-mono);font-size:10px;background:var(--bg-inset);
  border:1px solid var(--line-soft);border-radius:2px;padding:1px 4px;color:var(--bone-dim);
}

.prof-export-list{max-height:46vh;overflow-y:auto;padding-right:4px;}
.prof-export-list::-webkit-scrollbar{width:7px;}
.prof-export-list::-webkit-scrollbar-track{background:transparent;}
.prof-export-list::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px;}

.prof-export-row{padding:7px 0;border-bottom:1px solid var(--line-soft);}
.prof-export-row:last-child{border-bottom:none;}
.pe-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:5px;}
.pe-nm{font-size:12px;color:var(--bone);font-weight:600;}
.pe-nm.kind-neben{color:var(--bone-dim);font-weight:500;}
.pe-nm.kind-rp{color:var(--amber);}
.pe-nm.kind-gesperrt{color:var(--danger);}
.pe-ct{font-family:var(--font-mono);font-size:10.5px;color:var(--bone-faint);}
.pe-actions{margin-left:auto;display:inline-flex;gap:5px;}
.pe-text{
  width:100%;resize:vertical;min-height:38px;
  font-family:var(--font-mono);font-size:10.5px;line-height:1.45;
  background:var(--bg-inset);border:1px solid var(--line-soft);color:var(--bone-dim);
  padding:6px 8px;border-radius:3px;white-space:pre;overflow-x:auto;
}
.pe-text:focus{border-color:var(--verdigris);color:var(--bone);}

/* ---------------------------------------------------------- Filterleiste */
.prof-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px;}
.prof-filters input[type=text]{flex:1 1 220px;min-width:180px;width:auto;}
.prof-filters select{width:auto;flex:0 0 auto;max-width:200px;}
.prof-count{margin-left:auto;font-size:11px;font-family:var(--font-mono);color:var(--bone-dim);}

/* ---------------------------------------------------------- Sammelaktionen */
.prof-bulk{
  border:1px solid var(--line);border-radius:4px;background:var(--bg-panel-2);
  padding:10px 12px;margin-bottom:12px;
}
.prof-bulk.empty{
  border-style:dashed;border-color:var(--line-soft);background:transparent;
  color:var(--bone-faint);font-size:11.5px;padding:8px 12px;
}
.prof-bulk-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--bone-dim);margin-bottom:8px;}
.prof-bulk-head b{color:var(--amber);font-family:var(--font-mono);}
.prof-bulk-chips{display:flex;flex-wrap:wrap;gap:5px;}
.prof-chip{
  cursor:pointer;background:var(--bg-inset);border:1px solid var(--line);
  border-radius:12px;padding:4px 11px;font-size:11px;font-family:var(--font-mono);
  color:var(--bone);transition:all .12s ease;
}
.prof-chip:hover{border-color:var(--verdigris);background:rgba(92,138,118,0.12);}
.prof-chip.kind-neben{border-style:dashed;color:var(--bone-dim);}
.prof-chip.kind-rp{border-color:var(--amber);color:var(--amber);}
.prof-chip.kind-gesperrt{border-color:var(--danger);color:var(--danger);}

/* ---------------------------------------------------------- Tabelle */
.prof-table-wrap{max-height:62vh;overflow-y:auto;overflow-x:hidden;border:1px solid var(--line-soft);border-radius:4px;background:var(--bg-inset);}
.prof-table-wrap::-webkit-scrollbar{width:7px;}
.prof-table-wrap::-webkit-scrollbar-track{background:transparent;}
.prof-table-wrap::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px;}
.prof-table-wrap::-webkit-scrollbar-thumb:hover{background:var(--bone-faint);}

.prof-table{table-layout:fixed;}
.prof-table thead th{position:sticky;top:0;background:var(--bg-panel);z-index:2;}
.prof-table td{vertical-align:top;}
.prof-table tr.sel td{background:rgba(202,160,58,0.07);}
.prof-table .c-check{width:34px;}
.prof-table .c-check input{width:auto;}
.prof-table .c-kind{width:104px;}
.prof-table .c-conf{width:104px;}
.prof-table .c-profs{width:31%;position:relative;}
.prof-table .c-why{width:20%;}
.prof-table .c-name .nm{color:var(--bone);font-weight:500;line-height:1.3;}
.prof-table .c-name .sub{
  font-family:var(--font-mono);font-size:10.5px;color:var(--bone-faint);margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.prof-table .c-why .why{
  font-size:10.5px;color:var(--bone-faint);line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

/* Berufszelle */
.prof-cell{
  display:flex;flex-wrap:wrap;gap:4px;width:100%;text-align:left;cursor:pointer;
  background:transparent;border:1px solid transparent;border-radius:3px;padding:3px;
  transition:all .12s ease;
}
.prof-cell:hover{border-color:var(--line);background:rgba(255,255,255,0.03);}
.prof-tag{
  display:inline-block;padding:2px 8px;border-radius:11px;font-size:10.5px;
  font-family:var(--font-mono);border:1px solid var(--line);
  background:var(--bg-panel-2);color:var(--bone);
}
.prof-tag.kind-neben{border-style:dashed;color:var(--bone-dim);}
.prof-tag.kind-rp{border-color:var(--amber);color:var(--amber);}
.prof-tag.kind-gesperrt{border-color:var(--danger);color:var(--danger);background:rgba(193,68,47,0.08);}
.prof-opt-lock.on{border-color:var(--danger);background:rgba(193,68,47,0.12);color:var(--bone);}
.prof-tag.none{color:var(--danger);border-color:#5a2e26;background:rgba(193,68,47,0.08);}
.prof-auto-hint{font-size:10px;color:var(--bone-faint);font-style:italic;margin-top:3px;padding-left:3px;}

.id-status.manual{color:var(--amber);}
.prof-undo{
  display:block;margin-top:4px;background:none;border:none;padding:0;cursor:pointer;
  font-size:10px;color:var(--bone-faint);text-decoration:underline;font-family:var(--font-body);
}
.prof-undo:hover{color:var(--rust-bright);}

/* ---------------------------------------------------------- Zeileneditor */
.prof-editor{
  position:absolute;z-index:30;left:4px;right:4px;top:100%;margin-top:2px;
  background:var(--bg-panel);border:1px solid var(--verdigris);border-radius:4px;
  padding:11px 12px;box-shadow:0 10px 28px rgba(0,0,0,0.55);
}
.prof-editor-head{font-size:11px;color:var(--bone-dim);margin-bottom:8px;line-height:1.4;}
.prof-opt-group{margin-bottom:8px;}
.prof-opt-head{
  font-family:var(--font-mono);font-size:9.5px;text-transform:uppercase;letter-spacing:0.06em;
  color:var(--bone-faint);margin-bottom:4px;
}
.prof-opt{
  display:inline-flex;align-items:center;gap:5px;cursor:pointer;
  border:1px solid var(--line-soft);border-radius:3px;padding:3px 8px;margin:0 4px 4px 0;
  font-size:11px;color:var(--bone-dim);background:var(--bg-inset);transition:all .12s ease;
}
.prof-opt:hover{border-color:var(--bone-faint);color:var(--bone);}
.prof-opt.on{border-color:var(--verdigris);background:rgba(92,138,118,0.14);color:var(--bone);}
.prof-opt input{width:auto;margin:0;}
.prof-editor-actions{display:flex;gap:6px;margin-top:4px;padding-top:8px;border-top:1px solid var(--line-soft);}

/* ---------------------------------------------------------- Nachladen */
.prof-more{display:flex;align-items:center;gap:10px;padding:12px 2px 2px;}

@media (max-width:1100px){
  .prof-table .c-why{display:none;}
  .prof-table .c-profs{width:38%;}
}
