.header-item {
    height: 50px;
}

.home-desc-center {
    vertical-align: top;
}
.home-login {
    position: relative;
    top: 20vh;
}
@media (min-width: 768px) {
    .home-login {
        top: 10vh;
    }
}

select {
    text-align: center; /* 讓選單的 placeholder 置中 */
    text-align-last: center; /* 讓選擇的選項內容置中 */
    -moz-text-align-last: center; /* Firefox 兼容 */
    direction: ltr;
}
.select {
    border-radius: 8px;
    box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.3);
    background-color: #fbfbfb;
    /*border: solid 2px transparent;*/
    border: none;
    appearance: none;
    cursor: pointer;
    
    color: var(--bs-web-main);
    font-weight: bold;
    font-size: 1.125rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    width: 100%;
}
.select:hover {
    box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.3);
    border: solid 2px #9ad3d4;
    color: var(--bs-web-main);
}
.select:active, .select:focus {
    box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.3);
    background-color: #f7f7f7;
    /*border: solid 2px transparent;*/
    border: none;
    outline: none;
}

select option {
    direction: ltr;
}

.text-green {
    color: var(--bs-web-main) !important;
}
.text-danger {
    color: var(--bs-font-text-danger) !important;
}
.text-grey {
    color: grey !important;
}

.bold {
    font-weight: bold;
    color: var(--bs-web-gray);
}

.form-label-bar th {
    background-color: var(--bs-bg-light-gray);
    line-height: 1.1;
}

.form-label-bar.arc th:first-child {
    border-radius: 8px 0px 0 0; /* 上左, 上右, 下右, 下左 (順時針) */
}
.form-label-bar.arc th:last-child {
    border-radius: 0px 8px 0 0; /* 上左, 上右, 下右, 下左 (順時針) */
}

.form-label-bar .title {
    color: var(--bs-web-gray);
    font-weight: bold;
    font-size: 0.75rem !important;
}

.form-label-bar .title .sub {
    font-size: 0.625rem !important;
}

.form-label {
    font-size: 0.875rem !important;
    font-weight: bold;
    color:  var(--bs-web-gray);
    margin-bottom: .75rem;
    margin-top: .75rem;
}
.form-label.normal {
    font-weight: normal;
}
.form-label .sub {
    font-size: 0.75rem !important;
}
.form-label.sub {
    font-size: 0.75rem !important;
    font-weight: normal;
}

@media (min-width: 768px) { /* 中螢幕以上裝置 */
    .form-label-bar .title {
        font-size: 1rem !important;
    }
    .form-label {
        font-size: 1rem !important;
    }
    .form-label.sub {
        font-size: 0.9rem !important;
    }

    .form-label-bar .title .sub {
        font-size: .75rem !important;
    }
}

.subtitle {
    font-size: 0.825rem;
    color: #6c6c6c;
    padding-bottom: 1.25rem;
}

.form-control {
    border-radius: 6px;
    box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, 0.3);
    background-color: #fbfbfb;
    font-size: 1rem;
    color: #7c7c7c;
    padding: 0.8rem;
}

.form-control.other {
    border-bottom: 2px solid #e3e3e3;
    background-color: unset;
    text-align: left;
    text-align-last: left;
    padding: 1.25rem 0px;
}

.control-label  {
    font-size: 1rem;
    color: #7c7c7c;
}

.formEdit .form-control {
    padding: 0.8rem 2.3rem;
}
/*
.formEdit input[type="text"] {
    padding: 0.972rem 2.3rem;
}*/

.calendar_date {
    cursor: pointer;
    text-align: center;
    text-align-last: center;
    border-radius: 6px;
    box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid #ced4da;
    background-color: #fbfbfb;
    font-weight: 500;
    
}

select.calendar_date {
    font-size: 0.875rem;
    padding: .25rem 1rem;
}

.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    /*padding: 0.8rem 2.3rem;*/
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.input-unit {
    font-size: 14px;
    color: #7c7c7c;
    pointer-events: none;
    position: absolute;
    top: calc(0.4rem + 7px);
    right: 0.6rem;
}

