/**
 * advisorPortal.css
 *
 * All the CSS for the advisor portal
 *
 * Table of Contents:
 * 1. General CSS                   - anything for multiple pages or the page in general
 * 2. Advisor Menu                  - anything related to the left menu
 * 3. Top Section of the content    - the gap on the main side and up
 * 4. Couples page                  - the couples page
 * 5. Groups page                   - the groups page
 * 6. Invite page                   - the invite page
 * 7. Codes page                    - the codes page
 * 8. Modals                        - everything modals
 * 9. Settings                      - the settings page
 *
 * @author Sarah Stensland
 * @version 1/24/22 
 */


/* -----------------------------------------------------SECTION 1: GENERAL CSS----------------------------------------------------- */


/* the div containing the main content of the portal pages */

.advisorContent {
    display: flex;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 14px;
    max-width: 1000px;
    min-width: 750px;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    height: fit-content;
}


/* any a element in the main content */

.advisorContent a,
.advisorContent button {
    background-color: #182258;
    color: white;
    border-radius: 4px;
    box-shadow: 1px 2px 6px #00000029;
    padding: 10px;
}

.advisorContent button {
    padding: 8px 10px 4px;
    border-radius: 6px;
}


/* any a element OR on an a element with class archive nested inside a td element */

.advisorContent a:hover,
td:hover a.archive {
    text-decoration: none;
    background-color: #706D96;
    color: white;
}


/* the big div holding the main content of the advisor page */

.advisorContent #mainContent {
    padding: 25px;
}


/* images inside a elements in the main content */

#mainContent a img,
#mainContent button img {
    height: 25px;
    width: 25px;
    margin-right: 15px;
    margin-bottom: 5px;
}


/* the table on the main content */

.advisorTable {
    width: 100%;
    margin-top: 25px;
    overflow: auto;
    height: fit-content;
}

.advisorTable td,
.advisorTable th {
    text-align: center;
}

.advisorTable td:first-child,
.advisorTable th:first-child,
.advisorTable td:nth-child(2),
.advisorTable th:nth-child(2) {
    text-align: left;
}


/* the td elements of the main table */

.advisorContent td {
    padding: 5px 10px;
    width: 25%;
}


/* the headers of the main table */

.advisorTable th {
    border: none;
    color: #182258;
    padding: 5px 0;
}


/* the show class, determines certain trs background color */

.advisorTable .show {
    background-color: #E7E8EE;
}


/* the buttons in the table */

.advisorTable a {
    padding: 5px 10px;
}


/* the buttons with the class archive in the table */

.advisorTable a.archive {
    background-color: #8B0368;
    color: white;
    padding: 5px 30px;
}

.advisorTable a.groupModalBtn {
    color: white;
    background-color: #03A696;
    border: #03A696 1px solid;
    padding: 5px 30px;
}

.advisorTable a.groupModalBtn:hover {
    color: #03A696 !important;
    background-color: white;
}

#mainContent a.coupleModalBtn {
    color: #03A696;
    background-color: white;
    border: #03A696 1px solid;
    padding: 5px 30px;
}

.advisorContent a.greenBtn:hover {
    padding-top: 8px;
    background-color: #3B4673;
    cursor: pointer;
}

#mainContent a.coupleModalBtn:hover,
.advisorContent a.greenBtn {
    color: white;
    background-color: #03A696;
}


/* any a element with the class archive */

a.archive {
    background-color: #8B0368;
    color: white;
}

a.antiArchive {
    color: #8B0368 !important;
    background-color: white;
    border: 1px solid #8B0368;
}

a.antiArchive:hover {
    color: white !important;
    background-color: #3B4673;
    border-color: #3B4673;
}

a.purpleBg {
    color: white;
    background-color: #3B4673;
    border: 1px solid #3B4673;
}

a.purpleBg:hover {
    background-color: #8B0368;
}


/* the rows of the table */

.advisorTable tr {
    background-color: white;
    height: 50px;
}


/* the down arrow on the couple tables */

.downArrow {
    width: 15px;
    height: 15px;
    margin-left: 50%;
    transform: translateX(-50%);
}


/* any a element with class archive being hovered over that isn't an href */

a.archive:not([href]):not([tabindex]):hover {
    color: white;
}


/* images displayed when the couples / groups tables aren't there */

#noTableImg {
    width: 25%;
    opacity: .5;
    margin-left: 50%;
    transform: translateX(-50%);
}


/* Class of things to hide on a phone (like the space) */

.portalPhoneHide {
    display: block;
}


/* The advisor menu navigation buttons (the drop down menu, only shows for small screens) */

.phoneNav {
    display: none;
}


/* Purchase Additional Codes Modal CSS (it's used on settings and invite pages) */


/* Purchase Additional Codes Modal Title */

