:root {

	/* THEME COLOR */

	--color-primary: #53A600;
	--color-primary-bg: #53A60010;
	--color-primary-text: #1b3502;
	--color-primary-hover: #2d5505;

/*	--color-primary: #185BCC;
	--color-primary-bg: #E7EFFB;
	--color-primary-text: #102953;
	--color-primary-hover: #0A3C8F;*/

	/*--color-primary: #CBDC3A;*/
	/*--color-primary-bg: #a8bb0420;*/
	/*--color-primary-text: #636e00;*/
	/*--color-primary-hover: #a8bb04;*/
	
	--color-secondary: #210003;
	--color-secondary-hover: #110002;

	/*--color-secondary: #151E3F;*/
	/*--color-secondary-hover: #151E3F;*/

	/* TEXT COLOR */

	--color-text-1: #2C2C2C;
	--color-text-2: #4B4B4B;
	--color-text-3: #6E6E6E;

	/* FORM COLORS */

	--color-border: #E4E5EA;
	--color-border-hover: #D1D0D6;
	--color-placeholder: #8E8E8E;
	--color-disabled: #B3B3B3;

	/* BACKGROUND */

	--background-1: #FFFFFF;
	--background-2: #FAFAFA;
	--background-disabled: #B3B4B9;

	/* COLORS */

	--color-badge-green-text: #066B6B;
	--color-badge-green-bg: #CFF0F1;

	--color-badge-black-text: #1C1F28;
	--color-badge-black-bg: #D3D5DE;

	--color-badge-red-text: #C43B5E;
	--color-badge-red-bg: #F9D9E1;

	--color-badge-yellow-text: #996502;
	--color-badge-yellow-bg: #FFEECC;

}

body { 
	background: #FFFFFF; 
	font-family: Poppins;
}

body:has(#navbar) {
	padding-top: 40px;
	padding-left: calc(var(--nav-width) + 20px + 40px);
	padding-right: 40px;
	padding-bottom: 40px;
}

span.todo {
	color: var(--color-border);
	user-select: none !important;
	font-size: 1rem;
}

#content .container:not(:first-child) {
	margin-top: 20px;
}

/* buttons */

.buttons_row {
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	flex-direction: column;
	gap: 10px;
}

button.fill {
	width: 100%;
	background: var(--color-primary);
	border: 1px solid var(--color-primary);
	color: #ffffff !important;
	font-weight: 500;
	font-size: 10pt;
	height: 50px;
	border-radius: 20px;
	transition: all 400ms ease;
}

button.small {
	height: 30px !important;
	width: 30px !important;
}

button.small svg {
	stroke-width: 1.5px !important;
}

button.fill:hover {
	background: var(--color-primary-hover);
}

button.regular {
	width: 100%;
	background: var(--color-primary-bg);
	border: 1px solid transparent;
	font-weight: 500;
	font-size: 10pt;
	color: var(--color-primary-text);
	height: 50px;
	border-radius: 20px;
}

button:disabled {
	background: var(--background-disabled);
	border-color: var(--background-disabled);
}

/* loading */

button.loading {
	position: relative;
	color: transparent !important;
}

button.loading::after {
	content: '';
	position: absolute;
	top: calc(50% - calc(20px / 2));
	left: calc(50% - calc(20px / 2));
	width: 20px;
	height: 20px;
	border-radius: 50px;
	animation: rotation 2s infinite linear !important;
	border-top-color: transparent !important;
	border: 3px solid #FFFFFF;
}

button.loading[data-color="gray"]::after {
	border-color: #B3B3B3 !important;
	border-top-color: transparent !important;
}

li.loading {
	position: relative;
	color: transparent !important;
}

li.loading::after {
	content: '';
	position: absolute;
	top: calc(50% - calc(15px / 2));
	left: calc(50% - calc(15px / 2));
	width: 15px;
	height: 15px;
	border-radius: 50px;
	animation: rotation 2s infinite linear !important;
	border-top-color: transparent !important;
	border: 2px solid #FFFFFF;
}

li.loading[data-color="gray"]::after {
	border-color: #B3B3B3 !important;
	border-top-color: transparent !important;
}

/* animations */

@keyframes rotation {
	0% {
        transform: rotate(0deg);
	}
	100% {
        transform: rotate(360deg);
    }
}

/* .module */

.module {
	background: var(--background-1);
	border-radius: 25px;
	padding: 25px;
}

.module.disabled {
	background: var(--background-2);
	display: flex;
	justify-content: center;
	align-items: center;
}

