﻿/* Partner Management */

.cr-section {
    margin-top: 32px;
    padding: 18px 20px;
    background: rgba(29, 29, 29, 0.75);
    border: 1px solid rgba(113, 124, 126, 0.45);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cr-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.cr-section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(241, 196, 15, 0.2);
}

.cr-section-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--color-solar-yellow);
    font-weight: 600;
}

.cr-section-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Table wrapper for partner management */
.partner-management-page .table-wrapper {
    width: 100%;
    overflow: auto;
    border-radius: 8px;
    max-height: 56vh;
    background: transparent;
}

.cr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.cr-table thead {
    background: linear-gradient(180deg, rgba(42, 52, 57, 0.95), rgba(35, 45, 50, 0.9));
}

.cr-table th {
    padding: 12px 14px;
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
    color: var(--color-solar-yellow);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    vertical-align: top;
}

.cr-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(113, 124, 126, 0.15);
    color: var(--color-platinum-grey);
    white-space: normal;
    vertical-align: top;
}

.cr-table tbody tr {
    transition: all 0.2s ease;
}

.cr-table tbody tr:hover {
    background: rgba(241, 196, 15, 0.06);
    transform: scale(1.001);
}

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

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 1024px) {
    .cr-section {
        padding: 16px;
        margin-top: 24px;
    }

    .cr-section-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .cr-section {
        padding: 14px;
        border-radius: 12px;
    }

    .cr-table th,
    .cr-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .partner-management-page .table-wrapper {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .cr-section {
        padding: 12px;
        margin-top: 16px;
    }

    .cr-section-header {
        margin-bottom: 14px;
    }

    .cr-section-header h2 {
        font-size: 16px;
    }

    .cr-table {
        font-size: 12px;
    }

    .cr-table th,
    .cr-table td {
        padding: 8px 10px;
    }
}