/********************************************************************************************************/
/* GAME CHANGE HISTORY                                                                                  */
/*                                                                                                      */
/* The markup these style is produced by Utilities\GameHistoryView.cs and appears in two places: the     */
/* GameDiagnostic report and the History tab of the Game popup. It lives in its own file so those two    */
/* cannot drift apart - the rules used to sit inline in GameDiagnostic.aspx, which is fine for one page  */
/* and turns into two diverging copies the moment there are two.                                        */
/*                                                                                                      */
/* Palette is the admin one: #f4f8ff fill, #bcd0ee border, #2c4a6e text.                                 */
/*                                                                                                      */
/* Load this AFTER Site.css. The header rules below deliberately undo Site.css's .dsTable treatment and  */
/* need to win on source order as well as specificity.                                                   */
/********************************************************************************************************/

/* Quiet label above each history table. On the diagnostic page the section rule is what divides the
   page; here it just names which of the three tables you are looking at. */
.diagSub {
    font-size: 13px;
    font-weight: bold;
    color: #2c4a6e;
    margin: 16px 0 4px 2px;
}

.diagNone {
    color: #888;
    font-style: italic;
    font-size: 13px;
}

.diagWarn {
    background: #fff6e5;
    border-left: 4px solid #e0a800;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
    max-width: 900px;
}

/* The history table is the reason to open either screen, so it gets room to breathe. Width is 100%
   rather than max-content so the Change column wraps instead of pushing the table sideways - the
   popup tab panel is overflow:hidden and would clip it rather than scroll. */
.diagHistory {
    width: 100%;
    max-width: 1400px;
    margin-bottom: 20px;
}

    /* Written as "table.diagHistory th" to outrank Site.css's ".dsTable th" (0-1-1), which sets
       "position: sticky; top: 0" plus 10px white on #AAAAAA. Sticky is wrong here because several
       of these tables stack inside one scrolling container and every header would pile up on the
       same top edge; the colour is unreadable at these column counts. */
    table.diagHistory th {
        position: static;
        font-size: 11px;
        font-weight: bold;
        color: #2c4a6e;
        background-color: #bcd0ee;
        border-color: #a9c2e5;
        padding: 5px 8px;
        text-align: left;
        white-space: nowrap;
    }

    /* Horizontal rules only. Site.css gives .dsTable td a full 1px #CCCCCC grid on all four sides,
       which boxes every cell and fights the change list inside it. */
    table.diagHistory td {
        vertical-align: top;
        font-size: 12px;
        padding: 6px 8px;
        border-width: 0 0 1px 0;
        border-style: solid;
        border-color: #dde6f2;
    }

    table.diagHistory {
        border-width: 0;
    }

        table.diagHistory .diagWhen {
            white-space: nowrap;
            font-family: Consolas, monospace;
            font-size: 12px;
        }

.diagChange {
    font-size: 13px;
    line-height: 1.6;
}

.diagOld {
    color: #a33;
    text-decoration: line-through;
}

.diagNew {
    color: #185;
    font-weight: bold;
}

.diagCreated {
    color: #185;
    font-weight: bold;
}

.diagCurrent {
    color: #5b83b8;
    font-size: 12px;
}

/* A version that ended in a DELETE. Kept in the same size as .diagCurrent - they occupy the same
   spot at the end of a change cell and one should not shout over the other. */
.diagDeleted {
    color: #a32020;
    font-size: 12px;
}

/* Wrapper emitted by GameHistoryView.All() - the popup's History tab. Not used by the diagnostic
   page, which places the three tables under its own section headings instead. */
.ghBlock {
    font-family: Avalon;
    font-size: 12px;
    line-height: 1.5;
    color: black;
    padding-bottom: 10px;
}

    /* First label should not push the tab content away from the tab strip. */
    .ghBlock .diagSub:first-child {
        margin-top: 4px;
    }
