﻿
[draggable="true"] {
    /* 不能反白 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.drag-hover {
    background-color: #e7f5ff !important;
}

.full-mask {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1;
}

/* ---------------------------------------------------------------------------------------------------- */

:where(.remove-category-box, .remove-item-box, .remove-discount-box, .finish-info-box, .error-info-box) {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #daf6ff;
    border-radius: 4px;
    box-shadow: 0px 0px 9px #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 20px 15px 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

:where(.remove-category-box, .remove-item-box, .remove-discount-box, .finish-info-box, .error-info-box) > span {
    text-shadow: 0px 0px 9px #daf6ff;
    color: #daf6ff;
    font-family: 'Inconsolata', monospace;
    font-size: 14px;
    font-weight: 700;
}

:where(.remove-category-box, .remove-item-box, .remove-discount-box, .finish-info-box, .error-info-box) > span + span {
    margin-top: 10px;
}

:where(.remove-category-box, .remove-item-box, .remove-discount-box) > div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.error-info-box {
    flex-direction: row;
    /*white-space: nowrap;*/
}

.error-info-box::before {
    content: "\f00d";
    color: #f62300;
    font-size: 30px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 20px;
    -webkit-filter: brightness(200%); /* Safari */
    filter: brightness(200%);
}

/* ---------------------------------------------------------------------------------------------------- */

.closebox {
    width: 40px;
    height: 20px;
    background-color: #d45a43;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.closebox:hover {
    -webkit-filter: brightness(110%); /* Safari */
    filter: brightness(110%);
}

.closebox::before {
    content: "";
    width: 16px;
    border-bottom: 3px solid #ffffff;
    transform: translate(-50%, -6px) rotate(45deg);
    position: absolute;
    top: 14px;
    left: 50%;
}

.closebox::after {
    content: "";
    width: 16px;
    border-bottom: 3px solid #ffffff;
    transform: translate(-50%, 6px) rotate(-45deg);
    position: absolute;
    top: 2px;
    left: 50%;
}

/* ---------------------------------------------------------------------------------------------------- */

button {
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
    color: #000000;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    padding: 5px 15px;
}

.add-btn,
.save-btn,
.refresh-btn,
.back-btn,
.export-excel-btn {
    height: 36px;
    background-color: transparent;
    border: 1px solid #dedede;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.add-btn:hover,
.save-btn:hover,
.refresh-btn:hover,
.back-btn:hover,
.export-excel-btn:hover {
    background-color: #00a5a6;
    color: #ffffff;
}

.add-btn::before {
    content: "\2b";
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
}

.save-btn::before {
    content: "\f0c7";
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
}

.refresh-btn::before {
    content: "\f021";
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
}

.back-btn::before {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
}

.remove-btn {
    height: 36px;
    background-color: #f14d4c;
    border: 1px solid #dedede;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.remove-btn:hover {
    -webkit-filter: brightness(105%); /* Safari */
    filter: brightness(105%);
}

.remove-btn::before {
    content: "\f2ed";
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
}

.export-excel-btn::before {
    content: "\f56d";
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
}

.btn_close { background-color: #f14d4c; }
.btn_save { background-color: #00a5a6; color: #ffffff; }
.btn_select { background-color: #00a5a6; color: #ffffff; }
.btn_refresh { background-color: #adadad; }

/* ---------------------------------------------------------------------------------------------------- */

#filter-box-control {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
}

/* 手機版 */
@media screen and (max-width: 767px) {
    .footer-box {
        width: 100vw;
        height: 40px;
        background-color: #ffffff;
        box-shadow: 0px 0px 1px #000000;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
        padding: 0px 20px;
        position: fixed;
        bottom: 0px;
        left: 0px;
        z-index: 4;
    }

    .footer-box > .filter-btn {
        height: 36px;
        background-color: #00a5a6;
        border: 1px solid #dedede;
        border-radius: 6px;
        box-sizing: border-box;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 700;
        padding: 5px 15px;
    }
}

/* PC */
@media screen and (min-width: 768px) {
    .footer-box {
        display: none;
    }
}

/* ---------------------------------------------------------------------------------------------------- */

input::placeholder {
    color: #868686;
    font-size: 15px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 1px solid #dedede;
    border-radius: 8px;
    box-sizing: border-box;
    color: #000000;
    font-family: "Microsoft JhengHei";
    font-size: 15px;
    font-weight: 700;
    outline: none;
    padding: 1px 15px 1px 15px;
    resize: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

textarea {
    padding: 10px 15px;
    text-align: justify;
}

input[type="text"]:hover,
input[type="text"]:focus,
input[type="password"]:hover,
input[type="password"]:focus,
input[type="number"]:hover,
input[type="number"]:focus,
textarea:hover,
textarea:focus,
select:hover,
select:focus {
    border: 1px solid #00a5a6;
    outline: 1px solid #00a5a6;
}

/* ---------------------------------------------------------------------------------------------------- */

.search-btn {
    width: 80px;
    height: 36px;
    background-color: #00a5a6;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-btn:hover {
    -webkit-filter: brightness(105%); /* Safari */
    filter: brightness(105%);
}

.search-box {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 15px;
    font-size: 15px;
    font-weight: 700;
    position: relative;
}

.search-box > span {
    color: #848484;
    display: inline-block;
    white-space: nowrap;
}

.search-box > i {
    color: #7c7c7c;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.search-box > i:hover {
    color: #8ac1cc;
}

.search-box > div {
    width: 130px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.search-box > div > span {
    color: #000000;
    display: block;
    white-space: nowrap;
}

.search-box > div > input {
    width: 100%;
    height: 36px;
}

.search-box > div > select {
    width: 100%;
    height: 36px;
}

/* ---------------------------------------------------------------------------------------------------- */

.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-bar > .item {
    min-width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #00a5a6;
    border-radius: 50%;
    box-sizing: border-box;
    color: #00a5a6;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.pagination-bar > .item.prev::before {
    content: "\f0d9";
    font-family: "Font Awesome 6 Free";
    font-size: 25px;
    font-weight: 900;
}

.pagination-bar > .item.next::before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-size: 25px;
    font-weight: 900;
}

.pagination-bar > .item.prev:hover,
.pagination-bar > .item.next:hover {
    background-color: #00a5a6;
    color: #ffffff;
}

.pagination-bar > .item.prev:hover::before {
    border-color: transparent #ffffff transparent transparent;
}

.pagination-bar > .item.next:hover::before {
    border-color: transparent transparent transparent #ffffff;
}

.pagination-bar > .item > input {
    width: 40px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    border-radius: 50%;
    box-sizing: border-box;
    color: #000000;
    font-family: "Microsoft JhengHei";
    font-size: 15px;
    outline: none;
    padding: 0px 2px 0px 3px;
    text-align: center;
}

.pagination-bar > .item > input::-webkit-inner-spin-button, 
.pagination-bar > .item > input::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

.pagination-bar > .item > input:hover,
.pagination-bar > .item > input:focus {
    outline: none;
}

.pagination-bar > .btn_select {
    width: 64px;
    height: 40px;
}

.pagination-bar > .btn_select:hover {
    -webkit-filter: brightness(105%); /* Safari */
    filter: brightness(105%);
}