﻿/*ui-messages*/
.ui-messages.ui-widget {
    display: inline-block;
    margin-top: 5px;
    padding-bottom: 10px;
    position: relative;
    width: 100%;
    border: none;
}

.ui-message-error {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: medium none;
    display: inline-block;
    margin-left: 5px;
    padding: 0 0 7px;
    position: relative;
    float: left;
}

    .ui-message-error span.ui-message-error-detail {
        color: #fd516b;
        color:#a94442;
        color: #f14649;
        float: left;
        font-size: 13px;
        font-weight: bold;
        margin-left: 5px;
        padding-left: 2px;
        position: relative;
        top: 8px;
        border: none;
    }

    .ui-message-error span.ui-message-error-icon {
        background: url("../Images/messages.png") no-repeat scroll -3px -5px;
        float: left;
        font-size: 15px;
        height: 21px;
        left: 0;
        position: absolute;
        top: 8px;
        width: 25px;
        border: none;
    }

.ui-messages.ui-widget {
    display: inline-block;
    margin-top: 5px;
    padding-bottom: 10px;
    position: relative;
    width: 100%;
    border: none;
}

.ui-messages-error.ui-corner-all {
    border: none;    
    background: #FFFEF7 ;
    border: 1px solid #cccccc;
    border-radius: 0px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    line-height: 1.8em;    
    margin: 0px;
    padding: 6px 10px;
    position: relative;
}

.ui-messages-error-icon {
    margin-top: 0 !important;
    background: url("../Images/messages.png") no-repeat;
    background-position: 0 -52px;
    display: block;
    float: left;
    margin: 0;
    padding: 0;
    position: relative;
    height: 24px;
    width: 24px;
}

.ui-messages-error-summary,
.ui-messages-announce-summary {
    margin: 0 0 0 5px !important;
    border: none;
}

.ui-messages-error {
    color: #b94a48;
    background-color: #f2dede !important;
    border-color: #eed3d7 !important;
}

    .ui-messages-error.ui-corner-all ul li span {
        color: #bf311a;
        font-size: 16px;
        font-weight:bold;
    }

.ui-messages ul {
    margin: 0 !important;
}

.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {
    border: 1px solid #eed3d7;
    background: #f2dede 50% 50% repeat-x;
    color: #b94a48
}

.max_w1000 {
    max-width: 1000px;
}

.div-center {
    margin: 0 auto;
    _margin: 0px auto;
}

.container {
    width: 100%;
    margin-right: 0px;
    margin-left: 0px;
    max-width: -webkit-fill-available;
}

.main-content {
    padding: 0px 10px 0px 15px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-top: none;
    border-radius: 6px 6px 6px 6px;
    -webkit-border-radius: 6px 6px 6px 6px;
    -moz-border-radius: 6px 6px 6px 6px;
    -moz-box-shadow: 0px 2px 3px rgba(100, 100, 100, 0.1);
    -webkit-box-shadow: 0px 2px 3px rgba(100, 100, 100, 0.1);
    box-shadow: 0px 2px 3px rgba(100, 100, 100, 0.1);
}


@media (min-width:533px) {
    .container {
        padding-right: 50px;
        padding-left: 50px;
    }

    .l-d-none {
        display: none;
    }

    .credit-remind {
        width: 400px;
        margin: 0px auto;
    }

    .main-content {
        padding: 0px 20px 0px 20px;
    }

    .rwd-table {
        border: 1px solid #cccccc;
        border-bottom: none;
    }

        .rwd-table .rwd-field:last-of-type .rwd-field-input {
            margin-bottom: 10px;
        }

    .rwd-field {
        display: table;
        width: 100%;
        border-bottom: 1px solid #cccccc;
    }

        .rwd-field .rwd-field-txt {
            display: inline-block;
            *display: inline;
            *zoom: 1;
            display: table-cell;
            background: #f1f1f1;
            vertical-align: top;
            font-weight: 700;
            text-align: right;
            width: 200px;
            height: 12px;
            padding: 18px 10px 15px 4px;
            font-size: 16px;
        }

        .rwd-field .rwd-field-box {
            display: table-cell;
            vertical-align: top;
        }

        .rwd-field .rwd-field-output {
            display: table-cell;
            vertical-align: middle;
            padding-left: 10px;
        }

        .rwd-field .rwd-field-input {
            display: inline-block;
            *display: inline;
            *zoom: 1;
            margin-left: 10px;
            padding-top: 10px;
        }

            .rwd-field .rwd-field-input .rwd-field-input {
                margin-left: 0;
                padding-top: 0;
            }

    .ui-checkbox {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #999;
        border-radius: 4px;
        cursor: pointer;
        position: relative;
        background-color: white;
    }

        .ui-checkbox:checked {
            border-color: #4CAF50;
        }

            .ui-checkbox:checked::after {
                content: '✔';
                color: green;
                font-size: 16px;
                position: absolute;
                top: -4px;
                left: 2px;
            }
}

