
html {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Poppins', sans-serif,'微軟正黑體',sans-serif;
    padding: 0;
    margin: 0 0 50px;
    color: #333;
}

input[type=checkbox] {
    background-color: #74c043 !important;
    accent-color: darkslategrey;
    width: 16px;
    height: 16px;
}

div.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.5);
    z-index: 100;
}

div.loader {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #74c043;
    width: 70px;
    height: 70px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



img.n-logo {
    /*transform: scale(0.8);*/
}

.purchase-wrap {
    width: 992px;
    margin: 0 auto 0;
    padding: 15px;
    font-weight: 700;
}

.regular-box {
    margin: 5px 0;
}

.my-title {
    font-size: 24px;
    font-weight: 700;
}

div.content-box {
    border: 2px solid #333;
    border-radius: 6px;
    width: 100%;
    margin: 8px auto 0;
    padding: 5px 15px 0;
}

/************單細節開始  可覆用*********************/

div.form-wrap {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    border-bottom: 1px dashed #74c043;
    width: 100%;
}

div.form-unit-box {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
}

div.form-unit-box > div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 20px 0;
}

div.form-unit-box > div.col-key {
    width: 100px;
}
div.form-unit-box > div.col-value {
    width: calc(100% - 90px);
}

div.form-unit-box > div.col-value.forAutoComplete {
    position: relative;
    /*padding: 10px 0;*/
}

div.manufacturers-auto-box {
    position: absolute;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    border-radius: 8px;
    border: 1px solid #333;
    top: 40px;
    left: 12px;
    background-color: #fff;
    /*width: 200px;*/
    padding: 8px 0;
}


div.manufacturers-auto-box > div {
    box-sizing: border-box;
    padding: 2px 3px 2px 20px;
    width: 200px;
    cursor: pointer;
}


div.manufacturers-auto-box > div:hover {
    background-color: #eaeaea;
}


div.manufacturers-auto-box > div:not(:last-child)  {
    border-bottom: 1px dashed #333;

}

div.original-auto-box {
    position: absolute;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    border-radius: 8px;
    border: 1px solid #333;
    top: 40px;
    left: 12px;
    background-color: #fff;
    /*width: 200px;*/
    padding: 8px 0;
}

div.sales-auto-box {
    position: absolute;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    border-radius: 8px;
    border: 1px solid #333;
    top: 40px;
    left: 12px;
    background-color: #fff;
    /*width: 200px;*/
    padding: 8px 0;
}


div.original-auto-box > div {
    box-sizing: border-box;
    padding: 2px 3px 2px 20px;
    width: 365px;
    cursor: pointer;
}

div.sales-auto-box > div {
    box-sizing: border-box;
    padding: 2px 3px 2px 20px;
    width: 365px;
    cursor: pointer;
}

div.original-auto-box > div:hover {
    background-color: #eaeaea;
}

div.sales-auto-box > div:hover {
    background-color: #eaeaea;
}


div.original-auto-box > div:not(:last-child)  {
    border-bottom: 1px dashed #333;

}

div.sales-auto-box > div:not(:last-child)  {
    border-bottom: 1px dashed #333;

}

div.sales-auto-box > div:not(:last-child)  {
    border-bottom: 1px dashed #333;

}



div.form-unit-box > div.col-value.select {
   justify-content: flex-start;
}

input.my-input-text {
    width: calc(100% - 30px);
    padding: 8px 8px 8px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: 16px;
    font-weight: 700;
}

select.filler {
    width: calc(100% - 30px);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: 16px;
    font-weight: 700;
}

select.product_type {
    width: calc(100% - 8px);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: 16px;
    font-weight: 700;
}

select.currency {
    width: calc(100% - 30px);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: 16px;
    font-weight: 700;
}

textarea.my-input-text {
    width: calc(100% - 30px);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: 16px;
    font-weight: 700;
}
div.select-btn {
    margin-left: 30px;
    padding: 8px;
    border-radius: 6px;
    color: #74c043;
    border: 1px solid #74c043;
    background-color: #fff;
    cursor: pointer;
    /*user-select: none;*/
}

div.select-btn.active {
    background-color: #74c043;
    color: #fff;
}

div.select-btn:hover {
    background-color: #74c043;
    color: #fff;
    transition: .5s;
}


