body {
    background-image: url(../image/bg_blue.png);
}

body::before {
    content: " ";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(35, 90, 136,0.7);
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

a.fancybox {
    display: inline-block;
}

.skin-blue .wrapper {
    background: transparent;
}

.wrapper .content-wrapper {
    background: transparent;
}

.wrapper .content-wrapper .content {
    padding-top: 0;
    padding-bottom: 0;
}

.col-100-vh {
    height: 100vh;
}

.unstyled-list {
    list-style-type: none;
}

.crm-col-center {
    padding-left: 0;
    padding-right: 0;
    border-left: 2px solid white;
    border-right: 2px solid white;
}

@media (min-width: 992px){
    .col-xs-12.col-percent-20 {
        width: 20%;
    }
    
    .col-xs-12.col-percent-40 {
        width: 40%;
    }
}

@media (max-width: 991px){
    .crm-mobile-left,
    .crm-mobile-right {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        float: none;
        z-index: 1000;
        background: #265d8b;
        transition: .5s;
        padding-left: 0;
        padding-right: 0;
    }

    .crm-mobile-left form {
        padding-bottom: 30px;
        background: #265d8b;
        padding-left: 15px;
        padding-right: 15px;
    }

    .crm-mobile-right #crm-view {
        padding-bottom: 50px;
        background: #265d8b;
        padding-left: 15px;
        padding-right: 15px;
    }

    .crm-mobile-left {
        transform: translate(-100%, 0);
    }

    .crm-mobile-left.active,
    .crm-mobile-right.active {
        transform: translate(0, 0);
    }

    .crm-mobile-right {
        transform: translate(100%, 0);
    }

    .crm-list-body {
        padding-bottom: 30px;
    }

    .footer-menu {
        display: table !important;
    }
}

.crm-index {
    color: white;
}

.crm-list {
    height: 100vh;
    position: relative;
    display: flex;
    flex-flow: column;
}

.crm-list-header {
    /** scroller width */
    margin-right: 10px;
}

.crm-list-header .row{
    padding: 15px;
}

@media (min-width: 992px){
    .crm-list-header .header-1 .item-number, .crm-list-header .header-1 .global-search-btn{
        display: inline-block;
    }

    .crm-list-header .header-1 .item-number{
        margin-right: 5%;
        width: 35%;
    }

    .crm-list-header .header-1 .global-search-btn{
        width: 55%;
    }
}

.crm-list-header input{
    color: white;
    border-radius: 0 10px 10px 0;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
}

.crm-list-header .global-search-btn i{
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 10px 0 0 10px;
}

.global-search-btn input:focus{
    background-color:rgba(255, 255, 255, 0.4);
}

.crm-list-header i{
    padding: 7px 10px;
}

.crm-list-header input::-webkit-input-placeholder{
    color: #fafbfc;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.01em;
}

.crm-list-header .global-search-btn input, i{
    display: inline-block;
}

.crm-list-header .global-search-btn input{
    width: 80%;
}

/* Checkbox style */
/* Switch 1 Specific Styles */
input[type="checkbox"].switch_1{
    font-size: 30px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 30px;
    height: 10px;
    background: rgba(34, 31, 31, 0.26);
    border-radius: 3em;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    margin-right: 5px;
}

input[type="checkbox"].switch_1:checked{
    background: rgba(127, 202, 195, 0.5);
}

input[type="checkbox"].switch_1:after{
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    -webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3);
    box-shadow: 0 0 .25em rgba(0,0,0,.3);
    -webkit-transform: scale(.8);
    transform: scale(.8);
    left: 0;
    bottom: -5px;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

input[type="checkbox"].switch_1:checked:after{
    left: calc(100% - 16px);
    background: #80cbc4;
}

input[type="checkbox"].switch_red:checked{
    background: rgba(115, 7, 7, 0.5);
}
input[type="checkbox"].switch_red:checked:after{
    background: #730707;
}

/** CRM LIST **/
.crm-list-header-labels {
    padding: 5px 10px 5px 8px;
    display: table;
    width: 100%;
}

