﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
main {
    background-color: #f3f4f6 !important;
}


.notifications {
    width: 90vw;
}


header {
    box-shadow: none !important;
}

.chart-height {
    height: fit-content;
}

.modal.fade .modal-dialog {
    --bs-modal-width: 95%;
}

.kacicheck {
    width: 1.5em;
    height: 1.5em;
    border: 0.1rem solid black;
}

    .kacicheck:hover:not(:checked) {
        background: #0d6efd;
        cursor: pointer
    }

.camera-modal {
    --bs-modal-width: 60% !important;
}

/*.datatable-search {
    border: 1px solid rgba(1,41,112,.1);
    border-radius: 0.3rem
}*/

/*.scrollable-table {
    height: 75lvh !important;
    overflow-x: hidden;
}*/

.img-qr {
    max-width: 90px;
    width: 60%;
}

html {
    font-size: 14px;
}

.qrkod {
    display: none;
}


.mesenger-wrapper {
    bottom: 10%;
    margin: 1rem;
    position: fixed;
    right: 0;
}

.content {
    background-color: lightblue;
    border-radius: 0.4rem;
    bottom: 0;
    height: 400px;
    margin: 0;
    position: absolute;
    right: 100%;
    transform: scaleY(0);
    transition: all 0.3s linear;
    width: 30vw;
}

    /*.content .card-body {
    display: flex;
    flex-direction: column;
    max-height: 400px;*/
    /* Set an appropriate height */
    /*overflow-y: auto;*/
    /* Enable vertical scrolling */
    /*}*/

    .content .card-body::-webkit-scrollbar {
        width: 10px;
    }

    /* Track */

    .content .card-body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Handle */

    .content .card-body::-webkit-scrollbar-thumb {
        background: #888;
    }

        /* Handle on hover */

        .content .card-body::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

    .content #discussion {
        flex: 1;
        list-style: none;
    }

.mesenger-button {
    bottom: 0;
    position: sticky;
}

.show {
    transform: scaleY(1);
}

@media (min-width: 786px) {
    html {
        font-size: 16px;
    }

    .img-qr {
        min-width: 70px;
        width: 100%;
    }

    .notifications {
        width: 400px;
        height: 400px
    }
}

html {
    min-height: 100%;
    position: relative;
}

body {
    margin-bottom: 60px;
}

.table-layout {
    table-layout: fixed;
}

.button-wrapper {
    display: grid;
    gap: .5rem;
}

.button-wrapper2 {
    display: flex;
    gap: .5rem;
}

    .button-wrapper *,
    .button-wrapper2 * {
        border-radius: .25rem !important;
        display: block;
        width: 100%;
    }

.btn-warning {
    --bs-btn-bg: #ffe69c !important;
}

/*////Table Editing*/

.imagesInTable {
    width: 5rem !important;
}

.mobile-only {
    display: none
}

.step-wrapper {
    position: relative;
}

.steps .btn-outline-primary {
    margin: .3rem;
    width: 100%;
}

.steps {
    display: none;
    /* min-height: 400px; */
    padding: .5rem;
}

.active {
    display: block
}


    .active > .btn {
        background: #0b5ed7 !important;
        color: #fff;
    }

.button-group {
    border-bottom: .23rem solid rgba(1, 41, 112, .1);
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: .5rem;
}

    .button-group button {
        cursor: default !important;
        /* Set cursor to not-allowed for disabled state */
    }

        .button-group button:not(.active):hover {
            background: transparent !important;
            color: var(--bs-btn-hover-bg);
        }

        .button-group button.active {
            background-color: var(--bs-btn-hover-bg);
            color: white;
        }

.camera-button {
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    font-size: 24px;
    /* Adjust the icon size as needed */
    padding: 10px;
    /* Adjust the padding as needed */
}

    .camera-button i {
        color: #007bff;
        /* Set your desired icon color */
    }

