.payments-page {
  .action-buttons { display: flex; gap: 0.1rem; }
  .amount { font-family: 'Courier New', monospace; font-weight: 600; text-align: end; }
  .mono { font-family: 'Courier New', monospace; font-weight: 600; font-size: 0.8rem; color: var(--color-text-secondary); }
}

.view-payment {
  .view-header-info {
    display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1rem;
    .info-item { display: flex; flex-direction: column; gap: 0.25rem;
      label { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; }
      span { font-size: 0.8125rem; }
      .mono { font-family: 'Courier New', monospace; font-weight: 600; }
      .amount-big { font-family: 'Courier New', monospace; font-weight: 700; font-size: 1.1rem; color: var(--color-brand); }
    }
  }
  .view-notes {
    border-top: 1px solid var(--color-surface-border); padding-top: 0.75rem; margin-top: 0.5rem;
    label { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 0.25rem; }
    p { margin: 0; color: var(--color-text-primary); font-size: 0.8125rem; }
  }
}

// Settlement dialog
.settle-form {
  .settle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;

    .settle-field {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;

      label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-text-muted);
        text-transform: uppercase;
      }

      .partner-balance {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-text-secondary);
        &.credit { color: #43a047; }
      }
    }

    .settle-from-balance-field {
      grid-column: 1 / -1;
      background: rgba(67, 160, 71, 0.08);
      border: 1px solid rgba(67, 160, 71, 0.3);
      border-radius: 8px;
      padding: 0.75rem 1rem;

      label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        color: #43a047 !important;
        text-transform: none !important;
        font-size: 0.8125rem !important;

        input[type="checkbox"] {
          width: 1rem;
          height: 1rem;
          accent-color: #43a047;
          cursor: pointer;
        }
      }

      .balance-hint {
        font-size: 0.7rem;
        color: var(--color-text-secondary);
        margin-top: 0.2rem;
      }
    }
  }

  .settle-loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
  }

  .settle-summary {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface-card);
    border: 1px solid var(--color-surface-border);
    border-radius: 8px;
    margin-bottom: 1rem;

    .summary-item {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;

      .summary-label {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-text-muted);
        text-transform: uppercase;
      }
      .summary-value {
        font-family: 'Courier New', monospace;
        font-weight: 700;
        font-size: 1rem;
        &.outstanding { color: #e53935; }
        &.allocated { color: #43a047; }
        &.over { color: #e53935; }
      }
      .summary-hint {
        font-size: 0.65rem;
        color: #43a047;
        font-weight: 600;
      }
    }
  }

  .settle-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;

    th {
      padding: 0.5rem 0.75rem;
      text-align: start;
      font-weight: 600;
      font-size: 0.75rem;
      color: var(--color-text-muted);
      text-transform: uppercase;
      border-bottom: 2px solid var(--color-surface-border);
      &.text-end { text-align: end; }
    }

    td {
      padding: 0.5rem 0.75rem;
      border-bottom: 1px solid var(--color-surface-border);
      &.text-end { text-align: end; }
      &.fw-600 { font-weight: 600; }
    }

    .mono {
      font-family: 'Courier New', monospace;
      font-weight: 600;
      font-size: 0.8rem;
      color: var(--color-text-secondary);
    }

    tr.fully-allocated {
      td { color: #43a047; }
    }
  }

  .settle-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--color-text-muted);
    i { font-size: 2rem; color: #43a047; }
    p { margin: 0; }
  }
}

.settle-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
