/* Program overrides applied AFTER the wireframe style.css (EntryView load order:
   framework sheets -> style.css -> style-override.css -> override.css).
   The wireframe (localhost:6801) is the source of truth for pre-login visuals. */

/* Utility-bar Login pill: the wireframe styles the TORCH-rendered login button by its
   generated element id (style.css ~4522); our header renders a plain anchor to
   #/Main/Login, so the same pill look is re-applied to the anchor here. */
.utility .btnLinkLogin {
    padding: 0 !important;
}

.utility .btnLinkLogin a {
    display: inline-block !important;
    box-sizing: border-box !important;
    padding: 10px 50px !important;
    background-color: #FF6A39 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all .5s ease-out;
}

.utility .btnLinkLogin a:hover,
.utility .btnLinkLogin a:focus {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

@media only screen and (max-width: 47.9375em) {
    .utility .btnLinkLogin a {
        display: block !important;
        width: 100% !important;
    }
}

/* "Download All ..." resource links: the framework sheet /Resources/AppFramework/CSS/custom.css
   (clear-rems) paints .btnLink as an orange slab; the wireframe defines .btnLink as a bare
   orange text link. Neutralize the slab properties so the wireframe style wins. */
a.btnLink.btn-block {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.first-band .containerLogo .logo img {
    max-width: 100%;
    height: auto;
    max-height: 110px; /* ~129px wide, legible in the header */
}

/* Certified Participant Locator web part on the pre-login shell: custom.css paints
   a.locDirections as a navy pill with WHITE text, and style.css turns it back into a plain link on
   a white background without setting a colour, so the link is white on white and invisible.
   Restore the wireframe's link colour. The unique URL page replaces it with the signed-in outlined
   Directions button (the .content-locator block below); post-login pages load secure.css instead of
   this sheet. */
a.locDirections,
a.locDirections:hover,
a.locDirections:focus {
    color: #33BEFF;
}

/* Certified Participant Locator on the pre-login shell (the unique URL page): the search panel and
   the results take the look of the signed-in locator pages. The web part is shared with the
   Prescriber, Designee and Pharmacy portal pages, which style it from secure.css; this sheet loads
   only before sign-in, and there the locator page is the only one carrying .content-locator, so every
   rule below is scoped to it and no other public page changes. The values are secure.css's, resolved,
   because the pre-login sheets do not define its --bs-* variables. */

.content.content-locator {
    --locator-font-size: 16px;
}

@media (max-width: 1400px) {
    .content.content-locator {
        --locator-font-size: 15px;
    }
}

@media (max-width: 1280px) {
    .content.content-locator {
        --locator-font-size: 14px;
    }
}

@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
    .content.content-locator {
        --locator-font-size: 14px;
    }
}

@media (max-width: 992px) {
    .content.content-locator {
        --locator-font-size: 14px;
    }
}

@media (max-width: 767px) {
    .content.content-locator {
        --locator-font-size: 13px;
    }
}

@media (max-width: 576px) {
    .content.content-locator {
        --locator-font-size: 12px;
    }
}

.content.content-locator .certified-participant-locator {
    color: #6e6259;
    font-size: var(--locator-font-size);
    line-height: 1.5;
}

    /* Rows inside the panel and the results lose Bootstrap's negative gutter, which pushed the
       instructions and the fields past the panel's left edge. The outer row keeps it, so the panel
       lines up with the page heading as on the other public pages. */
    .content.content-locator .LocatorForm .row,
    .content.content-locator .locatorResults .row {
        margin-left: 0;
        margin-right: 0;
    }

/* Search panel */
.content.content-locator .LocatorForm {
    margin: 15px 0;
    padding: 0 15px 15px 15px;
    background: #f9f9f9;
    border: 1px solid #aaa;
    box-shadow: none;
}

    .content.content-locator .LocatorForm .ubc-data-input > label.control-label {
        margin-bottom: 5px;
        padding-left: 0;
        background: transparent;
        color: #6e6259;
        font-size: 0;
        font-weight: 700;
    }

        .content.content-locator .LocatorForm .ubc-data-input > label.control-label::before {
            content: none;
        }

        /* The validation "!" is the label's ::after and would inherit the label's zero size. */
        .content.content-locator .LocatorForm .ubc-data-input > label.control-label::after {
            font-size: 14px;
        }

        .content.content-locator .LocatorForm .ubc-data-input > label.control-label [data-ubc-label-content] {
            font-size: 14px;
            font-weight: 700;
            line-height: 1.5;
        }

            .content.content-locator .LocatorForm .ubc-data-input.required > label.control-label [data-ubc-label-content]::before {
                color: #d43f3a;
                content: "\2a";
                font-weight: 600;
                margin-right: 2px;
            }

    /* "Search By:" sits on one line with its four options and carries no required mark. */
    .content.content-locator .LocatorForm div.SearchBySCID {
        padding-top: 24px;
        margin-bottom: 8px;
    }

        .content.content-locator .LocatorForm div.SearchBySCID > label.control-label [data-ubc-label-content]::before {
            display: none;
        }

        .content.content-locator .LocatorForm div.SearchBySCID div.radio {
            display: inline-block;
            margin-top: 0;
            margin-left: 6px;
        }

            .content.content-locator .LocatorForm div.SearchBySCID div.radio label {
                margin-bottom: 0;
                padding-left: 6px !important;
                font-size: var(--locator-font-size);
                font-weight: 700;
            }

                .content.content-locator .LocatorForm div.SearchBySCID div.radio label::before {
                    top: 3.5px;
                }

                .content.content-locator .LocatorForm div.SearchBySCID div.radio label::after {
                    top: 7px;
                }

    .content.content-locator .LocatorForm p.txtInstructions {
        margin: 10px 0;
        padding: 0;
        color: #6e6259;
        font-size: var(--locator-font-size);
        font-weight: 500;
        line-height: 1.375em;
    }

    /* Field, radius and Search on one row, Search aligned with the boxes. */
    .content.content-locator .LocatorForm .search-form-horizontal {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 10px;
    }

        .content.content-locator .LocatorForm .search-form-horizontal.ps-0 {
            padding-left: 0;
        }

        .content.content-locator .LocatorForm .search-form-horizontal > .form-group.flex-fill {
            flex: 1 1 auto;
            min-width: 200px;
            margin-bottom: 8px;
        }

    .content.content-locator .LocatorForm .form-control {
        height: 36px;
        border: 1px solid #ccc;
        border-radius: 0;
        font-size: var(--locator-font-size);
        font-weight: normal;
    }

        .content.content-locator .LocatorForm .form-control:focus {
            border: 0;
            border-bottom: 2px solid #522398;
            background: #f4f6f9;
            box-shadow: none;
            outline: none;
        }

    .content.content-locator .LocatorForm select.form-control {
        font-family: inherit;
    }

        .content.content-locator .LocatorForm select.form-control:focus {
            background: #fff;
        }

    .content.content-locator .LocatorForm .search-form-horizontal button.search {
        width: 140px;
        height: 50px;
        margin: 0 0 6px 0;
        padding: 10px;
        border: 2px solid #06a7e0;
        border-radius: 0;
        background-color: #06a7e0;
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
        color: #fff;
        font-family: inherit;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.42857143;
        text-align: left;
        text-transform: uppercase;
        white-space: normal;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

        .content.content-locator .LocatorForm .search-form-horizontal button.search:focus {
            outline: 0;
        }

        .content.content-locator .LocatorForm .search-form-horizontal button.search:hover {
            border: 2px solid #06a7e0;
            background-color: #fff;
            color: #06a7e0;
        }

        .content.content-locator .LocatorForm .search-form-horizontal button.search i {
            margin-right: 5px;
            padding: 5px;
            border-radius: 100%;
            color: #fff;
            font-size: var(--locator-font-size);
            font-weight: 900;
        }

        .content.content-locator .LocatorForm .search-form-horizontal button.search:hover i {
            color: #06a7e0;
        }

/* Result tabs */
.content.content-locator .certified-participant-locator .mobile-tabs {
    display: flex;
    align-items: center;
}

.content.content-locator #locatorTabs {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

    .content.content-locator #locatorTabs > li {
        z-index: 10;
        margin: 0 5px -1px 0;
        padding: 0;
        text-align: left;
    }

        .content.content-locator #locatorTabs > li > a,
        .content.content-locator #locatorTabs > li > a:focus {
            border: 1px solid #aaa;
            background: #f9f9f9;
            color: #6e6259;
            font-size: var(--locator-font-size);
            font-weight: 600;
            text-align: left;
        }

        .content.content-locator #locatorTabs > li > a:hover {
            border: 1px solid #522398;
            background-color: #e7edf3;
            color: #522398;
            opacity: 1;
        }

        .content.content-locator #locatorTabs > li.active > a,
        .content.content-locator #locatorTabs > li.active > a:hover,
        .content.content-locator #locatorTabs > li.active > a:active,
        .content.content-locator #locatorTabs > li.active > a:focus {
            border: 1px solid #522398;
            background: #522398;
            box-shadow: none;
            color: #fff;
            font-weight: bold;
            opacity: 1;
            outline: 0;
        }

