.prospection-card,
.proposal-summary-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);
}

.proposal-wizard {
    background: #fff;
    border-radius: 18px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    min-height: 0;
    overflow: hidden;
}

.proposal-wizard-header {
    align-items: center;
    border-bottom: 1px solid #dfe5ec;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.proposal-wizard-shell {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 290px 1fr;
    min-height: 0;
    overflow: hidden;
}

.proposal-wizard-sidebar {
    background: #f5f7fb;
    border-right: 1px solid #dfe5ec;
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem;
}

.proposal-side-card {
    background: #fff;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.proposal-advice-card {
    background: #eef5ff;
}

.proposal-progress-item {
    align-items: center;
    display: flex;
    gap: .8rem;
    margin-bottom: 1rem;
}

.proposal-progress-dot {
    align-items: center;
    border: 2px solid #d3dce7;
    border-radius: 50%;
    color: #789;
    display: inline-flex;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.proposal-progress-item small {
    color: #6f8090;
    display: block;
}

.proposal-progress-item.is-active .proposal-progress-dot {
    background: #0b4a73;
    border-color: #0b4a73;
    color: #fff;
}

.proposal-progress-item.is-done .proposal-progress-dot {
    background: #54c083;
    border-color: #54c083;
    color: #fff;
}

.proposal-wizard-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.proposal-wizard-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 2rem;
}

.proposal-wizard-footer {
    align-items: center;
    border-top: 1px solid #dfe5ec;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.proposal-results {
    display: grid;
    gap: .75rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: .35rem;
}

.proposal-result-card,
.proposal-formula-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    color: inherit;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    text-align: left;
    width: 100%;
}

.proposal-result-card.is-selected,
.proposal-formula-card.is-selected {
    border-color: #0b5ed7;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .1);
}

.proposal-offer-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.proposal-formula-card {
    align-items: flex-start;
    flex-direction: column;
    min-height: 170px;
}

.proposal-preview,
.proposal-customization,
.proposal-summary-card {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    padding: 1rem;
}

.proposal-preview-total {
    background: #e8f8ef;
    border-radius: 12px;
    color: #146c43;
    padding: 1rem;
}

.proposal-preview-total strong {
    display: block;
    font-size: 1.6rem;
}

.proposal-customization-row {
    align-items: center;
    border-top: 1px solid #e4ebf2;
    display: flex;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.proposal-detail-page {
    color: #27313b;
}

.proposal-detail-header {
    align-items: flex-start;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.proposal-detail-header h1 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 .5rem;
}

.proposal-detail-header p {
    color: #617586;
    font-size: 1.15rem;
    margin: 0;
}

.proposal-detail-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 390px;
    margin-bottom: 5rem;
}

.proposal-detail-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(42, 53, 71, .04);
    padding: 2.75rem;
}

.proposal-detail-card h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.proposal-partner-alert {
    background: #eefaf0;
    border: 1px solid #a9e9bb;
    border-radius: 14px;
    color: #54c96f;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.proposal-detail-table th,
.proposal-detail-table td {
    border-color: #e2e8ef;
    font-size: 1rem;
    padding: 1.5rem 1.25rem;
}

.proposal-detail-table thead th {
    color: #111;
    font-weight: 700;
}

.proposal-status-badge {
    background: #eef3f7;
    border-radius: 8px;
    color: #33475b;
    display: inline-flex;
    font-weight: 700;
    padding: .45rem .85rem;
}

.proposal-status-badge.is-accepted {
    background: #eaf8ee;
    color: #58c973;
}

.proposal-partner-card {
    min-height: 340px;
}

.proposal-partner-identity {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.proposal-partner-logo {
    height: 58px;
    object-fit: contain;
    width: 58px;
}

.proposal-partner-logo-empty {
    align-items: center;
    background: #eef4f8;
    border-radius: 12px;
    color: #0b4a73;
    display: inline-flex;
    justify-content: center;
}

.proposal-partner-name {
    font-size: 1.35rem;
    font-weight: 700;
}

.proposal-partner-sector,
.proposal-partner-meta {
    color: #6a7f91;
}

.proposal-partner-meta {
    display: grid;
    gap: 1.75rem;
    font-size: 1.05rem;
}

.proposal-partner-meta strong {
    color: #111;
}

.proposal-activities-card {
    min-height: 280px;
}

.proposal-detail-empty {
    align-items: center;
    color: #617586;
    display: flex;
    justify-content: center;
    min-height: 140px;
    text-align: center;
}

.proposal-activity-empty {
    min-height: 120px;
}

.proposal-activity-list {
    display: grid;
    gap: 1rem;
}

.proposal-activity-item {
    align-items: flex-start;
    border: 1px solid #e2e8ef;
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.proposal-activity-icon {
    align-items: center;
    background: #eef4f8;
    border-radius: 12px;
    color: #0b4a73;
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.proposal-activity-modal .modal-body,
.proposal-activity-modal .modal-header,
.proposal-activity-modal .modal-footer {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.proposal-activity-type-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.proposal-activity-type-group .btn {
    border-radius: 0;
    font-weight: 700;
    padding: 1rem;
}

.proposal-activity-type-group .btn:first-of-type {
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.proposal-activity-type-group .btn:last-of-type {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

@media (max-width: 991.98px) {
    .proposal-results {
        max-height: 50vh;
    }

    .proposal-wizard-shell,
    .proposal-offer-grid,
    .proposal-detail-grid {
        grid-template-columns: 1fr;
    }

    .proposal-wizard-shell {
        overflow-y: auto;
    }

    .proposal-wizard-sidebar {
        overflow: visible;
    }

    .proposal-detail-header {
        display: block;
    }

    .proposal-detail-header .btn {
        margin-top: 1rem;
        width: 100%;
    }

    .proposal-detail-card {
        padding: 1.5rem;
    }

    .proposal-activity-type-group {
        grid-template-columns: 1fr;
    }

    .proposal-activity-type-group .btn,
    .proposal-activity-type-group .btn:first-of-type,
    .proposal-activity-type-group .btn:last-of-type {
        border-radius: 10px;
        margin-bottom: .5rem;
    }
}
