﻿@charset "utf-8";
body,
.fooicon {
    font-family: 'Microsoft JhengHei', 'sans-serif' !important;
    /*font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'sans-serif' !important;*/
}

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**/
.form-control:focus,
button {
    box-shadow: none !important;
    outline: none !important;
    border-color: #ced4da;
}
.custom-control-input:focus:not(:checked)~.custom-control-label::before {
    border: #adb5bd solid 1px;
}
.custom-control-input:focus~.custom-control-label::before {
    box-shadow: none !important;
}

.form-control,
.form-control:focus {
    border-radius: 0;
    color: #888;
}

.form-control::placeholder {
    color: #999;
    font-size: 15px;
}

label {
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
}

.btn {
    color: #fff;
    font-size: 16px;
    padding: 5px 10px
}

.btn:hover {
    color: #fff;
    opacity: 0.8;
}

.btn-edit {
    background-color: #4cd964;
    border-color: #4cd964;
    width: 39px;
}

.btn-blue {
    background-color: #34aadc;
    border-color: #34aadc;
    width: 39px;
}
.btn-darkblue {
    background-color: #007aff;
    border-color: #007aff;
    width: 39px;
}
.btn-delete {
    background-color: #ff2d55;
    border-color: #ff2d55;
    width: 39px;
}

.btn-add {
    background-color: #007aff;
    border-color: #007aff;
    /*margin-bottom: 10px;*/
    /*width: 39px;*/
}

.footable-details {
    border: 0;
}

.table td,
.table th {
    padding: .5rem;
}

.space-1{
    width: 50px;
}
.space-2{
    width: 100px;
}
/**header+sidebar**/

a.logo {
    margin-top: 0;
}

a.logo:hover {
    color: #fed189;
}

.toggle-nav {
    margin-top: 0px;
}

.search-row {
    margin-top: 0;
}

.top-nav {
    margin-top: 0;
}

#sidebar {
    background: #233242;
    -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}

ul.sidebar-menu li a {
    border-bottom: 0;
    color: #fff;
    border-left: 2px solid #233242;
}

ul.sidebar-menu a.active,
ul.sidebar-menu li a:hover,
ul.sidebar-menu li a:focus {
    background: #1a2732;
    border-left: 2px solid #137eff;
    border-bottom: 0;
    color: #fff;
}

ul.sidebar-menu .sub a:hover,
ul.sidebar-menu .sub a:focus {
    border-left: 2px solid #137eff;
}

ul.sidebar-menu li ul.sub li {
    background: #233242;
}

.navbar-form .form-control {
    width: 250px;
    border: 0;
    border-radius: 0;
    height: 35px;
}

.navbar-form input::placeholder {
    color: #999;
}

.page-header {
    color: #68737d;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.page-header svg{
    margin-right: 5px;
}
.filter .form-row {
    align-items: center;
}

.title-bom {
    margin-bottom: 20px;
}

.modal .title-bom {
    margin-bottom: 0px;
}

.filter h6 {
    margin-bottom: 0;
    line-height: 38px;
    font-weight: 600;
    color: #424a4d;
}

ul.sidebar-menu li a {
    position: relative;
}

ul.sidebar-menu li .fa-chevron-down {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin: auto;
    font-size: 14px;
}

ul.sidebar-menu li a span {
    margin-left: 5px;
}

ul.sidebar-menu li ul.sub li a {
    font-size: 16px;
}

ul.sidebar-menu li ul.sub li a {
    line-height: 40px;
    height: 40px;
}

.toggle-nav {
    cursor: pointer;
    font-size: 22px;
}

.lite {
    padding-left: 5px;
}

#main-content {
    margin-left: 200px;
}

.top-nav ul.top-menu>li>a {
    display: flex;
    align-items: center;
}

.top-nav .username {
    font-size: 16px;
    color: #fff;
    padding-right: 5px;
}

.head-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/**table**/

