* {
    box-sizing: border-box;
}

html, body {
    /*background-color: white;*/
    background: transparent;
    height: 100%;
    font-family: arial,"微軟正黑體", "Microsoft JhengHei", sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    word-break: break-all;
    word-wrap: break-word;
    color: rgb(99, 99, 111);
}

a:hover {
    text-decoration: none;
}



.k-grid .k-button:hover, .k-toolbar .k-button:hover {
    
}

.k-pager-info,
.k-pager-info.k-label {
    display: inline-block !important;
}


/*表格目錄中的URL*/
.label-url {
    color: #337ab7;
    border-bottom: 1px solid #337ab7;
    cursor: pointer;
}


/*footer*/
footer {
    bottom: 0;
    font-size: 0.75rem;
    height: 20px;
    line-height: 20px;
    padding: 0 10px;
    position: absolute;
    text-align: right;
    width: 100%;
}


.k-grid .k-pager-numbers .k-state-selected {
    background-image: none;
    padding: 4px 0px
}
/*header*/
header {
    background-color: white;
    /*height: 40px;*/
    line-height: 54px;
    background: url(/Images/header_bg.jpg) right center no-repeat;
    border-bottom: 1px solid rgba(35, 35, 50, 0.08);
}

    header > img {
        margin: 0 10px;
        height:50px;
    }

    header > span a {
        color: #00023D;
        font-size: 1.2rem;
        /*rtical-align: middle;*/
        position: absolute;
        left: 65px;
        top: 10px;
    }

    /*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 {
                height: 30px;
                margin: 0px 0px 0px 5px;
                color: #fff;
            }

                header ul li .k-button:hover {
                    color: #fff;
                    box-shadow: 0px 4px 0px 0px rgba(35, 35, 35, 0.2) !important;
                }

    header a {
        text-decoration:none;
    }



#container {
    bottom: 20px;
    position: absolute;
    top: 56px;
    width: 100%;
    background: #f6f9fe;
}

    /*menu*/
    #container nav {
        background: none;
        float: left;
        height: 100%;
        overflow-y: auto;
    }

        #container nav label {
            cursor: pointer;
        }

        #container nav .k-panelbar .k-panel,
        #container nav .k-menu .k-item {
            position: static;
            box-shadow:none;
        }

    #container.navOpen nav {
        width: 220px;
    }

    #container #main {
        margin-left: 20px;
    }

   /* #container.navOpen #main {
        margin-left: 180px;
    }*/

    #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;
    }

.k-state-selected {
    box-shadow:none !important;
}

.k-menu .k-state-hover > .k-link {
    background-image: none;
}

/*鎖定按鈕*/
#lockBtn {
    color: #fff;
    background-color: red;
}

    #lockBtn:hover {
        background-color: #DD0000;
    }



/*tabs*/
#tabs {
    background: inherit;
    border: none;
    margin: 0 5px;
}

    #tabs .k-tabstrip-items {
        border: none;
        padding: 0;
        /*display:none;*/
        font-size: 20px;
        font-weight: 600;
        margin: 0px 0px 0px 5px;
    }

        #tabs .k-tabstrip-items li {
            padding: 6px 10px 0px 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: 5px;
        padding-bottom: 0;
        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;
    padding: 0 5px;
    /*margin: 0 0px 4px 0px;*/
    padding: 0px
}

    .fn-path:empty {
        display: none;
    }

/*fn-buttons*/
.fn-buttons {
    background: none;
    border: none;
    padding: 0px ;
  
}

    .fn-buttons .k-button {
        padding: 2px 10px;
        color: #fff;
    }

        .fn-buttons .k-button:hover {
            box-shadow: 0px 4px 0px 0px rgba(35, 35, 35, 0.2) !important;
        }

        .fn-buttons .k-overflow-anchor {
            border-radius: 4px;
            line-height: 1rem;
            height: auto;
            width: auto;
            padding: 2px 10px;
            margin-top: 1rem;
        }

/*form*/
form table {
    margin: 5px auto;
    width: 98%;
}

form th {
    padding: 2px 5px;
    text-align: right;
    white-space: nowrap;
    width: 120px;
    font-size: 0.9375rem;
}

