.bp-beroepen-block {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.bp-beroepen {
  --bp-blue: var(--kb-blue, #e8572a);
  --bp-mid: var(--kb-mid, #d44f24);
  --bp-orange: #e8572a;
  --bp-purple: var(--kb-purple, #e8572a);
  --bp-bg: var(--kb-bg, #f5f6f8);
  --bp-border: rgba(15, 23, 42, 0.08);
  --bp-text: #181c20;
  --bp-muted: #8a98a4;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px 20px;
  font-family: 'IBM Plex Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.bp-beroepen-filterbar {
  background: linear-gradient(180deg, #e8572a 0%, #d44f24 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 18px 18px 16px;
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 14px 30px rgba(232, 87, 42, 0.16);
}

.bp-beroepen-filterbar-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.bp-beroepen-filterbar-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}

.bp-beroepen-headerrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bp-beroepen-heading {
  min-width: 0;
}

.bp-beroepen-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}


.bp-beroepen-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.bp-beroepen-select {
  min-width: 220px;
  height: 42px;
  border: 1px solid var(--bp-border);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--bp-text);
  padding: 0 14px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.bp-beroepen-search {
  min-width: 260px;
  height: 42px;
  border: 1px solid var(--bp-border);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--bp-text);
  padding: 0 14px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.bp-beroepen-reset {
  height: 42px;
  border: 1px solid var(--bp-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bp-text);
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.bp-beroepen-reset:hover,
.bp-beroepen-select:hover,
.bp-beroepen-search:hover {
  border-color: rgba(15, 23, 42, 0.12);
}

.bp-beroepen-reset:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
}

.bp-beroepen-counter {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin-left: auto;
}

.bp-beroepen-add-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.bp-beroepen-upsell {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
}

.bp-beroepen-upsell strong {
  color: #ffffff;
  font-weight: 700;
}

.bp-beroepen-add-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}

.bp-beroepen-add-grid > * {
  min-width: 0;
  max-width: 100%;
}

.bp-add-name { grid-column: span 3; }
.bp-add-sector { grid-column: span 2; }
.bp-add-level { grid-column: span 2; }
.bp-add-company { grid-column: span 2; }
.bp-add-url { grid-column: span 3; }
.bp-add-status { grid-column: span 3; }
.bp-add-source { grid-column: span 4; }
.bp-add-reason { grid-column: span 5; }
.bp-add-strike { grid-column: span 6; }
.bp-add-zoekprofiel { grid-column: span 3; }
.bp-add-save { grid-column: span 3; }

.bp-custom-input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bp-custom-reason-input {
  min-height: 58px;
  resize: vertical;
  padding-top: 10px;
}

.bp-custom-save {
  background: #e8572a;
  border-color: rgba(232, 87, 42, 0.58);
  color: #fff;
  font-weight: 600;
  align-self: end;
  min-height: 44px;
}

.bp-custom-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #ffffff;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.bp-custom-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.bp-custom-feedback {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.94);
}

.bp-custom-feedback.is-error {
  color: #ffe7a3;
}

.bp-custom-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(253, 238, 232, 0.96);
  color: #52606a;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(232, 87, 42, 0.3);
}

.bp-searchprofile-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(253, 238, 232, 0.95);
  color: #e8572a;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(232, 87, 42, 0.25);
}

.bp-custom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bp-custom-meta .bp-custom-badge {
  margin: 0;
}

.bp-custom-delete {
  border: 1px solid rgba(252, 165, 165, 0.8);
  border-radius: 999px;
  background: rgba(255, 245, 245, 0.98);
  color: #c62828;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}

.bp-custom-delete:hover {
  background: rgba(255, 235, 235, 0.98);
  border-color: rgba(248, 113, 113, 0.8);
}

.bp-custom-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}

.bp-custom-edit-grid .bp-field-label {
  margin-bottom: 4px;
}

.bp-custom-edit-grid .bp-check-row {
  align-items: flex-start;
  line-height: 1.35;
}

