body {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#liveToast {
    z-index: 1;
    font-size: 20px;
    margin-bottom: 1rem;
}

#liveToast:hover {
    cursor: pointer;
}

.fa-solid {
    margin-right: 5px;
}

.spinner {
    text-align: center;
}

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.text-right {
    text-align: right;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

.wrapper {
    width: 65%;
    padding: 2em;
    margin: auto;
}

h1 {
    border-bottom: 1px solid #ccc;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 0 0 0.2em 0;
}

h4 {
    font-size: 18px;
}

a {
    color: #6fa8dc;
    font-weight: 300;
    text-decoration: none;
}

a:hover {
    color: #3d85c6;
}

.hotel-logo {
    height: 1em;
}

.menu-btn {
    font-size: 18.5px;
}

.dropdown-item:hover,
.dropdown-item:active,
.dropdown-toggle:hover {
    color: black;
    background-color: #e7f1ff;
}

.btn-primary:hover,
.btn-primary:active {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.dropdowns-div {
    display: flex;
}

.dropdowns-menu {
    background-color: #f5f5f5 !important;
}

.dropdowns-menu span {
    font-size: 3rem !important;
}

.dropdown-logout {
    background: none;
    border: none;
}

.btn-delete:hover,
.btn-delete:active {
    color: white;
}

.button-back {
    display: inline-flex;
    align-items: center;
}

#processingButton {
    background-color: #4CAF50;
    color: white;

    font-size: 1.65em;
    font-weight: bold;

    width: 100%;
    height: 3em;
    border-radius: 0.5em;
}

#processingButton:disabled {
    background-color: gray;
}

.loading {
    display: none;
}

.loading img {
    width: 1.5em;
}

.form-password {
    display: flex !important;
    padding: 0 !important;
}

.form-password input {
    padding: 6px 12px;
}

.form-password span {
    margin: 6px 12px;
}

.form-password:-internal-autofill-selected {
    appearance: menulist-button;
    background-image: none !important;
    background-color: light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important;
    color: fieldtext !important;
}

.form-password input {
    border: none;
    width: 100%;
}

.form-password input:focus {
    outline: none;
}

.form-password span {
    color: #337ab7;
    padding: 0 10px;
    cursor: pointer;
    background-color: #daeefe;
    border-radius: 100px;

    user-select: none;
    /* Standard syntax */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
}

#dropcontainer.dragover {
    background: #eee;
    border-color: #111;
}

.progress-container {
    margin-top: 15px;
    position: relative;
    height: 20px;
}

#progressBar {
    width: 0;
    height: 100%;
    background-color: #2ecc71;
    border-radius: 5px;
    transition: width 0.3s;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-size: 14px;
    display: none;
}

#sharedpoolProgressBar {
    width: 100%;
}

.scandit-progressbar-container {
    justify-content: top !important;
}

.header-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.back-button-div {
    margin-top: 2rem;
}

#search-options {
    display: flex;
    gap: 0.5rem;
}

#searchType {
    margin-bottom: 1rem;
}

.reservation {
    padding-bottom: 1rem;
    border: 1px solid #d9d9d9;
    padding: 1rem;
    margin-bottom: 1rem;
}

.reservation .submit {
    margin: 1rem 0;
}

.search-form div {
    margin-bottom: 1rem;
}

.search-form input {
    padding: 0.5rem 1rem;
}

.modal-body {
    flex: none;
    max-height: 80vh;
    overflow-y: auto;
}

input[type="checkbox"] {
    margin-right: 10px;
}

.search-form button,
.reservation .submit,
.modal-content .submit,
#create-profile,
#sharedpool {
    display: block;
    margin-top: 1rem;
    width: 100%;
    padding: .4em;
}

#result h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.scan-all-div {
    text-align: center;
    margin-bottom: 1rem;
}

.arrivalsTable .table-head,
.arrivalsTable .table-body {
    padding: 1rem 0;
}

.table-head,
.table-body:nth-child(odd) {
    background-color: #eeefef;
}

.pagination-div {
    text-align: center;
}

.arrivalsTable {
    font-size: 19px;
    width: 100%;
    text-align: center;
}

