/* Competentie tags in popup */
.comp-tag {
  display: inline-block;
  background: #2560b0;
  color: #fff;
  border-radius: 12px;
  padding: 2px 12px;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  font-weight: bold;
  cursor: default;
  transition: background 0.15s;
  vertical-align: middle;
}
.comp-tag:hover {
  background: #163a6b;
}
/* Competentie selectie knoppen in modal */
.comp-btn {
  display: inline-block;
  background: #e6eaf3;
  color: #2560b0;
  border: 1px solid #b3c0d6;
  border-radius: 4px;
  padding: 4px 10px;
  margin: 2px 0;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.comp-btn.selected {
  background: #2560b0;
  color: #fff;
  border-color: #2560b0;
}
/* Bewerken/toevoegen modal net zo breed als competenties-modal */
#editModal .modal-content {
  width: 96vw;
  max-width: 1200px;
  margin: 2vh auto;
  left: 0; right: 0;
  position: relative;
}
#competentiesModalCloseBtn {
  margin-bottom: 24px;
}
/* Competenties modal groot en gecentreerd */
#competentiesModal .modal-content {
  width: 96vw;
  max-width: 1200px;
  margin: 2vh auto;
  left: 0; right: 0;
  position: relative;
}
#competentiesModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.25);
}
/* Competenties modal tabel */
.competenties-tabel {
  width: calc(100% - 30px);
  margin: 0 15px 20px 15px;
}
.competenties-tabel th {
  background: #2560b0;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}
.competenties-tabel td {
  background: #f8faff;
  font-size: 12px;
  border-radius: 4px;
}
body {
  font-family: Arial, sans-serif;
  font-size: 8px;
  background: #f0f4f8;
  padding: 10px;
}
.orgchart, .orgchart ul {
  margin: 0; padding: 0;
  list-style: none;
  text-align: center;
}
.orgchart ul {
  position: relative;
  padding-top: 10px;
  display: flex;
  justify-content: center;
}
.orgchart li {
  display: inline-block;
  vertical-align: top;
  padding: 10px 5px 0 5px;
  position: relative;
}
/* Verticale lijn boven een kinderen groep */
.orgchart ul::before {
  content: "";
  position: absolute;
  top: 0; left: 50% -1px;
  width: 0;
  height: 10px;
  border-left: 2px solid #2560b0;
  z-index: -1;
  transform: translateX(-50%);
}
/* Lijnen van boven naar kinderen */
.orgchart li::before, .orgchart li::after {
  content: "";
  position: absolute;
  top: 0;
  height: 20px;
  border-top: 2px solid #2560b0;
  z-index: -1;
}
/* Linker horizontale lijn */
.orgchart li::before {
  right: 50%;
  width: 50%;
  display: block;
  border-right: 2px solid #2560b0;  
}
.orgchart li:first-child::before {
    border-top: none
}
.orgchart > li::before {
    content: none;
}


/* Rechter horizontale lijn */
.orgchart li::after {
  left: 50%;
  width: 50%;
  display: block;
}
/* Linkerlijn alleen bij niet eerste kind */
.orgchart li:not(:first-child)::before {
  display: block;
}
/* Rechterlijn niet bij laatste kind */
.orgchart li:last-child::after {
  display: none;
}
/* Node box styling */
.orgchart li div {
  border: 2px solid #2560b0;
  padding: 10px;
  display: inline-block;
  border-radius: 8px;
  min-width: 60px;
  max-width: 100px;
  font-weight: bold;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.orgchart li div.selected {
  outline: 3px solid #ecec20e4;
  box-shadow: 0 0 12px 3px #bba710b3;
}

    /* Stijl voor download knop */
/* Stijl voor alle hoofdknoppen bovenaan */
#uploadBtn, #saveLocalBtn, #loadLocalBtn, #competentiesBtn {
  padding: 10px 15px;
  font-size: 16px;
  margin-bottom: 20px;
  cursor: pointer;
  border: none;
  background-color: #2560b0;
  color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
/* Hover voor alle hoofdknoppen bovenaan */
#uploadBtn:hover, #saveLocalBtn:hover, #loadLocalBtn:hover, #competentiesBtn:hover {
  background-color: #1b437d;
}

/* Alleen zichtbaar als parent DIV 'selected' is */
.orgchart li div.selected .add-child-btn,
.orgchart li div.selected .info-btn,
.orgchart li div.selected .remove-child-btn {
  display: block;
}



/* drag and drop */
.orgchart li div.dragging {
    opacity: 0.5;
}
.orgchart li div.drag-over {
    outline: 2px dashed #467fcf;
}

/* Node kleuren */
.type-team {
  background-color: #1c4181;  /* blauw */
  border-color:  #1c4181;
  color: white;
}

.type-functie {
  background-color: white;
  color: #1c4181;
}

.type-default {
  background-color: white;
  color: black;
}

/* Hoofdcontainer van het doorgroei-blok */
.orgChart li .doorgroei-info {
  margin: 4px 0 0;
  padding: 4px 6px;
  background: #f9f9f9;     /* lichtere achtergrond dan node */
  border-top: 1px solid #2560b0;
  font-size: 0.85em;
  color: #444;
}

/* Titelregel bovenaan */
.doorgroei-title {
  font-weight: bold;
  margin-bottom: 2px;
  color: #222;
}

/* Elke naamregel */
.doorgroei-item {
  padding-left: 10px;       /* inspringen voor bullet/tekst */
  line-height: 1.3;
}


/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #888;
  /* width verwijderd zodat specifieke modals eigen breedte kunnen krijgen */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content label {
  display: block;
  margin: 18px 0 10px;
  font-weight: bold;
  font-size: 2em;
  line-height: 1.2;
}
.modal-content input {
  width: 100%;
  padding: 7px;
  font-size: 1.5em;
  box-sizing: border-box;
}
.modal-footer {
  margin-top: 15px;
  text-align: right;
}
.modal-btn {
  padding: 7px 15px;
  font-size: 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}
.modal-btn.cancel {
  background-color: #d64545;
  color: white;
  margin-right: 10px;
}
.modal-btn.save {
  background-color: #467fcf;
  color: white;
}
/* Zorg dat labels naast elkaar komen */
#typeInput label {
  display: inline-flex;       /* zet radio + tekst op een lijn */
  align-items: center;        /* centreert verticaal */
  margin-right: 20px;         /* ruimte tussen opties */
  font-size: 1rem;            /* zelfde grootte als normale inputs */
}

