/*
    Created on : Sep 12, 2015, 2:52:03 PM
    Author     : phamtrong204
*/

.ace-custom {

}

body.ace-custom {
}

.ace-custom .main-container {
    height: 100%;
    width: 100%;
    display: flex;
}

.ace-custom .navbar-fixed-top + .main-container {
}

.ace-custom .sidebar.sidebar-fixed {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    margin-left: 0;
}

.ace-custom .sidebar.sidebar-fixed:before {
    display: none;
}

.ace-custom .sidebar-fixed .sidebar-shortcuts {
    min-height: initial;
    overflow: initial;
    border-bottom: 1px solid #bbb;
}

.ace-custom .sidebar-fixed .nav-list {
    flex-grow: 2;
    flex-shrink: 1;
    /*overflow: scroll;*/
    overflow-y: scroll;
    overflow-x: hidden;
}

.ace-custom .sidebar-fixed .sidebar-toggle {
    border-top: 1px solid #bbb;
}

.ace-custom .sidebar .sidebar-toggle:before {
    border-top: 1px solid #ccc;
}

.ace-custom .sidebar-fixed .device-overview-container {

}

.ace-custom .main-container .main-content {
    flex-grow: 2;
    margin-left: 0px;
    position: relative;
    min-height: initial;
    height: calc(100% - 16px);
}

.ace-custom .side-bar-absolute {
    bottom: 11px;
    position: fixed;
    right: 0px;
}

.ace-custom a.btn {

}

.ace-custom .btn.btn-primary, .ace-custom .btn-primary,
.ace-custom .btn.btn-primary:focus,
.ace-custom .btn-default.btn-primary:focus {
    background-color: #438EB9 !important;
    border-color: #438EB9;
}

.ace-custom .btn-success,
.ace-custom .btn-success:focus {
    background-color: #75B118 !important;
    border-color: #75B118;
}

.ace-custom .btn-danger,
.ace-custom .btn-danger:focus {
    background-color: #F16A6A !important;
    border-color: #F16A6A;
}

.ace-custom .message-loading-overlay {
    z-index: 9998;
}

.ace-custom .message-loading-overlay.customer-overlay {
    position: fixed;
}

.ace-custom input[type=checkbox].ace + .lbl,
.ace-custom input[type=radio].ace + .lbl {
    line-height: 34px;
}

.ace-custom input[type=date],
.ace-custom input[type=datetime-local],
.ace-custom input[type=month],
.ace-custom input[type=time] {
    line-height: 100%;
}

input[type=color], input[type=date], input[type=datetime-local],
input[type=datetime], input[type=email], input[type=month],
input[type=datepicker], input[type=datetimepicker],
input[type=number], input[type=password], input[type=search],
input[type=tel], input[type=text], input[type=time],
input[type=url], input[type=week], textarea, .form-group textarea {
    border: 1px solid #AAA;
    padding: 2px 4px 3px;
    color: #484848;
}

input[type=color]:hover, input[type=date]:hover,
input[type=datetime-local]:hover, input[type=datetime]:hover,
input[type=datepicker]:hover, input[type=datetimepicker]:hover,
input[type=email]:hover, input[type=month]:hover,
input[type=number]:hover, input[type=password]:hover,
input[type=search]:hover, input[type=tel]:hover,
input[type=text]:hover, input[type=time]:hover,
input[type=url]:hover, input[type=week]:hover,
textarea:hover {
    border-color: #99F;
}

.ace-custom .btn-sm,
.ace-custom .btn-group-sm > .btn {
    padding: 5.5px;
}

@media (min-width: 768px) {
    .ace-custom .form-horizontal .control-label {
        padding-top: 3px;
    }
}

.ace-custom .ace-nav .nav-user-photo {
    width: 30px;
    position: relative;
    top: 4px;
}

.ace-custom .user-info {

}

.datepicker {
    z-index: 1151 !important;
}

.input-group-addon,
.form-control, select {
    border-color: #AAA;
}

.tag-input-style + .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
    line-height: 29px;
}

.input-icon > .ace-icon {
    line-height: 32px;
}

input + .input-group-btn > .btn.btn-sm {
    padding-bottom: 5px;
}

.sidebar .sidebar-toggle {
}

.chosen-container-single .chosen-single abbr {
    top: 8px;
}

.btn-group + .btn-sm, .btn-group > .btn-sm {
    border-width: 1px;
}

.btn-group-xs > .btn, .btn-xs {
    font-size: 11px;
    padding: 1px 2px 1px 3px;
}

