body {
    color: #333;
}

.animated {
    animation-duration: 0.5s !important;
}

/* NAVBAR */

@media (max-width: 767px) {
    body.fixed-sidebar.fixed-nav.fixed-nav-basic {
        padding-left: 0;
    }

    body.fixed-nav.fixed-nav-basic .navbar-fixed-top {
        left: 0;
    }
}

nav.navbar.navbar-fixed-top, body.fixed-sidebar .navbar-static-side {
    transition: none;
}

body.fixed-nav {
    padding-top: 60px;
    padding-left: 220px;
    /*transition: padding 0.5s;*/
}

body.fixed-nav.mini-navbar {
    padding-left: 0;
}

body.fixed-sidebar.mini-navbar .navbar-default .nav > li > .nav-second-level li a {
    border-radius: 0;
}

.mini-navbar .nav .nav-second-level {
    background: none;
}

body.fixed-sidebar .navbar-static-side {
    top: 0;
    left: 0;
}

.navbar-default {
    background: #293846;
}

.profile-element img {
    margin: 0 auto 10px;
    max-height: 80px;
}

.navbar-fixed-top {
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.navbar-default .fa.arrow:before {
    content: "\f104";
    display: inline-block;
    transition: transform 0.2s;
}

.navbar-default li {
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
    border-left: 0 solid #2f4050;
}

.navbar-default .nav > li > a:focus:not(:hover) {
    background: #2f4050;
}

.navbar-default .active > a > .fa.arrow:before {
    content: "\f104";
}

.navbar-default .expanded .fa.arrow:before {
    transform: rotate(-90deg);
}

.nav li:last-child {
    margin-bottom: 0;
}

.navbar-default .nav > li > a.active, .navbar-default .nav > li > a.active:hover, .navbar-default .nav > li > a.active:focus {
    color: white;
    background: #19aa8d;
}

.page-heading {
    background: white;
    border-bottom: 1px solid #e7eaec;
}

/* PANELS */

.panel {
    border-radius: 0;
    border-top-width: 5px;
}

h3.panel-title {
    font-size: 18px;
    margin: 7px 0 12px;
}

.panel > .panel-heading {
    color: #333;
    border-radius: 0;
}

.panel-default > .panel-heading {
    background: white;
}

.panel-danger > .panel-heading {
    background: #fdedef;
}

.panel-warning > .panel-heading {
    background: #fdedef;
}

.panel-success > .panel-heading {
    background: #e8f9fa;
}

.panel-info > .panel-heading {
    background: #e7f2f9;
}

.panel-success, .panel-success > .panel-heading {
    border-color: #23c6c8;
}

.panel-info, .panel-info > .panel-heading {
    border-color: #1c84c6;
}

.panel-footer {
    background-color: #fafafa;
}

.panel > .table > tbody > tr td:first-child, .panel > .table > tbody > tr th:first-child,
.panel > .table > thead > tr td:first-child, .panel > .table > thead > tr th:first-child {
    padding-left: 15px;
}

.panel > .table > tbody > tr td:last-child, .panel > .table > tbody > tr th:last-child,
.panel > .table > thead > tr td:last-child, .panel > .table > thead > tr th:last-child {
    padding-right: 15px;
}

/* TABLES */
.table.table-hover tr[data-fetch] {
    cursor: pointer;
}


/* SPINNERS */

body > #spinner {
    z-index: -1;
    position: relative;
    margin: 0 auto;
    width: 2px;
    opacity: 0;
}

body > #spinner > .sk-spinner {
    z-index: -1;
    position: absolute;
    margin-top: 30vh;
}

body.loading > #spinner {
    transition: opacity 0.5s;
    -webkit-transition-delay: 0.5s;
    -moz-transition-delay: 0.5s;
    -ms-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
    z-index: 10;
    opacity: 1;
}

#content {
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

body.loading #content {
    opacity: 0;
}

/* BUTTONS */

.btn {
    overflow: hidden;
}

.btn > .fa-fw {
    float: left;
    display: block;
    line-height: inherit;
    background: rgba(100, 100, 100, .25);
    padding: 20px 0 20px 5px;
    width: 45px;
    margin: -20px 13px -20px -18px;
}