.crm-list-header-labels div {
    display: table-cell;
    width: 25%;
    cursor: pointer;
}

.crm-list-body {
    overflow: auto;
    padding: 0 5px;
    flex: 1 1 auto;
}

.btn-crm {
    border-radius: 2px;
}

.btn-crm-primary,
.btn-crm-primary:focus {
    color: white;
    background-color: #0c4b4f;
    border-color: #0c4b4f;
}

.btn-crm-primary:hover,
.btn-crm-primary:active,
.btn-crm-primary.hover {
    background-color: #136469;
    color: white;
}

.btn-crm-warning,
.btn-crm-warning:focus {
    color: white;
    background-color: #bb964a;
    border-color: #bb964a;
}

.btn-crm-warning:hover,
.btn-crm-warning:active,
.btn-crm-warning.hover {
    background-color: #b18c40;
    color: white;
}

.btn-crm-white,
.btn-crm-white:focus {
    color: #0c4b4f;
    background-color: white;
    border-color: white;
}

.btn-crm-white:hover,
.btn-crm-white:active,
.btn-crm-white.hover {
    background-color: #e8e8e8;
    color: #0c4b4f;
}

.btn-crm-default,
.btn-crm-default:focus {
    color: white;
    background-color: #a9a1a0;
    border-color: #a9a1a0;
}

.btn-crm-default:hover,
.btn-crm-default:active,
.btn-crm-default.hover {
    background-color: #8c8c8c;
    color: white;
}

.btn-crm-danger,
.btn-crm-danger:focus{
    color: white;
    background-color: #730707;
    border-color: #730707;
}

.btn-crm-danger:hover,
.btn-crm-danger:active,
.btn-crm-danger.hover{
    background-color: #730707;
    color: white;
}

.btn-large {
    padding: 10px;
    font-weight: bold;
    font-size: 18px
}

.crm-filter .btn {
    margin-bottom: 15px;
}

.crm-item {
    margin-bottom: 10px;
    border: 3px solid white;
    background: #235a88;
    min-height: 10%;
    background: #e9fffd;
    color: black;
}

.crm-item:hover {
    cursor: pointer;
}

.crm-item.active {
    border: 3px solid #e2a434;
}

.crm-item-header {
    padding: 5px;
    display: table;
    width: 100%;
    background: #d0e5f6;
}

.crm-item-header div {
    display: table-cell;
    width: 25%;
    vertical-align: top;
}

.crm-item-header div:first-of-type {
    font-weight: bold;
    font-size: 16px;
}

.crm-item-body {
    padding: 10px 15px;
}

.crm-item-comment > div {
    display: table;
    width: 100%;
}

.crm-item-comment > div > div {
    display: table-cell;
    vertical-align: top;
}

.crm-item-comment .crm-item-warning {
    width: 1%;
    padding-left: 10px;
}

.crm-item-comment .crm-item-warning i {
    font-size: 28px;
    color: #e2a434;
}

.crm-item-comment p {
    margin-bottom: 0;
}
.crm-item-comment a {
    color: grey;
    text-decoration: underline;
}

.crm-filter .btn {
    margin-bottom: 15px;
}

.filter-collapse {
    padding-bottom: 10px;
}

.legend h4,
.change-collapse .change-header,
.filter-collapse .filter-header {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.legend h4 i,
.change-collapse .change-header i,
.filter-collapse .filter-header i {
    transform: rotate(0);
    transition: .3s all;
    margin-right: 5px;
    color: #80CBC4;
    font-size: 25px;
    line-height: 20px;
    position: relative;
    top: 2px;
}

.legend.visible h4 i,
.change-collapse.visible .change-header i,
.filter-collapse.visible .filter-header i {
    transform: rotate(90deg);
}


.legend ul,
.change-collapse .change-body,
.filter-collapse .filter-body {
    display: none;
    padding-left: 15px;
}

.change-collapse {
    padding-top: 10px;
}

.change-collapse .change-header {
    background: white;
    color: #235a88;
    padding: 10px 15px;
    border-radius: 2px;
}

.change-collapse .change-header i {
    color: #0c4b4f;
}

.change-collapse .change-body {
    padding-top: 10px;
}

/** Edit note, Advanced search **/
.edit-note-box, #advanced-search{
    background-color: transparent;
    color: white;
    border-top: none;
    box-shadow: none;
    padding-top: 50px;
}

