/* Amortization Details Style System */

.amortization-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 30px;
    position: relative;
    border: 1px solid #e1ebec;
    font-family: 'Raleway', 'Figtree', sans-serif;
    transition: all 0.3s ease;
}

.amortization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f5f3;
}

.amortization-header h3 {
    font-size: 16px;
    color: #108A43;
    font-weight: 700;
    margin: 0;
}

/* Close Button (X in circle) */
.amortization-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.amortization-close-btn:hover {
    transform: scale(1.1);
}

.amortization-close-btn svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #8da2b5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.amortization-close-btn:hover svg {
    stroke: #e74c3c;
}

/* Accordion Styling */
.amortization-accordion-item {
    border-bottom: 1px solid #eef2f5;
    margin-bottom: 10px;
}

.amortization-accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.amortization-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.amortization-accordion-header:hover {
    background-color: #fafdfc;
}

.amortization-accordion-title {
    font-size: 14px;
    color: #4a5c6d;
    font-weight: 600;
    margin: 0;
}

.amortization-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.amortization-accordion-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #8da2b5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.amortization-accordion-item.active .amortization-accordion-icon {
    transform: rotate(180deg);
}

.amortization-accordion-item.active .amortization-accordion-icon svg {
    stroke: #108A43;
}

/* Accordion Content & Table */
.amortization-accordion-content {
    display: none;
    padding: 10px 0 20px 0;
    overflow-x: auto;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
    color: #5a6d7f;
    min-width: 600px;
}

.amortization-table th {
    background-color: #e2f6ed;
    color: #495b6c;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid #dbece5;
}

.amortization-table td {
    padding: 12px 16px;
    border: 1px solid #eef6f3;
    text-align: left;
}

.amortization-table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.amortization-table tbody tr:nth-child(even) {
    background-color: #f7fbf9;
}

.amortization-table tbody tr:hover {
    background-color: #edf7f3;
}

/* Center Toggle Container (Collapsed State) */
.amortization-toggle-container {
    text-align: center;
    margin: 45px 0 20px 0;
    font-family: 'Raleway', 'Figtree', sans-serif;
}

.amortization-toggle-container h4 {
    font-size: 14px;
    color: #4a5c6d;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-amortization-expand {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-amortization-expand:hover {
    transform: scale(1.08);
}

.btn-amortization-expand svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #8da2b5;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

.btn-amortization-expand:hover svg {
    stroke: #108A43;
}

/* Responsive */
@media (max-width: 768px) {
    .amortization-container {
        padding: 15px;
    }
    
    .amortization-header h3 {
        font-size: 14px;
    }
    
    .amortization-table th, .amortization-table td {
        padding: 10px;
        font-size: 11px;
    }
}