  /* Override card max-width for wider table */
  .card { max-width: 100%; }
  #main-content { max-width: 1400px; }

  /* KPI row — uses page-kpi-* classes from base.css */

  /* Toolbar */
  .pe-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
  }

  /* btn-new, status-tabs, status-tab, table-wrap: base from design-system.css */
  .btn-new svg { width: 18px; height: 18px; stroke: #fff; fill: none; }

  .status-tab .tab-count {
    font-weight: 400;
    color: #999;
    margin-left: 0.25rem;
    font-size: 0.82rem;
  }
  .status-tab.active .tab-count { color: #1565c0; }

  /* Row status styling */
  tr.row-verwacht td { background: #fafafa; }
  tr.row-verwacht { border-left: 3px dashed #bbb; }
  tr.row-ontvangen { border-left: 3px solid #43a047; }
  tr.row-vervallen td { background: #f5f5f5; color: #999; }
  tr.row-vervallen td * { color: #999 !important; }
  tr.row-vervallen .ei-name { text-decoration: line-through; }

  /* Status icons */
  .status-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .status-icon svg { width: 16px; height: 16px; fill: none; flex-shrink: 0; }
  .status-icon.si-verwacht { color: #1565c0; }
  .status-icon.si-verwacht svg { stroke: #1565c0; }
  .status-icon.si-ontvangen { color: #2e7d32; }
  .status-icon.si-ontvangen svg { stroke: #2e7d32; }
  .status-icon.si-vervallen { color: #c62828; }
  .status-icon.si-vervallen svg { stroke: #c62828; }

  /* Certainty badges */
  .certainty-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
  }
  .certainty-badge.hard {
    background: var(--navy-800, #0F1D32);
    color: #fff;
  }
  .certainty-badge.zacht {
    background: var(--gold-500, #C9A84C);
    color: #fff;
  }

  .cat-pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e3ecfa;
    color: #1565c0;
    white-space: nowrap;
  }

  /* Amount cells right-aligned */
  .text-right { text-align: right; }

  /* Action buttons */
  .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.15s;
    color: #555;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
  }
  .action-btn:hover { background: #e3ecfa; color: #0d47a1; }
  .action-btn.delete:hover { background: #fdecea; color: #c62828; }
  .action-btn.approve { color: #2e7d32; }
  .action-btn.approve:hover { background: #e8f5e9; color: #1b5e20; }
  .action-btn.status-vervallen { color: #c62828; }
  .action-btn.status-vervallen:hover { background: #fdecea; color: #b71c1c; }
  .action-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

  .actions-cell { display: flex; gap: 0.25rem; flex-wrap: wrap; }

  /* empty-state: base from design-system.css */

  /* ---- Modal ---- */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 300;
    align-items: center;
    justify-content: center;
  }
  .modal-overlay.open { display: flex; }

  .modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    width: 680px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e3ecfa;
  }
  .modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d47a1;
    margin: 0;
    border: none;
    padding: 0;
  }
  .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    padding: 0 0.25rem;
  }
  .modal-close:hover { color: #c62828; }

  .modal-body { padding: 1.5rem; }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .form-row.full { grid-template-columns: 1fr; }

  .form-group { display: flex; flex-direction: column; }
  .form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.5rem 0.65rem;
    border: 1.5px solid #d0d7e2;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s;
    background: #fff;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 2px rgba(21,101,192,0.12);
  }
  .form-group textarea { resize: vertical; min-height: 60px; }

  .form-group .computed-value {
    padding: 0.5rem 0.65rem;
    border: 1.5px solid #e8edf5;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f7faff;
    color: #333;
    font-weight: 600;
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e8edf5;
  }
  .btn-cancel {
    padding: 0.55rem 1.25rem;
    background: #f0f2f5;
    color: #333;
    border: 1.5px solid #d0d7e2;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
  }
  .btn-cancel:hover { background: #e3ecfa; }
  .btn-save {
    padding: 0.55rem 1.5rem;
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
  }
  .btn-save:hover { background: #0d47a1; }
  .btn-save:disabled { background: #90b4e8; cursor: not-allowed; }

  /* Year filter */
  .year-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .year-filter label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
  }
  .year-filter select {
    padding: 0.35rem 0.65rem;
    border: 1.5px solid #d0d7e2;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
  }

  @media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .pe-toolbar { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  }
