@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: #F0F2F5;
    flex-direction: column;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    background: #fff;
}

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 15px 15px 15px;
}

select.form-control,
select.form-control:focus {
    background: #fff url(../images/arrow-line.png) no-repeat;
    background-size: 13px;
    background-position: calc(100% - 10px) center !important;
    box-sizing: border-box;
    appearance: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
}

/***************捲軸樣式***************/
/* 整個捲軸 */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* 捲軸的軌道 */
::-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;
}

/******進度條顏色*****/
.progress-bar.color01{
    background-color: #3250E1;
}

.progress-bar.color02{
    background-color: #2DC850;
}

.progress-bar.color03{
    background-color: #28B4C8;
}

.progress-bar.color04{
    background-color: #ffd334;
}

.progress-bar.color05{
    background-color: #A55FC2;
}

.progress-bar.color06{
    background-color: #A6CBCE;
}

.progress-bar.color07{
    background-color: #0E4687;
}

.progress-bar.color08{
    background-color: #F38220;
}

.progress-bar.color09{
    background-color: #B5B2A3;
}

.progress-bar.color10{
    background-color: #637697;
}








/***************表格隱藏/顯示***************/
.table-data tbody tr td:first-child::before {
    position: absolute;
    content: "";
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #dee2e6;
}

.table-data tbody.table-collapse tr td {
    background-color: #fff;
}

.table-data tbody.table-collapse tr td:first-child {
    padding-left: 30px;
}

.table-data tbody.table-collapse tr:first-child td:first-child {
    background-color: #e2edf3;
    padding-left: 10px;
    padding-right: 25px;
}

.table-data tbody tr td {
    position: relative;
}

