/* =========================================================================
   portal.css - re-skins the legacy client\Site.Master pages (client portal,
   SignUp, ForgotPassword, error pages) to the 2026 purple design used by
   client\PublicSite.Master + css\custom.css.
   Loaded AFTER style\contentStyle3.css / masterStyle3.css / mobile3.css, so
   it only overrides colors, fonts and chrome; page layouts stay as they were.
   Palette: #5b2d8e (brand), #9257d1 (accent), #241040 (deep), #f4edfb (tint)
   ========================================================================= */

body.drn-portal {
    background: #f7f5fa;
    font-family: "Montserrat", sans-serif;
    margin: 0;
    color: #3d2a55;
}

body.drn-portal #siteBackground {
    overflow: visible;
    font-family: "Montserrat", sans-serif;
}

body.drn-portal .contentLayout,
body.drn-portal input[type="text"],
body.drn-portal input[type="password"],
body.drn-portal textarea,
body.drn-portal select {
    font-family: "Montserrat", sans-serif;
}

/* masterStyle3.css styles every <i> as an absolutely positioned arrow; undo that for icon fonts */
body.drn-portal i.bi {
    position: static;
    border: none;
    padding: 0;
    display: inline-block;
}

/* ---------------------------------------------------------------- header */
.drn-head {
    background: #fff;
    border-bottom: 1px solid #ece6f3;
    position: relative;
    z-index: 50;
}

.drn-head-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.drn-logo {
    text-decoration: none;
    display: inline-block;
    flex: 0 0 auto;
}

.drn-logo-name {
    display: block;
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.15;
    color: #5b2d8e;
    letter-spacing: 1px;
    max-width: 230px;
}

    .drn-logo-name span {
        color: #9257d1;
    }

.drn-logo-tag {
    display: block;
    margin-top: 4px;
    color: #4d4d4d;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* nav (same look as .new_header in custom.css) */
.drn-nav > ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.drn-nav li {
    list-style: none;
    position: relative;
    white-space: nowrap;
}

.drn-nav > ul > li {
    padding: 0 13px;
    border-left: 1px solid #ddd;
    line-height: 2.2;
}

    .drn-nav > ul > li:first-child {
        border-left: none;
    }

.drn-nav a {
    text-decoration: none;
    color: #5b2d8e;
    font-weight: 500;
    font-size: 15px;
}

    .drn-nav a:hover,
    .drn-nav a.ActiveMenu {
        color: #9257d1 !important;
    }

    .drn-nav a .bi {
        font-size: 0.65em;
        vertical-align: middle;
    }

.drn-nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-top: 3px solid #5b2d8e;
    box-shadow: 0 8px 24px rgba(36, 16, 64, 0.15);
    z-index: 1000;
}

.drn-nav li.has-sub:hover > .sub,
.drn-nav li.has-sub:focus-within > .sub {
    display: block;
}

.drn-nav .sub li a {
    display: block;
    padding: 6px 18px;
    line-height: 1.5;
    font-size: 14px;
}

    .drn-nav .sub li a:hover {
        background: #f4edfb;
    }

.drn-contact {
    flex: 0 0 auto;
    text-align: left;
}

    .drn-contact a {
        text-decoration: none;
        font-weight: 700;
        font-size: 19px;
    }

    .drn-contact .bi {
        font-size: 19px;
        vertical-align: middle;
        margin-right: 4px;
    }

.drn-login a, .drn-login .bi {
    color: #9257d1;
}

.drn-login a + a {
    margin-left: 0;
}

.drn-phone {
    margin-top: 6px;
}

    .drn-phone a, .drn-phone .bi {
        color: #5b2d8e;
    }

/* "Last login" box the code-behind fills for a few clients - was absolutely positioned */
.drn-head .loginInfo.drn-lastlogin {
    position: static;
    width: auto;
    height: auto;
    margin-top: 4px;
    font-size: 11px;
    color: #6b5a80;
}

    .drn-head .loginInfo.drn-lastlogin span {
        display: block;
    }

.drn-menu-btn {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #5b2d8e;
}

