@import url("Brand/CRCareersBrand.css");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");   /* the page no longer needs its own Google Fonts links */
/* ==========================================================================
   CRCareers.css  (proposed standard, v2 draft)
   Controls AppSelfService.aspx: the online application, the Profile Portal
   (self service), login, onboarding questions and forms review.

   HOW BRANDING WORKS (same as CRCareersPage.css)
   - Do NOT edit this file for a customer. Colors, font and logo come from
     Brand/CRCareersBrand.css, which is shared with the careers page.
   - The upgrade package must never contain a Brand folder.
   - If the brand file is missing, the defaults below are used.

   Styles build upon themselves: the first rules set the default for the whole
   page, the named rules after them are exceptions. Empty rules are left in on
   purpose so services can add to them.

   All sizes are in em (1em = 16px at the browser default), except 1px borders.
   ========================================================================== */

:where(:root) {
    /* Brand colors */
    --cr-primary:        #234360;   /* buttons, required captions, links */
    --cr-primary-hover:  #1a3249;
    --cr-on-primary:     #ffffff;
    --cr-link:           var(--cr-primary);
    --cr-link-visited:   var(--cr-link);
    --cr-link-hover:     var(--cr-primary-hover);
    /* Main buttons (Next, Save Changes, Search, Apply Now, Login...) and the
       careers page banner. They follow --cr-primary unless set separately. */
    --cr-button:         var(--cr-primary);
    --cr-button-hover:   var(--cr-primary-hover);
    --cr-button-text:    var(--cr-on-primary);
    --cr-banner:         var(--cr-primary);
    --cr-banner-text:    var(--cr-on-primary);
    --cr-header-bg:      var(--cr-page-bg);   /* bar behind the logo (white unless set) */
    --cr-header-text:    var(--cr-link);      /* menu links on that bar (careers page) */
    --cr-button-radius:  var(--cr-radius);        /* main buttons' corners, e.g. 2em for pill-shaped buttons */
    --cr-action-radius:  var(--cr-button-radius); /* small buttons (Add/Edit/Delete, Start/Yes, Withdraw...) match the main buttons */

    /* Neutrals */
    --cr-text:           #4d4d4d;
    --cr-heading:        #4a4a4a;
    --cr-page-bg:        #ffffff;
    --cr-row-alt:        #f1f1f1;
    --cr-row-internal:   #ffd5dc;   /* "internal" positions in a job list */
    --cr-header-row:     #e6e6e6;   /* header row of grids (Education, Skills...) */
    --cr-border:         #c8c8c8;

    /* Status colors (Add / Edit / Delete links, messages) */
    --cr-success:        #007a37;
    --cr-danger:         #cc0000;
    --cr-notice:         #4c835c;
    /* Action buttons (Add / Edit / Delete, Withdraw / Incomplete / Complete).
       White text on these, so keep them dark enough to read (4.5:1).    */
    --cr-add:            #016a94;   /* Add: blue */
    --cr-edit:           #008000;   /* Edit: green */
    --cr-delete:         #cc0000;   /* Delete: red */
    --cr-withdraw:       #cc0000;   /* Withdraw: red */
    --cr-incomplete:     #008000;   /* Incomplete (finish the application): green */
    --cr-complete:       #008000;   /* Complete (label, not clickable): green */

    /* Type and layout */
    --cr-font:           "Open Sans", Verdana, Geneva, sans-serif;
    --cr-list-font:      var(--cr-font);   /* dropdown font; same as the page unless set */
    --cr-heading-font:   var(--cr-font);   /* page titles and section headings */
    --cr-button-font:    var(--cr-font);   /* main buttons */
    --cr-logo-height:    4.375em;
    --cr-logo-width:     auto;
    --cr-page-width:     95%;
    --cr-page-max:       75rem;     /* 1200px: logo, content and footer stop here and center on wide screens.
                                       rem (not em) so header, content and footer get the same width. */
    --cr-radius:         0.3125em;

    /* Form field widths: text boxes and dropdowns all line up at one width;
       the large boxes (cover letter, resume text, notes) use the full width.
       Never wider than the screen: max-width 100% applies to all of them.  */
    --cr-field-width:    40em;      /* text boxes */
    --cr-field-short:    40em;      /* zip, dates, years, phone (same as the others) */
    --cr-textarea-width: 100%;      /* large text boxes */
    --cr-select-max:     40em;      /* dropdowns; keep equal to --cr-field-width (see note at the dropdown rules) */
}

/* Form rules are written as :is(#frmCRSS, #form2) so they also cover the
   Agency Portal (agencyportal.aspx, whose form is "form2"; CRVP.css loads this
   file). When dev renames that form to frmCRSS (dev list #44), this can go
   back to plain #frmCRSS. */

/**** Overall page ****/
*, *::before, *::after { box-sizing: border-box; }

/* "html body" because the page loads Bootstrap after this file */
html body {
    margin: 0;
    background-color: var(--cr-page-bg);
    font-family: var(--cr-font);
    font-size: 1em;
    line-height: 1.5;
    color: var(--cr-text);
}

/* Content area text size: 14px. Everything below scales from here.
   (The logo and header above it stay at the page size.) */
.cr-main { font-size: 0.875em; }

/* Text: takes its size from the page (the old file set 9pt on each tag,
   which shrank text again inside nested tables) */