form td {
    padding: 2px 5px;
}

    form td .k-button {
        margin: 1px 0px 3px 0px;
        line-height: 30px;
        margin-bottom:3px;
    }

.k-dialog.k-dialog-titleless .k-content {
    padding:1em;
}



/*input*/
input[readonly="readonly"], .k-input[readonly="readonly"], textarea[readonly="readonly"] {
    color: gray;
    background-color: #eaeaea
}

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;
    border-color: rgba(35, 35, 50, 0.08);
    /*box-shadow: 0px 10px 20px 0px rgba(35, 35, 50, 0.1);*/
}

    .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 {
            padding: 3px;
            border-color: rgba(35, 35, 50, 0.08);
            font-weight: bold;
            font-size: 0.9375rem;
        }

            .k-grid .k-grid-header th .k-link {
                justify-content: center;
            }

            .k-grid .k-grid-header th:first-child {
                border-top-left-radius: 4px;
            }

    .k-grid .k-grid-content td {
        cursor: pointer;
        padding: 3px;
        text-overflow: ellipsis;
        white-space: nowrap;
        border-color: rgba(35, 35, 50, 0.08);
        border-bottom: 1px solid rgba(35, 35, 50, 0.08);
    }

        .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-pager-wrap {
        background: none;
        border: none;
        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 {
    border: 1px solid #ccc !important;
    color: #000 !important;
    background:#fff !important;
}

    .btn-default:hover {
        background: #dddddd !important;
    }

    .btn-default .k-icon {
        background-color: #fff;
        border-color: #ccc;
    }

.btn-primary {
    background-color: #337ab7 !important;
    border-color: #2e6da4 !important;
}

    .btn-primary:hover {
        background-color: #2f70a8 !important;
    }

    .btn-primary .k-icon {
        color: #fff;
    }


.btn-success {
    color: #fff !important;
    background-color: #5cb85c !important;
    border-color: #398439 !important;
}

    .btn-success:hover {
        background-color: #54a754 !important;
    }

    .btn-success .k-icon {
        color: white;
    }

.btn-info {
    color: #fff !important;
    background-color: #5bc0de !important;
    border-color: #46b8da !important;
}

    .btn-info:hover {
        background-color: #55b2ce !important;
    }

    .btn-info .k-icon {
        color: white;
    }

.btn-warning {
    color: #fff !important;
    background-color: #f0ad4e !important;
    border-color: #eea236 !important;
}

    .btn-warning:hover {
        background-color: #efa740 !important;
    }

    .btn-warning .k-icon {
        color: white;
    }

.btn-danger {
    color: #fff !important;
    background-color: #d9534f !important;
    border-color: #d43f3a !important;
}

    .btn-danger:hover {
        background-color: #c84d4a !important;
    }

    .btn-danger .k-icon {
        color: white;
    }

.btn-link  {
    color: #000 !important;
    background:none !important;
}

.btn-link .k-icon {
    color: #337ab7;
}

.k-listbox .k-item:hover:not(.k-state-disabled) {
    background-image:none;
}

.k-treeview span.k-in {
    background-image: none;
}

/*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;
    }

.k-list-optionlabel.k-state-selected.k-state-focused {
    background-image:none;
}

/*_CheckboxList,_RadioList*/
.checkboxList {
    list-style: none;
    padding: 0;
}

    .checkboxList li {
        padding: 2px 10px 2px 0px;
    }

        .checkboxList li label {
            color: #de4e15;
        }

/*_ListSelector*/
.k-listbox .k-listbox-toolbar {
    margin: 2px 10px;
}

.k-listbox .k-item {
    font-size: 0.9375rem;
    white-space: nowrap;
}

.k-tooltip-content {
    font-size: 0.75rem;
}

nav .k-header label {
    line-height: 20px;
}


ul.k-reset {
    text-align:left;
    line-height:1.3em;
}


.k-multiselect .k-button {
    margin: 2px;
}

.k-widget.k-tooltip-validation {
    box-shadow: none;
    background: none;
    border: none;
    color: red;
}

.k-state-focused.k-state-selected {
    border: none;
}

/* datepicker */
.k-calendar-container .k-widget.k-calendar {
    width: 100%;
}

/* menu */
.k-menu.k-menu-vertical:not(.k-context-menu) {
    padding-block: 0;
}

/* kendo listbox */
.k-listbox.k-listbox-actions-right {
    width: 45% ;
}

.k-list-scroller.k-selectable {
    width: 100%;
}

.k-listbox {
    width: 45%;
    gap: 0rem !important;
}
.k-listbox-actions{
    margin: 1%
}
    .k-listbox-actions > button{
        color:white
    }
/* kendo listbox */

.announcement-li {
    position: relative;
}

.notification-badge {
    position: absolute;
    bottom: -1px; /* 調整到按鈕左下角 */
    right: -4px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:9;
    /*visibility: hidden;*/ /* 預設隱藏 */
}

.notification-container {
    position: absolute;
    bottom: -60px;
    left: 0px;
    z-index: 9999;
    transition: all 0.5s ease;
    /*    display:flex;
    justify-content:center*/
}
 /*   .notification-container::before {
        content: '';
        position: absolute;
        bottom: 10px;
        width: 20px;
        height: 20px;
        left:210px;
        transform: rotate(45deg);
        background-color: #4CAF50;
        border-radius: 3px;
    }*/

/* 設定通知的樣式 */
.notification {
    visibility: hidden; /* 初始為隱藏 */
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    opacity: 0;
    transition: all 0.5s ease;
    text-align: center;
    width: 200px;
}

    /* 顯示通知時的動畫效果 */
    .notification.show {
        width: 400px;
        visibility:initial;
        opacity: 1;
    }
@media(max-width:768px) {
    form th {
        text-align: left;
        display: block;
        margin:0px 0px 3px 0px;
        padding:0px;
    }

        form th label {
            margin-bottom: 0rem;
            margin-top: 10px;
        }


    form td {
        display: block;
        margin: 0px;
        padding: 0px;
    }

    form textarea {
        width: 100% !important;
    }

    input.k-textbox {
        width: 100% !important;
    }

    table span.k-dropdown {
        width: 100%;
    }

    table span.k-datepicker {
        width: 100%;
        margin: 0px 0px 5px 0px;
    }

    input[type='checkbox'], input[type='radio'] {
        width: 0px !important;
    }

    /*
    input, textarea {
        width: 100% !important;
    }*/

    /*form div  {
        width:100%;
    }*/
 
}




@media(max-width:480px) {

    footer {
            position: fixed;
        }

            footer div {
                float: none !important;
                text-align: center;
            }

    #container #main {
        margin-bottom: 50px;
        margin-left: 0px;
        margin-top: 12px;
    }


       #container {
            top: 90px;
            bottom: inherit;
        }

        header {
            text-align: center;
            height: 90px;
            border-bottom: 1px solid #ccc;
            background: #f0eff0;
        }



        #tabs .k-content {
            border: none;
        }



        #tabs .k-tabstrip-items {
            border-bottom: 1px solid #9f9f9f;
        }

        .fn-path {
            display: none;
        }

        .k-grid {
            margin-top: 10px;
        }

        #container.navOpen nav {
            width: 100%;
            position: absolute;
            z-index: 999;
        }

        #container.navOpen #main {
            margin-left: 0px;
        }

        #container nav .k-button {
            margin:0px 5px;
        }


        .fn-buttons {
            padding: 0px;
        }

            .fn-buttons .k-icon .k-i-menu {
                padding: 0px;
            }

        .k-dateinput.k-state-disabled > .k-textbox:hover, .k-maskedtextbox.k-state-disabled > .k-textbox:hover, input.k-textbox, textarea.k-textbox {
            width: 100%;
        }

        .k-widget header ul {
            position: relative;
            z-index: 9999;
        }


    #container nav {
        margin-top: -45px;
    }

    td iframe {
        margin-top: 5px;
    }

    form table h5 {
        font-size:1.1em;
        padding:10px 0px 0px 0px;
    }

    .k-listbox.k-widget {
        width: 50%;
    }

    .k-window {
        width:100% !important;
    }


    form .k-multiselect {
        width: 89%;
    }

    .k-menu .k-state-hover > .k-link {
        background:none;
    }

    #frmEditSetting div {
        width: 100%;
        /*margin: 0px 0px 2px 5px !important*/
        margin: 0px 5px 2px 0px !important;
    }

    #frmEditStage div {
        margin:0px;
    }

    .k-multiselect-wrap {
        width: 93%;
    }

    .k-checkbox-label {
        margin: 0px 8px 0px 0px;
    }

    .k-animation-container {
        right:0px;
    }



    /* #userInfo .k-widget {
        width: 80px;
    }*/


    }

