/* ======================================================
   TICKETFLOW STYLESHEET
   Centrale styling voor de hele applicatie

   Doel van deze versie:
   - bestaande UI behouden
   - dubbele regels verminderen
   - conflicterende testblokken beter isoleren
   - geen classnamen wijzigen
   - geen HTML/JS-aanpassingen nodig

   Structuur:
   1. Basis / pagina
   2. Topbar
   3. Algemene layout
   4. Formulieren
   5. Knoppen
   6. Feedback / meldingen
   7. Filters / toolbars
   8. Ticket overzicht
   9. Badges / statussen
   10. Ticket detail
   11. Reacties
   12. Users
   13. Login
   14. Dashboard
   15. Ticket detail compacte actieblokken
   16. Bedrijfsgegevens / kopieerblokken
   17. Image viewer / uploads
   18. Workspaces
   19. Formulierenlijst
   20. Form builder / form detail
   21. Algemene extra componenten
   22. Responsive
   23. Experimenteel dashboard modern

   Belangrijk:
   - Geen inline CSS gebruiken
   - Alles via dit centrale bestand
   - Secties duidelijk gescheiden houden
   - Experimentele CSS staat onderaan en werkt alleen binnen .dashboard-modern
====================================================== */

/* ======================================================
   1. BASIS / PAGINA
====================================================== */

body {
  font-family: Arial, sans-serif !important;
  background: #f3f6fb;
  margin: 0;
  padding: 0;
  color: #172033;
}

h2 {
  margin-top: 0;
}

.muted {
  color: #5b6777;
  font-size: 14px;
}

.empty-state {
  color: #5b6777;
  font-style: italic;
  margin: 0;
}

.section-title {
  margin-bottom: 14px;
}

/* ======================================================
   2. TOPBAR
====================================================== */