p, span, label, th, td, li {
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    text-decoration: none;
    color: var(--cr-text);
}

/* Header styles: available to customers in the editor tool */
h1, h2, h3 { font-family: var(--cr-heading-font); font-weight: normal; color: var(--cr-heading); line-height: 1.25; }
h1 { font-size: 1.5em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.15em; }

img { max-width: 100%; height: auto; }

/**** Links: every link first, then exceptions ****/
a:link {
    color: var(--cr-link);
    text-decoration: none;
}
a:visited {
    color: var(--cr-link-visited);
    text-decoration: none;
}
a:hover, a:focus {
    color: var(--cr-link-hover);
    text-decoration: underline;
}
/* Links inside paragraphs need more than color to stand out (accessibility) */
.MainBodyText a:link, .MainBodyText a:visited { text-decoration: underline; }

/* Keyboard focus ring for everything clickable */
a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, button:focus-visible {
    outline: 3px solid var(--cr-primary);
    outline-offset: 2px;
}

/**** Page layout ****
   AppSelfService.aspx:  header.cr-header > .cr-wrap > img.cr-logo
                         main.cr-main.cr-wrap > form:is(#frmCRSS, #form2)
                         footer.cr-footer > .cr-wrap > p
   Same names as the careers page, so both pages line up the same way. */
.cr-wrap {
    width: var(--cr-page-width);
    max-width: var(--cr-page-max);
    margin: 0 auto;
}