.form-check-input {
    margin-top: 0px;
}
input[type=checkbox]:checked, input[type=radio]:checked {
    background-color: #72c1c3;
    border-color: #72c1c3;
}
input.form-control::placeholder, textarea.form-control::placeholder {
    color: #cacaca;
}

textarea {
    resize: none;
}

.navbar-header {
    height: 50px;
    box-shadow: unset;
    background-color: var(--bs-web-light-gray);
    padding: 0px;
}

#nav_account {
    position: absolute;
    left: calc(50vw - 18px);
    cursor: pointer;
}

/* ==== 上方標籤區 ==== */
.top-tapmenu {
    border-radius: 6px 6px 0px 0px;
    background-color: white;
    height: 45px;
    color: #8f8f8f;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    top: 1px;

    box-shadow: 
        2px -2px 2px rgba(180, 180, 180, 0.25), 
        -2px -2px 2px rgba(180, 180, 180, 0.25);
}

.top-tapmenu.action {
    color: var(--bs-web-main);
    font-weight: bold;
    font-size: 1.15rem;
}
.top-tapmenu.none {
    background-color: #e2e2e2;
    cursor: default;
}

/* ==== 下方內容區 ==== */
.page-content {
    padding: unset;
}

.top-tapmenu-content {
    overflow-y: auto;
    box-shadow: 0 0 5px rgba(125, 125, 125, 0.8);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .top-tapmenu-content {
        padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); /*兼容 IOS>11.2*/
    }
}

/*==== 上方週行事曆 ====*/
.calendar-theday {
    color: var(--bs-font-text-gray);
    font-size: 1rem;
    letter-spacing: 2px;
    /*padding-top: 5px;
    padding-bottom: 5px;*/
}
.calendar {
    font-size: 1rem;
    line-height: 30px;
    font-weight: normal;
}
.calendar td {
    width: 11%;
    min-width: 35px;
    color: #4b4b4b;
    padding: 0px;
}
.calendar tr:nth-child(3) td {
    cursor: pointer;
}
.calendar-dot {
    width: 6px;
    height: 6px;
    background-color: #d5d5d5;
    border-radius: 50%; /* 讓它變成圓形 */
}
.calendar-dot-green {
    background-color: var(--bs-web-main);
}
.calendar-dot-grey {
    background-color: var(--bs-web-bg-gray);
}
.calendar .action {
    width: 30px;
    height: 30px;
    background-color: var(--bs-web-main);
    border-radius: 50%; /* 讓它變成圓形 */

    color: #fff !important;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}
.calendar .theday {
    font-weight: bold;
    color: #4b4b4b;
}
/*==== 上方週行事曆END ====*/

/*==== 左側選單 ====*/ 
.simplebar-content {
    min-height: 100vh;
}
#sidebar-menu {
    padding: unset;
}
.sidebar-logo {
    padding: 1.5rem 3rem 2rem;
}
.sidebar-logo img {
    width: 40vw;
    max-width: 150px;
}
/*==== 左側選單END ====*/ 

/*==== 訊息視窗 ==== */
.modal-header {
    border-bottom: unset;
    padding: 2rem 1rem 0rem 1rem;   /*上左下右*/
}
.modal-title {
    width: 100%;
    text-align: center;

    font-size: 1.25rem;
    font-weight: bold;
    color: var(--bs-font-text-gray);
    margin-left: calc(15px + 0.5rem);
}

.modal-footer {
    border-top: unset;
    padding-right: 1rem;
    padding-left: 1rem;
    padding-bottom: 1.5rem;
}
.modal-footer .btn {
    width: 100%;
    padding: 0.5rem;
}

.modal-header .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0px;
    margin: 0px;
}

/*==== 設定按鈕樣式 START ==== */
.icon-btn-edit {
    background: url("/images/icons/icon-edit/normal.png") no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}
.icon-btn-edit:hover {
    background-image: url("/images/icons/icon-edit/hover.png");
}
.icon-btn-edit:active, .icon-btn-edit:focus {
    background-image: url("/images/icons/icon-edit/active.png");
}

