/* ============================================
   DASHBOARD LOGO
   ============================================ */

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

.logo-img {
	height: 40px; /* ajuste conforme o tamanho desejado */
	width: auto;
	display: block;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.main-header {
	background: var(--white);
	box-shadow: var(--shadow-sm);
	padding: 0.75rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
}

.logo-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0;
	letter-spacing: 1px;
}
.logo-container {
	height: 40px; /* altura da logo */
	display: flex;
	align-items: center;
}

.logo-container .logo-img {
	height: 100%;
	width: auto;
}

.header-nav {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.nav-link-custom {
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	transition: var(--transition);
	font-size: 14px;
}

.nav-link-custom:hover {
	background: var(--bg-light);
	color: var(--primary-color);
	text-decoration: none;
}

.nav-link-custom.active {
	color: var(--primary-color);
	background: var(--bg-light);
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.nav-link-actived {
	font-weight: bold;
	color: #007bff;
}
/* ============================================
   WELCOME PAGE
   ============================================ */

.welcome-container {
	max-width: 1200px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.welcome-title {
	text-align: center;
	font-size: 2rem;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 1rem;
}

.welcome-subtitle {
	text-align: center;
	color: var(--text-light);
	font-size: 1rem;
	margin-bottom: 3rem;
}

.modules-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.module-card {
	background: var(--white);
	border-radius: 10px;
	padding: 2rem;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	cursor: pointer;
	text-align: center;
	border: 1px solid var(--border-color);
}

.module-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary-color);
}

.module-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.module-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 0.75rem;
}

.module-description {
	color: var(--text-light);
	font-size: 0.9rem;
}

/* ============================================
   empresa SELECTION
   ============================================ */

.empresa-selection-container {
	max-width: 800px;
	margin: 3rem auto;
	padding: 0 1rem;
}

.page-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 2rem;
}

.empresa-search {
	background: var(--white);
	border-radius: 10px;
	padding: 1rem;
	box-shadow: var(--shadow-sm);
	margin-bottom: 1.5rem;
	border: 1px solid var(--border-color);
}

.search-input {
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 0.625rem 1rem;
	font-size: 14px;
	transition: var(--transition);
}

.search-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(46, 92, 138, 0.15);
	outline: none;
}

.empresa-list {
	background: var(--white);
	border-radius: 10px;
	padding: 0.5rem;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
}

.empresa-item {
	padding: 1rem;
	border-radius: 6px;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.25rem;
}

.empresa-item:hover {
	background: var(--bg-light);
}

.empresa-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: 600;
	font-size: 16px;
	flex-shrink: 0;
}

.empresa-name {
	font-size: 15px;
	font-weight: 500;
	color: var(--text-dark);
	margin: 0;
}

/* ============================================
   SIDEBAR TREE MENU
   ============================================ */

.sidebar-container {
	background: var(--white);
	border-radius: 10px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	overflow: hidden;
}

.empresa-header {
	padding: 1rem;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--bg-light);
}

.empresa-header-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--secondary-color)
	);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: 600;
	font-size: 14px;
}

.empresa-header-info {
	flex: 1;
}

.empresa-header-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	margin: 0;
}

.empresa-dropdown-icon {
	color: var(--text-muted);
	font-size: 14px;
}

/* Tree Menu Styles */
.tree-menu {
	padding: 0.5rem 0;
}

.tree-item {
	position: relative;
}

.tree-item-content {
	display: flex;
	align-items: center;
	padding: 0.625rem 1rem;
	cursor: pointer;
	transition: var(--transition);
	color: var(--text-light);
	font-size: 14px;
	user-select: none;
	border-left: 3px solid transparent;
}

.tree-item-content:hover {
	background: rgba(91, 155, 213, 0.05);
	color: var(--primary-color);
}

.tree-item-content.active {
	background: rgba(91, 155, 213, 0.1);
	color: var(--primary-color);
	font-weight: 500;
	border-left-color: var(--primary-color);
}

.tree-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 0.75rem;
	flex-shrink: 0;
}

.tree-icon i {
	font-size: 16px;
}

.tree-label {
	flex: 1;
}

.tree-arrow {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
	color: var(--text-muted);
	font-size: 10px;
}

.tree-item.expanded > .tree-item-content .tree-arrow {
	transform: rotate(90deg);
}

.tree-children {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.tree-item.expanded > .tree-children {
	max-height: 1000px;
}

.tree-children .tree-item-content {
	padding-left: 2.5rem;
}

.tree-children .tree-children .tree-item-content {
	padding-left: 4rem;
}

.tree-item-badge {
	background: var(--secondary-color);
	color: var(--white);
	font-size: 11px;
	padding: 0.125rem 0.5rem;
	border-radius: 10px;
	font-weight: 600;
	margin-left: 0.5rem;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content-wrapper {
	min-height: 600px;
}

.content-header {
	padding: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.content-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-dark);
	margin: 0 0 0.5rem 0;
}

.breadcrumb-custom {
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 13px;
}

.breadcrumb-custom .breadcrumb-item {
	color: var(--text-light);
}

.breadcrumb-custom .breadcrumb-item a {
	color: var(--text-light);
	text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item a:hover {
	color: var(--primary-color);
}

.breadcrumb-custom .breadcrumb-item.active {
	color: #067eff;
	font-weight: bold;
}

.content-body {
	background: var(--white);
	border-radius: 10px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	padding: 1rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
	text-align: center;
	padding: 3rem 1rem;
}

.empty-state-icon {
	font-size: 4rem;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.empty-state-text {
	color: var(--text-light);
	font-size: 1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.page-content {
	animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.sidebar-container {
		margin-bottom: 1rem;
	}
}

.btn-command {
	border-width: 1px;
	background-color: #fff;
	border-bottom-color: #ccc;
	border-right-color: #ccc;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1001;
	display: none;
	width: 100%;
	height: 100%;
	overflow: hidden;
	outline: 0;
}

.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100vw;
	height: 100vh;
	background-color: #000;
}
