﻿
@media(min-width: 769px) {
    div#camera {
        transform: scaleX(-1);
    }
    .p-lg-4{
        padding: 1.5rem;
    }
}

@media(max-width: 768px) {
    .k-grid .k-detail-row .k-detail-cell .k-grid {
        max-width: calc(100vw - 140px);
    }
    .w-sp-100 {
        max-width: 100%;
        min-width: 100%;
    }

    div#camera {
        max-width: 100%;
        transform: unset !important;
        object-fit: contain;
        height: calc(100vw - 30px);
    }
    .xs-ml-auto {
        margin-left: auto
    }
    input.k-input-inner::placeholder {
        font-size: 11px;
    }
    .k-input-md .k-input-inner {
        font-size: 11px !important;
    }
}

@media screen and (max-width:600px) {
    body, html {
        height: 100%;
        width: 100%;
        display: flex;
        overflow: auto;
    }
    .cs-submit-btn * {
        font-size: 18px;
    }
    .cs-flex-column{
        flex-direction: column !important;
    }
    .cs-flex-column > * {
        width: 100%;
    }
    .k-form-hint, .k-form-error {
        font-size: 11px;
    }

    .k-toolbar-item {
        width: 100%;
    }
    .flex-column-xs {
        flex-direction: column;
    }
    .img-carousel-content {
        min-width: 100% !important;
        min-height: 100% !important;
    }
    /*.cs-eeha .k-hierarchy-col, .cs-eeha no-children {
        width: 0px;
    }*/
    .cs-eeha .k-toolbar-item {
        width: 100%;
    }

    .pc {
        display: none !important;
    }

    .sp {
        display: flex !important;
    }

    .w-xs-100, div.w-xs-100 {
        width: 100% !important;
    }

    .k-window {
        max-width: 100%;
        max-height: 100% !important;
    }

        .k-window.k-dialog {
            height: auto !important;
        }

    .k-toolbar > .k-button {
        width: 100%;
    }

    .k-toolbar .k-input.k-grid-search {
        width: 100%;
    }

    /*.top-bar {
        display: none !important;
    }*/

    /*.side-bar {
        display: none !important;
    }*/

    .back-button {
        display: none !important;
    }

    .camera-window {
        height: 100% !important;
        width: 100% !important;
    }

    .modal-camera-btn {
        width: 60px;
        height: 60px;
        border-radius: 100px;
        background: #4ba327;
        border-color: #4ba327;
    }

        .modal-camera-btn > img {
            filter: brightness(0) invert(1);
            transform: scaleX(-1);
        }

        .modal-camera-btn:hover {
            background: #58d723;
        }

    .reject-btn {
        color: white;
        border-radius: 100px;
        background-color: #c73e34;
        border-color: #c73e34;
        padding: 8px 16px;
    }

        .reject-btn > img {
            filter: brightness(0) invert(1);
        }

        .reject-btn:hover {
            background-color: #f31700;
            border: 1px solid #ff6358;
        }

    .accept-btn {
        color: white;
        border-radius: 100px;
        background-color: #4ba327;
        border-color: #4ba327;
        padding: 8px 16px;
    }

        .accept-btn > img {
            filter: brightness(0) invert(1);
        }

        .accept-btn:hover {
            background: #58d723;
        }

    .imagecarousel-window {
        width: 100% !important;
        height: 50% !important;
    }

    .img-carousel-content {
        width: 100% !important;
        height: 100% !important;
    }

    .checklist-id {
        font-size: 14px;
        color: white;
    }

    .checklist-details {
        font-size: 16px;
        color: white;
        font-weight: 500;
    }

    video {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        transform: unset !important;
    }

    div#camera {
        overflow: hidden;
        width: 480px;
        max-height: calc(100% - 84px) !important;
        transform: scaleX(-1);
        max-width: 100%;
    }

    .gpt-header-dropdown {
        width: calc(100% - 30px);
        margin-left: 15px;
        max-height: 70%;
        left: 0;
    }

    .gpt-header img {
        width: 35px;
    }

    .width-30 {
        width: 20px;
    }

    .column-gap {
        column-gap: 4px;
    }

    .gpt-header {
        margin-left: 20px;
    }

    .row-gap {
        row-gap: 4px;
    }

    /*    PTW and custom forms*/
    .cs-form {
        flex-direction: column;
        position: relative;
    }

    .cs-form > * {
        min-width: 100%;
        overflow: unset !important;
        padding: 10px !important;
        background: #fff !important;
        margin: 0 !important;
        height: auto !important;
    }
    .cs-form > form {
        height: 100% !important;
    }
    .cs-form th {
        display: none;
    }
    .cs-form > .k-splitter {
        overflow: auto !important;
    }
    tr.cs-form-tr td:first-child {
        display: none;
    }

    .cs-form td, .cs-form tr {
        display: block;
        width: 100%;
        position: relative !important;
        top: 0;
        border-top: none;
        border-bottom: none;
    }

    .cs-table {
        display: block;
    }

    td.cs-form-itemdesc {
        display: flex;
        column-gap: 5px;
        background: #ddd;
    }

    .cs-form tr:last-child td:last-child {
        border-bottom: 1px solid #ddd;
    }

    .sp-td-radio-label {
        line-height: 1;
        font-weight: 500;
    }
    .k-notification-group {
        margin-top: 2px;
    }
}

@page {
    margin: auto;
    padding: 0;
}

@media print {


    footer {
        page-break-after: always;
    }

    .card-container {
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: avoid;
    }

    .images-wrapper {
        height: fit-content;
        column-gap: 8px;
        row-gap: 8px;
    }
}