.btn > .fa-fw.pull-right {
    margin-right: -18px;
    margin-left: 13px;
    padding: 20px 5px 20px 0;
}

.btn.btn-sm > .fa-fw {
    width: 38px;
    margin-right: 12px;
    margin-left: -16px;
}

.btn.btn-sm > .fa-fw.pull-right {
    margin-right: -16px;
    margin-left: 12px;
}

.btn.btn-xs > .fa-fw {
    width: 30px;
    margin-right: 6px;
    margin-left: -11px;
}

.btn.btn-xs > .fa-fw.pull-right {
    margin-right: -11px;
    margin-left: 6px;
}

.btn.btn-lg > .fa-fw {
    width: 55px;
    margin-left: -22px;
    margin-right: 15px;
}

.btn.btn-lg > .fa-fw.pull-right {
    margin-right: -22px;
    margin-left: 15px;
}

/* LOGIN SCREEN */

body.login-page {
    background: #293846;
}

#login-screen {
    color: #f7f7f7;
    max-width: 350px;
    margin: 0 auto;
    padding: 10% 0;
}

#login-screen .form-control {
    background: rgba(255, 255, 255, 0.25);
    border-color: #bfc3c7;
}

#login-screen .form-control::placeholder {
    color: #ccc;
}

#login-screen .input-group-addon {
    background: #2f4050;
    border-color: #bfc3c7;
}

@media (max-width: 500px) {
    #login-screen {
        max-width: 400px;
        margin: 0 auto 0;
        padding: 15px 10px 5px 10px;
        height: 100%;
    }
}

/*MODAL*/

#modal-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(41, 56, 70, 0.5);
    z-index: 2050;
    overflow: auto;
    display: none;
}

#modal-window.in {
    display: block;
}

#modal-content {
    position: relative;
    max-width: 1000px;
    min-height: 50vh;
    margin: 7vh auto 10vh;
    background: #f3f3f4;
    border: 1px solid rgba(41, 56, 70, 0.80);
    border-radius: 1px;
    overflow: auto;
    padding: 30px;
}

div#modal-content:before {
    content: "\f00d";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    font: normal normal normal 14px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
    text-align: center;
    line-height: 30px;
}

body.fixed-nav {
    padding-top: 60px;
}

body.fixed-nav #wrapper .navbar-static-side, body.fixed-nav.fixed-nav-basic #wrapper .navbar-static-side {
    margin-top: -60px;
}

body.fixed-nav #wrapper #page-wrapper {
    margin-top: 0;
}

div#wrapper > .cake-error:first-child, div#wrapper > .cake-debug-output:first-child {
    margin-top: 80px;
}

/* INVOICES */
table.table.invoice-items td {
    padding: 4px 2px;
    font-size: 13px;
}

table.table.invoice-items td:first-child {
    padding-left: 6px;
}

table.table.invoice-items td:last-child {
    padding-right: 6px;
}

table.table.invoice-items td .form-group {
    margin-bottom: 0;
}

table.table.invoice-items td .form-control {
    font-size: 13px;
    padding: 3px 6px;
    min-height: 30px;
    height: auto;
    line-height: 20px;
}

table.table.invoice-items td .form-group.textarea .input-group, table.table.invoice-items td textarea {
    width: 100% !important;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dropdown-menu > li > a {
    margin: 0;
}

.sortable-ghost {
    background: #ddd;
}

/* SWAL */

.swal2-container {
    z-index: 3030;
}

button.swal2-confirm.swal2-styled {
    float: right;
    background-color: #1ab394 !important;
    border-color: #1ab394 !important;
    color: #FFFFFF !important;
    outline: none !important;
}

button.swal2-confirm.swal2-styled:hover {
    background-color: #18a689 !important;
    border-color: #18a689 !important;
    color: #FFFFFF !important;
}

.swal2-buttonswrapper {
    display: inline-block !important;
}

button.swal2-cancel.swal2-styled {
    float: left;
    color: #333 !important;
    background-color: #fff !important;
    border-color: #ccc !important;
    border-width: 1px;
    border-style: solid;
}

button.swal2-cancel.swal2-styled:hover {
    background-color: #f7f7f7 !important;
}

button.swal2-confirm.swal2-styled:active {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) inset;
}