/* Optioneel: maak radio's net zo groot als standaard tekstveldhoogte voelt */
#typeInput input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 6px; /* ruimte tussen knop en tekst */
}


.contextmenu {
  display:none;
  position:absolute;
  background:#fff;
  border:1px solid #ccc;
  border-radius: 4px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
}
#contextMenu ul li {
  padding: 4px 10px;
  cursor: pointer;
}
#contextMenu ul li:hover {
  background-color: #eef;   /* lichte blauwe/paarsige achtergrond */
}

.note-info-icon, .function-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  margin-left: 0.5em;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 50%;
  background: #368be1;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
  box-shadow: 0 1px 3px rgba(54,139,225,0.06);
  cursor: pointer;
  user-select: none;
  font-size: 0.75em;
  border: none;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.function-info-icon {
  background: white;
  color: #368be1;
}
.note-info-icon:hover, .note-info-icon:focus {
  background: #296ab3;
  box-shadow: 0 2px 6px rgba(54,139,225,0.16);
}
.function-info-icon:hover, .function-info-icon:focus {
  background: lightgray;
  box-shadow: 0 2px 6px rgba(54,139,225,0.16);
}
.edit-icon {
  font-size: 1.5em; /* vergroot potlood */
  vertical-align: middle;
  margin-right: 4px;
}


#noteModal .modal-content {
  max-width: 800px;
  background: white;
  border-radius: 8px;
  padding: 32px 32px 24px 32px;
}
#noteModal h2 {
  margin-top: 0;
  font-size: 2.5em;
}
#noteModalBody {
  margin: 12px 0 20px 0;
  font-size: 2em;
  color: #233;
  white-space: pre-line;
}
#noteModalBody a {
  color: #368be1;
  text-decoration: underline;
}
#noteInput {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  resize: vertical; /* gebruiker kan hoogte aanpassen */
  font-size: 1.5em;   /* gelijke tekengrootte als name-input */
  padding: 8px;
  margin-bottom: 10px;
}

.note-btn {
  margin-left: 6px;
  cursor: pointer;
  background: #eef;
  border: none;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 1em;
}

.salarisschaal {
  display: inline-flex; /* Zorgt ervoor dat de inhoud gecentreerd is */
  align-items: center; /* Centreert de inhoud verticaal */
  justify-content: center; /* Centreert de inhoud horizontaal */
  width: 40px; /* Breedte van het rondje */
  height: 40px; /* Hoogte van het rondje */
  border-radius: 50%; /* Maakt het rond */
  background-color: #e0f0ff; /* Lichtblauwe achtergrond */
  border: 2px solid #2560b0; /* Donkerblauwe rand */
  color: #2560b0; /* Donkerblauwe tekstkleur */
  font-weight: bold; /* Vetgedrukte tekst */
  font-size: 2em; /* Tekengrootte */
  margin-left: 10px; /* Ruimte tussen de titel en de salarisschaal */
  margin-top: -3em; /* Negatieve marge om het op dezelfde hoogte te krijgen als de titel */
}