.workspace { width: min(100% - 2rem, 36rem); margin: 0 auto 2rem; }
.workspace-form { display: grid; gap: 1rem; }
.workspace label { display: block; }
.workspace label[hidden] { display: none; }
.workspace input:not([type="checkbox"]), .workspace select, .workspace textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: .25rem;
  padding: .5rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--paper);
  font: inherit;
}
.workspace .btn { min-height: 44px; }
.workspace li { padding: .4rem 0; overflow-wrap: anywhere; }
.workspace li button { margin-left: .5rem; }
.workspace .catalog-grip {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.workspace #layout-fields { padding-left: 1rem; }
.workspace #preview p { white-space: pre-wrap; overflow-wrap: anywhere; }

#wizard progress { width: 100%; accent-color: var(--green, #07532d); }
#wizard fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
#wizard dd { margin: 0 0 .65rem; overflow-wrap: anywhere; }
#wizard dt { font-weight: 600; }
#wizard .wizard-error { color: #8c1e20; }
#wizard .wizard-terms p { white-space: pre-wrap; overflow-wrap: anywhere; }
#wizard .signature { display: block; width: 100%; height: 110px; touch-action: none; }

#worker dd { margin: 0 0 .65rem; overflow-wrap: anywhere; }
#worker dt { font-weight: 600; }
#worker p { white-space: pre-wrap; overflow-wrap: anywhere; }
#worker label.check-line { display: flex; }
#worker .signature-wrap { margin: .5rem 0; }

#employee-list details, #employee-alert-list li { padding-block: 0.65rem; }
#employee-list p { overflow-wrap: anywhere; }
#employee-list button, #employee-alert-list button { margin: 0.25rem; }
.employee-alert.probation { color: #612e91; }
.employee-alert.temporary { color: #9b4309; }

#template-requests p { overflow-wrap: anywhere; }
#template-requests a { display: inline-flex; align-items: center; min-height: 44px; }
#template-requests form, #private-template-upload, #private-template-requests button { margin-top: .5rem; }


/* Afzonderlijke sjabloontabbladen */
.cc-template-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin: 18px 0 24px;
  border-radius: 16px;
  background: #edf3fa;
}

.cc-template-tabs button {
  flex: 1;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #536b87;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.cc-template-tabs button[aria-selected="true"] {
  background: white;
  color: #102a53;
  box-shadow: 0 3px 10px rgba(15,45,85,.1);
}

.cc-template-tabs button:focus-visible {
  outline: 3px solid #2878cf;
  outline-offset: 2px;
}

#cc-panel-employment[hidden],
#cc-panel-termination[hidden] {
  display: none;
}

.cc-termination-template-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.cc-termination-template-card {
  padding: 20px;
  border: 1px solid #dce6f2;
  border-radius: 17px;
  background: #f7faff;
}

.cc-termination-template-card h4 {
  margin: 0 0 8px;
  color: #102a53;
}

.cc-termination-template-card p {
  margin: 0 0 12px;
  color: #60728b;
}

.cc-termination-template-card span {
  font-size: 12px;
  font-weight: 650;
  color: #805916;
}

@media (max-width: 480px) {
  .cc-template-tabs {
    flex-direction: column;
  }
}


/* Bedrijfslogo: gedeelde visuele stijl voor het uploadveld. */
.cc-employer-logo-section {
  margin: 1.1rem 0 1.4rem;
}
.cc-employer-logo-section h3 {
  margin: 0 0 .65rem;
  font-size: 1rem;
}
.cc-logo-dropzone {
  border: 2px dashed #aeb7c4;
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color .15s ease, background .15s ease;
}
.cc-logo-dropzone.is-dragging {
  border-color: #496d95;
  background: #eaf2fa;
}
.cc-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #354052;
}
.cc-logo-placeholder span,
.cc-logo-placeholder small {
  color: #657186;
}
.cc-logo-upload-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #e9eef5;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}
.cc-logo-preview {
  width: auto;
  max-width: min(100%, 240px);
  max-height: 110px;
  object-fit: contain;
}
.cc-logo-preview[hidden],
.cc-logo-placeholder[hidden] {
  display: none !important;
}
.cc-logo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.cc-logo-actions button {
  width: auto;
  min-width: 125px;
}
.cc-logo-message {
  margin: .5rem 0 0;
  font-size: .88rem;
  color: #566277;
}


/* Werkgeversdashboard */
.cc-dashboard {
  margin: 1.5rem 0 2rem;
}

.cc-employer-nav {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .5rem 0 1.5rem;
}

.cc-employer-nav a {
  padding: .75rem 1rem;
  background: #edf3fb;
  color: #18365a;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.cc-employer-nav a:hover,
.cc-employer-nav a:focus-visible {
  background: #dceafa;
}

.cc-dashboard-subtitle {
  color: #607086;
}

#cc-dashboard-primary {
  margin: 1.5rem 0;
}

#cc-dashboard-primary #new-contract {
  display: block;
  margin-bottom: 1rem;
}

.cc-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.5rem 0;
}

.cc-stat-card,
.cc-dashboard-finance {
  background: #f4f7fb;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.2rem;
}

.cc-stat-card span {
  display: block;
  color: #52647b;
  font-size: .85rem;
}

.cc-stat-card strong {
  display: block;
  color: #18365a;
  font-size: 2rem;
  margin-top: .5rem;
}

.cc-dashboard-finance h2 {
  margin-top: 0;
}

@media (max-width: 480px) {
  .cc-dashboard-stats {
    gap: .6rem;
  }

  .cc-stat-card {
    padding: .9rem;
  }

  .cc-stat-card strong {
    font-size: 1.6rem;
  }
}


/* Gescheiden werkgeversschermen */
.cc-employer-view[hidden] {
  display: none !important;
}

.cc-employer-view {
  padding-top: 1rem;
  min-width: 0;
}

.cc-employer-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.cc-employer-nav a[aria-current="page"] {
  background: #18365a;
  color: #fff;
}

.cc-employer-view > section,
.cc-employer-view > div,
.cc-employer-view > form {
  margin-bottom: 1.5rem;
}

.cc-employer-view #cc-dashboard {
  margin-top: 0;
}

@media (max-width: 600px) {
  .cc-employer-nav a {
    font-size: .82rem;
    padding: .7rem .85rem;
  }
}
