/*
* General styling
*/

html, body {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    color: #383837;
    background-color: #F6F6F5;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

@media screen and (min-width: 770px) {
    .padding {
        padding: 15px 50px 50px 50px;
    }
}

@media (min-width: 768px) {
    .label-shift {
        top: 7px;
    }

    .checkbox-shift {
        margin-top: 10px !important;
    }
}

.sidebar {
    margin-top: 0;
    background-color: white;
    min-height: 100%;
    position: fixed;
    -webkit-box-shadow: 2px 0px 10px -5px grey;
    /*width: 300px;*/
}

/*
 * Page wrapper optimalisation
 */
#page-wrapper {
    position: absolute;
    height: -webkit-calc(100% - 55px);
    height: -moz-calc(100% - 55px);
    height: calc(100% - 55px);
    background: #F6F6F5;
    padding: 0 !important;
    width: -webkit-calc(100% - 250px);
    width: -moz-calc(100% - 250px);
    width: calc(100% - 250px);
}

.container {
    padding-left: 45px !important;
    padding-right: 45px !important;
    width: 100%;
}

/*
 * Button styling
 */
.btn {
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
    border-radius: 0px !important;
}

.btn-success {
    background: #479C16 !important;
    border-color: #479C16 !important
}

.success {
    border-color: rgba(19, 181, 147, 0.7);
    background-color: rgba(19, 181, 147, 0.7);
}

.success:hover {
    border-color: rgba(19, 181, 147, 1);
    background-color: rgba(19, 181, 147, 1);
}

.button-default {
    color: white;
    background: #479C16;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
    text-align: center;
    white-space: nowrap;
    background-image: none;
    vertical-align: middle;
    touch-action: manipulation;
    border: 1px solid transparent;
    border-radius: 20px;
    -ms-touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-width: 150px;
}

.button-default:hover {
    color: #479C16;
    background-color: white;
    border: #479C16 1px solid;
}

a:hover {
    text-decoration: none !important;
}

/*
 * Modal styling
 */
#wrapper > nav > ul > li > ul > li > a {
    color: black !important;
    background-color: white !important;
}

#wrapper > nav > ul > li > ul > li > a i {
    color: #ff7f00 !important;
}

.modal {
    text-align: center;
    padding: 0 !important;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.modal-content {
    border-radius: 0px !important;
}

.modal-footer, .modal-header {
    border: none;
}

/*
 * Title styling
 */
.title-page {
    margin: 0 0 0;
    color: #383837;
    padding: 10px 10px 10px 0;
    font-size: 20px;
    text-align: left;
    background-color: #F6F6F5;
}

/*
 * Breadcrumbs styling
 */
ul#breadcrumbs li {
    display: inline;
}

#breadcrumbs {
    color: #383837;
    padding-top: 0px;
    margin-bottom: 0px;
}

#breadcrumbs > li > a {
    color: #383837;
}

/*
 * Error message styling
 */
.alert-danger {
    color: white;
    border-radius: 0px;
    margin-bottom: 10px !important;
    background-color: rgba(228, 65, 51, 0.7);
    border: none;
}

.alert-success {
    color: white;
    border-radius: 0px;
    margin-bottom: 10px !important;
    background-color: rgba(19, 181, 147, 0.7);
    border: none;
}

.alert-warning {
    color: white;
    border-radius: 0px;
    margin-bottom: 10px !important;
    background-color: rgba(242, 146, 13, 0.7);
    border: none;
}

.alert-info {
    color: white;
    border-radius: 0px;
    margin-bottom: 10px !important;
    background-color: rgba(42, 143, 215, 0.70);
    border: none;
}

.alert-danger-image-size{
    max-width:300px;
    margin-top:10px;
    display: none;
}
/*
 * Navbar styling
 */
.navbar {
    background: #F6F6F5;
    border-color: #F6F6F5;
    color: white !important;
    margin-bottom: 0;
}

.nav > li > a:focus, .nav > li > a:hover {
    background-color: #F6F6F5;
}

#logout {
    color: #fff;
    font-size: 18px;
}

