.schade-page {
  background:
    radial-gradient(900px 360px at 100% 0, rgba(37, 99, 235, .13), transparent 58%),
    radial-gradient(720px 300px at 0 8%, rgba(26, 46, 74, .10), transparent 55%),
    var(--gray-100);
}

.schade-wrap {
  max-width: min(1720px, calc(100vw - 32px));
}

.schade-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .94)),
    #fff;
  box-shadow: 0 24px 64px -42px rgba(15, 23, 42, .55);
}

.schade-hero::before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 340px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, .28), transparent 68%);
  pointer-events: none;
}

.schade-hero__row,
.schade-toolbar,
.schade-total-row,
.schade-modal__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.schade-hero__row {
  position: relative;
  justify-content: space-between;
}

.schade-eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.schade-title {
  color: var(--navy);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 10px;
}

.schade-lead {
  max-width: 760px;
  color: var(--gray-600);
  font-size: 15px;
}

.schade-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.schade-legend__item {
  border: 1px solid rgba(191, 219, 254, .95);
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(145deg, #fff, #eff6ff);
  box-shadow: var(--shadow);
}

.schade-legend__label {
  display: block;
  color: var(--gray-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.schade-legend__value {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}

.schade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.schade-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schade-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.schade-section__title {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.schade-section__sub {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 2px;
}

.schade-table-wrap {
  overflow-x: auto;
}

.schade-table-wrap--wide {
  overflow-x: visible;
}

.schade-table-wrap--wide .schade-table {
  table-layout: fixed;
  min-width: 0;
  font-size: 12px;
}

.schade-table-wrap--wide .schade-table th,
.schade-table-wrap--wide .schade-table td {
  padding: 7px 6px;
}

.schade-table-wrap--wide .schade-input,
.schade-table-wrap--wide .schade-select {
  min-height: 32px;
  padding: 5px 6px;
  font-size: 12px;
}

.schade-table-wrap--wide .schade-small,
.schade-table-wrap--wide .schade-rc {
  min-width: 0;
}

.schade-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.schade-table th,
.schade-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  text-align: left;
}

.schade-table th {
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f8fafc;
}

.schade-subsection-row th {
  color: var(--navy);
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
}

.schade-table td:last-child,
.schade-table th:last-child {
  width: 52px;
  text-align: center;
}

.schade-input,
.schade-select,
.schade-search {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: var(--gray-900);
}

.schade-input:focus,
.schade-select:focus,
.schade-search:focus {
  outline: 2px solid rgba(37, 99, 235, .22);
  border-color: rgba(37, 99, 235, .58);
}

.schade-correction-pair {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.schade-correction-pair strong,
.schade-correction-pair label {
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 800;
}

.schade-number {
  max-width: 130px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.schade-money {
  white-space: nowrap;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.schade-empty {
  padding: 16px;
  color: var(--gray-600);
  font-size: 13px;
  text-align: center;
}

.schade-delete {
  width: 32px;
  height: 32px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #b91c1c;
  background: #fff;
  cursor: pointer;
}

.schade-delete:hover {
  background: #fee2e2;
}

.schade-aside {
  position: sticky;
  top: 76px;
}

.schade-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.schade-card h2 {
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 12px;
}

.schade-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.schade-field label {
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.schade-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.schade-cost-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 105px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

.schade-cost-row:last-child {
  border-bottom: 0;
}

.schade-cost-row--begroting {
  align-items: start;
  padding-top: 10px;
  padding-bottom: 10px;
}

.schade-cost-row--begroting .schade-cost-row__begroting-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.schade-cost-row--begroting .schade-cost-row__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
  line-height: 1.25;
}

.schade-cost-row--begroting .schade-cost-row__werkz {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.3;
}

.schade-cost-row--begroting .schade-cost-row__ae {
  font-size: 12px;
  color: var(--gray-700);
  margin-top: 2px;
}

.schade-cost-row--begroting .schade-cost-row__ae strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.schade-cost-row--begroting .schade-cost-row__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  align-self: center;
}

.schade-cost-row--auto {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  color: var(--gray-900);
}

.schade-cost-row--auto + .schade-cost-row--auto {
  margin-top: 6px;
}

.schade-cost-row--auto .schade-cost-row__icon {
  display: none;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.schade-cost-row--auto .schade-cost-row__label {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.35;
}

.schade-cost-row--auto .schade-cost-row__amount {
  grid-column: 1;
  justify-self: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  margin-top: 6px;
}

.schade-cost-row--klein {
  border: 1px solid rgba(59, 130, 246, .35);
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.schade-cost-row--klein .schade-cost-row__icon {
  background: rgba(59, 130, 246, .15);
  color: #1d4ed8;
}

.schade-cost-row--klein .schade-cost-row__amount {
  color: #1e3a8a;
}

.schade-cost-row--milieu {
  border: 1px solid rgba(16, 185, 129, .35);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.schade-cost-row--milieu .schade-cost-row__icon {
  background: rgba(16, 185, 129, .15);
  color: #047857;
}

.schade-cost-row--milieu .schade-cost-row__amount {
  color: #065f46;
}

.schade-cost-row__textcol {
  grid-column: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.schade-cost-row--klein,
.schade-cost-row--milieu {
  align-items: flex-start;
}

.schade-cost-row--klein .schade-cost-row__amount,
.schade-cost-row--milieu .schade-cost-row__amount {
  align-self: flex-start;
  margin-top: 2px;
}

.schade-cost-row__line-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  color: var(--gray-900);
}

.schade-cost-row--klein .schade-cost-row__line-title {
  color: #1e40af;
}

.schade-cost-row--milieu .schade-cost-row__line-title {
  color: #047857;
}

.schade-cost-row__desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-600);
  font-weight: 500;
}

.schade-total-row__labelstack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 8px;
}

.schade-total-row__title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.schade-total-row__desc {
  font-size: 10px;
  line-height: 1.45;
  color: var(--gray-600);
  font-weight: 500;
}

.schade-total-row--auto.schade-total-row--klein,
.schade-total-row--auto.schade-total-row--milieu {
  align-items: flex-start;
}

.schade-total-row--auto strong {
  font-style: italic;
  flex-shrink: 0;
}

.schade-total-row__labelstack .schade-total-row__title {
  font-style: italic;
}

.schade-total-row--klein .schade-total-row__title {
  color: #1e3a8a;
}

.schade-total-row--milieu .schade-total-row__title {
  color: #065f46;
}

.schade-total-row--klein strong {
  color: #1e3a8a;
}

.schade-total-row--milieu strong {
  color: #065f46;
}

.schade-segment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.schade-segment-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
}

.schade-segment-row:has(input:checked) {
  border-color: rgba(37, 99, 235, .45);
  background: linear-gradient(145deg, #fff, #eff6ff);
}

.schade-segment-row strong,
.schade-segment-row small {
  display: block;
}

.schade-segment-row strong {
  color: var(--gray-900);
  font-size: 13px;
}

.schade-segment-row small {
  color: var(--gray-600);
  font-size: 12px;
}

.schade-info-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 900;
  cursor: pointer;
}

.schade-info-btn:hover {
  background: #dbeafe;
}

.schade-footnote {
  padding: 12px 16px 14px;
  color: var(--gray-600);
  font-size: 11px;
  line-height: 1.55;
  border-top: 1px solid var(--gray-200);
  background: #f8fafc;
}

.schade-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .54);
  backdrop-filter: blur(8px);
}

.schade-info-modal.is-open {
  display: flex;
}

.schade-info-modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 38px 90px -36px rgba(15, 23, 42, .75);
}

.schade-info-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-600);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.schade-info-modal__text {
  margin-top: 14px;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.7;
}

