﻿body {
    max-width: 2560px;
    margin: 0 auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


@media (max-width: 767px) {
    .form-group {
        margin-top: 3px;
    }

        .form-group label.control-label {
            font-size: 11px;
            margin-top: 11px;
        }

            .form-group label.control-label.uf-form-readonly {
                font-size: 14px;
                border-bottom-color: #eee;
                padding-left: 15px;
            }

    .uf-section-header .btn.btn-fab.btn-fab-mini {
        margin: 0;
        position: absolute;
        top: -12px;
        right: 3px;
    }
}

@media (min-width: 992px) {
    .col-md-1 {
        width: 12.49999995% !important;
    }

    .uf-section-header .btn.btn-fab.btn-fab-mini {
        margin-top: -14px;
        margin-left: 14px;
    }
}

.uf-section-header .btn.btn-fab.btn-fab-mini .fa-plus {
    margin: 0 0 0 -4px;
}

.checkbox-inline, .radio-inline {
    padding-left: 0;
}

    .radio-inline strong {
        padding: 0 10px;
        font-weight: 400;
        background-color: #eee;
        ;
    }

    .radio-inline input:checked ~ strong {
        color: #009688;
    }

.form-group-condensed .form-group {
    margin: 0 15px 0 0;
}

.input-group.form-group-condensed .form-group {
    margin-left: 5px;
}

.uf-progress {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    /* background: rgba(3, 169, 244, 0.2); */
    /* background: rgba(255, 255, 255, 0.6); */
    background: rgba(0, 0, 0, 0.3);
}

.uf-progress-inner {
    position: absolute;
    z-index: 999999;
    border-radius: 3px;
    text-align: center;
    top: 35%;
    /*top: 0;
    bottom: 0;*/
    height: 58px;
    margin: auto;
    left: 0;
    right: 0;
    width: 200px;
    /* -webkit-box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22);
          box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22); */
    -webkit-box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0,0,0,.12);
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0,0,0,.12);
}

    .uf-progress-inner img {
        width: 96%;
        border: solid 1px #03a9f4;
        border-radius: 3px;
        margin-top: -6px;
    }

.form-group label.uf-form-readonly {
    color: #009688;
    border-bottom: solid 1px #ccc;
    padding-bottom: 2px;
    padding-left: 5px;
    min-height: 16px;
}

.uf-nav {
    margin: 20px 0;
}


.uf-nav.uf-nav-condensed {
    margin: 0;
}

    .uf-nav.nav-tabs > li.active > a, .uf-nav.nav-tabs > li.active > a:focus, .uf-nav.nav-tabs > li.active > a:hover {
        border-bottom: solid 2px #009688 !important;
    }

    .uf-nav.nav > li > a {
        padding: 5px 10px;
    }


@media (max-width: 767px) {
    .uf-nav.nav > li > a {
        padding: 5px 8px;
        font-size: 12px;
    }
}

.uf-section-header {
    font-size: 16px;
    ;
    color: #009688;
    margin-bottom: 0;
    border-bottom: solid 2px #009688;
    padding-left: 2px;
    /* border-left: solid 3px #009688; */
    padding-bottom: 2px;
    font-weight: 700;
    position: relative;
}


.uf-gpinfo-status {
    font-size: 100%;
    font-weight: 400;
    display: inline-block;
    width: 80%;
}
.uf-gpinfo-tooltip {
    max-width: 200px;
}

.uf-gpinfo-tooltip .uf-gpinfo-title {
    border-bottom: solid 1px #ccc;
    padding-bottom: 2px;
    margin-bottom: 3px;
}

.uf-gpinfo-tooltip-col2 {
    max-width: 340px;
    position: relative;
}
.uf-gpinfo-tooltip-col2 .uf-gpinfo-tooltip:first-of-type {
    float:left;
}
.uf-gpinfo-tooltip-col2 .uf-gpinfo-tooltip:last-of-type {
    float:right;
}

.uf-gpinfo-tooltip-col2::after {
    content:'';
    float: none;
    display: block;
    clear:both;
}

.uf-gpinfo-tooltip .gpars-pill {
    margin-bottom: 10px;
    display: block;
}

.form-group label.uf-form-readonly.uf-gp-info {
    border-bottom: none;
}

.uf-gp-info .gpars-pill {
    font-size: 0.8em;
}

.uf-gpinfo {
    width: 16em;
}

    .uf-gpinfo .gpars-pill {
        font-size: 0.8em;
    }

.gpars-pill {
    font-size: 0.9em;
    display: inline-block;
    margin: 0 5px 5px 0;
}

.gpars-pill.gpars-pill-default > span:first-child {
    background-color:#ececec;
    border-color: #bbb;
    color: #525252;
    font-weight: bold;
}

.gpars-pill.gpars-pill-warning > span:first-child {
    background-color: #ff5722;
    border-color: #ff5722;
}

.gpars-pill.gpars-pill-success > span:first-child {
    background-color: #5cb85c;
    border-color: #5cb85c;
}

