﻿.dialogEmpresa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 15, 30, 0.6); /* Tertiary com opacidade */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dialogEmpresa-box {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.dialogEmpresa-box h3 {
    font-size: 22px;
    text-align: left;
    font-weight: bold;
    color: #0D0F1E; /* Tertiary */
}

.dialogEmpresa-box p {
    text-align: left;
    color: #0D0F1E;
}

.dialogEmpresa-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.dialogEmpresa-btn-confirm {
    background-color: #0ea3ce; /* Primary */
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 48%;
    font-weight: bold;
}

.dialogEmpresa-btn-cancel {
    background-color: #eb2211; /* Secondary */
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 48%;
    font-weight: bold;
}

/* Lista de Empresas */
.dialogEmpresa-lista {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.dialogEmpresa-item {
    padding: 10px;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #0D0F1E;
}

.dialogEmpresa-item:hover {
    background-color: #f0f0f0;
}

.dialogEmpresa-item.selecionada {
    background-color: #d0f0f7; /* tom claro do primary */
    font-weight: bold;
}

/* Responsivo para telas pequenas */
@media (max-width: 600px) {
    .dialogEmpresa-box {
        padding: 16px;
        max-width: 90vw;
        max-height: 95vh;
    }

    .dialogEmpresa-btn-confirm,
    .dialogEmpresa-btn-cancel {
        width: 100%;
    }

    .dialogEmpresa-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

.dialogEmpresa-search {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
