﻿:root {
    --sidemenu-w: 17em;
    --sidemenu-c: 3.5em;
    --sidemenu-bg: #ffffff;
    --toolbar-h: 3.5em;
    --toolbar-bg: #2C3E50;
    --footer-h: 3.5em;
    --fill-dark: #333333;
    --fill-light: #ffffff;
    --shadow: rgba(0, 0, 0, 0.25);
    --bg-white: #ffffff;
    --dark-bg: #424242;
    --readonly-bg: #FAFAFA;
    --transparent-bg: rgba(0, 0, 0, 0);
    --page-bg: #F5F5F5;
    --footer-bg: #F4F6F9;
    --primary-red: #EA1F23;
    --text-dark: #061213;
    --soft-red: #E74C3C;
    --dark-blue: #1f618d;
    --darker-blue: #34495e;
    --accent-color: #475F7B;
    --green-color: #27ae60;
    --loading-background-s1: #EF9A9A;
    --loading-background-s2: #E57373;
    --loading-background-s3: #EF5350;
    --loading-background-s4: #F44336;
    --loading-background-s5: #E53935;
    --background-btn: #006064;
    --overlay-bg: rgba(0, 0, 0, 0.25);
    --font-color-dark: #333333;
    --font-color-light: #ffffff;
    --icon-color-dark: #333333;
    --icon-color-light: #ffffff;
    --background-btn-back: #0582ff;
    --dismiss-color: #E0E0E0;
    --line-black: #000000;
    --btn-install-bg: #FFECB3;
}

body {
    font-family: "Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    background: var(--page-bg);
    margin: 0;
    padding: 0;
    color: var(--icon-color-dark);
    height: 100%;
}

*, ::after, ::before {
    /*box-sizing: revert !important;*/
}

h4 {
    font-size: 1.5rem !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    margin: 0;
}

p {
    margin: 0
}

svg {
    min-width: 36px;
}

.no-padding {
    padding: 0 !important;
}

.pointer {
    cursor: pointer;
}

.hidden-item {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: 1s;
}

.container {
    margin: 5px;
    padding: 10px;
}

.card-container {
    padding: 16px;
    background: var(--bg-white);
    box-shadow: 0 4px 4px var(--shadow);
    border-radius: 5px;
}

.img-container {
    position: relative;
    padding: 12px;
    transition: 1s;
}

.grid-container {
    display: grid;
    align-items: flex-start;
}

    .grid-container > * {
        display: flex;
    }

.set-fai-c {
    align-items: center;
    margin-bottom: 1em;
}

.button {
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 8px 16px;
    background: none;
    font-size: 1em;
    font-weight: 500;
}

.floatingActionButton {
    height: 45px;
    width: 45px;
    background: var(--primary-red);
    border-radius: 100%;
    position: fixed;
    right: 0.5em;
    bottom: 1em;
    transform: translate(-70%,-100%) scale(1.4);
    z-index: 10;
    transition: .5s;
    color: var(--font-color-light);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px, 2px 2px 5px 1px rgba(255,255,255,0.25) inset;
}

.overlay {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
}

.content {
    display: grid;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--page-background);
    transition: .3s;
    align-content: space-between;
    min-height: calc(100vh - var(--toolbar-h));
}

.footer {
    max-width: calc(100vw - var(--sidemenu-c));
    min-height: var(--footer-h);
    margin-top: 1em;
    text-align: center;
    color: var(--bs-secondary);
    /*background-color: var(--footer-bg);*/
    border-top: 1px solid var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center
}

main {
    width: 100%;
    overflow: hidden;
    transition: .7s;
    transition-timing-function: cubic-bezier(0.65, 0.05, 0.02, 0.92);
}

.card {
    width: calc(100vw - var(--sidemenu-c) - 2em);
    transition: .8s !important;
}

.buttonAction.btn.btn-sm, .btn-login {
    background: var(--dark-blue);
    color: var(--font-color-light);
    font-size: 1rem;
    border-radius: 6px !important;
    font-weight: bold;
    height: 40px;
    width: 12em;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px, 2px 2px 5px 1px rgba(255,255,255,0.25) inset;
}

    .buttonAction.btn.btn-sm:hover, .buttonBase.btn.btn-sm:hover, .btn-login:hover {
        background-image: linear-gradient(rgb(0 0 0/10%) 0 0);
    }

#btnBack {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-login {
    height: 40px;
    width: auto;
    align-items: center;
    background: var(--background-btn);
    color: var(--font-color-light);
}

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    list-style-type: none;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: "Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important;
}

