/* Weight[Passbook] 2022-07-27 -carry */
.data-type {
    margin: auto;
    margin-top: 10px;
    width: fit-content;
}

.weight-content {
    margin: 25px auto;
    width: 50%;
}

.weight-content .form {
    background-color: #fff;
    padding: 10px 0;
    width: auto;
    border-radius: 20px;
    margin: 0 10px 20px 10px;
    display: block;
    box-shadow: 0 0 40px 0 #ddd;
}

.weight-content .text-input {
    width: 85px;
    height: 30px;
    border-radius: 4px;
    background-color: #dbeffe;
    border: none;
    outline: none;
    padding: 5px 10px;
    cursor: pointer;
    text-align: center;
}

.weight-content .text-input:hover {
    background-color: #cbe7fd;
}

.weight-content #submit {
    border: none;
    border-radius: 10px;
    height: 40px;
    width: 140px;
    background-color: #3a629d;
    color: #fff;
    margin: auto;
    display: block;
    outline: none;
    cursor: pointer;
}

.weight-content #submit:disabled {
    background-color: #ddd;
}

.weight-content #submit:not([disabled]):hover {
    background-color: #2E3234;
}

.weight-content .text {
    display: inline-block;
    margin: 5px 10px 5px 15px;
}

.weight-content .row-one {
    padding: 30px 20px 15px 20px;
}

.weight-content .row-two {
    text-align: center;
    padding: 15px 20px 30px 20px;
}

.weight-content .row-two .input-box {
    display: inline-block;
}

.weight-content .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #dbeffe;
    border-radius: 50%;
}

.weight-content .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.weight-content h1 {
    font-size: 30px;
    font-weight: 300;
    text-align: center;
    color: #289df6;
    padding-top: 15px;
    display: block;
}

.weight-content h2 {
    font-size: 22px;
    font-weight: 300;
    text-align: center;
}

.weight-content h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 300;
    color: #3a629d;
}

/* Weight Control */
.weight-control .container {
    margin-top: 5px;
}

.weight-control > h3 {
    margin-bottom: 15px;
}

.tab {
    float: left;
    width: 20%;
    height: 300px;
    /*margin-top: -12px;*/
}

.tab button {
    display: block;
    color: black;
    padding: 18px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease-in;
    font-size: 17px;
    margin: 15px;
    background-color: #b1d9ff;
    border-radius: 5px;
}

.tab button:hover {
    background-color: rgb(111, 173, 232);
}

.tab button.active {
    background-color: rgb(88, 88, 88);
    color: white;
}

.tablabel {
    font-size: larger;
}

.tabcontent {
    float: left;
    padding: 0px 12px;
    border: 1px solid rgb(218, 218, 218);
    background: #fff;
    width: 70%;
    /*height: 300px;*/
    margin-left: 40px;
    margin-bottom: 10px;
    animation: blinker 0.5s linear;
    border-radius: 5px;
}

@keyframes blinker {
    10% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.tab .arrow {
    color: rgb(88, 88, 88);
    float: right;
    font-size: 26px;
    position: relative;
    left: 15px;
    transition: 0.5s ease-in;
    animation: blinker 0.6s linear;
    width: 0;
}

#scale-record .month-pick {
    margin: auto;
}

#scale-record .month-pick .date {
    padding: 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: auto;
    transition: all .2s ease-out;
}

#scale-record .month-pick .date:focus {
    background: #fff;
    border-color: #26b9ff;
    outline: none;
}

#scale-record .month-pick .date:hover {
    background: #f1f1f1;
}

.hide {
    display: none;
}

div.select-mode {
    text-align: left;
    margin: 10px 0;
    margin-bottom: 0;
    padding-left: 30px;
}

#scale-record input.date {
    font-size: 1em;
}

.time-select input,
.time-select .form-control:disabled,
.time-select .form-control[readonly] {
    background-color: #fff;
}

.no-data {
    text-align: center;
    width: 100%;
    position: absolute;
    left: 0;
    top: 100px;
}

.chart-footer {
    width: 100%;
    text-align: right;
    padding: 0 20px;
    font-weight: 700;
}

.swal-box .sex-select {
    display: inline-flex;
    margin-left: 10px;
}

.swal-box label {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: right;
    margin-bottom: 10px;
}

.swal-box > label:first-child > span > * {
    vertical-align: -30%;
}

.swal-box label span > * {
    vertical-align: -20%;
}

.swal-box label.radio-container {
    display: flex;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.375em;
}

.swal-box label.radio-container input {
    position: absolute;
    left: -9999px;
}
.swal-box label.radio-container input:checked + span:before {
    box-shadow: inset 0 0 0 0.4375em #00005c;
}
.swal-box label.radio-container span {
    display: flex;
    align-items: center;
    padding: 0.375em 0.75em 0.375em 0.375em;
    border-radius: 99em;
    transition: 0.25s ease;
}
.swal-box label.radio-container span:hover {
    background-color: #d6d6e5;
}
.swal-box label.radio-container span:before {
    display: flex;
    flex-shrink: 0;
    content: "";
    background-color: #fff;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    margin-right: 0.375em;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 0.125em #00005c;
}

.swal-box input.datetime {
    flex: 0 0 200px;
    padding: 5px;
    margin-left: 10px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
}

#bmi_explain {
    width: 264px;
    border: 2px solid #4f70ad;
    border-radius: 5px;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: -36px;
    float: right;
}

#bmi_explain h5 {
    text-align: center;
    margin: 0;
}

#bmi_explain dl {
    margin-bottom: 0;
}

#bmi_explain dl dt {
    background: transparent;
    float: left;
    font-weight: normal;
    margin-right: 10px;
    padding: 5px;
    width: 100px;
    text-align: right;
}

#bmi_explain dl dd {
    margin: 0;
    padding: 5px 0;
    text-align: center;
}

@media screen and (min-width: 325px) and (max-width: 425px) {
    #bmi_explain {
        width: 175px;
    }

    #bmi_explain h5,
    #bmi_explain dl {
        font-size: 1rem;
    }

    #bmi_explain dl dt {
        width: 80px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1160px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .weight-content {
        width: 100%;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1700px) {
    .weight-content {
        width: 80%;
    }
}

@media screen and (max-width: 767px) {
    .weight-content {
        width: 80%;
    }

    .weight-content .row-two .input-box:last-child label.text {
        margin-right: 16px;
    }

    .weight-control {
        width: 100%;
    }

    .weight-content .row-two .input-box {
        display: block;
    }

    .tab,
    .tabcontent {
        width: 100% !important;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .tab {
        height: auto;
        text-align: center;
    }

    .tab button {
        width: 30%;
        display: inline-block;
        margin: 10px 0px;
        padding: 18px 10px;
    }

    .tab .arrow {
        left: -38px;
        top: 35px;
        transform: rotateZ(90deg);
    }

    #scale-record input.date {
        font-size: .8em;
    }
    
    div.select-mode {
        text-align: center;
        padding: 0;
    }

    img.bmi-explain {
        width: 50%;
        float: none;
        clear: both;
        margin: auto;
        margin-top: 5px;
        margin-bottom: -52px;
    }
}