#purchaseCodes.modal .modal-title {
    color: #3B4673;
    font-size: 26px;
}


/* Number of current codes in the purchase additional codes modal */

#numCodes {
    color: #268178;
    text-align: center;
    margin-top: -15px;
}


/* Outer div with the prices<->number of codes */

.numCodeBox {
    border: #3B4673 1px solid;
    border-radius: 10px;
    box-shadow: 3px 2px 6px #00000029;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}


/* Outer div to fix spacing for first (price, number) pair */

.numCodeBox>div {
    padding-top: 15px;
}


/* Number of codes section of price points */

.numCodeBox>div>h6 {
    color: #801F67;
    font-weight: bold;
}


/* Price section of price points */

.numCodeBox>div>p {
    color: #3B4673;
    font-size: 0.9rem;
}


/* Number box that holds the number of codes in the modal */

#inviteBox {
    width: 100%;
    border-radius: 6px;
}


/* Submit button for the modal */

#inviteCheckout {
    background-color: #801F67;
    border: #801F67 1px solid;
    box-shadow: 1px 2px 6px #00000029;
}

#inviteCheckout:hover {
    background-color: #5E6D9C;
    border-color: #5E6D9C;
}

#purchaseCodes .modal-footer a {
    border-radius: 5px;
    padding-top: 3%;
}


/* -----------------------------------------------------SECTION 2: ADVISOR MENU----------------------------------------------------- */


/* the menu side of the portal */

.advisorMenu {
    display: flex;
    flex-direction: column;
    width: 250px;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 14px;
    max-width: 250px;
    background-color: white;
    height: fit-content;
}


/* the text on the advisor menu */

.advisorMenu .formInstructions {
    width: 75%;
    font-size: medium;
}


/* advisor menu svgs */

.advisorMenu svg {
    margin: 8px 0;
}


/* buttons on the advisor menu */

.menuBtns {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* the buttons for the menu */

.menuBtns a {
    width: 180px;
    height: 50px;
    border-radius: 4px;
    border: solid black 2px;
    margin: 5px;
    display: grid;
    grid-template-columns: 38% 60%;
    align-items: center;
    justify-items: center;
    box-shadow: 1px 2px 6px #00000029;
}

.menuBtns a#testModeBtn {
    display: flex;
    justify-content: center;
    align-items: center;
}

#horizontalLine {
    width: 80%;
    border-top: 3px solid lightgray;
    margin-top: 25%;
}


/* hovering over the buttons in the menu */

.menuBtns a:hover {
    background-color: #E7E8EE;
    text-decoration: none;
}


/* the menu button text */

.menuBtns p {
    margin: 0;
    font: normal normal bold 18px/22px Helvetica;
    letter-spacing: 0px;
    color: #59595B;
}


/* cancelling the underline on the menu buttons */

.menuBtns p:hover {
    text-decoration: none;
}


/* menu button images */

.menuBtns img {
    max-height: 30px;
}


/* -----------------------------------------------------SECTION 3: TOP SECTION----------------------------------------------------- */


/* the top section of the main content */

#topContainer {
    margin: 10px 0 30px;
}


/* the gap between the top section and the beef of the main content */

#space {
    height: 15px;
    background-color: #3B4673;
    width: 100%;
}


/* the title of the page we're on */

#topTitle {
    text-align: center;
    color: #8B0368;
    text-transform: capitalize;
    font-weight: bold;
    margin-top: 15px;
    width: 100%;
    padding: 0;
}


/* grid holding the filter and search */

#topGrid {
    display: grid;
    grid-template-columns: 45% 45%;
    grid-template-rows: 50% 50%;
    grid-column-gap: 10%;
    width: 100%;
    justify-self: center;
    padding: 0 20px;
}


/* the filter and search inputs and the labels for them */

#filter,
#search,
label[for=filter],
label[for=search] {
    width: 100%;
    height: 30px;
}


/* the search stuff */

#search,
label[for=search] {
    justify-self: end;
}


/* the filter stuff */

#filter,
#search {
    box-shadow: 1px 2px 6px #00000029;
    border-radius: 4px;
    border: 1px solid gray;
}


/* the search bar label */

label[for=search] {
    text-align: right;
}


/* both top section labels */

label[for=search],
label[for=filter] {
    font-weight: bold;
}


/* -----------------------------------------------------SECTION 4: COUPLES PAGE----------------------------------------------------- */


/* -----------------------------------------------------SECTION 5: GROUPS PAGE----------------------------------------------------- */


/* any group row on the groups page */

tr.groupRow {
    background-color: #03A69626;
    font-weight: bold;
}


/* -----------------------------------------------------SECTION 6: INVITE PAGE----------------------------------------------------- */


/* styling for the form on the invite page */

#inviteForm {
    display: flex;
    flex-direction: column;
}


/* styling for everything but the clear and submit buttons on the invite page */