.content.content-locator .certified-participant-locator .tab-content {
    margin: 0 0 15px 0;
    padding: 15px 15px 0 15px;
    border: 1px solid #aaa;
    background: #f9f9f9;
    box-shadow: none;
}

    .content.content-locator .certified-participant-locator .tab-pane > .frmContainerDisplay {
        margin: 0 0 15px 0;
        padding: 0 15px 15px 0;
        border: 1px solid #aaa;
        background: #f9f9f9;
        box-shadow: none;
    }

/* Map and result cards */
.content.content-locator .locationList {
    height: 625px;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .content.content-locator .locationList,
    .content.content-locator .locatorResults .map {
        height: 700px;
    }
}

.content.content-locator .locationItem {
    display: table;
    width: 100%;
    margin-bottom: 5px;
    padding: 10px 5px;
    border: 1px solid #eee;
    background: #f3f3f3;
}

.content.content-locator .locationItem.active {
    background: #fcf2f8;
}

.content.content-locator .locPin {
    display: table-cell;
    width: 30px;
    vertical-align: top;
}

.content.content-locator .locDtls {
    width: 95%;
    font-size: var(--locator-font-size);
    line-height: 1.5;
}

.content.content-locator .locName {
    margin-bottom: 0;
    color: #182853;
    font-weight: 700;
    text-transform: uppercase;
}

