

#formMeterRecord > div:first-child {
    width: 90%;
    padding: 12px;
    background: transparent;
    display: flex;
    gap: 2em;
    height: 15.5em;
}

#divMeterImage.img-container {
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 3px;
    height: 100%;
}

    #divMeterImage.img-container img {
        display: block;
        /*height: 230px;*/
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

#meterImageButton .ImgButton {
    display: flex;
    width: 1.5em;
    height: 1.5em;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 3px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

    #meterImageButton .ImgButton svg {
        width: 1em;
        height: 1em;
    }

#myCanvas {
    display: block;
    position: relative;
    width: 100%;
    transition: transform 0.2s ease;
}

#canvasGuide {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

#modalBodyDialogScanner video {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-body {
    padding: .5em;
}

/*#btnCapture.button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-white);
    box-shadow: 0 0 6px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.2);
    margin: 12px;
    transition: .7s;
}*/

#btnCapture.button {
    border-radius: 50%;
    border: 5px solid #34495e;
    background: none;
    width: 4.5em;
    height: 4.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px;
    opacity: .7;
    z-index: 1;
}

button#flashlight {
    position: absolute;
    top: .5em;
    right: .5em;
    padding: .5em .3em;
    width: 3em;
    height: 3em;
    transition: .7s;
    border-radius: 50%;
    background: linear-gradient(rgba(0, 0, 0, 0.2) 0 0);
    border: none;
}

    button#flashlight.button svg {
        padding: .1em;
    }

#canvasCropped {
    position: absolute;
    visibility: hidden;
    top: 0;
    left: 0;
}

.page-item.active {
    background-color: transparent;
}

    .page-item.active .page-link {
        background-color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
    }

.meter-button {
    flex-wrap: nowrap !important;
}

.meter-button, #ScanImg {
    margin-top: 1em;
}

    #ScanImg svg {
        width: 30px;
        height: 30px;
    }

.Action.gridjs-td {
    text-align: center;
}

.formInputGroup.meter {
    border-radius: 3px;
}

.imageModal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 11;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(2px);
}

.popupModal {
    animation-duration: 0.6s;
    aspect-ratio: 3 / 4;
    width: 80%;
}

.modalContent {
    width: 100%;
    display: block;
    image-resolution: from-image;
}

@keyframes open {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@keyframes close {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(0)
    }
}

#divMeterImageFull .deleteImg {
    display: none;
    align-items: center;
    justify-content: center;
}

    #divMeterImageFull .deleteImg svg {
        width: 1.4em;
        height: 1.4em;
    }

#divMeterImageFull .close {
    position: unset;
    right: 0;
}

.close {
    position: absolute;
    right: 1.3em;
    text-shadow: 0 0px 5px var(--line-black) !important;
    color: var(--font-color-light) !important;
    opacity: .7 !important;
    font-size: 2.8rem !important;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

.sync {
    /*width: 58.9%;*/
    display: flex;
}

.syncMeter {
    display: flex;
    flex-wrap: nowrap;
    gap: 1em;
    align-items: center;
}

.syncLog {
    display: flex;
    flex-wrap: nowrap;
    gap: 1em;
    align-items: center;
}

label#lblJumlahDataOffline {
    height: fit-content;
    padding-right: .5em;
}

button#SyncMeterRecorder {
    background: #5B7D86;
    color: var(--font-color-light);
    width: fit-content;
}

button#SyncLog {
    background: #ff6a00;
    color: var(--font-color-light);
    width: fit-content;
}

button#DeleteMeterRecording {
    background: var(--primary-red);
    color: var(--font-color-light);
    width: fit-content;
}

@media only screen and (max-width: 430px) {
    #filter {
        width: 10em;
    }

    .filter-button {
        flex-wrap: wrap;
        /*gap: 0;*/
    }

    /*#addMeterRecorder, #BtnVerification {
        margin-left: 1.1em;
    }*/
}

