/* =====================================
   CONTAINER FILTROS
=====================================*/
.filtros-ambientes{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    align-items:end;
    margin-bottom:20px;
}

/* =====================================
   BLOCO FILTRO
=====================================*/
.filtro-floating{
    position:relative;
    width:100%;
}

/* =====================================
   FLOATING SELECT
=====================================*/
.filtro-floating select,
.filtro-floating input[type="number"],
.filtro-floating input[type="text"]{
    width:100%;
    height:44px;
    padding:14px 10px 6px;
    border:1px solid #dcdcdc;
    border-radius:6px;
    background:#fff;
    font-size:14px;
    transition:.2s;
}

.filtro-floating select:hover,
.filtro-floating input[type="number"]:hover,
.filtro-floating input[type="text"]:hover{
    border-color:#145a32;
}

.filtro-floating select:focus,
.filtro-floating input[type="number"]:focus,
.filtro-floating input[type="text"]:focus{
    outline:none;
    border-color:#145a32;
    box-shadow:0 0 0 2px rgba(20,90,50,.15);
}

/* =====================================
   LABEL FLOAT
=====================================*/
.filtro-floating > label:not(.label-comodos){
    position:absolute;
    left:10px;
    top:50%;
    transform:translateY(-50%);
    background:#fff;
    padding:4px 10px;
    color:#777;
    font-size:16px;
    font-weight:500;
    pointer-events:none;
    transition:.2s;
    border-radius:4px;
}

.filtro-floating select:focus + label,
.filtro-floating input:focus + label,
.filtro-floating select.has-value + label,
.filtro-floating input.has-value + label{
    top:-10px;
    font-size:16px;
    font-weight:500;
    background:transparent;
    padding:0 4px;
    color:#145a32;
    z-index:2;
}

/* =====================================
   BOTÃO LIMPAR
=====================================*/
#limpar_filtros{
    height:44px;
    padding:0 22px;
    border:none;
    border-radius:6px;
    background:#145a32;
    color:#fff;
    font-weight:500;
    cursor:pointer;
    transition:.25s;
}

#limpar_filtros:hover{
    background:#0f4426;
    transform:translateY(-1px);
}

#limpar_filtros:active{
    transform:scale(.98);
}

/* =====================================
   DATATABLE CONTAINER
=====================================*/
.gestamb-container{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

/* =====================================
   TABELA
=====================================*/
table.dataTable{
    border-collapse:collapse !important;
    width:100% !important;
    font-size:14px;
    border-radius:6px;
    overflow:hidden;
}

/* =====================================
   CABEÇALHO
=====================================*/
#tabela_ambientes thead,
#tabela_ambientes thead tr,
#tabela_ambientes thead th{
    background:#145a32 !important;
    color:#fff !important;
}

#tabela_ambientes thead th{
    white-space:nowrap;
}
#tabela_ambientes thead th{
    border-right:1px solid #ffffff !important;
}

table.dataTable thead th{
    padding:12px;
    font-weight:600;
    border-right:1px solid #ffffff;
}

/* coluna BANHEIRO (agora coluna 10) */
#tabela_ambientes thead th:nth-child(10){
    white-space:normal;
    min-width:110px;
    text-align:center;
    line-height:1.2;
}

/* cabeçalho quando usa scroll */
.dataTables_scrollHead table thead th{
    background:#145a32 !important;
    color:#fff !important;
}

/* =====================================
   LINHAS
=====================================*/
table.dataTable tbody td{
    padding:10px;
    border-bottom:1px solid #eee;
    white-space:nowrap;
}

table.dataTable tbody tr{
    transition:background .15s ease;
}

table.dataTable tbody tr:hover{
    background:#f5faf6;
}

table.dataTable.stripe tbody tr.odd{
    background:#fafafa;
}

/* =====================================
   COLUNA VISTA (coluna 11)
=====================================*/
#tabela_ambientes th:nth-child(11),
#tabela_ambientes td:nth-child(11){
    width:120px;
    min-width:120px;
    max-width:120px;
    white-space:normal !important;
}

/* =====================================
   COLUNA CÔMODOS (coluna 8)
=====================================*/
#tabela_ambientes th:nth-child(8),
#tabela_ambientes td:nth-child(8){
    width:200px;
    min-width:200px;
    max-width:200px;
    white-space:normal !important;
}

/* =====================================
   COLUNA STATUS (coluna 1)
=====================================*/
#tabela_ambientes td:nth-child(1){
    font-weight:600;
}

