  /* ---- Page layout (page-header base from design-system.css) ---- */

  .toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 1280px;
  }

  .toolbar input[type="text"] {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 0.55rem 0.9rem;
    border: 2px solid #e3ecfa;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
  }

  .toolbar input[type="text"]:focus {
    border-color: #1565c0;
  }

  .toolbar select {
    padding: 0.55rem 0.75rem;
    border: 2px solid #e3ecfa;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background: #fff;
    cursor: pointer;
  }

  .toolbar select:focus {
    border-color: #1565c0;
  }

  .toolbar label.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
  }

  .toolbar label.toggle-label input[type="checkbox"] {
    accent-color: #1565c0;
    width: 16px;
    height: 16px;
  }

  /* btn-new: base from design-system.css */
  .btn-new {
    margin-left: auto;
  }

  /* ---- Card overrides ---- */
  .card-wide {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1rem 1.25rem;
    width: 100%;
    max-width: 1280px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
  }

  /* ---- Table ---- */
  .ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }

  .ledger-table th,
  .ledger-table td {
    text-align: left;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #e8edf5;
    white-space: nowrap;
  }

  .ledger-table th {
    background: #f0f4fb;
    font-weight: 600;
    color: #0d47a1;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .ledger-table tr:last-child td { border-bottom: none; }
  .ledger-table tbody tr:hover td { background: #f7faff; }

  /* Section header rows */
  .section-row td {
    background: #e3ecfa !important;
    color: #0d47a1;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    padding: 0.55rem 0.6rem;
    border-bottom: 2px solid #c5d5f0;
  }

  /* Inactive rows */
  .row-inactive td {
    opacity: 0.5;
  }

  .row-inactive:hover td {
    opacity: 0.7;
    background: #f7faff;
  }

  /* Percentage warning */
  .pct-warn {
    color: #c62828;
    font-weight: 700;
  }

  /* Depreciation icon */
  .depr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e3ecfa;
    border-radius: 3px;
    color: #0d47a1;
    font-size: 0.7rem;
    font-weight: 700;
  }

  /* Action buttons */
  .act-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: background 0.15s;
    vertical-align: middle;
  }

  .act-btn:hover { background: #e3ecfa; }

  .act-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
  }

  .act-btn.edit-btn { color: #1565c0; }
  .act-btn.toggle-btn { color: #555; }
  .act-btn.toggle-btn.is-inactive { color: #c62828; }

  /* Badge (base .badge from design-system.css, badge-active inherited) */
  .badge-inactive { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; background: #fdecea; color: #c62828; }

  .empty-msg { color: #999; text-align: center; padding: 2rem; font-size: 0.9rem; }

  .account-count {
    color: #555;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  /* ---- Modal ---- */
  .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;
  }

  .modal-overlay.open { display: flex; }

  .modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    min-width: 420px;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-box h3 {
    margin-bottom: 1rem;
    color: #0d47a1;
    font-size: 1.1rem;
  }

  .modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }

  .modal-grid .full-width {
    grid-column: 1 / -1;
  }

  .modal-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.25rem;
  }

  .modal-field label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.2rem;
  }

  .modal-field input,
  .modal-field select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #ccd5e0;
    border-radius: 6px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
  }

  .modal-field input:focus,
  .modal-field select:focus {
    border-color: #1565c0;
  }

  .modal-field input:disabled {
    background: #f0f2f5;
    color: #777;
  }

  .modal-btn-row {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8edf5;
  }

  .modal-btn-row button {
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s;
  }

  .modal-btn-row .btn-primary { background: #0d47a1; color: #fff; }
  .modal-btn-row .btn-primary:hover { background: #0b3d91; }
  .modal-btn-row .btn-cancel { background: #e0e0e0; color: #333; }
  .modal-btn-row .btn-cancel:hover { background: #ccc; }

  .modal-error {
    display: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: #fdecea;
    color: #c62828;
    border-left: 4px solid #e53935;
  }

  .modal-error.visible { display: block; }

  /* ---- Status banner ---- */
  .page-banner {
    display: none;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    max-width: 1280px;
  }

  .page-banner.success { display: block; background: #e8f5e9; color: #2e7d32; border-left: 4px solid #43a047; }
  .page-banner.error   { display: block; background: #fdecea; color: #c62828; border-left: 4px solid #e53935; }

  /* ---- Responsive ---- */
  @media (max-width: 768px) {
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar input[type="text"] { max-width: 100%; }
    .btn-new { margin-left: 0; }
    .modal-box { min-width: 0; width: 95%; }
    .modal-grid { grid-template-columns: 1fr; }
  }