.input-group button {
    height: 38px;
    border-radius: 10px;
    color: var(--fill-light);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px, 2px 2px 5px 1px rgba(255,255,255,0.25) inset;
}

    .input-group button:hover {
        color: var(--fill-light);
        background-image: linear-gradient(rgb(0 0 0/10%) 0 0);
    }

.input-group #ScanMeter {
    display: none;
}

@media only screen and (min-height: 420px) and (min-width: 600px) {
    .floatingActionButton {
        width: 10em;
        height: 45px;
        margin: auto;
        padding: 16px;
        border-radius: 6px;
        position: relative;
        right: 0;
        transform: translate(0%);
        gap: 12px;
        z-index: 2;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px, 2px 2px 5px 1px rgba(255,255,255,0.25) inset;
    }

    .hidden-item {
        width: fit-content;
        overflow: visible;
        opacity: 1;
    }

    #btnSave, #btnBack {
        width: auto !important;
        flex-grow: 1;
        flex-shrink: 1;
    }
}
/*
	Max width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.
	*/

@media only screen and (min-width: 995px) {

    #divChartMeterRecorder {
        width: 100% !important;
    }

    canvas#rentalInfoChart {
        height: 30em !important;
    }

    canvas#occupancyChart {
        height: 30em !important;
    }

    canvas#rentalInfoChart.pie {
        width: 30em !important;
    }

    canvas#occupancyChart.pie {
        width: 30em !important;
    }

    #toggleChartType {
        width: 6em !important;
        height: 3em !important;
    }

    #toggle {
        height: 2.7em !important;
        width: 2.7em !important;
    }

}

@media only screen and (max-width: 995px) {

    main .main-container {
        min-width: 100%;
    }

    main.opened .card {
        width: calc(100vw - 1em) !important;
    }

    .card {
        width: calc(100vw - 1em);
    }

    .rental.input-group button {
        width: 100% !important;
    }

    .footer {
        max-width: 100vw;
    }

    .content-filter > div > div {
        width: 32%;
    }

    .content-filter div > span {
        width: 100% !important;
    }

    .rentalInfoButton {
        margin-top: 0.2em;
    }
}

@media only screen and (max-width: 767px) {
    .rental.input-group button {
        width: 50% !important;
        margin: auto;
    }

    .content-filter > div > div {
        width: 100% !important;
        height: 46px;
    }

    /*canvas#rentalInfoChart {
        height: 15em !important;
    }

    canvas#rentalInfoChart.pie {
        width: 15em !important;
    }

    canvas#occupancyChart {
        height: auto !important;
    }

    canvas#occupancyChart.pie {
        width: auto !important;
    }*/
    
}

@media only screen and (min-width: 450px) {
    .gridjs-pagination .gridjs-summary {
        margin-right: 1.5em;
    }
}

.gridjs-pagination .gridjs-summary {
    margin-bottom: 1em;
}

table {
    border-collapse: collapse;
    table-layout: fixed;
}

thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

td, th {
    min-width: 12em;
}

    td button:hover {
        background-image: linear-gradient(rgb(0 0 0/10%) 0 0);
    }

.table > :not(caption) > * > * {
    padding: 0.5rem 0.5rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

main .main-container {
    max-width: calc(100vw - var(--sidemenu-c));
    padding: 0.5em;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #e3e6f0;
    min-width: 100%;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgb(33 40 50 / 15%);
}

.gridjs-footer {
    box-sizing: border-box !important;
}

.gridjs-pagination {
    text-align: center;
}

.filter-button {
    display: flex;
    column-gap: .7em;
    padding: 0 !important;
    align-items: center;
}
.slider-button {
    /*margin-right: -2em;*/
    margin-left: auto;
    display: flex;
    column-gap: .7em;
    padding: 0 !important;
    align-items: center;
    justify-content: flex-end;
}
.backRental {
    /*margin-top: 1em;*/
    display: flex;
    column-gap: .7em;
    padding: 1px !important;
    align-items: center;
    justify-content: flex-end;
}

.filter-button button {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px, 2px 2px 5px 1px rgba(255, 255, 255, 0.25) inset;
    }

.buttonBase.btn.btn-sm, #cancelMeterRecorder, #updateMeterRecorder, #saveMeterRecorder {
    background-color: var(--primary-red);
    font-weight: 600;
    font-size: .9em;
    border-radius: 5px;
    color: var(--font-color-light);
    width: 10em;
    height: 2.6em;
    border: none;
}

.buttonGrid {
    border: none;
    background-color: var(--primary-red);
    color: white;
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border-radius: 5px !important;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px, 2px 2px 5px 1px rgba(255, 255, 255, 0.25) inset;
}

