@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');
/* 修正粗體 */
@font-face {
    font-family: '微軟正黑體修正';
    unicode-range: U+7db0, U+78A7, U+7B75; /* ASCII (碧筵綰) */
    font-style: normal;
    font-weight: bold;
    src: local(Yu Gothic), local(MS Gothic);
}
/* 一般粗細的時候改回微軟正黑 */
@font-face {
    font-family: '微軟正黑體修正';
    unicode-range: U+7db0, U+78A7, U+7B75; /* ASCII (碧筵綰) */
    font-style: normal;
    font-weight: bold;
    src: local(微軟正黑體);
}
* {
    margin: 0;
    position: relative;
    box-sizing: border-box;
    font-family: 'Helvetica', 'Arial', '黑體-繁', '微軟正黑體', 'Microsoft JhengHei', sans-serif;
    font-display: swap;
    /* font-size: 1.01em; */
}

*::before,
*::after {
    margin: 0;
    padding: 0;
}

/************************/
/*						*/
/*    for [div]  */
/*	   					*/
/************************/
input {
    width: 60px;
}

.main-right-inside {
    padding: 30px 40px;
}

.main-right-inside-new {
    padding: 20px 10px 30px 30px;
}

/************************/
/*						*/
/*    for [flex]  */
/*	   					*/
/************************/
.flex-row {
    display: flex;
    flex-direction: row;
    margin: 0px;
}

.inline-flex-row {
    display: inline-flex;
    flex-direction: row;
    margin: 0px;
    width: 100%;
}