/* mobile side menu */
.drn-sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    z-index: 9999;
}

    .drn-sidenav.open {
        width: 270px;
    }

    .drn-sidenav a {
        display: block;
        padding: 7px 18px;
        text-decoration: none;
        font-size: 16px;
        color: #5b2d8e;
        font-weight: 500;
        white-space: nowrap;
    }

        .drn-sidenav a:hover {
            color: #9257d1;
        }

    .drn-sidenav .drn-closebtn {
        position: absolute;
        top: -6px;
        right: 20px;
        font-size: 44px;
        color: #000;
        font-weight: 300;
        cursor: pointer;
    }

.drn-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 999;
}

    .drn-overlay.open {
        display: block;
    }

/* --------------------------------------------- signed-in account strip */
/* TopMenu.ascx (Orders / Enter New Order / Change Password / Users / Hello ...) */
.drn-head .atopStyle {
    display: block !important;
    position: static;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, #241040 0%, #5b2d8e 60%, #8757c9 100%);
    font-family: "Montserrat", sans-serif;
    padding: 0 max(15px, calc((100% - 1110px) / 2));
    overflow: hidden;
}

    .drn-head .atopStyle a,
    .drn-head .atopStyle .userLbl {
        color: #fff;
        font-size: 14px;
        line-height: 42px;
        padding: 0 22px 0 0;
        font-weight: 500;
    }

        .drn-head .atopStyle a:hover,
        .drn-head .atopStyle a.asideActive {
            color: #e3d3f7 !important;
            text-decoration: underline;
        }

    .drn-head .atopStyle .userLbl {
        float: right;
        width: auto;
        margin: 0 0 0 18px;
        padding: 0;
        color: #e3d3f7;
        font-size: 13px;
    }

/* ---------------------------------------------------------- content card */
body.drn-portal .siteSheet {
    margin: 30px auto 40px auto;
    width: 1000px;
    max-width: calc(100% - 30px);
}

body.drn-portal .contentLayout {
    width: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(36, 16, 64, 0.08);
    border-top: 4px solid #5b2d8e;
    padding: 24px 20px;
    color: #3d2a55;
}

body.drn-portal .contentLayout:before,
body.drn-portal .contentLayout:after {
    background: transparent;
}

body.drn-portal h1 {
    color: #5b2d8e;
    font-weight: 700;
}

body.drn-portal h2 {
    color: #5b2d8e;
}

body.drn-portal .userHeader,
body.drn-portal .txtColor,
body.drn-portal .indexBox2 h1,
body.drn-portal .width1 p {
    color: #5b2d8e !important;
}

/* links inside page content (were orange #F28124) */
body.drn-portal .paddedTable td a,
body.drn-portal .emailLink1,
body.drn-portal .emailLink2,
body.drn-portal .articleStyle a,
body.drn-portal .article a,
body.drn-portal #ctl00_MainContent_A1,
body.drn-portal #tiffLink,
body.drn-portal .forgotPass:hover {
    color: #7a3fc0;
}

/* grids / details views */
body.drn-portal .HeaderStyle1,
body.drn-portal .FooterStyle1 {
    color: #fff;
    background: #5b2d8e;
    border-color: #5b2d8e;
    font-size: 16px;
}

body.drn-portal .FieldHeaderStyle {
    color: #5b2d8e;
    font-weight: 600;
    background: #faf7fd;
}

body.drn-portal .RowStyle10,
body.drn-portal .FieldHeaderStyle,
body.drn-portal .usersGrid {
    border-color: #e2d8ee;
}

body.drn-portal .gridDivider,
body.drn-portal .divider {
    background: #e2d8ee !important;
}

body.drn-portal .dateValidator {
    background-color: #9257d1;
    color: #fff;
}

/* buttons (were gold #ecb101 with black text) */
body.drn-portal input[type="submit"],
body.drn-portal input[type="button"],
body.drn-portal .contentButton,
body.drn-portal .myButton,
body.drn-portal .signUpBtn {
    background: #5b2d8e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600 !important;
    transition: background 0.2s;
}

    body.drn-portal input[type="submit"]:hover,
    body.drn-portal input[type="button"]:hover,
    body.drn-portal .contentButton:hover,
    body.drn-portal .myButton:hover,
    body.drn-portal .signUpBtn:hover {
        background: #9257d1 !important;
    }

    body.drn-portal input[type="submit"][disabled],
    body.drn-portal input[type="button"][disabled] {
        background: #b9a8cf !important;
        cursor: default;
    }

