﻿/* The Classic look: Classic's gl.css (the first block) and master.html shell, scoped under body.classic so the
   MudBlazor components of the shared pages take the old flat appearance. The new look never matches these rules. */

/* ---- gl.css, ported ------------------------------------------------------------------------------------------ */

body.classic {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #4d5454;
    background-color: #FFFFFF;
    margin: 0;
}

body.classic p.pagetitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    color: #3D7B8E;
}

body.classic .text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #4d5454;
}

body.classic .errorMsg {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #FF0000;
}

body.classic td.login {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    font-style: italic;
    color: #3D7B8E;
    text-align: right;
}

body.classic td.loginErr {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    font-style: italic;
    color: #FF0000;
    text-align: right;
}

body.classic td.faq {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #4d5454;
}

body.classic td.faqquestion {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #3D7B8E;
}

body.classic td.faqreturntop {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #4d5454;
}

/* ---- master.html shell (ClassicLayout) ----------------------------------------------------------------------- */

body.classic a {
    color: #477C8E;
}

.classic-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* The gl_logo strip (139px) over the 2px black rule. */
.classic-header {
    height: 139px;
    background: linear-gradient(to bottom, #305e80, #3e7490);
    border-bottom: 2px solid #000000;
    overflow: hidden;
}

    .classic-header img {
        display: block;
        height: 139px;
    }

.classic-frame {
    display: flex;
    flex: 1 0 auto;
    align-items: stretch;
    background: url('images/classic/background3.gif') no-repeat;
}

/* 4px #D1DBE4 edge, 2px #3D7B8E line, the 178px menu column, 5px #D1DBE4 gutter. The 4px band under the black rule
   is menu-coloured over the menu and clear over the content; the teal line starts below it, so it is a border, not
   padding, and the menu header gif sits directly on it. */
.classic-menu-column {
    flex: 0 0 189px;
    display: flex;
    flex-direction: column;
    background-color: #D1DBE4;
    border-top: 4px solid #D1DBE4;
    border-left: 4px solid #D1DBE4;
    box-shadow: inset 2px 0 0 #3D7B8E;
    padding: 0 5px 4px 2px;
}

.classic-copyright {
    margin: auto 0 0 0;
    padding-top: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    color: #1F3765;
    text-align: center;
}

.classic-content-column {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 4px;
}

.classic-content {
    flex: 1 0 auto;
    position: relative;
    padding: 2px 12px 12px 12px;
}

.classic-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 4px 0 12px;
}

.classic-bottom-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

    body.classic .classic-bottom-menu a {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
        color: #1F3765;
        text-decoration: none;
        padding: 0;
    }

        body.classic .classic-bottom-menu a + a::before {
            content: "|";
            color: #1F3765;
            padding: 0 8px;
        }

/* ---- left menu (ClassicSearchMenu, ClassicVisitorMenu) ------------------------------------------------------- */

.classic-menu {
    width: 178px;
    border-collapse: collapse;
    border-spacing: 0;
}

    .classic-menu td {
        padding: 0;
        vertical-align: top;
    }

    .classic-menu img {
        display: block;
    }

.classic-menu-gutter {
    width: 3px;
}

.classic-menu-row td.classic-menu-cell {
    background-color: #D1DBE4;
    height: 30px;
}

.classic-menu-rule td.classic-menu-line {
    background-color: #4F949B;
    height: 2px;
}

.classic-menu-link {
    display: block;
    position: relative;
    height: 30px;
    text-decoration: none;
}

    .classic-menu-link .classic-menu-over {
        display: none;
    }

    .classic-menu-link:hover .classic-menu-off {
        display: none;
    }

    .classic-menu-link:hover .classic-menu-over {
        display: block;
    }

/* Rows with no gif (a class with several searches, or a static page's expanded list): the gif's own typography. */
body.classic .classic-menu-text,
body.classic a.classic-menu-text {
    display: block;
    height: 30px;
    line-height: 30px;
    padding-left: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
}

    body.classic a.classic-menu-text:hover {
        color: #FFFFFF;
        background-color: #4F949B;
    }

.classic-menu-select {
    width: 176px;
    margin: 4px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    background-color: #FFFFFF;
    border: 1px solid #808080;
    border-radius: 0;
}

    .classic-menu-select option {
        background-color: #D1DBE4;
        color: #000000;
    }

/* ---- the toggle link and the image buttons (LookToggle, GlButton) -------------------------------------------- */

