﻿* {
    box-sizing: border-box;
}

html, body {
    background-color: white;
    height: 100%;
    font-family: arial,"微軟正黑體", "microsoft jhenghei", sans-serif;
    
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

a:hover {
    text-decoration: none;
}

/*footer*/
footer {
    bottom: 0;
    font-size: 0.75rem;
    height: 20px;
    line-height: 20px;
    padding: 0 10px;
    position: absolute;
    text-align: right;
    width: 100%;
}

/*header*/
header {
    background-color: white;
    height: 40px;
    line-height: 40px;
}

    header > img {
        margin: 0 10px;
        width: 1.5rem;
    }

    header > span a {
        color: black;
        font-size: 1.5rem;
        vertical-align: middle;
    }

    /*userinfo*/
    header ul {
        float: right;
        font-size: 0.8125rem;
        margin: 0 10px;
        padding: 0;
        vertical-align: bottom;
    }

        header ul li {
            list-style: none;
            display: inline;
        }

            header ul li .k-button {
                padding: 2px 10px;
            }

#container {
    bottom: 20px;
    position: absolute;
    top: 40px;
    width: 100%;
}

    /*menu*/
    #container nav {
        background: none;
        float: left;
        height: 100%;
        width: 225px;
    }

        #container nav label {
            cursor: pointer;
        }

        #container nav .k-panelbar .k-panel,
        #container nav .k-menu .k-item {
            position: static;
        }

    #container.navOpen nav {
        width: auto;
    }

    #container #main {
        margin-left: 20px;
    }

    #container.navOpen #main {
        margin-left: 20px;
    }

    #container nav .k-button {
        background: inherit;
        border: none;
        color: white;
        padding: 2px 10px;
    }

    #container nav .k-widget {
        border: none
    }

    #container nav .k-header {
        background-image: none;
        border-color: white;
    }

/*tabs*/
#tabs {
    background: inherit;
    border: none;
    margin: 0 5px;
}

    #tabs .k-tabstrip-items {
        border: none;
        padding: 0;
    }

        #tabs .k-tabstrip-items li {
            padding: 2px 10px;
        }

        #tabs .k-tabstrip-items .k-loading {
            border: none;
        }

        #tabs .k-tabstrip-items .k-link {
            line-height: 1rem;
            padding: 0;
        }

        #tabs .k-tabstrip-items .k-i-x {
            background-color: brown;
            border-radius: 8px;
            color: white;
            font-size: 0.8125rem;
            margin: 0 0 0 5px;
            padding: 1px;
        }

    #tabs .k-content {
        padding: 0.2em;
        margin: 0 auto;
        overflow: hidden;
    }

/*fn-path*/
.fn-path {
    background-color: whitesmoke;
    border: 1px solid lightgray;
    border-radius: 4px;
    font-size: 0.75rem;
    height: 20px;
    line-height: 20px;
    margin-bottom: 5px;
    padding: 0 10px;
}

    .fn-path:empty {
        display: none;
    }

/*fn-buttons*/
.fn-buttons {
    background: none;
    border: none;
    padding: 2px 10px;
}

    .fn-buttons .k-button {
        padding: 2px 10px;
    }

    .fn-buttons .k-overflow-anchor {
        border-radius: 4px;
        line-height: 1rem;
        height: auto;
        width: auto;
        padding: 2px 10px;
        margin-top: 1rem;
    }

/*form*/
form table {
    width: 98% !important;
    font-size: 90%;
    margin: 0 auto;
    border: 1px solid #ccc;
}

form tr {
    font-size:95%;
    height:auto !important;
}

form tr > td {
    padding: 0.8em;
    border:1px solid #ccc;
}

form tr > td > input.k-textbox,
form tr > td > span.k-dropdown {
    margin: 3px 0px;
}
/*--功能列選項*/
.fn-form {
    box-sizing: border-box;
    padding: 5px 0px;
}

    .fn-form form table {
        width: 96%;
        margin: 0 auto;
    }
/*==內容==*/
/*--功能鍵過長時可開闔--*/
.k-toolbar {
    background-color: #ffffff;
    background-image: none;
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid #cccccc;
    /*height:51px;*/
}
/*--調整tooltip層級--*/
.k-grid td {
    overflow: visible;
}
/*--td內容超過顯示...,並以tooltip顯示全文--*/
.tooltipoverflow {
    /*position: relative;
    z-index: 1;*/
    display: inline-block;
    width: 300px;
}

