﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html {
    overflow-y: scroll;
}

body {
    padding-top: 65px;
    background: rgb(255,255,255);
    /*    background: radial-gradient(circle, rgba(255,255,255,1) 65%, rgba(206,229,230,1) 100%);*/
    background: radial-gradient(circle, rgba(255,255,255,1) 65%, rgb(206, 214, 230) 100%);
    /*background-color: #f7f7f7;*/
}

    body.dt-print-view {
        padding-top: 0 !important;
        background: none !important;
    }

html.dark, html.dark body {
    background-color: #575757;
}

.navbar {
    background-color: #091237 !important;
}

header .navbar .navbar-nav > li > a:hover,
header .navbar .navbar-nav > li > a:focus,
header .navbar .navbar-nav .nav-link:hover,
header .navbar .navbar-nav .nav-link:focus {
    background-color: #ef542b !important;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

.armas-bg-dark {
    background-color: #091237;
}

.alert-info {
    background-color: #f3f5fd !important;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

header .navbar-brand {
    font-size: 1.8rem;
}

header .navbar .nav-link {
    padding-top: .9rem;
    padding-bottom: .9rem;
    padding-left: 10px;
    padding-right: 10px;
}

header .navbar .btn-link {
    border: none;
}

header .navbar .navbar-nav > li > a:hover,
header .navbar .navbar-nav > li > a:focus,
header .navbar .navbar-nav .nav-link:hover,
header .navbar .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: #000;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.navbar-nav .dropdown-item {
    padding: .5rem 1.5rem;
}

header .navbar .navbar-nav > li > a:hover, header .navbar .navbar-nav > li > a:focus, header .navbar .navbar-nav .nav-link:hover, header .navbar .navbar-nav .nav-link:focus {
    background-color: #2f2c2b;
}

.sticky-offset {
    top: 54px;
}

.pagination .page-item {
    text-align: center;
}

.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #858585 !important;
    opacity: 1; /* Firefox */
}

.form-control::-ms-input-placeholder { /* Microsoft Edge */
    color: #858585 !important;
}

