.inline-block {
    display: inline-block;
    vertical-align: top;
}


.Pointer {
    cursor: pointer;
}

.ActiveText {
    font-weight: 800;
}

.flex {
    display: flex;
}

.spaceBetween {
    justify-content: space-between;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.content-wrapper {
    background: #fff;
}

.ui-menu-item {
    padding: 5px;
}


input {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding-left: 5px;
    outline: none;
}

input[type=text]:focus {
    border: 1px solid #ccc;
}

.AddProductFieldName {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
}


textarea {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding-left: 5px;
    resize: none;
}

.UIButton, .InputCancelAddBtn, .InputEditBtn{
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    border: 0px solid #aaa;
    user-select: none;
    border-radius: 3px;
    background: #000;
    color: #fff;
    padding: 5px;
}

.UIButton:hover, .InputCancelAddBtn:hover, .InputEditBtn:hover {
    font-weight: 800;

}

.FW-800 {
    font-weight: 800
}

.FW-700 {
    font-weight: 700
}

.FW-400 {
    font-weight: 400
}

.t-center {
    text-align: center;
}

.t-left {
    text-align: left;
}

.t-right {
    text-align: right;
}

.p-0 {
    padding: 0px;
}

.p-1 {
    padding: 1px;
}

.p-2 {
    padding: 2px;
}

.p-3 {
    padding: 3px;
}

.p-5 {
    padding: 5px;
}

.p-10 {
    padding: 10px;
}

.pt-1 {
    padding-top: 1px;
}

.pt-2 {
    padding-top: 2px;
}

.pt-5 {
    padding-top: 5px;
}

.pt-10 {
    padding-top: 10px;
}

.pt-15 {
    padding-top: 15px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-5 {
    padding-bottom: 5px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.pr-10 {
    padding-right: 10px;
}

.pl-10 {
    padding-left: 10px;
}

.m-0 {
    margin: 0px;
}

.m-5 {
    margin: 5px;
}

.ml-5 {
    margin-left: 5px;
}

.mr-5 {
    margin-right: 5px;
}

.mr-10 {
    margin-right: 10px;
}

.mr-20 {
    margin-right: 20px;
}

.m-10 {
    margin: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-20 {
    margin-left: 20px;
}


.mt-1 {
    margin-top: 1px;
}

.mt-2 {
    margin-top: 2px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.TSize1 {
    font-size: 12px;
}

.TSize2 {
    font-size: 14px;
}

.TSize3 {
    font-size: 16px;
}

.W-10 {
    width: 10px;
}

.W-20 {
    width: 20px;
}

.W-30 {
    width: 30px;
}

.W-40 {
    width: 40px;
}

.W-50 {
    width: 50px;
}

.W-60 {
    width: 60px;
}

.W-70 {
    width: 70px;
}

.W-80 {
    width: 80px;
}

.W-90 {
    width: 90px;
}

.W-100 {
    width: 100px;
}

.W-150 {
    width: 150px;
}

.W-200 {
    width: 200px;
}

.W-250 {
    width: 250px;
}

.W-300 {
    width: 300px;
}

.W-350 {
    width: 350px;
}


.SFAlert {
    text-align: center;
    left: calc(50% - 150px);
    line-height: 30px;
    font-size: 16px;
    padding: 10px;
    top: calc(50% - 100px);
    position: fixed;
    width: 300px;
    height: auto;
    color: #fff;
    font-weight: 800;
    background: #e0570d;
    border-radius: 5px;
    opacity: 0.9 !important;
}

.SFAlert i {
    animation-name: upAnimation;
    transform-origin: center bottom;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

.FullScreenLoading {
    z-index: 99999;
    background: #000;
    opacity: 0.5;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: none;

}


/* Popup windows */
/* The Modal (background) */
.popWindow {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.popWindow-content {
    position: relative;
    background-color: #fefefe;
    margin: 100px auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    height: 400px;
    max-width: 600px; /* Could be more or less, depending on screen size */
    z-index: 2001;
    overflow: hidden;
}

.PopupNotificationContainer {
    text-align: center;
    width: 100%;
    top: 60px;
    left: 0px;
    opacity: 0.96;
    position: absolute;
    min-height: 50px;
    display: none;
}

.PopupNotificationContent {
    width: 100%;
    max-width: 300px;
    background: #f3d7a1;
    opacity: 0.9;
    display: inline-block;
    padding: 10px;
    color: #000;
    text-align: left;
    font-weight: 700;
}

.PopupNotificationContentText {
    line-height: 30px;
}

/* The Close Button */
.popWindow-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -10px;
    user-select: none;
}

.popWindow-close:hover,
.popWindow-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.SFPopupTitle {
    font-weight: 800;
}

/* Popup windows */
.upload_zone {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    font-size: 10px;
    line-height: 18px;
    padding: 3px;
    text-align: center;
    border: 1px dotted #000;
    border-radius: 3px;
    cursor: pointer;
}

.Dragover {
    background: #eee;
}

.FormDiv {
    margin-top: 5px;
    margin-bottom: 5px;
}


.FormDivTitle {
    font-weight: 800;
    margin-bottom: 10px;
}

.MustField {
    color: #f00;
}

/* loading */
.load-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: red;
    animation: load-icon-frame 2s linear infinite;
    -webkit-animation: load-icon-frame 2s linear infinite;
}


.B-10 {
    display: inline-block;
    vertical-align: top;
    width: calc(10% - 3px);
}

.B-15 {
    display: inline-block;
    vertical-align: top;
    width: calc(15% - 3px);
}

.B-20 {
    display: inline-block;
    vertical-align: top;
    width: calc(20% - 3px);
}

.B-25 {
    display: inline-block;
    vertical-align: top;
    width: calc(25% - 3px);
}

.B-30 {
    display: inline-block;
    vertical-align: top;
    width: calc(30% - 3px);
}


.B-33 {
    display: inline-block;
    vertical-align: top;
    width: calc(33% - 2px);
}

.B-40 {
    display: inline-block;
    vertical-align: top;
    width: calc(40% - 3px);
}

.B-45 {
    display: inline-block;
    vertical-align: top;
    width: calc(45% - 3px);
}

.B-50 {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 2px);
}

.B-60 {
    display: inline-block;
    vertical-align: top;
    width: calc(60% - 3px);
}

.B-70 {
    display: inline-block;
    vertical-align: top;
    width: calc(70% - 2px);
}

.B-75 {
    display: inline-block;
    vertical-align: top;
    width: calc(75% - 3px);
}

.B-85 {
    display: inline-block;
    vertical-align: top;
    width: calc(85% - 3px);
}

.B-90 {
    display: inline-block;
    vertical-align: top;
    width: calc(90% - 3px);
}

.FullWidth {
    width: calc(100% - 3px);
}

.AddProductActionBtn {
    user-select: none;
    display: block;
    border: 0px;
    margin-bottom: 5px;
}

.AddProductActionBtn i {
    margin-right: 5px;
}

@keyframes load-icon-frame {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes load-icon-frame {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@keyframes upAnimation {
    0% {
        transform: rotate(0deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
    }

    10% {
        transform: rotate(-12deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
    }

    20% {
        transform: rotate(12deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
    }

    28% {
        transform: rotate(-10deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
    }

    36% {
        transform: rotate(10deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
    }

    42% {
        transform: rotate(-8deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
    }

    48% {
        transform: rotate(8deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
    }

    52% {
        transform: rotate(-4deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
    }

    56% {
        transform: rotate(4deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
    }

    60% {
        transform: rotate(0deg);
        transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
    }

    100% {
        transform: rotate(0deg);
        transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
    }
}

.bmt-10 {
    margin-top: 10px;
}

.bmt-20 {
    margin-top: 20px;
}

.TableContainer {
    display: table;
}

.TableRowContainer {
    display: table-row;
}

.TableCellContainer {
    display: table-cell;
    padding: 5px;
    vertical-align: middle;
}

.TableCellContainerBottomLine {
    border-bottom: 1px solid #eee;
}

.TableHeader {
    font-weight: 800;
}

.mobileDisplay {
    display: none;
}

/* 側邊欄樣式 */
.slider {
    position: fixed; /* 固定位置，不隨頁面滾動 */
    top: 0;
    right: 0;
    min-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 當側邊欄具有 active class 時的樣式 */
.slider.active {
    transform: translateX(0); /* 將其移回畫面內，實現滑入效果 */
    z-index: 2001;
}

/* 側邊欄樣式 END */

input[readonly] {
    border: 0px solid #eee; /* 使用 !important 確保覆蓋行內樣式 */
}

/**新版本pop window**/
/* 遮罩层样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    display: none;
}

/* 弹出窗口样式 */
.popup-window {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 90vh; /* 最大高度为屏幕的90% */
    width: 500px; /* 自动调整宽度 */
    max-width: 90%; /* 最大宽度为屏幕的90% */
    position: relative;
    display: flex;
    flex-direction: column;
}

#popup-content, #popup-content-footer {
    display: flex;
    flex-shrink: 0; /* 防止頭部和尾部被壓縮 */
    padding: 20px 20px; /* 增加左右內邊距以對齊內容 */
}
#popup-content {
    position: relative;
    align-items: center; /* 垂直居中標題等內容 */
    justify-content: space-between; /* 讓標題和關閉按鈕分開 */
    text-align: center;
    p {
        margin: 0; /* 移除段落的默認邊距 */
    }
}

#popup-content-footer .UIButton {
    width: 100%;
    text-align: center;
}

#popup-content-html {
    flex-grow: 1; /* 讓內容區域佔滿剩餘空間 */
    overflow-y: auto; /* 當內容溢出時顯示滾動條 */
    padding: 15px;
}

/* 关闭按钮 */
.popup-close {
    background: transparent;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
/**新版本pop window end**/
@media screen and (max-width: 475px) {
    .mobileDisplay {
        display: block;
    }

    body {
        overflow-x: hidden;
    }

    .TableHeader {
        display: none !important;
    }

    .TableContainer, .TableRowContainer, .TableCellContainer {
        display: block;
    }

    .TableCellContainer {
        border: 0px;
    }

    .TableRowContainer {
        border-bottom: 1px solid #eee;
    }

    .B-90, .B-85, .B-75, .B-70, .B-60, .B-50, .B-40, .B-33, .B-30, .B-25, .B-20, .B-15, .B-10 {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    .bmt-10, .bmt-20 {
        margin-top: 0px;
    }

    .mt-475-10 {
        margin-top: 10px;
    }

    .mt-475-20 {
        margin-top: 20px;
    }
}
