@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: var(--purple-wecomply)
}

li {
	list-style: none;
}

:root {
	--poppins: 'Poppins', sans-serif;
	--lato: 'Lato', sans-serif;

	--light: #F9F9F9;
	--blue: #3C91E6;
	--light-blue: #CFE8FF;
	--grey: #eee;
	--dark-grey: #AAAAAA;
	--dark: #342E37;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;
	--purple-wecomply: #802FF1;
	--blue-wecomply: #006AB3;
	--grey-wecomply: #939598;
	--green-wecomply: #198754;

	--icon-red: #dc2626;        /* mais forte que #ef4444 */
	--icon-orange: #ea580c;     /* mais saturado que #f97316 */
	--icon-amber: #ca8a04;      /* mais vibrante que #f59e0b */
	--icon-yellow: #ca8a04;     /* amarelo mais marcante */
	--icon-green: #059669;      /* verde mais vivo que #10b981 */
	--icon-teal: #0f766e;       /* teal mais saturado */
	--icon-blue: #2563eb;       /* azul mais forte que #3b82f6 */
	--icon-indigo: #4338ca;     /* índigo mais marcante */
	--icon-purple: #7c3aed;     /* roxo mais forte */
	--icon-pink: #db2777;       /* rosa mais intenso */

	/* Light pode ficar só um pouco mais clara mas mantém a vibe forte */
	--icon-red-light: #fca5a5;
	--icon-orange-light: #fdba74;
	--icon-amber-light: #fde68a;
	--icon-yellow-light: #fef08a;
	--icon-green-light: #6ee7b7;
	--icon-teal-light: #5eead4;
	--icon-blue-light: #93c5fd;
	--icon-indigo-light: #a5b4fc;
	--icon-purple-light: #c4b5fd;
	--icon-pink-light: #f9a8d4;
}

html {
	overflow-x: hidden;
}

body.dark {
	--light: #0C0C1E;
	--grey: #060714;
	--dark: #FBFBFB;
}

body {
	background: var(--grey);
	overflow-x: hidden;
}

body.dark table {
	color: inherit; /* Remove a cor específica e herda a cor do contêiner */
}





/* SIDEBAR */
#sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background: var(--light);
	z-index: 2000;
	font-family: var(--lato);
	transition: .3s ease;
	overflow-x: hidden;
	scrollbar-width: none;
}
#sidebar::--webkit-scrollbar {
	display: none;
}
#sidebar.hide {
	width: 60px;
}
#sidebar .brand {
	font-size: 24px;
	font-weight: 700;
	height: 56px;
	display: flex;
	align-items: center;
	color: var(--purple-wecomply);
	position: sticky;
	top: 0;
	left: 0;
	background: var(--light);
	z-index: 500;
	padding-bottom: 20px;
	box-sizing: content-box;
}
#sidebar .brand .bx {
	min-width: 60px;
	display: flex;
	justify-content: center;
}
#sidebar .side-menu {
	width: 100%;
	margin-top: 48px;
}
#sidebar .side-menu li {
	height: 48px;
	background: transparent;
	margin-left: 6px;
	border-radius: 48px 0 0 48px;
	padding: 4px;
}
#sidebar .side-menu li.active {
	background: var(--grey);
	position: relative;
}
#sidebar .side-menu li.active::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	top: -40px;
	right: 0;
	box-shadow: 20px 20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li.active::after {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	bottom: -40px;
	right: 0;
	box-shadow: 20px -20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li a {
	width: 100%;
	height: 100%;
	background: var(--light);
	display: flex;
	align-items: center;
	border-radius: 48px;
	font-size: 16px;
	color: var(--dark);
	white-space: nowrap;
	overflow-x: hidden;
}
#sidebar .side-menu.top li.active a {
	color: var(--purple-wecomply);
}
#sidebar.hide .side-menu li a {
	width: calc(48px - (4px * 2));
	transition: width .3s ease;
}
#sidebar .side-menu li a.logout {
	color: var(--red);
}
#sidebar .side-menu.top li a:hover {
	color: var(--purple-wecomply);
}
#sidebar .side-menu li a .bx {
	min-width: calc(60px  - ((4px + 6px) * 2));
	display: flex;
	justify-content: center;
}
/* SIDEBAR */





/* CONTENT */
#content {
	position: relative;
	width: calc(100% - 280px);
	left: 280px;
	transition: .3s ease;
}
#sidebar.hide ~ #content {
	width: calc(100% - 60px);
	left: 60px;
}