.post-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tooltipoverflow .tooltiptext {
    display: none;
    width: 90%;
    background-color: #3e4e72;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    top: 150%;
    left: 15%;
    margin-left: -60px;
    word-break: break-all;
    word-wrap: break-word;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

    .tooltipoverflow .tooltiptext::after {
        content: "";
        position: absolute;
        bottom: 100%;
        /*left: 50%;*/
        left: 25px;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent #3e4e72 transparent;
    }

.tooltipoverflow:hover .tooltiptext {
    display: inline-block;
    z-index: 999999;
}
/*input*/
input[readonly="readonly"], .k-input[readonly="readonly"], textarea[readonly="readonly"] {
    color: gray;
}

input[type="checkbox"], input[type="radio"] {
    height: 1rem;
    margin: 0;
    width: 1rem;
    vertical-align: middle;
}

/*validate*/
.field-validation-valid {
    display: none;
}

.field-validation-error {
    color: red;
    display: block;
    font-size: 0.8125em;
}

.input-validation-error {
    border: none;
    border: 1px solid red;
}

/*grid*/
.k-grid {
    border-radius: 4px;
}

    .k-grid .k-grid-header {
        background: none;
        border: none;
    }

        .k-grid .k-grid-header .k-grid-header-wrap {
            border-top-left-radius: 4px;
        }

        .k-grid .k-grid-header th {
            background: none;
            border: none;
            font-size: 0.9375rem;
            padding: 3px;
            text-align: center;
            white-space: normal;
            word-break: break-word;
        }

            .k-grid .k-grid-header th:first-child {
                border-top-left-radius: 4px;
            }

    .k-grid .k-grid-content td {
        border: none;
        cursor: pointer;
        padding: 3px;
        text-align: center;
        white-space: normal;
        word-break: break-all;
    }

        .k-grid .k-grid-content td .k-button {
            background: none;
            border: none;
            color: black;
            padding: 2px;
            margin: 0 auto;
            min-width: 28px;
            vertical-align: middle;
        }

            .k-grid .k-grid-content td .k-button .k-icon {
                margin: 0 auto;
            }

    .k-grid .k-grid-content tr {
        border-bottom: 1px solid lightgray;
    }

    .k-grid .k-pager-wrap {
        background: none;
        border: none;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        color: white;
        font-size: 0.75rem;
        padding: 3px;
    }

        .k-grid .k-pager-wrap .k-link {
            border: none;
        }

        .k-grid .k-pager-wrap .k-pager-numbers .k-link {
            color: white;
        }

            .k-grid .k-pager-wrap .k-pager-numbers .k-link.k-pager-nav {
                color: black;
            }

/*button k-icon顏色設定*/
.k-icon {
    cursor: pointer;
}

.btn-default .k-icon {
    color: black;
}

.btn-primary .k-icon {
    color: white;
}

.btn-success .k-icon {
    color: white;
}

.btn-info .k-icon {
    color: white;
}

.btn-warning .k-icon {
    color: white;
}

.btn-danger .k-icon {
    color: white;
}

.btn-link .k-icon {
    color: #337ab7;
}

/*dialog*/
#timer {
    background-color: black;
    color: white;
    display: inline-block;
    margin: 5px;
    padding: 2px 10px;
}

.k-dialog .k-dialog-titlebar .k-dialog-title {
    font-size: 1rem;
    line-height: 1rem;
}

.k-dialog.k-confirm, .k-dialog.k-alert {
    min-width: 20%;
    text-align: center;
}

.k-dialog .k-dialog-buttongroup.k-dialog-button-layout-stretched {
    padding: 5px;
    text-align: center;
}

    .k-dialog .k-dialog-buttongroup.k-dialog-button-layout-stretched .k-button {
        border-radius: 4px;
        margin: 2px 10px;
        max-width: 30%;
        padding: 2px 10px;
    }

/*--功能另開視窗--*/
div.k-window {
    z-index: 99990003 !important;
}

div.k-window2 {
    z-index: 99990004 !important;
}

.k-toolbar .k-button-icon {
    background: #ffffff !important;
    border: none !important;
}

/*_CheckboxList,_RadioList*/
.checkboxList {
    list-style: none;
    padding: 0;
}

    .checkboxList li {
        padding: 2px 10px;
    }

        .checkboxList li label {
            color: #de4e15;
        }

/*_ListSelector*/
.k-listbox {
    width: 37%;
}

.k-listbox:first-of-type {
    width: 40%;
}

.k-listbox .k-listbox-toolbar {
    margin: 2px 10px;
}

.k-listbox .k-item {
    font-size: 0.9375rem;
    white-space: normal;
}

.k-tooltip-content {
    font-size: 0.75rem;
}
/*==login頁==*/
#content {
    max-width:100%; 
}

footer {
    position:absolute;
    z-index:999999;
    background:rgba(255,255,255,0.3);
    color:#000000;
}

/*==登入區==*/
/*--標題-系統登入(建議最多12字)--*/
.dialog-custom-title .k-dialog-title {
    text-align:center !important;
    width: 80% !important;
    margin:2em auto !important;
    background:linear-gradient(60deg, #266797, #063659) !important;
    margin-top:-55px !important;
    line-height:40px !important;
    border-radius:10px !important;
    box-shadow:0 20px 10px -12px rgba(0, 0, 0, 0.4), 0 4px 15px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important;
    color:#ffffff !important;
    font-size:1.2em !important;
}

/*--白底上--*/
.dialog-custom-title .k-header {
    background:none;
    border:none;
}

/*--白底下--*/
.dialog-custom-title .k-window {
    border-radius:6px;
    border-color:rgba(0,0,0,.2);
    box-shadow:1px 1px 100px 1px rgba(0,0,0,.5);
}

/*--間矩--*/
#dialog {
    padding:0em 2em 1em 2em !important;
}

