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

    .filters-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      margin-bottom: 1.25rem;
    }

    .filters-bar input[type="text"],
    .filters-bar select {
      padding: 0.5rem 0.75rem;
      border: 1px solid #ccd5e0;
      border-radius: 6px;
      font-size: 0.9rem;
      background: #fff;
      color: #1a1a2e;
    }

    .filters-bar input[type="text"] {
      min-width: 260px;
    }

    .filters-bar input[type="text"]:focus,
    .filters-bar select:focus {
      outline: none;
      border-color: #1565c0;
      box-shadow: 0 0 0 2px rgba(21,101,192,0.15);
    }

    #sales-table th {
      cursor: pointer;
      user-select: none;
      white-space: nowrap;
    }

    #sales-table th:hover {
      background: #e3ecfa;
    }

    #sales-table th .sort-arrow {
      margin-left: 0.3rem;
      font-size: 0.7rem;
      opacity: 0.4;
    }

    #sales-table th.sorted .sort-arrow {
      opacity: 1;
    }

    /* No sort on Acties column */
    #sales-table th:last-child {
      cursor: default;
    }
    #sales-table th:last-child:hover {
      background: #f0f4fb;
    }

    /* Sales invoice status badges (page-specific) */
    .badge-concept       { background: #f0f0f0; color: #777; }
    .badge-verstuurd     { background: #e3f2fd; color: #1565c0; }
    .badge-betaald       { background: #e8f5e9; color: #2e7d32; }
    .badge-vervallen     { background: #ffebee; color: #c62828; }
    .badge-gecrediteerd  { background: repeating-linear-gradient(135deg, #f0f0f0, #f0f0f0 4px, #e0e0e0 4px, #e0e0e0 8px); color: #777; }

    /* Overdue row highlight */
    tr.overdue td { background: #fff5f5 !important; }
    .due-date-overdue { color: #c62828; font-weight: 600; }

    /* Status tabs — page-specific overrides */
    .status-tabs { overflow-x: auto; }
    .status-tab .tab-count {
      font-weight: 400;
      color: #999;
      margin-left: 0.25rem;
      font-size: 0.82rem;
    }
    .status-tab.active .tab-count { color: #1565c0; }

    /* Action dropdown */
    .action-dropdown { position: relative; display: inline-block; }
    .action-btn {
      background: none; border: 1px solid #ccd5e0; border-radius: 6px;
      padding: 0.25rem 0.5rem; cursor: pointer; font-size: 0.82rem;
      color: #555; white-space: nowrap;
    }
    .action-btn:hover { background: #f0f4fb; border-color: #1565c0; color: #1565c0; }
    .action-dropdown-menu {
      display: none; position: absolute; top: 100%; right: 0; z-index: 100;
      background: #fff; border: 1px solid #ccd5e0; border-radius: 8px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 0.25rem 0; min-width: 180px;
      margin-top: 0.15rem;
    }
    .action-dropdown-menu.open { display: block; }
    .action-dropdown-item {
      display: block; padding: 0.45rem 0.75rem; cursor: pointer;
      font-size: 0.85rem; color: #333; text-decoration: none;
    }
    .action-dropdown-item:hover { background: #f0f4fb; }
    .action-dropdown-item.danger { color: #c62828; }
    .action-dropdown-item.danger:hover { background: #ffebee; }

    /* Status change modal overlay */
    .status-modal-overlay {
      display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.4); z-index: 500; justify-content: center; align-items: center;
    }
    .status-modal-overlay.open { display: flex; }
    .status-modal {
      background: #fff; border-radius: 12px; padding: 1.5rem;
      min-width: 360px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }
    .status-modal h3 { margin-bottom: 1rem; color: #0d47a1; }
    .status-modal label { display: block; margin-bottom: 0.25rem; font-weight: 600; font-size: 0.85rem; }
    .status-modal input {
      width: 100%; padding: 0.5rem; border: 1px solid #ccd5e0;
      border-radius: 6px; font-size: 0.9rem; margin-bottom: 0.75rem;
    }
    .status-modal .btn-row { display: flex; gap: 0.5rem; justify-content: flex-end; }
    .status-modal button {
      padding: 0.5rem 1rem; border-radius: 6px; border: none;
      cursor: pointer; font-size: 0.9rem; font-weight: 600;
    }
    .status-modal .btn-primary { background: #0d47a1; color: #fff; }
    .status-modal .btn-primary:hover { background: #0a3d8f; }
    .status-modal .btn-cancel { background: #e0e0e0; color: #333; }
    .status-modal .btn-cancel:hover { background: #d0d0d0; }

    .invoice-count {
      color: #555;
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .no-results {
      text-align: center;
      padding: 2rem;
      color: #888;
      font-size: 0.95rem;
    }

    /* Totaal footer */
    .totaal-footer {
      background: #f5f6fa;
      padding: 0.75rem 1rem;
      border-top: 2px solid #e0e0e0;
      font-size: 0.92rem;
      font-weight: 600;
      color: #333;
      position: sticky;
      bottom: 0;
    }