/* esconder busca datatable */
.dataTables_filter{
    display:none;
}

/* =====================================
   BLOCO CÔMODOS
=====================================*/
.filtro-floating:has(#filtro_comodos){
    grid-column:1 / -1;
}

.label-comodos{
    position:static !important;
    transform:none !important;
    display:block;
    margin-bottom:1px;
    font-weight:500;
    color:#145a32;
}

#filtro_comodos{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px 20px;
    margin-top:4px;
}

.filtro-checkbox{
    display:grid;
    grid-template-columns:repeat(4, minmax(150px,1fr));
    gap:8px 20px;
}

.filtro-checkbox label{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    cursor:pointer;
}

.filtro-floating:has(#filtro_comodos) label{
    position:static !important;
    transform:none !important;
    margin-bottom:8px;
}

#filtro_comodos label{
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

#filtro_comodos input{
    transform:scale(1.2);
}

/* =====================================
   TABELA BASE
=====================================*/
.gestamb-table{
    width:120%;
    min-width:1200px;
}

.gestamb-table th,
.gestamb-table td{
    padding:10px;
    border:1px solid #ffffff;
    text-align:left;
    word-break:break-word;
}

/* coluna ação / obs */
#tabela_ambientes td:nth-child(12){
    white-space:normal;
}

#tabela_ambientes td,
#tabela_ambientes th{
    overflow:hidden;
    text-overflow:ellipsis;
}

/* =====================================
   Botão Alterar STATUS
=====================================*/
.btn-popup-alterar-status{
    display:block;
    margin-top:6px;
}

/* =====================================
   RESPONSIVO
=====================================*/
@media(max-width:768px){

    .filtros-ambientes{
        grid-template-columns:1fr;
    }

    #limpar_filtros{
        width:100%;
    }

}

/* permitir clicar nos checkboxes */
#filtro_comodos label{
    pointer-events:auto !important;
}

/* cabeçalho fixo datatable */
table.dataTable.fixedHeader-floating{
    background:#145a32 !important;
}

table.dataTable.fixedHeader-floating th{
    background:#145a32 !important;
    color:#fff !important;
}

.dt-buttons{
    display:none;
}





/*botão do video*/

.popup-video{
display:none;
position:fixed;
top:0;
left:0;
width:100vw;
height:100vh;
background:rgba(0,0,0,0.85);
z-index:99999;
align-items:center;
justify-content:center;
}

.popup-video-box{
position:relative;
background:#000;
padding:10px;
border-radius:8px;
max-width:90%;
max-height:90%;
display:flex;
justify-content:center;
align-items:center;
}

.popup-video-box iframe{
width:80vw;
height:80vh;
border-radius:6px;
}

.fechar-video{
position:absolute;
top:-10px;
right:-10px;
background:#fff;
border-radius:50%;
width:30px;
height:30px;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
font-size:18px;
font-weight:bold;
}

.btn-video{
background:none;
border:none;
font-size:22px;
cursor:pointer;
color:#e63946;
}

.btn-video:hover{
color:#000;
}
.btn-planta{
    background:#e53935;
    color:#fff;
    border:none;
    padding:5px 8px;
    border-radius:4px;
    text-decoration:none;
    font-size:14px;
}
/**Popup do video*/

.popup-video{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8);

    display:none; /* começa escondido */

    align-items:center;
    justify-content:center;

    z-index:9999;
}

/* quando abrir */
.popup-video.ativo{
    display:flex;
}

.popup-video-box{
    background:#000;
    padding:10px;
    border-radius:8px;
    max-width:900px;
    width:90%;
}

/** Botão de Download e Upload */

#download_vistoria{
    display:none;
    margin-top:15px;
}

.btn-download-vistoria{
    
    color:#145a32;
    padding:5px 16px;
    border-radius:6px;
    border:1px solid #145a32;
    text-decoration:none;
    
    font-size:16px;
    font-family:Arial, Helvetica, sans-serif;
    display:inline-block;
}

.btn-download-vistoria:hover{
    background:#04942f;
}

/** Botão de Upload e Upload */

#upload_vistoria_box{
    display:none;
    margin-top:15px;
}

.label-vistoria{
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    font-weight:bold;
    color:#000000;
    display:block;
    margin-bottom:4px;
  
}

.input-upload-vistoria{
    margin-top:4px;
    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    

}