.topbar {
  background: #2f6fed;
  color: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1,
.topbar h2 {
  margin: 0;
  font-size: 24px;
}

.topbar .actions,
.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar button,
.topbar-left button {
  background: white;
  color: #2f6fed;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.topbar button:hover,
.topbar-left button:hover {
  background: #eef3ff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header-bar {
  width: 100%;
  box-sizing: border-box;
}

/* ======================================================
   3. ALGEMENE LAYOUT
====================================================== */

.container {
  max-width: 1400px;
  margin: 32px auto;
  padding: 0 28px;
}

.card {
  background: white;
  padding: 20px;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 25px;
}

.card h2,
.card h3 {
  color: #172033;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.5;
  color: #374151;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* ======================================================
   4. FORMULIEREN
====================================================== */

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  box-sizing: border-box;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1f2a37;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-container .card {
  padding: 20px;
}

.form-card-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  min-height: 720px;
}

.form-help {
  margin-top: 6px;
  font-size: 13px;
  color: #5b6777;
}

.form-hint {
  background-color: #eef4ff;
  border-left: 4px solid #3b82f6;
  padding: 10px 14px;
  margin: 10px 0 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: #1e3a8a;
  border-radius: 6px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

#description {
  min-height: 220px;
}

/* ======================================================
   5. KNOPPEN
====================================================== */

button {
  border-radius: 10px;
  font-weight: 700;
}

button:not(.workspace-dropdown-item):not(.screenshot-preview-remove) {
  background: #2f6fed;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
}

button:not(.workspace-dropdown-item):not(.screenshot-preview-remove):hover {
  background: #1f57c7;
}

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

button.action {
  background: #dfe9ff;
  color: #2f6fed;
  border: 1px solid #b9cdfa;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

button.action:hover {
  background: #1f57c7;
  color: #ffffff;
}

button.small {
  margin-top: 0;
  padding: 8px 12px;
  background: #2f6fed;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

button.small:hover {
  background: #1f57c7;
}

.dashboard-nav-button {
  padding: 10px 16px;
  background: #2f6fed;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.dashboard-nav-button:hover {
  background: #1f57c7;
}

.primary-focus-button {
  background: #2f6fed;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.22);
}

.primary-focus-button:hover {
  background: #1f57c7;
}

.success-focus-button {
  background: #16a34a;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
}

.success-focus-button:hover {
  background: #15803d;
}

.secondary-warning {
  background: #ffffff;
  color: #92400e;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.secondary-warning:hover {
  background: #fef3c7;
}

/* ======================================================
   6. FEEDBACK / MELDINGEN
====================================================== */

#createResult,
#statusResult,
#priorityResult,
#assignResult,
#reactionResult,
#result,
#fieldResult,
#newSectionResult,
#sectionResult {
  margin-top: 12px;
  font-size: 14px;
}

.message {
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 14px;
}

.message-success {
  background-color: #e6f9f0;
  color: #1b7f4c;
  border: 1px solid #b6e6d2;
}

.message-error {
  background-color: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2c0;
}

.text-success {
  color: #157347;
}

.text-danger {
  color: #b42318;
}

.flow-result {
  margin: 10px 0 0 0;
  font-size: 14px;
}

/* ======================================================
   7. FILTERS / TOOLBARS
====================================================== */

.filter-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-box {
  flex: 1;
  min-width: 160px;
}

.filter-box:first-child {
  flex: 2;
}

.filter-box label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 14px;
}

.filter-box input,
.filter-box select {
  padding: 6px 10px;
  margin-top: 0;
  font-size: 14px;
}

.ticket-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ticket-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ticket-toggle-group {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5b6777;
}

.checkbox-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
}

.active-filter {
  font-weight: 700;
  outline: 2px solid currentColor;
}

/* ======================================================
   8. TICKET OVERZICHT
====================================================== */

#tickets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticket-item {
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.ticket-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ticket-title {
  color: #2f6fed;
  font-weight: bold;
  font-size: 18px;
}

.ticket-meta,
.ticket-submeta {
  color: #5b6777;
  font-size: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ticket-meta {
  margin-bottom: 8px;
}

.ticket-age-warning {
  border-left: 6px solid #f59e0b;
  background: #fffbeb;
}

.ticket-age-danger {
  border-left: 6px solid #dc2626;
  background: #fef2f2;
}

.ticket-status-closed {
  background-color: #e6f7ec;
  border-left: 4px solid #28a745;
}

/* ======================================================
   9. BADGES / STATUSSEN
====================================================== */

.ticket-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge,
.status-badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.badge {
  padding: 6px 10px;
}

.status-badge {
  margin-left: 6px;
  padding: 4px 10px;
}

.status-nieuw {
  background: #e8f0ff;
  color: #2f6fed;
}

.status-in-behandeling {
  background: #fff4db;
  color: #9a6700;
}

.status-wacht-op-gebruiker {
  background: #fdeaea;
  color: #b42318;
}

.status-opgelost {
  background: #e7f7ed;
  color: #157347;
}

.status-gesloten {
  background: #eef1f5;
  color: #5b6777;
}

.priority-laag {
  background: #eef1f5;
  color: #5b6777;
}

.priority-normaal {
  background: #e8f0ff;
  color: #2f6fed;
}

.priority-hoog {
  background: #fff1db;
  color: #b26b00;
}

.priority-spoed {
  background: #fdeaea;
  color: #b42318;
}

.status-active,
.status-success {
  background: #e6f7ec;
  color: #1f7a3e;
}

.status-inactive {
  background: #fdeaea;
  color: #b42318;
}

.status-muted {
  background-color: #f0f0f0;
  color: #666;
}

.form-version,
.form-version-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 13px;
  font-weight: 600;
}

.form-badges .form-status-ready,
.form-version-badge.form-status-ready {
  background-color: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #b7e1c1;
}

.form-badges .form-status-not-ready,
.form-version-badge.form-status-not-ready {
  background-color: #f2f2f2;
  color: #666;
  border: 1px solid #d6dbe3;
}

.form-badges .form-status-draft,
.form-version-badge.form-status-draft {
  background-color: #fff4e5;
  color: #b26a00;
  border: 1px solid #ffd699;
}

/* ======================================================
   10. TICKET DETAIL
====================================================== */

.ticket-description-box {
  display: flex;
  align-items: flex-start;
  background: #f4f6f8;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ticket-description-content {
  white-space: pre-wrap;
  display: block;
  overflow-y: auto;
  max-height: 180px;
}

.detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-box {
  background: #fbfcfe;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  min-width: 140px;
  flex: 1;
}

.detail-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2a37;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 13px;
  font-weight: 400;
  color: #1f2a37;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.action-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ticket-attachment-image-wrap {
  margin: 10px 0;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
}