#inviteForm>div:not(#inviteBtns) {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#inviteForm>div>div {
    margin: 5px;
}


/* the labels and elements that give us information on the invite page */

#inviteForm label,
#inviteForm input,
#inviteForm select {
    color: #182258;
    font: normal normal bold 18px/22px Helvetica;
    width: 100%;
    margin-right: 15px;
}


/* just the informative elements on the invite page */

#inviteForm input,
#inviteForm select {
    font: normal normal normal 16px/20px Helvetica;
    padding: 5px;
}


/* the clear and submit button container on the invite page */

#inviteBtns {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
}

.tab {
    opacity: 0;
    width: max-content;
}


/* the clear and submit buttons on the invite page */

#inviteSubmit,
#startMap {
    width: 35%;
    height: 40px;
    font: normal normal normal 18px/22px Helvetica;
    background-color: #8B0368;
    border-color: #8B0368;
    color: white;
    border-radius: 4px;
    padding: 0 20px;
}


/* the clear button on the invite page */

#startMap {
    background-color: #182258;
    border-color: #182258;
}


/* the submit button on the invite page */

#inviteSubmit img {
    margin: 5px 15px 5px 5px;
    transform: none;
    width: 25px;
    height: 25px;
}


/* when a user hovers over the submit button on the invite page */

#inviteSubmit:hover {
    cursor: pointer;
    background-color: #706D96;
}


/* the input element that holds the code to invite a new user with */

#generatedCode {
    opacity: .5;
    border: solid #182258 1px;
    background-color: antiquewhite;
    color: black;
}


/* -----------------------------------------------------SECTION 7: CODES PAGE----------------------------------------------------- */


/* table title for the codes table */

.portalSubHeader {
    color: #182258;
    text-align: left;
    font: normal normal bold 18px/22px Helvetica;
}


/* the div element housing the form on the codes page */

#portalCodeForm {
    display: grid;
    grid-template-columns: 65% 8% 27%;
    grid-column-gap: 5px;
    font-size: 12pt;
}


/* all labels in the codes form */

#portalCodeForm label {
    color: #8B0368;
    font-weight: bold;
}


/* all inputs in the code form */

#portalCodeForm input {
    height: min-content;
    font-size: inherit;
    text-align: center;
}


/* submit buttons in the code form */

#portalCodeForm input[type=submit] {
    border-radius: 4px;
}


/* -----------------------------------------------------SECTION 8: MODALS----------------------------------------------------- */


/* the standard, outer most modal class */

.modal {
    background-color: white;
    border: solid 5px #182258;
    border-radius: 15px;
    width: 350px;
    height: 650px;
    max-height: 100%;
    min-height: min-content;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* second modal class */

.modal .vertical-alignment-helper {
    height: 100%;
}


/* the modal class that starts the actual content */

.modal-content {
    height: 100%;
    width: 100%;
    border: none;
    background-color: inherit;
    padding: 5%;
    white-space: nowrap;
    justify-content: space-between;
}


/* set the size for modal input elements */

.modal-content input:not([type=radio]),
.modal-content select,
.modal-content a {
    min-height: 45px;
    height: fit-content;
    min-width: 15%;
    width: fit-content;
    padding-left: 15px;
    padding-right: 15px;
}

.modal-body * {
    white-space: normal;
}

.modalBg#on {
    position: absolute;
    top: 0;
    left: 0;
    background-color: gray;
    opacity: .5;
    width: 100%;
    /* height added with js for scrolling */
}


/* the header section of the modal */

.modal-header {
    color: #8B0368;
    background-color: inherit;
    border: none;
    width: 100%;
    flex-direction: column-reverse;
    /* white-space: normal; */
}

.modal-footer {
    flex-direction: column;
}

.modal-footer>a {
    width: 100%;
    margin: 5px;
    text-align: center;
    font-size: 13pt;
}

#closeModal {
    color: #182258 !important;
    background-color: white;
    border: 1px solid #182258;
}

#closeModal:hover {
    color: white !important;
    background-color: #182258;
    border-color: #182258;
}


/* the title text in the modal header */

.modal-title {
    margin-left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    white-space: break-spaces;
    text-align: center;
    width: 100%;
}


/* the close x on the left corner */

.modal .close {
    color: #706D96;
    width: fit-content;
    background-color: inherit;
    box-shadow: none;
}


/* the main body div for the modal */

.modal-body {
    text-align: center;
}


/* the footer div for the modal */

.modal-footer {
    border: none;
    color: white;
}


/* specific for the modal body of couples */

.coupleModal-body {
    color: white;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    flex: unset;
}


/* modal rows of buttons */

.coupleModal-row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}


/* a elements in the modal rows */

.coupleModal-row a {
    max-width: 50%;
}


/* any a element in the couple body, but not the row */