.bp-custom-reason {
  min-height: 78px;
  resize: vertical;
}

.bp-beroepen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}


.bp-beroep-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,249,252,0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.bp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bp-card-sector {
  font-size: 12px;
  font-weight: 700;
  color: #8a98a4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-lvl {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.bp-lvl-mbo {
  background: rgba(220, 252, 231, 0.96);
  color: #166534;
  border-color: rgba(187, 247, 208, 0.95);
}

.bp-lvl-basis {
  background: rgba(254, 243, 199, 0.96);
  color: #9a5a00;
  border-color: rgba(253, 230, 138, 0.95);
}

.bp-lvl-onbekend {
  background: rgba(241, 245, 249, 0.96);
  color: #52606a;
  border-color: rgba(226, 232, 240, 0.95);
}

.bp-lvl-hoger {
  background: rgba(219, 234, 254, 0.96);
  color: #1d4ed8;
  border-color: rgba(191, 219, 254, 0.95);
}

.bp-card-title {
  margin: 0 0 10px;
  color: var(--bp-blue);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bp-print-strike {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.bp-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--bp-text);
  font-size: 14px;
  font-weight: 600;
}

.bp-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.bp-check-row-muted {
  color: var(--bp-muted);
  font-weight: 500;
}

.bp-source-field {
  margin: 2px 0 8px;
}

.bp-source-field .bp-field-label {
  margin-bottom: 6px;
}

.bp-source-field .bp-beroepen-select {
  min-width: 0;
  width: 100%;
  height: 40px;
  font-size: 13px;
}

.bp-source-url {
  margin-top: 8px;
  height: 38px;
  border-radius: 12px;
  font-size: 13px;
}

.bp-note {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
  margin: 8px 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(243,247,252,0.92) 100%);
  padding: 12px;
  color: #52606a;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  min-height: 78px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.bp-note-textarea {
  resize: vertical;
  font-family: inherit;
  cursor: text;
}

.bp-note[contenteditable="true"] {
  resize: none;
  white-space: pre-wrap;
}

.bp-note[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: #8a98a4;
}

.bp-note[contenteditable="true"] ul,
.bp-note[contenteditable="true"] ol {
  margin: 6px 0;
  padding-left: 18px;
}

.bp-note[contenteditable="true"] li + li {
  margin-top: 2px;
}

.bp-field-label {
  display: block;
  margin: 0 0 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--bp-muted);
}

.bp-client-note-wrap {
  margin-bottom: 10px;
}

.bp-client-note {
  background: rgba(240, 253, 244, 0.92);
  border: 1px solid rgba(187, 247, 208, 0.95);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 12px;
  color: #166534;
  line-height: 1.45;
}

.bp-aant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.bp-aant-full {
  grid-column: 1 / -1;
}

.bp-aant-col {
  min-width: 0;
}

.bp-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--bp-border);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--bp-text);
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.bp-beroep-card-begel .bp-beroepen-select {
  min-width: 0;
  width: 100%;
  height: 40px;
  font-size: 14px;
}

.bp-beroep-card-begel .bp-card-title {
  font-size: 22px;
  line-height: 1.25;
}

