﻿html, body {
    height: 100%;
    min-height: 100%;
}

body {
    font-family: "Roboto", "Open Sans", sans-serif;
    font-size: .8rem;
}

abbr,
abbr[title] {
    text-decoration: none;
}

.multiline {
    white-space: pre-line;
}

.bmd-form-group.bmd-form-group-sm .custom-file-control,
.bmd-form-group.bmd-form-group-sm .form-control,
.bmd-form-group.bmd-form-group-sm input::placeholder,
.bmd-form-group.bmd-form-group-sm label {
    line-height: 1.25;
}

.form-control {
    font-size: 0.8rem;
    height: calc(1.5rem + 2px);
}

.form-group {
    margin-bottom: 0;
}

.nav-link {
    color: #e30613;
}

.header-bar .nav-link {
    color: #fff;
}

.material-icons {
    vertical-align: middle;
}

    .material-icons.small {
        font-size: 20px;
    }

.drag-handle {
    cursor: grab;
}

.sort-disabled {
    visibility: hidden;
}

.overflow-hidden {
    overflow: hidden;
}

.flash-message {
    width: 100%;
    z-index: 1040;
}

.wrapper {
    background: #fff;
    display: flex;
    height: 100%;
    min-height: 100%;
    width: 100%;
    align-items: stretch;
}

.content-wrapper {
    background: #fff;
    width: 100%;
}

.main-content {
    background: #fff;
    padding-bottom: .8575rem;
    padding-top: .8575rem;
    transition: all 0.3s;
    margin-top: 3rem;
    width: auto;
    margin-left: 80px;
}

    .main-content.active {
        margin-left: 250px;
    }

.company-logo {
    width: 100%;
}

#sidebar {
    background: #424242;
    color: #fff;
    min-height: 100vh;
    height: 100%;
    transition: all 0.3s;
    width: 250px;
    max-width: 250px;
    position: fixed;
    z-index: 999;
}

    #sidebar .sidebar-header {
        padding: 20px;
        background: #000;
        margin-top: 3rem;
    }

    #sidebar ul.components {
        padding: .8575rem 0;
        border-bottom: 1px solid #e30613;
    }

    #sidebar ul p {
        color: #fff;
        padding: 10px;
    }

    #sidebar ul li a {
        padding: .8575rem;
        font-size: 1.1em;
        display: block;
    }

        #sidebar ul li a:hover {
            color: #e30613 !important;
            background: #fff;
            text-decoration: none;
        }

    #sidebar ul li.active > a,
    #sidebar a[aria-expanded="true"] {
        color: #fff;
        background: #e30613;
    }

    /* Shrinking the sidebar from 250px to 80px and center aligining its content*/
    #sidebar.active {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
    }

        #sidebar.active.instlr_ext,
        #sidebar.active.instlr_int {
            min-width: 0px;
            max-width: 0px;
            visibility: hidden;
        }

            #sidebar.active.instlr_ext .sidebar-header,
            #sidebar.active.instlr_int .sidebar-header {
                visibility: hidden;
            }

body.instlr_ext .main-content,
body.instlr_int .main-content {
    margin-left: 0;
}

/* Toggling the sidebar header content, hide the big heading [h3] and showing the small heading [strong] and vice versa*/
#sidebar .sidebar-header strong {
    display: none;
}

#sidebar.active .sidebar-header h3 {
    display: none;
}

#sidebar.active .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    color: #fff;
    text-align: left;
}

#sidebar.active ul li a {
    color: #fff;
    padding: 0.8575rem;
    text-align: center;
    font-size: 0.85em;
}

    #sidebar.active ul li a i {
        margin-right: 0;
        display: block;
        font-size: 1.8em;
        margin-bottom: 5px;
    }

#sidebar.active ul ul a {
    padding: .8575rem !important;
}

/* Changing the arrow position to bottom center position,
   translateX(50%) works with right: 50%
   to accurately  center the arrow */
#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebarCollapse {
    color: #fff;
    position: absolute;
}