/* NAVBAR */
#content nav {
	height: 56px;
	background: var(--light);
	padding: 0 24px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
	font-family: var(--lato);
	position: sticky;
	top: 0;
	left: 0;
	z-index: 1000;
}
#content nav::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	bottom: -40px;
	left: 0;
	border-radius: 50%;
	box-shadow: -20px -20px 0 var(--light);
}
#content nav a {
	color: var(--dark);
}
#content nav .bx.bx-menu {
	cursor: pointer;
	color: var(--dark);
}
#content nav .nav-link {
	font-size: 16px;
	transition: .3s ease;
}
#content nav .nav-link:hover {
	color: var(--blue);
}
#content nav form {
	max-width: 400px;
	width: 100%;
	margin-right: auto;
}
#content nav form .form-input {
	display: flex;
	align-items: center;
	height: 36px;
}
#content nav form .form-input input {
	flex-grow: 1;
	padding: 0 16px;
	height: 100%;
	border: none;
	background: var(--grey);
	border-radius: 36px 0 0 36px;
	outline: none;
	width: 100%;
	color: var(--dark);
}
#content nav form .form-input button {
	width: 36px;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--light);
	color: var(--light);
	font-size: 18px;
	border: none;
	outline: none;
	border-radius: 0 36px 36px 0;
	cursor: pointer;
}
#content nav .notification {
	font-size: 20px;
	position: relative;
}
#content nav .notification .num {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--light);
	background: var(--red);
	color: var(--light);
	font-weight: 700;
	font-size: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#content nav .profile img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 50%;
}
#content nav .switch-mode {
	display: block;
	min-width: 50px;
	height: 25px;
	border-radius: 25px;
	background: var(--grey);
	cursor: pointer;
	position: relative;
}
#content nav .switch-mode::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	bottom: 2px;
	width: calc(25px - 4px);
	background: var(--blue);
	border-radius: 50%;
	transition: all .3s ease;
}
#content nav #switch-mode:checked + .switch-mode::before {
	left: calc(100% - (25px - 4px) - 2px);
}
/* NAVBAR */

/* MAIN */
#content main {
	width: 100%;
	padding: 10px 24px;
	font-family: var(--poppins);
	max-height: calc(100vh - 56px);
	overflow-y: auto;
}
#content main .head-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	grid-gap: 16px;
	flex-wrap: wrap;
}
#content main .head-title .left h1 {
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--dark);
}
#content main .head-title .left .breadcrumb {
	display: flex;
	align-items: center;
	grid-gap: 16px;
	background: transparent;
	height: 10px;
}
#content main .head-title .left .breadcrumb li {
	color: var(--dark);
}
#content main .head-title .left .breadcrumb li a {
	color: var(--dark-grey);
	pointer-events: none;
}
#content main .head-title .left .breadcrumb li a.active {
	color: var(--purple-wecomply);
	pointer-events: unset;
}
#content main .head-title .btn-download {
	height: 36px;
	padding: 0 16px;
	border-radius: 36px;
	background: var(--purple-wecomply);
	color: var(--light);
	display: flex;
	justify-content: center;
	align-items: center;
	grid-gap: 10px;
	font-weight: 500;
}

/* Define a largura máxima para as células da tabela */ 
.table-data .order table td {
    max-width: 350px; /* Ajuste este valor conforme necessário */
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#content main .table-data .btn-download {
	height: 36px;
	padding: 0 16px;
	border-radius: 36px;
	background: var(--purple-wecomply);
	color: var(--light);
	display: flex;
	justify-content: center;
	align-items: center;
	grid-gap: 10px;
	font-weight: 500;
}

#content main .table-data .btn-edit {
	height: 26px;
	padding: 6px 16px;
	background: var(--blue-wecomply);
	color: var(--light);
	justify-content: center;
	align-items: center;
	grid-gap: 0px;
	font-size: 12px;
	border-radius: 20px;
}

/* Centraliza o contêiner dos botões */
.button-container {
	display: flex;
	justify-content: center; /* Centraliza os botões horizontalmente */
	gap: 20px; /* Espaço entre os botões */
	margin-top: 20px; /* Espaço acima dos botões */
	width: 30%; /* Define que o contêiner ocupa 50% da largura disponível */
	margin-left: auto;
	margin-right: auto;
  }
  