/* FORM */

.form-control .selectize-input {
    background-color: #FFFFFF;
    background-image: none;
    border: 1px solid #e5e6e7;
    border-radius: 1px;
    color: inherit;
    display: block;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}

.selectize-control.single .selectize-input:after {
    right: 10px;
}

.selectize-dropdown, .selectize-dropdown.form-control {
    z-index: 3020;
}

.form-control .selectize-input:focus, .form-control .selectize-input.input-active {
    border-color: #1ab394;
}

.selectize-control.single .selectize-input.input-active, .selectize-input {
    display: block !important;
}

.selectize-dropdown, .selectize-dropdown.form-control {
    border-radius: 1px;
    border-color: #e5e6e7;
}

.table.invoice-items .selectize-control.form-control {
    padding: 0;
}

table.table.invoice-items td .selectize-input {

    min-height: 0;
    padding: 4px 6px;
}

/* ERRORS */
.message.error {
    z-index: 2030;
}


/*
.selectize-control.form-control.single .selectize-input >  input[type="text"] {
    width: calc(100% - 20px) !important;
}
*/

.sortable-material-list ul {
    margin-top: 15px;
    margin-bottom: 5px;
}


.sortable-material-list .form-group {
    margin: 0;
}


.sortable-material-list li.list-group-item {
    background: rgba(150, 150, 150, 0.02);
}


.panel > .tabs-container .nav-tabs > li.active > a,
.panel > .tabs-container .nav-tabs > li.active > a:hover,
.panel > .tabs-container .nav-tabs > li.active > a:focus {
    border-radius: 0;
    border-width: 0;
    color: white;
    background: #1ab394;
}

.panel > .tabs-container .nav-tabs > li.active > a:hover,
.panel > .tabs-container .nav-tabs > li.active > a:focus {
    background: #18a689;
}

.panel > .tabs-container .nav-tabs > li > a {
    border-radius: 0;
    border-width: 0;
}

.notes-cell textarea.form-control.form-control-note {
    width: calc(100% + 2px) !important;
    margin: -1px;
}


.note-entity.panel.panel-default {
    border-top-width: 1px;
}

.note-entity.panel.panel-default .panel-heading, .note-entity.panel.panel-default .panel-body {
    padding: 10px;
    border-color: #dddddd80;
}

.note-entity.panel.panel-default .panel-heading h3 {
    margin: 0;
}

.btn-danger.btn-inverse {
    background-color: #FFFFFF;
    border-color: #ed5565;
    color: #ed5565;
}

.btn-success.btn-inverse {
    background-color: white;
    border-color: #1c84c6;
    color: #1c84c6;
}

.btn-primary.btn-inverse {
    background-color: #FFFFFF;
    border-color: #1ab394;
    color: hsla(168, 75%, 25%, 1);
}


.col-form-input .form-group {
    margin-left: 0;
    margin-right: 0;
}


.form-horizontal .col-form-label, .form-horizontal .col-form-input {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    float: none;
    display: block;
}

/*.form-horizontal .col-form-input.col-form-offset-label {
    margin-left: 16.66666667%;
}*/


@media (min-width: 768px) {
    .form-horizontal .col-form-label {
        width: 25%;
        float: left;
    }

    .form-horizontal .col-form-input {
        width: 75%;
        float: left;
    }

    .form-horizontal .col-form-input.col-form-offset-label {
        margin-left: 25%;
    }
}


@media (min-width: 992px) {
    .form-horizontal .col-form-label {
        width: 16.66666667%;
        float: left;
    }

    .form-horizontal .col-form-input {
        width: 83.33333333%;
        float: left;
    }
}

.modal .form-horizontal .col-form-label {
    width: 25%;
    float: left;
}

.modal .form-horizontal .col-form-input {
    width: 75%;
    float: left;
}