/*--文字排版--*/
#dialog table {
    border:none;
}

#dialog th {
    color: black;
    background-color: white;
    font-weight: bold;
    width: 8em;
}

#dialog tr > td {
    border:none;
}


/*--語系下拉--*/
#dialog .k-dropdown-wrap.k-state-default:hover {
    background:#e3e1e2;
    color:#000000;
}

#dialog .k-state-hover:hover {
    background:#3ba9f6;
    color:#ffffff;
}

/*--登入button--*/
#dialog .k-button {
    border-color:#4da0d6;
    background-color:#4da0d6;
    background-image:none;
    color:#ffffff;
    width:100px;
    margin:10px 3px 0px 3px;
    padding:5px;
}

#dialog .k-button:hover {
    background-color:#178bd6;
    color:#ffffff;
    background-image:none;
    border:1px solid #178bd6;
}

#dialog .k-button:active:hover {
    color:#fff;
    border-color:#0d7ebf;
    background-color:#0d7ebf;
}

/*--首頁登入有誤時的訊息視窗--*/
#dialog .k-dialog .k-dialog-buttongroup.k-dialog-button-layout-stretched {
    width:80%;
    margin:0 auto;
    margin-bottom:20px;
}

/*--button--*/
#dialog .k-dialog .k-dialog-buttongroup.k-dialog-button-layout-stretched .k-button {
    padding:5px;
}

#dialog .k-dialog .k-dialog-buttongroup.k-dialog-button-layout-stretched .k-button:first-child {
    border-radius:5px;
}

#dialog .loginButtonList {
    margin: 5px;
}
/*--輸入框--*/
#dialog input.k-textbox {
    width:75% !important;
}
/*放button的div*/
div.parentWrap {
    overflow: hidden;
}

div.parent {
    overflow: hidden;
}

div.child2 {
    text-align: center;
    float: left;
    width: calc(100% / 2);
}

div.child3 {
    text-align: center;
    float: left;
    width: calc(100% / 3 - 0.1px);
}
/*文字靠左*/
.left-align {
    text-align: left !important;
}
/*數字靠右*/
.right-align {
    text-align: right !important;
}
/*日期、代碼和固定長度資料置中*/
.center-align {
    text-align: center;
}
/*表格目錄中的URL*/
.label-url { 
    color: #337ab7;
    border-bottom: 1px solid #337ab7;
    cursor: pointer;
}

/*--行動版新增--*/

#grid_rwd {
    display: none;
}


@media (max-width: 768px) {



    header ul li .k-button {
        margin-left: 5px;
    }

    .rwd_hidden {
        display: none;
    }



    #tabs .k-tabstrip-items {
        margin-left: 40px;
    }



    .fn-path {
        display: none;
    }

    .k-toolbar {
        text-align: center;
    }

    #container nav {
        width: 100%;
        position: absolute;
        z-index: 9;
        background-color: transparent !important;
        color: #000 !important;
        width: 100%;
        height: 35px;
    }

    #container.navOpen nav {
        background: none;
        height: 35px;
        width: 100%;
        position: absolute;
        z-index: 9;
        height: 100%;
        background-color: #446296 !important;
    }

        #container.navOpen nav .k-icon:before {
            color: #000;
        }

    #container.navOpen #main {
        margin-left: 0px;
    }

    #container nav .k-button {
        margin: -7px 0px 0px 0px;
        padding: 0px;
        background: transparent;
    }

    #container #main {
        margin-left: 0px;
    }







    form th {
        text-align: left !important;
    }


    form tr > td {
        padding: 2px;
        border: 1px solid #ccc;
        border-bottom: none;
    }

        form tr > td > input.k-textbox, form tr > td > span.k-dropdown {
            width: 100% !important;
        }


    #grid {
        display: none;
        
    }



    #grid_rwd {
        display: block;
    }


        #grid_rwd .k-grid-content tr.head {
            background: #647aab;
            color: #fff;
        }

        #grid_rwd .k-grid-content th {
            padding: 5px;
            line-height: 140%;
            border: 1px solid #ddd;
            border-top: none;
            text-align: left;
            background: rgba(0, 0, 0, 0.04);
        }

        #grid_rwd .k-grid-content td {
            overflow: visible;
            word-wrap: break-word;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        #grid_rwd input.k-checkbox {
            width: 16px;
            height: 16px;
            margin-left: 1px;
            margin-top: 4px;
            position: absolute;
            z-index: 1;
        }

        #grid_rwd .k-grid-content th span {
            position: absolute;
            margin-left: 25px;
        }
}
