﻿@charset "utf-8";
/*CSS Info ======================================================================
File Name: Ctrl.css
Editor: Rebecca
CreateDate:2024/5/14
Version: 1.0
---------------------------


/*-----------Some Fix From Reset---------------*/
.MyForm fieldset {
    margin-bottom: 2rem;
    margin-left: 2rem;
}

    .MyForm fieldset legend {
        font-size: 1.125rem;
        font-weight: bold;
        margin-bottom: 0.25em;
    }

/*h4 {
    font-weight: normal;
}*/

button, label, select, input, textarea {
    font-family: "\5FAE\8EDF\6B63\9ED1\9AD4", Arial;
}

    button, select, input[type="search"], input[type="password"], textarea {
        min-height: 2em;
        line-height: 2em;
    }

    input[type="text"] {
        min-height: 1.8em;
    }

    input[type="date"], input[type="month"] {
        padding: 0 5px;
        font-size: 1rem;
    }

select {
    line-height: 2em;
    padding: 2px 3px;
    font-size: 1rem;
    color: #333;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    min-height: initial;
}

    select + select {
        margin-right: 5px;
    }

label {
    margin: 0 .5em;
}

input[type="checkbox"], input[type="radio"] {
    vertical-align: middle;
    width: 1em;
    height: 1em;
}

@media only screen and (max-width: 47.9735em) {
    select + select {
        margin-left: 0;
        margin-top: 15px;
    }
}

/*#endregion */


/**** option style ***/
/*-------控制項樣式--------*/
select, input[type=radio], input[type=checkbox], input[type=text], input[type=password] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    box-sizing: border-box;
    margin: .1rem 0;
}

input::placeholder {
    color: #D8E2EB;
}

input[type=radio], input[type=checkbox] {
    background: #ffffff;
    border: 1px solid #334800;
    outline: none;
    width: 18px;
    height: 18px;
    position: relative;
    transition: all .3s ease-in-out;
    box-sizing: border-box;
}

input[type=radio] {
    border-radius: 50%;
    padding: 0 3px;
}

input[type=checkbox] {
    border-radius: 2px;
}

input[type=radio]:hover, input[type=radio]:checked, input[type=radio]:focus {
    background: #334800;
    border: 1px solid #334800;
    transform: scale(1.2);
    cursor: pointer;
}

    input[type=radio]:checked:before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #FDF8F5;
        position: absolute;
        top: 4px;
        left: 4px;
    }

input[type=checkbox]:hover, input[type=checkbox]:checked {
    background: #1C768B;
    cursor: pointer;
    border: 1px solid #1C768B;
}

    input[type=checkbox]:checked:before {
        content: '\f00c';
        color: #FDF8F5;
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.9rem;
        text-align: center;
        position: absolute;
        top: 1.5px;
        left: 2px;
    }

input[type=radio] ~ label, input[type=checkbox] ~ label {
    color: #262626;
    font-size: 1.3rem;
    vertical-align: middle;
    margin: 0;
    margin-right: calc(0.5rem - 4px);
}

textarea {
    color: #262626;
    background: #fff;
    border: 1px solid #7A8E49;
    border-radius:5px;
    line-height: 1.5rem;
    vertical-align: text-top;
    min-height: 1.5rem;
    width: 90%;
    padding: .25rem;
    box-sizing: border-box;
}

    textarea:focus {
        color: #262626;
        background: #FFFFFF;
        border: 1px solid #262626;
    }

    textarea::placeholder {
        color: #D8E2EB;
    }

input[type=text], input[type=password] {
    font-size: 1.125rem;
    padding: .5rem .75rem;
}

input[type=number] {
    padding-left: .75rem;
}

select, input[type=text], input[type=number], input[type=password], input[type="date"], input[type="month"] {
    color: #262626;
    background: #fff;
    border: 1px solid #7A8E49;
    border-radius: 5px;
    height: 34px;
}

    select:focus, input[type=text]:focus, input[type=number]:focus {
        color: #262626;
        background: #FFFFFF;
        border: 1px solid #262626;
        +
    }

