﻿:root {
    --bg-color-blue-pastel: #b6e9ff;
    --bg-color-blue-pastel-outline: #44C8FF;
    --table-radius: .25em;
    --table-hover-bg-color: #e1ebec;
    --validate-color-outline-valid: green;
    --validate-color-outline-invalid: red;
    --control-width-min: 2.5in;
}

html, body {
    font-family: Arial, sans-serif;
}

.header-text {
    color: #2B338D !important;
}
/*
    width's large to small
    TODO: change from fixed widths to scalable widths
*/
.input-eval {
    width: 5in;
}

textarea, input {
    width: var(--control-width-min);
}


    input[type="time"] {
        width: 1.2in;
    }

    input[type="number"] {
        width: 1in;
    }

    input[type="checkbox"], input[type="radio"] {
        width: .25in;
    }

.input-initial, .grades-served {
    width: .5in;
}


.data-unbound { /*use this to show on the UI unbound controls*/
    border: 3px solid purple;
}

.strong { /*use this instead of <strong>*/
    font-weight: bold;
}

.currency {
    width: 1in;
}

.thwrap {
    overflow-wrap: break-word;
    max-width: 1px;
}

.topright {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.bottomright {
    position: absolute;
    bottom: 1.0rem;
    right: 1.0rem;
    display: flex;
    gap: 0.55rem;
}

.barwrapper {
    display: block;
    align-items: center;
    justify-content: center;
    width: 800px;
}

.btn-cycle2 {
    color: #fff;
    background-color: orange;
    border-color: orange;
}

.btncolor {
    background-color: #2e8b57;
}

.logo {
    border: none !important;
    filter: none !important;
}

.col-space {
    padding-right: 24px;
    padding-top: 10px;
}

.col-pad {
    padding-top: 10px;
}

.tight-content {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    display: block !important;
    white-space: pre-line;
}

.no-space {
    white-space: pre-line;
}

.passwordicon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}
/*---------------------------------------------
  --tables
  ---------------------------------------------*/
table.table-blue-pastel {
    background: var(--bg-color-blue-pastel);
    border-radius: var(--table-radius);
    border-collapse: separate;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: .5em;
    padding-bottom: .5em;
}

/*table.table-underline tr:not(:last-child) {*/ /*use this class to add underlines to a table*/
/*    border-bottom: 1px solid var(--bg-color-blue-pastel-outline);
*/ /*border: solid;
      border-width: 5px 0;
      border-color: red;
}

tr {*/ /*use this class to add underlines to a table*/
/*    border-bottom: 1px solid var(--bg-color-blue-pastel-outline);
*/ /*border: solid;
    border-width: 5px 0;
    border-color: red;
}

table.table-line-vertical tr td:not(:last-child), table.table-line-vertical tr th:not(:last-child) {*/ /*use this class to add vertical lines to a table*/
/*border-right: 1px solid var(--bg-color-blue-pastel-outline);
}

table.table-underline tr:not(:last-child) td.validation-row {*/ /*use this to hide lines on validation rows*/
/*border-bottom: hidden;
}*/


table.table-blue-pastel-padding td {
    padding-left: 1em;
    padding-right: 1em;
    padding-top: .5em;
    padding-bottom: .5em;
    border-bottom: 1px solid var(--bg-color-blue-pastel-outline);
}

table.table-blue-pastel tr th.vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: baseline;
}


table.table-blue-pastel th:first-child {
    border-top-left-radius: var(--table-radius);
}

table.table-blue-pastel th:first-child {
    border-top-right-radius: var(--table-radius);
}

table.table-blue-pastel tr:first-child td:first-child {
    border-top-left-radius: var(--table-radius);
}

table.table-blue-pastel tr:first-child td:last-child {
    border-top-right-radius: var(--table-radius);
}

table.table-blue-pastel tr:last-child td:last-child {
    border-bottom-right-radius: var(--table-radius);
}

table.table-blue-pastel tr:last-child td:first-child {
    border-bottom-left-radius: var(--table-radius);
}


table.table-blue-pastel tr:hover {
    background-color: var(--table-hover-bg-color);
}


/*---------------------------------------------
  --validations
  ---------------------------------------------*/
/* 
.valid {
    outline-style: solid;
    outline-width: 3px;
    outline-color: var(--validate-color-outline-valid);
}
*/
.invalid, .validation-message { /*just the text*/
    color: var(--validate-color-outline-invalid);
    font-weight: bold;
    /*    border: 2px solid red;*/
}

.dataUnbound { /*use this to show on the UI unbound controls*/
    border: 3px solid purple;
}

InputTextArea {
}

textarea.text-area-auto-size {
    min-width: 100%;
    height: 500px;
    width: fit-content;
    field-sizing: content;
}

textarea.text-area-medsize {
    min-width: 100%;
    height: 200px;
    width: fit-content;
    field-sizing: content;
}

.input-text-extra-wide {
    width: 7in;
    height: 5.4in;
    resize: vertical;
}