.schade-totals {
  border-color: rgba(26, 46, 74, .22);
  background: linear-gradient(145deg, #fff, #f8fafc);
}

.schade-total-row {
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-200);
  font-variant-numeric: tabular-nums;
}

.schade-total-row:last-child {
  border-bottom: 0;
}

.schade-total-row--grand {
  margin-top: 8px;
  padding-top: 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  border-top: 2px solid var(--navy);
  border-bottom: 0;
}

.schade-settings-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.schade-settings-status {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.schade-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(8px);
}

.schade-modal.is-open {
  display: flex;
}

.schade-modal__panel {
  width: min(840px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 38px 90px -36px rgba(15, 23, 42, .75);
}

.schade-modal__head,
.schade-modal__actions {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.schade-modal__actions {
  justify-content: flex-end;
  border-top: 1px solid var(--gray-200);
  border-bottom: 0;
}

.schade-picker-list {
  overflow: auto;
  padding: 8px 16px 16px;
}

.schade-picker-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-200);
}

.schade-picker-item strong {
  display: block;
  color: var(--gray-900);
}

.schade-picker-item span {
  color: var(--gray-600);
  font-size: 12px;
}

.schade-actionbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(219, 234, 254, .55)),
    #fff;
  box-shadow: var(--shadow);
}