span.my-circle {
    color: #73bf43;
    cursor: pointer;
    user-select: none;
}
div.btn-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px 0 0 0;
}
div.send-btn {
    border-radius: 6px;
    /*width: 150px;*/
    color: #fff;
    background-color: #74c043;
    text-align: center;
    padding: 6px 100px;
    cursor: pointer;
    user-select: none;
    transition: .5s;
}

div.send-btn:hover {

}

div.send-btn:hover {
    background-color: #5f9933;
}

.p100 {
    width: 100%;
}
.p50 {
    width: 50%;
}
.p33 {
    width: 33.3%;
}
.p25 {
    width: 25%;
}
.p66 {
    width: 66.6%;
}










/************單細節結束  可覆用**********以上********/



/*列表頁css    開始********************************/

div.top-box {
    background-color: #fff;
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 15;
}

div.purchase-list-wrap {
    align-items: center;
    justify-content: center;
    flex-flow: column;
    margin-top: 25px;
    display: none;
}

div.purchase-list-wrap.show {
    display: flex;
}


div.list-box {
    display: flex;
    height: auto;
    margin: 100px auto 0;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    position: relative;
}



div.list-content-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    margin: 0 auto 0;
    height: auto;
}

div.list-content-box:nth-child(even) {
    background-color: #eee;
}

div.list-content-box:nth-child(:first-child) {

}

a.logo {
    position: absolute;
    top: -85px;
    left: 0;
    z-index: 20;
}

span.data-base-title {
    position: absolute;
    top: -38px;
    left: 0;
    z-index: 20;
    color: #999;
    font-size: 14px;
}

div.purchase-data-head {
    background-color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    position: fixed;
    z-index: 20;
}

div.purchase-data-head.content {
    border-top: none;
    background-color: rgb(255,255,255,0);
    z-index: 10;
    position: relative;
}

div.purchase-data-head.content > div {
    color: #333;
    font-size: 14px;
}

div.purchase-data-head > div {
    color: #fff;
    border-right: 1px solid #333;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

a {
    color: #333;
    text-decoration: none;
}

a.my-link {
    border-bottom: 1px dashed #333;

}

a.my-link:hover {
    border-bottom: none;
}

div.purchase-data-head > div:last-child {
    border-right: none;
}

div.purchaseNO {
    width: 50px;
}
div.purchase-serialNO {
    width: 120px;
}
div.purchase-productID {
    width: 210px;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
div.unit-price {
    width: 80px;
}
div.manufacturers-productID {
    width: 220px;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
div.original-productID {
    width: 600px;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    }
div.manufacturers {
    width:120px;
}
div.original-factory {
    width:160px;
}
div.purchase-sales {
    width:80px;
}
div.purchase-filler {
    width:80px;
}
div.purchase-date {
    width:125px;
    border-right: none !important;
}
/*div.purchase-date::after {
    content: attr(title);
    background-color: #ffffcc;
    opacity: 0; !* 初始時隱藏，只在 hover 時顯示 *!
    visibility: hidden; !* 初始時隱藏 *!
}

div.purchase-date:hover::after {
    opacity: 1; !* 在 hover 時顯示 *!
    visibility: visible;
}*/

div.purchase-data-head > div.edit {
    width: 35px;
    color: #FFF;
    /*border-right: 1px solid #333;*/
    display: none;
}

div.purchase-data-head > div.delete {
    width: 35px;
    color: #FFF;
    /*border-right: 1px solid #333;*/
    /*text-decoration: underline;*/
    /*cursor: pointer;*/
    display: none;
}

div.purchase-data-head > div.delete span {
    cursor: pointer;
    border-bottom: solid 1px #FFF;
}

div.purchase-data-head > div.delete span:hover {
    border-bottom: solid 1px #999;
}

div.data-content > div.edit {
    width: 53px;
    color: #FFF;
    /*border-right: 1px solid #333;*/
}

div.data-content > div.delete {
    width: 53px;
    color: #FFF;
    /*border-right: 1px solid #333;*/
}


/*列表頁css    結束**********************以上*******/



/*搜尋面板     開始********************************/

div#search-box {
    position: fixed;
    top: 12px;
    right: -352px;
    border: 1px solid #74c043;
    border-radius: 6px;
    z-index: 35;
    transition: 0.5s;
    height: auto;
    padding: 20px;
    background-color: #FFF;
    display: none;
}

div#search-box.open {
    right: 0;
}

span.chevron_right {
    display: none;
}

span.chevron_right.open {
    display: block;
}

span.chevron_left {
    display: block;
}

span.chevron_left.open {
    display: none;
}



div.search-content {
    width: 310px;
    height: auto;
    /*background-color: #eaeaea;*/
    margin: 0 auto 0;
    position: relative;
}

div.search-content.update {
    width: 100%;
    height: auto;
    /*background-color: #eaeaea;*/
    margin: 0 auto 0;
    position: relative;
}

div.search-content-box {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
    color: #333;
    border-bottom: dashed 1px #73bf43;
}

div.search-content.update > div.search-content-box {
    padding: 15px 0;
}

div.search-content-box-left {
    display: flex;
    flex-flow: column;
    align-items: flex-end;
    justify-content: center;
    width: 30%;
    padding-right: 10px;
}

div.search-content-box-left.update {
    width: 23%;
}

div.search-content-box-right {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: flex-start;
    width: 70%;
}

div.search-content-box-right.update {
    width: 77%;
}

div#open-switch {
    width: 26px;
    height: 26px;
    position: absolute;
    top: 50%;
    right: 331px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #73bf43;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    transition: .5s;
    user-select:none;
}

