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

  /* Action buttons */
  .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.15s;
    color: #555;
  }
  .action-btn:hover { background: #e3ecfa; color: #0d47a1; }
  .action-btn.delete:hover { background: #fdecea; color: #c62828; }
  .action-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

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

  /* Clickable row */
  .clickable-row { cursor: pointer; }
  .clickable-row:hover td { background: #f0f5ff; }
  .clickable-row.selected td { background: #e3ecfa; }

  /* Detail breakdown section */
  .salary-detail {
    display: none;
    margin-top: 1.5rem;
  }
  .salary-detail.open { display: block; }

  .salary-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  .salary-detail-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
    margin: 0;
  }
  .salary-detail-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }
  .salary-detail-close:hover { background: #fdecea; color: #c62828; }

  /* Payslip download controls */
  .payslip-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .payslip-download select {
    padding: 0.35rem 0.5rem;
    border: 1.5px solid #d0d7e2;
    border-radius: 5px;
    font-size: 0.82rem;
    font-family: inherit;
    background: #fff;
    color: #333;
  }
  .payslip-download select:focus {
    outline: none;
    border-color: #1565c0;
  }
  .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    background: #0A1F3F;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
  }
  .btn-download:hover { background: #1565c0; }
  .btn-download svg { width: 15px; height: 15px; stroke: #fff; fill: none; }

  .salary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  @media (max-width: 900px) {
    .salary-grid { grid-template-columns: 1fr; }
  }

  .detail-card {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
  }

  .detail-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
  }

  .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.85rem;
  }
  .detail-row .label { color: var(--gray-500); }
  .detail-row .value { font-weight: 600; color: var(--gray-900); }
  .detail-row.total {
    border-top: 2px solid var(--gray-300);
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    font-weight: 700;
  }
  .detail-row.total .label { color: var(--gray-700); }
  .detail-row.negative .value { color: var(--success); }

  /* Text right */
  .text-right { text-align: right; }

  /* ---- 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: 560px;
    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; }

  .checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1565c0; }
  .checkbox-row label { font-size: 0.9rem; font-weight: 500; margin: 0; }

  .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; }

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