.header-bar {
    background: #000;
    color: #fff;
    padding: 0;
}

    .header-bar .label-icon {
        vertical-align: middle;
    }

    .header-bar .label-text {
        display: none;
    }

    .header-bar .dropdown-toggle {
        content: none;
    }

    .header-bar .nav-link {
        padding-bottom: .8575rem;
        padding-top: .8575rem;
    }

    .header-bar .dropdown-menu {
        padding: 0;
    }

    .header-bar .dropdown-item {
        min-height: 2rem;
    }

#save-in-progress {
    position: fixed;
    top: 5px;
    width: 400px;
    left: 50%;
    margin-left: -200px;
    text-align: center;
    z-index: 2000;
}

.employability-day-card .employability-day-card-header,
.employability-day-card-header,
.planning-day-card .planning-day-card-header {
    background: #424242;
    padding: 0;
}

.employability-day-card-header-link,
.planning-day-card-header-link {
    background: #424242;
    color: #fff;
    display: block;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
}

.planning-day-card-header-link {
    width: 96%;
}

.planning-day-card-header-link-people {
    text-align: right;
    padding: .5rem;
}

.employability-day-card-header-link:hover,
.planning-day-card-header-link:hover {
    color: #fff;
    background: #4f4f4f;
    text-decoration: none;
}

.planning-day-card-today .planning-day-card-header-link {
    color: #e30613;
}

.employability-day-card-body,
.planning-day-card-body {
    padding: 0;
}

body.instlr_ext .planning-day-activity,
body.instlr_int .planning-day-activity {
    border-bottom: 1px solid #4f4f4f;
    padding: 5px 0;
}

body.instlr_ext .planned-day-label,
body.instlr_int .planned-day-label {
    font-weight: bold;
}

body.instlr_ext .planning-striped .row:nth-child(even),
body.instlr_int .planning-striped .row:nth-child(even) {
    background: #f8f9fa;
}

body.instlr_ext .planning-detail-log-list .system,
body.instlr_int .planning-detail-log-list .system {
    display: none;
}

.table-fixed {
    table-layout: fixed;
}

    .table-fixed th, .table-fixed td {
        text-wrap: none;
    }

#planning-week-selector {
    width: 200px;
    height: 2rem;
}

.planning-day-table {
    margin: 0;
    table-layout: fixed;
}

    .planning-day-table thead th {
        font-size: 70%;
        padding: 0.25rem;
    }

    .planning-day-table tbody {
        min-height: 20px;
    }

    .planning-day-table td {
        cursor: pointer;
        padding: .25rem;
        font-size: 90%;
        white-space: nowrap;
        overflow: hidden;
    }

    .planning-day-table input {
        font-size: 100%;
    }

.planning-day-activity .planning-detail-log-list .list-group-item {
    padding: 0.1rem 0;
}

.planning-day-devider td {
    border-bottom: 1px solid;
    padding-bottom: 2rem;
}

.planning-activity-actions-container {
    background: #fff;
    padding: .25rem;
    position: absolute;
    right: 0;
    width: 120px;
    z-index: 1030;
}

.planning-day-highlight td {
    border-top: 2px solid #e30613;
    border-bottom: 2px solid #e30613;
}

.planning-day-activity-person {
    display: inline-block;
    margin-right: 0.2rem;
}

    .planning-day-activity-person select {
        background: #f7f7f7;
        border: 0;
        margin: 0 0.2rem;
        padding: 0.1rem 0.2rem;
        transition: all 0.3s;
        width: 16px;
    }

        .planning-day-activity-person select:hover {
            transition: all 0.3s;
            width: auto;
            position: absolute;
            z-index: 10;
        }

    .planning-day-activity-person.is-authenticated-user {
        background: #cf0;
        display: inline-block;
        padding: 0.2rem;
    }

.vehicle_description {
    height: inherit;
    padding: 0;
}

.planning-day-dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.planning-day-dt {
    font-weight: bold;
    width: 34%;
}

.planning-day-dd {
    display: flex;
    margin: 0;
}

    .planning-day-dd + .planning-day-dd {
        width: 100%;
        padding-top: 0;
    }

