﻿@charset "utf-8";
/*CSS Info ======================================================================
File Name: Grid.css
Create Editor: Eliam
Create Date: 2016/03/11
Last Editor: Eliam
Last Date: 2016/03/
Version： 3.0
---------------------------
【 風格 】
    節能減碳粉紅色系
	jq：jquery-ui-1.8.16.custom(CarTrack)
【 Table of Contents 】
	MyGridView	自訂寬度
	MyGridView2	100%寬度
		MyHead
		MyRow
		MyAlt
		MyPager
		MyOver
	MyTable
		Alt
		Over
	MyQueryArea	查詢區域(預設寬度100%) 
	CommandArea 按鈕列置中
	btn			三種按鈕樣式含變換
	修正jQuery UI
=================================================================================*/

/*===============================================================================
                           Grid View 或列表表格設定 
=================================================================================*/
.MyGridView, .MyGridView2 { /*MyGridView2寬度自訂*/
    border-top: 2px solid #ddd;
    border-bottom: 1px solid #eee;
    padding: 3px;
    margin-top: 0.5em;
    margin-bottom: 30px;
    background: #fff;
}

.MyGridView {
    width: 100%;
}

    .MyHead, .MyGridView tr.MyHead th, .MyGridView th, .MyGridView2 th {
        color: #FFF;
        font-size: 1rem;
        font-weight: bold;
        font-family: "Arial", "微軟正黑體";
        border-bottom: 1px solid #e1e1e1;
        padding: 8px 0;
        background-color: #3693A5;
    }

        .MyGridView th.special-green {
            background-color: #4bb537;
        }

        .MyGridView th.special-yellow {
            background-color: #FBB93F;
        }

        .MyGridView th.special-blue {
            background-color: #20537E;
        }
        .MyGridView th.special-orange {
            background-color: #ed553b;
        }

    .MyGridView th {
        vertical-align: middle;
    }

        .MyHead a, .MyGridView th a {
            color: #278aab;
        }

            .MyHead a:hover, .MyGridView th a:hover {
                color: #74c7e3;
            }

    .MyGridView tr.MyHead th, .MyGridView2 tr.MyHead th {
        text-align: center;
    }

    .MyGridView tr.MyHead td {
    }

    .MyRow, .MyGridView td, .MyGridView2 td {
        color: #3f3f3f;
        border-bottom: 1px solid #3693A5;
    }

        .MyGridView td.special-green {
            background-color: #f1fbef;
        }

        .MyGridView td.special-yellow {
            background-color: #fff5c7;
        }

        .MyGridView td.special-blue {
            background-color: #d8ebf3;
        }

        .MyGridView td.special-orange {
            background-color: #fff2ea;
        }

        .MyGridView td, .MyGridView2 td, .MyRow td, .MyAlt td {
            padding: 8px 5px;
            padding: 3px\9;
            font-size: 1rem;
            vertical-align: middle;
            text-align: center;
        }

            .MyRow a, .MyGridView td a, .MyGridView2 td a {
                color: #3d95b3;
            }

                .MyRow a:hover, .MyGridView td a:hover, .MyGridView2 td a:hover {
                    color: #295f72;
                }

.MyAlt {
    padding: 2px;
    background: #f7f7f7;
}

    .MyAlt a {
        color: #439e33;
    }

        .MyAlt a:hover {
            color: #9ce091;
        }

.MyPager {
    padding: 2px;
    background: #f4f9fe;
    text-align: right;
    color: #334a52;
}

div.MyPager {
    margin-top: 2px;
    padding: 5px;
    background: none;
    color: #222;
}

    div.MyPager .Alert {
        color: #009ed2;
    }

/*.MyOver, .MyHighlight {
    background-color: #fff3e4;
}*/

