﻿.popover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background: transparent; 
}

.popover-box {
    position: absolute;
    color: #1E1E1E;
    border-radius: 8px;
    box-shadow: 0 15px 12px rgba(0,0,0,0.15);
    padding: 10px 14px;
    max-width: 260px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-5px);
}
.popover-box p{
    font-size: 18px;
    width: auto;
    margin-top: 0px;
}

.popover-overlay .popover-box {
    opacity: 1;
    transform: translateY(0);
}
.popover-box .popover-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #ffffff00; 
    top: 50%;
    left: -12px; 
    transform: translateY(-50%);
}

.booking-product-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.title-bold {
    font-weight: bold;
    margin-bottom: 5px;
}

.responsible-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.vagas-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.name-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.eye-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .eye-container > span.eye-message img {
        width: 25px;
        height: 25px;
        cursor: pointer;
    }

.vagas-titulo {
    font-weight: bold;
    margin-bottom: 5px; 
}

.sync-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 15px
}

.page-OfficeBooking-panel {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.calendar-section-OfficeBooking {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-OfficeBooking {
    background-color: #F4F4F4;
    padding: 20px;
    border-radius: 5px;
}

.calendar-datas-OfficeBooking {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-datas-OfficeBookingy span {
    background-color: #F4F4F4;
    padding: 20px;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
}

.section-OfficeBooking {
    width: 100%;
}

.battery-tags-officeBooking {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

    .battery-tags-officeBooking span {
        font-weight: 600;
        font-size: 20px;
    }

    .battery-tags-officeBooking div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

        .battery-tags-officeBooking div span {
            display: flex;
            gap: 10px;
            color: #515151;
        }

.battery-tags-red-officeBooking {
    background-color: #E40E18;
    padding: 0 40px;
    border-radius: 5px;
}

.battery-tags-yellow-officeBooking {
    background-color: #FF9D00;
    padding: 0 40px;
    border-radius: 5px;
}

.battery-tags-green-officeBooking {
    background-color: #00FF44;
    padding: 0 40px;
    border-radius: 5px;
}

.OfficeBooking-data {
    background-color: #F4F4F4;
    padding: 20px;
    border-radius: 5px;
    font-size: 20px;
    margin-top: 20px;
    cursor: pointer;
}

.OfficeBooking-data-heard {
    display: grid;
    grid-template-columns:0.3fr 0.3fr 1fr 1.3fr 0.5fr 1fr 0.3fr 0.3fr;
    gap: 10px;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
    .OfficeBooking-data-heard > .empty {
        visibility: hidden; /* ocupa espaço mas fica invisível */
    }



.OfficeBooking-data-bookings {
    max-height: 1000px; 
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

    .OfficeBooking-data-bookings.hidden {
        max-height: 0;
        opacity: 0;
    }

.OfficeBooking-data-bookings > span:last-of-type {
    align-items: self-end;
    display: flex;
}
.sync-container > span.sync-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFDE21;
    color: #d9534f;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
    font-weight: bold;
}

    .sync-container > span.sync-message img {
        width: 30px;
        height: 30px;
    }


.OfficeBooking-data-names {
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.OfficeBooking-data-names > div {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px 10px;
}

.customer-name-OfficeBooking {
    word-break: break-word;
    padding: 4px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.pagination-buttons {
    display: flex;
    justify-content: space-between; /* Alinha os botões nas extremidades */
    align-items: center; /* Alinha verticalmente */
    margin-top: 10px;
    width: 100%; /* Garante que ocupe toda a largura */
}

    .pagination-buttons button {
        padding: 4px 12px;
        background-color: #ddd;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

.pagination-total {
    font-weight: bold; /* Torna o texto mais destacado */
    font-size: 16px; /* Ajusta o tamanho da fonte */
    text-align: center; /* Centraliza o texto */
    flex-grow: 1; /* Permite que ocupe o espaço disponível */
    display: flex;
    justify-content: center; /* Garante que o texto esteja no centro */
}
    .OfficeBooking-data-bookings > span:last-of-type {
    align-items: self-end;
    display: flex;
    }

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 99999;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    font-size: 20px;
    font-family: 'BarlowCondensed', sans-serif;
    cursor: pointer;
    animation: toast-in .18s ease-out, toast-out .28s ease-in 4.7s forwards;
}


.toast-error {
    background: #E40E18; 
}

.toast-success {
    background: #28a745; 
}


@keyframes toast-in {
    from {
        transform: translate(-50%, -8px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translate(-50%, -6px);
    }
}

.booking-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.50);
    border-radius: 6px;
    pointer-events: none;
    z-index: 2;
}
    .booking-overlay.expired {
        position: absolute;
        inset: 0;
        background-color: rgba(0,0,0,0.50);
        border-radius: 6px;
        pointer-events: none;
        z-index: 2;
    }

.booking-overlay-message {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255,255,255,0.9);
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(2px);
    z-index: 3;
}
    .booking-overlay-message img {
        width: 40px;
        height: auto;
    }

@keyframes shake {
    0% {
        transform: translate(-50%, -50%) translateX(0);
    }

    20% {
        transform: translate(-50%, -50%) translateX(-4px);
    }

    40% {
        transform: translate(-50%, -50%) translateX(4px);
    }

    60% {
        transform: translate(-50%, -50%) translateX(-3px);
    }

    80% {
        transform: translate(-50%, -50%) translateX(3px);
    }

    100% {
        transform: translate(-50%, -50%) translateX(0);
    }
}

.booking-overlay-message.shake {
    animation: shake 0.4s ease;
}
.page-container-title .actions {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.button-container {
    display: flex;
    justify-content: center; 
    margin-top: 10px;
}


@media only screen and (min-width: 768px) and (max-width: 1326px) {
    .page-OfficeBooking-panel {
        flex-direction: column;
    }

    .calendar-datas-OfficeBooking {
        flex-direction: row;
    }

    .OfficeBooking-data-names > div {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 20px;
    }
}


@media (max-width: 768px) {

    .battery-tags-officeBooking {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-wrap: wrap;
    }

        .battery-tags-officeBooking span {
            font-weight: 500;
            font-size: 15px;
        }

    .page-OfficeBooking-panel {
        flex-direction: column;
    }

    .OfficeBooking-data-names {
        margin-bottom: 15px;
    }

    .OfficeBooking-data-names > div {
        display: grid !important;
        gap: 4px 20px;
        font-size: 13px;
    }

    .page-container-title .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .page-container-title {
        align-items: center;
    }

    .toast {
        font-size: 18px;
        text-align: center;
    }

    .OfficeBooking-data-heard {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
        gap: 15px;
        text-align: center;
    }

    .OfficeBooking-data {
        background-color: #F4F4F4;
        padding: 5px;
        font-size: 15px;
    }

    .OfficeBooking-data-bookings {
        display: flex;
        justify-content: flex-start;
        align-items: center; 
        gap: 10px; 
        flex-wrap: wrap;
    }

    .sync-message {
        display: inline-flex;
        align-items: center; 
        gap: 8px; 
        color: red;
        font-size: 15px;
    }

    .OfficeBooking-data-bookings > span:last-of-type {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
    }
   
    .sync-message {
        width: auto;
        font-size: 15px;
    }
}