/*--新增--*/
/*--header--*/
.topicChoose {
display:none;
}

.timerClock button, .timerClock button:hover {
    background: none;
    color: #232323 !important;
}

.k-picker-solid {
    height:30px;
}

    .k-picker-solid .k-button:hover {
        background: none !important;
      
    }
    /*--內文頁籤--*/
    .k-tabstrip-items-wrapper .k-item.k-active {
        border: none;
        background-color: transparent;
    }

.k-tabstrip-content, .k-tabstrip > .k-content {
    border: none;
    background-color: transparent;
}

#tabs .k-content {
    padding: 5px 10px 5px 15px;
}


.k-tabstrip-items-wrapper {
    border-color: transparent;

}



/*--menu--*/

.k-panelbar > .k-panelbar-header > .k-link.k-selected {
    color: #008282;
    box-shadow:none;
}
.k-panelbar > .k-panelbar-header {
    border: none;
}

.k-panelbar {
    border: none;
    background-color: transparent;
}

    .k-panelbar > .k-item > .k-link, .k-panelbar > .k-panelbar-header > .k-link {
        padding-block: 0.5rem;
        background-color: transparent;
        color: #232332b3;
    }

        .k-panelbar > .k-panelbar-header > .k-link.k-selected {
            background: rgba(255, 255, 255, 0.6);
 
        }