.content.content-locator .locAddr,
.content.content-locator .locAddr > div {
    margin-bottom: 0;
    line-height: 1.5;
}

.content.content-locator .locMiles {
    display: table-cell;
    width: 15%;
    padding-right: 0;
    font-size: var(--locator-font-size);
    font-weight: 500;
    text-align: start;
    vertical-align: top;
}

    .content.content-locator .locMiles p {
        margin: 0 0 1em 0;
        padding: 0;
        line-height: 28px;
    }

.content.content-locator a.locDirections {
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px solid #89b6d3;
    border-radius: 0;
    background: #fff;
    color: #89b6d3;
    font-size: var(--locator-font-size);
    font-weight: 600;
    line-height: 1.5;
    text-align: start;
    text-transform: uppercase;
}

    .content.content-locator a.locDirections:hover {
        background: #89b6d3;
        color: #fff;
        text-decoration: none;
    }

.content.content-locator .mapNoResultFound {
    margin: 10px 0 20px 0;
    border: 0;
    border-left: 5px solid #0057a7;
    border-radius: 0;
    background: #e5eef6;
    box-shadow: none;
    color: #522398;
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
}

@media (max-width: 767px) {
    .content.content-locator .LocatorForm .search-form-horizontal > .form-group.flex-fill {
        flex: 1 1 100%;
    }

    .content.content-locator .certified-participant-locator .mobile-tabs {
        flex-direction: column;
        align-items: start;
    }

        .content.content-locator .certified-participant-locator .mobile-tabs .custom-tabs {
            order: 1;
        }

    .content.content-locator #locatorTabs > li {
        margin: 0;
    }
}

/* Contact Us: the email address is one unbroken word, so where the card is narrower than the
   address it ran past the card border and the end was clipped. Let it wrap inside the card;
   where it fits it stays on one line, as in the approved screenshot. */
.content.contactUs .calloutText a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Prescriber Enrollment (NPI step and enrollment form, including the Instructions web part):
   the wireframe's orange form chrome (style.css .frmContainer / .frmTitle / .frmHeaderInvert,
   #e35205) is blue on these pages. Scoped to .prescriberEnrollmentForm so the other forms keep
   their colours, the same way secure.css scopes .hcsPharmForm and .auditQuestionnaireForm. */
.prescriberEnrollmentForm .frmContainer {
    border-color: #33BEFF;
    border-top-color: #c2ebff;
}

.prescriberEnrollmentForm .frmTitle,
.prescriberEnrollmentForm .frmHeaderInvert {
    background: #33BEFF;
}

/* Prescriber Enrollment success page, "Download All Patient Resources": it renders as a <button>,
   so the a.btnLink.btn-block rule above does not reach it and the framework's orange slab shows.
   Give it the same wireframe look: bold orange text, no background or border. */
.btnLink.btn-block.download-all,
.btnLink.btn-block.download-all:hover,
.btnLink.btn-block.download-all:focus {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #FF6A39 !important;
    font-weight: 700;
    white-space: normal;
}

/* Prescriber Enrollment form: layout and signature pad styles,
   scoped to .prescriberEnrollmentForm so other forms are unchanged. */

/* Phone / Extension / Fax row: bottom-align each column's input, so a label that wraps onto two
   lines ("Office Phone Number") does not push its box below its neighbours. */