/* Page layout grid (Telerik) caps content at 1280px and centers it */
.cr-main .t-container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.cr-header { padding: 0.75em 0; background-color: var(--cr-header-bg); }
img.cr-logo {
    display: block;
    height: var(--cr-logo-height);
    width: var(--cr-logo-width);
    max-width: 60vw;
    object-fit: contain;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cr-footer { font-size: .75em; padding: 1.5em 0; color: var(--cr-text); }
.cr-footer p { margin: 0; }

/* Application (wizard) mode: the left menu column is empty, so give its
   space to the form. In the Profile Portal the menu is there and stays. */
.t-col-2:has(> #MainMenuContainer > #CRAppSSMain1_RadMenuMainHide:only-child) {
    display: none;
}
.t-col-2:has(> #MainMenuContainer > #CRAppSSMain1_RadMenuMainHide:only-child) ~ .t-col-10 {
    width: 100%;
}

/**** Form fields: one look and one set of widths on every page ****/
:is(#frmCRSS, #form2) input[type=text],
:is(#frmCRSS, #form2) input[type=email],
:is(#frmCRSS, #form2) input[type=tel],
:is(#frmCRSS, #form2) input[type=number],
:is(#frmCRSS, #form2) input[type=password],
:is(#frmCRSS, #form2) input:not([type]),
:is(#frmCRSS, #form2) select,
:is(#frmCRSS, #form2) textarea {
    width: var(--cr-field-width) !important;   /* overrides widths set by the page */
    max-width: 100%;
    min-height: 2.5em;
    padding: 0.375em 0.5em;
    font-family: var(--cr-font);
    font-size: 1em;
    color: var(--cr-text);
    background-color: #fff;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
}
:is(#frmCRSS, #form2) textarea {
    width: var(--cr-textarea-width) !important;
    min-height: 7em;
    resize: vertical;
}
/* Dropdown list entries: dark text on white, even if the page or another
   stylesheet colors them (some question lists showed white-on-white) */
:is(#frmCRSS, #form2) select option,
:is(#frmCRSS, #form2) select optgroup {
    color: var(--cr-text) !important;
    background-color: #fff !important;
}
/* Dropdown font (same as the page by default) */
:is(#frmCRSS, #form2) select,
:is(#frmCRSS, #form2) select option,
:is(#frmCRSS, #form2) select optgroup {
    font-family: var(--cr-list-font) !important;
}
/* Dropdowns stop at --cr-select-max. DO NOT REMOVE: in Chrome on Windows a
   full-width dropdown opens with a blank list (confirmed on careers_master
   2026-10-28; it only looked fine with DevTools open or a narrow window). */
:is(#frmCRSS, #form2) select:not([multiple]) {
    max-width: min(100%, var(--cr-select-max)) !important;
}
:is(#frmCRSS, #form2) select[multiple] {
    height: auto !important;
    min-height: 6em;
}
/* Hidden helper boxes the page uses internally: leave them hidden */
:is(#frmCRSS, #form2) input[style*="visibility: hidden"] {
    width: 0 !important;
    min-height: 0;
    padding: 0;
    border: 0;
}

/* Short fields: zip, dates, years, phone numbers */
:is(#frmCRSS, #form2) input[id$=Zip],
:is(#frmCRSS, #form2) input[id*=Date],
:is(#frmCRSS, #form2) input[id*=Year],
:is(#frmCRSS, #form2) input[id*=Yrs],
:is(#frmCRSS, #form2) input[id*=Phone],
:is(#frmCRSS, #form2) input[id$=SSN] {
    width: var(--cr-field-short) !important;
}

/* Password boxes sit in a wrapper with an eye (show password) button */
:is(#frmCRSS, #form2) .password-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    width: var(--cr-field-width) !important;
    max-width: 100%;
}
:is(#frmCRSS, #form2) input[type=password] { width: calc(100% - 2.5em) !important; }

/* Radio buttons and check boxes: bigger and in the brand color */
:is(#frmCRSS, #form2) input[type=radio],
:is(#frmCRSS, #form2) input[type=checkbox] {
    width: 1.15em;
    height: 1.15em;
    margin: 0 0.4em 0 0;
    vertical-align: middle;
    accent-color: var(--cr-primary);
}

/* File upload (Telerik RadAsyncUpload): file name box + Choose File / Select
   button side by side. The real file box is invisible and sits on top. */
:is(#frmCRSS, #form2) input[type=file] { max-width: 100%; }
:is(#frmCRSS, #form2) .RadUpload, :is(#frmCRSS, #form2) .ruInputs, :is(#frmCRSS, #form2) .ruInputs li {
    width: auto !important;
    max-width: 100%;
}
:is(#frmCRSS, #form2) .ruFileWrap {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5em;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
}
:is(#frmCRSS, #form2) input.ruFakeInput {
    width: 18em !important;
    max-width: calc(100vw - 10em);
}
/* Choose File / Select: outlined so it doesn't compete with Next */
:is(#frmCRSS, #form2) input.ruButton {
    order: 2;
    margin: 0 !important;
    background: #fff;
    color: var(--cr-button);
    border: 1px solid var(--cr-button);
}
:is(#frmCRSS, #form2) input.ruButton:hover { background: var(--cr-row-alt); }

/* Captions sit ABOVE their fields on every screen size (same look as phones).
   To go back to captions in a column on the left for desktops, move this
   section inside the PHONES section at the bottom of the file. */
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > label),
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > span.CaptionStyle),
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > span.RequiredCaptionStyle),
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > label) > tbody,
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > span.CaptionStyle) > tbody,
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > span.RequiredCaptionStyle) > tbody {
    display: block;
    width: 100% !important;
}
/* Password page: the Confirm caption isn't marked up like the others, so
   stack every row of the password table (New Password and Confirm line up) */
:is(#frmCRSS, #form2) table:has(input[type=password]):not(:has(table)),
:is(#frmCRSS, #form2) table:has(input[type=password]):not(:has(table)) > tbody,
:is(#frmCRSS, #form2) table:has(input[type=password]):not(:has(table)) > tbody > tr,
:is(#frmCRSS, #form2) table:has(input[type=password]):not(:has(table)) > tbody > tr > td {
    display: block;
    width: 100% !important;
    padding: 0;
    text-align: left;
}
:is(#frmCRSS, #form2) table:has(input[type=password]):not(:has(table)) > tbody > tr > td:first-child {
    padding-top: 0.75em;
}
:is(#frmCRSS, #form2) table:has(textarea), :is(#frmCRSS, #form2) table:has(textarea) > tbody,
:is(#frmCRSS, #form2) tr:has(> td > textarea), :is(#frmCRSS, #form2) td:has(> textarea) {
    display: block;
    width: 100% !important;
}
:is(#frmCRSS, #form2) tr:has(> td > label),
:is(#frmCRSS, #form2) tr:has(> td > span.CaptionStyle),
:is(#frmCRSS, #form2) tr:has(> td > span.RequiredCaptionStyle),
:is(#frmCRSS, #form2) tr:has(> td > label) > td,
:is(#frmCRSS, #form2) tr:has(> td > span.CaptionStyle) > td,
:is(#frmCRSS, #form2) tr:has(> td > span.RequiredCaptionStyle) > td {
    display: block;
    width: 100% !important;
    padding: 0;
}
:is(#frmCRSS, #form2) tr:has(> td > label) > td:first-child,
:is(#frmCRSS, #form2) tr:has(> td > span.CaptionStyle) > td:first-child,
:is(#frmCRSS, #form2) tr:has(> td > span.RequiredCaptionStyle) > td:first-child {
    padding-top: 0.75em;
    text-align: left;
}

/* Page name row: page name on the left, the top Next / Save button lined up
   with the right edge of the fields (it was floating mid-page) */
.t-row:has(> .t-col > .row > span.HeaderStyle):has(> .t-col > .row > input[type=submit], > .t-col > .row > input[type=button]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 1em;
}
/* Telerik's clearfix ::before/::after would act as extra flex items and
   push the button in from the right edge */
.t-row:has(> .t-col > .row > span.HeaderStyle):has(> .t-col > .row > input[type=submit], > .t-col > .row > input[type=button])::before,
.t-row:has(> .t-col > .row > span.HeaderStyle):has(> .t-col > .row > input[type=submit], > .t-col > .row > input[type=button])::after {
    content: none;
    display: none;
}
.t-row:has(> .t-col > .row > span.HeaderStyle):has(> .t-col > .row > input[type=submit], > .t-col > .row > input[type=button]) > .t-col {
    width: auto;
    float: none;
    flex: 0 1 auto;
    margin-left: 0;
    margin-right: 0;
}
.t-row:has(> .t-col > .row > span.HeaderStyle) > .t-col:has(> .row > input[type=submit], > .row > input[type=button]) > .row {
    text-align: right;
}
.t-row:has(> .t-col > .row > span.HeaderStyle) > .t-col:has(> .row > input[type=submit], > .row > input[type=button]) > .row > input {
    margin-right: 0 !important;
}

/* Form area uses the full content width (Telerik centers a narrower column) */
.t-col .t-row > .t-col-10:only-child { width: 100%; }
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > label) td:not(:has(input[type=submit], input[type=button])) {
    text-align: left;
}

/**** Buttons: Next, Save Changes, Submit, I agree ****/
:is(#frmCRSS, #form2) input[type=submit],
:is(#frmCRSS, #form2) input[type=button] {
    display: inline-block;
    min-height: 2.75em;
    margin: 0.75em 0.5em 0.5em 0;
    padding: 0.6em 1.25em;
    border: 0;
    border-radius: var(--cr-button-radius);
    background: var(--cr-button);
    color: var(--cr-button-text);
    font-family: var(--cr-button-font);
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    width: auto !important;
}
:is(#frmCRSS, #form2) input[type=submit]:hover, :is(#frmCRSS, #form2) input[type=submit]:focus,
:is(#frmCRSS, #form2) input[type=button]:hover, :is(#frmCRSS, #form2) input[type=button]:focus {
    background: var(--cr-button-hover);
}

/**** Login page ****/
/* Caption right above the login entry fields */
span.LoginBelowStyle { font-weight: bold; }
/* Link to reset the password */
a.ForgotLogin:link { }
a.ForgotLogin:visited { }
a.ForgotLogin:hover { }
/* Messages about logging in: cannot find the login, duplication, confirmation */
span.ErrorStyleSpecial {
    font-weight: bold;
    color: var(--cr-danger);
}
/* Captions for fields that are NOT required (login and every other page) */
span.CaptionStyle { }
label.CaptionStyle { }

/**** Logged in to the Profile Portal ****/
/* Applicant name at the top of every page */
/* (it sits inside a heading, which already makes it larger) */
span.AppNameStyle {
    font-size: 1em;
    color: var(--cr-primary);
}
span.AppNameStyleWhite {
    font-size: 1em;
    color: #fff;
}

/**** Tasks ****/
th.TaskTitleBackground {
    text-align: left;
    background-color: var(--cr-page-bg);
    border-bottom: 1px solid var(--cr-border);
}
.TaskTableStyle {
    width: 100%;                /* same width as the other grids */
    margin-top: 0.5em;
    text-align: left;
    background-color: var(--cr-page-bg);
    border: 1px solid var(--cr-border);
}
.TaskTableBackground, .TaskTableBackgroundLastCol {
    text-align: left;
    background-color: var(--cr-header-row);
    border-right: 1px solid var(--cr-border);
}
.TaskTableBackgroundLastCol { border: none; }
td.TaskMainRow, td.TaskMainRowLastCol {
    text-align: left;
    background-color: var(--cr-page-bg);
    border-right: 1px solid var(--cr-border);
}
td.TaskAltRow, td.TaskAltRowLastCol {
    text-align: left;
    background-color: var(--cr-row-alt);
    border-right: 1px solid var(--cr-border);
}
td.TaskMainRowLastCol, td.TaskAltRowLastCol { border: none; }
/* Start / Continue (Action column) and Yes (Done column) in the task list:
   solid buttons like Add / Edit / Delete. The page writes them as
   <a style="color: darkred; font-size:8pt;"> with no class (dev list #43),
   so they are picked out by that inline style.                          */
.TaskTableStyle td { vertical-align: middle; }
.TaskTableStyle td a[style*="darkred"] {
    display: inline-block;
    padding: 0.35em 0.9em;
    border-radius: var(--cr-action-radius);
    font-size: 0.85em !important;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    color: #fff !important;
}
/* Start / Continue: blue, same as Add */
.TaskTableStyle td a[style*="darkred"]:link    { background-color: var(--cr-add); }
.TaskTableStyle td a[style*="darkred"]:visited { background-color: var(--cr-add); }
.TaskTableStyle td a[style*="darkred"]:hover   { background-color: var(--cr-add); filter: brightness(0.85); }
/* Yes (Done column): green, same as Complete */
.TaskTableStyle td:nth-child(3) a[style*="darkred"]:link    { background-color: var(--cr-complete); }
.TaskTableStyle td:nth-child(3) a[style*="darkred"]:visited { background-color: var(--cr-complete); }
.TaskTableStyle td:nth-child(3) a[style*="darkred"]:hover   { background-color: var(--cr-complete); filter: brightness(0.85); }

/**** Page names and section headers ****/
/* Page names (CONTACT INFORMATION, EDUCATION...), onboarding and PDF headers */
span.HeaderStyle, td.OnboardingReviewTableTitle, span.lblDDOnboardingHeader,
td.OnboardingQuestionsTableTitle, span#lblPwd.PDFHeader {
    font-family: var(--cr-heading-font);
    display: inline-block;
    margin: 0.5em 1em 0.5em 0;
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.3;
    color: var(--cr-heading);
    text-transform: uppercase;
    background-color: transparent;
}

/* Header row of the grids: Jobs Applied To, Job Browsing, Education,
   Previous Employment, Skills, Military, Security Clearances, References */
th.DDBackground {
    padding: 0.5em;
    font-weight: bold;
    text-align: left;
    background-color: var(--cr-header-row);
    border-top: 1px solid var(--cr-border);
    border-bottom: 1px solid var(--cr-border);
}

/**** Job search and browsing inside the portal ****/
td.MainRow { background-color: var(--cr-page-bg); }
td.AltRow { background-color: var(--cr-row-alt); }
td.InternalRow { background-color: var(--cr-row-internal); }
td.MainRow, td.AltRow, td.InternalRow {
    padding: 0.5em;
    vertical-align: top;
    border-bottom: 1px solid var(--cr-border);
}
/* Job title links */
a.JobLink:link { font-weight: 600; }
a.JobLink:visited { font-weight: 600; }
a.JobLink:hover { font-weight: 600; text-decoration: underline; }
/* Column headers on the job list (sort links) */
a.ReqSort:link {
    color: var(--cr-heading);
}
a.ReqSort:visited {
    color: var(--cr-heading);
}
a.ReqSort:hover {
    color: var(--cr-link-hover);
}
/* Status on Jobs Applied To: Withdraw / Incomplete / Complete show as buttons
   (see the action button rules under "Add / Edit / Delete") */

/* "Apply" links (Apply, Apply to Additional Positions, Start over with job
   search...): shown as main buttons, same color as Search / Next */
a.ApplyNowStyle:link, a.ApplyNowStyle:visited, a.ApplyNowStyle:hover {
    display: inline-block;
    font-family: var(--cr-button-font) !important;
    min-height: 2.75em;
    margin: 0.5em 0.5em 0.5em 0;
    padding: 0.75em 1.25em;
    border-radius: var(--cr-button-radius);
    font-weight: bold;
    line-height: 1.25;
    text-decoration: none !important;
    color: var(--cr-button-text) !important;
}
a.ApplyNowStyle:link { background: var(--cr-button); }
a.ApplyNowStyle:visited { background: var(--cr-button); }
a.ApplyNowStyle:hover { background: var(--cr-button-hover); }

/* Additional job information and job description text */
td.MainBodyText { }
span.MainBodyText { }
td.JDHeaderStyle {
    font-size: 1em;
    font-weight: bold;
}

/**** Online application and data entry ****/
/* Error / prompting messages (e.g. "you need to upload a resume") */
span.ErrorStyle {
    font-weight: bold;
    color: var(--cr-danger);
}
/* Captions for required fields (the asterisk is in the caption text) */
span.RequiredCaptionStyle, label.RequiredCaptionStyle {
    color: var(--cr-primary);
    font-weight: 600;
}
/* Screening question captions */
label.AQCaptionStyle, label.AQRequiredCaptionStyle { }

/* Captions on the Create Password page */
#CRAppSSMain1_lblCreateNewPwd, #CRAppSSMain1_lblCreateNewPwd2, #CRAppSSMain1_lblLoginMessage {
    font-size: 1em;
    color: var(--cr-notice);
}

/* Add / Edit / Delete on the grid pages, and Withdraw / Incomplete / Complete
   on Jobs Applied To: shown as small colored buttons with white text.
   Colors are set at the top of the file (--cr-add, --cr-edit ...).        */
a.Add, a.Edit, a.Delete, a.Withdraw, a.Incomplete, span.Complete {
    display: inline-block;
    margin: 0.15em 0.25em 0.15em 0;
    padding: 0.5em 1em;
    border-radius: var(--cr-action-radius);
    font-size: 0.85em;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    color: #fff !important;
    cursor: pointer;
}
span.Complete { cursor: default; }

/* Add */
a.Add:link    { background-color: var(--cr-add); }
a.Add:visited { background-color: var(--cr-add); }
a.Add:hover   { background-color: var(--cr-add); filter: brightness(0.85); }
a.Add         { background-color: var(--cr-add); }

/* Edit */
a.Edit:link    { background-color: var(--cr-edit); }
a.Edit:visited { background-color: var(--cr-edit); }
a.Edit:hover   { background-color: var(--cr-edit); filter: brightness(0.85); }
a.Edit         { background-color: var(--cr-edit); }

/* Delete */
a.Delete:link    { background-color: var(--cr-delete); }
a.Delete:visited { background-color: var(--cr-delete); }
a.Delete:hover   { background-color: var(--cr-delete); filter: brightness(0.85); }
a.Delete         { background-color: var(--cr-delete); }

/* Withdraw */
a.Withdraw:link    { background-color: var(--cr-withdraw); }
a.Withdraw:visited { background-color: var(--cr-withdraw); }
a.Withdraw:hover   { background-color: var(--cr-withdraw); filter: brightness(0.85); }
a.Withdraw         { background-color: var(--cr-withdraw); }

/* Incomplete */
a.Incomplete:link    { background-color: var(--cr-incomplete); }
a.Incomplete:visited { background-color: var(--cr-incomplete); }
a.Incomplete:hover   { background-color: var(--cr-incomplete); filter: brightness(0.85); }
a.Incomplete         { background-color: var(--cr-incomplete); }

/* Complete (a label, not a link) */
span.Complete { background-color: var(--cr-complete); }

/* Data entry pages: let the field tables use the available width */
#CRAppSSMain1_tblDDContactInfo, #CRAppSSMain1_tblDDAllQuestions,
#CRAppSSMain1_tblDDPersonalInfo, #CRAppSSMain1_tblDDReferences,
#CRAppSSMain1_tblEduDetail, #CRAppSSMain1_tblPrevEmpDetail,
#CRAppSSMain1_tblSecurityClearanceDetail, #CRAppSSMain1_tblMilitaryDetail,
#CRAppSSMain1_tblAttachDetail, #CRAppSSMain1_tblNPNotifDetail,
#CRAppSSMain1_tblSkillsDetail, #CRAppSSMain1_tblReqs {
    width: 100% !important;
}
#CRAppSSMain1_tblDDHistBrowse, #CRAppSSMain1_tblReqsPanel { width: 100% !important; }
/* Every grid (Education, Skills, Military, References...) and the tables
   around it use the full width, so the grid lines up with the Next button.
   Covers grid pages not in the list above (Skills was narrower). */
:is(#frmCRSS, #form2) table.DataTable,
:is(#frmCRSS, #form2) table:has(th.DDBackground) {
    width: 100% !important;
}

/* Resume text box and cover letter */
:is(#frmCRSS, #form2) #CRAppSSMain1_txtResume { width: 100% !important; min-height: 25em; }
:is(#frmCRSS, #form2) #CRAppSSMain1_txtCoverLetter { width: 100% !important; min-height: 14em; }

/* Disability form (CC-305): same width and fonts as the rest of the page.
   The form brings its own Arial and pixel sizes as inline styles
   (16px title, 12px text, 10px fine print); these override them.        */
#CRAppSSMain1_tblDisabilityFormContainer, #CRAppSSMain1_tblDDDisabilityForm {
    width: 100% !important;
    font-family: var(--cr-font) !important;
    font-size: 1em !important;
}
#CRAppSSMain1_tblDDDisabilityForm * {
    font-family: var(--cr-font) !important;
    font-size: inherit !important;
}
/* Form title (was 16px): same size as other page headings */
#CRAppSSMain1_tblDDDisabilityForm [style*="font-size: 16px"],
#CRAppSSMain1_tblDDDisabilityForm [style*="font-size:16px"] {
    font-size: 1.2em !important;
    font-weight: bold;
}
/* Fine print (was 10px): OMB number, expiration date, burden statement */
#CRAppSSMain1_tblDDDisabilityForm [style*="font-size: 10px"],
#CRAppSSMain1_tblDDDisabilityForm [style*="font-size:10px"] {
    font-size: 0.85em !important;
}
/* Radio buttons: the form sets them 18px tall; use the same size as elsewhere */
#CRAppSSMain1_tblDDDisabilityForm input[type=radio],
#CRAppSSMain1_tblDDDisabilityForm input[type=checkbox] {
    width: 1.15em !important;
    height: 1.15em !important;
}

/**** Onboarding questions and forms review ****/
#tblDDOnboarding, #tblOnboardingReview {
    text-align: left;
    background-color: var(--cr-page-bg);
}
#CRAppSSMain1_lblDDMainMessage, span.lblDiscInstructions {
    background-color: var(--cr-page-bg);
    border: none;
}
.OnboardingQuestionsTable, td.OnboardingQuestionsTable { background-color: var(--cr-page-bg); }
.OnboardingQuestionsTableHeader {
    text-align: left;
    border: 1px solid var(--cr-border);
    background-color: var(--cr-page-bg);
}
.OnboardingQuestionsTableTitle {
    font-weight: bold;
    text-align: left;
    border: none;
    background-color: var(--cr-page-bg);
}
.OnboardingQuestionRow {
    font-weight: bold;
    text-align: center;
    border: none;
    background-color: var(--cr-page-bg);
}
.OnboardingQuestionRowR {
    font-weight: bold;
    color: var(--cr-danger);
    text-align: center;
    border: none;
    background-color: var(--cr-page-bg);
}
.OnboardingReviewTable {
    background-color: var(--cr-page-bg);
    border: 1px solid var(--cr-border);
    margin-left: 0;
}
.OnboardingReviewTableTitle {
    font-weight: bold;
    text-align: center;
    padding: 0.3em;
    border: none;
    background-color: var(--cr-page-bg);
}
.OnboardingReviewTableInstructions {
    text-align: left;
    background-color: var(--cr-page-bg);
}
.OnboardingReviewTableHeader {
    text-align: left;
    border: 1px solid var(--cr-border);
    background-color: var(--cr-header-row);
}
td.OnboardingReviewTableMainRow {
    text-align: left;
    border: 1px solid var(--cr-border) !important;
    background-color: var(--cr-page-bg) !important;
}
td.OnboardingReviewTableAltRow {
    text-align: left;
    border: 1px solid var(--cr-border) !important;
    background-color: var(--cr-row-alt) !important;
}

/**** PDF disclosure pages ****/
.PDFHeader, .PDFDisclosureHeader, .PDFFormHeader {
    font-size: 1.15em;
    text-align: left;
    color: var(--cr-heading);
    background-color: var(--cr-page-bg) !important;
}
.PDFDisclosureHeader, .PDFFormHeader { font-weight: bold; }
.PDFDisclosure {
    padding: 0 1.7em 1em;
    color: var(--cr-text);
    background-color: var(--cr-page-bg) !important;
}

/**** Profile Portal: left menu (RadMenu) ****/
/* A clean side menu: one item per line, a little space around each,
   brand color bar and light background on hover. */
.t-col-2:has(> #MainMenuContainer) { padding-right: 0.75em; }
/* display: contents: when an item is clicked, the menu control puts focus on
   its own outer box and the browser scrolls that box into view, so the page
   jumped before the next page loaded. With no outer box there is nothing to
   scroll to, and focus stays on the item that was clicked. */
#CRAppSSMain1_RadMenuMain {
    display: contents;
    position: unset;
    font-family: var(--cr-font);
}
#CRAppSSMain1_RadMenuMain .rmRootGroup {
    border: none !important;
    background: none !important;
    border-right: 1px solid var(--cr-border) !important;
}
#CRAppSSMain1_RadMenuMain a.rmLink,
#CRAppSSMain1_tblLinks td.MMOther a.MainMenu {
    display: block;
    padding: 0.4em 0.6em !important;
    border-left: 3px solid transparent;
    color: var(--cr-text) !important;
    font-size: 1em;
    line-height: 1.4;
    white-space: normal;
    text-decoration: none !important;
}
#CRAppSSMain1_RadMenuMain a.rmLink:hover, #CRAppSSMain1_RadMenuMain a.rmLink:focus-visible,
#CRAppSSMain1_tblLinks td.MMOther a.MainMenu:hover, #CRAppSSMain1_tblLinks td.MMOther a.MainMenu:focus-visible {
    background-color: var(--cr-row-alt) !important;
    border-left-color: var(--cr-primary);
    color: var(--cr-primary) !important;
}
/* Extra links added in setup (they sit below the menu) */
#CRAppSSMain1_tblMenuLinks, #CRAppSSMain1_tblLinks { border-collapse: collapse; }
#CRAppSSMain1_tblMenuLinks { margin-top: 0.5em; }
#CRAppSSMain1_tblLinks td.MMOther { padding: 0; }
.RadMenu .rmRootToggle { margin-left: 1.1em !important; }
/* Current page in the left menu (the menu does not mark it today; see dev list) */
TD.MMCurrent { }

/**** Profile Portal: page layout fixes ****/
/* A column that is alone in its row gets the full width
   (Current Open Positions intro text was squeezed into half the page) */
:is(#frmCRSS, #form2) .t-row > .t-col:only-child { width: 100%; }
/* An empty spacer column in front of a button pushed Save Changes to the
   middle of the page (Change Password, Miscellaneous): drop the spacer */
:is(#frmCRSS, #form2) .t-row > .t-col:not(:has(.row *)):has(+ .t-col input[type=submit], + .t-col input[type=button]) {
    display: none;
}
/* Field tables: rows with no caption stack like the others */
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > label) > tbody > tr,
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > label) > tbody > tr > td,
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > span.CaptionStyle) > tbody > tr,
:is(#frmCRSS, #form2) table:has(> tbody > tr > td > span.CaptionStyle) > tbody > tr > td {
    display: block;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}
/* Instruction and message text written in the editor: use the site font,
   and bring small pasted sizes (9pt, 10px...) up to the page size.
   Larger sizes (titles) are left alone. */
:is(#frmCRSS, #form2) [id*="Inst"] [style*="font-family"], :is(#frmCRSS, #form2) [id*="Message"] [style*="font-family"],
:is(#frmCRSS, #form2) .MainBodyText [style*="font-family"], :is(#frmCRSS, #form2) [id*="Intro"] [style*="font-family"] {
    font-family: var(--cr-font) !important;
}
:is(#frmCRSS, #form2) [id*="Inst"] :is([style*="font-size: 8pt"], [style*="font-size: 9pt"], [style*="font-size: 10pt"], [style*="font-size: 11px"], [style*="font-size: 12px"], [style*="font-size: 13px"], [style*="font-size:9pt"], [style*="font-size:10pt"]),
:is(#frmCRSS, #form2) [id*="Message"] :is([style*="font-size: 8pt"], [style*="font-size: 9pt"], [style*="font-size: 10pt"], [style*="font-size: 11px"], [style*="font-size: 12px"], [style*="font-size: 13px"], [style*="font-size:9pt"], [style*="font-size:10pt"]),
:is(#frmCRSS, #form2) .MainBodyText :is([style*="font-size: 8pt"], [style*="font-size: 9pt"], [style*="font-size: 10pt"], [style*="font-size: 11px"], [style*="font-size: 12px"], [style*="font-size: 13px"], [style*="font-size:9pt"], [style*="font-size:10pt"]) {
    font-size: inherit !important;
}
/* Application Questions page (Profile Portal)
   - Referral rows: caption on the left half, field on the right half -> caption above
   - Question captions are set to X-Small and some answers to 8pt in the page -> page size
   - Save Changes sits in a centered cell -> left, like every other page */
:is(#frmCRSS, #form2) .t-row:has(> .t-col > label):has(> .t-col:not(:first-child) :is(select, input:not([type=hidden]), textarea)) > .t-col {
    width: 100%;
    float: none;
}
:is(#frmCRSS, #form2) .t-row:has(> .t-col > label):has(> .t-col:not(:first-child) :is(select, input:not([type=hidden]), textarea)) > .t-col:first-child {
    padding-top: 0.75em;
}
:is(#frmCRSS, #form2) td[style*="small" i] { font-size: inherit !important; }
:is(#frmCRSS, #form2) select[style*="font-size"], :is(#frmCRSS, #form2) input[style*="font-size"], :is(#frmCRSS, #form2) textarea[style*="font-size"] {
    font-size: 1em !important;
}
:is(#frmCRSS, #form2) td[align=center]:has(> input[type=submit], > input[type=button]) { text-align: left; }

/* Job description page (Profile Portal: click a job title)
   The description comes in with a fixed 878px width, its own fonts, and a
   line break after every tag, which spread it over twice the height.
   Drop the extra breaks next to paragraphs/lists, use the page font and width,
   and show Apply / Submit Referral as the main buttons (they use the Add class). */
#CRAppSSMain1_lblReqJD table, #CRCareers1_tblJobDescrDetail {
    width: 100% !important;
    font-family: var(--cr-font) !important;
    font-size: 1em !important;
}
#CRAppSSMain1_lblReqJD td.MainBodyText { font-size: 1em !important; }
#CRAppSSMain1_lblReqJD td:has(> table) > br,
#CRAppSSMain1_lblReqJD :is(ul, ol) > br,
#CRAppSSMain1_lblReqJD br:has(+ :is(p, ul, ol, table, div, h1, h2, h3, h4)),
#CRAppSSMain1_lblReqJD :is(p, ul, ol, table, div, h1, h2, h3, h4) + br,
#CRAppSSMain1_lblReqJD li br,
#CRAppSSMain1_lblReqJD strong > br {
    display: none;
}
#CRAppSSMain1_lblReqJD p { margin: 0 0 0.5em; }
#CRAppSSMain1_lblReqJD ul, #CRAppSSMain1_lblReqJD ol { margin: 0 0 0.75em; }
#CRAppSSMain1_lblReqJD li { margin: 0.15em 0; }
#CRAppSSMain1_lblReqJD a.Add {
    margin: 1em 0.5em 0.5em 0;
    padding: 0.6em 1.25em;
    font-size: 1em;
    color: var(--cr-button-text) !important;
    background-color: var(--cr-button) !important;
}
#CRAppSSMain1_lblReqJD a.Add:hover {
    background-color: var(--cr-button-hover) !important;
    filter: none;
}

/* Room between a grid and the Add button under it */
a.Add { margin-top: 0.6em; }

/* ==========================================================================
   LARGER SCREENS (over 690px): hide the phone menu
   ========================================================================== */
@media (min-width: 43.1875em) {
    #CRAppSSMain1_RadMenuMobile { display: none; }
}

/* ==========================================================================
   PHONES (690px and under)
   ========================================================================== */
@media (max-width: 43.125em) {
    /* 16px on phones: easier to read, and stops iPhones zooming in on tap */
    .cr-main { font-size: 1em; }

    .cr-wrap { width: 100%; padding-left: 1em; padding-right: 1em; }

    img.cr-logo { height: calc(var(--cr-logo-height) * .8); }

    /* Hide the big left menu; the phone menu takes over */
    #CRAppSSMain1_RadMenuMain, #CRAppSSMain1_RadMenuMainHide { display: none; }
    .t-col-2:has(> #MainMenuContainer) { display: none; }
    .t-col-10 { width: 100%; }
    .t-col { float: none; padding-left: 0; padding-right: 0; }

    /* Every field full width on a phone */
    :is(#frmCRSS, #form2) input[type=text], :is(#frmCRSS, #form2) input[type=email], :is(#frmCRSS, #form2) input[type=tel],
    :is(#frmCRSS, #form2) input[type=number], :is(#frmCRSS, #form2) input[type=password], :is(#frmCRSS, #form2) input:not([type]),
    :is(#frmCRSS, #form2) select, :is(#frmCRSS, #form2) textarea {
        width: 100% !important;
    }
    :is(#frmCRSS, #form2) .password-wrapper { width: 100% !important; }
    :is(#frmCRSS, #form2) input[style*="visibility: hidden"] { width: 0 !important; }

    /* Grids (Education, Employment, Skills, References...): the page around
       them fits the screen, and a wide grid scrolls sideways on its own */
    :is(#frmCRSS, #form2) table:has(table th.DDBackground),
    :is(#frmCRSS, #form2) table:has(table th.DDBackground) > tbody,
    :is(#frmCRSS, #form2) table:has(table th.DDBackground) > tbody > tr,
    :is(#frmCRSS, #form2) table:has(table th.DDBackground) > tbody > tr > td {
        display: block;
        width: 100% !important;
    }
    :is(#frmCRSS, #form2) table:has(> tbody > tr > th.DDBackground) {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        font-size: 0.9em;
    }
    :is(#frmCRSS, #form2) th.DDBackground, :is(#frmCRSS, #form2) td.MainRow, :is(#frmCRSS, #form2) td.AltRow { padding: 0.4em 0.3em; }

    /* Nothing wider than the screen */
    :is(#frmCRSS, #form2) table { max-width: 100% !important; }
    #CRAppSSMain1_tblDisabilityFormContainer, #CRAppSSMain1_tblDDDisabilityForm {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1em !important;
        margin-left: 0;
    }
    /* Disability form: its 3-column list of conditions stacks into one column */
    #CRAppSSMain1_tblDDDisabilityForm, #CRAppSSMain1_tblDDDisabilityForm tbody,
    #CRAppSSMain1_tblDDDisabilityForm tr, #CRAppSSMain1_tblDDDisabilityForm td,
    #CRAppSSMain1_tblDDDisabilityForm table {
        display: block;
        width: 100% !important;
    }

    /* Page name and the Next button: stack instead of wrapping side by side */
    span.HeaderStyle { display: block; }
}

/* Respect users who turn off animation */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