@media (max-width: 532px) {
    .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .s-d-none {
        display: none;
    }

    .credit-remind {
        width: 100%;
        margin: 0px auto;
        word-break: break-all;
    }

    .rwd-field {
        *zoom: 1;
        clear: both;
    }

        .rwd-field:before, .rwd-field:after {
            content: " ";
            display: table;
        }

        .rwd-field:after {
            clear: both;
        }

        .rwd-field:not(:last-of-type) {
            margin-bottom: 20px;
        }

        .rwd-field .rwd-field-txt {
            font-weight: 550;
            font-size: 18px;
            margin-bottom: 10px;
        }

    #header .logo_area {
        width: 100%;
        text-align: center;
    }

    .footer-line ul li {
        float: none;
    }

    input, textarea {
        font-size: initial !important;
    }

    .ui-checkbox {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #999;
        border-radius: 4px;
        cursor: pointer;
        position: relative;
        background-color: white;
    }

        .ui-checkbox:checked {
            border-color: #4CAF50;
        }

            .ui-checkbox:checked::after {
                content: '✔';
                color: green;
                font-size: 14px;
                position: absolute;
                top: -4px;
                left: 2px;
            }
}



.text-center {
    text-align: center;
}

.formGroup {
    display: inline-block;
    padding: 0px 0;
    float: left;
    clear: both;
    min-height: 32px;
    /* width: 100%; */
}

.full_width {
    width: 100%;
}

.formGroup input, .formGroup_outside input {
    float: left;
    margin: 0 5px 0 0 !important;
    padding: 6px 5px;
}

.formGroup span.mrl-0 {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

.formGroup span.formGroup_txt {
    margin-right: 10px;
    margin-bottom: 8px;
}

.formGroup span.formGroup_txt, .formGroup label.formGroup_txt, .itemsBox span.formGroup_txt
    , .formGroup_outside span.formGroup_txt, .formGroup_outside_b span.formGroup_txt
    , .formGroup_outside span.txtImp 
{
    top: 7px;
    position: relative;
    float: left;
    margin-left: 2px;
    margin-right: 5px;
    margin-bottom: 8px;
    left: -3px;
}




.w4em {
    width: 4em;
}
.w3em {
    width: 3em;
}


.ui-inputfield, .ui-widget-content .ui-inputfield, .ui-widget-header .ui-inputfield {
    cursor: text;
    background: none #fff;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -webkit-transition: border linear .2s,box-shadow linear .2s;
    -moz-transition: border linear .2s,box-shadow linear .2s;
    -ms-transition: border linear .2s,box-shadow linear .2s;
    -o-transition: border linear .2s,box-shadow linear .2s;
    transition: border linear .2s,box-shadow linear .2s
}

    .ui-inputfield:focus, .ui-widget-content:focus .ui-inputfield:focus, .ui-widget-header:focus .ui-inputfield:focus {
        border-color: rgba(82,168,236,0.8);
        outline: 0;
        outline: thin dotted \9;
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);
        -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6);
        box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6)
    }

    .ui-inputfield.ui-state-error, .ui-widget-header .ui-inputfield.ui-state-error, .ui-widget-content .ui-inputfield.ui-state-error {
        color: #333;
        border: 1px solid #eed3d7; 
        border-left: 2px solid #ef5350;
    }




.ui-popover {
    --bs-popover-bg: #373737 !important; 
    --bs-popover-border-color: #373737 !important; 
    --bs-popover-arrow-border: #373737 !important; 
    box-shadow: none !important;

    max-width: none !important; 
    width: auto !important; 
    white-space: nowrap; 
}

    .ui-popover .popover-body {
        color: #fff !important;
        padding: 6px 10px;
        white-space: nowrap;
        width: auto;
        max-width: none !important;
        border-radius: 6px;
        height: 35px;
        display: inline-block;
        align-items: center;
    }
    

.ui-button {
    display: inline-block;
    position: relative;
    padding: 0;
    margin-right: .1em;
    text-decoration: none !important;
    cursor: pointer;
    text-align: center;
    overflow: visible;
}

.ui-button-text_16 {
    font-size: 16px;
    font-weight: bold;
}

.btnBox, .ui-dialog-buttonpane {
    text-align: center !important;
    background: none;
    padding: 15px 0;
    margin: 5px 0;
}

    .btnBox .ui-button {
        border: 1px solid #d4ccb0 !important;
        margin: 0 5px 0px 1px !important;
        padding: 4px 12px;
    }