.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
    padding: 5px;
    vertical-align: middle;
}

.no-wrap {
    white-space: nowrap;
}

.form-group {
    margin-bottom: 7px;
}

.no-bacground {
    background: none;
}

.form-actions.mini {
    padding: 8px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.table > thead > tr > th:last-child {
    border-right-color: #ddd;
}

.message-loading-overlay.customer-overlay {
    background-color: rgba(136, 136, 136, 0.41);
    cursor: progress;
}

.message-loading-overlay.customer-overlay .big-spin {
    font-size: 64px;
    top: 50%;
    left: 50%;
    margin-top: -42px;
    margin-left: -32px;
    height: 64px;
    width: 64px;
}

.btn-group-sm > .btn, .btn-sm {
    border-width: 0px;
}

.btn {
    border-width: 0px;
}

.modal-header .close {
    margin-top: -5px;
}

.dataTables_length .changer_number_record {
    width: 50px;
    padding: 2px 5px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.margin-top-5 {
    margin-top: 5px;
}

.margin-bottom-5 {
    margin-bottom: 5px;
}

.dataTables_paginate {
    width: 100%;
}

.dataTables_wrapper .row:first-child {
    padding-top: 8px;
    padding-bottom: 3px;
}

.dataTables_wrapper .row:last-child {
    padding-top: 8px;
    padding-bottom: 4px;
}

.dataTable > thead > tr > th[class*=sort] {
    position: relative;
}

.dataTable > thead > tr > th[class*=sort]:after {
    position: absolute;
    right: 4px;
    top: 9px;
    float: none;
}

.dataTable > thead > tr > th[class*=sort]:after {
    position: absolute;
    right: 4px;
    top: 50%;
    float: none;
    margin-top: -6px;
}

.dataTable > thead > tr > th.sorting_desc:after {
    margin-top: -9px;
}

.dataTable > thead > tr > th.sorting_asc:after {
    margin-top: -3px;
}

.dataTables_wrapper .dataTable-scrollbar-wrap {
    overflow: auto;
    width: 100%;
    max-width: calc(100vw - 20px);
}

.dataTables_wrapper thead:first-child tr th.min-width {
    width: 1%;
}

.dataTables_wrapper thead:first-child tr:first-child th:first-child:not(.normal-width) {
    width: 1%;
}

.dataTables_wrapper thead:first-child tr:first-child th:first-child:not(.normal-padding) {
    padding-right: 16px;
}

.dataTables_wrapper tr td.more-padding {
    padding-left: 10px;
    padding-right: 10px;
}

.dataTables_wrapper thead:first-child tr:first-child th[field_name='custom_check'],
.dataTables_wrapper thead:first-child tr:first-child th[field_name='custom_action'] {
    cursor: default;
}

.dataTables_wrapper thead:first-child tr:first-child th[field_name='custom_check']:after,
.dataTables_wrapper thead:first-child tr:first-child th[field_name='custom_action']:after {
    content: "";
}

.dataTables_wrapper thead:first-child tr:first-child th[field_name='custom_action'] {
    width: 1%;
}

.dataTables_wrapper thead:first-child tr:first-child th[field_name='custom_check'] {
    width: 1%;
    padding: 9px 5px;
}

.dataTables_wrapper .action-buttons {
    white-space: nowrap;
}

.dataTables_wrapper .no_record {
    padding: 10px;
    text-align: center;
    font-size: 20px;
    margin: 0px;
}

.dataTable > thead > tr > th.disable_sort {
    cursor: default;
}

.dataTable > thead > tr > th.disable_sort:after {
    content: "";
}

.dataTable > thead > tr > th.disable_sort:hover {
    color: #707070;
}

.widget-body .dataTables_wrapper .table thead:first-child tr {
    background: repeat-x #F2F2F2;
    background-image: -webkit-linear-gradient(top, #f8f8f8 0, #ececec 100%);
    background-image: -o-linear-gradient(top, #f8f8f8 0, #ececec 100%);
    background-image: linear-gradient(to bottom, #f8f8f8 0, #ececec 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff8f8f8', endColorstr='#ffececec', GradientType=0);
}

.widget-body .dataTables_wrapper .table tr th:last-child,
.widget-body .dataTables_wrapper .table tr td:last-child {
    border-right-color: transparent;
}

.widget-body .dataTables_wrapper .table tr th:first-child,
.widget-body .dataTables_wrapper .table tr td:first-child {
    border-left-color: transparent;
}

.btn.btn-app.ace-settings-btn {
    margin-top: 125px;
}

.padding-10 {
    padding: 10px;
}

.padding-right-5 {
    padding-right: 10px;
}

.m-r-10 {
    margin-right: 10px;
}

.float-action {
    position: fixed;
}

.float-action.float-action-top-right {
    top: 1rem;
    right: 1rem;
}

@media only screen and (max-width: 479px) {

    .navbar .navbar-brand {
        display: none;
    }

    .navbar:not(.navbar-collapse) .navbar-header.pull-right {
        float: right !important;
        display: block;
    }

    .navbar:not(.navbar-collapse) .navbar-header.pull-left {
        float: left !important;
        display: block;
    }
}

.text-error {
    color: #d16e6c;
}

.ace-file-input input[type=file]:focus + .ace-file-container {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #f59942;
}

.form-group .file_preview {
    max-width: 100%;
    max-height: 100px;
}

.soft_hide {
    display: none;
}

@media (max-width: 479px) {
    .navbar-fixed-top + .main-container {
        padding-top: 45px;
    }
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: block;
    }
}

@media (min-width: 992px) {
    .navbar-toggle {
        display: none;
    }
}

@media (max-width: 540px) and (min-width: 480px), (max-width: 360px) {
    .navbar:not(.navbar-collapse) .navbar-buttons .user-menu {
        padding-top: 0px !important;
    }
}

@media only screen and (max-width: 991px) {
    .sidebar.responsive {
        left: 320px;
        margin-left: -320px;
        -moz-transform: translateX(-330px);
        -webkit-transform: translateX(-330px);
        -o-transform: translateX(-330px);
        -ms-transform: translateX(-330px);
        transform: translateX(-330px);
    }

    .navbar-fixed-top + .main-container > .menu-toggler + .responsive {
        left: 320px;
        margin-left: -320px;
    }
}

.sidebar.menu-min,
.sidebar.menu-min.compact,
.sidebar.menu-min.navbar-collapse {

}

.sidebar {
    width: 320px;
}

.sidebar.menu-min .nav-list > li > a > .menu-text {
    width: 320px;
    padding-left: 5px;
}

.sidebar + .main-content {
    margin-left: 320px;
}

.sidebar ~ .footer .footer-inner {
    left: 320px;
}

.footer .footer-inner .footer-content {
    bottom: 0px;
    line-height: 22px;
    padding: 0px;
    border-top: 3px double #E5E5E5;
}

@media (max-width: 991px) {
    .sidebar ~ .footer .footer-inner,
    .footer .footer-inner,
    .sidebar ~ .footer .footer-inner,
    .sidebar.compact ~ .footer .footer-inner,
    .sidebar.menu-min ~ .footer .footer-inner {
        left: 0;
    }

    .sidebar.responsive + .main-content {
        margin-left: -320px !important;
        margin-right: 0 !important;
    }
}

.footer {
    padding: 0px;
    background: #fff !important;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    width: auto;
}

.navbar {
    box-shadow: 0px 0px 3px 1px #999;
}

@media (max-width: 479px) {
    .navbar-fixed-top + .main-container {
        padding-top: 45px;
    }
}

@media (max-width: 479px) {
    body.mob-safari .navbar-fixed-top + .main-container .sidebar.responsive {
        top: 45px;
    }
}

.ace-custom .datepicker-dropdown.datepicker-orient-bottom:before {
    top: -7px;
}

.ace-custom .datepicker-dropdown.datepicker-orient-bottom:after {
    top: -6px;
}

.ace-custom .main-content-inner {
    position: relative;
    float: none;
    height: 100%;
    width: 100%;
}

.ace-custom #map-canvas-container {
    height: 100%;
    width: 100%;
    position: relative;
}

@media print {
    html {
        /*overflow: hidden;*/
    }

    body.ace-custom {
        min-height: initial;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid;
        border: 1px solid #999;
    }

    .sidebar-scroll .sidebar-toggle {
        background: #fff !important;
    }

    .navbar {
        display: block;
        border-bottom: 1px solid #999;
    }

    a[href]:after {
        content: "";
    }

    .main-container {
        border-bottom: 1px solid #999;
    }

    .sidebar ~ .footer .footer-inner {
        left: 320px;
    }

    .device_overlay span.label {
        background-color: #fff !important;
    }

    .sidebar.responsive + .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-brand.hidden-xs {
        display: block !important;
    }

    .navbar-toggle {
        display: none;
    }
}

.form-group textarea{
    resize: vertical;
}
