@charset "utf-8";

/*數字*/
@font-face {
    font-family: digital;
    src: url(../fonts/digital-7.ttf) format("opentype");
}

body {
    font-family: 'Rubik', 'Noto Sans TC', 'Microsoft JhengHei', 'sans-serif' !important;
}

.body-bg {
    background-color: #f7f7f7;
    flex-direction: column;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

ul {
    padding-left: 0;
    list-style-type: none;
}

:focus {
    outline: none !important;
    box-shadow: none !important;
}

.form-control:focus {
    border: 1px solid #ced4da;
}

.form-control {
    border-radius: 0.5rem;
}

select {
    cursor: pointer;
}

::selection {
    background: #27988D;
    color: #fff;
}

::-moz-selection {
    background: #27988D;
    color: #fff;
}

input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
}

/*--------------------------------------------------------------
# 共用
--------------------------------------------------------------*/

/***************通用***************/
input[type=checkbox],
input[type=radio] {
    zoom: 1.5;
    cursor: pointer;
    margin-left: 0;
}

.form-check-input {
    margin-top: .15rem;
}

.new-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 15px 3% 15px 3%;
}

select.form-control,
select.form-control:focus {
    background: #fff url(../images/arrow-line.png) no-repeat;
    background-size: 12px;
    background-position: calc(100% - 10px) center !important;
    box-sizing: border-box;
    appearance: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
}

/***************按鈕***************/
.btn-green,
.btn-green:hover {
    border: 1px solid #22C458;
    background-color: #22C458;
    color: #fff;
}

.btn-red,
.btn-red:hover {
    border: 1px solid #d92727;
    background-color: #d92727;
    color: #fff;
}

.btn-blue,
.btn-blue:hover {
    border: 1px solid #105bfd;
    background-color: #105bfd;
    color: #fff;
}

/***************捲軸樣式***************/
/* 整個捲軸 */

::-webkit-scrollbar {
    width: 5px;
}

/* 捲軸的軌道 */
::-webkit-scrollbar-track {
    background: #444;
}

/*捲軸尚未滑到的軌道*/
::-webkit-scrollbar-track-piece {
    background: #444;
}

/* 滑動的區塊 */
::-webkit-scrollbar-thumb {
    background: #999;
}

/* 滑鼠移到滑動的區塊上 */
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/*placeholder*/
.form-control::-webkit-input-placeholder {
    color: #999;
}

/*--------------------------------------------------------------
# 上方選單
--------------------------------------------------------------*/

/*搜尋 star*/
.search {
    max-width: 500px;
    margin: auto;
    display: flex;
}

.search input {
    border: 0;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    height: 30px;

}

.search .btn {
    border: 0;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: #fff;
    height: 30px;
}

.search .btn img {
    width: 20px;
}

/*搜尋 end */

.navbar-title {
    display: flex;
    align-items: center;
}

