@import url("i835__main-nav.css");

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
button,
ol,
ul,
li,
fieldset,
img {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: inherit;
    /* line-height: 1.2; */
}

/* 左側選單 */
#navMemberBox .h1-height {
    height: 6rem;
    /*
    h1 height =
    (1) font-size 2.5rem * line-height 1.2 = 3rem
    (2) margin-top 1.5rem + margin-bottom 1.5rem = 3rem
    (1) + (2) = 6rem
    */
}

#navMember {
    width: 240px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background-color: #fff;

    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    position: sticky;
    top: 0;
    left: 0;
}

#navMember .nav-pills {
    padding: .5rem 0;
}

#navMember .nav-pills .nav-link {
    display: flex;
    padding: .75rem 2rem;
    border-radius: 0;

    color: var(--nav-dark-color);
    border-left: 5px solid transparent;
}

#navMember .nav-pills .nav-link .material-icons-outlined {
    margin-right: 0.75rem;
    color: #606870;
}

#navMember .nav-pills .nav-link:hover {
    background-color: var(--dropdown-link-hover-color);
}

#navMember .nav-pills .nav-link.active,
#navMember .nav-pills .show>.nav-link {
    background-color: var(--dropdown-link-hover-color);
    border-color: var(--color-primary2);
}

#navMember .nav-hr {
    position: relative;
    margin: .5rem 0;
}

#navMember .nav-hr::after {
    position: absolute;
    content: '';
    bottom: 0;
    border-bottom: 1px solid var(--nav-border-color);

    left: .5rem;
    right: .5rem;
}

#navMember .member-info {
    text-align: center;
}

#navMember .member-info img {
    width: 100%;
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: block;
    margin: 1rem auto;

}

#navMember .member-info__name {
    margin: auto .5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

#navMember .member-info__name a {
    text-decoration: none;
    color: var(--nav-dark-color);
}

/* 我的儲蓄險--------------------------------------- */
.save-policy {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    padding: 1rem;
    margin-bottom: .5rem;
    color: var(--nav-dark-color);

    font-size: 1rem;
}

.save-policy__add {
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F9EB;
    border-radius: 10px;
    padding: .5rem;
}

@media (max-width: 375px) {
    .save-policy {
        font-size: .875rem;
    }
}

@media (max-width: 420px) {
    .blk-on-xxs {
        display: block;
    }
}

/* ---------------------------- */

.save-policy__info__name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.save-policy__info__detail>div {
    margin-bottom: .5rem;
}

.save-policy__info__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* font-size: .825rem; */
    margin-top: 4px;
}

.save-policy__info__foot>.btn__delete {
    color: #6c757d;
    margin: 0;
    padding: 0;

    padding: 0 2px;
    border: 1px solid #dee2e6;

    font-size: .8rem;
    margin-right: 1rem;
    z-index: 10;
}

.save-policy__info__foot>.btn__delete:hover {
    color: #dc3545;
    border: 1px solid #dc3545;
}

@media (max-width: 768px) {
    .save-policy__info__foot>.btn__delete {
        margin-right: 0;
    }
}

.save-policy__irr {
    background-color: #F5F9EB;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.save-policy__irr hr {
    border-color: #fff;
}


/* .save-policy__irr__title {
    border-right: 1px solid #fff;
} */

/* .save-policy__irr .row:first-child {
    border-bottom: 1px solid #fff;
} */

/* 帳戶設定--------------------------------------- */
/* 整體排版--------------------------------------- */
.account__title h1 {
    margin: 0;
}

.__infoarea {
    width: 100%;
    /* width: 800px; */
    /* padding: 0; */
}
.__infoblock {
    margin: 1rem 0;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #fff;
}

.__infoblock .linkStyle1:hover {
    text-decoration: none;
}

.__infoblock .infoblock__title {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
}
.__infoblock .infoblock__content {
    padding: 0 1rem;
}

/* 解決寬度破版問題 待詳解 */
.__infoblock .infoblock__content .text-truncate {
    width: 222px;
}

/* 基本資訊(一欄的樣式)--------------------------------------- */
.__infoblock.__infoblock-1col1row .infoblock__content >.row {
    padding: 1rem 0.5rem;
}
.__infoblock.__infoblock-1col1row .infoblock__content >.row:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