/* Estiliza os botões para terem o mesmo tamanho */
.button-container .btn-salvar,
.button-container .btn-cancelar {
  flex: 1; /* Faz com que os botões ocupem o mesmo espaço disponível */
  text-align: center; /* Centraliza o texto dentro dos botões */
  padding: 10px 20px; /* Ajusta o preenchimento dos botões */
  border: none; /* Remove a borda padrão */
  border-radius: 5px; /* Bordas arredondadas */
  font-size: 16px; /* Tamanho da fonte */
  cursor: pointer; /* Cursor de ponteiro ao passar o mouse */
}
  
  /* Estiliza o botão Salvar */
  .button-container .btn-salvar {
	background: var(--purple-wecomply);
	color: white; /* Cor do texto */
  }
  
  /* Estiliza o botão Cancelar */
  .button-container .btn-cancelar {
	background: var(--grey-wecomply);
	color: white; /* Cor do texto */
	text-decoration: none; /* Remove sublinhado do link */
	display: flex;
	justify-content: center;
	align-items: center;
  }
  

#content main .box-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-gap: 24px;
	margin-top: 36px;
}
#content main .box-info li {
	padding: 24px;
	background: var(--light);
	border-radius: 20px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
}
#content main .box-info li .bx {
	width: 80px;
	height: 80px;
	border-radius: 10px;
	font-size: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#content main .box-info li:nth-child(1) .bx {
	background: var(--icon-red-light);
	color: var(--icon-red);
}
#content main .box-info li:nth-child(2) .bx {
	background: var(--icon-orange-light);
	color: var(--icon-orange);
}
#content main .box-info li:nth-child(3) .bx {
	background: var(--icon-amber-light);
	color: var(--icon-amber);
}
#content main .box-info li:nth-child(4) .bx {
	background: var(--icon-yellow-light);
	color: var(--icon-yellow);
}
#content main .box-info li:nth-child(5) .bx {
	background: var(--icon-green-light);
	color: var(--icon-green);
}
#content main .box-info li:nth-child(6) .bx {
	background: var(--icon-teal-light);
	color: var(--icon-teal);
}
#content main .box-info li:nth-child(7) .bx {
	background: var(--icon-blue-light);
	color: var(--icon-blue);
}
#content main .box-info li:nth-child(8) .bx {
	background: var(--icon-indigo-light);
	color: var(--icon-indigo);
}
#content main .box-info li .text h3 {
	font-size: 24px;
	font-weight: 600;
	color: var(--dark);
}
#content main .box-info li .text p {
	color: var(--dark);	
}

#content main .table-data {
	display: flex;
	flex-wrap: wrap;
	grid-gap: 24px;
	margin-top: 24px;
	width: 100%;
	color: var(--dark) !important;
	text-align: center;
}
#content main .table-data > div {
	border-radius: 20px;
	background: var(--light);
	padding: 24px;
	overflow-x: auto;
}
#content main .table-data .head {
	display: flex;
	align-items: center;
	grid-gap: 16px;
	margin-bottom: 24px;
}
#content main .table-data .head h3 {
	margin-right: auto;
	font-size: 24px;
	font-weight: 600;
}
#content main .table-data .head .bx {
	cursor: pointer;
}

#content main .table-data .order {
	flex-grow: 1;
	flex-basis: 500px;
}
#content main .table-data .order table {
	width: 100%;
	border-collapse: collapse;
}
#content main .table-data .order table th {
	padding-bottom: 12px;
	font-size: 13px;
	text-align: left;
	border-bottom: 1px solid var(--grey);
}
#content main .table-data .order table td {
	padding: 16px 0;
}
#content main .table-data .order table tr td:first-child {
	display: flex;
	align-items: center;
	grid-gap: 12px;
	padding-left: 6px;
}
#content main .table-data .order table td img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
#content main .table-data .order table tbody tr:hover {
	background: var(--grey);
}
#content main .table-data .order table tr td .status {
	font-size: 10px;
	padding: 6px 16px;
	color: var(--light);
	border-radius: 20px;
	font-weight: 700;
}
#content main .table-data .order table tr td .status.completed {
	background: var(--green-wecomply);
}
#content main .table-data .order table tr td .status.process {
	background: var(--orange);
}
#content main .table-data .order table tr td .status.pending {
	background: var(--red);
}

#content main .table-data .todo {
	flex-grow: 1;
	flex-basis: 300px;
}
#content main .table-data .todo .todo-list {
	width: 100%;
}

#content main .table-data .todo .todo-list li {
	width: 100%;
	margin-bottom: 16px;
	background: var(--grey);
	border-radius: 10px;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#content main .table-data .todo .todo-list li .bx {
	cursor: pointer;
}
#content main .table-data .todo .todo-list li.completed {
	border-left: 10px solid var(--blue);
}
#content main .table-data .todo .todo-list li.not-completed {
	border-left: 10px solid var(--orange);
}
#content main .table-data .todo .todo-list li:last-child {
	margin-bottom: 0;
}

#content main .table-data .todo .todo-list li p {
    flex: 0 0 20%; /* 15% do espaço */
    margin: 0;
}

