/* Estilos para el modal de selección de compañía */

/* Estilo para el modal de Magento */
.modal-popup.company-selector-modal {
    z-index: 10000;
}

.modal-popup.company-selector-modal .modal-inner-wrap {
    max-width: 600px;
}

/* Encabezado del modal */
.modal-popup.company-selector-modal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    background-color: var(--brand-500, #009EE3);
    color: #fff;
}

.modal-popup.company-selector-modal .modal-title {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 500;
    color: #fff;
}

.modal-popup.company-selector-modal .action-close {
    color: #fff;
}

.modal-popup.company-selector-modal .action-close:before {
    color: #fff;
}

.modal-popup.company-selector-modal .action-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.modal-popup.company-selector-modal .action-close:hover:before {
    color: rgba(255, 255, 255, 0.8);
}

/* Contenido del modal */
.modal-popup.company-selector-modal .modal-content {
    padding: 20px;
}

/* Lista de compañías */
.company-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

/* Estados de carga y error */
.company-list-loading,
.company-list-error,
.company-empty {
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
}

.company-list-loading {
    background-color: #f8f8f8;
    color: #666;
}

.company-list-error {
    background-color: #fdeaea;
    color: #e22626;
    padding: 15px;
}

.company-empty {
    background-color: #f8f8f8;
    color: #666;
    font-style: italic;
    margin: 5px 0 15px;
}

/* Títulos de sección */
.company-section-title {
    grid-column: 1 / -1;
    padding: 5px 0;
    border-radius: 4px;
}

.company-section-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-500, #009EE3);
    padding-bottom: 5px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.company-section-title .zone-toggle {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.zone-companies {
    padding-left: 15px;
}

.company-item {
    border: 2px solid #eaeaea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.company-item:hover {
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.company-item.selected {
    border-color: var(--brand-500, #009EE3);
    background-color: rgba(0, 158, 227, 0.05);
}

.company-item-container {
    display: flex;
    align-items: center;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 158, 227, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.company-icon {
    font-size: 30px;
}

.company-info {
    flex: 1;
}

.company-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.company-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Elementos de compañía */
.company-item {
    border: 2px solid #eaeaea;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}

.company-item:hover {
    border-color: var(--brand-500, #009EE3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.company-item.selected {
    border-color: var(--brand-500, #009EE3);
    background-color: rgba(0, 158, 227, 0.05);
    box-shadow: 0 2px 6px rgba(0, 158, 227, 0.2);
}

.company-item-container {
    display: flex;
    padding: 15px;
    align-items: center;
}

.company-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.company-icon {
    font-size: 24px;
}

.company-info {
    flex-grow: 1;
}

.company-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.company-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Footer del modal */
.modal-popup.company-selector-modal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eaeaea;
}

/* Botones */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.confirm-company-selection {
    background-color: var(--brand-500, #009EE3) !important;
    border-color: var(--brand-500, #009EE3) !important;
}

.confirm-company-selection:hover {
    background-color: var(--brand-600, #0080B8) !important;
    border-color: var(--brand-600, #0080B8) !important;
}

.confirm-company-selection:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
