/*
 * It is advised not to edit the smartadmin_production.css
 * as this will override any changes you make in the
 * later versions of this theme.
 *
 * We advise that you use use this CSS to override
 * SmartAdmin styles.
 *
 * Rename the stylesheet to whatever your liking so it will stay
 * unique to you with each update of SmartAdmin.
 */

/*
 * INDEX
 *
 * - HTML
 * - BODY
 * - CUSTOM STYLES
 */
/*dataTable 相關修正*/
.even.active, .odd.active
{
    -webkit-filter: brightness(0.8) sepia(1);;
}
table.dataTable th
{
    white-space: nowrap;
}
.table-striped>tbody>tr.odd {
    background-color: #f9f9f9;
}
.table-striped>tbody>tr.even {
    background-color: #fff;
}
.table-hover>tbody>tr:hover {
    background-color: #ecf3f8 !important;
}
.select2-container {
    margin: 0;
    position: relative;
    display: table;
    zoom: 1;
    vertical-align: middle;
    table-layout: fixed;
}
.smart-form .state-error a, .smart-form .state-error .select2-choices  {
    background: #fff0f0;
    border-color: #A90329;
}
.smart-form .state-success a, .smart-form .state-success .select2-choices {
    background: #f0fff0;
    border-color: #7DC27D;
}
.select2-choices .select2-search-choice a.select2-search-choice-close {
    background: transparent;
    box-sizing: border-box;
}
.ui-datepicker {
    z-index:9999 !important;
}
/*用來使用select2的時候，隱藏偷跑出來的字*/
.select2-hidden-accessible {
    display: none !important;
    visibility: hidden !important;
}

/*attr tip*/
.attr-tip:hover:after {
    content:attr(tip);
    position: absolute;
    display: inline;
    padding: 6px 10px;
    margin-left: 10px;
    margin-top: -7px;
    max-width: 400px;
    background: #111;
    background: rgba(0,0,0,.8);
    border-radius: 5px;
    color: #FFF;
    font-size: 14px;
    font-weight: normal;
    text-shadow: 0 1px 0 #000;
}


/*loading_ball*/
.loading_ball {
    left: 0;
    width: 100%;
    height: 100%;
    background: #16171d;
    opacity: 0.6;
    position: fixed;
    z-index: 99999;
}

.loader {
  position: absolute;
  top: calc(50% - 32px);
  left: calc(50% - 32px);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  perspective: 800px;
}