.linkButton {
    background: linear-gradient(#fff, #dde0e4);
    color: rgb(0, 115, 0);
    border: 1px solid rgb(212, 204, 176);
    padding: 0px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

    .linkButton:hover {
        background: linear-gradient(#009d54, #198754);
        color: white;
        transform: none;
    }



.link2Button {
    padding: 4px 6px 4px 6px !important;
    border-radius: 5px;
    background: linear-gradient(#fff, #efefe0);
    color: rgb(0, 115, 0);
    font-size: 15px;
    border: 1px solid rgb(212, 204, 176) !important;
    margin: 0 5px 0px 1px !important;
}

    .link2Button:hover {
        background: linear-gradient(#009d54, #198754);
        color: white;
        transform: none;
    }


.linkTextButton {
    background-color: white;
    color: rgb(0, 115, 0);
    border: 1px solid rgb(221 217 200);
    padding: 0px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

    .linkTextButton:hover {
        background-color: #098c6a;
        color: white;
        border: 1px solid #098c6a;
        transform: none;
    }



.ui-datatable table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed
}

.ui-datatable-tablewrapper {
    overflow: auto
}

.ui-datatable .ui-datatable-header, .ui-datatable .ui-datatable-footer {
    text-align: center;
    padding: 4px 10px
}

.ui-datatable .ui-datatable-header {
    border-bottom: 0 none
}

.ui-datatable .ui-datatable-footer {
    border-top: 0 none
}

.ui-datatable thead th, .ui-datatable tfoot td {
    text-align: center
}

.ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td, .ui-datatable tfoot th {
    padding: 4px 10px;
    overflow: hidden;
    border-width: 1px;
    border-style: solid
}

.ui-datatable tbody.ui-datatable-data {
    outline: 0
}

.ui-datatable tbody td {   
    border-color: #ccc !important;
}

th.ui-state-default {
    background-color: #f1f1f1 !important;
    background-image: none !important;
    border-color: #ccc !important;
}

.ui-datatable .ui-state-default .ui-inputtext {
    background-color: #ffffff !important;
}



@media(max-width: 640px) {
    .ui-datatable-reflow thead th, .ui-datatable-reflow tfoot td {
        display: none
    }

    .ui-datatable-reflow .ui-datatable-data td[role="gridcell"]:not(.ui-helper-hidden) {
        text-align: left;
        display: block;
        border: 0 none;
        width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        float: left;
        clear: left
    }

    .ui-datatable-reflow .ui-datatable-data.ui-widget-content {
        border: 0 none
    }

    .ui-datatable-reflow .ui-datatable-data tr.ui-widget-content {
        border: 1px solid #ddd;
        background: #fff;
        border-left: 0 none;
        border-right: 0 none
    }

    .ui-datatable-reflow .ui-datatable-data td[role="gridcell"] .ui-column-title {
        padding: .4em;
        min-width: 30%;
        display: inline-block;
        margin: -.4em 1em -.4em -.4em
    }

    .ui-datatable-reflow .ui-reflow-label, .ui-datatable-reflow .ui-reflow-dropdown {
        display: inline-block
    }

    .ui-datatable-reflow .ui-reflow-dropdown {
        margin-left: 5px;
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px
    }

    .ui-datatable-reflow tr.ui-datatable-empty-message > td {
        display: block;
        border: 0 none
    }
}


#modalContent {
    font-size: 12px !important;
}

    #modalContent .ui-header {
        background-color: green;
        color: white;
        height: 12px;
        font-weight: bold;
    }

    #modalContent .btn-close {
        filter: brightness(0) invert(1); /* 白色 */
        width: 1.5rem;
        height: 1.5rem;
        font-size: 1rem;
        font-weight: bold;
    }

    #modalContent .link-dialog-btn {
        background-color: rgb(231 231 231 / 24%);
        color: rgb(0, 115, 0);
        border: 1px solid rgb(212, 204, 176);
        padding: 3px 8px 3px 8px;
        margin: 5px 8px 15px 0px;
        font-size: 12px;
        font-weight: bold;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: rgba(255, 255, 255, 0.2) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    }

        #modalContent .link-dialog-btn:hover {
            background-color: rgb(0, 115, 0);
            color: white;
            transform: none;
        }

        #modalContent .link-dialog-btn:disabled {
            background-color: #d9d5d5;
            color: #797878;
            cursor: not-allowed;
        }


.text-right {
    text-align: right;
}

.font-15-bold {
    font-size: 15px !important;
    font-weight: bold;
}

.font-20-bold {
    font-size: 20px !important;
    font-weight: bold;
}

.ui-icon-green {
    font-size: 22px !important;
    color: green !important;
}


/* --Color--*/
.white {
    color: white !important;
}
.green {
    color: green !important;
}
.orange {
    color: #c25406 !important;
}
.red {
    color: #b94a48 !important;
}