.schade-actionbar__title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.schade-actionbar__sub {
  color: var(--gray-700);
  font-size: 13px;
  line-height: 1.55;
  max-width: 720px;
}

.schade-actionbar__sub strong {
  color: var(--navy);
}

.schade-actionbar__sub em {
  font-style: normal;
  color: var(--blue);
  font-weight: 700;
}

.schade-actionbar__btn {
  font-weight: 700;
  padding: 12px 22px;
  font-size: 14px;
  white-space: nowrap;
}

.schade-voertuig {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: var(--shadow);
}

.schade-voertuig__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schade-voertuig__title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.schade-voertuig__sub {
  color: var(--gray-700, var(--gray-600));
  font-size: 13px;
  line-height: 1.55;
}

.schade-voertuig__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.schade-voertuig-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
}

.schade-voertuig-btn:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(26, 46, 74, .35);
}

.schade-voertuig-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.schade-voertuig-btn.is-active {
  background: linear-gradient(135deg, #1a2e4a 0%, #243d5f 100%);
  border-color: #14233b;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(26, 46, 74, .55);
}

.schade-voertuig-btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.schade-voertuig-btn__label {
  display: block;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .schade-voertuig__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .schade-voertuig__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.schade-confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .55);
  z-index: 9000;
}

.schade-confirm-modal.is-open {
  display: flex;
}

.schade-confirm-modal__panel {
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 22px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35);
  text-align: center;
}

.schade-confirm-modal__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fef2f2;
  color: #b91c1c;
  margin-bottom: 14px;
}

.schade-confirm-modal__icon svg {
  width: 32px;
  height: 32px;
}

.schade-confirm-modal__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.schade-confirm-modal__text {
  color: var(--gray-700, var(--gray-600));
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.schade-confirm-modal__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schade-confirm-modal__actions .btn {
  min-width: 130px;
  font-weight: 700;
}

.schade-confirm-modal__actions .btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.schade-confirm-modal__actions .btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.schade-page .schade-valbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 20px;
  margin: 0 0 18px;
  border: 1px solid #14233b;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a2e4a 0%, #243d5f 100%);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(26, 46, 74, .45), 0 2px 4px rgba(0, 0, 0, .06);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.schade-page .schade-valbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1a2e4a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.schade-page .schade-valbar__item strong {
  color: #1a2e4a;
  font-weight: 800;
}

.schade-page .schade-valbar__sep {
  display: none;
}

.schade-page .schade-valbar__hint {
  flex: 1 1 260px;
  margin-left: auto;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.schade-page .schade-valbar__hint strong {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 720px) {
  .schade-page .schade-valbar {
    padding: 12px 14px;
  }
  .schade-page .schade-valbar__hint {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
  }
}

@media print {
  .schade-page .schade-valbar {
    background: #1a2e4a !important;
    color: #fff !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .schade-page .schade-valbar__item {
    background: #fff !important;
    color: #1a2e4a !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

.schade-picker-hint {
  padding: 0 4px 10px;
  color: var(--gray-700);
  font-size: 12.5px;
  line-height: 1.55;
  border-bottom: 1px dashed var(--gray-200);
  margin-bottom: 10px;
}

.schade-picker-hint strong {
  color: var(--navy);
}

.schade-picker-hint em {
  font-style: normal;
  color: var(--blue);
  font-weight: 700;
}

.schade-picker-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--gray-200);
}

.schade-picker-row:last-child {
  border-bottom: 0;
}

.schade-picker-row.has-selection .schade-picker-row__head {
  background: rgba(37, 99, 235, .04);
}

.schade-picker-row__head {
  display: grid;
  grid-template-columns: 24px 1fr auto 16px;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--gray-900);
  transition: background .15s ease;
  border-radius: 8px;
}