#logout:focus, #logout:hover {
    background-color: #F6F6F5;
    color: #383837;
}

.nav > li > a {
    color: #383837;
    font-size: 18px;
}

.sidebar ul li {
    border: none;
}

/*
 * The content container
 */
.container {
    max-width: 100% !important;
}

#wrapper {
    /*background-color: #009e14 !important;*/
}

#page-wrapper {
    padding: 0px;
    min-height: 845px;
}

#menu-headers {
    margin-bottom: 50px;
    margin-top: 20px;
}

#side-nav-bar-head {
    color: #479C16;
    text-align: center;
    font-size: 23px;
    font-weight: 700;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: white;
}

.sidebar ul li a.active {
    font-weight: bold;
    color: #6cc525;
}

.nav > li > a:focus, .nav > li > a:hover {
    text-decoration: none;
    color: #6cc525;
}

@media (max-width: 768px) {
    #page-wrapper {
        width: 100%;
    }

    .container-fluid {
        padding-top: 20px;
    }

    .table-responsive {
        border: unset;
    }
}

/*
 * Styling for the DataTables
 */

.table-responsive {
    min-width: 250px !important;
}

.table-responsive label {
    margin-bottom: 10px;
}

.table-responsive label > span {
    margin-right: 10px;
}

.dataTables_paginate {
    border-radius: 5px;
!important;
    padding: 0 !important;
    margin-top: 10px !important;
    border: 1px solid #ddd !important;
}

.table-responsive table[id^="tabledata"][id$="_next"], .table-responsive table[id^="tabledata"][id$="_previous"] {
    color: #33b535 !important;
}

.table-responsive table[id^="tabledata"] {
    border-bottom: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin: 0 !important;
    border-right: 1px solid #ddd !important;
    color: #33b535 !important;
}

a[id^="tabledata"][id$="_next"]:hover, a[id^="tabledata"][id$="previous"]:hover {
    background: none;
!important;
    margin: 0 !important;
    border-color: #ddd !important;
    background-color: #eee !important;
    border-right: 1px solid #ddd !important;
}

.table-responsive table[id^="tabledata"][id$="_paginate"] > span > a {
    color: #33b535 !important;
    border-left: 1px solid #ddd !important;
}


div[id^="tabledata"][id$="_paginate"] > span > a.paginate_button:hover {
    color: white !important;
    background: none !important;
    background-color: #e7745d !important;
    border-color: #e7745d !important;
}

div[id^="tabledata"][id$="_paginate"] > span > a.paginate_button.current:hover {
    cursor: default !important;
    color: white !important;
}

div[id^="tabledata"][id$="_paginate"] > span > a.paginate_button.current {
    background: none !important;
    color: white !important;
    border-color: #33b535 !important;
    background-color: #33b535 !important;
}

.dataTable th {
    padding-left: 10px !important;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #4a4a4a;
    border: none !important;
    letter-spacing: 1px;
}

/* override bootstrap table bs */
.table > tbody > tr > td, .table > tbody > tr > th,
.table > tfoot > tr > td, .table > tfoot > tr > th,
.table > thead > tr > td, .table > thead > tr > th {
    vertical-align: middle;
    border-top: 0;
}

tbody {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
}

.dataTable tbody {
    font-size: 18px;
}

/* override jQuery */
table.dataTable {
    border-spacing: 0 7px;
}

.dataTable tr {
    height: 50px;
    background-color: #f4f4f4 !important;
}

.dataTable td, th {
    background-color: white !important;
}

.dt-right {
    padding-right: 50px !important;
}

.dataTable td {
    border-top: none;
!important;
}

.access-control-text {
    vertical-align: middle;
    display: inline-block;
    padding-left: 5px;
}

/*Hack for rounding each table row */
.dataTable tr td:first-child, tr th:first-child {
    border-radius: 15px 0 0 15px;
    -moz-border-radius: 10px 0 0 10px;
}

.dataTable tr td:last-child, tr th:last-child {
    border-radius: 0 10px 10px 0;
    border: none;
    -moz-border-radius: 0 10px 10px 0;
}

table.dataTable.no-footer {
    border-bottom: none;
}