.prescriberEnrollmentForm .display-flex {
    display: flex;
    flex-wrap: wrap;
}

    .prescriberEnrollmentForm .display-flex > [class*='col-'] {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
    }

/* Signature pad: solid blue Clear Signature button with white text, left-aligned with the pad, no
   tab-strip divider or extra space around the button, white pad, and no "I authorize..." note
   (hidden here rather than soft-deleting the label, so the other signature pads keep it). The
   10px under the button keeps it off the "Please use your mouse..." line. */
.prescriberEnrollmentForm li.ubc-data-input-clearSignature {
    width: auto !important;
    float: left;
    padding: 0 0 10px 0;
}

    .prescriberEnrollmentForm li.ubc-data-input-clearSignature:before {
        content: none !important;
    }

    .prescriberEnrollmentForm li.ubc-data-input-clearSignature > a,
    .prescriberEnrollmentForm li.ubc-data-input-clearSignature > a:focus,
    .prescriberEnrollmentForm li.ubc-data-input-clearSignature > a:hover {
        background: #23a5d9;
        border: 1px solid #2eada4;
        color: #fff;
        font-size: 16px;
        text-decoration: none !important;
    }

.prescriberEnrollmentForm .signaturePadTab .nav-tabs {
    border-bottom: none;
    margin-top: 0;
}

.prescriberEnrollmentForm .signaturePad > br {
    display: none;
}

/* At 992px and below the framework can size the pad wider than the form column (it sizes it from
   the window width); max-width scales it down to the column instead of spilling past the agreement
   panel. */
.prescriberEnrollmentForm .ubc-data-input-signaturePad {
    border: 1px solid #aaa !important;
    background: #fff !important;
    max-width: 100%;
}

.prescriberEnrollmentForm [data-input-signaturePad-sign-note] {
    display: none;
}

/* Prescriber Agreement: the framework list styles (CRMFramework ul.listItemBullet margin-top and
   li margin-bottom, Normalize nested ul margin) and the sub-bullet padding-bottom in style.css
   open extra gaps under the During treatment / At all times headings and around the
   "I understand the:" sub-bullets. Space every bullet like the Before treatment initiation list. */
.prescriberEnrollmentForm .prescriber-enrollment-agreement-ul,
.prescriberEnrollmentForm ul.listItemBullet > li > ul {
    margin-top: 0;
}

    .prescriberEnrollmentForm ul.listItemBullet > li > ul > li {
        margin-bottom: 0;
        padding-top: 1px;
        padding-bottom: 1px;
    }

/* Phone layout of the pre-login pages. */

/* The wireframe drops bulleted-list links and numbered-list items to 10px on phones, so a document
   name reads smaller than the sentence around it and the Home goals and the enrollment instructions
   are hard to read. Keep them at the page's text size. */
@media only screen and (max-width: 47.9375em) {
    ul.listItemBullet a,
    ol.listItemNum > li {
        font-size: inherit;
    }

    /* Third-level bullets (Patient Counseling) add a 27px side padding on top of two list indents,
       which leaves a narrow column of a few words per line. */
    ul.listItemBullet ul.padding {
        padding: 0 0 0 10px;
    }

    /* Home goals box: the wireframe raises its padding to 30px on phones (20px on desktop), which
       with the list's own indent left about 60% of the screen for the text. */
    .containerEmphasis {
        padding: 20px 15px;
    }

        .containerEmphasis ol.listItemNum {
            margin-left: 0;
        }

    /* Certification steps stack on phones, but they kept the desktop table's -15px offset and side
       margins, so each card ran past the right edge of the screen and the page scrolled sideways.
       Fit the cards to the column, leave room above each for its STEP badge and pad the text evenly.
       The arrow badge between the cards is a desktop cue; the wireframe hides its image on phones
       (hidden-xs), which left an empty circle, so the badge goes too. */
    .steps-container {
        display: block;
        margin: 15px 0;
    }

    .steps-container .step {
        width: auto;
        margin: 30px 0 0;
    }

    .steps-container .stepText {
        display: block;
        width: auto;
        padding: 0 15px 15px;
    }

    .steps-container .stepIcon {
        display: none;
    }
}

/* Menu button: the framework's CRMFramework.css pins every .icon-bar to the middle of the window
   (position: fixed), so the button's three bars leave it and it shows as an empty blue square.
   Keep the bars inside the button, as secure.css does after sign-in. */
.navbar-toggle .icon-bar {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
}

/* Certification steps: the document links are bold (docEmphasis) but the Prescribing Information,
   Online and email links were not, so the links in one card had two weights. Give every link in the
   steps the docEmphasis weight. */
.steps-container .stepText a {
    font-weight: 900;
}
