/* Общие стили */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 1.25rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Менеджер */
.manager-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.manager-item .remove-manager {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
}

.manager-item .results {
    font-size: 0.85rem;
    color: #555;
}

.manager-item .results li {
    margin-bottom: 0.2rem;
}

.manager-item .results strong {
    color: #333;
}

/* Блок контрактов */
.contract-fields {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f1f3f5;
    border-radius: 6px;
    font-size: 0.85rem;
}

.contract-fields .row {
    margin-bottom: 0.5rem;
}

.contract-fields .form-control {
    padding: 0.375rem;
    height: calc(1.5em + 0.5rem + 2px);
}

/* Уведомление о макс. проценте */
.max-rate-alert {
    padding: 0.5rem;
    border-radius: 6px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.max-rate-alert small {
    display: block;
    color: #155724;
}

.max-rate-alert strong {
    font-weight: 600;
}

/* Таблица мотивации */
#commission-table tr td, #commission-table tr th {
    text-align: center;
    vertical-align: middle;
    padding: 0.5rem;
}

/* Итог */
.list-group-item {
    padding: 0.6rem 0;
    border: none;
    font-size: 0.95rem;
}

#gross-salary, #total-salary, #total-revenue, #salary-ratio {
    font-weight: 600;
    color: #1a1a1a;
}

/* Адаптив */
@media (max-width: 768px) {
    .row.g-3 > div {
        margin-bottom: 0.75rem;
    }
}