.gpars-pill > span:first-child {
    color: #fff;
    border-style: solid;
    border-width: 1px;
    padding: .2em .3em;
    border-top-left-radius: 0.3em;
    border-bottom-left-radius: 0.3em;
}

.gpars-pill > span:last-child {
    /*background-color: #ececec;*/
    color: #525252;
    border: solid 1px #bbb;
    padding: .2em .3em .2em .4em;
    border-top-right-radius: 0.3em;
    border-bottom-right-radius: 0.3em;
    border-left: none;
    font-weight: bold;
}


.btn.uf-btn-xs-tbl {
    margin: 0;
    padding: 1px 3px;
}

.btn.btn-raised.uf-btn-flat {
    box-shadow: none;
    -webkit-box-shadow: none;
    margin-bottom: 0;
}


.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
    background-color: #009688;
    border-color: #009688;
}

.pagination > li > a, .pagination > li > span {
    color: #009688;
}

.uf-table-condensed {
    font-size: 12px;
}

    .uf-table-condensed .form-control {
        font-size: 12px;
        margin: 0;
        height: auto;
        padding-bottom: 4px;
        width: 6em;
    }

    .uf-table-condensed.uf-table-v-center tbody td {
        vertical-align: middle;
    }


    .uf-table-condensed .radio span, label.radio-inline span {
        left: 2px;
        top: 5px;
    }

    .uf-table-condensed .radio label {
        padding-left: 18px !important;
        padding-top: 4px;
    }

.gpars-table-header-light {
    /* background: #8fc320; */
    background: #036d63;
    color: #fff;
}

.gpars-table-header {
    background: #189947;
    color: #fff;
}

.gpars-table-header span[data-tooltip-content] {
    color: #fff; 
}
.gpars-table-header span[data-tooltip-content]:hover {
    color: #f0ad4e;
}

#part .tblPartDetail,
#assy .tblPartDetail {
    font-size: 0.9em;
}

    #part .tblPartDetail th,
    #assy .tblPartDetail th {
        text-align: center;
        font-weight: 400;
        vertical-align: middle;
    }

    #part .tblPartDetail th.updating,
    #assy .tblPartDetail th.updating {
        line-height: 1;
    }

    #part .tblPartDetail th.updating .fa-chevron-down,
    #assy .tblPartDetail th.updating .fa-chevron-down {
        color:#999;
    },
    #assy .tblPartDetail th.updating {
        line-height: 1;
    }

    #part .tblPartDetail td,
    #assy .tblPartDetail td {
        vertical-align: middle;
    }

    #part .tblPartDetail thead th[colspan],
    #assy .tblPartDetail thead th[colspan] {
        border-bottom: none;
    }

    #part .tblPartDetail .label,
    #assy .tblPartDetail .label {
        font-size: 0.9em;
        font-weight: 400;
        display: inline-block;
        width: 90%;
    }

    #part .tblPartDetail .btn,
    #assy .tblPartDetail .btn {
        margin: 0;
    }


    #part .tblPartDetail.form-group-condensed .form-group,
    #assy .tblPartDetail.form-group-condensed .form-group {
        margin: 0;
        padding: 0;
    }

        /*#part .tblPartDetail.form-group-condensed .form-group .form-control {
            margin: 0;
            padding: 0;
            padding-right: 3px;
            font-size: 1em;
        }*/

        #part.form-group-condensed td.form-group .form-control,
        #assy.form-group-condensed td.form-group .form-control {
            margin: 0;
            padding: 0 3px;
            font-size: 1em;
        }