.ticket-attachment-image {
  display: block;
  max-width: 100%;
  max-height: 700px;
  border-radius: 8px;
  cursor: zoom-in;
  object-fit: contain;
}

/* ======================================================
   11. REACTIES
====================================================== */

#reactions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reaction-item {
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fbfcfe;
  line-height: 1.5;
}

.reaction-helpdesk {
  background: #eef4ff;
  border-left: 5px solid #2563eb;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.reaction-user {
  background: #f7f7f7;
  border-left: 5px solid #9ca3af;
}

.reaction-meta {
  font-size: 14px;
  margin-bottom: 8px;
  color: #444;
}

.reaction-message {
  white-space: pre-wrap;
  line-height: 1.5;
}

.reaction-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.reaction-author {
  font-size: 14px;
}

.reaction-type {
  color: #555;
  font-weight: normal;
}

.reaction-date {
  font-size: 12px;
  color: #777;
  white-space: nowrap;
}

/* ======================================================
   12. USERS
====================================================== */

.user-form {
  max-width: 500px;
}

.user-form input,
.user-form select {
  padding: 3px 5px;
  font-size: 12px;
  height: 32px;
}

.user-form label {
  font-size: 14px;
}

.user-form .form-group {
  margin-bottom: 10px;
}

#users {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-item {
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.user-left {
  flex: 1;
  min-width: 260px;
}

.user-name {
  font-weight: 600;
  color: #1f2a37;
  margin-bottom: 4px;
}

.user-meta {
  color: #5b6777;
  font-size: 14px;
  line-height: 1.5;
}

.user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ======================================================
   13. LOGIN
====================================================== */

body.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f6f8;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
  margin-top: 0;
  text-align: center;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: #2f6fed;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.login-box button:hover {
  background: #1f57c7;
}

.login-box #result {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

/* ======================================================
   14. DASHBOARD
====================================================== */

.dashboard-state-normal {
  border-left: 6px solid #16a34a;
  background: #f0fdf4;
}

.dashboard-state-warning {
  border-left: 6px solid #f59e0b;
  background: #fffbeb;
}

.dashboard-state-danger {
  border-left: 6px solid #dc2626;
  background: #fef2f2;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.dashboard-tile {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dashboard-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.dashboard-tile:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dashboard-label {
  font-size: 14px;
  color: #5b6777;
  margin-bottom: 6px;
}

.dashboard-value {
  font-size: 28px;
  font-weight: bold;
  color: #1f2a37;
}

.dashboard-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.dashboard-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dashboard-alert:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.dashboard-alert:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dashboard-alert-label {
  font-size: 14px;
  color: #5b6777;
}

.dashboard-alert-value {
  font-weight: bold;
  font-size: 16px;
}

.dashboard-nav-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  
}

.dashboard-tile.dashboard-state-normal,
.dashboard-alert.dashboard-state-normal {
  border-left: 6px solid #16a34a !important;
  background: #f0fdf4 !important;
}

.dashboard-tile.dashboard-state-warning,
.dashboard-alert.dashboard-state-warning {
  border-left: 6px solid #f59e0b !important;
  background: #fffbeb !important;
}

.dashboard-tile.dashboard-state-danger,
.dashboard-alert.dashboard-state-danger {
  border-left: 6px solid #dc2626 !important;
  background: #fef2f2 !important;
}

.dashboard-state-warning .dashboard-value,
.dashboard-state-warning .dashboard-alert-value {
  color: #b45309;
}

.dashboard-state-danger .dashboard-value,
.dashboard-state-danger .dashboard-alert-value {
  color: #b91c1c;
}

.dashboard-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-setting-row:last-child {
  border-bottom: none;
}

.dashboard-setting-name {
  flex: 1;
  min-width: 220px;
  font-weight: 600;
  color: #1f2a37;
  padding-top: 8px;
}

.dashboard-setting-inputs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-setting-inputs .form-group {
  margin-bottom: 0;
  min-width: 180px;
}

.dashboard-setting-inputs label {
  font-size: 14px;
}

.dashboard-setting-inputs input {
  width: 100%;
  max-width: 180px;
}

.dashboard-settings-list {
  margin-top: 20px;
}

.dashboard-settings-list .dashboard-setting-row:first-child {
  border-top: 1px solid #e5e7eb;
}

