html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #630b1a;
    color: #212529;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

body > form {
    min-height: 100vh;
}

.tpa-master-proxy {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.tpa-refresh-shell {
    min-height: 100vh;
    background: #f0f0f0;
}

.tpa-member-header {
    position: relative;
    z-index: 1;
    width: 100%;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1), 0 3px 5px rgba(0, 0, 0, 0.1);
}

.tpa-utility-nav {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    padding: 0 30px 0 42px;
    background: #630b1a;
}

.tpa-utility-nav a {
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.52px;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.tpa-utility-nav a:hover,
.tpa-utility-nav a:focus {
    text-decoration: underline;
}

.tpa-main-nav {
    position: relative;
    display: flex;
    height: 105px;
    min-height: 105px;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
    padding: 0 43px;
    border-bottom: 1px solid #e9ecef;
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../images/manage/nav-bg.png") center 48% / cover no-repeat;
}

.tpa-profile-active .tpa-main-nav {
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../images/manage/nav-bg-profile.png") center 22% / cover no-repeat;
}

.tpa-calendar-active .tpa-profile-tabs {
    display: none;
}

.tpa-calendar-active .tpa-main-nav {
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../images/manage/nav-bg-calendar.png") center top / cover no-repeat;
}

.tpa-calendar-active .tpa-member-nav-profile {
    color: #212529 !important;
}

.tpa-calendar-active .tpa-member-nav-profile:after {
    background: transparent;
}

.tpa-main-logo {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100.737px;
    height: 100.737px;
    flex: 0 0 100.737px;
    align-items: center;
    justify-content: center;
}

.tpa-main-logo img {
    display: block;
    width: 100.737px;
    height: 100.737px;
}

.tpa-member-nav {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

.tpa-member-nav-link {
    position: relative;
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #212529 !important;
    cursor: pointer;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    padding: 16px 14px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.tpa-member-nav-link:after {
    position: absolute;
    right: 14px;
    bottom: 20px;
    left: 14px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    content: "";
}

.tpa-member-nav-link:hover,
.tpa-member-nav-link:focus,
.tpa-member-nav-link-active {
    color: #630b1a !important;
    outline: 0;
}

.tpa-member-nav-link:hover:after,
.tpa-member-nav-link:focus:after,
.tpa-member-nav-link-active:after {
    background: #630b1a;
}

.tpa-profile-tabs {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 31px 31px 0;
}

.sectionTabs {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    overflow: visible;
    border-bottom: 1px solid #d2d2d2;
}

.sectionTab {
    display: flex;
    width: auto;
    min-height: 51px;
    float: none;
    flex: 0 0 auto;
    min-width: auto;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #606060 !important;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.sectionTabInner {
    display: block;
    margin: 0;
    overflow: visible;
    text-overflow: clip;
}

.sectionTab:hover,
.sectionTab:focus {
    background: transparent;
    color: #630b1a !important;
}

.tabDoubleLine,
.tabTripleLine {
    line-height: 20px;
}

.tabSelected {
    position: relative;
    border-bottom-color: #212529;
    color: #212529 !important;
    font-weight: 700;
    background: transparent;
}

.tabSelected:after {
    content: none;
}

.tpa-profile-home-tab {
    display: none;
}

#lnkRenew {
    margin-left: 0 !important;
}

#lnkRenew .sectionTabInner {
    color: inherit !important;
    font-size: inherit !important;
}

.tpa-logout-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 22px;
    border: 1px solid #e9ecef;
    border-radius: 7px;
    color: #212529 !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}

.tpa-logout-button:hover,
.tpa-logout-button:focus {
    background: rgba(255, 255, 255, 0.35);
}

.tpa-logout-button img {
    width: 17px;
    height: 17px;
}

.tpa-refresh-main {
    background: #f0f0f0;
}

.tpa-member-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 21px 43px;
    background: #630b1a;
}

.tpa-member-footer-links {
    display: flex;
    align-items: center;
    gap: 43px;
}

.tpa-member-footer a,
.tpa-member-footer-copy {
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.74px;
    line-height: 22px;
    text-decoration: none;
    white-space: nowrap;
}

.tpa-member-footer a:hover,
.tpa-member-footer a:focus {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .tpa-main-nav {
        height: auto;
        min-height: 105px;
        align-items: center;
        padding: 0 24px;
    }

    .tpa-member-nav {
        justify-content: center;
        gap: 8px;
    }

    .tpa-member-nav-link {
        padding-right: 12px;
        padding-left: 12px;
    }

    .tpa-profile-tabs {
        padding-right: 16px;
        padding-left: 16px;
    }

    .sectionTab {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 13.5px;
    }
}

@media (max-width: 760px) {
    .tpa-utility-nav {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding: 10px 20px;
    }

    .tpa-main-nav {
        flex-wrap: wrap;
    }

    .tpa-main-logo {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .tpa-main-logo img {
        width: 76px;
        height: 76px;
    }

    .tpa-member-nav {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .sectionTabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 14px;
        border-bottom: 0;
    }

    .sectionTab {
        flex: 0 1 auto;
        min-height: 44px;
        border-bottom: 1px solid #d2d2d2;
        font-size: 12.5px;
    }

    .tpa-member-footer,
    .tpa-member-footer-links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .tpa-member-footer {
        padding: 20px 24px;
    }
}