.module.disabled p {
	margin: 0;
	text-align: center;
	color: var(--color-placeholder);
	font-size: 10pt;
	font-weight: 300;
	user-select: none;
}

/* form */

.input_box {
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	flex-direction: column;
	margin-bottom: 15px;
	gap: 7px;
}

.input_box:last-child {
	margin-bottom: 0px;
}

.input_box label {
	font-size: 10pt;
	font-weight: 400;
	color: var(--color-text-3);
	transition: all 300ms ease;
	position: relative;
	line-height: 100%;
	margin-left: 5px;
}

.input_box:has(*:required) label::after {
	content: ' *';
	font-weight: 300;
	color: red;
}

.input_box .input_item {
	width: 100%;
	border-radius: 20px;
	border: 1px solid var(--color-border);
	transition: all 300ms ease;
	padding: 0 20px;
	height: 50px;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
}

.input_box .input_item select,
.input_box .input_item input {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
	outline: none;
	border: none;
	font-size: 11pt;
	font-weight: 400;
	color: var(--color-text-1);
	width: 100%;
}

.input_box .input_item input:disabled {
	color: var(--color-disabled);
}

.input_box .input_item:has(textarea) {
	padding: 0px !important;
	min-height: 150px !important;
}

.input_box .input_item textarea {
	margin: 0 !important;
	padding: 10px 15px !important;
	background: transparent;
	height: 100%;
	outline: none;
	border: none;
	font-size: 10pt;
	font-weight: 300;
	color: var(--color-text-1);
	width: 100%;
}

.input_box .input_item input::placeholder {
	color: var(--color-placeholder);
}

.input_box:focus-within .input_item {
	border-color: var(--color-border-hover);
}

.input_box:focus-within label {
	color: var(--color-text-2);
}

label.input_item:has(input[type="file"]) {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 0 24px;
	font-size: 10pt;
	position: relative;
}

label.input_item:has(input[type="file"])::before {
	content: 'Selecione um arquivo';
}