.look-toggle {
    white-space: nowrap;
}

.classic-button {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
    vertical-align: middle;
}

    .classic-button img {
        display: block;
    }

    .classic-button:disabled,
    .classic-button[aria-disabled="true"] {
        opacity: 0.5;
        cursor: default;
        pointer-events: none;
    }

/* An action without a gif: the gif's own colours as a flat text button. */
.classic-button-text {
    display: inline-block;
    padding: 6px 14px;
    margin: 0;
    border: 1px solid #1F3765;
    background-color: #3D7B8E;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}

    /* Rendered as a link (Href), it would otherwise take body.classic a's teal and vanish on its own background. */
    body.classic a.classic-button-text,
    body.classic a.classic-button-text:visited,
    body.classic a.classic-button-text:hover {
        color: #FFFFFF;
    }

    .classic-button-text:disabled,
    .classic-button-text[aria-disabled="true"] {
        opacity: 0.5;
        cursor: default;
        pointer-events: none;
    }

/* ---- MudBlazor components inside the Classic look ------------------------------------------------------------ */

body.classic .mud-typography-h1 {
    font-style: italic;
    color: #3D7B8E;
}

body.classic .mud-typography-h2 {
    color: #3D7B8E;
}

body.classic .mud-link {
    color: #477C8E;
}

/* The pages pad themselves for the new look's wide content area; Classic's text column sat three spaces in. */
body.classic .pa-8,
body.classic .px-10vw,
body.classic .py-7vw {
    padding: 6px 12px !important;
}

body.classic .py-7 {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Classic's pages were a fixed column (the summary table was 595px, the text pages 610px), not the full width of a
   wide monitor: the signed-in page blocks stop at 800px so tables and cards keep Classic's proportions. */
body.classic .classic-content > .mud-grid > .mud-grid-item {
    max-width: 800px !important;
}

/* No photo backsplash and no white text: Classic's pages were plain text on white. */
body.classic .unauthorized-backsplash {
    background: none;
}

body.classic .color-white {
    color: #4d5454 !important;
}

    body.classic .mud-typography-h1.color-white {
        color: #3D7B8E !important;
    }

body.classic .unauthorized-backsplash-login {
    width: auto;
    max-width: 560px;
    margin-left: 0;
}

/* Cards, papers, alerts, dialogs: square and flat; the card header exists only to hold the new wordmark. */
body.classic .mud-paper,
body.classic .mud-card,
body.classic .mud-alert,
body.classic .mud-dialog,
body.classic .mud-popover,
body.classic .mud-table,
body.classic .mud-input-outlined .mud-input-outlined-border {
    border-radius: 0 !important;
}

body.classic .mud-paper:not(.mud-dialog):not(.mud-popover) {
    box-shadow: none !important;
}

body.classic .mud-paper-outlined,
body.classic .mud-card {
    border: 1px solid #808080;
}

body.classic .mud-card-header:has(.gl-logo) {
    display: none;
}

body.classic .mud-card-header,
body.classic .mud-card-content,
body.classic .mud-card-actions {
    padding: 12px !important;
}

body.classic .mud-card-header {
    border-bottom: 1px solid #808080;
}

body.classic .mud-alert {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
}

body.classic .mud-alert-outlined-error {
    color: #FF0000;
    border-color: #FF0000;
}

body.classic .mud-dialog-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    color: #3D7B8E;
}

/* Tables: Classic's bordered tables with the teal header rows. */
body.classic .mud-table,
body.classic .mud-simple-table {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #4d5454;
}

    body.classic .mud-table .mud-table-head .mud-table-cell,
    body.classic .mud-simple-table thead th {
        background-color: #3D7B8E;
        color: #FFFFFF;
        font-weight: bold;
    }

    body.classic .mud-table .mud-table-cell,
    body.classic .mud-simple-table td,
    body.classic .mud-simple-table th {
        padding: 3px 6px;
        border-bottom: 1px solid #D1DBE4;
    }

/* Text fields and selects: a plain 1px frame, no floating outline or focus glow. */
body.classic .mud-input-outlined .mud-input-outlined-border {
    border-color: #808080 !important;
    border-width: 1px !important;
}

body.classic .mud-input {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    background-color: #FFFFFF;
}

body.classic .mud-input-control-input-container {
    margin-top: 0;
}

body.classic .mud-input-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

/* Mud buttons that have no Classic gif keep the gif's colours. */
body.classic .mud-button-root:not(.mud-icon-button) {
    border-radius: 0;
    box-shadow: none;
    text-transform: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    padding: 5px 14px;
    min-height: 0;
}

body.classic .mud-button-filled-primary {
    background-color: #3D7B8E;
    color: #FFFFFF;
    border: 1px solid #1F3765;
}

body.classic .mud-button-outlined-primary {
    color: #3D7B8E;
    border: 1px solid #3D7B8E;
}

/* Classic's login.txt: the red auto-save note, the centred Login ID / Password table with bold italic labels, the
   forgot links in italics, and the Agree / Disagree gifs centred under the agreement. */
body.classic .classic-login-note {
    color: #FF0000;
    font-weight: bold;
}

body.classic .classic-login-table {
    margin: 0 auto 12px;
    border-collapse: collapse;
}

    body.classic .classic-login-table td {
        padding: 2px 4px;
        vertical-align: middle;
    }

body.classic .classic-login-label {
    text-align: right;
    font-weight: bold;
    font-style: italic;
    color: #1F3765;
}

body.classic .classic-login-input {
    width: 320px;
    height: 24px;
    padding: 2px 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    border: 1px solid #808080;
    border-radius: 0;
}

    body.classic .classic-login-input:focus {
        outline: none;
        border-color: #3D7B8E;
    }

body.classic .classic-login-forgot {
    text-align: center;
    padding-top: 4px;
}

    body.classic .classic-login-forgot a {
        color: #1F3765;
    }

body.classic .classic-login-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

/* menu.txt's Date / Time of Login table on the signed-in home page: teal labels, right-aligned. */
body.classic .classic-session-table {
    margin-top: 12px;
    border-collapse: collapse;
}

    body.classic .classic-session-table td {
        padding: 2px 6px;
    }

body.classic .classic-session-label {
    text-align: right;
    color: #4F949B;
}

/* search_log.txt's range form: the text column width, the centred From / To row and the Retrieve gif under it. */
body.classic .classic-log-form {
    max-width: 610px;
}

body.classic .classic-log-range {
    margin: 12px auto 0;
    border-collapse: collapse;
}

    body.classic .classic-log-range td {
        padding: 2px 4px;
        vertical-align: middle;
        white-space: nowrap;
    }

body.classic .classic-log-note {
    text-align: center;
    padding-bottom: 12px;
}

body.classic .classic-log-actions {
    text-align: center;
    padding-top: 8px;
}

body.classic .classic-date {
    width: 135px;
    height: 24px;
    padding: 1px 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    border: 1px solid #808080;
    border-radius: 0;
}

/* The static-SSR login and change-password fields (app.css .form-control): flat, Arial, no float glow. */
body.classic .form-control {
    height: 36px;
    padding: 0.9rem 2.25rem 0.2rem 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #000000;
    border: 1px solid #808080;
    border-radius: 0;
}

    body.classic .form-control:focus {
        border-color: #3D7B8E;
        box-shadow: none;
    }

body.classic .form-floating > .form-label {
    padding: 0.6rem 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #3D7B8E;
    font-style: italic;
    font-weight: bold;
}

body.classic .form-floating > .form-control:focus ~ .form-label,
body.classic .form-floating > .form-control:not(:placeholder-shown) ~ .form-label,
body.classic .form-floating > .form-control:-webkit-autofill ~ .form-label {
    transform: scale(0.8) translateY(-0.55rem) translateX(0.1rem);
}

body.classic .login-eye {
    right: 10px;
}

/* The loading overlay has no drawer to clear in this layout. */
body.classic .loading-background {
    left: 0;
}

/* The public text pages (FAQ, help, privacy) wrap at the 610px of master.html's text column rather than the full
   content width; their headings take the theme primary from app.css. */
body.classic .public-page-text {
    max-width: 610px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #4d5454;
}

body.classic .faq-index {
    margin-bottom: 12px;
}

body.classic .help-content .mud-divider {
    margin: 8px 0 !important;
}

body.classic .help-content .mud-typography-h2 {
    font-size: 13px;
    font-weight: bold;
}

body.classic .faq-entry {
    margin-bottom: 18px;
}

/* Print: the menu column, the header strip and the bottom links do not print; the content column does. */
@media print {
    body.classic .classic-header,
    body.classic .classic-menu-column,
    body.classic .classic-bottom {
        display: none;
    }
}