.coupleModal-body>a {
    margin: 5px auto;
    width: 100%;
}


/* any p element in the couple modal body */

.coupleModal-body>p {
    margin: auto;
}


/* slightly different styling for the group row */

.groupModal-body {
    margin: auto;
    margin-top: 15px;
}


/* -----------------------------------------------------SECTION 9: SETTINGS PAGE----------------------------------------------------- */


/* The bottom (main content) section of the settings page */

.mainSettings {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Subscription Settings Titles */

.mainSettings h4 {
    color: #182258;
}


/* Adjust the size for subscription settings */

.mainSettings h4 span {
    font-size: smaller;
}


/* The subscription data pulled from the database */

.mainSettings .userData {
    color: #8B0368;
    font-size: inherit;
}


/* The divs that hold the buttons */

.settingsDiv {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}


/* General settings for all <a> elements on the settings page */

.mainSettings a {
    color: white !important;
    width: 225px;
    text-align: center;
    margin-bottom: 10px;
}


/* Outer-most divs for the change email/password modal forms */

#emailForm,
#passForm {
    margin-top: 50px;
}


/* The actual inputs for the change email/password modal forms */

#emailForm input,
#passForm input {
    width: 100%;
    height: 50px;
}


/* The labels for the change email/password modal forms */

#emailForm label,
#passForm label {
    width: 100%;
    text-align: left;
    color: black;
    font-weight: bold;
}


/* Styling for the error message <p> on the change email/pass modal forms, if they fail */

#emailError,
#passError {
    color: red;
    width: fit-content;
    margin: 20px auto -20px;
}


/* Fine print about codes when cancelling subscription */

#cancelModalSmall {
    font-size: small;
    text-align: center;
}


/* The contact support button on the settings page */

#supportBtn {
    margin-left: 50%;
    transform: translateX(-50%);
}

@media screen and (max-width: 1285px) and (min-width: 769px) {
    .advisorMenu {
        display: none;
        width: 225px;
    }
    .advisorContent {
        max-width: 300px;
    }
    .phoneNav {
        display: block;
    }
    /* Overrides for navbar to make shit happen wider */
    .navbar {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .navbar-expand-lg .navbar-toggler {
        display: block;
    }
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .collapse.show {
        display: block !important;
        width: 100%;
    }
    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
    }
}

@media screen and (max-width: 770px) {
    .coupleModal-row a {
        margin: 15px;
    }
    .advisorContent {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    .advisorMenu {
        display: none;
    }
    .phoneNav {
        display: block;
    }
    .portalPhoneHide {
        display: none !important;
    }
    #topContainer:has(#topGrid.portalPhoneHide) {
        margin: none;
    }
    .advisorContent #mainContent {
        margin-top: -35px;
        /* color: white; */
    }
    #inviteForm>div:not(#inviteBtns) {
        flex-direction: column;
    }
    #inviteBtns {
        flex-direction: column;
    }
    #inviteSubmit,
    #startMap,
    .advisorContent button {
        width: 100%;
    }
    #inviteSubmit {
        margin-bottom: 15px;
    }
    .numCodeBox>div>h6,
    .numCodeBox>div>p {
        font-size: 15px !important;
    }
    .modalHidePhone {
        display: none;
    }
}

/* Haris Css start From here */
a#userguidepopup {
    display: flex;
    justify-content: center;
    align-items: center;
}
a#mobilepdfbtn{
    display: none;
} 
@media screen and (max-width: 760px) {
    a#mobilepdfbtn{
        display: block !important;
        background-color: #801f67;
        margin: 0px auto;
        
    }
    a#mobilepdfbtn > p{
        color:#FFF;
        margin-bottom: 0px;
    }
    .modal-body.pdf-modddal-body{
        display: none;
    }

}

div#inviteBtns > button {
    width: 20%;
}

/* Invite new family css */
a#purchaseMoreCodeBtn {
    background: #3B4673 0% 0% no-repeat padding-box;
    box-shadow: 1px 2px 6px #b4a2a229;
    border: 1px solid #3B4673;
    border-radius: 4px;
    padding-top: 11px;
    height: 40px;
    vertical-align: middle;
    font-size: 12px;
    margin-bottom: 10px;
}
.inviteEmailbtn {
    background: #801F67 0% 0% no-repeat padding-box;
    box-shadow: 1px 2px 6px #00000029;
    border: 1px solid #801F67;
    border-radius: 4px;
    width: 100% !important;
    font-size: 12px !important;
    margin-bottom: 10px;
}
button#startMap, a.closemodal {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 1px 2px 6px #00000029;
    border: 1px solid #3B4673;
    border-radius: 4px;
    opacity: 1;
    color: #3B4673;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    margin-bottom: 10px;
}
a.closemodal{
    padding-top: 11px !important;
    
}