.center {
    display: flex;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.float-left {
    float: left;
    position: relative;
}

.float-right {
    float: right;
    position: relative;
}

.card-active:hover {
    border-radius: 10px;
    background-color: #e0f2fb;
}

/* .active {
    background: #e0f2fb;
} */

.hover:hover {
    cursor: pointer;
}

.table {
    display: table;
    width: 100%;
}

.pointer {
    cursor: pointer;
    margin-right: 10px;
    border-radius: 10px;
}

.relative {
    position: relative;
}

.ant-btn-clicked:after {
    animation: 0s;
}

.test {
    background-color: green;
}

.flex {
    display: inline-flex;
}

.ant-modal-footer .ant-btn {
    z-index: 99;
}

.react-resizable {
    position: relative;
}
.react-resizable-handle {
    position: absolute;
    width: 10px;
    height: 100%;
    bottom: 0;
    right: -5px;
    cursor: col-resize;
}

.ant-form-item {
    margin-bottom: 0px;
}

.ant-form-item-label {
    padding-bottom: 0px;
}
.ant-card-body {
    padding: 10px 10px;
}

.ant-form-item-control {
    line-height: 5px;
    margin-top: -8px;
}

.dev {
    border-style: dashed;
    border-color: #ffac55;
}

/* 20181228 先把全域影響的CSS拿掉 改成各自去修改自己的modal */
.processModal .ant-modal-header {
    text-align: center;
    background-color: #4279af;
}
.processModal .ant-modal-title {
    color: white;
}

/************************/
/*						*/
/*    for [button]  */
/*	   					*/
/************************/
.btn {
    /* Remove First 移除ios input style */
    appearance: none;
    /* 基礎定位 */
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    /* btn外觀 */
    margin: 0;
    padding: 0 8px; /* 上下的高度由padding去撐開 */
    height: 32px;
    border: 0;
    border-radius: 4px;
    outline: 0;
    background: transparent;
    /* btn文字 */
    font-size: inherit;
    text-align: center;
    line-height: 32px;
    text-decoration: none;
    letter-spacing: 0;
    /* 使用者互動 */
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn.confirm-button {
    background: #3e9700;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 300;
    height: 30px;
}

.confirm-button {
    color: white;
    display: inline-block;
    background: #417505;
    border: none;
    cursor: pointer;
}
.confirm-button:hover {
    color: white;
    display: inline-block;
    background: #417505;
    border: none;
    cursor: pointer;
}

.more-action-button .ant-popover-inner {
    background-color: black;
}

.more-action-button .ant-popover-arrow {
    background-color: black;
}

.tagStyle {
    font-size: 18px;
    background-color: #4279af;
    color: white;
    font-weight: 300;
    border: none;
    margin-left: 10px;
}

:root .ant-tag .anticon-close {
    font-size: 18px;
    color: white;
    font-weight: 300;
}

.ant-menu-vertical .ant-menu-submenu-selected,
.ant-menu-vertical-left .ant-menu-submenu-selected,
.ant-menu-vertical-right .ant-menu-submenu-selected {
    color: #4279af;
}

/*Footer按鈕確認視窗*/
.customPopConfirm .ant-popover-message-title {
    font-size: 18px;
    padding-left: 26px;
}

.customPopConfirm .ant-btn-sm {
    height: 36px;
    /* padding: 0; */
}

.customPopConfirm .ant-popover-message > .anticon {
    font-size: 18px;
}

.customPopConfirm .ant-popover-inner {
    width: 300px;
}

.invoiceForm {
    /* display: inline-block; */
    padding-left: 0;
    /* width: calc(100%/3); */
    margin-bottom: 20px;
}

/*Table tabs*/
/* .ant-tabs-nav-wrap {
    background-color: #ecf0f3;
    margin-right: 5px;
    border-radius: 20px;
  } */

.purchaseform {
    display: inline-block;
    padding-left: 0;
    width: calc(100% / 3);
    margin-bottom: 20px;
}
.purchaseformModal5Col {
    display: inline-block;
    margin-left: 0px;
    width: calc(100% / 5);
    margin-bottom: 20px;
}

.purchaseformModal1Col {
    display: inline-block;
    padding-left: 0;
    width: calc(100% / 1);
    margin-bottom: 20px;
}

.editFrom {
    width: 80%;
    max-width: 1024px;
    margin: 0 auto;
}

.ant-form-item-label label {
    font-size: 18px;
    color: #868686;
}


.purchaseformModal5Col .ant-form-item-label label {
    font-size: 18px;
    font-weight: bold;
    color: hsl(0, 0%, 48%) !important;
    /* color: #868686; */
}

@media (min-width: 500px) and (max-width: 1000px) {
    .purchaseform {
        display: inline-block;
        padding-left: 0;
        width: calc(100% / 2);
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {
    .purchaseform {
        width: 100%;
        margin-bottom: 20px;
    }
}

/*
  此css 是for table式的彈出視窗 data最多五筆所設定的高度 
  */
.modalTableHeight {
    height: 390px;
}

.page-default-margin {
    margin-left: 10px;
    margin-right: 20px;
}
.page-default-height {
    height: 100%;
    overflow: hidden;
}

.weightSpan {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
/*
  顯示多張圖片使用
  */
.imgbox {
    /* position: relative; */
    background-color: #eceaea;
    /* width: 500px; */
    max-width: 750px;
    /* height: 500px; */
    overflow: hidden;
    margin: 0 auto;
}

.imgbox-inner {
    width: 100%;
    padding-top: calc(100% * 3 / 4);
    height: 0;
}

.imgbox .image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
}

.imgbox .pdf {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* max-width: 100%;
    max-height: 100%; */
}

.ant-table-thead > tr > th {
    background: none;
    border-bottom: 1px solid #868686;
}
.ant-table-thead > tr > th.ant-table-column-sort {
    background: none;
}
.ant-table-tbody > tr > td.ant-table-column-sort {
    background: none;
}
.ant-table-thead > tr > th .ant-table-column-sorters:hover:before {
    background: none;
}
.ant-table-thead > tr > th .ant-table-column-sorter {
    display: none;
}

/*
 * 修正ant-disign-calendar月曆年份選擇排版混亂的問題
 * 因position: relative影響
 */
.ant-calendar-header {
    position: static;
}

/*
 * ant-design Popover overlayClassName
 */
.addtionalOptionsOverlayer{
	width: 134px;
}
.addtionalOptionsOverlayer .ant-popover-inner{
	background: black;
}
.addtionalOptionsOverlayer .ant-popover-arrow{
	background: black;
}
.addtionalOptionsOverlayer button{
	background: transparent;
	color: #fefefe;
	border: none;
	padding: 6px 8px;
}