.table-box {
    background-color: #fff;
    padding: 30px;
    -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.table thead {
    /*background-color: #ecf6ff;*/
}

.table thead th {
    font-size: 16px;
    font-weight: 600;
    color: #424a4d;
}

table>tbody>tr:nth-child(odd) {
    background-color: #eee;
}

.text-prompt {
    color: #ff2d55;
}

.check-group .title {
    padding-right: 30px;
}

.check-group {
    padding-left: 30px;
    width: 100%!important;
}

.custom-control-input:checked~.custom-control-label::before {
    border-color: #4cd964;
    background-color: #4cd964;
}

.custom-control {
    padding-left: 30px;
    width: 100px;
}

.check-group-bom {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
    line-height: 25px;
}

.check-group-bom label {
    font-weight: 400;
    color: #666;
}


/**隱藏內容**/

table>tbody>tr>td>span.footable-toggle {
    opacity: 1;
    font-size: 21px;
    font-weight: bold;
    background-color: #4cd964;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 14px;
    color: #fff;
    padding: 0 1px;
    cursor: pointer;
}

table>tbody>tr>td>span.footable-toggle.fooicon-minus {
    opacity: 1;
    font-weight: bold;
    padding: 0 3px;
    background-color: #ff2d55;
}

.table-bordered .footable-details td,
.table-bordered .footable-details th {
    border: 0;
    border-bottom: 1px solid #dee2e6;
    padding: 5px;
}

.table-bordered .footable-details th {
    font-weight: 600;
    color: #424a4d;
}

.footable-details tr:nth-child(odd) {
    background-color: #fff!important;
}

.footable-detail-row {
    background-color: #fff!important;
    border-top: 2px solid #888;
}


/**頁數**/

.page {
    justify-content: space-between;
    align-items: center;
    color: #797979;
}

.page .title {
    color: #333;
}

.page .number .btn {
    font-size: 14px;
    color: #333;
}

.page .number .btn-light {
    border: 1px solid;
    background-color: #fff;
}


/*
.btn-next:hover span:after {
    content: "下一頁";
}

.btn-prev:hover span:after {
    content: "上一頁";
}
*/


/**視窗**/

.panel-heading,
.modal-header {
    border-bottom: 5px solid #e9ecef
}

.modal-title {
    font-size: 25px;
    color: #68737d;
    font-weight: 600;
}

.modal .table {
    background-color: #fff!important;
}

.modal table>tbody>tr:nth-child(odd) {
    background-color: #fff!important;
}

.modal .table thead {
    background-color: #cae6ff;
}

.modal .add-box {
    padding-bottom: 15px;
    border-radius: 5px;
    /*background-color: #fff;*/
    margin-bottom: 20px;
}

.modal .add-box button {
    margin: auto;
    width: 100%;
}

.modal .title-bom button {
    width: auto;
}

.btn-delete-link {
    background-color: initial;
    color: #333;
    border: 1px solid #333;
}

.btn-delete-link:hover {
    background-color: initial;
    color: #333;
}

.modal-dialog {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.group-title {
    /*border-bottom: 1px solid #007bff;*/
    color: #999;
    font-weight: bold;
    font-size: 20px;
    border-bottom: 1px solid #999;
    margin-bottom: 15px;
    padding-bottom: 5px;
    position: relative;
    cursor: pointer;
}
.multi-collapse{
    padding: 0 5px;
}
.group-title svg {
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    font-size: 15px;
}

.group {
    border: 1px solid #999;
    padding: 15px;
    background-color: #fff;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    border-radius: 10px;
}


/*排除兩個互動視窗問題*/

.modal {
    overflow-y: auto;
    background: rgba(0, 0, 0, .6); /*設定點背景不關要加*/
}

.modal-open .modal {
    overflow-y: scroll;
    
}


/*login*/

.login .head-title {
    margin: auto;
}

.login-form .head h5 {
    background: #1a2732;
    background-color: #1a2732;
    padding: 10px 0;
    text-align: center;
    font-size: 22px;
}

.login-form .head h5 {
    color: #fff;
    margin-bottom: 0;
}

/*login backgroudimage*/
.login-info {
    background-image: url(../../img/home.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 15px;
    width: 100%;
    height: 90vh;
}

/**各裝置以上**/

@media (min-width: 768px) {
    /*彈跳視窗大小*/
    .modal-dialog {
        max-width: 600px;
        margin: 1.75rem auto;
    }

    /*彈跳視窗大小*/
    .modal-lg {
        max-width: 800px;
    }

    .modal-header {
        padding: 15px 25px;
    }
    /**head*/
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .filter {
        position: absolute;
        top: 0;
        right: 20px;
        width: 500px;
    }
    .modal .filter {
        right: 0px;
        width: 350px;
    }
    .filter h6 {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .sidebar-menu {
        width: 201px;
    }

    .modal-header {
        padding: 15px 25px;
    }
}


/**各裝置以下**/

@media (max-width: 992px) {
    a.logo {
        font-size: 18px;
    }
    .lite {
        padding-left: 0px;
    }
    .top-nav .username {
        font-size: 16px;
    }
    .navbar-form .form-control {
        width: 200px;
    }
}

@media (max-width: 767px) {
    .head-title {
        justify-content: end;
    }
    .search-row {
        display: none;
    }
    ul.sidebar-menu {
        margin-top: 73px;
    }
    .page {
        flex-direction: column;
    }
    .page .title {
        margin-bottom: 10px;
    }
    .login a.logo{
        margin: auto;
    }
    .login .header{
        min-height: auto;
        padding: 10px 0;
    }
    .login-form {
        margin-top: 150px;
    }
}


/* 選單效果

#main-content{
    margin-left:180px ;
}
#main-content.show{
    margin-left:110px ;
}


@media screen and (max-width: 768px) {
#sidebar{
    margin-left:-100%!important;
}
#sidebar.show{
    margin-left:0px!important ;
}
}


@media screen and (min-width: 769px) {

#sidebar.show{
    width: 70px;
}
} 

*/