.table-collapse-icon {
    color: #fff;
    background-color: #20a46f;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}

.table-data tbody.table-collapse tr.table-collapse-item{
    display: none;
}

.table-data tbody.table-collapse tr.table-collapse-item.show {
    display: table-row;
}


/*--------------------------------------------------------------
# 上方選單
--------------------------------------------------------------*/

/*搜尋 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: #004ea8;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.logo img {
    width: auto;
    height: 27px;
    margin-right: 20px;
}

.logo:hover {
    color: #004ea8;
}

.copyright,
.copyright:hover {
    color: #999;
}

.navbar {
    padding: 0 1rem;
    z-index: 50;
    width: 100%;
    background-color: #e2edf3;
    border-bottom: 1px solid #004ea8;
}

.navbar::before {
    position: absolute;
    content: "";
    z-index: -1;
    right: 80px;
    top: 0;
    width: 410px;
    height: 50px;
}

.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: #bfded7;
}

.user,
.user:hover {
    color: #333;
}

.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 15px;
    }

    .navbar .navbar-nav .nav-link {
        padding: .75rem 1.2rem;
        border-right: 1px solid #bfded7;
    }

    .user {
        height: 50px;
        margin-left: 1.2rem;
    }

    .search {
        max-width: 200px;
        display: flex;
        margin-right: 1rem;
    }
}

/*--------------------------------------------------------------
選單+側邊+內容
--------------------------------------------------------------*/
.navbar {
    justify-content: space-between;
}

.btn-loginout {
    background-color: #fff;
}

.navbar-btn .btn-toggle-fullwidth {
    margin-right: 10px;
    border: none;
    background: none;
    outline: none;
}

.navbar-btn button svg {
    font-size: 20px;
    color: #fff;

}

.navbar-btn button svg path {
    fill: #004ea8 !important;
}

.admin-name,
.admin-name:hover {
    font-size: 20px;
    /* color: #54d5dc; */
}

.admin-name span {
    /* color: #e7f9fa; */
    margin-left: 5px;
}

.navbar-admin {
    transition: all 0.3s;
    -moz-box-shadow: 0px 0px 28px 0px rgba(82, 63, 105, 0.13);
    -webkit-box-shadow: 0px 0px 28px 0px rgba(82, 63, 105, 0.13);
    box-shadow: 0px 0px 28px 0px rgba(82, 63, 105, 0.13);
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    padding: .5rem 1rem;
    margin: 0;
    border: none;
    background-color: #2B333E;
    color: #eee;
    border-bottom: 1px solid #fff;
    z-index: 50;
}

.navbar-user .user {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.navbar-user .user svg {
    margin-right: 5px;
    font-size: 1.5rem;
}

.navbar-user .user.mess {
    position: relative;
}

.navbar-user .user.mess span {
    background-color: #FDD000;
    min-height: 15px;
    line-height: 14px;
    min-width: 15px;
    text-align: center;
    border-radius: 100%;
    color: #231427;
    font-size: 12px;
    z-index: 1;
    font-weight: bold;
    position: absolute;
    width: 15px;
    height: 15px;
    right: -5px;
    top: 0;
    bottom: 0;
}

.sidebar {
    transition: all 0.3s;
    width: 300px;
    height: 100%;
    float: left;
    background-color: #050e0d;
    position: fixed;
    left: -300px;
    font-size: 16px;
}

.slide {
    transition: all 0.3s;
}

.main {
    transition: all 0.3s;
    /*影響版面*/
    /* width: calc(100% - 200px); */
    width: 100%;
    left: 0;
    position: relative;
    float: right;
}

#sidebar-nav {
    overflow: auto;
}

#sidebar-nav,
.main {
    padding-top: 55px;
}

/* .btn-toggle-fullwidth {
    display: none;
} */

/*控制選單展開*/

.layout-fullwidth .sidebar {
    left: 0;
}

.layout-fullwidth .main {
    /*影響版面*/
    /* width: 100%; */
}

.layout-fullwidth .navbar {
    left: 0 !important;
}

.offcanvas-active .sidebar {
    left: 0;
}

.offcanvas-active .main {
    width: 100%;
    position: relative;
}

.user {
    display: flex;
    align-items: center;
}

.user-name {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 1300px) {
    .btn-toggle-fullwidth {
        display: block;
    }

    .sidebar {
        left: -300px;
    }

    .main {
        width: 100%;
    }

    .navbar {
        left: 0 !important;
    }

    .btn-toggle-fullwidth {
        color: #00AAFF;
    }

    .navbar .navbar-btn a img {
        width: 125px;
    }

    .navbar-user .user {
        margin-right: 10px;
    }
}

.main-content {
    padding: 1.5rem 2rem;
}

.navbar+.main-content {
    padding: 105px 0 28px 5px;
}

@media screen and (max-width: 767px) {
    .navbar+.main-content {
        padding-top: 155px;
    }
}

.sidebar {
    z-index: 9;
}

.sidebar .nav>li {
    position: relative;
}

.sidebar .nav>li>a {
    padding: 12px 15px;
    color: #cfd7e0;
    display: block;
}

/*.sidebar .nav>li>a:focus,*/

.sidebar .nav>li>a:hover,
.sidebar .nav>li>a.active {
    color: #e2e7ec;

}

.sidebar .nav>li>a.title {
    color: #e2e7ec;
    border-bottom: 1px solid #555;
    margin: 0 15px;
}

.sidebar .nav>li.active .title {
    color: #fff;
    background-color: #1c5350;
}

.sidebar .nav>li.active>a {
    color: #97c5c3;

}

.sidebar .nav>li>a:hover i,
.sidebar .nav>li>a:focus i,
.sidebar .nav>li>a.active i {
    color: #00AAFF;
}

.sidebar .nav>li>a .badge {
    font-weight: 400;
    background-color: #F9354C;
}

.sidebar .nav {
    display: block;
}

.sidebar p {
    text-align: center;
    color: #fff;
}

.sidebar .nav i {
    margin-right: 10px;
    font-size: 18px;
}

.sidebar .nav svg {
    margin-right: 7px;
    width: 20px;
}

.sidebar .nav span {
    /*transition: all 0.3s;
	position: relative;
	margin-left: 10px;*/
    /*position: absolute;*/
    background-color: #dc3545;
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    text-align: center;
    border-radius: 10px;
    margin-left: 10px;
}

.sidebar .nav .nav {
    /* background-color: #1e232a; */
    padding: .5rem 0;
}

.sidebar .nav .collapse-icon {
    position: absolute;
    right: 10px;
    top: 12.5px;
}

.sidebar .nav .collapse-icon svg {
    font-size: 15px;
    width: auto;
}

.sidebar .nav .nav>li>a {
    padding-left: 48px;
    padding-top: 3px;
    padding-bottom: 3px;
    position: relative;
}


.sidebar .nav .nav>li>a:after {
    content: "";
    position: absolute;
    height: 100%;
    width: 1px;
    /* background-color: #AEB7C2; */
    top: 0;
    bottom: 0;
    left: 25px;
}

.sidebar .nav .nav>li>a:focus,
.sidebar .nav .nav>li>a.active {
    background-color: transparent;
    border-left-color: transparent;
}

.sidebar .nav .nav>li>a.active a {
    color: #fff;
}

.main .box {
    background-color: #fff;
    padding: 1.5rem;
    /*border-radius: 5px;*/
    margin-bottom: 10px;
    box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, .1);
    border-radius: 3px;
}