.icon-btn-del {
    background: url("/images/icons/icon-del/normal.png") no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}
.icon-btn-del:hover {
    background-image: url("/images/icons/icon-del/hover.png");
}
.icon-btn-del:active, .icon-btn-del:focus {
    background-image: url("/images/icons/icon-del/active.png");
}

.btn-green {
    border-radius: 6px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);
    background-color: var(--bs-web-main);

    /*font-size: 0.875rem;*/
    font-weight: 500;
    /*height: 40px;*/
    appearance: none;
}
.btn-white {
    border-radius: 6px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);
    background-color: var(--bs-bg-light-gray);
 }

.btn-edit  {
    border-radius: 8px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
    background-color: var(--bs-bg-light-gray);
    color: var(--bs-web-main);
    font-weight: bold;
    font-size: 1.125rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.btn-edit:hover {
    color: var(--bs-web-main);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.4);
}

.btn-edit:active, .btn-edit:focus {
    color: var(--bs-web-main);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.4);
    border: solid 2px var(--bs-web-main);
}

.btn-ok  {
    border-radius: 8px;
    background-color: var(--bs-web-main);
    border-color: var(--bs-web-main);
    box-shadow: 0 2px 4px 0 rgba(12, 54, 56, 0.4);
    font-weight: bold;
    font-size: 1.125rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    color: #fff;
}

.btn-ok:hover {
    background-color: var(--bs-web-main); /* 滑鼠移上去的顏色 */
    border-color: var(--bs-web-main);
    box-shadow: 0 0 4px 0 rgba(12, 54, 56, 0.4);
    color: #fff;
}

.btn-ok:active, .btn-ok:focus {
    background-color: #52a7a9; /* 點擊按下去的顏色 */
    border-color: #52a7a9;
    box-shadow: 0 0 4px 0 rgba(12, 54, 56, 0.4);
}

.btn-ok.disabled {
    background-color: #ebebeb;
    border-color: #ebebeb;
    color: #a5a5a5;
    box-shadow: inset 0 0 12px 0 rgba(0, 0, 0, 0.25);
}

.btn-cancel {
    border-radius: 8px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
    background-color: var(--bs-bg-light-gray);
    font-weight: bold;
    font-size: 1.125rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    color: #939393;
}

.btn-cancel:hover {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.4);
    color: #939393;
}

.btn-cancel:active, .btn-cancel:focus {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.4);
    border: solid 2px #ebebeb;
    color: #939393;
}

.btn-add {
    height: 40px;
    cursor: pointer;
    background-color: var(--bs-web-main);
    border-radius: 25px;
    font-size: 1rem;

    box-shadow: 0 4px 12px 0 rgba(12, 54, 56, 0.4);
    color:white;

    display: -webkit-box; 
    display: -ms-flexbox;
    display: flex; 
    -webkit-box-align: center; 
    -ms-flex-align: center;
    align-items: center; 
    -webkit-box-pack: center; 
    -ms-flex-pack: center;
    justify-content: center; 
}

.btn-add:hover {
    background-color: var(--bs-web-main); /* 滑鼠移上去的顏色 */
    box-shadow: 0 0 4px 0 rgba(12, 54, 56, 0.4);
    color:white;
}

.btn-add:active, .btn-add:focus {
    background-color: #52a7a9; /* 點擊按下去的顏色 */
    box-shadow: 0 0 4px 0 rgba(12, 54, 56, 0.4);
    color:white;
}

.btn-add.disabled {
    background-color: #ebebeb;
    box-shadow: inset 0 0 12px 0 rgba(0, 0, 0, 0.25);
    color: #a5a5a5;
}

.badge-user {
    border-radius: 3px;
    padding: 0.25rem 0.5rem;
    color: #666;
    background-color: var(--bs-bg-light-gray);
}

.badge-admin {
    border-radius: 3px;
    padding: 0.25rem 0.5rem;
    color: #fff;
    background-color: var(--bs-web-main);
}

/* TODO: control_div改用 */
.control_div {
    height: 40px;
    cursor: pointer;
    background-color: var(--bs-web-main);
    border-radius: 25px;
    font-size: 1rem;

    box-shadow: 0 4px 12px 0 rgba(12, 54, 56, 0.4);
}