.edit-note-box .form-group{
    margin-bottom: 15px;
}
.form-group.required label {
    color: #E9FFFD;
}
.form-group.has-success label {
    color: #E9FFFD;
}

.edit-note-box .no-margin-bottom .form-group{
    margin-bottom: 0;
}

#advanced-search .form-control{
    font-size: 16px;
    line-height: 24px;
}

#advanced-search .form-group{
    margin-bottom: 10px;
}

.crm-modify .control-label,
.crm-filter .control-label,
.edit-note-box .control-label,
#advanced-search .control-label{
    color: #E9FFFD;
    font-size: 16px;
    line-height: 24px;
}

.crm-modify input,
.crm-modify select,
.crm-filter input,
.crm-filter select,
.edit-note-box input:not([type="checkbox"]):not([type="radio"]),
.edit-note-box select,
#advanced-search input[type="text"],
#advanced-search select{
    background-color: transparent;
    color: #E9FFFD;
    border-bottom: 2px solid #E9FFFD;
    border-top: none;
    border-right: none;
    border-left: none;
    width: 100%;
    font-size: 16px;
    line-height: 24px;
}

#advanced-search input[type="search"]{
    border: none;
    width: 100% !important;
}

#advanced-search .select2-container--krajee .select2-selection--multiple .select2-search--inline .select2-search__field{
    min-width: 185px;
}

.crm-modify select:focus,
.crm-filter select:focus,
.edit-note-box select:focus,
#advanced-search select:focus{
    background-color: transparent;
}

.crm-modify option,
.crm-filter option,
.edit-note-box option,
#advanced-search option{
    background-color: #0d5681;
    font-size: 16px;
    line-height: 24px;
}

.crm-modify select::-webkit-input-placeholder,
.crm-filter select::-webkit-input-placeholder,
.edit-note-box select::-webkit-input-placeholder,
#advanced-search select::-webkit-input-placeholder{
    font-size: 16px;
    line-height: 24px;
}

.crm-modify .select2-container .select2-selection,
.crm-filter .select2-container .select2-selection,
.edit-note-box .select2-container .select2-selection,
#advanced-search .select2-container .select2-selection{
    background-color: transparent;
    color: #E9FFFD;
    border-bottom: 2px solid #E9FFFD;
    border-top: none;
    border-right: none;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
}
.edit-note-box .select2-container .select2-selection input{
    border-bottom: 0;
}

.crm-modify .select2-container .select2-selection__rendered,
.crm-filter .select2-container .select2-selection__rendered,
.edit-note-box .select2-container .select2-selection__rendered,
#advanced-search .select2-container .select2-selection__rendered{
    background-color: transparent;
    color: #E9FFFD;
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.crm-modify .select2-container .select2-selection .select2-search__field::-webkit-input-placeholder,
.crm-modify .select2-container .select2-selection .select2-selection__placeholder,
.crm-modify input::-webkit-input-placeholder,
.crm-filter .select2-container .select2-selection .select2-search__field::-webkit-input-placeholder,
.crm-filter .select2-container .select2-selection .select2-selection__placeholder,
.crm-filter input::-webkit-input-placeholder,
.edit-note-box .select2-container .select2-selection .select2-search__field::-webkit-input-placeholder,
.edit-note-box .select2-container .select2-selection .select2-selection__placeholder,
.edit-note-box input::-webkit-input-placeholder,
#advanced-search .select2-container .select2-selection .select2-search__field::-webkit-input-placeholder,
#advanced-search .select2-container .select2-selection .select2-selection__placeholder,
#advanced-search input::-webkit-input-placeholder{
    color: #E9FFFD;
    font-size: 16px;
    line-height: 24px;
}