select {
    color: #262626;
    font-size: 1rem;
    line-height: 1rem;
    min-width: 14rem;
    padding: 0 2.5rem 0 .5rem;
    margin-bottom: .5rem;
    background-image: linear-gradient(45deg, transparent 50%, #1C768B 50%), linear-gradient(135deg, #1C768B 50%, transparent 50%), linear-gradient(to right, #1C768B, #1C768B);
    background-position: calc(100% - 16px) calc(.75em + 2px), calc(100% - 10px) calc(.75em + 2px), calc(100% - 2.15em) 0.3em;
    background-size: 6px 6px, 6px 6px, 1px 1.5em;
    background-repeat: no-repeat;
}

    select:focus {
        background-image: linear-gradient(45deg, #1C768B 50%, transparent 50%), linear-gradient(135deg, transparent 50%, #1C768B 50%), linear-gradient(to right, #1C768B, #1C768B);
        background-position: calc(100% - 10px) .85rem, calc(100% - 16px) .85rem, calc(100% - 2.15em) 0.3em;
        background-size: 6px 6px, 6px 6px, 1px 1.5em;
        background-repeat: no-repeat;
    }

section option {
    color: #262626;
}

/* disabled setting */
input[type=radio]:disabled, input[type=checkbox]:disabled {
    background-color: #cecece;
    cursor: not-allowed;
}

    input[type=radio]:disabled:before {
        background: #969696;
    }

    input[type=checkbox]:disabled:before, input[type=radio]:disabled ~ label, input[type=checkbox]:disabled ~ label {
        color: #969696;
    }

select:disabled, textarea:disabled, input[type=text]:disabled, input[type=number]:disabled {
    color: #777;
    background-color: #eee;
    border: 1px solid #ccc;
    cursor: not-allowed;
}

/*IE 修正*/

select::-ms-expand {
    display: none;
}

/*===============================================================================
                           Button setting 
=================================================================================*/
.btn {
    font-family: "\5FAE\8EDF\6B63\9ED1\9AD4", Arial;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none !important;
    background-color: #334800;
    border: 2px solid #334800;
    padding: .5rem 1.5rem;
    margin: .25rem;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    display: inline-block;
    cursor: pointer;
    zoom: 1;
    overflow: visible; /* the overflow property removes extra width in IE */
}

table .btn {
    font-size: 1.125rem;
    padding: .35rem 1.125rem;
    margin: 0 .25rem;
}

table.thin .btn {
    font-size: 1rem;
    padding: .25rem .75rem;
}

.btn:hover, .btn:focus {
    border: 2px solid #334800;
    background-color: #ffffff;
    color: #334800;
}

.btnImp {
    background-color: #E05F62;
    border: 2px solid #F7E3E4;
}

    .btnImp:hover, .btnImp:focus {
        background-color: #ffffff;
        border: 2px solid #E05F62;
    }

.btnPoint {
    background-color: #7EB44C;
    border: 2px solid #E8EDDB;
}

    .btnPoint:hover, .btnPoint:focus {
        background-color: #ffffff;
        border: 2px solid #7EB44C;
    }

.btnCancel {
    background-color: gray;
    border: 2px solid gray;
}

    .btnCancel:hover, .btnCancel:focus {
        background-color: #ffffff;
        border: 2px solid gray;
        color:gray;
    }

.logfoot {
    background-color: #AFCBBF;
    border: none;
}

    .logfoot:hover {
        background-color: #688978;
        border: none;
    }

.btn:disabled {
    cursor: not-allowed;
    color: #bbb;
    background-color: #efefef;
}

    .btn:disabled, .btn:disabled:hover {
        border: 2px solid transparent;
    }

/**** 步驟返回按鈕樣式 ***/
.btn.btnStep, .btn.btnBack {
    color: #262626;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    background-color: #F9BF75;
    box-shadow: 1px 1px 3px #E9EAE2;
    padding: .45rem 2rem;
}

    .btn.btnStep:hover, .btn.btnBack:hover {
        border: none;
        background-color: #EE931F;
        box-shadow: 1px 1px 3px #92C6E4;
    }

/**** 一般按鈕區 ***/
.CommandArea {
    text-align: center;
    margin: 10px 5px 30px 5px;
}

/**** 搜尋按鈕區 ***/
.MyQueryArea .CommandArea {
    margin: .75rem 0;
    text-align: center;
    min-height: 60px;
    box-sizing: border-box;
}

    .MyQueryArea .CommandArea .btn {
        color: #fff;
        font-size: 1.25rem;
        border: 2px solid #E0F1EE;
        background-color: #1C768B;
        padding: .5rem 1.5rem;
        margin: .25rem 1.25rem;
        -webkit-transition: all .3s ease;
        -moz-transition: all .3s ease;
        -o-transition: all .3s ease;
        transition: all .3s ease;
    }

        .MyQueryArea .CommandArea .btn:hover, .MyQueryArea .CommandArea .btn:focus {
            color: #262626;
            background-color: #fff;
            border: 2px solid #1C768B;
            box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
        }

/**** 返回步驟按鈕區 ***/
.btnGrp {
    text-align: center;
    min-height: 40px;
    margin: 1.25rem 0 1.5rem;
    position: relative;
}

    .btnGrp.fixdown {
        width: 100%;
        height: auto;
        background-color: rgba(0, 0, 0, .35);
        box-sizing: border-box;
        margin: 0;
        z-index: 5;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

        .btnGrp.fixdown input {
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }

    .btnGrp .btn.btnStep, .btnGrp .btn.btnBack {
        position: absolute;
        top: 7px;
    }

    .btnGrp .btn.btnStep {
        right: 0;
    }

    .btnGrp .btn.btnBack {
        left: 0;
    }

/**** 類別按鈕選項 ***/
.itembtn {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

    .itembtn div {
        text-align: center;
        border: 3px solid #CCC3B6;
        min-width: 32%;
        padding: 16px;
        margin: 10px 0;
        box-sizing: border-box;
        -webkit-font-smoothing: antialiased;
        -webkit-transition: all .3s ease;
        -o-transition: all .3s ease;
        transition: all .3s ease;
    }

    .itembtn p {
        font-size: 1.25rem;
        line-height: 1.5rem;
        min-width: 7.5rem;
        margin: 0 auto;
        position: relative;
        -webkit-font-smoothing: antialiased;
        -webkit-transition: all .3s ease;
        -o-transition: all .3s ease;
        transition: all .3s ease;
    }

    .itembtn div:hover, .itembtn div.mark {
        background-image: url(../images/cloud-meatball.png);
        background-position: center left +40px;
        background-repeat: no-repeat;
        background-size: 32px;
        border: 3px solid #BCDDC4;
        box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
        cursor: pointer;
    }

        .itembtn div:hover p, .itembtn div.mark p {
            transform: translateX(18px);
        }

    .itembtn.txtrow div {
        min-width: 202px;
    }

    .itembtn.txtrow p {
        width: 7.5rem;
    }

    .itembtn.txtrow div:hover, .itembtn.txtrow div.mark {
        background-position: center left +10px;
    }



/*----------------- scrollbar style -----------------*/

.DataTableContainer::-webkit-scrollbar {
    height: 8px;
}

.DataTableContainer::-webkit-scrollbar-track {
    background: #C0B7B2;
    border-radius: 15px;
}

/* Handle */
.DataTableContainer::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 20px;
    border-color: #262626;
}

    /* Handle on hover */
    .DataTableContainer::-webkit-scrollbar-thumb:hover {
        background: #262626;
    }



/* #Media Queries Templet
================================================== */
/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 59.9375em) {
}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 48em) and (max-width: 59.9375em) {
}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 47.9375em) {
    .btnGrp {
        height: 7rem;
    }

        .btnGrp .btn.btnStep, .btnGrp .btn.btnBack {
            position: absolute;
            top: unset;
            bottom: 0;
        }
}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 30em) and (max-width: 47.9375em) {
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 29.9375em) {
}
