/*
 * tables.css - Table Styling
 *
 * Purpose: All table-related styles including:
 *   - Table cell alignment (centered, left, right, top)
 *   - Table header styling
 *   - Table borders
 *   - Table row backgrounds
 *   - CDP score color coding (A through F grades)
 *   - Score comparison tables
 *   - Table footer totals
 *
 * Used across: Corporate pages, analytics, CDP scores, data tables
 */

/* ==========================================================================
   Table Cell Alignment
   ========================================================================== */
.table-cell-centered {
    text-align: center;
    vertical-align: middle;
}

.table-cell-left {
    text-align: left;
    vertical-align: middle;
}

.table-cell-right {
    text-align: right;
    vertical-align: middle;
}

.table-cell-top {
    vertical-align: top;
}

/* Table header styles */
.table-header-row {
    background-color: lightgrey;
    color: black;
    font-weight: bold;
}

.table-header-cell {
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
}

/* Table borders */
.table-bordered {
    border: 1px solid grey;
}

.table-cell-bordered {
    border: 1px solid grey;
}

/* Table row styles */
.table-row-grey {
    background-color: lightgrey;
}

.table-row-light {
    background-color: #f8f9fa;
}

/* CDP score colors */
.cdp-score-a {
    background-color: #00D000;
    color: white;
    font-weight: bold;
    text-align: center;
}

.cdp-score-a-minus {
    background-color: #7FD07F;
    color: white;
    font-weight: bold;
    text-align: center;
}

.cdp-score-b {
    background-color: #F0C419;
    color: white;
    font-weight: bold;
    text-align: center;
}

.cdp-score-b-minus {
    background-color: #F5D858;
    color: white;
    font-weight: bold;
    text-align: center;
}

.cdp-score-c {
    background-color: #FFA500;
    color: white;
    font-weight: bold;
    text-align: center;
}

.cdp-score-c-minus {
    background-color: #FFB732;
    color: white;
    font-weight: bold;
    text-align: center;
}

.cdp-score-d {
    background-color: #FF0000;
    color: white;
    font-weight: bold;
    text-align: center;
}

.cdp-score-f {
    background-color: #8B0000;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Table utilities */
.table-text-bold {
    font-weight: bold;
}

.table-bg-white {
    background-color: white;
}

.table-full-width {
    width: 100%;
}

/* Score comparison table styles */
.score-comparison-table td {
    text-align: center;
    vertical-align: middle;
}

.score-comparison-table th {
    text-align: center;
    vertical-align: middle;
    background-color: lightgrey;
    font-weight: bold;
}

/* Score summary specific */
.table-footer-total {
    background-color: #2ebaae;
    color: white;
    font-weight: bold;
}