.signtxt {
    font-family: Pacifico;
    height: 50%;
    border: 1px solid #ccc;
}

.invalid { /*just the outline of the control itself*/
    outline-style: solid;
    outline-width: 2px;
    outline-color: var(--validate-color-outline-invalid);
}

.file-input-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 999;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: block;
}

/*Landing Page Css*/
/* Center the button container in the middle of the page */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 40%;
    margin: 0 auto;
    gap: 40px 20px;
}

/* Shrink the card size */
.button-wrapper {
    flex: 0 0 30%; /* Forces roughly 3 items per row */
    display: flex;
    justify-content: center;
}

/* Style the buttons */
.stylish-button {
    display: inline-block;
    padding: 15px 30px;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    text-decoration: none;
    text-transform: uppercase;
    color: black;
    border: 2px solid #0cf;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.file-input-overlay::file-selector-button,
.file-input-overlay::-webkit-file-upload-button {
    display: none;
}
/* Create the glowing hover effect */
.stylish-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0cf;
    transition: all 0.4s ease;
    z-index: -1;
}


/*Contact Page Css*/
.form-container {
    max-width: 950px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}



/*---------------------------------------------
  --print commands
  ---------------------------------------------*/
.printing-pagebreak {
    page-break-after: always;
    /* break-after: always;  /* supposed be newer, but doesn't work */
}

/*----------------------------------PDF-Viewer-------------------------------------------*/

.pdf-wrapper {
    position: relative;
    /*min-height: 600px;*/
    overflow-x: hidden; /* stop wrapper from expanding horizontally */
    box-sizing: border-box;
}

.pdf-container {
    width: 100%;
    display: block; /* simpler than flex for this case */
    text-align: center; /* keeps canvas centered */
    box-sizing: border-box;
}

    .pdf-container canvas {
        max-width: 100%;
        height: auto;
        display: inline-block; /* works with text-align:center */
        margin: 1rem 0;
        /*box-shadow: 0 0 6px rgba(0,0,0,0.2);
    border: 1px solid #ddd;*/
        box-sizing: border-box;
    }

/* Overlay for loading spinner */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*----------------------------------PDF-Viewer-------------------------------------------}

/*----------------------------------Testing-------------------------------------------*/
/*.page {
    border: 2px solid orange !important;
}
.pdf-wrapper {
    border: 2px dashed red !important;
}

.pdf-container {
    border: 2px solid blue !important;
}

.pdf-container canvas {
    border: 1px solid green !important;
}*/
/*----------------------------------Testing-------------------------------------------*/
/*  ============================================================
    PRINT – top-level @page (must NOT be nested inside @media)
    ============================================================ */
@page {
    size: Legal; /* explicit; removes OS/printer ambiguity */
    margin: 0.5in;

    @bottom-center {
        content: var(--print-date, "") !important;
        font-size: 0.7em;
    }

    @bottom-right {
        content: "Page " counter(page) !important;
        font-size: 0.8em;
    }

    @top-right {
        content: var(--print-header, "RFP") !important;
    }

    @bottom-left {
        content: var(--print-url, "") !important;
        font-size: 0.7em;
    }
}

@page landscape-page {
    size: Legal landscape;
    margin: 0.25in 0.35in;
}

/*  ============================================================
    PRINT – all other rules
    ============================================================ */