/*--------------------------------------------------------------
# 登入
--------------------------------------------------------------*/

.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: #004ea8;
    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;
}

.login-box .card {
    padding: 0;
    border: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.login .card-box {
    padding: 40px 30px 25px 30px;
    border: 1px solid #004ea8;
    box-shadow: 5px 5px 10px rgb(75 88 105 / 12%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: 0;
}

.login .btn {
    background-color: #959595;
    border-color: #959595;
    margin-top: 20px;
}

.login .btn:active {
    background-color: #666 !important;
    border-color: #666 !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: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    font-weight: 600;
}

/*時間*/
.page-time {
    /* padding: 5px 4rem;
    text-align: right;
    background-color: rgb(255, 255, 255, 0.5);
    font-size: 0.95rem; */
    color: #463939;
    position: absolute;
    right: 15px;
    top: 65px;
}

/*-----------------
# 入口
-------------------*/
/**************摺疊入口************/
.case .card {
    border: 0;
    margin-bottom: 15px;
    border-radius: 0;
}

.case .card-header {
    background-color: #fff;
    padding: .65rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case .card-header h5 {
    margin-bottom: 0;
    font-size: 18px;
    color: #09203A;
    font-weight: 400;
}

.case .card-header .quantity {
    display: flex;
    color: #8E8D8D;
}

.case .card-header .quantity img {
    width: 10px;
    margin-left: 10px;
}

.case .card-body {
    background-color: #02657E;
    color: #ffff;
    padding: .75rem 2rem;
    border-top: 4px solid #FFD26A;
}

.case .card-body ul {
    margin-bottom: 0;
}

.case .card-body ul li {
    border-bottom: 1px solid #CFCFCF;
    padding: 5px;
}

.case .card-body ul li:last-child {
    border-bottom: 0;
}

.case .card-body ul li a {
    display: block;
    width: 100%;
}

/*************單個入口*************/
.enter .form-row {
    justify-content: center;
}

.enter .card {
    background-color: #fff;
    border: 2px solid #27988D;
    border-radius: 10px;
    box-shadow: 5px 5px 8px rgb(0 0 0 / 10%);
    margin-bottom: 15px;
}

.enter .card:hover {
    box-shadow: 3px 3px 4px rgb(0 0 0 / 20%);
}

.enter .card .title {
    margin: 3px;
    /* height: 100px; */
    background: -ms-linear-gradient(top, #118E82, #006158);
    background: -webkit-linear-gradient(top, #118E82, #006158);
    background: linear-gradient(top, #118E82, #006158);
    text-align: center;
    color: #fff;
    font-size: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enter .card .title img {
    width: 15%;
    margin: 20px auto;
    opacity: 0.8;
}

.enter .card .text {
    font-size: 20px;
    text-align: center;
    color: #646464;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.enter .card .text img {
    width: 20px;
    margin-right: 5px;
}

/*--------------------------------------------------------------
# 入口第二層
--------------------------------------------------------------*/
.enter-info .form-row {
    justify-content: center;
}

.enter-info .page-title {
    margin-top: 40px;
}

.enter-info .card {
    text-align: center;
    margin-bottom: 10px;
    border: 0;
    box-shadow: 0px 1px 2px 1px rgb(154 154 204 / 22%);
    padding: 0;
    border-bottom: 3px solid #007E72;
}

.enter-info .card .title {
    padding: 10px 0 5px 0;
    font-size: 20px;
    color: #19a597;
    font-weight: 500;
    display: flex;
    justify-content: center;
    position: relative;
}

.enter-info .card .title:after {
    content: '';
    position: absolute;
    display: inline-block;
    bottom: 0;
    left: 20%;
    right: 20%;
    width: 60%;
    height: 1px;
    background: #ccc;
    opacity: 0.5;
    z-index: 1;
}

.enter-info .card .text {
    margin: 10px 0;
    color: #444;
    font-size: 15px;
}

/*-----------------
# 報表
-------------------*/
.line-choose-box {
    display: flex;
}

.line-choose {
    display: flex;
    align-items: center;
    width: 210px;
    margin-bottom: 10px;
    margin-right: 15px;
}

.line-choose .title {
    width: 80px;
}

.line-choose-box button.btn {
    position:relative;
    top:-5px;
    right:10px;
}

.line-choose .form-control {
    font-size: 1rem;
    width: calc(100% - 80px);
    padding: 5px 15px;
    height: calc(1.5em + .5rem + 2px);
    border-color: #999;
}
.line-choose.date-range{
    /*width: 480px;*/
    width:auto;
}
.line-choose.date-range .title{
    width: 80px;
}

.line-choose.date-range .form-control {
    font-size: 1rem;
    width: 250px;
    padding: 5px 15px;
    height: calc(1.5em + .5rem + 2px);
    border-color: #999;
    margin-right: 15px;
}
/*表格*/
.table-box {
    width: 100%;
    height: 77vh;
    overflow: auto;
}

.table-data {
    table-layout: fixed;
    /* 固定寬度 */
    font-size: 14px;
    margin: 0;
}

.table-data tbody td:first-child {
    /* 首行永遠固定於左 */
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: #e2edf3;
    position: sticky;
    top: -1px;
    z-index: 99;
    line-height: 1.1;
    vertical-align: text-top;
    width: 160px;
}

.table-data thead tr td {
    /* 列首永遠固定於上 */
    position: sticky;
    top: -1px;
    z-index: 100;
    background-color: #e2edf3;
    border-bottom: 1px solid #999;
}

.table-data td {
    padding: 10px;
    white-space: nowrap;
    width: 180px;
}

.table-data thead td {
    text-align: center;
}

/*progress*/
.ng-progress-box {
    position: relative;
    padding-right: 60px;

}

.ng-progress-box .ng-progress::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    right: 0;
    margin: auto;
    color: #333;
}

/*-----------------
# 圖表
-------------------*/
.line-choose-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.time-choose {
    display: flex;
    align-items: center;
    width: 140px;
    margin-bottom: 10px;
    margin-right: 15px;
}

.time-choose .title {
    width: 40px;
}

.time-choose .form-control {
    font-size: 1rem;
    width: calc(100% - 40px);
    padding: 5px 15px;
    height: calc(1.5em + .5rem + 2px);
    border-color: #999;
}
.line-production {
    display: flex;
    align-items: center;
    width: 210px;
    margin-bottom: 10px;
    margin-right: 15px;
}
.line-production .title {
    width: 40px;
}
.line-production .form-control {
    font-size: 1rem;
    width: calc(100% - 40px);
    padding: 5px 15px;
    height: calc(1.5em + .5rem + 2px);
    border-color: #999;
}
.chartbar-box {
    width: 100%;
    height: 75vh;
}

.production-chart-box canvas {
    height: 75vh !important;
}