.crm-modify .select2-container .select2-selection__arrow,
.crm-filter .select2-container .select2-selection__arrow,
.edit-note-box .select2-container .select2-selection__arrow,
#advanced-search .select2-container .select2-selection__arrow{
    border-left: none;
}

.crm-modify .select2-container .select2-selection__arrow b,
.crm-filter .select2-container .select2-selection__arrow b,
.edit-note-box .select2-container .select2-selection__arrow b,
#advanced-search .select2-container .select2-selection__arrow b{
    border-color: #80CBC4 transparent transparent transparent;
    border-width: 10px 6px 0 6px;
    top: 30%;
    left: 30%;
}

.edit-note-box .box-footer,
#advanced-search .box-footer{
    background-color: transparent;
    border: none;
}

.edit-note-box .btn-crm,
#advanced-search .btn-crm{
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    padding: 6px 25px;
}

.edit-note-box .form-group textarea.form-control,
#advanced-search .form-group textarea.form-control{
    border-radius: 15px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    background-color: #fefefe;
    padding: 20px;
}

/** VIEW **/
.crm-view{
    padding: 15px;
}

.crm-view-header i {
    font-size: 20px;
}

.crm-view-header .crm-view-field {
    font-size: 18px;
}

.crm-view-field{
    font-size: 14px;
    line-height: 30px;
    margin-bottom: 10px;
}

.crm-view-field i{
    margin-right: 10px;
    font-size: 20px;
    text-align: center;
    width: 20px;
}

.crm-view .crm-poster-div{
    width: 100%;
}

.crm-invisible-poster-div{
    display: none;
}

.crm-view .crm-poster-div img{
    margin: auto;
}

.crm-view .crm-view-body{
    background: #225988;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    border-radius: 15px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.crm-view .crm-view-comments {
    background: #225988;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    border-radius: 15px;
    padding: 20px;
    max-height: 440px;
    overflow-y: auto;
    margin-top: 15px;
}

.crm-view .crm-view-comments .input-group input {
    padding: 3px 8px;
    height: 28px;
}

.crm-view .crm-view-comments .input-group .btn-crm {
    padding: 3px 8px;
}

.crm-view #crm-view-comment-container {
    margin-bottom: 25px;
}

.crm-view #crm-view-comment-container ul {
    list-style: none;
    padding: 0;
}

.crm-view #crm-view-comment-container ul p {
    padding-left: 15px;
    padding-right: 25px;
}

.crm-view #crm-view-comment-container ul small {
    color: #d2d2d2;
}

.crm-view #crm-view-comment-container .fa {
    cursor: pointer;
    margin: 0 2px;
}

.crm-view .comment-edit-form {
    display: none;
}

.crm-view-footer{
    margin-top: 15px;
}

.crm-view a:not(.btn) {
    color: white;
    text-decoration: underline;
}

.fancybox-inner{
    width: auto !important;
    height: auto !important;
}

.mr-20{
    margin-right: 20px;
}

/** MODIFY **/
.crm-modify h1 {
    margin-top: 10%;
    margin-bottom: 10%;
    font-weight: bold;
}

/* add sorting icons to gridview sort links */
.crm-list-header-labels .sort-asc:after,
.crm-list-header-labels .sort-desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

.crm-list-header-labels .sort-asc:after {
    content: "\e151";
}

.crm-list-header-labels .sort-desc:after {
    content: "\e152";
}

/** ATTACHMENTS **/

.crm-file-drop-area {
    border: 2px dashed white;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
}

.crm-file-drop-area.dragover {
    border-color: lime;
    color: lime;
}

#crm-file-edit-modal .form-group.has-success label,
#crm-file-upload-modal .form-group.has-success label {
    color: #3c8dbc;
}

/** FOOTER MENU **/
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #235a88;
    padding: 5px;
    border-top: 1px solid white;
    z-index: 1001;
    width: 100%;
}

.footer-menu > div {
    display: table-cell;
    text-align: center;
}

.footer-menu a {
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
}

/** LEGEND **/
.legend .fa {
    font-size: 20px;
    text-align: center;
    width: 20px;
}