.gpars-assy-table {
        font-size: 0.9em;
        margin: 0;
    }

        .gpars-assy-table .input-group .form-control {
            border-radius: 0;
            padding: 3px;
            height: auto;
        }

        .gpars-assy-table .input-group .input-group-addon {
            padding: 0 3px;
            height: auto;
        }

        .gpars-assy-table .gpars-table-header {
            font-weight: 400;
            background: #036d63;
        }

        .gpars-assy-table th {
            text-align: center;
        }

        .gpars-assy-table tbody tr th, .gpars-assy-table tbody tr td {
            padding: 3px;
            vertical-align: middle;
            /*height: 42px;*/
        }

    #tblPartDetail {
        font-size: 0.9em;
        margin: 0;
    }

    .gpars-assy-table tbody tr td.gpars-pending {
        background-color: #fff7ce;
    }

    #tblPartDetail tbody > td > input.gpars-pending {
        background-color: #fff7ce;
    }

    #tblPartDetail tbody > tr.gpars-pending {
        background-color: #fff7ce;
    }

    #tblPartDetail tbody > tr.gpars-finish {
        background-color: #eee;
    }

    #tblPartDetail thead th[colspan] {
        border-bottom: none;
    }

    #tblPartDetail th {
        text-align: center;
    }

    #tblPartDetail tbody th, #tblPartDetail tbody td {
        padding: 3px;
        vertical-align: middle;
        height: 42px;
    }

    #tblPartDetail .input-sm, .gpars-assy-table .input-sm {
        border-radius: 0;
        padding: 3px;
        height: auto;
        color: #000;
    }

    #tblPartDetail.part-detail-readonly #divHomoHeaderAction button {
        display: none;
    }

    .gpars-table-header-light {
        /*background: #8fc320;*/
        background: #036d63;
        color: #fff;
    }

    .btn-xs {
        padding: 0px 4px;
        font-size: 0.95em;
    }

    .tooltip_templates {
        display: none;
        font-size: 0.9em;
    }

    span[data-tooltip-content] {
        cursor: pointer;
        color: #009688;
    }

        span[data-tooltip-content]:hover {
            color: #000;
        }

    .gpars-form-status {
        font-size: 0.5em;
        color: #ccc;
    }

        .gpars-form-status .finish {
            color: #189947;
        }

        .gpars-form-status .error {
            color: #d43f3a;
        }

    .table-striped > tbody > tr:nth-of-type(2n) {
        background-color: #fff;
    }

    .gpars-assy-homo-section {
        padding: 0 0 1em 1.3em;
        background: rgba(74,175,186,0.1);
        /*background: #fff0da;*/
        border: solid 1px #ccc;
        border-top: none;
    }

    .gpars-assy-table .gpars-table-header-action {
        position: absolute;
        top: 4px;
        left: 4px;
    }

    .gpars-assy-table-formsn {
        padding: 0 0.7em;
        display: inline-block;
        width: 45%;
    }


    .gpars-homo-add-menu {
        left: 85%;
        position: absolute;
        top: 62%;
        text-align: left;
        background: #fff;
        padding: 3px;
        border: solid 1px #aaa;
        border-radius: 6px;
        border-top-left-radius: 0;
        display: none;
    }

        .gpars-homo-add-menu :first-child {
            margin-bottom: 3px;
        }

        .gpars-homo-add-menu:hover {
            display: block;
        }

    .gpars-homo-add:hover + .gpars-homo-add-menu {
        display: block;
    }

    .fa-plus-square, .fa-minus-square {
        cursor: pointer;
    }


/**/

.select2-search--dropdown.form-group {
    margin: 0;
}

.select2-selection__clear ~ .uf-maker-list {
    width: 95%;
}

.uf-maker-list {
    overflow: hidden;
}

    .uf-maker-list span:first-child {
        display: block;
        width: 25%;
        float: left;
    }

    .uf-maker-list span:last-child {
        display: block;
        width: 75%;
        float: right;
    }

    .uf-maker-list::after {
        float: none;
        clear: both;
    }

td .material-icons {
    font-size: 1.5em;
}

.nav-tabs > li.uf-nav-action {
    float: right;
    position: relative;
}
.nav-tabs > li.uf-nav-action button.btn-sm {
    margin: 0 3px;
}

.gpars-total {
    color: #f0ad4e;
}

.button-group.uf-button-group label.btn.btn-info.active {
    background: #cfe8ff;
}
/*.nav-tabs > li.uf-nav-action::after {
    content: '';
    float: none;
    display: block;
    clear:both;
}*/


/*.nav-tabs > li.uf-nav-action button.btn-sm {
        position: absolute;
    right: 0;
    top: -7px;
}*/

.uf-substance-list {
    width: 97%;
    overflow: hidden;
}
.uf-substance-list div{
    float:left;
    margin-right: 10px;
}

/*下comment區塊*/
.uf-form-comment {

}

.uf-form-comment.form-group-condensed .form-group {
    margin: 0;
}
.uf-form-comment textarea.form-control {
    border: solid 1px #ccc;
    border-top: none;
    border-bottom: none;
    padding-left: 5px;
}

.uf-form-comment .uf-section-header {
    font-size: 14px;
}

textarea.form-control.uf-textarea {
    border: solid 1px #ccc !important; 
    border-bottom: none  !important;
    padding-left: 5px;
}

.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th {
    background-color: #fdfabf;
}

#tc_gpinfo_tip {

}

#tc_gpinfo_tip .label{
    display: inline-block;
    width: 5em;
}

#tc_gpinfo_tip td {
    padding: 3px;
}

ul.uf-popup-list {
    list-style-type: disc;
    margin-left: 1.5em;
}

ul.uf-popup-list li {
    padding: 5px 0;
}

    .dataTables_length {
        display: inline-block;
    }

    .dt-button.buttons-columnVisibility .fa-square-o {
        display: inline;
    }

    .dt-button.buttons-columnVisibility .fa-check-square-o {
        display: none;
    }

    .dt-button.buttons-columnVisibility.active .fa-square-o {
        display: none;
    }
    .dt-button.buttons-columnVisibility.active .fa-check-square-o {
            display: inline;
        }

    .dt-button.buttons-columnVisibility  a{
        padding: 3px 10px;
    }
    .dt-button.buttons-columnVisibility.active  a{
        background-color: #fff;
            color: #009688;
    }

    .dt-button.buttons-columnVisibility.active  a:hover, 
    .dt-button.buttons-columnVisibility a:hover {
        background-color: #eee;
    }

    .uf-dt-checkbox {
        display: inline-block;
        width: 1.2em;
        vertical-align: top;
    }

    .uf-dt-label {
        display: inline-block;
        width: 20em;
        white-space:normal;
    }