@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-rounded/css/uicons-solid-rounded.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-thin-rounded/css/uicons-thin-rounded.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-thin-chubby/css/uicons-thin-chubby.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-chubby/css/uicons-regular-chubby.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-brands/css/uicons-brands.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-chubby/css/uicons-solid-chubby.css');

:root {
	--backicon: fill="hsl(0, 0%, 47%)";
}

html {
	--baseh: rgb(250, 250, 250, .3);
	--basep: rgb(250, 250, 250);
	--basea: rgb(240, 240, 240);
	--baseb: rgb(230, 230, 230);
	--basec: rgb(220, 220, 220);
	--based: rgb(210, 210, 210);
	--basee: rgb(200, 200, 200);

	--backdrop: rgba(235, 235, 235, 0.2);
	--backdropb: rgba(0, 0, 0, 0.15);

	--primaryh: rgba(75, 105, 110, .2);
	--primaryp: rgb(75, 105, 110);
	--primarya: rgb(65, 95, 100);
	--primaryb: rgb(55, 85, 90);
	--primaryc: rgb(45, 75, 80);
	--primaryd: rgb(35, 65, 70);
	--primarye: rgb(25, 55, 60);

	--secondaryh: rgba(250, 150, 80, .2);
	--secondaryp: rgb(250, 150, 80);
	--secondarya: rgb(240, 140, 70);
	--secondaryb: rgb(230, 130, 60);
	--secondaryc: rgb(220, 120, 50);
	--secondaryd: rgb(210, 110, 40);
	--secondarye: rgb(200, 100, 30);

	--danger: rgb(210, 90, 115);
	--dangerh: rgba(210, 90, 115, 0.15);
	--dangerhs: rgba(210, 90, 115, 0.25);
	--dangerb: rgb(200, 80, 105);
	--success: rgb(78, 198, 119);
	--successh: rgba(78, 198, 119, 0.15);
	--successhs: rgba(78, 198, 119, 0.25);
	--oppen: rgb(15, 200, 240);
	--oppenh: rgba(15, 200, 240, 0.15);
	--error: #fd9a14;
	--errorh: rgba(253, 154, 20, 0.15);
	--errorb: #e68d13;

	--colora: rgb(80, 100, 120);
	--colorb: rgb(70, 90, 110);
	--colorc: rgb(60, 80, 100);
	--colord: rgb(50, 80, 90);
	--colore: rgb(40, 70, 80);

	--shad: 0px 4px 12px rgb(0 0 0 / 5%);
	--shads: 0px 4px 16px rgb(0 0 0 / 15%);
	--shadg: 0px 4px 16px rgb(0 0 0 / 25%);

	--rads: 6px;
	--radsp: 3px;
	--radsg: 9px;
}


body.dark {
	--baseh: rgba(25, 30, 35, .3);
	--basep: rgb(25, 30, 35);
	--basea: rgb(35, 40, 45);
	--baseb: rgb(45, 50, 55);
	--basec: rgb(55, 60, 65);
	--based: rgb(65, 70, 75);
	--basee: rgb(75, 80, 85);

	--backdrop: rgba(20, 25, 30, 0.4);
	--backdropb: rgba(0, 0, 0, 0.3);

	--colora: rgb(180, 190, 200);
	--colorb: rgb(170, 180, 190);
	--colorc: rgb(160, 170, 180);
	--colord: rgb(150, 160, 170);
	--colore: rgb(140, 150, 160);

	--shad: 0px 4px 12px rgb(0 0 0 / 20%);
	--shads: 0px 4px 16px rgb(0 0 0 / 30%);
}

* {
	box-sizing: border-box;
	font-family: 'Rajdhani', sans-serif;
}

body {
	background: var(--baseb);
	min-height: 100vh;
	overflow: hidden;
}

#main {
	display: flex;
	width: 100%;
}

#panel {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	overflow: auto;
	height: calc(100vh);
}

.rpl {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	user-select: none;
}

.ripple {
	position: absolute;
	border-radius: 50%;
	background-color: rgba(60, 210, 200, .4);
	transform: scale(0);
	animation: ripple-effect 0.6s linear;
}

@keyframes ripple-effect {
	to {
		transform: scale(4);
		opacity: 0;
	}
}

#load {
	position: fixed;
	left: calc(50% - 60px);
	top: calc(50% - 60px);
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--baseh);
	width: 120px;
	height: 120px;
	border-radius: 50%;
	transition: 3s;
	z-index: 20000;
}

#load.on {
	display: flex;
}

#load img {
	max-width: 80px !important;
	position: absolute;
	margin: auto;
	left: 0;
	right: 0;
}

#load svg circle {
	stroke: var(--primaryc) !important;
}

#load .uk-spinner {
	border-radius: 50%;
	transition: all 0.3s ease;
	backdrop-filter: blur(1px);
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

#load .uk-spinner::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: transparent;
	border: 2px solid var(--primarya);
	animation: wave-pulse 1.25s ease-out infinite;
	pointer-events: none;
}

#load .uk-spinner::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: transparent;
	border: 2px solid var(--primaryp);
	animation: wave-pulse 2.5s ease-out infinite;
	pointer-events: none;
}

@keyframes wave-pulse {
	0% {
		transform: scale(1);
		opacity: 0.5;
	}

	100% {
		transform: scale(1.4);
		opacity: 0;
	}
}

#reload button {
	position: fixed;
	bottom: 7px;
	right: 30px;
	z-index: 98;
	padding: 8px 10px !important;
	border-radius: 10px;
	height: 30px;
}

#reload button i {
	color: var(--colora);
}

#reload button:hover {
	background: var(--primarya);
}

#reload button:hover i {
	color: #FFF;
}