.searchGuestsTable,
.sharedpoolDocuments {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.searchGuestsTable .table-body:nth-child(odd),
.sharedpoolDocuments .table-body:nth-child(odd) {
    background-color: #cff4fca8;
}

.searchGuestsTable .table-head,
.sharedpoolDocuments .table-head {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.searchGuestsTable .table-head-labels,
.searchGuestsTable .guest-information-div,
.sharedpoolDocuments .table-head-labels,
.sharedpoolDocuments .guest-information-div {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.searchGuestsTable .table-head-labels,
.sharedpoolDocuments .table-head-labels {
    font-weight: 600;
    font-size: 0.95rem;
}

.searchGuestsTable .table-body,
.sharedpoolDocuments .table-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    transition: background 0.2s ease-in-out;
    border-radius: 10px;
}

.searchGuestsTable .guest-information-div,
.sharedpoolDocuments .guest-information-div {
    font-size: 0.9rem;
}

.searchGuestsTable .guest-information,
.sharedpoolDocuments .guest-information {
    margin: 0;
    word-break: break-word;
}

.searchGuestsTable .table-form,
.sharedpoolDocuments .table-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.searchGuestsTable .table-form .btn,
.sharedpoolDocuments .table-form .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.searchGuestsTable .table-form .btn-primary,
.sharedpoolDocuments .table-form .btn-primary {
    background-color: #3b82f6;
    border: none;
}

.searchGuestsTable .table-form .btn-primary:hover,
.sharedpoolDocuments .table-form .btn-primary:hover {
    background-color: #2563eb;
}

.searchGuestsTable .empty-div,
.sharedpoolDocuments .empty-div {
    display: none;
}

#documents tr {
    cursor: pointer;
}

.table-head-labels {
    display: flex;
}

.table-head,
.table-body,
.guest-information-div,
.guest-data-wrapper {
    display: flex;
    justify-content: space-around;
}

.arrivalsTable .table-form,
.arrivalsTable .empty-div {
    width: 40%;
}

.selectGuestButton,
.removeGuestButton,
.attach {
    margin-bottom: 1rem !important;
}

.removeGuestButton,
.selectGuestButton {
    margin-right: 10px;
}

.arrivalsTable .table-button,
#agreement,
#cameraPermission,
.alert,
#form-file-input {
    margin-top: 1rem;
}

.arrivalsTable .table-button button,
.modal-content .createGuestProfile {
    width: 100%;
    white-space: normal;
}

.long-btn {
    width: 100%;
    height: 3em;
    font-size: 1.5em !important;
    border-radius: 0.5em !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-data-modal,
.reservations-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.guest-data-modal-content,
.reservations-modal-content {
    margin: 4% auto;
    border: 1px solid #888;
    width: 90%;
    border-radius: 15px;
    height: 85vh;
}

.table-body .guest-information,
.table-head-labels p {
    min-width: 10rem;
}

.modal-content h4,
.modal-content .searchInput {
    margin: 1rem 0;
}

.close-modal {
    transform: translateX(50%) translateY(-50%);
    background-color: white;
    font-size: 35px !important;
    border-radius: 100px;
    border: 1px solid #aaa;
    width: 42px;
    height: 42px;
    text-align: center;
    color: #000;
    float: right;
    font-weight: bold;
    opacity: 1 !important;
    line-height: 1;
    margin-left: auto;
}

.close-modal:hover,
.close-modal:focus {
    background-color: #eaeaea;
    text-decoration: none;
    cursor: pointer;
}

.checkboxes-div label,
.checkboxes-div label input {
    margin-right: 1rem;
}

.document-img-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#opera-document-img,
#data-view-send-attachment {
    width: 50%;
}

/* OPERA CLOUD ATTACHMENT */

canvas {
    margin-bottom: 1rem;
}

#file-upload-container,
#btn-container,
#take-snapshot,
#send-file-attachment,
#send-camera-attachment {
    margin: 2rem 0;
}

#btn-container div.fade-in,
#camera-container.fade-in,
#file-upload-container.fade-in {
    width: 100%;
    display: flex;
    justify-content: space-between;
    animation: slideIn 0.5s ease-out;
}

#attachment-back-btn {
    margin-bottom: 1rem;
}

#btn-container #upload-attachment-type-container button,
#btn-container #scan-types-container button,
#btn-container #sharedpool-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 49%;
    height: 50vh;
    font-size: 25px;
}

#btn-container #upload-attachment-type-container button i,
#btn-container #scan-types-container button i,
#btn-container #sharedpool-buttons a i {
    font-size: 3rem;
}

#attached-file {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.documentSnapshot {
    display: none;
}

#canvas-container {
    display: flex;
    width: 100%;
}

#canvas-container canvas {
    margin-top: 1rem;
    height: auto;
    width: 100%;
}

#scan-heading {
    text-align: center;
    margin-bottom: 1rem;
    text-decoration: underline;
}


/* video,
.documentSnapshot {
    width: 100%;
} */

/* #cameraPlayer {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

#scannerFrame {
    /* position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 3px solid rgba(0, 255, 0, 0.7);
    box-sizing: border-box;
    pointer-events: none;
    border-radius: 8px; */
}

/* #scannerMask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 1rem;
}

#scannerMask::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 8px;

    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    mix-blend-mode: destination-out;
} */

.snapshot-options {
    margin: 1rem 0;
    text-align: center;
}

.snapshot-options label {
    width: 49%;
}

dotlottie-player {
    width: 100%;
    height: 300px;
    text-align: center;
}

#camera {
    position: relative;
    display: inline-block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    border-radius: 1rem;
}

.square {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    width: 90%;
    border: solid lime 1px;
    background: transparent;
}

.square i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.5);
}

.delete-row td {
    background-color: #f8d7da;
    color: #58151c;
}

.modal-content .currentDateFilterDiv {
    display: flex;
    justify-content: center;
}

.currentDateFilterDiv label {
    font-size: 1rem !important;
    width: 17rem !important;
    margin-top: 0 !important;
}

.input-group-text {
    background-color: #D1D3D4;
    color: #888;
}

