.bond-details-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}


/* =========================
   ОБЩИЙ БЛОК
========================= */

.bond-details-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.bond-details-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}


/* =========================
   ОСНОВНЫЕ ПАРАМЕТРЫ
========================= */

.bond-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.bond-details-item {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 12px 18px;

    border-right: 1px solid var(--card-border);
}

.bond-details-item:first-child {
    padding-left: 0;
}

.bond-details-item:last-child {
    border-right: none;
}

.bond-details-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.bond-details-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}


/* =========================
   БЛОК ЦЕНЫ
========================= */

.bond-price-section {
    background: var(--bg-tertiary);
}

.bond-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bond-price-item {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 16px;

    background: var(--bg-secondary);

    border: 1px solid var(--card-border);
    border-radius: 12px;

    transition:
            border-color 0.18s ease,
            background-color 0.18s ease;
}

.bond-price-item:hover {
    border-color: var(--accent-border);
}

.bond-price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}


/* =========================
   ПОЛНАЯ ЦЕНА
========================= */

.bond-price-total {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
}

.bond-price-total .bond-details-label {
    color: var(--text-secondary);
}

.bond-price-total .bond-price-value {
    color: var(--accent);
}


/* =========================
   НКД
========================= */

.bond-nkd-input {
    width: 100%;
    box-sizing: border-box;

    padding: 9px 11px;

    font-size: 16px;
    font-weight: 600;

    background: var(--bg-secondary);
    color: var(--text-primary);

    border: 1px solid var(--card-border);
    border-radius: 8px;

    outline: none;

    transition:
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            background-color 0.18s ease;
}

.bond-nkd-input:hover {
    border-color: var(--accent-border);
}

.bond-nkd-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.bond-nkd-input::placeholder {
    color: var(--text-muted);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .bond-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bond-price-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {

    .bond-details-grid {
        grid-template-columns: 1fr;
    }

    .bond-details-item {
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }

    .bond-details-item:last-child {
        border-bottom: none;
    }

}

/* Затемнение фона */
.bond-cashflow-add {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

/* Обязательно скрываем окно */
.bond-cashflow-add.hidden {
    display: none;
}

/* Само модальное окно */
.bond-cashflow-modal {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    padding: 28px;
    box-sizing: border-box;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

    color: var(--text-primary);
}

/* Заголовок */
.bond-cashflow-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.bond-cashflow-modal-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 650;
}

.bond-cashflow-modal-header p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Крестик */
.bond-cashflow-modal-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

/* Поля формы */
.bond-cashflow-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bond-cashflow-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Первые два поля на всю ширину */
.bond-cashflow-form label:nth-child(-n+2) {
    grid-column: 1 / -1;
}

.bond-cashflow-form input,
.bond-cashflow-form select {
    width: 100%;
    min-width: 0;
    height: 42px;

    padding: 0 12px;
    box-sizing: border-box;

    border: 1px solid var(--card-border);
    border-radius: 8px;

    background: var(--bg-secondary);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;

    outline: none;
}

.bond-cashflow-form input:focus,
.bond-cashflow-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Кнопки */
.bond-cashflow-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid var(--card-border);
}

/* Мобильные экраны */
@media (max-width: 600px) {
    .bond-cashflow-add {
        padding: 12px;
    }

    .bond-cashflow-modal {
        padding: 20px;
    }

    .bond-cashflow-form {
        grid-template-columns: 1fr;
    }

    .bond-cashflow-form label {
        grid-column: 1 / -1;
    }
}