.bp-beroep-card-begel .bp-note {
  min-height: 82px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.bp-note:focus {
  outline: none;
  border-color: rgba(232, 87, 42, 0.34);
}

.bp-info-link {
  color: var(--wp--preset--color--link, var(--wp--preset--color--primary, #e8572a));
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bp-info-link:hover {
  text-decoration: underline;
}

.bp-beroepen-loading,
.bp-beroepen-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  color: var(--bp-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.bp-print-only {
  display: none;
}

.bp-page-fixed-footer {
  display: none;
}

.bp-print-cover {
  display: none;
}

.bp-print-cover-media {
  position: relative;
  width: 100%;
  min-height: 289mm;
  overflow: hidden;
}

.bp-print-cover-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transform-origin: center center;
}

.bp-print-cover-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.bp-print-cover-name {
  position: absolute;
  left: 50%;
  bottom: 18mm;
  transform: translateX(-50%);
  min-width: 90mm;
  max-width: 150mm;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #181c20;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.bp-print-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bp-print-logo {
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.bp-print-org {
  font-size: 13px;
  font-weight: 800;
  color: var(--bp-blue);
  line-height: 1.1;
}

.bp-print-sub {
  font-size: 8.5px;
  color: #52606a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-print-brandtext {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bp-print-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.bp-print-name {
  font-size: 10px;
  font-weight: 600;
  color: #181c20;
}

.bp-print-date {
  font-size: 9px;
  color: #52606a;
}

.bp-print-opleiding {
  font-size: 9px;
  color: #52606a;
}

.bp-page-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.bp-page-head-td,
.bp-page-body-td,
.bp-page-foot-td {
  padding: 0;
}

.bp-print-headrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 2px solid;
  border-bottom-color: var(--bp-blue);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.bp-print-footrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1.5px solid;
  border-top-color: var(--bp-blue);
  font-size: 8.5px;
  color: #52606a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bp-print-signatures {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bp-print-signatures-single {
  grid-template-columns: 1fr;
}

.bp-print-signature-box {
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}

.bp-print-sign-label {
  font-size: 8px;
  text-transform: uppercase;
  color: #8a98a4;
  margin-bottom: 6px;
  letter-spacing: .06em;
}

.bp-print-sign-line {
  border-bottom: 1px solid #52606a;
  height: 34px;
  margin-bottom: 6px;
}

.bp-print-sign-meta {
  margin-top: 4px;
  font-size: 8px;
  color: #52606a;
}

.bp-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bp-print-section-title {
  margin: 0 0 6px;
  color: #181c20;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bp-print-section-title:not(:first-child) {
  margin-top: 12px;
}

.bp-print-section-block {
  display: block;
  box-sizing: border-box;
  min-height: 0;
  break-inside: avoid;
  page-break-inside: avoid;
}

.bp-print-section-block + .bp-print-section-block {
  break-before: page;
  page-break-before: always;
  margin-top: 0;
}

.bp-print-section-block:last-child {
  min-height: 238mm;
}

.bp-print-table th,
.bp-print-table td {
  border-bottom: 1px solid #dce0e4;
  padding: 5px 7px;
  vertical-align: top;
  text-align: left;
  font-size: 10px;
  color: #181c20;
  word-break: break-word;
  line-height: 1.4;
}

.bp-print-table td .bp-print-rich-block {
  margin: 0 0 4px;
}

.bp-print-table td .bp-print-rich-block:last-child {
  margin-bottom: 0;
}

.bp-print-table td .bp-print-rich {
  white-space: normal;
}

.bp-print-table td .bp-print-rich-list {
  margin: 4px 0 0;
  padding-left: 16px;
}

.bp-print-table td .bp-print-rich-item + .bp-print-rich-item {
  margin-top: 2px;
}

.bp-print-table td .bp-print-link {
  color: #e8572a;
  text-decoration: underline;
  word-break: break-all;
}

.bp-print-table td strong,
.bp-print-table td b {
  font-weight: 700;
}

.bp-print-table tr:last-child td {
  border-bottom: 0;
}

.bp-print-table th {
  font-size: 8.6px;
  text-transform: uppercase;
  color: #111314;
  letter-spacing: 0.04em;
}

.bp-print-table-client th:nth-child(1),
.bp-print-table-client td:nth-child(1) { width: 24%; }

.bp-print-table-client th:nth-child(2),
.bp-print-table-client td:nth-child(2) { width: 15%; }

.bp-print-table-client th:nth-child(3),
.bp-print-table-client td:nth-child(3) { width: 12%; }

.bp-print-table-client th:nth-child(4),
.bp-print-table-client td:nth-child(4) { width: 10%; }

.bp-print-table-client th:nth-child(5),
.bp-print-table-client td:nth-child(5) { width: 39%; }

.bp-print-table-begel th:nth-child(1),
.bp-print-table-begel td:nth-child(1) { width: 18%; }

.bp-print-table-begel th:nth-child(2),
.bp-print-table-begel td:nth-child(2) { width: 14%; }

.bp-print-table-begel th:nth-child(3),
.bp-print-table-begel td:nth-child(3) { width: 12%; }

.bp-print-table-begel th:nth-child(4),
.bp-print-table-begel td:nth-child(4) { width: 10%; }

.bp-print-table-begel th:nth-child(5),
.bp-print-table-begel td:nth-child(5) { width: 23%; }

.bp-print-table-begel th:nth-child(6),
.bp-print-table-begel td:nth-child(6) { width: 23%; }

.bp-beroepen-print-btn {
  background: #e8572a;
  border-color: rgba(232, 87, 42, 0.58);
  color: #fff;
  font-weight: 600;
}

.bp-beroepen-print-btn:hover {
  background: #d44f24;
  color: #fff;
}

@media (max-width: 900px) {
  .bp-beroepen {
    padding: 4px 10px 16px;
  }

  .bp-beroepen,
  .bp-beroepen * {
    box-sizing: border-box;
  }

  .bp-beroepen-select,
  .bp-beroepen-search,
  .bp-beroepen-reset {
    min-width: 100%;
    width: 100%;
  }

  .bp-beroepen-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 8px !important;
  }

  .bp-beroepen-headerrow {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }

  .bp-beroepen-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    justify-content: stretch;
    align-items: stretch;
    margin-left: 0 !important;
    gap: 8px !important;
  }

  .bp-beroepen-actions .bp-beroepen-reset {
    flex: 0 0 auto;
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    min-height: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 16px;
  }

  .bp-beroepen-add-grid {
    grid-template-columns: 1fr;
  }

  .bp-beroepen-add-grid > * {
    grid-column: 1 / -1 !important;
  }

  .bp-beroepen-counter {
    margin-left: 0;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  .bp-beroepen-reset,
  .bp-beroepen-counter {
    white-space: normal;
    line-height: 1.3;
  }

  .bp-beroepen-select,
  .bp-beroepen-search,
  .bp-beroepen-reset {
    min-height: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 14px;
  }

  .bp-beroepen-headerrow > *,
  .bp-beroepen-actions > *,
  #bp-beroepen-sign-btn,
  #bp-beroepen-print-btn,
  #bp-beroepen-counter {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #bp-beroepen-sector,
  #bp-beroepen-niveau,
  #bp-beroepen-weergave,
  #bp-beroepen-reset,
  #bp-beroepen-add-toggle {
    width: 100% !important;
  }

  #bp-beroepen-counter,
  #bp-beroepen-uwv-lock,
  #bp-beroepen-add-panel {
    grid-column: 1 / -1 !important;
  }

  #bp-beroepen-zoek {
    grid-column: auto !important;
    min-height: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 12px;
    border-radius: 12px;
  }

  #bp-beroepen-sector,
  #bp-beroepen-niveau,
  #bp-beroepen-weergave,
  #bp-beroepen-reset,
  #bp-beroepen-add-toggle {
    grid-column: auto !important;
  }

  #bp-beroepen-sector,
  #bp-beroepen-niveau,
  #bp-beroepen-weergave {
    min-width: 0 !important;
  }

  #bp-beroepen-counter {
    text-align: center;
  }

  #bp-beroepen-sign-btn,
  #bp-beroepen-print-btn {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bp-beroepen-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bp-card-title {
    font-size: 17px;
  }

  .bp-check-row,
  .bp-info-link {
    font-size: 14px;
  }

  .bp-beroepen-filterbar {
    padding: 14px;
    border-radius: 16px;
  }

  .bp-beroepen-filterbar-title {
    font-size: 14px;
  }

  .bp-beroepen-filterbar-text {
    font-size: 12px;
  }

  .bp-beroep-card {
    border-radius: 16px;
    padding: 14px;
  }

  .bp-aant-grid {
    grid-template-columns: 1fr;
  }

  .bp-aant-full {
    grid-column: auto;
  }

  .bp-custom-edit-grid {
    grid-template-columns: 1fr;
  }

  .bp-beroep-card-begel .bp-card-title {
    font-size: 20px;
  }

  .bp-custom-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .bp-beroepen {
    padding: 2px 6px 12px;
  }

  .bp-beroepen-filterbar {
    padding: 12px;
    border-radius: 12px;
  }

  .bp-beroep-card {
    border-radius: 14px;
    padding: 12px;
  }

  .bp-card-title {
    font-size: 16px;
  }

  .bp-note {
    border-radius: 12px;
    min-height: 60px;
  }
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .bp-beroepen-block,
  .wp-block-bp-beroepen,
  .wp-block-post-content,
  .entry-content,
  .is-layout-constrained,
  .wp-site-blocks,
  .site-main,
  main,
  article {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
  }

  .bp-beroepen-filterbar,
  .bp-beroepen-grid,
  nav,
  header,
  footer,
  #wpadminbar {
    display: none !important;
  }

  .bp-beroepen {
    max-width: 100%;
    padding: 0;
    padding-left: var(--bp-pdf-left, 0mm);
    padding-right: var(--bp-pdf-right, 0mm);
  }

  /* Table layout: thead herhaalt header, tfoot reserveert ruimte voor fixed footer */
  .bp-page-table {
    display: table !important;
    width: 100%;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: #ffffff !important;
  }

  .bp-page-table thead { display: table-header-group !important; }
  .bp-page-table tfoot { display: table-footer-group !important; }
  .bp-page-table tbody { display: table-row-group !important; }

  .bp-page-table thead,
  .bp-page-table tbody,
  .bp-page-table tfoot,
  .bp-page-table tr,
  .bp-page-head-td,
  .bp-page-body-td,
  .bp-page-foot-td {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  .bp-page-head-td {
    padding: 0 0 2px 0 !important;
  }

  .bp-page-body-td {
    padding: 6px 0 0 0 !important;
  }

  .bp-page-foot-td {
    padding: 0 !important;
  }

  /* Onzichtbare spacer in tfoot: reserveert ruimte voor de fixed footer */
  .bp-page-foot-spacer {
    height: 90px;
  }

  /* Vaste footer: position fixed = onderaan elke printpagina */
  .bp-page-fixed-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .bp-print-only {
    display: block !important;
    opacity: 1 !important;
    color: #181c20 !important;
  }

  .bp-page-table.bp-print-only {
    display: table !important;
  }

  .bp-print-cover {
    display: block !important;
    margin: 0;
    break-after: page;
    page-break-after: always;
    width: 210mm;
    height: auto;
    overflow: hidden;
  }

  .bp-print-cover-media {
    min-height: 296mm;
    height: 296mm;
  }

  .bp-beroepen.bp-has-custom-pdf-layout .bp-page-body-td {
    background-image: var(--bp-pdf-bg-url);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: top left;
  }

  .bp-print-headrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 6px 0 !important;
    margin: var(--bp-pdf-header-top, 0mm) 0 0 0 !important;
  }

  .bp-print-brand {
    display: flex;
    align-items: center;
  }

  .bp-print-logo {
    max-height: 200px;
    max-width: 200px;
    object-fit: contain;
    display: block;
  }

  .bp-print-right {
    text-align: right;
  }

  .bp-print-name {
    font-weight: 600;
    font-size: 10px;
  }

  .bp-print-date {
    font-size: 9px;
    color: #52606a;
  }

  .bp-print-table {
    margin-top: var(--bp-pdf-table-top, 0mm);
  }

  .bp-print-footrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    color: #52606a;
    padding: 4px 0 0 0 !important;
    margin-top: calc(8px + var(--bp-pdf-footer-top, 0mm));
  }

  .bp-print-signatures {
    padding-top: 4px !important;
    border-top: 2px solid;
    display: flex !important;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .bp-print-signature-box {
    flex: 1;
  }

  .bp-print-sign-label {
    font-size: 9px;
    color: #52606a;
    margin-bottom: 45px;
  }

  .bp-print-sign-line {
    display: none;
  }

  .bp-print-sign-meta {
    font-size: 8px;
    color: #52606a;
    line-height: 1.6;
  }

  .bp-print-headrow,
  .bp-print-footrow,
  .bp-print-table,
  .bp-print-table th,
  .bp-print-table td,
  .bp-print-org,
  .bp-print-sub,
  .bp-print-name,
  .bp-print-date {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }

  .bp-print-org {
    color: var(--bp-blue) !important;
  }

  .bp-print-sub {
    color: #52606a !important;
  }

  .bp-print-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .bp-print-table tr:last-child td {
    border-bottom: 0 !important;
  }

  @page {
    size: A4 portrait;
    margin: 10mm 12mm 10mm 12mm;
  }

  @page :first {
    size: A4 portrait;
    margin: 0;
  }
}
.bp-beroepen-sign-modal[hidden]{display:none!important}
.bp-beroepen-sign-modal{position:fixed;inset:0;z-index:99999}
.bp-beroepen-sign-backdrop{position:absolute;inset:0;background:rgba(24,28,32,.42);backdrop-filter:blur(8px)}
.bp-beroepen-sign-card{position:relative;z-index:1;max-width:860px;width:min(860px,calc(100vw - 24px));max-height:calc(100vh - 40px);overflow:auto;margin:20px auto 0;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.8);border-radius:28px;box-shadow:0 30px 80px rgba(24,28,32,.24);backdrop-filter:blur(18px);padding:22px}
.bp-beroepen-sign-head,.bp-beroepen-sign-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bp-beroepen-sign-title{font-size:24px;font-weight:700;color:#181c20}
.bp-beroepen-sign-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#8a98a4}
.bp-beroepen-sign-text,.bp-beroepen-sign-label,.bp-beroepen-sign-status{font-size:14px;color:#8a98a4}
.bp-beroepen-sign-label{display:block;margin:12px 0 8px}
.bp-beroepen-sign-canvas{display:block;width:100%;height:220px;margin-top:12px;border:1px solid #dce0e4;border-radius:18px;background:#fff;touch-action:none}
.bp-beroepen-sign-upload{margin-top:12px}
.bp-beroepen-sign-file{display:block;width:100%}
.bp-beroepen-sign-status{min-height:20px;margin-top:10px}
.bp-beroepen-sign-status.is-ok{color:#0f9f6e}

@media (max-width: 640px) {
  .bp-beroepen,
  .bp-beroepen * {
    box-sizing: border-box;
  }

  .bp-beroepen-actions,
  .bp-beroepen-sign-head,
  .bp-beroepen-sign-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bp-beroepen-actions .bp-beroepen-reset,
  .bp-beroepen-sign-actions .bp-beroepen-reset {
    width: 100%;
  }

  .bp-beroepen-reset,
  .bp-beroepen-counter {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .bp-beroepen-select,
  .bp-beroepen-search,
  .bp-beroepen-reset,
  .bp-beroepen-counter,
  .bp-beroepen-add-panel,
  .bp-beroepen-upsell {
    max-width: 100%;
  }

  .bp-beroepen-grid,
  .bp-aant-grid,
  .bp-custom-edit-grid {
    grid-template-columns: 1fr !important;
  }

  .bp-beroepen-sign-card {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin-top: 8px;
    border-radius: 18px;
    padding: 14px;
  }

  .bp-beroepen-sign-title {
    font-size: 20px;
  }

  .bp-beroepen-sign-canvas {
    height: 180px;
    border-radius: 14px;
  }
}
