﻿html {
    font-size: 20px;
}

@media screen and (max-width: 767px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: Arial,Microsoft JhengHei !important;
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    height: calc(100vh - 71px);
    flex-direction: column;
    display: -webkit-flex;
    -webkit-flex-direction: column;
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/*避免列印內容*/
@media print {
    body {
        display: none
    }
}

/********bootstrap***************/
.navbar-inverse {
    background-color: #14388f !important;
}
.navbar-inverse a {
    background-color: transparent !important;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background-color: #06194a;
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
    color: white;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:active {
    color: orange;
}

.navbar-collapse.in {
    overflow-y: visible;
}

input[type=checkbox] {
    min-width: 20px;
    min-height: 20px;
}

@media (max-width: 768px) {
    input[type=checkbox] {
        margin-top: 0;
    }
}

/********Bootstrap Modal**********************/

.modal .modal-body {
    font-size: 1rem;
    font-weight: bold;
}

/*寬度 768 時使用 小版的 header Menu*/
@media (max-width: 1200px) {
    .navbar-header {
        float: none;
    }

    .navbar-left, .navbar-right {
        float: none !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }

    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 7.5px;
    }

    .navbar-nav > li {
        float: none;
    }

    .navbar-nav > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .collapse.in {
        display: block !important;
    }
}

@media screen and (width: 768px) {
    .dropdown-menu {
        font-size: 18px;
    }
}

@media (max-width: 1199px) {
    .dropdown-menu {
        font-size: 1rem;
    }

    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
        color: white;
    }

    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover {
        color: orange;
    }

    navbar-nav .open .dropdown-menu > li > a {
        line-height: 20px;
    }

    .navbar-nav .open .dropdown-menu > li > a, 
    .navbar-nav .open .dropdown-menu .dropdown-header {
        padding: 5px 15px 5px 25px;
    }
}

/***************************/

.hrLine {
    width: 100%;
    height: 2px;
    display: block;
    background-color: gray;
}

