﻿/* Container principal da seção */
.responsible-person-section {
    background-color: #f8f9fa; /* Fundo sutil */
    border: 1px solid #e9ecef; /* Borda suave */
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Título da seção */
.section-title {
    font-size: 25px; /* Um pouco maior */
    font-weight: 600;
    color: #343a40; /* Cor escura */
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6; /* Linha sutil abaixo */
}

/* Área de busca (quando nenhum responsável está selecionado) */
.responsible-search-area {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre input e resultados */
}

/* Ajustes nos inputs de busca */
.responsible-person-section .search-container-inputs {
    margin-top: 0; /* Remove margem extra */
    grid-template-columns: 1fr auto; /* Ajusta layout: Input | Filtro+Botão */
}

    .responsible-person-section .search-container-inputs > div {
        display: flex;
        gap: 8px; /* Espaço entre filtro e botão */
    }

.input-select-filter {
    min-width: 90px; /* Largura mínima para o select */
}

.btn-search-icon {
    padding: 8px; /* Ajusta padding do botão de lupa */
    background-color: #e9ecef;
    border-radius: 5px;
}

    .btn-search-icon img {
        display: block; /* Garante alinhamento da imagem */
    }

/* Resultados da busca */
.reservation-results {
    margin-top: 10px; /* Espaço acima dos resultados */
}

    .reservation-results .search-results-user {
        cursor: pointer;
        transition: background-color 0.2s ease;
        border: 1px solid #eee; /* Borda sutil nos itens */
        margin-bottom: 4px; /* Pequeno espaço entre itens */
    }

        .reservation-results .search-results-user:hover {
            background-color: #e9f5ff; /* Destaque azul claro no hover */
        }

.no-results-message {
    color: #6c757d;
    font-style: italic;
    padding: 10px 0;
}


/* Card do responsável selecionado */
.selected-responsible-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e9f5ff; /* Fundo azul claro */
    border: 1px solid #ff00003b;
    border-radius: 6px;
    padding: 12px 15px;
}

.responsible-info {
    display: flex;
    gap: 1rem;
}

.responsible-label {
    font-size: 20px;
    color: #555;
    font-weight: 500;
}

.responsible-name {
    margin-top: 1px;
    font-size: 20px;
    font-weight: 600;
    color: red; /* Azul escuro */
}

/* Botão para limpar seleção */
.clear-responsible-btn {
    background-color: transparent;
    border: none;
    color: #dc3545; /* Vermelho */
    font-size: 1.4rem; /* Tamanho do 'X' */
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .clear-responsible-btn:hover {
        opacity: 1;
    }
/*-------------------------*/



/* 1. Novo Layout de Vagas (Stats) */
.participant-header-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-badge {
    background-color: #f4f4f4; /* Fundo cinza claro */
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    flex: 1; /* Ocupa espaço igualmente */
    border-bottom: 3px solid #e0e0e0;
}

    .stat-badge span {
        display: block;
        font-size: 22px;
        color: #555;
        font-weight: 500;
    }

    .stat-badge strong {
        display: block;
        font-size: 18px;
        font-weight: 600;
        color: #000;
    }

/* 2. Novo Botão de "Cadastrar" */
.btn-add-new-participant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 50%;
    margin: 20px auto;
    padding: 16px 21px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6c757d, #5a6268); /* Cinza elegante */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .btn-add-new-participant:hover {
        background: linear-gradient(135deg, #5a6268, #4e555b);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    }

    .btn-add-new-participant:active {
        transform: scale(0.98);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

/* 3. Novo Separador "OU" */
.participant-action-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #888;
    font-weight: 500;
}

    .participant-action-separator::before,
    .participant-action-separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e0e0e0;
    }

    .participant-action-separator:not(:empty)::before {
        margin-right: 15px;
    }

    .participant-action-separator:not(:empty)::after {
        margin-left: 15px;
    }

/* 4. Melhoria no Título da Busca */
.search-title-modern {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 10px;
}







-------------------


.modal-header-editBookingModal {
    margin-bottom: 20px;
}

.participant-manager {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eee;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

    .accordion-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background-color: #fafafa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .accordion-trigger:hover {
        background-color: #ff000071;
        color: black;
    }

.icon-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s ease;
}

.accordion-trigger.open .icon-chevron {
    transform: rotate(-135deg);
    border-color: #000
}

/* ===== Expansão Suave usando display:grid ===== */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #ffffff;
    border-top: 1px solid transparent;
}

    .accordion-content.open {
        grid-template-rows: 1fr;
        border-top-color: #eee;
    }

.accordion-inner {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
    padding: 0 20px;
}

.accordion-content.open .accordion-inner {
    opacity: 1;
    transform: translateY(0);
    padding: 20px;
}