.control_div:hover {
    background-color: var(--bs-web-main); /* 滑鼠移上去的顏色 */
    box-shadow: 0 0 4px 0 rgba(12, 54, 56, 0.4);
}

.control_div:active, .control_div:focus {
    background-color: #52a7a9; /* 點擊按下去的顏色 */
    box-shadow: 0 0 4px 0 rgba(12, 54, 56, 0.4);
}
/*==== 設定按鈕樣式 END ==== */

/*==== 右側選單 ====*/
.shadow-box {
    padding: 9px 9px;
    border-radius: 6px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3);
    background-color: #fbfbfb;
    color: var(--bs-font-text-gray);
    margin: 0px;
}
.shadow-box.btn {
    /* 使用 appearance: none 移除原生樣式 */
    -webkit-appearance: none; /* Safari/iOS */
    -moz-appearance: none;
    appearance: none;
    
    font-weight: bold;
}

/* 0 ~ 25％ */
.twenty-five::-webkit-progress-value {
    background-color: #b5b5b5;
}

/* 26 ~ 50％ */
.fifty::-webkit-progress-value {
    background-color: #a4c39d;
}

/* 51 ~ 75％ */
.seventy-five::-webkit-progress-value {
    background-color: #83abd1;
}

/* 76 ~ 100％ */
.one-hundred::-webkit-progress-value {
    background-color: #918ec9;
}

.more-than-hundred::-webkit-progress-value {
    background-color: #da7272;
}

.rounded-square {
    display: inline-block;    /* 保持內聯塊顯示 */
    width: 10px;             /* 設定寬度 */
    height: 20px;            /* 設定高度 */
    border-radius: 4px;      /* 設定弧角（可調整） */
}

.table-border-none tr {
    border: none; /* 移除 tr 本身的邊框 */
}

.table-border-none td, table th {
    border: none; /* 移除每個欄位的邊框 */
}

.px-15 {
    padding: 1rem 0;
}

.px-30 {
    padding: 1rem 0;
}

@media (min-width: 768px) { /* 中螢幕以上裝置 */
    .px-15 {
        padding: 1rem 15%;
    }

    .px-30 {
        padding: 1rem 30%;
    }
}

.list_info {
    font-weight: normal;
    font-size: 1rem;
}

.list_info td {
    font-size: 1rem;
}

.list_info th.title.major {
    color: #7CAFA7;
}
.list_info td.major {
    font-weight: bold;
    color: #8dbcbd;
}

.list_info td:first-child {
    position: relative; /* 讓 `::before` 可以正確定位 */
}
.list_info td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2%;
    width: 4px;
    height: 96%;
}
@media (min-width: 768px) { /* 中螢幕以上裝置 */
    .list_info td {
        font-size: 1.125rem;
    }
}

.list_info-aa8ac3 td:first-child::before {
    background-color: #aa8ac3;
}
.list_info-81adeb td:first-child::before {
    background-color: #81adeb;
}
.list_info-f2b440 td:first-child::before {
    background-color: #f2b440;
}
.list_info-72c1c3 td:first-child::before {
    background-color: #72c1c3;
}
.list_info-e7cc37 td:first-child::before {
    background-color: #e7cc37;
}
.list_info-73b291 td:first-child::before {
    background-color: #73b291;
}
.list_info-dc8080 td:first-child::before {
    background-color: var(--bs-strength-high);
}
.list_info-83abd1 td:first-child::before {
    background-color: var(--bs-strength-low);
}
.list_info-827fbc td:first-child::before {
    background-color: var(--bs-strength-mid);
}
.list_info-78c082 td:first-child::before {
    background-color: #78c082;
}
.list_info-e7e5e5 td:first-child::before {
    background-color: #e7e5e5;
}

/* 最新通知紅點 */
.notify-dot {
    width: 8px;
    height: 8px;
    background-color: #ff6868; /* 設定小圓點顏色 */
    border-radius: 50%; /* 讓它變成圓形 */
}
.notify-dot.absolute {
    position: absolute;
    bottom: 10px;
    right: 0px;
}