@media print {

    /*  1. Global box-model + min-width reset  */
    *, *:before, *:after {
        box-sizing: border-box !important;
        min-width: 0 !important;
        min-inline-size: 0 !important;
    }

    /*  2. Override fixed input widths via the CSS variable  */
    :root {
        --control-width-min: auto;
    }

    /*  3. Constrain all replaced/interactive elements  */
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    canvas,
    img {
        max-width: 100% !important;
    }

    /*  4. Table constraints  */
    table {
        max-width: 100% !important;
        border-collapse: collapse !important;
    }

    td, th {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    /*  5. fieldset / form reset  */
    fieldset, form {
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /*  6. Page & layout containers  */
    .page, main, article, .content {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /*  7.  Bootstrap's d-flex uses !important. Since app.css loads AFTER
            bootstrap.min.css, this same-specificity !important rule wins.
            Without this, the flex child (article wrapper) never grows to
            full page width — it renders at natural content width only.   */
    .d-flex,
    .flex-column,
    .flex-row,
    .flex-sm-row {
        display: block !important;
    }

        /* Force the article wrapper div (direct child of the now-block d-flex)
       to fill the full page width */
        .d-flex > div {
            width: 100% !important;
            max-width: 100% !important;
        }

    /*  8. html/body — height:auto, NOT a hardcoded pixel value.
            The d-flex fix above is what actually stabilises the layout;
            the px value was a symptom-masking workaround.               */
    html, body {
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    /*  9. Landscape sections  */
    .landscape-print {
        page: landscape-page !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* 10. PDF viewer  */
    .pdf-wrapper, .pdf-container {
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
    }

        .pdf-container canvas {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            page-break-inside: avoid;
        }

    .pdf-break-all, p, span, code {
        overflow-wrap: break-word !important;
        word-break: normal !important;
        white-space: pre-wrap !important;
    }

    /* 11. Hide non-print elements  */
    .noprint {
        display: none !important;
    }

    /* 12. Page breaks  */
    .printing-pagebreak {
        page-break-after: always !important;
    }

    /* 13. Compact spacing  */
    p, div, span {
        margin: 0 !important;
        padding: 2px 0 !important;
        line-height: 1.2 !important;
    }

    /* 14. Inline print helpers  */
    .no-line-break {
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .print-inline {
        display: block !important;
        white-space: normal !important;
    }

    /* td/th must stay as table-cell even when .print-inline is on them.
       Without this, table columns collapse in print.                    */
    td.print-inline,
    th.print-inline {
        display: table-cell !important;
    }

    .print-inline input,
    .print-inline select,
    .print-inline .print-inline-input,
    .print-inline span {
        display: inline-block !important;
        vertical-align: middle !important;
        width: auto !important;
        margin: 0 4px !important;
    }

    .print-inline .validation-message {
        display: none !important;
    }

    /* ============================================================
       Contract Renewal ONLY print overrides — scoped by the
       .cr-print-content class added to ContractRenewalHome.razor.
       RFP does not have this class so it is completely unaffected.
       ============================================================ */
    .cr-print-content {
        font-size: 8pt !important;
        line-height: 1.3 !important;
    }

        .cr-print-content h1 {
            font-size: 14pt !important;
            font-weight: bold !important;
        }

        .cr-print-content h2 {
            font-size: 13pt !important;
            font-weight: bold !important;
        }

        .cr-print-content h3 {
            font-size: 12pt !important;
            font-weight: bold !important;
        }

        .cr-print-content h4 {
            font-size: 11pt !important;
            font-weight: bold !important;
        }

        .cr-print-content h5,
        .cr-print-content h6 {
            font-size: 10pt !important;
        }

        .cr-print-content p,
        .cr-print-content td,
        .cr-print-content th,
        .cr-print-content li,
        .cr-print-content label,
        .cr-print-content span,
        .cr-print-content textarea,
        .cr-print-content input
        .cr-print-content select {
            font-size: 8pt !important;
        }

    /* ── FixedPriceMealRates table: print-specific layout ─  */
    .fixed-price-table td > div {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        overflow: hidden !important;
    }

        /* $ and % symbols take natural width; inputs take the rest */
        .fixed-price-table td > div span {
            flex: 0 0 auto !important;
            white-space: nowrap !important;
        }

        /* inputs fill whatever space remains after the symbol.  */
        .fixed-price-table td > div input {
            flex: 1 1 0 !important;
            min-width: 0 !important;
            width: 0 !important;
            text-align: right !important;
        }

    /* ── table-blue-pastel: wkhtmltopdf-specific overrides ──────────────────
   Two issues:
   (1) wkhtmltopdf's old WebKit does not support CSS custom properties (var()).
       All var(--...) resolve to nothing, so colors/radii disappear.
       Fix: restate every var() with its literal value.
   (2) The general @media print rule forces border-collapse:collapse on ALL
       tables. For table-blue-pastel this hides the table background and
       causes cell borders to appear as a visible grid.
       Fix: restore border-collapse:separate with border-spacing:0.
   ─────────────────────────────────────────────────────────────────────── */
    table.table-blue-pastel {
        background-color: #b6e9ff !important; /* var(--bg-color-blue-pastel) */
        border-radius: .25em !important; /* var(--table-radius)         */
        border-collapse: separate !important; /* override: table { collapse } */
        border-spacing: 0 !important; /* no visible cell gaps         */
        border: none !important;
    }

        /* Cells must also carry the background so border-collapse:separate
   doesn't expose a white gap at the table edges */
        table.table-blue-pastel td,
        table.table-blue-pastel th {
            background-color: #b6e9ff !important;
            border: none !important;
        }

        /* Suppress :hover color change — meaningless in PDF and can override above */
        table.table-blue-pastel tr:hover,
        table.table-blue-pastel tr:hover td,
        table.table-blue-pastel tr:hover th {
            background-color: #b6e9ff !important;
        }

    /* table-blue-pastel-padding: restore literal border-bottom color */
    table.table-blue-pastel-padding td {
        background-color: #b6e9ff !important;
        border-bottom: 1px solid #44C8FF !important; /* var(--bg-color-blue-pastel-outline) */
    }

    /* Global var() fallbacks for wkhtmltopdf (affects inputs, textareas) */
    textarea,
    input:not([type="checkbox"]):not([type="radio"]) {
        width: auto !important; /* var(--control-width-min) = 2.5in in base, auto in print */
        max-width: 100% !important;
    }

   
}

/* Hide the print-only fallback on screen */
.pdf-print-notice {
    display: none;
}



  

  