.inner {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.inner.one {
  left: 0%;
  top: 0%;
  animation: rotate-one 1s linear infinite;
  border-bottom: 3px solid #EFEFFA;
}

.inner.two {
  right: 0%;
  top: 0%;
  animation: rotate-two 1s linear infinite;
  border-right: 3px solid #EFEFFA;
}

.inner.three {
  right: 0%;
  bottom: 0%;
  animation: rotate-three 1s linear infinite;
  border-top: 3px solid #EFEFFA;
}

@keyframes rotate-one {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes rotate-two {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}

@keyframes rotate-three {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}

/*修正select2多選鎖定樣式*/
.select2-locked {
    padding: 1px 5px!important;
}

/*修正select2多選input樣式*/
.select2-container-multi .select2-choices .select2-search-field input {
    /* padding:5px; */
    padding: 6px 12px;
    margin: 1px 0;
    font-family: sans-serif;
    font-size: 100%;
    color: #666;
    outline: 0;
    border: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: transparent!important
}
.input-group-addon.input-focus {
    border-color: #0091d9;
    background-color: #72a0ce;
    color: #fff
}

/*修正dropzone預覽圖片跑位*/
.dropzone .dz-preview .dz-details img,.dropzone-previews .dz-preview .dz-details img {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 100px;
    height: 100px
}

/*修正樣板提供表單樣式*/
.smart-form .col-7 {
    width: 58.33%
}
.smart-form .col-11 {
    width: 91.66%
}
.smart-form .col-12 {
    width: 100%
}
/*強調disabled底色要變灰*/
.smart-form [disabled],.smart-form [readonly],fieldset[disabled] {
    cursor: not-allowed;
    background-color: #F4F4F4 !important;
    opacity: 1;
    border: 1px solid #ddd !important;
}

/*修正timeline時間線消失問題*/
.smart-timeline-list:after {
    display: none;
}
.smart-timeline-list li:after {
    content: " ";
    background-color: #eee;
    width: 2px;
    display: block;
    z-index: 1;
    position: absolute;
    left: 95px;
    top: 0;
    height: 100%;
}

/*調整dialog overflow設定*/
.ui-dialog {
    overflow:inherit;
}

/*調整表單手風琴底色*/
.ui-accordion .ui-accordion-header {
    background-color: rgb(77, 80, 77);
    color: #fff;
}
/*調整表單手風琴超出顯示*/
.ui-accordion .ui-accordion-content {
    overflow: inherit;
}

/*Start LiveChat的style*/
.clearfix {
    display: table;
    overflow: hidden;
}
.clearfix:before {
    content: " ";
    display: block;
}

.font-size-small {
    font-size: 0.65em;
}

.chat-wrapper {
    min-width: 400px;
    width: 100%;
    display: table;
    overflow: hidden;
}
.chat-wrapper:before {
    content: " ";
    display: block;
}
.chat-wrapper .chat-content {
    background-color: #fff;
}
.chat-wrapper .chat-image {
    float: left;
    -webkit-border-radius: 50%;
    -ms-border-radius: 50%;
    -moz-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
}
.chat-wrapper .chat-image.chat-image-default {
    width: 60px;
    height: 60px;
}
.chat-wrapper .chat-message {
    margin-bottom: 20px;
    width: 100%;
    display: table;
    overflow: hidden;
}
.chat-wrapper .chat-message:before {
    content: " ";
    display: block;
}
.chat-wrapper .chat-message:last-of-type {
    margin-bottom: 0;
}
.chat-wrapper .chat-message .chat-message-wrapper {
    max-width: 70%;
    display: table;
    margin: 0 20px;
    padding-top: 10px;
    position: relative;
}
.chat-wrapper .chat-message .chat-message-wrapper:before {
    content: " ";
    display: block;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    top: 20px;
    position: absolute;
    z-index: 2;
}
.chat-wrapper .chat-message .chat-message-wrapper p {
    padding: 10px 20px;
    color: #fff;
    border-top: 1px solid;
}
.chat-wrapper .chat-message .chat-message-wrapper p:first-of-type {
    border-top: 0 !important;
}
.chat-wrapper .chat-message.chat-message-recipient .chat-message-wrapper,
.chat-wrapper .chat-message.chat-message-recipient .chat-message-content {
    float: left;
}
.chat-wrapper .chat-message.chat-message-recipient .chat-message-wrapper:before {
    left: -20px;
    border-right-color: #91D98A;
}
.chat-wrapper .chat-message.chat-message-recipient p {
    background-color: #91D98A;
    border-top-color: #7dc576;
}
.chat-wrapper .chat-message.chat-message-sender .chat-message-wrapper,
.chat-wrapper .chat-message.chat-message-sender .chat-message-content {
    float: right;
}
.chat-wrapper .chat-message.chat-message-sender .chat-message-wrapper:before {
    right: -20px;
    border-left-color: #8AC0D9;
}
.chat-wrapper .chat-message.chat-message-sender p {
    background: #8AC0D9;
    border-top-color: #76acc5;
}
.chat-wrapper .chat-message.chat-message-sender img {
    float: right;
}
.chat-wrapper .chat-message .chat-message-content {
    display: table;
    overflow: hidden;
    -webkit-border-radius: 4px;
    -ms-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}
.chat-wrapper .chat-message .chat-message-content:before {
    content: " ";
    display: block;
}
.chat-wrapper .chat-message .chat-details {
    clear: both;
    width: 100%;
    display: table;
    overflow: hidden;
}
.chat-wrapper .chat-message .chat-details:before {
    content: " ";
    display: block;
}
.chat-wrapper .chat-message .chat-details span {
    margin-right: 4px;
    color: #bbb;
}
/*End LiveChat的style*/

/*Start 處理select2的取消按鈕不見的問題*/
.select2-search-choice-close:before{
    color:#ccc;
    content:"\f057";
    right: 5px;
}
.select2-container .select2-choice abbr{
    display:none;
    width:12px;
    height:12px;
    position:absolute;
    right:28px;
    top:10px;
    font-size:1px;
    text-decoration:none;
    border:0;
    cursor:pointer;
    outline:0
}
/*End 處理select2的取消按鈕不見的問題*/

/*Start Gird全域搜尋功能*/
.dataTables_filter span:hover {
    color: #666;
    background-color: #FFF;
    cursor:pointer;
}
.dataTables_filter span:active {
    color: #666;
    background-color: #ccc;
    box-shadow:1.5px 1.5px 0px 0px rgba(20%,20%,40%,0.5) inset;
    cursor:pointer;
}
/*End Gird全域搜尋功能*/

/*Start Dialog右上角的fullscreen功能 */
.ui-dialog .ui-dialog-titlebar-fullscreen i:hover {
    color: #333;
    cursor:pointer;
}
.ui-dialog-titlebar-fullscreen-i {
    font-size: 1px;
    color: #ccc;
}
.ui-dialog .ui-dialog-titlebar-fullscreen {
    position: absolute;
    right: 1.5em;
    top: 50%;
    width: 20px;
    margin: -20px 0 0 0;
    padding: 1px;
    height: 20px;
    border:none;
    box-shadow: none;
    background: none repeat scroll 0 0 transparent;
}
/*End Dialog右上角的fullscreen功能 */

/*Start 頭像相關*/
.login-info img {
    width: 25px;
    max-height: 25px;
}
.profile-pic img {
    max-width: 120px;
    max-height: 120px;
    background-color: white;
}
.profile-pic img:hover{
    cursor: pointer;
    /*opacity: 0.8;*/
    -webkit-filter: sepia(0.6);
}
.jOrgChart div.tooltip{
    border-top: 0px;
}
.jOrgChart div.tooltip img, img#userPic{
    max-width: 120px;
    max-height: 120px;
}
/*End 頭像相關*/

/*Start 產品背景色*/
.bg-yahoo {
    background-color: #7300FF;
}
.bg-google {
    background-color: #0057C6;
}
.bg-facebook {
    background-color: #3B5998;
}
.bg-native {
    background-color: #8A64BB;;
}
.bg-soeasy {
    background-color: #AECF04;
}
.bg-fortyTwo {
    background-color: #FE9600;
}
/*End 產品背景色*/

/*Start 閃爍功能*/
.blink {
    animation-duration: 3s;
    animation-name: blink;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}
@keyframes blink {
    0% {
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/*End 閃爍功能*/


/*div.marquee,
div.fade-left,
div.fade-right,
span.marquee-message {
    margin: 0;
    padding: 0;
}*/

div.marquee {
    width: 100%;
    background: #333;
    height: 40px;
    position: absolute;
    overflow: hidden;
/*    -moz-box-shadow:    1px 1px 1px #333;
    -webkit-box-shadow: 1px 1px 1px #333;
    box-shadow:         1px 1px 1px #333;*/
}

span.marquee-message {
    color: #ffffff;
    font-family: 'Telex';
    white-space: nowrap;
    margin: 0 0 0 0;
    display: inline-block;
}

div.fade-left {
    background: -moz-linear-gradient( left, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: -webkit-gradient( linear, left top, right top, color-stop(12%,rgba(51, 51, 51, 1)), color-stop(100%,rgba(0,0,0,0)) );
    background: -webkit-linear-gradient( left, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: -o-linear-gradient( left, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: -ms-linear-gradient( left, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: linear-gradient( to right, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    position: absolute;
    left: 0;
    height: 40px;
    width: 10%;
}

div.fade-right {
    background: -moz-linear-gradient( right, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: -webkit-gradient( linear, right top, right top, color-stop(12%,rgba(51, 51, 51, 1)), color-stop(100%,rgba(0,0,0,0)) );
    background: -webkit-linear-gradient( right, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: -o-linear-gradient( right, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: -ms-linear-gradient( right, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    background: linear-gradient( to left, rgba(51, 51, 51, 1) 12%, rgba(0,0,0,0) 100% );
    position: absolute;
    right: 0;
    height: 40px;
    width: 10%;
}