/*===============================================================================
                           FontView、DetailVeiw套用 
=================================================================================*/
.Mytable {
    width: 100%;
    border-top: 2px solid #aedbeb;
    border-bottom: 1px solid #eee;
    padding: 3px;
    /*border-collapse:collapse;*/
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.5em;
}

    .Mytable.edit {
        border-top: 2px solid #aedbeb;
    }

    .Mytable caption, .MyCaption, caption span { /*表格標題*/
        color: #007aa3;
        font-size: 1.125em;
        letter-spacing: 0.1em;
        padding: 0 10px;
        margin: 0 0 0 0;
        caption-side: top;
        text-align: center;
        font-weight: bold;
        line-height: 2em;
        font-family: "Arial", "微軟正黑體";
    }

    .Mytable th {
        font-weight: normal;
        color: #3f3f3f;
        font-size: 1.25em;
        text-align: right;
        padding: 8px 5px;
        /*width: 15%;*/
        border-bottom: 1px dotted #ccc;
        background-color: #f2f6f7;
        vertical-align: middle;
    }

    .Mytable.edit th {
        background-color: #f2f6f7;
    }

    .Mytable .odd { /*奇數行*/
        background-color: #fffceb;
    }

    .Mytable .even { /*偶數行*/
        background: #ffffff;
    }

    .Mytable td {
        color: #787878;
        padding: 8px;
        font-size: 1.125em;
        text-align: left;
        border-bottom: 1px dotted #ccc;
        background-color: #ffffff;
        vertical-align: middle;
    }

    .Mytable thead th {
        border-right: 1px solid #fff;
        background: -webkit-linear-gradient(#eaf7fc,#e4f5fc,#d9f2fa);
        background: -o-linear-gradient(#eaf7fc,#e4f5fc,#d9f2fa);
        background: -moz-linear-gradient(#eaf7fc,#e4f5fc,#d9f2fa);
        /*	background: #83D2E8 url(../images/theme/MyHead-bg.png) 50% 50% repeat-x; 
*/ font-family: "Arial", "微軟正黑體";
        color: #145c74;
        text-align: center;
        font-weight: bold;
        padding: 8px 5px;
        vertical-align: middle;
    }

    .Mytable td table {
        padding: 0;
        margin: 0 1px 0 0;
        border-top: 2px solid #74c7e3;
    }

    .Mytable a {
        color: #3b839b;
    }

        .Mytable a:hover {
            color: #244d5b;
        }

    .Mytable tbody.center tr th, .Mytable tbody.center tr td {
        text-align: center;
    }

/*===============================================================================
                           查詢區域 套用 
=================================================================================*/
.MyQueryArea {
    background-color: #fff;
    background-color: #fff\9;
    border: 1px solid #ddd;
    border: 0px\9;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    /*behavior: url(JS/ie-css3.htc);*/ /*--ie用圓角套件--*/
    font-family: "微軟正黑體", Arial;
    padding: 20px 25px;
    margin-bottom: 30px;
    margin-bottom: 0px\9;
}

.preMyQueryArea { /*--for ie 圓角 JS 產生父層物件 (搭配jq-Corner)--*/
    background-color: #DDDDDD;
    margin-bottom: 30px;
}

.MyQueryArea table {
    background-color: #f7f7f7;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    width: 100%;
    padding: 5px;
}

    .MyQueryArea table caption {
        color: #2f5c6c;
        font-size: 1.25em;
        font-weight: bold;
        text-align: left;
        padding-bottom: 10px;
    }

.fa-search {
    padding-right: 3px;
}

.MyQueryArea table {
    padding-top: 15px;
}

    .MyQueryArea table th {
        color: #3f3f3f;
        font-size: 1.125em;
        text-align: right;
        font-weight: normal;
        width: 10em;
        padding-bottom: 20px;
        padding-right: 0.75em;
    }

    .MyQueryArea table tr{
        display:block;
    }

    .MyQueryArea table td {
        text-align: left;
        padding-bottom: 20px;
        min-width: 10em;
        max-width: 20rem;
    }

    .MyQueryArea table tr:nth-child(1) th, .MyQueryArea table tr:nth-child(1) td {
        padding-top: 20px;
    }

    .MyQueryArea table th img, .MyQueryArea table td img {
        vertical-align: middle;
    }

    .MyQueryArea table select, .MyQueryArea table label, .MyQueryArea table input {
        color: #555;
        vertical-align: middle;
    }

/*--修正radio--*/
input[type="radio"] {
    margin-left: 10px;
    margin-right: 3px;
}

/*--修正file--*/
input[type="file"] {
    width: 0;
    min-width: 220px;
}

/*-------------------------- 按鈕列 --------------------------*/
.CommandArea {
    text-align: center;
    margin: 10px 5px 30px 5px;
}

.MyQueryArea .CommandArea {
    margin: 10px 0 5px 0;
}

    .MyQueryArea .CommandArea .btn {
        color: #2c7af2;
        padding: 3px 10px;
    }

/*-------------------------- 次選單 --------------------------*/
.SubQueryArea {
}

    .SubQueryArea table {
        width: 99%;
    }

        .SubQueryArea table tr + tr {
            border-top: 1px solid #CCC;
        }

        .SubQueryArea table th {
            width: 5em;
            border-right: 1px dashed #dadada;
            vertical-align: middle;
            padding: 4px;
            text-align: center;
        }

        .SubQueryArea table td {
            padding: 4px;
        }

.MyQueryArea table .SubQueryArea tr:nth-child(1) th, .MyQueryArea table .SubQueryArea tr:nth-child(1) td {
    padding: 4px;
}

.SubQueryArea table td label {
    display: inline-block;
    width: 8em;
}

/*-------------------------- 多選dialog --------------------------*/
.multipleSelect div {
    border-bottom: 1px dashed #CCC;
}

.multipleSelect label {
    display: inline-block;
    font-weight: bold;
    padding: 4px;
    color: #0b5653;
}

.multipleSelect .Sub {
    padding: 4px;
}

    .multipleSelect .Sub label {
        font-weight: normal;
        color: #333;
    }

/*===============================================================================
                           按鈕 套用 
=================================================================================*/
.btn {
    color: #3f3f3f;
    border: 1px solid #feee8b;
    background: #92d2dc url(../images/theme/btn-bg.png) repeat-x 50% 50%;
    font-size: 1em;
    line-height: 1.2em;
    margin: 0px;
    padding: 0px;
    /*font-weight: bold;*/
    padding: .2em 0.75em;
    display: inline-block;
    /*position: relative;*/
    *text-decoration: none !important;
    cursor: pointer;
    text-align: center;
    zoom: 1;
    overflow: visible; /* the overflow property removes extra width in IE */
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.btnImp {
    background: #ef859b url(../images/theme/btnimp-BG.png) repeat-x 50% 50%;
    color: #e13f60;
    border: 1px solid #f5c1cb;
}

.btnPoint {
    background: #dadada url(../images/theme/btnPoint-BG.png) 50% 50% repeat-x;
    color: #37808b;
    border: 1px solid #b4e7ef;
}
/*新增！！！*/

.btn.Over {
    background: #dadada url(../images/theme/btn-over-BG.png) 50% 50% repeat-x;
    color: #3f3f3f;
    border: 1px solid #fed22f;
}

.btnImp.btn.Over {
    background: #fcbecb url(../images/theme/btnImp-over-BG.png) 50% 50% repeat-x;
    color: #e13f60;
    border: 1px solid #f8abbb;
}

.btnPoint.btn.Over {
    background: #dadada url(../images/theme/btnPoint-over-BG.png) 50% 50% repeat-x;
    color: #37808b;
    border: 1px solid #ddd;
}

.MyQueryArea .CommandArea .btn, .MyQueryArea .btn, .CommandArea .btn {
    color: #fff;
    border: 1px solid #25b7e8;
    background: #25b7e8 url(../images/theme/btnCom-BG.png) 50% 50% repeat-x;
}

    .MyQueryArea .CommandArea .btn.Over, .MyQueryArea .btn.Over, .CommandArea .btn.Over {
        color: #007aa3;
        border: 1px solid #aedbeb;
        background: #dadada url(../images/theme/btnCom-over-BG.png) 50% 50% repeat-x;
    }
/*修正Bootstrap*/

.btnSelect .btn {
    background: #FFF;
    color: #333;
    border: 1px solid #888;
}

/*-----------------修正jQuery UI-----------------*/
.ui-datepicker select.ui-datepicker-month {
    width: 30%;
}

.ui-datepicker select.ui-datepicker-year {
    width: 40%;
}


/*--dsy--*/
.Declare td {
    color: #363636;
    font-size: .95em;
    text-align: right;
    font-weight: 800;
}

    .Declare td span {
        font-weight: bold;
    }

/*-----------------修正查詢條件控制項-----------------*/
.MyQueryArea input[type=radio] {
    width: 20px;
}

.MyQueryArea input[type=checkbox] {
    margin-top: 0;
}


/*-----------------行事曆-----------------*/
.MyCalendarArea {
    display: inline-block;
    /*width: 50%;*/
    width: 400px;
}

    .MyCalendarArea + .MyQueryArea {
        display: block;
        width: 50%;
        max-width: calc(100% - 300px);
        float: left;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        position: relative;
    }

.MyCalendar {
    min-height: 300px;
    border: 2px solid #3693A5;
    /*margin: 1rem 0;*/
    position: relative;
    padding: 0.75rem;
}

    .MyCalendar p {
        color: #515151;
        font-weight: bold;
        font-size: 1.5rem;
        text-align: center;
    }

    .MyCalendar .Calendar_left, .MyCalendar .Calendar_right {
        position: absolute;
        top: 0.75rem;
        background-color:#52B4C7;
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
    }

        .MyCalendar .Calendar_left:hover, .MyCalendar .Calendar_right:hover {
            background-color: #3693A5;
        }

    .MyCalendar .Calendar_left {
        left: 3.3rem;
    }
    .MyCalendar .Calendar_left.yearBtn {
        left: 1rem;
    }

    .MyCalendar .Calendar_right {
        right: 3.3rem;
    }
    .MyCalendar .Calendar_right.yearBtn {
        right: 1rem;
    }

        .MyCalendar .Calendar_left i, .MyCalendar .Calendar_right i {
            color: #FFF;
            width: 2rem;
            text-align: center;
            line-height: 2rem;
        }

            .MyCalendar .Calendar_left i:before, .MyCalendar .Calendar_right i:before {
                font-size: 1.25rem;
                color: #FFF;
                font-family: "Font Awesome 5 Free";
                line-height: 2rem;
            }

    .MyCalendar ul.week {
        padding: 0.5rem 0;
        margin-top: 1rem;
        border-bottom: 2px solid #3693A5;
    }

        .MyCalendar ul.week li {
            width: 14.25%;
            float: left;
            text-align: center;
            font-size: 0.75rem;
            line-height: 0.75rem;
        }

    .MyCalendar .calendarDate div {
        float: left;
        text-align: center;
        width: 14.25%;
        height: 2.25rem;
        line-height: 2.25rem !important;
        padding-top: 10px;
        margin: 0.25rem auto;
    }

        .MyCalendar .calendarDate div a {
            display: inline-block;
            width: 2.25rem;
            height: 2.25rem;
            line-height: 2rem !important;
            color: #333;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            border-radius: 50%;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            background-color: #aed4c4;
            border: 2px solid #FFF;
            cursor: default;
        }

        .MyCalendar .calendarDate div.hasEvent a {
            background-color: #ffefd1;
        }

            .MyCalendar .calendarDate div.hasEvent a:hover {
                background-color: #ffe4c7;
                border: 1px solid #ee9f4a;
            }

        .MyCalendar .calendarDate div.theDay a {
            background-color: #ff9094;
        }

        .MyCalendar .calendarDate div.today a {
            color: #3f3f3f;
            font-weight: bold;
            background-color: #fff;
            text-decoration: underline;
        }

.MyCalendarLegend {
    text-align: left;
    padding-bottom: 20px;
}

    .MyCalendarLegend li {
        padding-top: 10px;
        display: inline-block;
    }
    .MyCalendarLegend li + li{
        padding-left: 10px;
    }

    .MyCalendarLegend li span {
        display: inline-block;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        background-color: #aed4c4;
        vertical-align: middle;
    }

        .MyCalendarLegend li span.hasEvent {
            background-color: #ff9094;
        }

        /*select2修正*/
.select2-container {
    width: 44% !important;
}
.select2 li span {
    line-height: unset;
}


/*RWD setting*/
@media only screen and (max-width: 47.9375em) {
    .MyQueryArea table tr {
        display: grid;
    }

    .MyQueryArea table th, .MyQueryArea table td {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 0.75em;
    }

    .mobileScroll{
        overflow:auto;
        height:60vh;
    }
}