#content main .table-data .todo .todo-list li span {
    flex: 0 0 10%; /* 15% do espaço */
    margin: 0;
    margin-left: 1px; /* Espaço entre o p e o input */
	height: 35px;
	border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 14px;
	text-align: center;
	align-items: center;
}

#content main .table-data .todo .todo-list li input {
	flex: 1 0 60%; /* 85% do espaço */
    margin-left: 1px; /* Espaço entre o p e o input */
	height: 35px;
	border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 14px;
	text-align: justify;
}

#content main .table-data .todo .todo-list li select {
	flex: 1 0 70%; /* 85% do espaço */
    margin-left: 1px; /* Espaço entre o p e o input */
	height: 35px;
	border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 14px;
	text-align: justify;
}

#content main .table-data .todo .todo-list li textarea {
	flex: 1 0 70%; /* 85% do espaço */
    margin-left: 1px; /* Espaço entre o p e o input */
	height: 65px;
	border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 14px;
	text-align: justify;
} 

#content main .table-data .todo .todo-list li .qtd_caracteres {
    width: 100%; /* Garante que o contador ocupe toda a largura */
    display: flex; /* Flexbox para alinhamento */
    justify-content: flex-start; /* Alinha o contador à direita */
}

#content main .table-data .todo .todo-list li .qtd_caracteres small {
    font-size: 12px; /* Tamanho da fonte do contador */
    color: #6c757d; /* Cor do texto do contador */
}


/* Estilo para o container do checkbox */
#content main .table-data .todo .todo-list li .checkbox-container {
    display: flex; /* Usa flex para alinhar o checkbox e o label em linha */
    align-items: center; /* Alinha verticalmente o checkbox com o label */
    gap: 28px; /* Espaço entre o checkbox e o label */
    margin-top: 10px; /* Espaço acima do container */
}

/* Estilo para o checkbox */
#content main .table-data .todo .todo-list li .checkbox-container input {
    flex: 0 0 auto; /* Permite que o checkbox mantenha seu tamanho padrão */
    margin: 0; /* Remove margens extras */
}

/* Estilo para o label */
#content main .table-data .todo .todo-list li .checkbox-container label {
    flex: 1 0 auto; /* Permite que o label expanda conforme necessário */
    margin: 0; /* Remove margens extras */
    font-size: 14px; /* Tamanho de fonte consistente */
    text-align: center; /* Alinha o texto do label à esquerda */
}

/* CSS PARA MANIPULAÇÃO DO COPY TO CLIPBOARD */
.alert {
    padding: 15px;
    border-radius: 5px;
}

.protocolo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

#protocolo {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 10px; /* Espaço entre o protocolo e o botão */
}

.btn-copy {
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid var(--purple-wecomply);
    background-color: var(--purple-wecomply);
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-copy:hover {
    background-color: #0056b3;
}

/* MAIN */
/* CONTENT */
@media screen and (max-width: 768px) {
	#sidebar {
		width: 200px;
	}

	#content {
		width: calc(100% - 60px);
		left: 200px;
	}

	#content nav .nav-link {
		display: none;
	}
}

@media screen and (max-width: 576px) {
	#content nav form .form-input input {
		display: none;
	}

	#content nav form .form-input button {
		width: auto;
		height: auto;
		background: transparent;
		border-radius: none;
		color: var(--dark);
	}

	#content nav form.show .form-input input {
		display: block;
		width: 100%;
	}
	#content nav form.show .form-input button {
		width: 36px;
		height: 100%;
		border-radius: 0 36px 36px 0;
		color: var(--light);
		background: var(--red);
	}

	#content nav form.show ~ .notification,
	#content nav form.show ~ .profile {
		display: none;
	}

	#content main .box-info {
		grid-template-columns: 1fr;
	}

	#content main .table-data .head {
		min-width: 420px;
	}
	#content main .table-data .order table {
		min-width: 420px;
	}
	#content main .table-data .todo .todo-list {
		min-width: 420px;
	}
}

/* Open options */

.navbar-profile {
    position: relative;
    cursor: pointer;
}

.navbar-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.navbar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #fff;
    color: #000;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.navbar-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #24292e;
}

.navbar-dropdown a:hover {
    background-color: #f6f8fa;
}

.navbar-profile:hover .navbar-dropdown {
    display: block;
}

.navbar-toggle {
    font-size: 24px;
    cursor: pointer;
    display: none;
}

a {
	text-decoration: none !important;
}

/* ESTILO PARA DRAG AND DROP DE ANEXOS */
.drag-drop-zone {
	border: 2px dashed #ddd;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s;
}

.drag-drop-zone.active {
	background-color: #f0f8ff;
}