/* ============================================
   ローン返済計算ページ固有スタイル
   ============================================ */

/* Hint text under input */
.form-hint {
    font-size: var(--text-xs);
    color: var(--color-accent-3);
    margin-top: var(--space-1);
    text-align: right;
    font-weight: 500;
}

/* Schedule Table */
.schedule-table-wrap {
    overflow-x: auto;
    margin-top: var(--space-2);
    max-height: 400px;
    overflow-y: auto;
    border-radius: var(--radius-lg);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
}

.schedule-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.schedule-table th {
    background: var(--color-surface-elevated);
    padding: var(--space-3) var(--space-4);
    text-align: right;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.schedule-table th:first-child {
    text-align: center;
    border-radius: var(--radius-md) 0 0 0;
}

.schedule-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.schedule-table td {
    padding: var(--space-3) var(--space-4);
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.schedule-table td:first-child {
    text-align: center;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.schedule-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table .td-principal {
    color: var(--color-accent-green);
}

.schedule-table .td-interest {
    color: var(--color-accent-amber);
}

.schedule-table .td-balance {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Equal principal note */
.equal-principal-note {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    text-align: center;
}

@media (max-width: 768px) {
    .schedule-table th,
    .schedule-table td {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
}