.date-filter {
    height: 42px;
}

.modal-body .date-filter {
    width: auto;
}

.date-filter:hover:not(:has(input:disabled)) .form-control,
.date-filter:hover:not(:has(input:disabled)) .form-control::placeholder,
.date-filter:hover:not(:has(input:disabled)) .input-group-text {
    color: black;
    cursor: pointer;
}

.date-filter input:disabled {
    color: #888;
}

.date-filter input {
    border-radius: 5px;
}

.btn-update,
.btn-delete {
    margin: 0.5rem;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-img-div {
    position: relative;
    display: inline-block;
}

.lightbox-img-div img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.lightbox-img-div .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-div .btn-close:hover {
    opacity: 1;
    background-color: #f8f9fa;
}

.debug-table {
    margin: 1rem 0;
}

.debug-table input,
.debug-table select {
    width: 100%;
}
    
.debug-table th,
.debug-table .status,
.debug-table .status_code {
    text-align: center;
}

.debug-table .status .fa-x {
    color: #00ff33;
}

.debug-table .status .fa-check {
    color: #63E6BE;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media only screen and (max-width: 576px) {
    .d-flex.flex-column .order-2 {
        margin-top: 0.5rem;
        align-items: flex-end;
    }

    #sharedpool-buttons {
        display: block !important;
    }

    #sharedpool-buttons a {
        width: 100% !important;
        margin-bottom: 5px;
    }

    .guest-data-wrapper {
        display: block;
    }
    .showAvailableDocuments {
        width: 100%;
    }

    .table-actions {
        flex-direction: column;
    }
}

@media only screen and (max-width: 700px) {
    .filters {
        flex-direction: column;
        width: 100%;
    }

    .currentDateFilterDiv,
    .currentDateFilterDiv label {
        width: 100% !important;
    }
 
}

@media only screen and (min-width: 900px) {
    #documents tr:hover td {
        background-color: #cfe2ff;
    }
}

@media only screen and (max-width: 900px) {
    .wrapper {
        width: 95%;
    }

    #search-options {
        display: block;
    }

    .square i {
        transform: rotate(-90deg);
    }

    ::-webkit-scrollbar {
        width: 12px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    #btn-container #upload-attachment-type-container button,
    #btn-container #scan-types-container button {
        height: 35vh;
        font-size: 15px;
    }

    .guests thead {
        display: none;
    }

    .guests tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    .guests tbody tr td {
        display: block;
        padding: 8px 10px;
        border: none;
    }

    .guests tbody tr td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
    }

    .guests tbody tr td {
        font-size: 14px;
    }
}

@media only screen and (max-width: 1200px) {
    h1 {
        font-size: 36px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .table-body {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #0074d7;
        padding: 1rem !important;
    }

    .reservation {
        border: 1px solid #ddd;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .selectGuestButton,
    .modal-content .addGuestBtn,
    .removeGuestButton,
    .attach {
        display: block;
        width: 100%;
    }

    .guest-information {
        min-height: 3rem;
    }

    .searchGuestsTable .table-body {
        display: block;
    }

    .table-body .guest-information-div,
    .table-body .table-form {
        display: block;
        width: 100%;
    }

    .table-body .guest-information {
        text-align: left;
        border: none;
        position: relative;
        text-align: center;
    }

    .table-body .guest-information::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
        text-align: center;
    }

    .table-head {
        display: none !important;
    }

    .table-form {
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
    }

    .table-form button {
        width: 100%;
    }

    .table-actions {
        flex-direction: column;
    }
}

@media only screen and (max-width: 1350px) {
    .sharedpoolDocuments .table-body {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #0074d7;
        padding: 1rem !important;
    }

    .sharedpoolDocuments .table-body .guest-information-div,
    .sharedpoolDocuments .table-body .table-form {
        display: block;
        width: 100%;
    }

    .sharedpoolDocuments .table-body .guest-information {
        text-align: left;
        border: none;
        position: relative;
        text-align: center;
    }

    .sharedpoolDocuments .table-body .guest-information::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
        text-align: center;
    }

    .sharedpoolDocuments .table-head {
        display: none !important;
    }

    .sharedpoolDocuments .table-form {
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
    }

    .sharedpoolDocuments .table-form button {
        width: 100%;
    }

    .sharedpoolDocuments .table-actions {
        flex-direction: column;
    }
}

@media only screen and (max-width: 1900px) {
    #result .searchGuestsTable .table-body,
    #result .sharedpoolDocuments .table-body {
        display: block;
    }

    #result .searchGuestsTable .guest-information-div,
    #result .searchGuestsTable .table-form,
    #result .sharedpoolDocuments .guest-information-div,
    #result .sharedpoolDocuments .table-form {
        display: block;
        width: 100%;
    }

    #result .searchGuestsTable .table-form button,
    #result .sharedpoolDocuments .table-form button {
        width: 100%;
    }

    #result .table-body .guest-information {
        text-align: left;
        border: none;
        position: relative;
        text-align: center;
    }

    #result .table-body .guest-information::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
        text-align: center;
    }

    #result .table-head {
        display: none !important;
    }

    #result .table-form {
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
    }
}