label.input_item:has(input[type="file"]) input[type="file"] {
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* title */

div.title {
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
	align-items: stretch;
	font-family: Ubuntu Sans;
	gap: 10px;
}

div.title h1 {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.3px;
	color: var(--color-text-1);
	margin: 0;
}

div.title h2 {
	font-size: 17pt;
	font-weight: 300;
	color: var(--color-text-1);
	margin: 0;
}

div.title h3 {
	font-size: 15pt;
	font-weight: 300;
	color: var(--color-text-1);
	margin: 0;
}

div.title p {
	font-size: 11pt;
	font-weight: 300;
	color: var(--color-text-3);
	margin: 0;
}

div.title:has(h3) {
	gap: 5px;
}

/* table */

table {
	width: 100%;
	padding: 0;
	margin: 0;
}

table td div.loading {
	position: relative;
	color: transparent !important;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 60px;
}

table td div.loading::after {
	content: '';
	position: absolute;
	top: calc(50% - calc(30px / 2));
	left: calc(50% - calc(30px / 2));
	width: 30px;
	height: 30px;
	border-radius: 30px;
	animation: rotation 2s infinite linear !important;
	border-top-color: transparent !important;
	border: 3px solid #e2e4ee;
}

table th {
	font-size: 10pt;
	font-weight: 400;
	color: var(--color-disabled);
	padding: 0 20px 15px 20px;
	border-bottom: 1px solid var(--background-2);
	line-height: 100%;
}

table tr:hover td {
	background: #fafafa;
}

table td:first-child,
table th:first-child {
	padding-left: 10px;
}

table td:last-child,
table th:last-child {
	padding-right: 10px;
}

table td {
	font-size: 11pt;
	font-weight: 400;
	color: var(--color-text-1);
	padding: 15px 20px 15px 20px;
	border-bottom: 1px solid var(--background-2);
	transition: all 300ms ease;
	vertical-align: middle;
}

table td .td {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	overflow: hidden;
	gap: 5px;
}

table td .td p {
	margin: 0;
}

table td .td a {
	color: rgb(13 110 253) !important;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

table td .td a svg {
	height: 13pt;
}

table td .td a p {
	color: rgb(13 110 253) !important;
	font-size: 9pt;
}

table td .td p.title {
	font-size: 11pt;
	font-weight: 400;
	color: var(--color-text-1);
	white-space: nowrap;
	text-overflow: ellipsis;
	line-height: 120%;
}

table td .td p.description {
	font-size: 10pt;
	font-weight: 300;
	color: var(--color-text-3);
	text-overflow: ellipsis;
	line-height: 150%;
}

table td .td:has(p.json_desc) {
	width: 200px;
}

table td .td p.json_desc {
	display: block;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

table td .td p.description:empty {
	display: none;
}

table td .label {
	background: #00000007;
	border-radius: 15px;
	padding: 4px 12px;
	font-weight: 500;
	font-size: 9pt;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

table td .td_actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0px;
}

table td .td_actions button {
	width: 25px;
	height: 30px;
	border-radius: 30px;
	background: #00000000;
	transition: all 300ms ease;
	color: #d0d0d0;
	padding: 0px !important;
	border: none;
	display: flex;
	justify-content: center;
	align-items: stretch;
}

table td .td_actions button svg {
	stroke-width: 1.5px !important;
	width: 20px !important;
}

table td .td_actions button:hover {
	color: var(--color-text-1);
	background: var(--background-2);
}

table td.nothing {
	border: none !important;
	padding: 0;
}

table td.nothing:hover {
	background: transparent;
}

table td.nothing p {
	background: red;
	text-align: center;
	margin: 0;
	margin-top: 15px;
	color: var(--color-text-3);
	background: var(--background-2);
	border-radius: 15px;
	padding: 30px 0;
	font-weight: 300;
	font-size: 10pt;
	display: flex;
	justify-content: center;
	align-items: center;
}

table .center {
	text-align: center !important;
	justify-content: center !important;
	align-items: center !important;
}

/* footer */

.footer {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	margin-top: 1.2rem;
	gap: 10px;
}

.footer button {
	width: 45px;
	height: 45px;
	border-radius: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--color-primary);
	background: var(--color-primary);
	transition: all 300ms ease;
	color: #FFFFFF;
}

.footer button.text {
	width: auto !important;
	font-size: 10pt;
	font-weight: 400;
	padding: 0 15px;
}

.footer button.text svg {
	height: 50%;
}

.footer button:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

.footer button svg {
	height: 70%;
	stroke-width: 1px;
	color: currentColor;
}

/* header */

.header {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	height: 100%;
	gap: 1rem;
}

.header button {
	width: 45px;
	height: 45px;
	border-radius: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--color-primary);
	background: var(--color-primary);
	transition: all 300ms ease;
	color: #FFFFFF;
}

.header button.text {
	width: auto !important;
	font-weight: 500;
	padding: 0 15px;
}

.header button.text svg {
	height: 50%;
}

.header button:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

.header button svg {
	height: 70%;
	stroke-width: 1.5px;
	color: currentColor;
}

.header .input_item {
	height: 45px;
	min-width: 150px;
}

/* tooltip */

.tooltip-inner {
	background: #171718;
	border-radius: 15px;
	padding: 10px 15px;
	font-family: Poppins;
	font-weight: 500;
	font-size: 10pt;
	line-height: 100%;
}

/* modal */

.modal {
	outline: none !important;
	background: #00000025 !important;
	backdrop-filter: blur(5px) !important;
}

.modal-backdrop {
	opacity: 0 !important;
}

.modal .modal-content {
	box-shadow: none !important;
	outline: none !important;
	border: none !important;
	border-radius: 40px;
}

.modal .modal-body {
	padding: 20px 35px !important;
}

.modal .modal-header {
	border: none !important;
	padding: 30px 35px !important;
}

.modal .modal-footer {
	border: none !important;
	padding: 20px !important;
}

.modal .modal-footer button {
	margin: 0;
	font-size: 11pt;
}

.modal .modal-footer .buttons_row button {
	padding: 10px 20px !important;
}

/* swal_toast */

.swal2-container:has(.swal2-toast) {
	overflow: visible !important;
}

.swal2-toast {
	border-radius: 25px !important;
	box-shadow: 0px 0px 100px -25px #00000050 !important;
	position: relative;
}

.swal2-toast h2 {
	font-size: 11pt !important;
	font-weight: 500 !important;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 0 0 10px !important;
}

/* status */

label.status {
	padding: 8px 14px;
	font-size: 9pt;
	font-weight: 600;
	border-radius: 15px;
	background: #00000005;
	line-height: 100%;
	color: var(--color-text-1);
}

label.status[data-color="green"] {
	background: var(--color-badge-green-bg);
	color: var(--color-badge-green-text);
}

label.status[data-color="red"] {
	background: var(--color-badge-red-bg);
	color: var(--color-badge-red-text);
}

label.status[data-color="black"] {
	background: var(--color-badge-black-bg);
	color: var(--color-badge-black-text);
}

label.status[data-color="yellow"] {
	background: var(--color-badge-yellow-bg);
	color: var(--color-badge-yellow-text);
}