.columnWrapper {
    width: calc(100% - 30px);
    font-size: 1rem;
    font-weight: bold;
    margin: 0 auto;
    max-width: 1140px;
    border-top: 1px solid #ddd;
    border-bottom: 2px solid #ddd;
    position: fixed;

    z-index: 99;
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.colorRed{
    color: red;
}

@media (min-width: 768px) {
    .columnWrapper {
        max-width: calc(750px - 30px);
    }
}

@media (min-width: 992px) {
    .columnWrapper {
        max-width: calc(970px - 30px);
    }
}

@media (min-width: 1200px){
    .columnWrapper {
        max-width: calc(1170px - 30px);
    }
}

.columnWrapper > div {
    padding: 1%;
    display: table-cell;
}

.columnWrapper .detailBtn {
    background-color: transparent;
    border-color: transparent;
}

.columnFixed {
    position: fixed;
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: flex-start; /* Safari 6.1+ */
    display: flex;
    justify-content: flex-start;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.inlineWrapper {
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: flex-start; /* Safari 6.1+ */
    display: flex;
    justify-content: flex-start;
}

.diplayNone {
    display: none!important;
}

.visibilityHidden {
    visibility: hidden;
}

.blockWrapper {
    border-radius: 5px;
    background-color: #eee;
    margin-top: 5%;
    padding: 5% 0;
}

.blockWrapperBtn {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.blockWrapperBtn:hover,
.blockWrapperBtn:focus {
    color: #fff;
    background-color: #138496;
    border-color: #117a8b;
}

.btnWrapper {
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: center; /* Safari 6.1+ */
    display: flex;
    justify-content: center;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.btnWrapper .btn {
    max-width: 125px;
}

.btnWrapper .btn:nth-child(1) {
    margin-right: 5%;
}

.input-group-addon {
    font-weight: bold;
}

.inlineColumnName {
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    color: inherit;
    padding: 6px 12px;
}

.titleWrapper {
    font-size: 1rem;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.titleWrapper {
    margin-top: 20px;
}

.titleWrapper h1 {
    margin: 0;
    margin-right: 2%;
}

@media screen and (max-width: 767px) {
    .titleWrapper {
        display: block;
    }

    .titleWrapper .addBtn {
        margin-top: 2%;
    }
}

@media screen and (width: 768px) {
    .titleWrapper {
        margin-top: 2%;
    }
}

@media screen and (min-width: 768px) {
    .navbar-header {
        margin-right: 5%;
    }
}

h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.mainWrapper {
    -webkit-flex: 1 0 auto;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
}

footer {
    padding-top: 2%;
    border-top: 1px solid #eee;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.message {
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
    color: red;
}

.message span {
    display: block;
}

.message ul {
    list-style: none;
}

.signInWrapper {
    float: right;
    min-width: 125px;
    height: 50px;
    text-align: right;
}

.signInWrapper a {
    color: white;
    line-height: 50px;
    height: 100%;
}

.signInWrapper form {
    display: block;
}

@media screen and (max-width: 767px) {
    .signInWrapper {
        font-size: 1rem;
    }
}  

.signOut {
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: flex-end; /* Safari 6.1+ */
    display: flex;
    justify-content: flex-end;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.signOut > div:nth-child(1) {
    margin-right: 5%;
}

@media screen and (max-width: 767px) {
    .signInWrapper {
        width: 100%;
    }
}

@media screen and (width: 320px) {
    .navbar-brand {
        font-size: 15px;
    }
}

/********側邊 Menu*************/

.asideMenu {
    font-size: 0.9rem;
    position: fixed;
    z-index: 2;
    top: 80px;
    right: 20px;
    background-color: rgba(59,59,59,0.7);
    border-radius: 10px;
    color: #fff;
    padding: 15px 0px;
}

.asideMenu a {
    color: #fff;
    padding: 6px 11px 6px 15px;
    background-color: rgba(126,126,126,0.2);
    display: block;
}

.asideMenu a:hover {
    color: orange;
    background: -moz-linear-gradient(left, rgba(142,142,142,1) 40%, rgba(166,166,166,0) 100%);
    background: -webkit-linear-gradient(left, rgba(142,142,142,1) 40%,rgba(166,166,166,0) 100%);
    background: linear-gradient(to right, rgba(142,142,142,1) 40%,rgba(166,166,166,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8e8e8e', endColorstr='#00a6a6a6',GradientType=1 );
}

@media screen and (max-width: 1450px) {
    .asideMenu {
        display: none;
    }
}

/********FooTable**********/
@media screen and (max-width: 768px) {
    .footable-detail-row {
        background-color: white !important;
    }
}

@media screen and (min-width: 769px) {
    .footable-detail-row {
        font-size: 1rem;
    }
}

/*************Form****************/

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 2%;
}

.perfNum:before {
    content: '$';
}

.percent:after {
    content: '%';
}

.disableInput,
.reportBody {
    font-size: 1rem;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
}

.reportBody {
    word-break: break-all;
}

.form-control {
    font-weight: bold;
}

/*************table**************/

#mainTable .footable-header {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.detailWrapper > div {
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: flex-end; /* Safari 6.1+ */
    display: flex;
    justify-content: flex-end;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.footable-details .detailWrapper > div {
    display: block;
}

.footable-details .detailBtn {
    margin-bottom: 10px;
}

table.footable-details .dataTr td {
    width: 85% !important;
}

@media screen and (max-width: 991px) {
    table.footable-details .dataTr td {
        width: 75% !important;
    }
}

.detailBlockWrapper > div {
    display: block;
}

@media screen and (min-width: 768px) {
    .detailBlockWrapper .detailBtn,
    .detailBlockWrapper .dealDone {
        margin-bottom: 1%;
    }
}

.detailItem {
    width: 10%;
}

.detailBtn {
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 4px;
    margin-right: 5%;
    cursor: pointer;
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

th .detailBtn {
    color: inherit;
    background-color: transparent;
    border-color: transparent;
}

@media screen and (max-width: 767px) {
    .detailBtn {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
}

.deleteBtn {
    color: #fff;
    font-size: 1rem;
    background-color: #dc3545;
    border-color: #dc3545;
}

#mainTable th {
    padding: 1%;
    vertical-align: middle;
}

#mainTable .dataTr td {
    word-break: break-word;
}

.table .dataTr td {
    font-size: 1rem;
    padding: 1%;
    vertical-align: middle;
}

#mainTable thead th {
    font-size: 1rem;
}

.searchFormBtn {
    width: 100px;
    height: 34px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    line-height: 34px;
    border-radius: 4px;
    cursor: pointer;
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: center; /* Safari 6.1+ */
    display: flex;
    justify-content: center;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.addBtn {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.searchSubmit {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.searchFormBtn > span {
    margin-right: 5%;
}

.searchFormBtn i {
    font-size: 0.9em;
}

@media screen and (max-width: 767px) {
    .searchFormBtn {
        width: 80px;
        height: 27.2px;
    }
}

@media screen and (width: 320px) {
    .searchFormBtn {
        width: 70px;
    }
}

@media screen and (max-width: 767px) {
    #mainTable {
        margin-top: 0;
    }

    .table > tfoot > tr > td {
        padding: 0;
    }

    li[data-page="prev-limit"],
    li[data-page="next-limit"] {
        display: none;
    }

    #mainTable th {
        padding: 2%;
    }

    #mainTable .dataTr td {
        padding: 2%;
        width: auto;
    }

    .searchFormBtn {
        margin-bottom: 3%;
    }

    .detailWrapper > div {
        display: block;
    }

    .detailBtn {
        margin-bottom: 10px;
    }
}

.tdFontSmall {
    font-size: 0.85em;
}

.tdUserWrapper {
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: center; /* Safari 6.1+ */
    display: flex;
    justify-content: center;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.tdUserWrapper > div {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

@media screen and (min-width: 768px) {
    .tdNewLineWrapper span {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .tdNewLineWrapper span:nth-child(n+3) {
        display: block;
        padding-left: 28px;
    }
}


@media screen and (min-width: 769px) {
    .spanBlockWrapper span {
        display: inline;
    }
}


@media screen and (max-width: 991px) {
    .spanBlockWrapper .footable-toggle {
        float: left;
    }

    .spanBlockWrapper span:not(.footable-toggle) {
        display: block;
        float: right;
        width: calc(100% - 24px);
        word-break: break-word;
    }
}

@media screen and (min-width: 768px) {
    .spanBlockWrapper span:not(.footable-toggle) {
        width: calc(100% - 28px);
    }
} 

/*************table search*************/

.table > thead > tr > .searchTh {
    border-bottom-width: 0;
    border-top-width: 0;
}

.searchForm {
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: space-between; /* Safari 6.1+ */
    display: flex;
    justify-content: space-between;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
}

.searchInputWrapper {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-flex;
    -webkit-justify-content: flex-end;
    display: flex;
    justify-content: flex-end;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

@media screen and (max-width: 767px) {
    .searchForm {
        display: block;
    }
}

.customSearchForm {
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

.customSearchForm input,
.customSearchForm select {
    margin-right: 1%;
}

.customSearchForm input[type=checkbox] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 0.5%;
}

.customSearchForm input[type=checkbox] + label {
    margin-bottom: 0;
    margin-left: 3%;
}

.customSearchForm .inlineWrapper {
    width: 12%;
    -webkit-align-items: center;
    align-items: center;
}

@media screen and (max-width: 991px) {
    #mainTable {
        margin-top: 0;
    }

    .customSearchForm,
    .searchInputWrapper {
        display: block;
        margin-bottom: 2%;
    }

    .customSearchForm *,
    .searchInputWrapper *,
    .searchInputWrapper .form-control,
    .form-inline .form-control {
        width: 100%;
    }

    .customSearchForm input,
    .searchInputWrapper input,
    .customSearchForm select {
        margin-top: 2%;
    }

    .customSearchForm .searchFormBtn,
    .searchInputWrapper .searchFormBtn {
        margin-top: 3%;
    }

    .customSearchForm .inlineWrapper,
    .searchInputWrapper .inlineWrapper {
        margin-top: 2%;
    }

    .customSearchForm input[type=checkbox] + label,
    .searchInputWrapper input[type=checkbox] + label {
        width: 100%;
        margin-left: 0%;
    }

    .customSearchForm .inlineWrapper {
        width: 100%;
    }

    .searchFormBtn i,
    .searchFormBtn span {
        width: auto;
    }
}


@media screen and (width: 768px) {
    #mainTable {
        margin-top: 2%;
    }

    .customSearchForm,
    .searchInputWrapper {
        margin-bottom: 2%;
    }
}

/*table sort*/

.h1Wrapper .inlineWrapper {
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
}

.h1Wrapper .inlineWrapper > div {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-flex;
    -webkit-justify-content: space-between;
    display: flex;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.h1Wrapper + hr {
    width: 100%;
    height: 1px;
    margin-bottom: 10px;
}

.sortWrapper {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-flex;
    -webkit-justify-content: flex-end;
    display: flex;
    justify-content: flex-end;
    -webkit-align-items: center;
    align-items: center;
}

.sortWrapper select {
    width: auto;
    min-width: 80px;
    margin-right: 2%;
    padding: 3px;
}

.sortWrapper #sortDirection {
    min-width: 60px;
}

.sortWrapper div {
    font-weight: bold;
}

@media screen and (min-width: 769px) {
    .sortWrapper select {
        max-width: 300px;
    }

    .sortWrapper + hr {
        margin: 20px 0;
    }
}

@media screen and (max-width: 767px) {
    .h1Wrapper .inlineWrapper > div {
        width: 100%;
        margin-top: 2%;
    }

    .sortWrapper + hr {
        margin: 15px 0;
    }

    .titleWrapper .addBtn {
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media screen and (width: 768px) {
    .sortWrapper select {
        padding: 3px;
    }
}

@media screen and (width: 768px) {
    .sortWrapper {
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;      
    }
}

.alertWrapper {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 5%;
    font-size: 1rem;
}

.alertWrapper ul {
    font-weight: bold;
    list-style: circle;
}

/**********拜訪次數***************/

.visitedHr {
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    height: 1px;
    background-color: #aaa;
}

.visitedTitle {
    width: 90%;
    margin: 0 auto;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: #337ab7;
    padding: 0.5rem;
}

.visitedTitle + .visitedCountWrapper {
    margin-top: 0.5rem;
}

.visitedTitle + .visitedCountWrapper legend {
    border-top-width: 0;
}

.visitedCountWrapper {
    margin-top: 2em;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 2%;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.visitedCountWrapper fieldset {
    width: 100%;
}

.visitedCountWrapper legend {
    border-bottom-width: 0;
    margin-bottom: 0;
}

.visitedCountWrapper legend.inlineColumnName {
    padding-top: 1rem;
}

.visitedCountWrapper .inlineColumnName {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.visitedCountWrapper .formTable {
    margin-top: 0;
}

/********************************/

.hiddenDropdown {
    display: none;
}