div#open-switch:hover {
    background-color: #5f9933;
}



input[type=text].search-field {
    font-size: 16px;
    padding: 3px;
    color: #333;
    padding: 5px;
}

input[type=text].search-field.update {
    width: 85%;
}

div.search-btn-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 22px;
}

div.search-btn-box.update {
    justify-content: center;
}

div.search-btn {
    padding: 0 50px;
    color: #fff;
    background-color: #73bf43;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: .5s;
    user-select: none;
    height: 36px;
    /*border: 1px solid #73bf43;*/
    line-height: 36px;
}

div.button-wrap {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
}

a.search-btn {
    padding: 5px 70px;
    color: #fff;
    background-color: #73bf43;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: .5s;
    user-select: none;
    display: block;
    margin: 20px auto 0;
    user-select: none;
    text-decoration: none;
}

a.search-btn:hover {
    background-color: #5f9933;
}

div.search-btn:hover {
    background-color: #5f9933;
}

div.reset-btn {
    padding: 5px 20px;
    color: #fff;
    background-color: #73bf43;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: .5s;
    user-select: none;
}

div.reset-btn.update {
    margin-right: 20px;
}

div.reset-btn:hover {
    background-color: #5f9933;
}

div.download-report-box {
    display: flex;
    flex-flow: row;
    justify-content: flex-end;
    align-items: center;
    color: #73bf43;
    font-size: 13px;
    width: 100%;
    padding-right: 12px;
    cursor: pointer;
}

div.download-report-box:hover {
    color: #5f9933;
}

/*搜尋面板     結束********************************/

div.noData {
    margin-top: 50px;
    text-align: center;
    padding: 4px 60px;
    border-top: solid 1px #333 !important;
}

/*search zone  開始******************************/

div.search-zone {
    position: absolute;
    top: -75px;
    right: 0;
    z-index: 25;
    color: #333 !important;
    font-size: 14px;
    width: 1038px;
    /*border: 1px solid #333;*/
    border: none !important;
    display: flex;
    flex-flow: row nowrap ;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-bottom: 8px !important;
}

div.search-item-box {
    display: flex;
    flex-flow: column;
}

div.search-item-box.first {
    width: 200px;
}

div.search-item-box.second {
    width: 300px;
}

div.search-btn-new {
    background-color: #73bf43;
    padding: 8px 8px 8px 12px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #73bf43;
}

div.search-title {
    padding-left: 12px;
    color: #999;
    margin-bottom: 3px;
}

/*search zone  結束******************************/



/*分頁 css     開始********************************/

div.drawing-pager-box {
    margin: 40px auto 0;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
}

div.drawing-pager-box.inTop {
    position: fixed;
    margin-top: -125px;
    left: 380px;
    z-index: 30;
}

div.drawing-pager-box.hidden {
    display: none;
}

div.drawing-pager-item {
    margin-right: 8px;
    width: 25px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #999;
    color: #FFF;
    font-size: 16px;
    cursor: pointer;
    user-select:none;
    transition: .5s;
}

div.drawing-pager-item:hover {
    background-color: #73bf43;
}

div.drawing-pager-item.active {
    background-color: #73bf43;
    cursor: auto;
}

/*分頁 css     結束********************************/