.btn-warning.btn-inverse {
    background-color: #FFFFFF;
    border-color: #f8ac59;
    color: #c46908;
}


.material-selector {
    max-width: none;
    width: 450px;
}

.material-selector strong {
    font-size: 18px;
}

.material-selector .form-group {
    margin-bottom: 30px;
}


.panel-material-category .btn-lg {
    padding: 10px 5px;
    margin: 15px 0;
    display: inline-flex;
    white-space: normal;
    height: 70px;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.relative {
    position: relative !important;
}


#selected-material {
    position: fixed;
    width: calc(100% - 240px);
    bottom: 0;
    max-height: 60px;
    overflow: visible;
}

body.mini-navbar #selected-material {
    width: calc(100% - 20px);
}

@media (max-width: 768px) {
    #selected-material {
        width: calc(100% - 20px);
    }
}

#selected-material.active {
    transition: all 0.8s;
    max-height: 100vh;
}

#selected-material .panel {
    margin-bottom: 0;
}

#selected-material .btn-caret {
    display: inline-block;
}

#selected-material.active .btn-caret {
    transform: scaleY(-1);
}


#content {
    padding-bottom: 0;
}


#planner #work-order-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
}

.panel.panel-default .panel.panel-default {
    border-top-width: 1px;
}


#service-planner .panel-heading {
    padding: 5px;
}

#planner #work-order-panel [data-entity="work-order"] {
    display: grid;
    grid-template-columns: auto auto 32px;
    padding: 5px;
    align-items: center;
    grid-gap: 8px;
}

#planner #work-order-panel [data-entity="work-order"] /*:not(.selected)*/ button[name="remove-schedule"] {
    display: none;
}

/*#planner #work-order-panel [data-entity="work-order"].selected button[name="add-schedule"] {
    display: none;
}*/

#planner #schedule-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
}

#planner #schedule-panel ul.list-group:after {
    display: block;
    cursor: pointer;
    background: white;
    padding: 6px 8px;
    border-bottom: 1px solid #e7eaec;
    font-size: 12px;
    opacity: 0.8;
    min-height: 34px;
}

#planner #schedule-panel li.list-group-item {
    display: grid;
    grid-template-columns: min-content auto 135px min-content;
    padding: 5px;
    align-items: center;
    grid-gap: 8px;
}


#planner #schedule-panel li.list-group-item input[type="text"] {
    font-size: small;
    cursor: pointer;
    background: none;
    margin: -5px;
    padding: 5px;
    left: 5px;
    position: relative;
}


#planner #schedule-panel li.list-group-item input[type="text"]:hover {
    background: #eee;
}


.panel-body + .panel-body {
    border-top: 1px solid #e7eaec;
}

li[data-entity="service-plan-task"]:not(.selected) button[name="remove-schedule"] {
    display: none;
}

li[data-entity="service-plan-task"].selected {
    background: #1c84c624;
}

li[data-entity="service-plan-task"].selected button[name="add-schedule"] {
    display: none;
}

.table-responsive > table.table {
    margin-bottom: 0;
}

div#work-log {
    position: fixed;
    right: -150%;
    width: 350px;
    transition: all 0.4s;
    margin: 0;
    bottom: 0;
    top: 60px;
    border-right: 0;
}

div#work-log.in {
    right: 0;
}

li#work-log-container {
    width: 280px;
}

.panel.panel-thin {
    border-top-width: 1px;
}


.fc-event .btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s
}

.fc-event:hover .btn {
    opacity: 1
}

.fc-event .btn {
    padding: 3px;
    height: auto;
    line-height: 0;
}


#planner #work-order-panel [data-entity="work-order"].selected {
    background: #1c84c614;
}


#schedule-select-form .form-group {
    margin-bottom: 0;
}


.invoice-item-list textarea {
    width: 100% !important;
}

.checkbox input[type=checkbox], .checkbox-inline input[type=checkbox], .radio input[type=radio], .radio-inline input[type=radio] {
    margin: 0 5px 2px 0;
    vertical-align: middle;
    position: relative;
    width: 18px;
    height: 18px;
}