#container nav .k-menu .k-item.active {
    background: #e7f0e2 !important;
}

    #container nav .k-menu .k-item.active > .k-link {
        color: #008282 !important;
    }

nav .k-hover {
    background: #e7f0e2 !important;
}
/*--共用--*/
table ol, ul {
    margin-bottom: 0rem;
}

.k-input-value-text {
    font-size: 0.95rem;
}

.k-input-md .k-input-inner, .k-picker-md .k-input-inner {
    padding-inline: .571em;
}


/*--grid--*/
.k-column-title {
    font-weight: bold;
    text-align:center;
}

.k-pager-md .k-pager-numbers-wrap .k-button {
    border-radius: 30px;
    background: rgba(35, 35, 50, 0.55);
    font-size: 0.95rem;
}


.k-pager {
    background: rgba(35, 35, 50, 0.03);
    font-size: 0.95rem;
}

.k-grid-pager.k-pager-md {
    padding-block: 0rem;
   
}

.k-grouping-header {
    background-color: transparent;
    border-left: 10px solid #007193;
    padding: 0px 5px;
    margin: 0px 0px 5px 0px;
    border-bottom: none;
}

.k-grid .k-table-alt-row {
    background-color: rgba(0, 0, 0, 0);
}

.k-grid .k-table-row:hover:hover {
    background: #faffff;
}
/*--pop up--*/
.k-window-titlebar {
    height: 40px;
    color: #fff;
    background-image: linear-gradient(145deg, #3295a1 0%, #79c4cd 100%);
}
.k-grid .k-table {
    font-size: 0.95rem;
}
.k-grid table tbody tr:hover td {
    background-color: #dbe9da7d;
}

.k-window-titlebar-actions {
    gap: 0rem;
}

.k-dialog-actions .k-button, .k-dialog-actions .k-button:hover {
    color: #fff;
}


.k-pager-numbers-wrap .k-button .k-button-text {
    color: #008282 !important;
}

.k-pager-numbers-wrap .k-button.k-selected {
    color: white !important;
}

.k-input-button.k-button.k-button-md.k-button-solid.k-button-solid-base.k-icon-button.k-rounded-md {
    background: none !important;
}

.k-editor-toolbar .k-button.k-icon-button.k-toggle-button.k-toolbar-tool.k-group-start.k-button-md.k-rounded-md.k-button-solid.k-button-solid-base {
    color: white !important;
}