.dashboard-welcome-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dfe5ec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.dashboard-welcome-logo img {
  width: 260px;
  height: auto;
}

.dashboard-welcome-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 36px;
}

.dashboard-welcome-content p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #5f6b7a;
}

/* =========================================================
   DASHBOARD - TOEGANGSAANVRAGEN WAARSCHUWING
========================================================= */

button.dashboard-nav-button.has-pending-requests {
  background: #dc2626 !important;
  animation: pulseRegistrationRequests 1.6s infinite;
}

button.dashboard-nav-button.has-pending-requests:hover {
  background: #b91c1c !important;
}

@keyframes pulseRegistrationRequests {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

@keyframes pulseRegistrationRequests {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* ======================================================
   15. TICKET DETAIL - COMPACTE ACTIEBLOKKEN
====================================================== */

.action-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.compact-action-box {
  background: #fbfcfe;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 6px 8px;
}

.compact-action-box h3 {
  font-size: 13px;
  margin: 0 0 4px 0;
}

.compact-action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
}

.compact-action-row select {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 8px;
  font-size: 13px;
  height: 30px;
}

.compact-save-btn {
  margin: 0;
  padding: 4px 10px;
  height: 30px;
  font-size: 12px;
  white-space: nowrap;
}

.compact-action-box p[id$="Result"] {
  margin: 4px 0 0 0;
  min-height: 12px;
  font-size: 11px;
  line-height: 1.2;
}

/* ======================================================
   16. BEDRIJFSGEGEVENS / KOPIEERBLOKKEN
====================================================== */

.detail-extra-block {
  background: #fbfcfe;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0 20px 0;
}

.detail-extra-title {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #2f6fed;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

.detail-extra-block > .detail-extra-title:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.detail-extra-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-extra-subblock {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid #eef2f7;
}

.detail-extra-subtitle {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f2a37;
}

.copy-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
}

.copy-row:last-child {
  border-bottom: none;
}

.copy-label {
  font-size: 13px;
  font-weight: 600;
  color: #5b6777;
}

.copy-value {
  font-size: 13px;
  color: #1f2a37;
  word-break: break-word;
}

.copy-btn {
  background: #eef3ff;
  color: #2f6fed;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.copy-btn:hover {
  background: #dfe9ff;
}

.contact-block {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fbff;
}

.contact-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2f6fed;
}

/* ======================================================
   17. IMAGE VIEWER / UPLOADS
====================================================== */

.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-viewer img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: #fff;
  padding: 10px;
  cursor: zoom-out;
}

.upload-dropzone {
  width: 100%;
  padding: 18px 16px;
  border: 2px dashed #b9cdfa;
  border-radius: 8px;
  background: #f8fbff;
  color: #5b6777;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  box-sizing: border-box;
}

.upload-dropzone:hover {
  background: #eef4ff;
  border-color: #2f6fed;
}

.upload-dropzone.dragover {
  background: #e8f0ff;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
  transform: translateY(-1px);
}

.screenshot-preview-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.screenshot-preview-wrapper {
  width: 120px;
}

.screenshot-preview {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  background: #fff;
}

.screenshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-preview-name {
  font-size: 11px;
  margin-top: 4px;
  text-align: center;
  color: #5b6777;
}

.screenshot-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.screenshot-preview-remove:hover {
  background: rgba(180, 35, 24, 0.95);
}

/* ======================================================
   18. WORKSPACES
====================================================== */

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

button.workspace-tile {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 120px;
  padding: 24px;

  border: 1px solid #dbe4ef;
  border-radius: 16px;

  background: #ffffff;
  color: #1f2a37;

  box-shadow: 0 10px 24px rgba(31, 42, 55, 0.08);

  font-size: 20px;
  font-weight: 600;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

button.workspace-tile:hover {
  background: #ffffff;
  color: #1f2a37;

  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 42, 55, 0.12);
}

.workspace-switcher-wrap {
  position: relative;
  display: inline-block;
}

.workspace-switcher {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #f1f3f6;
  color: #1f2937;
  cursor: pointer;
}

.workspace-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 1000;
}

.workspace-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.workspace-dropdown-item:hover {
  background: #f2f5f9;
}

.workspace-dropdown-item-active {
  background: #e6f0ff;
  color: #1a4ed8;
  font-weight: 600;
}