.checkbox label, .radio label {
    padding-left: 0;
}


textarea.fixed-width {
    width: 100% !important;
}


.sidebar-container .panel-body {
    border-top: 1px solid #2f405024;
}


#sidebar-work-schedule .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

#sidebar-work-schedule .list-group-item:after {
}

#sidebar-work-schedule .list-group-item:hover:after {
    transition: all 0.2s;
    opacity: 0.7;
}

#sidebar-work-schedule .list-group-item:after {
    content: "\f04b";
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 30px;
    position: absolute;
    top: calc(50% - 20px);
    right: 15px;
    color: #1cb394;
    opacity: 0;
    transition: all 0.1s;
}


#right-sidebar {
    transition: all 0.2s;
}


.row.row-sm {
    margin-right: -5px;
    margin-left: -5px;
}

.row.row-sm > [class^="col"] {
    padding-left: 5px;
    padding-right: 5px;
}


div#sidebar-work-log .form-group {
    margin-bottom: 6px;
}


.pac-container.pac-logo {
    z-index: 3000;
}


.fc-bgevent {
    background: #53c6ae;
    opacity: .3;
}


.modal.ajax-modal.fade.in:after {
    content: "X";
    display: block;
    position: fixed;
    top: 0px;
    right: 10px;
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f00d";
    font-size: 50px;
    cursor: pointer;
}


#planner #work-order-panel [data-entity="work-order"].active,
#planner #work-order-panel [data-entity="work-order"]:hover {
    background: #1c84c647;
    color: #000000;
    border-color: #1c84c6;
    z-index: 2;
    cursor: pointer;
}

#planner #work-order-panel [data-entity="work-order"] {
    transition: 0.2s;
}


input[type=checkbox], input[type=radio] {
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
}


.gm-style-iw-d ul.list-group .list-group-item {
    padding: 6px 8px;
}


.gm-style-iw.gm-style-iw-c {
    border-radius: 0 !important;
    padding: 0;
}

.gm-style-iw-d {
    overflow: auto !important;
}

.gm-style-iw-d ul.list-group {
    margin: 0;
}


.gm-style-iw-d .list-group-item {
    border-color: #00000014 !important;
    border-radius: 0 !important;
}


.btn-success.active.focus, .btn-success.active:focus, .btn-success.active:hover, .btn-success:active.focus, .btn-success:active:focus, .btn-success:active:hover, .open > .dropdown-toggle.btn-success.focus, .open > .dropdown-toggle.btn-success:focus, .open > .dropdown-toggle.btn-success:hover {
    background-color: #176ca1 !important;
}


.btn.btn-primary.btn-inverse.active {
    background: #1ab394;
    color: white;
}

.btn.btn-success.btn-inverse.active {
    background: #1c84c6;
    color: white;
}

.btn.btn-danger.btn-inverse.active {
    background: #ed5565;
    color: white;
}

.btn.btn-warning.btn-inverse.active {
    background: #f8ac59;
    color: white;
}

.btn.btn-info.btn-inverse.active {
    background: #23c6c8;
    color: white;
}


.label.label-default.inline {
    color: black;
}


ul#work-order-list {
    max-height: calc(90vh - 180px);
    overflow: auto;
}

#planner .list-group-item .label {
    min-width: 85px;
}

#right-sidebar {
    width: 400px !important;
    max-width: 100%;
    right: -400px;
}


#planner .fc-body > td.fc-widget-content {
    border: 0;
}

#planner .fc-head td.fc-head-container.fc-widget-header {
    border-left: 0;
    border-right: 0;
}

#sidebar-work-log #work-log-description textarea {
    min-height: 34px;
    height: 0;
    transition: height 0.2s;
}

#sidebar-work-log #work-log-description textarea:focus {
    height: 75px;
}

#sidebar-work-log #work-log-description .input-group-btn {
    vertical-align: bottom;
}


@media (min-width:768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

li.list-group-item.due {
    background: #ed5565;
}
li.list-group-item.due:not(.selected) > div:first-child {
    color: #fff;
}