.schade-picker-row__head:hover {
  background: rgba(37, 99, 235, .06);
}

.schade-picker-row__head:focus-visible {
  outline: 2px solid var(--blue, #2563eb);
  outline-offset: 2px;
}

.schade-picker-row__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--gray-300, #cbd5e1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #fff;
  transition: background .15s ease, border-color .15s ease;
}

.schade-picker-row.has-selection .schade-picker-row__check {
  background: var(--blue, #2563eb);
  border-color: var(--blue, #2563eb);
}

.schade-picker-row__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.schade-picker-row__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
  letter-spacing: -0.005em;
}

.schade-picker-row__cat {
  font-size: 11.5px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.schade-picker-row__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue, #2563eb);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
}

.schade-picker-row__count--empty {
  color: var(--gray-600);
  background: var(--gray-100, #f1f5f9);
  font-weight: 500;
}

.schade-picker-row__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500, #64748b);
  transition: transform .15s ease;
}

.schade-picker-row.is-open .schade-picker-row__chevron {
  transform: rotate(180deg);
  color: var(--blue, #2563eb);
}

.schade-picker-row__body {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 4px 6px 14px 42px;
}

.schade-picker-row.is-open .schade-picker-row__body {
  display: flex;
}

.schade-picker-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schade-picker-row__custom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-200);
}

.schade-picker-row__custom-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-700, var(--gray-600));
  letter-spacing: .02em;
}

.schade-picker-row__custom-input {
  font-size: 13px;
}

.schade-picker-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 132px;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: var(--gray-700);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.schade-picker-action:hover:not(.is-disabled):not([disabled]) {
  border-color: rgba(37, 99, 235, .45);
  background: #eff6ff;
}

.schade-picker-action.is-on {
  border-color: var(--blue);
  background: linear-gradient(145deg, rgba(37, 99, 235, .96), rgba(29, 78, 216, .96));
  color: #fff;
  box-shadow: 0 6px 18px -10px rgba(37, 99, 235, .65);
}

.schade-picker-action.is-on .schade-picker-action__hint {
  color: rgba(255, 255, 255, .92);
}

.schade-picker-action.is-disabled,
.schade-picker-action[disabled] {
  opacity: .45;
  cursor: not-allowed;
  background: #f8fafc;
}

.schade-picker-action__label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
}

