.deposit-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.calculator-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.calculator-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.calculator-header p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.calculator-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.calculator-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.term-container {
    display: flex;
    gap: 10px;
}

.term-container input {
    flex: 2;
}

.term-type {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #1e43cb;
    outline: none;
    box-shadow: 0 0 5px rgba(30, 67, 203, 0.3);
}

.calculate-button {
    width: 100%;
    padding: 15px;
    background-color: #1e43cb;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.calculate-button:hover {
    background-color: #1835a3;
}

.calculate-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.results-container {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: none;
}

.results-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    text-align: center;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    flex-wrap: wrap;
    align-items: center;
}

.result-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-label {
    font-weight: bold;
    color: #333;
    width: 40%;
    font-size: 14px;
}

.result-value {
    color: #2c3e50;
    font-weight: bold;
    text-align: right;
    width: 30%;
    font-size: 16px;
}

.result-words {
    width: 100%;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.calculator-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.action-button {
    flex: 1;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
}

.action-button:hover {
    background-color: #e0e0e0;
    color: #000;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.replenishment-item,
.withdrawal-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #1e43cb;
}

.replenishment-item h4,
.withdrawal-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.remove-item:hover {
    background: #c0392b;
}

/* Стили для таблиц результатов */
.schedule-table,
.tax-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
    background: white;
}

.schedule-table th,
.tax-table th {
    background-color: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #1e43cb;
    white-space: nowrap;
}

.schedule-table td,
.tax-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.schedule-table tr:hover,
.tax-table tr:hover {
    background-color: #f5f5f5;
}

.schedule-table .text-right,
.tax-table .text-right {
    text-align: right;
}

.schedule-table .total-row {
    background-color: #e8eef8;
    font-weight: bold;
    border-bottom:1px solid hsla(0, 0%, 50%, .502);
}

.schedule-table .total-row td {
    border-top: 2px solid #1e43cb;
    border-bottom: none;
}

.schedule-table .capitalization {
    background-color: #f0f3fa;
}

.schedule-table .interest_payment {
    background-color: #f5f3fa;
}

.schedule-table .replenishment {
    background-color: #e6eeff;
}

.schedule-table .withdrawal {
    background-color: #ffe6e6;
}

/* Контейнеры для таблиц - убраны ограничения по высоте и скролл */
#schedule-table-container,
#tax-breakdown {
    width: 100%;
    overflow: visible;
    max-height: none;
}

#detailed-schedule {
    margin-top: 25px;
    padding-top: 20px;
    
}

#detailed-schedule h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

@media (max-width: 768px) {
    .deposit-calculator-container {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-label {
        width: 50%;
    }
    
    .result-value {
        width: 50%;
        text-align: left;
    }
    
    .calculator-actions {
        flex-direction: column;
    }
    
    .term-container {
        flex-direction: column;
    }
    
    /* Адаптация таблиц для мобильных устройств */
    .schedule-table,
    .tax-table {
        font-size: 12px;
    }
    
    .schedule-table th,
    .schedule-table td,
    .tax-table th,
    .tax-table td {
        padding: 8px 4px;
    }
    
    /* Для очень маленьких экранов можно добавить горизонтальный скролл только если действительно нужно */
    #schedule-table-container,
    #tax-breakdown {
        overflow-x: auto;
        overflow-y: visible;
    }
}