﻿* {
    padding: 0px;
    margin: 0px;
}

html {
    margin: 0px !important;
    touch-action: manipulation;
    scroll-behavior: smooth;
}

body {
    padding-top: 0px !important;
    font-family: Inter,Noto Sans TC V,BlinkMacSystemFont,-apple-system,Segoe UI,Helvetica,Arial,sans-serif,Microsoft JhengHei,微軟正黑體 !important;
    padding-bottom: 0px !important;
    min-height: 100vh;
    touch-action: manipulation;
    background-color: #f9fafb !important;
    scroll-behavior: smooth;
}

.default-btn {
    padding: 8px;
    background: #f3f4f4;
    width: 30%;
    transition: all .3s;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
    .default-btn:hover {
        background: #e0e7e7;
        text-decoration: none;
    }

.title {
    margin-bottom: 15px;
}
    .title h2 {
        margin-top: 0px;
        font-weight: 600;
    }

.edit-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.edit-input {
    color: #070606;
    border: 1px solid #ACACAC;
    padding: 10px 10px 10px;
    border-radius: 5px;
    max-width: 100%;
}

.form-add-btn {
    background: #9fb9d3;
    border: 1px solid #fff;
    border-radius: 5px;
    box-shadow: 0 4px 32px -16px rgba(31,33,35,.24);
    left: auto !important;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    right: 16px !important;
    top: 64px !important;
    z-index: 23;
    padding: 7px 14px;
    color: #060303;
    cursor: pointer;
    font-weight: 600;
}

    .form-add-btn:hover {
        color: #4f4f4f;
        background: #a0c4d5;
        text-decoration: none;
    }

.form-search-btn {
    background: #9fb9d3;
    border: 1px solid #fff;
    border-radius: 5px;
    box-shadow: 0 4px 32px -16px rgba(31,33,35,.24);
    left: auto !important;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    right: 16px !important;
    top: 64px !important;
    z-index: 23;
    padding: 7px 14px;
    color: #060303;
    cursor: pointer;
    font-weight: 600;
    /*transition: .3s all;*/
}

    .form-search-btn:hover {
        color: #4f4f4f;
        background: #a0c4d5;
        text-decoration: none;
    }

.form-print-btn {
    background-color: #856884;
    color: aliceblue;
    margin-bottom: 5px;
}

.btn-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.btn-print {
    background-color: aquamarine;
}

/* 基本樣式 */
.styled-dropdown {
    position: relative;
    display: inline-block;
    padding: 8px;
    border-radius: 6px;
    border-color: #c0c0c0 !important;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    /*-webkit-appearance: none;*/
}
    .styled-dropdown:focus {
        border-color: #c0c0c0 !important;
    }

    .styled-dropdown:valid {
        outline: none;
        border-color: #c0c0c0 !important;
    }

    /* 下拉框樣式 */
    .styled-dropdown select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding: 8px 30px 8px 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #fff;
        cursor: pointer;
    }

    /* 自訂箭頭 */
    .styled-dropdown::after {
        content: '\25BC'; /* Unicode箭頭字符 */
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    /* 選中時的樣式 */
    /*.styled-dropdown select:focus {
        outline: none;
        border-color: #c0c0c0 !important;
        border: none;
    }*/

.page-div {
    padding: 0px;
}
    .page-div select {
        padding: 8px;
        border-radius: 5px;
        font-weight: 600;
        background-color: #fff;
        text-align: center;
        box-shadow: 0 4px 32px -16px rgba(31,33,35,.24);
        border-color: #818181 !important;
        border: #818181 !important;
    }


.modal-header {
    /*display: flex;
    justify-content: space-between;*/
    font-size: 18px;
    font-weight: 600;
}

.close {
    font-size: 25px !important;
}

/*等待動畫*/
/* CSS用于遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明遮罩层 */
    display: none; /* 初始隐藏 */
}

/* CSS用于加载动画 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/*等待動畫*/

.item-date-query {
    display: flex;
    align-items: center;
}

.add-btn {
    color: white;
    border: 1px solid #ACACAC;
    padding: 10px 20px;
    border-radius: 5px;
    position: absolute;
    right: 0;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    background-color: #539c84;
}
    .add-btn:hover {
        background-color: white;
        color: black;
    }

.page-div{
   width: 85px;
}

.swal2-modal {
    font-size: 1.4rem;
}

@media(max-width: 768px) {
    .title h2 {
        margin-top: 20px;
    }

    .table-default{
        padding: 0px !important;
    }

    .header h1 {
        transform: translateX(-50%);
    }

    .table-section-header {
        padding: 0px 15px 0px;
    }

    .swal2-modal {
        font-size: 1.1rem;
    }

    .page-div {
        padding: 10px;
    }
}