@media only screen and (max-width: 575px) {

    .sync {
        width: 100%;
        padding-right: 1em;
    }

    .modal-dialog {
        width: 90% !important;
        margin: 0 !important;
    }
}

@media only screen and (min-width: 995px){
    .bodyChart {
        padding-top: 0.4rem;
    }

    div.main-container:has(div.bodyChart) {
        padding-left: 1rem;
    }

    card-body {
        padding-top: 1rem;
    }
}

@media only screen and (min-width: 600px) and (max-width: 995px){
    card-body {
        padding-top: 1rem;
    }
}

@media only screen and (min-width: 600px) {
    div:has(#formMeterRecord) {
        margin-bottom: .5em;
    }

    .card-body {
        padding-bottom: 1rem;
    }

    #formMeterRecord > div:first-child {
        gap: 45px;
        width: auto;
        background: transparent;
        flex-direction: column;
        padding: 18px;
        align-items: center;
        justify-content: space-evenly;
        margin-bottom: auto;
    }

    #formMeterRecord .formInputGroup {
        width: 400px;
        gap: 15px;
    }

    .formInputGroup div#web {
        display: flex !important;
        flex-direction: column;
        gap: .5em;
    }

        .formInputGroup div#web .descMeterWeb, .formInputGroup div#web textarea#txtMeterDescWeb {
            height: 3.5em !important;
        }

        .formInputGroup div#web input, #web textarea {
            width: 100%;
        }

        .formInputGroup div#web label {
            width: 100%;
        }

    #formMeterRecord {
        flex-direction: row;
        justify-content: center;
        gap: 3em;
    }

    #divMeterImage.img-container {
        overflow: hidden;
    }

        #divMeterImage.img-container img {
            height: revert;
            height: 300px;
        }

    .meter-button, #ScanImg {
        margin-top: 1em;
    }

    .meter-button {
        flex-wrap: wrap;
    }

    .modalContent {
        /*width: 80%;*/
        max-width: 700px;
    }

    div div#mobile {
        display: none !important;
    }

    div#imageScanner {
        width: 100% !important;
    }

    .camera {
        height: auto !important;
    }
}

@media only screen and (min-width: 500px) and (min-height: 520px) {
    @keyframes fadeup {
        0% {
            z-index: initial;
            opacity: 0;
            transform: translate(-50%,100%);
        }

        100% {
            opacity: 1;
            transform: translate(-50%,-50%);
        }
    }

    #modalScanner {
        /*width: revert;*/
        max-width: 30vw;
        top: 50%;
        left: 50%;
    }

        #modalScanner.modal-open {
            opacity: 1;
            transform: translate(-50%, -50%);
            animation: .7s fadeup;
        }

        #modalScanner.modal-closed {
            opacity: 0;
            transform: translate(-50%, 100%);
        }

        #modalScanner .modaldialog {
            height: revert;
            /*max-height: 48vh;*/
        }

    .ScanCam {
        height: 17vh !important;
    }

    #modalBodyDialogScanner {
        height: revert !important;
    }

    /*#formMeterRecord > div:first-child {
        height: 22em;
    }*/

    div#mobile textarea {
        max-height: 165px !important;
    }
}

@media only screen and (max-height: 520px)and (min-width: 576px) {
    .col-sm-12 {
        padding: 4px;
        object-fit: revert-layer;
    }
}

@media only screen and (max-height: 520px)and (min-width: 450px) {
    @keyframes fadeup {
        0% {
            z-index: initial;
            opacity: 0;
            transform: translate(0%,100%);
        }

        100% {
            opacity: 1;
            transform: translate(0%,0%);
        }
    }

    #modalScanner .modaldialog {
        overflow-y: unset;
    }

    #dialogbox .modalfooter {
        position: absolute;
        top: 50%;
        right: 5%;
    }

    #modalBodyDialogScanner {
        width: 65vw;
        height: 100% !important;
    }

        #modalBodyDialogScanner video {
            height: 100%;
        }

    #modalScanner .modaldialog {
        justify-content: flex-start;
    }

    .col-sm-12 {
        padding: 4px;
        object-fit: revert-layer;
    }
}