#addMeterRecorder {
    width: 9em;
    /*margin: 0 1em .5em;*/
    background-color: var(--accent-color);
}
#BtnVerification {
    width: 12em;
    /*margin: 0 1em .5em;*/
    background-color: var(--accent-color);
}

#saveMeterRecorder, #cancelMeterRecorder, #updateMeterRecorder {
    width: 7em;
    background-color: var(--dark-blue);
}

#generateTableTitleMeterRecorder {
    font-size: 3em;
    margin-top: 1em;
}

#buttonGenerateMeterRecorder, #buttonFromPrev {
    width: 9em;
    background-color: var(--accent-color);
}

.input-group #filter {
    background-color: var(--dark-blue);
    width: 8em;
}

.content-filter {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    width: 97%;
    min-width: 97%;
    border-radius: 5px;
}

#filter-table {
    /*overflow: hidden;*/
    /*max-height: 22em;*/
    /*max-height: 0;*/
    /*transition: max-height 3s ease-in;*/
}

    #filter-table > div {
        width: 97%;
    }

/*POPUP*/
.swal2-actions button {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px, 2px 2px 5px 1px rgba(255,255,255,0.25) inset;
}

.swal2-actions .swal2-confirm {
    /*background-color: var(--green-color) !important;*/
}

    .swal2-actions .swal2-confirm:focus {
        box-shadow: 0 0 0 3px rgb(39 174 96 / 50%) !important;
    }

.zoom-slider {
    width: 100%;
    margin-top: 5px;
}

.swal2-container {
    padding: 1em !important;
    z-index: 1000000;
}

.btn-close {
    color: #ccc !important;
}

    .btn-close:hover {
        color: #f27474 !important;
    }

.modal-title:not(:first-child) {
    margin-top: .3em;
    margin-bottom: .5em;
}

.modal-footer button {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px, 2px 2px 5px 1px rgba(255,255,255,0.25) inset;
}

    .modal-footer button:hover {
        background-image: linear-gradient(rgb(0 0 0 / 10%) 0 0);
    }

#btnConfirmationBackYes:focus {
    box-shadow: 0 0 0 3px rgb(39 174 96 / 50%) !important;
}

#btnConfirmationBackNo:focus {
    box-shadow: 0 0 0 3px rgb(92 99 106 / 50%) !important;
}

#btnConfirmationCancel:focus {
    box-shadow: 0 0 0 3px rgb(52 73 94 / 50%) !important;
}

#divChartMeterRecorder {
    width: 100%;
    margin: auto;
}

h3#title {
    width: auto;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: .5em;
}

#toggleChartType {
    width: 5em;
    /*margin-top: 1em;*/
    margin-right: 1em;
    border: none;
    background-color: lightgray;
    height: 2.5em;
    border-radius: 10em;
    display: flex;
    align-items: center;
    transition: all 0.4s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px, 2px 2px 5px 1px rgba(255,255,255,0.25) inset;
}

#toggle {
    border-radius: 10em;
    background-color: black;
    height: 2em;
    border: none;
    width: 2em;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease-in-out;
}

    #toggle svg {
        transition: transform 0.4s ease-in-out;
    }

#toggle.pie {
    transform: translateX(2.9em);
}
    #toggle.pie svg {
        transform: rotate(180deg);
    }
    #toggle.grid {
        transform: translateX(2.9em);
    }

        #toggle.grid svg {
            transform: rotate(180deg);
        }

/*KeyFrame Animation*/

@keyframes fade-out-right {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(15px);
        opacity: 0;
    }
}

@keyframes fade-out-left {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-10px);
        opacity: 0;
    }
}

@keyframes fade-in-right {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-left {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-fwd-center {
    0% {
        transform: translateZ(-1400px);
        opacity: 0;
    }

    100% {
        transform: translateZ(0);
        opacity: 1;
    }
}

/*Styling Chart for Occupancy + Rental Info*/
.filter-icon {
    width: 25px;
    height: 25px;
    margin-left: -15px;
    margin-bottom: .2em;
}

.back-icon, .toggle-icon {
    width: 30px;
    height: 30px;
}

.back-icon {
    background-color: black;
}

.filter-table {
    display: none;
}

.chart-title {
    display: block;
    text-align: center;
}

.rentalInfoChart, .occupancyChart {
    width: 65%;
}

/*Popup List*/

/* Modal overlay */
.modal-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal content box */
.modal-popup-content {
    background: white;
    padding: 10px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-popup-content .hover-bar {
    display: none !important;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 84%;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

    .close-btn:hover {
        color: #000;
    }

/* Fullscreen style for mobile */
@media (max-width: 800px) {
    .modal-popup-content {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 10px;
    }

    .close-btn {
        right: 5%;
    }
}