.schade-picker-action__hint {
  font-size: 11px;
  color: var(--gray-600);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .schade-actionbar {
    grid-template-columns: 1fr;
  }
  .schade-picker-row__head {
    grid-template-columns: 22px 1fr auto;
    grid-template-rows: auto auto;
  }
  .schade-picker-row__chevron {
    grid-column: 3;
    grid-row: 1;
  }
  .schade-picker-row__count {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: start;
  }
  .schade-picker-row__body {
    padding-left: 6px;
  }
  .schade-picker-row__actions {
    justify-content: flex-start;
  }
  .schade-picker-action {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

.schade-print {
  display: none;
}

.schade-print__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

.schade-print__head h1 {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
}

.schade-print__head p,
.schade-print__legend {
  color: var(--gray-600);
  font-size: 12px;
}

.schade-foto-bijlagen {
  display: none;
}

.schade-foto-bijlagen h2 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 4px;
}

.schade-foto-bijlagen p {
  color: var(--gray-600);
  font-size: 12px;
  margin-bottom: 12px;
}

.schade-foto-bijlagen__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schade-foto-bijlage {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.schade-foto-bijlage img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
}

.schade-foto-bijlage figcaption {
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .schade-grid {
    grid-template-columns: 1fr;
  }
  .schade-aside {
    position: static;
  }
  .schade-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Onderdelen-picker: categorieën + zoekresultaten */
.schade-om-root {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.schade-om-cat {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.schade-om-cat__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin: 0;
  border: 0;
  background: var(--gray-50, #f8fafc);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--navy, #0f172a);
}

.schade-om-cat__head:hover {
  background: var(--gray-100, #f1f5f9);
}

.schade-om-cat__chev {
  display: flex;
  color: var(--gray-500, #64748b);
  transition: transform 0.15s ease;
}

.schade-om-cat__chev.is-open {
  transform: rotate(180deg);
}

.schade-om-cat__body {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schade-om-cat__body.is-collapsed {
  display: none;
}

.schade-om-part {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.schade-om-part:hover {
  background: var(--gray-50, #f8fafc);
}

.schade-om-part input {
  margin-top: 3px;
  flex-shrink: 0;
}

.schade-om-hit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.schade-om-hit:hover {
  border-color: var(--accent, #3b82f6);
}

.schade-om-hit__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.schade-om-hit__name {
  font-weight: 500;
  color: var(--navy, #0f172a);
}

.schade-om-hit__cat {
  font-size: 12px;
  color: var(--gray-500, #64748b);
}

.schade-om-hit input {
  margin-top: 3px;
  flex-shrink: 0;
}

.schade-om-empty {
  margin: 12px 0;
}

.schade-dat-meta {
  margin: 0 0 16px;
}

.schade-dat-meta__grid,
.schade-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.schade-small {
  min-width: 72px;
}

.schade-rc {
  min-width: 58px;
  padding-left: 8px;
  padding-right: 8px;
}

.schade-line-note {
  display: block;
  margin-top: 3px;
  color: var(--gray-500, #64748b);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.schade-icon-btn {
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gray-700, #334155);
  cursor: pointer;
  font-size: 12px;
}

.schade-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.schade-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schade-om-price {
  display: block;
  margin-top: 2px;
  color: var(--gray-500, #64748b);
  font-size: 12px;
}

.schade-detail-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.schade-detail-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.schade-detail-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy, #0f172a);
}

.schade-detail-block {
  margin-top: 12px;
}

.schade-detail-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.schade-detail-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--gray-50, #f8fafc);
  font-size: 13px;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 3mm;
  }
  body.schade-page {
    background: #fff !important;
  }
  .navbar,
  .schade-hero,
  .schade-screen-only,
  .schade-aside .schade-card:not(.schade-totals),
  .schade-section__head .btn,
  .schade-delete,
  .schade-modal {
    display: none !important;
  }
  .schade-info-modal {
    display: none !important;
  }
  .page-wrap,
  .schade-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
  }
  .schade-print,
  .schade-valbar,
  .schade-legend,
  .schade-grid,
  .schade-section,
  .schade-card,
  .schade-foto-bijlagen {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .schade-grid {
    display: block;
  }
  .schade-grid main {
    width: 100% !important;
  }
  .schade-aside {
    position: static;
  }
  .schade-section,
  .schade-card {
    box-shadow: none;
    break-inside: avoid;
  }
  .schade-totals {
    break-before: page;
    page-break-before: always;
  }
  .schade-input,
  .schade-select {
    border: 0;
    padding: 0;
    min-height: 0;
  }
  .schade-table-wrap,
  .schade-table-wrap--wide {
    overflow: visible !important;
  }
  .schade-table {
    page-break-inside: auto;
    break-inside: auto;
  }
  .schade-valbar {
    background: #000 !important;
    color: #fff !important;
  }
  .schade-section__head,
  .schade-table th,
  .schade-subsection-row th {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .schade-section__title,
  .schade-section__sub {
    color: #fff !important;
  }
  .schade-table {
    table-layout: fixed !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 7.6px;
    line-height: 1.15;
  }
  .schade-table th,
  .schade-table td {
    padding: 3px 2px;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    vertical-align: top;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  .schade-table tr,
  .schade-table td,
  .schade-table th,
  .schade-totals tr,
  .schade-totals td,
  .schade-total-row {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .schade-table .schade-input,
  .schade-table .schade-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 7.6px;
    background: transparent;
  }
  .schade-print-hidden-control {
    display: none !important;
  }
  .schade-print-value {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.15;
  }
  .schade-print {
    display: block;
    margin-bottom: 16px;
  }
  .schade-foto-bijlagen {
    display: none !important;
  }
}

@media print {
  .schade-page,
  .schade-page * {
    color: #000000 !important;
  }

  .schade-page .schade-section__head,
  .schade-page .schade-table th,
  .schade-page .schade-subsection-row th,
  .schade-page .schade-valbar {
    background: #ffffff !important;
    border-color: #000000 !important;
    color: #000000 !important;
  }
}
