/* ==========================================================================
   OFFCANVAS EMPRESAS - TEMPLATE E FORMULÁRIO (LIGHT THEME)
   ========================================================================== */
#offcanvasEmpresa {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 520px;
    border-left: 1px solid #e2e8f0 !important;
    color: #1e293b;
}

#offcanvasEmpresa .offcanvas-header {
    background: transparent !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

#offcanvasEmpresa .offcanvas-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
    color: #0f172a;
}

#offcanvasEmpresa .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.4rem;
    text-transform: none;
    letter-spacing: 0;
}

#offcanvasEmpresa .form-control,
#offcanvasEmpresa .form-select {
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.7rem 0.95rem;
    font-size: 0.925rem;
    color: #0f172a;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#offcanvasEmpresa .form-control:focus,
#offcanvasEmpresa .form-select:focus {
    background: #ffffff !important;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15) !important;
}

#offcanvasEmpresa .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   LISTA DE EMPRESAS (TENANTS CARDS)
   ========================================================================== */
#listaEmpresas .shadow-sm {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#listaEmpresas .shadow-sm:hover {
    transform: translateY(-3px);
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.avatar-inicial {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 1.35rem;
    border-radius: 12px;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Badge Styles */
.badge {
    padding: 0.4em 0.85em;
    font-weight: 600;
    border-radius: 980px !important;
}

.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.bg-secondary-subtle {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

#listaEmpresas .btnEditarEmpresa i,
#listaEmpresas .btnDeletarEmpresa i,
#listaEmpresas .btnVisualizarEmpresa i {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

#listaEmpresas .btnEditarEmpresa:hover i {
    transform: rotate(-10deg) scale(1.1);
}

#listaEmpresas .btnDeletarEmpresa:hover i {
    transform: scale(1.2);
}

#listaEmpresas .btnVisualizarEmpresa:hover i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    #offcanvasEmpresa {
        width: 100% !important;
    }
}