﻿
.full-mask {
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1;
}

/* ---------------------------------------------------------------------------------------------------- */

#filter-btn-control,
#filter-btn-control-ip {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
}

/* 手機版 */
@media screen and (max-width: 767px) {
    .fixed-filter-box {
        width: 100%;
        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;
    }

    .fixed-filter-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;
    }
    
    #filter-btn-control:checked + .function-box,
    #filter-btn-control-ip:checked + .function-box {
        transform: translateY(0px);
    }
}

/* PC */
@media screen and (min-width: 768px) {
    .fixed-filter-box {
        display: none;
    }
}

/* ---------------------------------------------------------------------------------------------------- */

:where(.finish-info-box, .error-info-box) {
    max-width: calc(100% - 40px);
    min-width: 320px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #daf6ff;
    border-radius: 4px;
    box-shadow: 0px 0px 9px #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17px 20px 15px 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

:where(.finish-info-box, .error-info-box) > span {
    color: #daf6ff;
    font-family: 'Inconsolata', monospace;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-box: trim-start text alphabetic; /* 裁切字體 */
    text-shadow: 0px 0px 9px #daf6ff;
    white-space: pre-wrap;
}

:where(.finish-info-box, .error-info-box) > span + span {
    margin-top: 10px;
}

.error-info-box::before {
    content: "\f00d";
    color: #f62300;
    font-size: 22px;
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    margin-right: 10px;
    -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: 6px 15px 5px 15px;
}

button > i { pointer-events: none; }

button > span {
    text-box: trim-start text alphabetic; /* 裁切字體 */
    pointer-events: none;
}

:is(.add-btn, .save-btn, .refresh-btn, .back-btn, .export-excel-btn, .remove-btn, .search-btn) {
    height: 36px;
    background-color: transparent;
    border: 1px solid #dedede;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.remove-btn {
    background-color: #f14d4c;
    color: #ffffff;
}

.search-btn {
    background-color: #00a5a6;
    color: #ffffff;
}

:is(.add-btn, .save-btn, .refresh-btn, .back-btn, .export-excel-btn):hover {
    background-color: #00a5a6;
    color: #ffffff;
}

:is(.remove-btn, .search-btn):hover {
    -webkit-filter: brightness(105%); /* Safari */
    filter: brightness(105%);
}

.add-btn::before { content: "\2b"; }
.save-btn::before { content: "\f0c7"; }
.refresh-btn::before { content: "\f021"; }
.back-btn::before { content: "\f104"; }
.export-excel-btn::before { content: "\f56d"; }
.remove-btn::before { content: "\f2ed"; }
.search-btn::before { content: "\f002"; }

:is(.add-btn, .save-btn, .refresh-btn, .back-btn, .export-excel-btn, .remove-btn, .search-btn)::before {
    font-family: "Font Awesome 7 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; }

/* ---------------------------------------------------------------------------------------------------- */

:is(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;
}

textarea {
    padding: 10px 15px;
    text-align: justify;
}

:is(input[type="text"], input[type="password"], input[type="number"], textarea, select):is(:hover, :focus) {
    border: 1px solid #00a5a6;
    outline: 1px solid #00a5a6;
}

input::placeholder {
    color: #868686;
    font-size: 15px;
}

/* 隱藏 上下調節箭頭 Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 隱藏 上下調節箭頭 Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* ---------------------------------------------------------------------------------------------------- */

.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;
}