.planning-day-dt + .planning-day-dd:not(:nth-child(2)),
.planning-day-dt:first-child + .planning-day-dd:nth-child(2) {
    width: 66%;
}

.planning-day-employees-table td {
    background: none;
}

.planning-day-employees-row .form-control {
    height: inherit !important;
    font-size: 1em;
}

.planning-detail-employees-list .list-group-item {
    padding: .5rem;
}

.planning-day-dd + .planning-day-dd::before {
    width: 34%;
    content: "";
    padding-top: 0
}

.planning-detail-header {
    border-bottom: 4px solid #424242;
    padding-bottom: .8575rem;
    margin-bottom: .8575rem;
}

.planning-detail-body .nav .nav-link.active {
    background: #dc3545;
    color: #fff;
}

.planning-detail-status {
    font-size: 2rem;
}

.planning-detail-customer {
    font-size: 2rem;
    padding: 0 .8575rem;
}

.planning-detail-owner {
    font-weight: bold;
}

.planning-detail-customer-location {
    font-size: 1.25rem;
}

.planning-detail-from {
    padding-right: .8575rem;
}

.planning-detail-section {
    margin-bottom: .8575rem;
}

.planning-detail-section-header {
    border-bottom: 1px solid #424242;
    color: #424242;
    font-weight: bold;
    font-size: 100%;
    padding-bottom: .25rem;
    text-transform: uppercase;
}

.planning-detail-section-body {
    background: #f3f3f3;
    padding: .8575rem;
}

.planning-detail-log-list {
    /*height: 200px;*/
    overflow: auto;
    background: #fcfcfc;
}

    .planning-detail-log-list .list-group.bmd-list-group-sm {
        padding: 0.1rem 0;
    }

        .planning-detail-log-list .list-group.bmd-list-group-sm .list-group-item {
            border-bottom: 1px solid #f0f0f0;
            padding: 0.1rem 0;
            line-height: 1.15;
        }

    .planning-detail-log-list .bmd-list-group-sm .list-group-item-text {
        font-size: 90%;
        margin-bottom: 0.2rem;
    }

.planning-detail-employee-assigned {
    color: #dc3545;
}

#planning-detail-people .ui-sortable-handle:hover {
    background-color: #f3f3f3;
}

.people-availability-day {
    text-align: center;
}

.people-availability-full {
    background: #4caf50;
}

.people-availability-half {
    background: #ff5722;
}

.people-availability-none {
    background: #f44336;
}

.pagination .current {
    background: #f3f3f3;
}

.editable {
    cursor: pointer;
}

.employability-week-day {
    text-align: center;
    font-size: 90%;
    color: #fff;
}

    .employability-week-day select {
        font-size: 100%;
    }

.employability-week-day_allday {
    background-color: #4caf50;
}

.employability-week-day_morning {
    background-color: #0094ff;
}

.employability-week-day_afternoon {
    background-color: #ff6a00;
}

.employability-week-day_notemployable {
    background-color: #e30613;
}

.employability-week-day-data {
    display: block;
}

.ui-sortable-handle {
    cursor: grab;
}

.activity-list-table {
    table-layout: fixed;
}

    tbody tr .btn.bmd-btn-icon,
    .activity-list-table tr .btn,
    .activity-approval-list tr .btn {
        visibility: hidden;
    }

    tbody tr:hover .btn.bmd-btn-icon,
    .activity-list-table tr:hover .btn,
    .activity-approval-list tr:hover .btn {
        visibility: visible;
    }

    .activity-list-table thead th {
        font-size: 70%;
        text-align: left;
    }

    .activity-list-table thead th,
    .activity-list-table tbody td {
        padding: 0.25rem;
    }

    .activity-list-table tbody td {
        white-space: nowrap !important;
        overflow: hidden;
    }

.activity-markup-link {
    border: 1px solid #fcfcfc;
    display: inline-block;
    height: 20px;
    width: 20px;
    background-color: #f0f0f0;
    text-indent: -9999px;
    white-space: nowrap;
    outline: none;
}