/* 社群&通知(兩欄的樣式)-------------------------------------- */
.__infoblock.__infoblock-2col1row .infoblock__content >.row > div {
    padding: 1rem 0.5rem;
}
.__infoblock .col-social-media {
    display: grid;
    grid-template-columns: 47% 30% 23%;
}
.__infoblock .col-social-media>*:not(:first-child) {
    color: #b0b6ba;
}
.__infoblock .col-social-media>*:nth-child(2) {
    text-align: left;
}
.__infoblock .col-social-media>*:last-child {
    text-align: right;
}



@media (min-width: 768px) {
    .__infoblock.__infoblock-2col1row .infoblock__content >.row > div:nth-child(odd) {
        padding-right: 2.5rem;
    }
    .__infoblock.__infoblock-2col1row .infoblock__content >.row > div:nth-child(even) {
        padding-left: 2.5rem;
    }
}
.__infoblock.__infoblock-2col1row .infoblock__content >.row > div:not(:nth-last-child(-n+2)) {
    border-bottom: 1px solid #dee2e6;
}
@media (max-width: 767px) {
    .__infoblock.__infoblock-2col1row .infoblock__content >.row > div:not(:last-child) {
        border-bottom: 1px solid #dee2e6;
    }
}

/* 大頭照--------------------------------------- */
#avatar {
    margin: 0;
    padding: 0;
    height: 100%;
    max-height: 120px;
}

#headImg img,
#avatar .btn__edit-photo {
    width: 100%;
    max-width: 120px;
    max-height: 120px;
    border-radius: .3rem;
}

#avatar .btn__edit-photo {
    background-color: rgba(0, 0, 0, 60%);
    color: rgb(192, 192, 192);
    border: 0;

    position: relative;
    
    height: 26px;
    bottom: 26px;

    font-size: 0.8rem;
    margin: 0;
    padding: 2px;
    display: inline-block;
    cursor: pointer;

    border-radius: 0 0 .3rem .3rem;
}
#avatar .btn__edit-photo:focus {
    outline: 0;
}


/* 大頭照修改 --------------------------------------- */
#avatarNew {
    max-width: 300px;
    margin: 0 auto; 
}
#headImgNew img{
    border-radius: .3rem;
    width: 100%;
    height:auto;
}

input[type="file"] {
    display: none;
}
.custom-file-upload {
    background-color: rgba(0, 0, 0, 60%);
    color: white;
    
    width: 100%;

    font-size: 0.8rem;
    margin: .5rem 0;
    padding: .5rem;
    display: inline-block;
    cursor: pointer;
    border-radius: .3rem;

    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-file-upload:hover {
    background-color: rgba(0, 0, 0, 75%);
}
.custom-file-upload > .material-icons-outlined {
    font-size: 1.25em;
    margin-right: .25em;
}

.custom-file-upload-feedback {
    /* position: relative; */
    bottom: 26px;
    font-size: 0.8rem;
    color: #ff0000;
}

/* 編輯btn-------------------------------------- */
.btn.btn__edit {
    padding: 0;
    color: #555555;
}
.btn.btn__edit:hover {
    color: #709b13;
}
.btn.btn__edit .material-icons-outlined {
    display: flex;
    font-size: 1.25rem;
}


/* 通知的icon-------------------------------------- */
#notify_form > .infoblock__content >.row .material-icons-outlined {
    font-size: 1.3rem;
    vertical-align:middle;
    color: #5c5c5c;
    margin-right: 0.75rem;
}
#notify_form > .infoblock__content >.row .material-icons-outlined.icon__tooltip {
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.25rem;
}



/* switch-------------------------------------- */
.custom-switch > .custom-control-label {
    cursor: pointer;
}
.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: #709b13;
    background-color: #709b13;
}

/* switch size */
.custom-switch.custom-switch-md .custom-control-label {
    padding-left: 0rem;
    margin-top: -0.1rem;
}
.custom-switch.custom-switch-md .custom-control-label::before {
    height: 1.25rem;
    width: calc(1.5rem + 0.75rem);
    border-radius: 2rem;
}
.custom-switch.custom-switch-md .custom-control-label::after {
    width: calc(1.25rem - 4px);
    height: calc(1.25rem - 4px);
    border-radius: calc(1.25rem - (1.25rem / 2));
}
.custom-switch.custom-switch-md .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(1.25rem - 0.25rem));
}


/* info icon-------------------------------------- */
.small__note > .material-icons-outlined {
    font-size: 1.25em;
    margin-right: 4px;
}
.small__note {
    display: flex;
    align-items: center;
}

/* -------------------------------------- */
.__description {
    color: #5c5c5c;
}
.logo_social-media {
    width: 25px;
    vertical-align: middle;
    margin-right: 0.5rem;
}