﻿/* ======================================================
   DASHBOARD – BASE PAGE STYLING
====================================================== */

.dashboard-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: visible;
    background: #FFFFFF;
    color: #1F1F1F;
    font-family: var(--font-sans);
}


/* ======================================================
   DASHBOARD BANNER
====================================================== */

/* Reuse the Summary Evaluate button's .btn.acordia-btn-primary styling.
   Inactive tabs mirror its :disabled palette, but remain interactive. */
.dashboard-container .dashboard-evaluation-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-bottom: 0;
    padding: 4px;
}

.dashboard-container .dashboard-evaluation-tab {
    /* default.css gives every .btn width:100%; tabs need compact sizing. */
    width: auto;
    min-width: 112px;
    flex: 0 0 auto;
    font-weight: 600;
}

.dashboard-container .dashboard-evaluation-tab:not(.active) {
    background: #E0E0E0;
    color: #474747;
    border: 1px solid #A0A0A0;
}

.dashboard-container .dashboard-evaluation-tab:focus-visible {
    outline: 2px solid #0057AC;
    outline-offset: 2px;
}

.dashboard-banner {
    background: #DAEDFF;
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 12px;
    width: 100%;
    text-align: center;
    font-size: 16px;
}

    .dashboard-banner strong {
        font-weight: 700;
    }


/* ======================================================
   SCROLL WRAPPER
====================================================== */

.dashboard-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.dashboard-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* ======================================================
   TABLE BASE
====================================================== */

.dashboard-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    border-radius: 0;
}

    .dashboard-table th,
    .dashboard-table td {
        padding: 6px 8px;
        line-height: 1.35;
        border: 1px solid #CECECE;
        text-align: center;
        vertical-align: middle;
        color: #1F1F1F;
    }

    /* Remove rounded header edges */

    .dashboard-table thead th {
        border-radius: 0 !important;
    }


    /* ======================================================
   TABLE BODY BACKGROUND
====================================================== */

    .dashboard-table tbody {
        background: #DAEDFF;
    }


/* ======================================================
   LEFT STICKY COLUMN (TEAM MEMBER)
====================================================== */

.row-header {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    text-align: left;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #DAEDFF;
    color: #1F1F1F;
    font-weight: 700;
    font-size: 18px;
}

/* Team member names */
.dashboard-table tbody th.row-header {
    font-size: 14px;
}

/* Team member header */
.dashboard-table thead th.row-header {
    font-size: 18px;
}

/* evaluator names */

tbody > tr > th.row-header {
    font-weight: 400;
}


/* ======================================================
   HEADER ROWS
====================================================== */

.offeror-row th {
    background: #384959;
    color: #F1F1F1;
    font-weight: 700;
    font-size: 16px;
}

.system-row th {
    background: #384959;
    color: #F1F1F1;
    font-weight: 700;
    font-size: 14px;
}


/* ======================================================
   FIXED DATA COLUMN WIDTH
====================================================== */

.dashboard-table th:not(.row-header),
.dashboard-table td:not(.row-header) {
    width: 85px;
    min-width: 85px;
    max-width: 85px;
}


/* ======================================================
   ROW HOVER
====================================================== */

.dashboard-table tbody tr:hover td,
.dashboard-table tbody tr:hover th {
    background: #CFE2F3 !important;
}


/* ======================================================
   OFFEROR GROUP SEPARATOR
====================================================== */

.offeror-boundary {
    border-right: 1.5px solid #CECECE;
}


/* ======================================================
   FOOTER (TECHNICAL COMMENT REPORT)
====================================================== */

.footer-row th,
.footer-row td {
    background: #E8ECEF;
    color: #1F1F1F;
    font-weight: 700;
    font-size: 16px;
    padding: 8px 12px;
    border-top: 2px solid #CECECE;
}

/* ======================================================
   PROGRESS CELLS
====================================================== */

.dashboard-table td[class^="progress-"] {
    color: #1F1F1F !important;
    font-weight: 700 !important;
    border-radius: 4px;
    font-size: 16px !important;
}


/* ======================================================
   DROPDOWN STYLE
====================================================== */

select.form-select {
    background: #FFFFFF;
    border: 1px solid #CECECE;
    border-radius: 8px;
    font-size: 16px !important;
    color: #1F1F1F;
    height: 40px;
    padding: 6px 12px;
}

select.form-select:hover {
    border-color: #A0A0A0;
}

select.form-select:focus {
    outline: none;
    border-color: #1F1F1F;
}

/* ======================================================
   GLOBAL FONT WEIGHTS
====================================================== */

.dashboard-container * {
    font-weight: 400;
}

.offeror-row th,
.system-row th,
.footer-row th,
.footer-row td,
.dashboard-table td[class^="progress-"] {
    font-weight: 700;
}

/* Team member column cells */
.dashboard-table tbody th.row-header {
    background: #DAEDFF !important;
    color: #1F1F1F;
    font-size: 16px;
    font-weight: 400;
}

/* Team member header cell */
.dashboard-table thead th.row-header {
    background: #384959 !important;
    color: #F1F1F1 !important;
    font-size: 18px;
    font-weight: 700;
}

/* ======================================================
   DASHBOARD BUTTON SIZE OVERRIDE (COMPACT)
====================================================== */

.footer-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-actions .btn {
    width: auto;
    min-width: 90px;
    height: 32px;
    font-size: 13px;
    padding: 0 12px;
}