.nowrap {
    white-space: nowrap;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.form-control {
    color: #212529;
}


/* bootstrap-select*/
.bootstrap-select .no-results {
    padding: 4px 24px;
    background: #007bff;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.has-error .bootstrap-select .dropdown-toggle,
.error .bootstrap-select .dropdown-toggle,
.bootstrap-select.is-invalid .dropdown-toggle,
.was-validated .bootstrap-select select:invalid + .dropdown-toggle {
    border-color: #dc3545;
}

.bootstrap-select.has-new-option .no-results {
    background: #212529;
}

.bootstrap-select > .dropdown-toggle {
    border: 1px solid #ccc;
}

    .bootstrap-select > .dropdown-toggle.bs-placeholder {
        color: #858585;
    }

.bootstrap-select.disabled, .bootstrap-select > .disabled {
    background-color: #ccc;
}

.bootstrap-select .dropdown-item.new-item {
    background: #d1ecf1;
    color: #212529;
}

input[type=text].form-control,
.selectpicker + .btn.dropdown-toggle {
    border-color: #c4c4c4;
}

.selectpicker + .btn.dropdown-toggle {
    background-color: #fff;
}

/* bootstrap buttons hover */
.btn:hover, .custom-switch > label:hover {
    cursor: pointer;
}

/* bootstrap dropdown menu */
.dropdown-menu {
    z-index: 1021;
}

.modal-backdrop {
    width: 100%;
    height: 100%;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #ddd !important;
}

::-moz-placeholder { /* Firefox 19+ */
    color: #ddd !important;
}

:-ms-input-placeholder { /* IE 10+ */
    color: #ddd !important;
}

:-moz-placeholder { /* Firefox 18- */
    color: #ddd !important;
}

a.btn.disabled,
fieldset:disabled a.btn,
.disabled:hover,
:disabled:hover {
    pointer-events: none;
}


.fade-in {
    animation: fadeIn ease 1s;
    -webkit-animation: fadeIn ease 1s;
    -moz-animation: fadeIn ease 1s;
    -o-animation: fadeIn ease 1s;
    -ms-animation: fadeIn ease 1s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-ms-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.loading-panel {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    opacity: 0.8 !important;
    /*background-color: rgba(50, 50, 50, 0.1)!important;*/
    background-color: transparent;
}

    .loading-panel .loading-icon {
        position: fixed;
        left: 50%;
        top: 50%;
        width: 100px;
        height: 100px;
        margin-top: -50px;
        margin-left: -50px;
        z-index: 99999;
        color: #222;
        opacity: 0.9;
        -webkit-animation: spinning-cog 1.3s infinite ease;
        -moz-animation: spinning-cog 1.3s infinite ease;
        -ms-animation: spinning-cog 1.3s infinite ease;
        -o-animation: spinning-cog 1.3s infinite ease;
        animation: spinning-cog 1.3s infinite ease;
    }

@-webkit-keyframes spinning-cog {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes spinning-cog {
    0% {
        -moz-transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(360deg);
    }
}

@-o-keyframes spinning-cog {
    0% {
        -o-transform: rotate(0deg);
    }

    100% {
        -o-transform: rotate(360deg);
    }
}

@keyframes spinning-cog {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.table-data-table tr.selected {
    background-color: #d1ecf1 !important;
}

.table-data-table tr.row-selectable:hover {
    cursor: cell;
}

.table-data-table td {
    vertical-align: top;
}

.table-data-table tr > th:first-child,
.table-data-table tr > td:first-child {
    width: 25%;
}

/*.table-data-table tr > th:last-child,
.table-data-table tr > td:last-child {
    width: 80px;
}
*/
.table-data-table tr > th.date,
.table-data-table tr > td.date {
    width: 150px;
    text-align: center;
}

.table tr[data-row-state=disabled] label,
.table tr[data-row-state=disabled] input {
    pointer-events: none;
    opacity: 0.2;
}

.page-link {
    color: #343a40;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.page-item.active .page-link {
    background-color: #343a40;
    border-color: #343a40;
}

    .page-item.active .page-link:hover {
        color: #fff;
        background-color: #23272b;
        border-color: #1d2124;
    }

.toast {
    min-width: 200px;
}

#apiProgress {
    position: fixed;
    right: 20px;
    top: 70px;
}

.fc-view-harness.fc-view-harness-active {
    min-height: 56.5vh !important;
}

.fc-daygrid-day-frame {
    cursor: cell;
}

.fc-daygrid-event {
    cursor: text;
}

.fc-daygrid .fc-h-event .fc-event-time {
    overflow: visible;
}

#resourceCalendarContainer .tooltip .tooltip-inner {
    text-align: left;
}

.internal-event {
    cursor: pointer;
}

tr.past-time {
    /*color: #888;*/
}

    tr.past-time.odd td {
        background-color: rgba(0,0,0,.15)
    }

    tr.past-time.even td {
        background-color: rgba(0,0,0,.1)
    }

    tr.past-time.maintenance.odd td,
    tr.past-time.maintenance.even td,
    tr.past-time.repair.odd td,
    tr.past-time.repair.even td {
        background: none;
    }

#modalHeader.reservation,
.legend-item.reservation,
.fc-daygrid-event.reservation,
.fc-timegrid-event.reservation {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.fc-event.reservation .fc-list-event-dot {
    width: 14px;
    height: 14px;
    background-color: #007bff;
    border: calc(var(--fc-list-event-dot-width, 10px) / 2) solid var(--fc-event-border-color, #007bff);
}

#modalHeader.maintenance,
.legend-item.maintenance,
.fc-daygrid-event.maintenance,
.fc-timegrid-event.maintenance {
    background-color: #b59f00; /* if you change this, change the color on RMSConstants too */
    border-color: #b59f00; /* if you change this, change the color on RMSConstants too */
    color: #fff;
}

.fc-event.maintenance .fc-list-event-dot {
    width: 14px;
    height: 14px;
    background-color: #b59f00; /* if you change this, change the color on RMSConstants too */
    border: calc(var(--fc-list-event-dot-width, 10px) / 2) solid var(--fc-event-border-color, #b59f00); /* if you change this, change the color on RMSConstants too */
}

#modalHeader.repair,
.legend-item.repair,
.fc-daygrid-event.repair,
.fc-timegrid-event.repair {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.fc-event.repair .fc-list-event-dot {
    width: 14px;
    height: 14px;
    background-color: #dc3545;
    border: calc(var(--fc-list-event-dot-width, 10px) / 2) solid var(--fc-event-border-color, #dc3545);
}

.calendar-legend {
    margin-top: 15px;
}

    .calendar-legend div.legend-item {
        padding-top: 2px;
        padding-bottom: 2px;
        border-radius: .25rem;
        text-align: center;
    }

.fc .fc-list-event:hover td {
    background-color: transparent !important;
}

.fc-col-header,
.fc-list-day-cushion {
    background-color: #091237;
    color: #fff;
}

.fc .fc-daygrid-day-bottom {
    font-size: .75em;
    margin: 2px 3px 0;
    background-color: #717171;
    color: #fff;
    border-radius: 3px;
    padding-left: 2px;
    padding-right: 2px;
}

.vertical-event-type-strip {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    z-index: 1;
}

.maintenance {
    color: #fff !important;
    background-color: #b59f00 !important; /* if you change this, change the color on RMSConstants too */
}
/*.maintenance > a:hover {
    color: #222!important;
}*/

.repair {
    color: #fff !important;
    background-color: #dc3545 !important;
}

.reservation {
    color: #fff !important;
    background-color: #007bff !important;
}

    .maintenance a, .repair a, .reservation a {
        color: #fff !important;
    }


.has-permissions {
    background-color: #0075ff;
    color: #fff;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 30%);
    font-size: 14px;
}

table {
    border-collapse: separate;
    border-left: 0;
    border-radius: 4px;
    border-spacing: 0px;
}

.table .thead-dark th {
    background-color: #091237 !important;
}

.table th, .table td {
    border-color: #dcdcdc;
}

.table-danger th, .table-danger td {
    border-color: #ffaaaa;
}

thead:first-child tr:first-child th:last-child {
    border-radius: 0 4px 0 0;
}

thead:first-child tr:first-child th:first-child {
    border-radius: 4px 0 0 0;
}

tbody:last-child tr:last-child td:first-child {
    border-radius: 0 0 0 4px;
}

tbody:last-child tr:last-child td:last-child {
    border-radius: 0 0 4px 0;
}

.hover {
    cursor: pointer;
}

.card-images .form-row div.col {
    background-color: #ddd;
    border: 1px solid #ccc;
    /*max-width: 150px;*/
    max-height: 150px;
}

.thumb-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.progress {
    height: 2.2rem;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.tags-input-wrapper-default {
    padding: .375rem .75rem;
    border-color: #c4c4c4;
}

.tags-input-badge-selected-default {
    background-color: #007bff;
    color: #fff;
}

.tags-input-remove:before, .tags-input-remove:after {
    background: #fff;
    margin-top: 2px;
}

.tags-input-badge-selected-default {
    padding: 0.45em 1.25em 0.45em 0.6em;
}

.tags-input-typeahead-item-default,
.tags-input-typeahead-item-highlighted-default {
    padding: 0.45em 0.6em;
}

.typeahead-badges > span.typeahead-hide-btn:after {
    font-family: "Font Awesome 5 Free";
    content: "\f0e2";
    position: absolute;
    top: 6px;
    right: 6px;
}

.tags-input-badge-pill {
    border-radius: 4px;
}

.typeahead-hide-btn {
    background-color: #dc3545 !important;
    color: #fff !important;
    font-style: normal !important;
    padding-right: 1.8em;
}

.typeahead-badges {
    margin-bottom: 0;
}

.swal2-container {
    height: auto;
}

.highlight {
    background-color: #d1ecf1;
}


span.spacer {
    display: inline-block;
    padding-left: 15px;
}

    span.spacer.angle::after,
    span.spacer:last-child::after {
        font-family: 'Font Awesome\ 5 Free';
        content: "\f105\00a0";
        font-weight: 900;
    }



#helpPanel {
    height: 0;
    position: fixed;
}

    #helpPanel #iframeHelpPanel {
        flex-grow: 1;
        border: none;
        margin: 0;
        padding: 0;
    }

body.help-panel-open #helpPanel {
    height: 90vh;
    padding: 0 15px 15px 15px;
}

.side-panel {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    left: 0;
    bottom: 0;
    background-color: #fafafa;
    color: #222;
    border-top: 1px solid #bee5eb;
    overflow-y: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in the .side-panel-panel */
    -webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
    -moz-box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
}

    .side-panel > .container {
        padding: 30px 15px;
    }

    .side-panel .closebtn {
        position: sticky;
        align-self: flex-end;
        font-size: 36px;
        color: #222;
    }

        .side-panel .closebtn:hover {
            text-decoration: none;
        }

.rising-panel {
    height: 0;
    width: 100%;
    position: fixed; /* Stay in place */
    z-index: 9999; /* Stay on top */
    bottom: 0;
    left: 0;
    background-color: #def2f5;
    color: #222;
    border-top: 1px solid #bee5eb;
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in the rising-panel */
    -webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
    -moz-box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
}

    .rising-panel > .container {
        padding: 30px 15px;
    }

    .rising-panel .closebtn {
        /*position: absolute;*/
        /*top: 0;
        right: 25px;*/
        position: sticky;
        float: right;
        top: 0;
        right: 25px;
        font-size: 36px;
        /*margin-left: 50px;*/
        color: #222;
    }

        .rising-panel .closebtn:hover {
            text-decoration: none;
        }

.help-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    border-radius: 50%;
    font-size: 50px;
    color: #0273ff;
    -webkit-transition: opacity 0.5s ease-out;
    -moz-transition: opacity 0.5s ease-out;
    -o-transition: opacity 0.5s ease-out;
    opacity: 0.5;
    z-index: 1099;
}

    .help-icon:hover {
        cursor: pointer;
        opacity: 1;
    }

#helpPanel::-webkit-scrollbar {
    width: 5px;
}

.thin-scrollbar {
    scrollbar-width: thin; /* Firefox */
}

/* Track */
#helpPanel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
#helpPanel::-webkit-scrollbar-thumb {
    background: #888;
}

    /* Handle on hover */
    #helpPanel::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

#helpPanel img {
    border-radius: 6px;
    -webkit-box-shadow: 2px 2px 10px 2px rgba(0,0,0,0.3);
    -moz-box-shadow: 2px 2px 10px 2px rgba(0,0,0,0.3);
    box-shadow: 2px 2px 10px 2px rgba(0,0,0,0.3);
}

.white-exlamation-alert {
    color: #fff;
    font-weight: bold;
}

.red-exlamation-alert,
.duplicate-alert {
    color: #ff0000;
    font-weight: bold;
}

    .white-exlamation-alert::after,
    .red-exlamation-alert::after,
    .duplicate-alert::after {
        font-family: 'Font Awesome 5 Free';
        content: " \f071";
        font-style: normal;
    }

/* QR Code related styles */
.qrcode-stream-wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    z-index: 1100 !important;
}

#QRScanStopButton {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 1101;
}


.card-row-container > .card:nth-child(odd) {
    background-color: rgba(0,0,0,.05);
}

/* Mediaqueries */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .fc .fc-daygrid-day-events {
        margin-top: -6px;
    }

    .btn-md-block {
        display: block;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .fc .fc-toolbar {
        flex-wrap: wrap;
    }

    .fc-toolbar-chunk {
        flex: 0 1 100%;
        clear: both;
    }

    .page-item {
        flex: 1 1 auto !important;
    }

    div.table-responsive > div.dataTables_wrapper > div.row:last-child > div[class^="col-"]:first-child {
        padding-left: 15px;
    }

    div.table-responsive > div.dataTables_wrapper > div.row:last-child > div[class^="col-"]:last-child {
        padding-right: 15px;
    }

    .vertical-event-type-strip {
        top: 46px;
        width: 5px;
    }

    .btn-sm-block {
        display: block;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .btn-xs-block {
        display: block;
        width: 100%;
    }
}
