.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.partner-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    padding: 24px 20px;
    background: #FFFFFF;
    border: 2px solid #EDE7F6;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.partner-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-card ul {
    flex: 1;
    margin-bottom: 16px;
}

.partner-card .select-btn {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.15);
}

.partner-card.selected {
    border: 2px solid #4A3A6B;
    background: #F5F2FA;
    box-shadow: 0 4px 16px rgba(74, 58, 107, 0.2);
}

.partner-card.selected::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #4A3A6B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    z-index: 10;
}

.selection-bar {
    background: #fff;
    border: 1px solid #E0D9EB;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(74, 58, 107, 0.06);
}

.selection-bar .left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.selection-bar .label {
    font-size: 14px;
    font-weight: 600;
    color: #4A3A6B;
    white-space: nowrap;
}

.selection-bar #selectedList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selection-bar #selectedList .empty {
    color: #9A8FA8;
    font-size: 14px;
}

.selection-bar #selectedList .tag {
    padding: 6px 14px;
    background: #F5F2FA;
    color: #4A3A6B;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #E0D9EB;
}

.selection-bar .actions {
    display: flex;
    gap: 12px;
}

.selection-bar .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.selection-bar .btn-primary {
    background: #4A3A6B;
    color: #fff;
}

.selection-bar .btn-primary:hover:not(:disabled) {
    background: #6B5A8B;
    transform: translateY(-2px);
}

.selection-bar .btn-primary:disabled {
    background: #E0D9EB;
    cursor: not-allowed;
}

.selection-bar .btn-outline {
    background: transparent;
    color: #4A3A6B;
    border: 2px solid #4A3A6B;
}

.selection-bar .btn-outline:hover {
    background: #4A3A6B;
    color: #fff;
}

/* Retrieval Table Styles */
.retrieval-table-wrapper {
    border: 2px solid #EDE7F6;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
}

.retrieval-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.retrieval-table thead {
    background: #F5F2FA;
}

.retrieval-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #4A3A6B;
    border-bottom: 2px solid #EDE7F6;
}

.retrieval-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F5F2FA;
    vertical-align: middle;
}

.retrieval-table tbody tr:last-child td {
    border-bottom: none;
}

.retrieval-table tbody tr:hover {
    background: #FAF8FC;
}

.retrieval-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4A3A6B;
    cursor: pointer;
}

.retrieval-table .service-icon {
    margin-right: 8px;
}

.retrieval-table .service-desc {
    color: #6B6B80;
    font-size: 13px;
    line-height: 1.5;
}

.selected-summary {
    margin-top: 12px;
    padding: 12px 16px;
    background: #F8F6FC;
    border-radius: 8px;
    font-size: 14px;
    color: #4A3A6B;
}

.selected-summary #retrievalSelectedLabels {
    font-weight: 600;
    color: #D4AF37;
}

.retrieval-table tbody tr.checked {
    background: #FDF8E6;
}

.retrieval-table tbody tr.checked td:first-child {
    border-left: 3px solid #D4AF37;
}

@media (max-width: 768px) {
    .selection-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .selection-bar .actions {
        width: 100%;
    }
    
    .selection-bar .btn {
        flex: 1;
        text-align: center;
    }
    
    .retrieval-table th,
    .retrieval-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .retrieval-table .service-desc {
        font-size: 12px;
    }
}