@media only screen and (max-height: 520px)and (min-width: 390px) {
    .col-sm-12 {
        padding: 4px;
    }

    .row md-3 {
        padding: 12px;
    }
}

@media only screen and (max-width: 450px) {
    div#imageScanner {
        width: 50% !important;
    }

    div div#mobile {
        width: 50% !important;
    }

    #filter {
        width: 11em;
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 375px) {
    .meter-button {
        flex-direction: column-reverse;
    }

    #btnSave, #btnBack {
        width: auto;
    }

    /*#divMeterImage.img-container img {
        height: 150px;
    }*/

    .formInputGroup.meter {
        width: 90%;
    }

    .floatingActionButton {
        height: 43px;
        width: 43px;
    }

    label#lblJumlahDataOffline {
        /*margin-left: 1.5em;*/
    }

    /*#formMeterRecord > div:first-child {
        height: 16em;
    }*/

    div#mobile textarea {
        max-height: 60px !important;
    }
}

div#imageScanner {
    width: 40%
}

div div#mobile {
    display: flex;
    gap: .5rem;
    width: 60%;
}

div#mobile textarea {
    min-height: 54px;
    max-height: 105px;
    height: 100%;
    flex-shrink: 1;
}

div#mobile > div {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0;
}

.formInputGroup div#web {
    display: none;
}

/*#modalScanner {
    transform-origin: top left;
    transform: rotate(0deg);
}

@media screen and (orientation: landscape) {
    #modalScanner {
        transform-origin: top left;
        transform: rotate(-90deg) translate(-100%);
        height: 100vw;
        width: 100vh;
    }

    #dialogbox {
        height: 100vw;
    }

    .ScanCam {
        height: 28.5em !important;
    }

    #modalBodyDialogScanner video {
        transform-origin: top left;
        transform: rotate(-90deg) translate(-100%);
        height: 21.2em;
        width: auto !important;
    }
}*/

.ScanCam {
    height: 100%;
}

#qr-shaded-region {
    margin-top: auto;
    border-color: rgba(0,0,0,0) !important;
    height: 70%;
}

#cameraOptions button {
    padding: .3em .8em;
    /* border-radius: 50%; */
    font-size: 1.2rem;
    text-wrap: nowrap;
    width: 15em;
    border: none;
}

    #cameraOptions button.active {
        background-color: var(--accent-color);
        color: var(--font-color-light);
    }

#modalBodyDialogScanner .modalfooter {
    margin-top: 1.5em;
}

button#showCameraOptions {
    position: absolute;
    top: .5em;
    left: .5em;
    padding: .5em .3em;
    width: 3.2em;
    height: 3.2em;
    transition: .7s;
    border-radius: 50%;
    background: linear-gradient(rgba(0, 0, 0, 0.2) 0 0);
    z-index: 6;
    border: none;
}

.camera-modal {
    display: none;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    opacity: 0;
    animation: slide-in-fwd-center 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

    .camera-modal.visible {
        display: block;
        opacity: 1;
    }

    .camera-modal > div {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.modal-dialog {
    position: absolute;
    left: 50%;
    transform: translate(-50%) !important;
    width: 100%;
    top: -5em;
}

.btn-close:focus {
    box-shadow: none !important;
}

.btn-close-back:focus {
    box-shadow: none !important;
}

.btn-close-back {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

    .btn-close-back:hover {
        color: #000;
        text-decoration: none;
        opacity: 0.75;
    }

    .btn-close-back:focus {
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(164, 22, 26, 0.25);
        opacity: 1;
    }

    .btn-close-back:disabled, .btn-close-back.disabled {
        pointer-events: none;
        user-select: none;
        opacity: 0.25;
    }

.btn-close-back-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/*#divDropDownNoteFilter {
    padding: 0
}*/