/*
 * Table filter styling
 */
.refresh-filters {
    margin-right: 15px;
}

.filter-wrapper {
    margin-left: 35px;
    padding-right: 41px;
}

.active-filter-row {
    margin-left: 173px;
    margin-top: 5px;
}

.active-filter-wrapper {
    width: 300px !important;
}

.range-filter-right {
    margin-left: 2px;
}

.remove-filter-button {
    margin-left: 9px;
    cursor: pointer;
    margin-right: 12px;
}

.table-actions {
    min-width: 85px;
}

.table-actions img {
    width: 23px;
    height: 25px;
}

.black-grey {
    color: #383837;
}

.green {
    color: #479C16;
}

.delete-modal-toggle {
    cursor: pointer;
}

.input-element, .select2-selection, .dataTables_filter input, .dataTables_length select {
    color: #222222;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    border-radius: 30px !important;
    border-style: none !important;
    box-shadow: 1px 2px 3px lightgrey, -1px 2px 3px lightgrey;
    height: 32px !important;
    padding-left: 13px;
}

/*
 * Login form styling
 */
#login {
    margin: auto;
    max-width: 500px;
    padding: 20px;
}

.login-full-width {
    height: 100vh;
    width: 100vw;
    background: url('/public/img/backend/login-bg.png') center center no-repeat;
    background-size: 100vw 100vh;
}

.main-center div {
    margin: 2px;
}

.login-logo {
    height: 60px !important;
    color: #eeeeee !important;
    border: 0px !important;
    background: rgba(0, 0, 0, .25) !important;
}

#login img {
    width: 40% !important;
    height: 100% !important;
}

#login input {
    height: 64px !important;
    font-size: 15px !important;
    color: #eeeeee !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0px !important;
    background: rgba(0, 0, 0, .25) !important;
}

#login button {
    height: 64px !important;
    font-size: 15px !important;
    color: #eeeeee !important;
    margin: 0px !important;
    border: 0px !important;
    border-radius: 0px !important;
    background: rgba(0, 0, 0, .25) !important;
}

.copyright {
    color: white;
    width: 100%;
    text-align: center;
    display: inline-block;
}

/*
 * DTT logo in the bottom
 */
.menu-logo {
    position: fixed;
    padding-left: 50px;
    padding-bottom: 15px;
    bottom: 0px;
}

/**
 * Image Upload styles
 */
.image-holder > img {
    max-width: 200px;
    margin-bottom: 20px;
}

.image-holder > img.hidden {
    display: none;
    margin-bottom: 0px;
}

label.custom-file-upload input[type="file"] {
    position: fixed;
    top: -1000px;
}

.custom-file-upload {
    color: white;
    background: #041031;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
}

.custom-file-upload:hover, .custom-file-upload:active {
    color: #041031;
    background-color: white;
    border: #041031 1px solid;
}

.table-image {
    width: 100px;
    height: auto;
    max-height: 200px;
}

.filler {
    color: #FFF !important;
}

/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */
.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
    /* hide "loading..." text */
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    -webkit-animation: spinner 1500ms infinite linear;
    -moz-animation: spinner 1500ms infinite linear;
    -ms-animation: spinner 1500ms infinite linear;
    -o-animation: spinner 1500ms infinite linear;
    animation: spinner 1500ms infinite linear;
    border-radius: 0.5em;
    -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
    box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.input-element:focus, .dataTables_filter input:focus, .dataTables_length select:focus {
    border-color: #479C16;
    box-shadow: 0 0 8px #479C16 !important;
    outline: none;
}

.form-group .active-checkbox {
    display: none;
}

.form-group .active-checkbox + .btn-group > label span {
    width: 20px;
}

.form-group .active-checkbox + .btn-group > label span:first-child {
    display: none;
}
.form-group .active-checkbox + .btn-group > label span:last-child {
    display: inline-block;   
}

.form-group .active-checkbox:checked + .btn-group > label span:first-child {
    display: inline-block;
}
.form-group .active-checkbox:checked + .btn-group > label span:last-child {
    display: none;   
}

.time-center {
    text-align: center;
}