.separator {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

.booking-customers-list-select .selected-participant-item {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background-color: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
    word-break: break-word;
    transition: background-color 0.3s ease;
}

    .booking-customers-list-select .selected-participant-item:hover {
        background-color: #f7f7f7;
    }

.selected-participant-item .button-remove-selected {
    margin: 0;
    justify-self: end;
}

.selected-participant-item.local {
    grid-template-columns: 1fr;
    background-color: #fafafa;
}

@media (max-width: 768px) {
    .booking-customers-list-select .selected-participant-item,
    .selected-participant-item.local {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .selected-participant-item .button-remove-selected {
        justify-self: start;
        margin-top: 5px;
    }
}


.modal-overlay-editBookingModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content-editBookingModal {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-height: 700px;
    max-width: 880px;
    overflow-y: auto;
    overflow-x: hidden;
}

.vacancies-container {
    display: flex;
    align-items: center;
    gap: 50px;
    font-size: 10px;
}

.limit-menssage {
    color: red;
    font-weight: bold;
    margin-top: 5px;
    margin-left: 5px;
    font-size: 25px;
}

    .modal-content-editBookingModal h3 {
        font-weight: 500;
        font-size: 25px;
    }

    .modal-content-editBookingModal h2 {
        font-size: 30px;
        font-weight: 600;
    }

    .modal-content-editBookingModal p {
        font-size: 18px;
        margin-top: 5px;
    }

.title-editBookingModal {
    display: flex;
    align-items: center;
    gap: 40px;
}

.battery-editBookingModal {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.booking-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: -20px;
}

.battery-hourly-editBookingModal {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
}


.battery-tags-editBookingModal {
    display: flex;
    gap: 30px;
}

    .battery-tags-editBookingModal span {
        font-weight: 600;
    }

    .battery-tags-editBookingModal div {
        display: flex;
        gap: 10px;
    }

        .battery-tags-editBookingModal div span {
            display: flex;
            gap: 10px;
            color: #515151;
        }

.battery-tags-red-editBookingModal {
    background-color: #E40E18;
    padding: 0 40px;
    border-radius: 5px;
}

.battery-tags-yellow-editBookingModal {
    background-color: #FF9D00;
    padding: 0 40px;
    border-radius: 5px;
}

.battery-tags-green-editBookingModal {
    background-color: #00FF44;
    padding: 0 40px;
    border-radius: 5px;
}

.buttons-editBookingModal {
    display: flex;
    gap: 20px;
    margin: 40px 40px 0px 40px;
}




.form-display-flex-special {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    background-color: #F4F4F4;
    border-radius: 5px;
}

    .form-display-flex-special div:first-child {
        display: flex;
        width: 50%;
    }

    .form-display-flex-special div:last-child {
        display: flex;
        flex-direction: row;
        gap: 20px;
        color: black;
        white-space: nowrap;
    }

        .form-display-flex-special div:last-child span:first-child {
            margin-top: 15px;
            color: black;
        }

        .form-display-flex-special div:last-child span:last-child {
            margin-top: 25px;
            color: black;
        }

        .form-display-flex-special div:last-child div {
            display: flex;
            flex-direction: column;
            margin-top: -10px;
        }

.form-close-battery-editBookingModal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
}

.form-close-battery-buttons-editBookingModal {
    display: flex;
    gap: 20px;
    align-items: center;
}

    .form-close-battery-buttons-editBookingModal div {
        display: flex;
        gap: 10px;
        align-items: center;
        width: auto;
    }

        .form-close-battery-buttons-editBookingModal div input {
            border: none;
        }

.button-copied-editBookingModal {
    background-color: transparent;
    border: none;
}

.button-code-editBookingModal {
    background-color: black;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate360 0.5s ease-in-out;
}

.search-container {
    background-color: #F4F4F4;
    border-radius: 5px;
    display: flex;
    gap: 20px;
    flex-direction: column;
}


.search-container-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 0fr;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.search-container-inputs div {
    width: 100%;
    display: flex;
    gap: 20px;
}

.search-button {
    border: none;
    cursor: pointer;
}
    .search-button img {
        width: 24px;
        height: 24px;
    }

.search-results {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .search-results ul {
        list-style-type: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .search-results li {
        background-color: white;
        border-radius: 5px;
        padding: 8px 20px;
        display: grid;
        grid-template-columns: 200px 250px 150px auto;  
        align-items: center;
        gap: 10px;
    }

.button-remove-selected {
    max-width: 1px;
    margin-left: 10px !important;
}

.search-results-user {
    padding: 8px 40px;
    background-color: white;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}


.booking-customers-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .booking-customers-list div {
        display: flex;
        flex-direction: column;
    }

        .booking-customers-list div div {
            padding: 8px 20px !important;
            display: grid;
            grid-template-columns: 200px 250px 200px auto;
            align-items: center;
            border-radius: 5px;
            width: 100%;
            flex-direction: row;
            white-space: nowrap;
            justify-content: space-between;
            margin-left: 20px
        }
    .booking-customers-list button {
        background-color: transparent;
        border: none;
        color: red;
        margin-right: 200px;
        margin-left: -50px;
    }




.booking-customers-list-select {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .booking-customers-list-select div {
        display: flex;
        flex-direction: column;
    }

        .booking-customers-list-select div div {
            padding: 8px 25px;
            display: grid;
            grid-template-columns: 200px 250px 150px auto;
            align-items: center;
            background-color: white;
            border-radius: 5px;
            width: 100%;
            flex-direction: row;
            justify-content: space-between;
        }

    .booking-customers-list-select button {
        background-color: transparent;
        border: none;
        color: red;
        margin-right: 100px;
        margin-left: -50px;
    }

.pagination-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

    .pagination-controls button {
        padding: 5px 10px;
        border: 1px solid #ccc;
        background: #fff;
        cursor: pointer;
        border-radius: 5px;
        font-size: 10px;
    }

        .pagination-controls button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }


.form-add-participant-editBookingModal {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 40px;
}

.form-add-participant-function-editBookingModal {
    display: grid;
    grid-template-columns: 3fr 0fr;
    align-items: center;
}
/*
    .form-add-participant-function-editBookingModal div:last-child {
        gap: 20px;
    }*/

.form-add-participant-button-editBookingModal {
    display: flex;
    align-items: center; 
    gap: 15px; 
    margin-left: 19px;
}

.form-add-participant-button-editBookingModal div {
    padding: 5px;
    display: flex;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

    .form-add-participant-button-editBookingModal div p {
        font-size: 30px;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        margin-top: -4px;
    }

.form-add-participant-input-editBookingModal {
    display: flex;
    gap: 10px;
    height: 50px;
    align-items: center;
}

.info-icon-edit {
    max-height: 18px;
    margin-left: 18px;
}

.info-icon-check-office {
    margin-top: 0px;
    margin-bottom: 5px;
}

.modal-info-edit {
    z-index: 20;
    margin-left: -90px;
}

    .modal-info-edit p {
        background-color: #7aff00;
        border-radius: 8px;
        padding: 10px;
        width: 220px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-size: 15px;
    }

@media (max-width: 600px) {
    .vacancies-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-left: 0px !important;
    }


    .booking-customers-list-select .selected-participant-item {
        display: grid !important;
        grid-template-columns: 1fr auto !important; 
        grid-template-rows: auto auto; 
        column-gap: 8px;
        row-gap: 4px;
        align-items: center;
        margin-top: 8px;
    }

        .booking-customers-list-select .selected-participant-item > span:nth-of-type(1) { 
            grid-column: 1 / -1; 
            grid-row: 1;
        }

        .booking-customers-list-select .selected-participant-item > span:nth-of-type(2) { 
            grid-column: 1; 
            grid-row: 2; 
        }

        .booking-customers-list-select .selected-participant-item > span:nth-of-type(3) { 
            grid-column: 1 / -1; 
            grid-row: 3; 
        }

    .button-remove-selected {
        border: none !important;
        margin-right: -50px !important;;
        background-color: transparent !important;
    }

    .search-container {
        width: 100%;
    }
    .search-container-inputs {
        display: flex;
        flex-direction: column;
    }

    .form-add-participant-function-editBookingModal {
        display: flex;
        flex-direction: column;
    }

    .search-results li,
    .booking-customers-list-select div div {

        flex-direction: column;
        grid-template-columns: none;
        width: 100%;
        white-space: normal;
        border: 1px solid red;
    }

    .form-display-flex-special div:last-child {
        white-space: normal;
    }

    .modal-content-editBookingModal {
        max-height: 80vh;
        max-width: 100vh;
    }

    .battery-tags-editBookingModal {
        display: flex;
        gap: 5px;
        flex-direction: column;
    }

    .form-display-flex-special {
        flex-direction: column;
    }

        .form-display-flex-special div:first-child {
            display: flex;
            width: 100%;            
        }

        .form-display-flex-special div:last-child {
            display: flex;
            flex-direction: column;
            gap: 10px;
            color: black;
            white-space: nowrap;
            margin-top: -15px;
        }

    .form-close-battery-buttons-editBookingModal {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

        .form-close-battery-buttons-editBookingModal div {
            display: flex;
            gap: 10px;
            align-items: center;
            width: auto;
        }

            .form-close-battery-buttons-editBookingModal div input {
                border: none;
            }


    .search-results-user {
        padding: 8px 15px;
        flex-direction: column;
    }
/*    .form-add-participant-function-editBookingModal div:last-child {
        gap: 5px;
        margin-top: 5px;
    }*/

    .booking-customers-list-select h4 {
        margin-bottom: 15px;
    }

    .booking-customers-list-select div div {
        padding: 5px 15px;
        align-items: start;
        flex-direction: column;
    }

    .booking-selector {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        width: 100%;
        margin-bottom: -20px;
    }


        .booking-customers-list div div {
            padding: 5px 15px;
            align-items: start;
            flex-direction: column;
        }
}