/* 標籤 */ 
.tags-container > div.no-delete {
    padding: .4rem 1rem;
}

/* 1, 4, 7, 10... */
.tags-container > div:nth-child(3n+1) {
    background-color: #aa8ac3;
}

/* 2, 5, 8, 11... */
.tags-container > div:nth-child(3n+2) {
    background-color: #f2b440;
}

/* 3, 6, 9, 12... */
.tags-container > div:nth-child(3n) {
    background-color: var(--bs-web-bg-gray);
}

.diet-title {
    font-size: 1.125rem;
    margin-left: 14px;  /* 網頁偏移圖片空間的一半 */
    font-weight: bold;
    color: var(--bs-font-text-gray);
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}
.diet-title img {
    margin-left: 4px;
}
@media (min-width: 768px) { /* 中螢幕以上裝置 */
    .diet-title {
        font-size: 1.125rem;
    }
}

.border-solid {
    border: solid 1.2px var(--bs-web-light-gray);
}
.border-bottom-solid {
    border-bottom: 1px solid var(--bs-web-light-gray);
}
.border-top-solid {
    border-top: 1px solid var(--bs-web-light-gray);
}
/* 説明 */
.border-line {
    position: relative;
    padding: 0.25rem 0 0.5rem 0;
    margin-bottom: 0.5rem;
}
.border-line::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 5%; /* 讓底線居中 */
    width: 90%; /* 設定底線寬度 */
    height: 1.2px; /* 底線厚度 */
    background-color: var(--bs-web-light-gray); /* 底線顏色 */
}

.describe-rest {
    background-color: var(--bs-strength-rest);
}
.describe-low {
    background-color: var(--bs-strength-low);
}
.describe-mid {
    background-color: var(--bs-strength-mid);
}
.describe-high {
    background-color: var(--bs-strength-high);
}
.list_info-green {
    background-color: var(--bs-web-main);
}

.box-inset {
    padding: 9px 9px;
    border-radius: 6px;
    box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.3);
    background-color: #fbfbfb; 
    color: var(--bs-font-text-gray);
    margin: 0px;
}

.chart-doughnut {
    width: 90vw;
    height: 90vw;
    max-width: 100%;
    max-height: 20vh;
    /*max-width: 100%;
    max-height: 20vh;
    min-height: 300px;*/
    
}  

@media (min-width: 768px) { /* 中螢幕以上裝置 */
    .chart-doughnut {
        height: calc(100vh - 550px);
        max-height: 200px;
    }
}

.modal-body.form-fieldset {
    font-size: 1rem;
}

/* 隱藏按鈕 */
.triangle-up {
    cursor: pointer;
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: rotate(90deg);

    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.25);
}

.triangle-up.rest {
    border-left: 8px solid var(--bs-strength-rest); /* 設定三角形顏色 */
}
.triangle-up.low {
    border-left: 8px solid var(--bs-strength-low); /* 設定三角形顏色 */
}
.triangle-up.mid {
    border-left: 8px solid var(--bs-strength-mid); /* 設定三角形顏色 */
}
.triangle-up.high {
    border-left: 8px solid var(--bs-strength-high); /* 設定三角形顏色 */
}

.triangle-up.action {
    transform: rotate(-90deg);
}

:root {
    --bs-web-main: #72c1c3;
    --bs-strength-rest: #8a8a8a;
    --bs-strength-low: #83abd1;
    --bs-strength-mid: #827fbc;
    --bs-strength-high: #dc8080;
    --bs-strength-rest-light: #eee;
    --bs-strength-low-light: #e6eef6;
    --bs-strength-mid-light: #e9e8f3;
    --bs-strength-high-light: #f4eaea;
    --bs-web-light-gray: #eaeef1;
    --bs-bg-light-gray: #f3f3f3;
    --bs-web-gray: #666;
    --bs-font-text-gray: #6d6d6d;
    --bs-font-text-danger: #da7272;
    --bs-web-bg-gray: #b1b1b1;
}