.activity-markup-link_default {
    background-color: #fff;
}

.activity-markup-link_yellow {
    background-color: rgba(255, 203, 26, 1);
}

.activity-markup-link_purple {
    background-color: rgba(152, 78, 173, 1);
}

.activity-markup-link_green {
    background-color: rgba(28, 99, 46, 1);
}

.activity-markup-link_red {
    background-color: rgba(168, 0, 4, 1);
}

.activity-mu-default {
}

.activity-mu-yellow {
    background-color: rgba(255, 203, 26, 0.25);
}

.activity-mu-purple {
    background-color: rgba(152, 78, 173, 0.25);
}

.activity-mu-green {
    background-color: rgba(28, 99, 46, 0.25);
}

.activity-mu-red {
    background-color: rgba(168, 0, 4, 0.25);
}

.dataTables_filter label {
    font-size: 90%;
    text-transform: lowercase;
}

.dataTables_filter input[type="search"] {
    border: 0;
    background: #f3f3f3;
    padding: 0.2rem;
}

.dataTables_paginate .paginate_button {
    cursor: pointer;
    display: inline-block;
    padding: 2px 4px;
    margin: 4px;
    text-decoration: none;
}

.dataTables_paginate .paginate_button.current {
    background: #009688; 
    color: #ffffff;
    font-weight: bold;
}

.dataTables_paginate .paginate_button.disabled {
   color: #ccc;
   cursor: default;

}

#planning-employability {
    background: #fff;
    bottom: 20px;
    position: fixed;
    right: 20px;
    width: 300px;
    z-index: 1000;
    -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.3);
}

.employability-popup-heading {
    background: #e30613;
    display: block;
    padding: 0.5rem;
}

.employability-popup-heading_title {
    color: #fff;
    display: inline-block;
    font-weight: bold;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}

.employability-popup-body {
}

.week-selector {
    background: #eee;
    padding: 0 5px;
    position: fixed;
    top: 10px;
    z-index: 1300;
}

.modal.modal-fullscreen {
    padding: 0 !important;
    z-index: 1400;
}

.modal.modal-fullscreen .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal.modal-fullscreen .modal-body {
    overflow-y: auto;
}

table .bmd-form-group,
table .form-control {
    padding: 0 !important;
    margin: 0;
}

.datepicker {
    z-index: 1401;
}

.table caption {
    caption-side: top;
    color: #212529;
    font-weight: bold;
    padding: 0.3rem;
}

.loading-overlay {
    background: #e30613;
    height: 100vh;
    left: 0;
    opacity: 0.2;
    position: fixed;
    top: 0;
    width: 100vw;
}

canvas {
    background: #fefefe;
    border: 1px solid #424242;
}

.badge-lift {
    background: #6200ee;
    color: #fff;
}

.planning-detail-body .nav-item {
    background: #f7f7f7;
}

.planning-detail-body .nav-item:hover {
    background: #e7e7e7;
}

.planning-detail-body .dropdown-menu{
    width: 100%;
}

.planning-detail-body .dropdown-menu .dropdown-item {
    font-size: .8rem;
    min-height: auto;
    padding: 0.5rem 1rem;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    text-indent: -999em;
    vertical-align: text-bottom;
    border: 0.25em solid;
    border-color: currentColor transparent currentColor currentColor;
    border-radius: 50%;
    animation-name: spinner-border;
    animation-duration: 0.75s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.spinner-border-reverse {
    border-color: transparent currentColor transparent transparent;
}

    .spinner-border-reverse::after {
        position: absolute;
        top: -0.25em;
        right: -0.25em;
        bottom: -0.25em;
        left: -0.25em;
        display: inline-block;
        content: "";
        border: 0.25em solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
    }

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

    .spinner-border-sm.spinner-border-reverse::after {
        border-width: 0.2em;
    }

@keyframes spinner-grow {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.spinner-grow {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    text-indent: -999em;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    animation-name: spinner-grow;
    animation-duration: 0.75s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}