#p404 .uk-container {
	max-width: 720px;
	margin-left: inherit;
}

#p404 h1 {
	margin: 0 !important;
}

#p404 h1 i {
	font-size: 4rem;
	display: flex;
	color: var(--dangerh);
}

#p404 .uk-alert-danger {
	width: inherit;
	background-color: var(--basea);
	border: solid 1px var(--basec);
}

#p404 p {
	display: flex;
	align-items: center;
	line-height: 0;
	grid-gap: 10px;
	font-weight: 500
}

#p404 p i {
	color: var(--danger);
}

#p404 .uk-progress::-moz-progress-bar {
	background: var(--danger) !important;
}

#p404 .uk-progress::-webkit-progress-value {
	background-color: var(--danger);
}

#redirect-progress::-moz-progress-bar {
	color: var(--primarya);
}

#redirect-progress::-webkit-progress-value {
	background-color: var(--primarya);
}

.uk-tooltip {
	background-color: var(--colora);
}

.uk-notification {
	z-index: 10000;
}

.uk-notification-message {
	border-radius: 5px;
	filter: drop-shadow(0px 4px 13px rgb(0 0 0 / 10%));
	background: var(--colore);
	color: var(--basea);
}

.uk-notification .uk-close {
	margin-top: -5px;
	color: var(--basep);
}

.uk-notification .uk-close:hover {
	color: var(--basea);
}

.uk-notification-message p {
	margin: 0;
	line-height: 1;
	font-weight: 400;
}

.uk-notification-message div {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1rem;
	display: flex;
	align-items: center;
}

.uk-notification-message i {
	margin-right: 10px;
	font-size: 1.4rem !important;
}

.uk-notification-message-primary i,
.uk-notification-message-primary b {
	color: var(--oppen) !important;
}

.uk-notification-message-success i,
.uk-notification-message-success b {
	color: var(--primarya) !important;
}

.uk-notification-message-warning i,
.uk-notification-message-warning b {
	color: var(--error) !important;
}

.uk-notification-message-danger i,
.uk-notification-message-danger b {
	color: var(--danger) !important;
}

#btn-ativar-notificacoes {
	color: var(--colorb) !important;
	border: none;
	box-shadow: var(--shad);
}


/* Time Picker Dropdown */
.time-dd {
	position: fixed;
	background: var(--basea);
	color: var(--colorc);
	border-radius: var(--radsg);
	box-shadow: var(--shads);
	width: 280px;
	z-index: 9999;
	user-select: none;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: solid 1px var(--basec);
}

.time-dd.hide {
	display: none;
}

/* Header */
.time-dd .header {
	background: var(--basep);
	padding: 0;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2rem;
	font-weight: 500;
	color: var(--colorc);
}

.time-dd .header span {
	color: var(--colorc);
	cursor: pointer;
}

.time-dd .header span.active {
	color: var(--primarya);
}

.time-dd .header .colon {
	margin: 0 5px;
	cursor: default;
	color: var(--colora);
}

/* Clock Face */
.time-dd .clock-wrapper {
	position: relative;
	width: 240px;
	height: 240px;
	margin: 10px auto;
	background: var(--basep);
	border-radius: 50%;
}

.time-dd .clock-face {
	width: 100%;
	height: 100%;
	position: relative;
}

.time-dd .clock-number {
	position: absolute;
	width: 30px;
	height: 30px;
	text-align: center;
	line-height: 30px;
	border-radius: 50%;
	font-size: 1rem;
	cursor: pointer;
	transform: translate(-50%, -50%);
	left: 50%;
	top: 50%;
	font-weight: 600;
}

.time-dd .clock-number:hover {
	background: var(--basea);
}

.time-dd .clock-number.selected {
	background: var(--primarya);
	color: var(--basep);
}

/* Inner circle for 13-24 hours */
.time-dd .clock-number.inner {
	font-size: .9rem;
	color: var(--colora);
}

.time-dd .clock-number.inner.selected {
	color: var(--basea);
	background: var(--colora);
	z-index: 1;
}

/* Clock Hand */
.time-dd .clock-hand {
	position: absolute;
	width: 3px;
	height: 37%;
	background: var(--primarya);
	left: calc(50% - 2px);
	bottom: 50%;
	transform-origin: bottom center;
	pointer-events: none;
}

.time-dd .clock-hand::before {
	content: '';
	position: absolute;
	bottom: -3px;
	left: -3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primarya);
}

/* Footer */
.time-dd .footer {
	display: flex;
	justify-content: space-between;
	padding: 10px 20px 20px;
}

.time-dd .footer button {
	background: var(--basep);
	border: solid 1px var(--baseb);
	color: var(--colorc);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 4px;
}

.time-dd .footer button:hover {
	background: rgba(168, 199, 250, 0.1);
}

.time-dd .footer button.cancel {
	color: var(--danger);
}

/* Fix Chrome backdrop-filter rendering issues in dark mode */
body.dark #form .close,
body.dark #form .action::before,
body.dark #load .uk-spinner,
body.dark #midia .close {
	backdrop-filter: none;
}

/* ======================================
   ESTILOS DE IMPRESSAO GLOBAL
   ====================================== */
@media print {

	/* Reset global para permitir multiplas paginas */
	html,
	body {
		height: auto !important;
		min-height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	/* Remove o layout fixo do painel */
	#main {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
	}

	#panel {
		height: auto !important;
		overflow: visible !important;
		display: block !important;
	}

	/* Esconde elementos de navegacao */
	#menu,
	#header,
	#load,
	#reload,
	.no-print {
		display: none !important;
	}

	/* Remove backdrop e modais/overlays */
	.uk-modal,
	.uk-modal-dialog,
	.uk-offcanvas,
	.uk-notification {
		display: none !important;
	}
}