.logo {
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.logo img {
    width: auto;
    height: 35px;
    margin-right: 7px;
}

.logo:hover {
    color: #fff;
}

.copyright,
.copyright:hover {
    color: #999;
}

.navbar {
    font-size: 17px;
    padding: 0 1rem;
    z-index: 50;
    width: 100%;
    background-color: #292e41;
}


.navbar .navbar-nav .nav-link {
    color: #eee;
}

/*使用者 下拉 star*/
.dropdown-item,
.dropdown-item:focus,
.dropdown-item:hover {
    color: #fff;
    text-decoration: none;
    background-color: initial;
}

.dropdown-menu {
    border-radius: .1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-top: 1px solid #999;
    margin-top: 0;
    min-width: 125px;
}

.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link:hover,
.dropdown-item:focus,
.dropdown-item:hover {
    color: #d4f7ff;
}

.user,
.user:hover {
    color: #eee;
}

.user img {
    width: 17px;
    margin-right: 5px;
}

/***登出鈕****/
.navbar-nav .nav-item .user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.btn-login {
    background-color: #fff;
    margin-left: 10px;
    padding: .1rem .75rem;
}

/*使用者 下拉 end*/
@media screen and (min-width: 1200px) {

    .navbar-nav {
        align-items: center;
    }

    .navbar {
        height: 50px;
        padding: 0 4rem;
    }

    .navbar .navbar-nav .nav-link {
        padding: .75rem 1.2rem;
        border-right: 1px solid #bfded7;
    }

    .user,
    .user:hover {
        display: block;
        height: 50px;
        margin-left: 1.2rem;
    }

    .search {
        max-width: 200px;
        display: flex;
        margin-right: 1rem;
    }
}

/*--------------------------------------------------------------
# 登入
--------------------------------------------------------------*/

.login-nav {
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.login-nav img {
    width: 30px;
    margin-right: 7px;
}

.login-nav .navbar-title {
    margin: auto;
}

.login {
    margin-top: 100px;
}

.login-box {
    width: 500px;
    margin: auto;
    padding: 0 1rem;
}

.login .title {
    background-color: #292e41;
    color: #fff;
    text-align: center;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding: 10px 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.login .form-control {
    border: 1px solid #999;
    height: calc(1.5em + 1rem + 2px);
}

.login-box .card {
    padding: 0;
    border: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.login .card-box {
    padding: 40px 40px 40px 40px;
    border: 1px solid #bcbcbc;
    box-shadow: 5px 5px 10px rgb(75 88 105 / 20%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: 0;
}

.login .btn {
    border: 1px solid #105bfd;
    background-color: #105bfd;
    color: #fff;
    margin-top: 20px;
}

.login .btn:active {
    background-color: #105bfd !important;
    border-color: #105bfd !important;
}

@media screen and (max-width: 767px) {
    .login-nav {
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .login-box {
        width: 100%;
        margin: 100px auto 0 auto;
    }

    .login .card-box {
        padding: 20px;
    }

    .login .title {
        padding: 7px 0;
        font-size: 18px;
    }

    .login .btn {
        margin-top: 0px;
    }
}

/*--------------------------------------------------------------
# 內容
--------------------------------------------------------------*/

section.content {
    position: relative;
    z-index: 2;
    padding-top: 50px;
}

.page-title {
    font-size: 25px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 150px;
}

/*時間*/
.page-time {
    padding: 5px 4rem;
    color: #463939;
    text-align: right;
    background-color: rgb(0, 0, 0, 0.1);
}

/**********內頁標題*************/
.info-title {
    padding-bottom: 7px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ACACAC;
    font-size: 17px;
    margin: 10px 3% 0px 3%;
}

.info-title a::before {
    margin: 0 6px;
    content: "/";
    color: #009e8e;
}

.info-title a:first-child:before {
    display: none;
}


/*--------------------------------------------------------------
# 卡片
--------------------------------------------------------------*/
.info .card {
    padding: 10px;
    border: 0;
    -webkit-box-shadow: 0px 1px 2px 1px rgb(154 154 204 / 22%);
    -moz-box-shadow: 0px 1px 2px 1px rgba(154, 154, 204, 0.22);
    box-shadow: 0px 1px 2px 1px rgb(154 154 204 / 22%);
    border-radius: .25rem;
}



/*------------------------
# (-------------新---------)
-------------------------*/


/*-----------------------
# 首頁-主瀏覽
-------------------------*/
.area {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

.area:last-child {
    border-bottom: 0;
}

.area-name {
    width: 150px;
    font-size: 1.5rem;
    margin: 0 10px;
}

.area-item {
    width: calc(100% - 190px);
    display: flex;
    flex-wrap: wrap;
    margin: 0 10px;
}

/**區域顏色**/
.area .area-name .card {
    border-width: 3px;
}

.area-a .area-name .card {
    background-color: #48acff;
    color: #fff;
}

.area-a .card {
    border: 2px solid #48acff;
}

.area-a .area-name .card:hover {
    border: 3px solid #2181cf;
}

.area-a .text span {
    color: #217cc7;
}

.area-b .area-name .card {
    background-color: #5fe07d;
    color: #fff;
}

.area-b .text span {
    color: #2e9b47;
}

.area-b .card {
    border: 2px solid #5fe07d;
}

.area-b .area-name .card:hover {
    border: 3px solid #38aa52;
}

.area-c .area-name .card {
    background-color: #ff905d;
    color: #fff;
}

.area-c .card {
    border: 2px solid #ff905d;
}

.area-c .text span {
    color: #f76826;
}

.area-c .area-name .card:hover {
    border: 3px solid #c44911;
}

.area-d .area-name .card {
    background-color: #9e69e4;
    color: #fff;
}

.area-d .card {
    border: 2px solid #9e69e4;
}

.area-d .text span {
    color: #9e69e4;
}

.area-d .area-name .card:hover {
    border: 3px solid #6937aa;
}

.area-pc .area-name .card {
    background-color: #ffc72c;
    color: #fff;
}

.area-pc .card {
    border: 2px solid #ffc72c;
}

.area-pc .text span {
    color: #c09110;
}

.area-pc .area-name .card:hover {
    border: 3px solid #bd8b03;
}

/**區域 項目**/

.area-item .card {
    /* 8個卡片 100/8=12.2% */
    /*width: 12%;*/
    width: 185px;
    margin: 0 .5% .5%;
    padding: 15px 20px;
}

.area-item .card .name {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    font-weight: 600;
}

.area-item .card .box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.area-item .state,
.area-item .alarm {
    display: flex;
    align-items: center;
}

.area-item .state .light,
.area-item .alarm .light {
    width: 15px;
    height: 15px;
    border-radius: 50px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.area-item .state .light.green {
    background-color: #22C458;
}

.area-item .state .light.gray {
    background-color: #b6b6b6;
}

.area-item .alarm .light.gray {
    background-color: #b6b6b6;
}

.area-item .alarm .light.red {
    background-color: #e40000;
}


/*-----------------------
# 區域項目-內容
-------------------------*/
.area-item-box {
    display: flex;
    flex-wrap: wrap;
    font-size: 17px;
    justify-content: center;
}

.area-item-box .card {
    padding: 15px 20px;
    width: 330px;
    margin: 0px 10px 20px;
}

.area-item-box .card .name {
    margin-bottom: 1rem;
}

.area-item-box .card .name span:first-child {
    font-size: 1.5rem;
    margin-right: 10px;
    font-weight: 600;

}

.area-item-box .con .text {
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
    margin-bottom: 3px;
    color: #666;
}

.area-item-box .con .text:last-child {
    border-bottom: 0;
}

.area-item-box .con span {
    display: inline-block;
    margin-right: 10px;
    color: #000 !important;
    font-weight: 600 !important;
}

.area-item-box .con span.content {
    display: inline-block;
    margin-right: 10px;
    color: #666 !important;
    font-weight: 400 !important;
}

/*按鈕框*/
.area-item-box .button-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.area-item-box .button-box .btn-start {
    border: 1px solid #22C458;
    background-color: #22C458;
    color: #fff;
    width: 100%;
    margin: 1%;
}

.area-item-box .button-box .btn-stop {
    border: 1px solid #d92727;
    background-color: #d92727;
    color: #fff;
    width: 100%;
    margin: 1%;
}

.area-item-box .button-box .btn-no-01-off {
    background-color: rgb(217, 39, 39);
    color: #fff;
    width: 31%;
    margin: 1%;
}

.area-item-box .button-box .btn-no-01-on {
    background-color: #22C458;
    color: #fff;
    width: 31%;
    margin: 1%;
}

.area-item-box .button-box .btn-no-02-off {
    background-color: rgb(217, 39, 39);
    color: #fff;
    width: 31%;
    margin: 1%;
}

.area-item-box .button-box .btn-no-02-on {
    background-color: #22C458;
    color: #fff;
    width: 31%;
    margin: 1%;
}

.area-item-box .button-box .btn-no-03-off {
    background-color: rgb(217, 39, 39);
    color: #fff;
    width: 31%;
    margin: 1%;
}

.area-item-box .button-box .btn-no-03-on {
    background-color: #22C458;
    color: #fff;
    width: 31%;
    margin: 1%;
}

.area-item-box .button-box .btn-state {
    border: 1px solid #ffea72;
    background-color: #ffea72;

    color: #333;
    width: 98%;
    margin: 1%;
}


/*-----------------------
# 區域項目-狀態
-------------------------*/
.area-item-state .card {
    width: 70%;
    margin: auto;
    font-size: 1.25rem;
    padding: 50px 50px;
}

.area-item-state .top {
    display: flex;
    align-items: self-start;
    flex-wrap: wrap;
}

.area-item-state .text-box {
    width: calc(100% - 150px);
    padding-right: 20px;
    display: flex;
    align-items: center;
}

.area-item-state .text-box span {
    white-space: nowrap;
    margin-right: 10px;
}

.area-item-state .text-box span.unit {
    margin-right: 20px;
}

.area-item-state .text-box .form-control {
    width: 100px;
    font-size: 1.25rem;
    text-align: center;
    background-color: #E8E8E8;
    border-color: #E8E8E8;
}

.area-item-state .state-box {
    width: 150px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.area-item-state .state-box .btn {
    width: 100%;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/*升溫中*/
.btn-rise {
    background-color: #FFA916;
    color: #333;
}

/*降溫中*/
.btn-decline {
    background-color: #69bcff;
    color: #333;
}

/*加熱完成*/
.btn-finish {
    background-color: #4dc72e;
    color: #ffffff;
}

/*升溫逾時*/
.btn-timeout {
    background-color: #e93636;
    color: #ffffff;
}

/*警報訊息*/
.alarm-message-title {
    margin-bottom: 5px;
}

.alarm-message .nav-tabs {
    border-bottom: 0;
}

.alarm-message .nav-tabs .nav-item .nav-link,
.alarm-message .nav-tabs .nav-item.show .nav-link,
.alarm-message .nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-width: 2px;
    border: 2px solid #D2D2D2;
    border-radius: 5px;
    margin-right: 15px;
}

.alarm-message .nav-tabs .nav-link.active {
    border: 2px solid #333;
    color: #333;
}

.alarm-message .btn-reset {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    padding: .5rem 1rem;
    border-width: 2px;
    font-size: 1.25rem;
}

.alarm-message .tab-content {
    background-color: #E8E8E8;
    min-height: 200px;
    margin-top: 10px;
    padding: 20px;
    border-radius: 10px;
}

/*按鈕框*/
.area-item-state .button-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.area-item-state .button-box .btn {
    width: 200px;
    padding: .5rem 1rem;
    margin: 20px 10px 10px 10px;
}

/*-----------------------
# 預約升溫排程
-------------------------*/
.scheduling-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

/********日期選擇*****/
.date-choose {
    display: flex;
    align-items: center;
    width: 60%;
    margin: 0px auto 20px auto;
}

.date-choose span {
    white-space: nowrap;
    width: 400px;
    font-size: 1.1rem;
    font-weight: 500;
}

.date-choose .btn {
    white-space: nowrap;
    width: 300px;
}

.date-choose .form-control {
    margin-right: 10px;
    border: 1px solid;
    font-size: 1.1rem;
}

/*********月曆 **************/
.calendar .page-bar {
    background-color: #52ACDD;
}

.calendar .page-bar .title-img {
    width: 30px;
    display: inline-block;
    margin-right: 10px;
}

.calendar .page-bar select {
    border-radius: 50px;
    background-position: calc(100% - 15px) center;
    height: 35px;
    border: 0;
    flex: 1;
}

.calendar .page-bar .calendar-time select:nth-child(2) {
    margin-right: 5px;
}

.calendar .page-bar .calendar-data select {
    width: 150px;
}

.calendar .page-bar .version-data {
    background-color: #fff;
    padding: .375rem .75rem;
    border-radius: 50px;
}

.calendar .page-bar .version-data a {
    margin: 0 .5rem;
    position: relative;
    padding-left: 20px;
    white-space: nowrap;
}

.calendar .page-bar .version-data .kut::before,
.calendar .page-bar .version-data .client::before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: #7F3F98;
    display: inline-block;
    margin-right: 5px;
    position: absolute;
    top: 3px;
    left: 0;
}

.calendar .page-bar .version-data .client::before {
    background-color: #1CB9C5;
}

.calendar .page-bar .switch-data {
    padding: 0 15px;
}

.calendar .page-bar .switch-data a {
    background-color: #1C89C5;
    display: inline-block;
    padding: 5px 15px;
    color: #fff;
}

.calendar .page-bar .switch-data a:hover {
    background-color: #09537B;
}

.calendar .page-bar .switch-data a.active {
    background-color: #09537B;
}

.calendar-select-date {
    margin-left: 5px;
    flex: 2;
    display: none;
}

.calendar-select-date.show {
    display: block;
}

/*******月曆********/
.calendar .page {
    padding: 11rem 0 2rem;

}

.calendar-week {
    margin: 0;
}

.calendar-week,
.calendar-box {
    background-color: #fff;
}

.calendar-content {
    max-width: 1200px;
    margin: auto;
}


.calendar .add-courses {
    position: absolute;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    right: 0;
    top: -3px;
}

.calendar-box-top {
    position: relative;
}

.calendar-box-top p {
    font-size: 1.5rem;
    color: #1C89C5;
    text-align: center;
    font-weight: bold;
    margin: .5rem 0;

}

.calendar .add-courses span:first-child {
    background-color: #FFC107;
    color: #fff;
    font-size: 2rem;
    display: inline-block;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 25px;
    margin-right: 5px;
}

.calendar-week::after {
    content: "";
    display: block;
    clear: both;
}

.calendar-week li {
    float: left;
    width: 14.2857143%;
    padding: .5rem 0;
    text-align: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-right: 0;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.calendar-box::after {
    content: "";
    display: block;
    clear: both;
}

.calendar-box li {
    float: left;
    width: 14.2857143%;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    height: 120px;
    padding: 0 .5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.calendar-box .more {
    font-size: 12px;
    text-align: right;
    line-height: 15px;
}

.calendar-box li.active {
    background-color: #D1ECF1;
}

.calendar-week li:first-child {
    border-left: 1px solid #ccc;
}

.calendar-week li:last-child {
    border-right: 1px solid #ccc;
}

.calendar-box li:nth-child(7n+0) {
    border-right: 1px solid #ccc;
}

.calendar-box li .date {
    color: #333;
    cursor: pointer;
}


.calendar-box li .date.on {
    color: #31a7e7;
}

.calendar-box li .date:hover {
    background-color: #31a7e7;
    color: #fff;
    border-radius: 30px;
    width: 50px;
    height: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-box .courses-list {
    color: #fff;
    margin-bottom: 3px;
    font-size: 0.9rem;
    padding: 2px 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    white-space: nowrap;
    width: 100%;
    border-radius: 5px;
}

.calendar-box .kut {
    background-color: #7F3F98;
}

.calendar-box .client {
    background-color: #1CB9C5;
}

.calendar-box li[data-toggle="modal"] {
    cursor: pointer;
}

button.close {
    font-size: 2.2rem;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

/*-----------------------
# 預約升溫排程(區域)
-------------------------*/
.appointment-time {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.appointment-time .btn-start,
.appointment-time .btn-stop {
    white-space: nowrap;
    margin-left: 5px;
}

.area-item-box .card .name.appointment-name {
    margin-bottom: 40px;
}

.appointment-time .form-control {
    padding: .375rem .5rem;
}

.area-item-box .btn-no {
    border: 1px solid #999;
    background-color: #cfcfcf;
    color: #333;
    white-space: nowrap;
    margin-left: 5px;
}