/* jQuery UI dialogs: keep the house dialog, purple title bar */
body.drn-portal .ui-dialog .ui-dialog-titlebar {
    background: #5b2d8e;
    border-color: #5b2d8e;
    color: #fff;
}

body.drn-portal .ui-dialog .ui-dialog-buttonpane button {
    background: #5b2d8e;
    color: #fff;
    border-color: #5b2d8e;
}

/* ---------------------------------------------------------------- footer */
.drn-foot {
    background: #3d1b66;
    color: #fff;
    padding: 50px 15px 30px 15px;
    font-family: "Montserrat", sans-serif;
}

.drn-foot-inner {
    max-width: 1110px;
    margin: 0 auto;
}

.drn-foot-cols {
    display: flex;
    gap: 30px;
}

    .drn-foot-cols > div {
        flex: 1 1 0;
    }

.drn-foot h6 {
    color: #c9a7ef;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.drn-foot ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drn-foot li {
    font-size: 14px;
    line-height: 1.9;
}

.drn-foot a {
    color: #e9dcf8;
    text-decoration: none;
}

    .drn-foot a:hover {
        color: #fff;
    }

.drn-foot-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 24px 0 0 0;
    padding-top: 14px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
    .drn-nav > ul > li {
        padding: 0 8px;
    }

    .drn-nav a {
        font-size: 13px;
    }

    .drn-contact a {
        font-size: 16px;
    }
}

@media (max-width: 860px) {
    .drn-nav {
        display: none;
    }

    .drn-menu-btn {
        display: block;
        order: -1;
    }

    .drn-head-inner {
        gap: 12px;
    }

    .drn-logo-name {
        font-size: 1.15rem;
    }

    .drn-logo-tag {
        display: none;
    }

    .drn-contact a, .drn-contact .bi {
        font-size: 14px;
    }

    .drn-foot-cols {
        flex-direction: column;
        gap: 18px;
    }

    .drn-head .atopStyle .userLbl {
        display: none;
    }
}

@media (max-width: 640px) {
    body.drn-portal .siteSheet {
        margin-top: 15px;
    }

    body.drn-portal .contentLayout {
        padding: 4%;
        width: auto;
    }
}

/* footer stays at the bottom on short pages */
body.drn-portal > form {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.drn-portal #siteBackground {
    flex: 1 0 auto;
    height: auto;
    min-height: 0;
}

@media (max-width: 560px) {
    .drn-head-inner {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .drn-logo {
        flex: 1 1 auto;
    }

    .drn-contact {
        flex: 1 0 100%;
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #ece6f3;
        padding-top: 6px;
    }

    .drn-phone {
        margin-top: 0;
    }

    .drn-head .loginInfo.drn-lastlogin {
        display: none;
    }
}

/* order lists (ReportsDetails GridStyle): header row was orange #F28124 */
body.drn-portal .HeaderStyle,
body.drn-portal .HeaderStyle th,
body.drn-portal .HeaderStyle a {
    color: #5b2d8e !important;
    font-weight: 600;
}

body.drn-portal .HeaderStyle th {
    border-bottom: 2px solid #5b2d8e;
}

body.drn-portal .GridStyle {
    color: #3d2a55;
}

/* small form boxes (Change Password, Forgot Password, Sign Up): the old fixed
   heights (.ChangePassArea1 202px) were sized for Trebuchet; let them grow */
body.drn-portal .newLoginArea {
    height: auto !important;
    border: 1px solid #e2d8ee;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(36, 16, 64, 0.06);
    padding-bottom: 18px;
}

body.drn-portal .newLoginArea .signInBtn {
    width: auto;
    margin: 14px 0 0 0 !important;
}

body.drn-portal .newLoginArea .signInBtn input[type="submit"] {
    width: 100%;
}

body.drn-portal .newLoginArea input[type="password"],
body.drn-portal .newLoginArea input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    border: 1px solid #c9bcd9;
    border-radius: 4px;
    padding: 0 6px;
}