.btn {
    border-radius: .2rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection {
    padding: 2rem !important;
}

.command-buttons {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media only screen and (max-width: 1150px) {
    .dynamic-header thead {
        display: none;
    }

    .dataTables_length,
    .dataTables_filter {
        width: 50%;
        z-index: 10 !important
    }

    .dynamic-header tr {
        border: 2px solid rgba(1, 41, 112, .1);
        border-radius: .3rem !important;
        display: grid;
        overflow: hidden !important;
        margin: 10px;
    }

    .dynamic-header td[data-header]::before {
        content: attr(data-header);
        font-weight: bold;
    }

    .mobile-only {
        display: block;
    }

    .mobile-scroll {
        height: 90lvh;
        overflow-x: scroll;
    }

    .desktop-only {
        display: none
    }

    .button-wrapper {
        display: flex
    }
}



/* Styles for the modal container */

#modal-container {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background overlay */
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    z-index: 1000;
}

.cameraStyle {
    background: rgba(1, 41, 112, .3);
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    z-index: 9999;
}

.footer {
    bottom: 0;
    line-height: 35px;
    padding: 0 !important;
    position: fixed !important;
    white-space: nowrap;
    width: 100%;
}

/* Styles for the modal content */

#modal-content {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

/* Add the necessary styles for the fade-in and fade-out transition */

#alert {
    display: none;
}

.alert-show {
    display: block;
}

/*#reader {
    position: fixed;
    width: 600px;
    border: none !important;
}*/

#reader img,
#haha img {
    display: none
}

#reader__dashboard_section > div:last-child,
#haha__dashboard_section > div:last-child {
    display: none;
}


.footer {
    background: white;
    bottom: 0;
    position: fixed !important;
    width: 100%;
}

/*.datatable {
    overflow-wrap: anywhere;
    table-layout: fixed !important;
}*/
.dataTables_wrapper .dataTables_length {
    float: initial !important;
}

.dataTables_wrapper .dataTables_filter {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 999;
    padding-bottom: 2rem;
}

    .dataTables_wrapper .dataTables_filter label {
        display: flex !important;
        align-items: center;
    }

.dt-buttons {
    margin-top: 2rem;
}

tr:has(div.recycle) td {
    background-color: #c1c1cd !important;
}

tr:has(div.depreciated) td {
    background: #a63d3d;
}



.ri-error-warning-fill {
    color: #ffc107;
    font-size: 50px
}


/*.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    display: none !important
}
*/
.dt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.buttons-pdf,
.buttons-excel,
.buttons-print {
    padding: .5rem 1rem;
    border-radius: .3rem;
    border: none;
    color: white;
    flex: 1;
}

.table.dataTable
.buttons-pdf {
    background: #269ffb;
}

.dataTable {
    font-size: 15px !important;
}

.buttons-excel {
    background: #0d6efd;
}

.buttons-print {
    background: #1105;
}

.table {
    width: 100% !important;
}


.shadow-LoDeOld th:nth-child(3),
.shadow-LoDeOld td:nth-child(3),
.shadow-LoDeOld th:nth-child(2),
.shadow-LoDeOld td:nth-child(2) {
    background: #d8dce3;
    border-radius: 0.2rem
}

.remove-transition {
    opacity: 0;
    transition: opacity .5s ease-out;
    /* You can adjust the duration and easing as needed */
}

td:has(.hide),
th:has(.hide) {
    display: none !important;
}

#html5-qrcode-button-camera-stop,
#html5-qrcode-button-camera-start {
    background: #007bff;
    border: none;
    padding: .5rem 1rem;
    border-radius: .3rem;
    color: white;
}

li {
    list-style: none;
}

.dropdown-menu.show {
    overflow: auto;
    max-height: 300px;
}

.card-body {
    overflow: auto
}

body {
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    background-color: #fff;
    height: 8px;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

.loading-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    font-size: xx-large;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

    .loader::before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #000;
        animation: prixClipFix 2s linear infinite;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)
    }

    25% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)
    }

    50% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)
    }

    100% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)
    }
}

/*
//RequestCard Color*/
.bg-lightBlue {
    /*background-color: #8aa2bf85;*/
    background-color: cornflowerblue;
    color: white;
    padding: 1rem !important;
}

.bg-purple {
    background-color: #48007fc7
}

.custom-badge {
    width: 14px;
    height: 14px;
    border-radius: 100% !important;
    margin-right: .3rem;
}

.fit-content {
    width: fit-content;
}

.buttons-pdf {
    background: gray
}


.checkbox-list {
    margin-bottom: 20px;
}

.checkbox-label {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
}

.checkbox-label:hover .checkbox-custom {
    background-color: #f0f0f0;
}

.checkbox-input:checked ~ .checkbox-custom:after {
    content: '';
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



.swal-custom-popup {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swal-custom-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.swal-custom-confirm {
    background-color: #007bff !important;
    color: white !important;
    font-size: 16px !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
}

.swal-custom-cancel {
    background-color: #dc3545 !important;
    color: white !important;
    font-size: 16px !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
}