/* ======================================================
   19. FORMULIERENLIJST
====================================================== */

.form-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-item {
  border: 1px solid #d6dbe3;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.form-name {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.form-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-meta {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* ======================================================
   20. FORM BUILDER / FORM DETAIL
====================================================== */

.concept-section {
  border-left: 4px solid #f0a500;
  padding-left: 12px;
  background-color: #fffaf2;
}

.form-structure-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.form-structure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  padding: 12px 14px;
  background: #ffffff;
}

.form-structure-section,
.form-builder-section-row {
  background: #f3f6fb;
  border-left: 5px solid #4f7cff;
}

.form-structure-field {
  background: #ffffff;
}

.form-structure-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-structure-title {
  font-weight: 700;
  color: #102033;
}

.form-structure-meta {
  font-size: 13px;
  color: #667085;
}

.form-structure-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.form-structure-actions button:disabled,
.move-up-structure:disabled,
.move-down-structure:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.form-builder-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
  max-width: 700px;
}

.form-builder-block {
  border: 1px solid #d6dbe3;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.form-builder-block h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.form-builder-subblock {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6e9ef;
}

.form-builder-subblock h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.form-builder-block input,
.form-builder-block select {
  max-width: 400px;
}

.form-builder-block button,
.form-builder-actions button {
  background: #4f7cff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.form-builder-block button:hover,
.form-builder-actions button:hover {
  background: #3f6de0;
}

.form-builder-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
  margin-top: 10px;
  padding-top: 8px;
}

.form-builder-actions button:last-child {
  background: #e5e7eb;
  color: #111;
}

.form-builder-actions button:last-child:hover {
  background: #d1d5db;
}

.form-builder-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #d6dbe3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.form-builder-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.form-builder-card p {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 14px;
  color: #555;
}

.form-builder-card label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
}

.form-builder-card input,
.form-builder-card select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
}

.form-builder-card button {
  margin-top: 14px;
  width: fit-content;
  min-width: 160px;
}

.field-placeholder {
  color: #888;
  font-style: italic;
  margin-left: 6px;
}

.field-edit-panel {
  display: none;
  margin: 10px 0 16px 20px;
  padding: 14px;
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  background: #ffffff;
}

.field-edit-panel h4 {
  margin-top: 0;
}

.field-edit-panel input,
.field-edit-panel select {
  width: 360px;
  max-width: 100%;
  margin: 6px 0 12px 0;
}

.checkbox-line {
  display: block;
  margin-bottom: 12px;
}

.form-detail-section {
  box-shadow: none;
  border: 1px solid #eef2f7;
}

.form-info-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 18px;
}

.form-flow-card {
  border: 2px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.form-flow-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.form-flow-content h3 {
  margin-bottom: 8px;
}

.form-flow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.structure-panel {
  margin-top: 16px;
}

.form-bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.form-exit-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
}

.form-exit-card p {
  margin: 4px 0 0 0;
  color: #92400e;
  font-size: 14px;
}

/* ======================================================
   21. ALGEMENE EXTRA COMPONENTEN
====================================================== */

.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.online-dot-green {
  background-color: #22c55e;
}

.online-dot-red {
  background-color: #ef4444;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tile-card,
.dashboard-card {
  display: block;
  padding: 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile-card:hover,
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.tile-card h2,
.dashboard-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.tile-card p,
.dashboard-card p {
  margin: 0;
  color: #5f6b7a;
  line-height: 1.5;
  font-size: 14px;
}

.dashboard-card-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ======================================================
   22. RESPONSIVE
====================================================== */

@media (max-width: 900px) {
  .action-grid-3,
  .form-builder-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .topbar-left,
  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .action-grid-compact {
    grid-template-columns: 1fr;
  }

  .compact-action-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .compact-save-btn {
    width: 100%;
  }

  .copy-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .copy-btn {
    width: fit-content;
  }

  .form-builder-actions {
    grid-template-columns: 1fr;
  }

  .form-exit-card,
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .filter-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-box,
  .filter-box:first-child {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* ======================================================
   WORKSPACE TILE OVERRIDE
   Forceert workspace-keuzeknoppen wit
====================================================== */

button.workspace-tile,
button.workspace-tile:hover,
button.workspace-tile:focus,
button.workspace-tile:active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1f2a37 !important;
  border: 1px solid #dbe4ef !important;
}