html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .absolute-center {
        min-width: 90vw !important;
    }

    tr {
        display: grid;
        background: var(--bs-white) !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
        border: 1px solid #dee2e6 !important;
        border-radius: 0.5rem;
    }

    tr>td:first-child {
        border-start-end-radius: 0.5rem;
        border-start-start-radius: 0.5rem;
    }

    tr>td:last-child {
        border-end-end-radius: 0.5rem;
        border-end-start-radius: 0.5rem;
    }

    tr>td {
        --bs-table-accent-bg: var(--bs-white);
        border: none !important;
        border-color: transparent !important;
    }

    .table-striped>tbody>tr:nth-of-type(odd) {
        --bs-table-accent-bg: var(--bs-white);
    }

    thead {
        display: none;
    }

    .table-h-fixed {
        max-height: 100% !important;
    }

    .w-sm-100 {
        width: 100%;
    }

    .link-list-item {
        display: block;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #F8F9FA;
    color: #101720;
}

.cursor-pointer {
    cursor: pointer;
}

.absolute-center {
    min-width: 25vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fw-semibold {
    font-weight: 500;
}

.table-h-fixed {
    max-height: 62vh;
}

.table-h-fixed thead {
    position: sticky;
    top: -1px;
}

input[type="checkbox"][readonly] {
    pointer-events: none;
}

tr>td {
    text-align: center;
}

tr>td {
    align-content: center;
}

.order-details-items .table-h-fixed {
    max-height: 50vh;
}

#webcam-preview {
    display: none;
    background: black;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.btn-close-reader {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 2rem;
    border-radius: 50%;
    right: 2rem;
}

body.scanning>#webcam-preview,
body.scanning>.btn-close-reader {
    display: block !important;
}

body.scanning {
    overflow: hidden;
}

.swal2-popup.swal2-modal.swal2-show:has(.swal-wide) {
    width: 1200px !important;
}

.anim-appear {
    animation: 0.3s ease-out 0s 1 appear;
}

@keyframes appear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.link-list-item:not(:last-child)::after {
    content: ",";
}

.form-switch.form-switch-lg .form-check-input {
    height: 1.7rem;
    width: calc(2.5rem + 0.75rem);
    border-radius: 4rem;
}

.badge-bg-inprogress {
    background-color: var(--bs-warning);
    color: var(--bs-gray-800);
}

.badge-bg-placed,
.badge-bg-editable {
    background-color: var(--bs-primary);
}

.badge-bg-fulfilled,
.badge-bg-finalized {
    background-color: var(--bs-success);
}




.lds-spinner,
.lds-spinner div,
.lds-spinner div:after {
    box-sizing: border-box;
}

.lds-spinner {
    color: var(--bs-primary);
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3.2px;
    left: 36.8px;
    width: 6.4px;
    height: 17.6px;
    border-radius: 20%;
    background: currentColor;
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.nav-item {
    border-bottom: 1px solid transparent;
}

.nav-item.active {
    border-bottom: 1px solid var(--bs-gray-500);
}

.mobile-tile {
    display: none;
}

@media (max-width: 768px) {
    .mobile-tile {
        display: block;
        font-weight: bold;
        padding-bottom: 0px !important;
        color: black;
    }

    .mobile-value {
        padding-top: 0px !important;
    }
}

.form-switch-margin-override {
    padding: 0px;
    margin-left: 0px;
}

.hidden {
    display: none !important;
}

.mandatory {
    border-color: red;
}

.save-button-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 55px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    z-index: 1000;
    padding: 0.5rem 1rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.save-button-bar {
    margin: 0 auto;
    display: block;
}

.floatbutton {
    /*Alkalmazáskor style-al, vagy "hidden" attribúttal el kell rejteni a gombot, és majd az alsó sávban a (site.)JS megjeleníti.*/
}

.login-google-icon {
    width: 36px;
    margin-left: 2px;
    margin-right: 6px;
}

.login-google-text {
    font-family: "Google Sans", arial, sans-serif;
    font-size: 14px;
    padding-left: 6px !important;
    flex-grow: 1;
    letter-spacing: 0.25px;
}

@keyframes login-google-container-hover {
    from {
        background-color: #1a73e8;
    }

    to {
        background-color: #5194EE;
    }
}

.login-google-container {
    background-color: #1a73e8;
}

.login-google-container:hover {
    animation: login-google-container-hover;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
}

.btn-pop-light {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-pop-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* A link színek felülírása a statisztikai kártyákhoz */
a.text-decoration-none:hover .btn-pop-light .text-primary,
a.text-decoration-none:hover .btn-pop-light .text-success,
a.text-decoration-none:hover .btn-pop-light .text-info,
a.text-decoration-none:hover .btn-pop-light .text-warning {
    opacity: 0.8;
}

.btn-pop {
    transition: transform 0.15s ease-in-out;
    cursor: pointer;
}

.btn-pop:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}