/* 
	Load a web-safe or system font stack for readability 
	Must be at the top
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Remarks (chat bubble style) */
.fade-in { animation: fadein .25s ease-in; }
@keyframes fadein { from {opacity:0; transform: translateY(-2px);} to {opacity:1; transform:none;} }
.chat-list { display: flex; flex-direction: column; gap: 1rem; }
.chat-item { display: flex; gap: .75rem; align-items: flex-start; }
.chat-item .avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6f42c1, #22c55e); box-shadow: 0 3px 10px rgba(0,0,0,.08); flex: 0 0 40px; }
.chat-item .bubble { background: #fff; border: 1px solid rgba(0,0,0,.075); border-radius: 1rem; padding: .75rem 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.06); max-width: 100%; }
.chat-item .bubble .meta { display: flex; gap: .5rem; align-items: baseline; }
.chat-item .bubble .meta .name { font-weight: 600; }
.chat-item .bubble .meta .time { color: var(--bs-secondary-color); font-size: .875rem; }
.chat-item .bubble .text { white-space: pre-wrap; word-wrap: break-word; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #111;
  background-color: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* modern report table */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; background: #00a19b; }
.table-card { background: #fff; border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.table .table-active {
  background-color: #6f42c1 !important; /* purple */
  color: #fff !important;
}

/* If using table-hover and want custom hover color */
.table-hover tbody tr:hover {
  background-color: #6f42c1 !important; /* green */
  color: #fff !important;
}

/* modern buttons */
.btn-card-small {
	text-decoration: none;
	border-radius: 1rem;
	text-align: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
	border: 0;
}

.btn-card-small:focus {
	outline: none;
}

.btn-card-small:focus-visible {
	box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25), 0 4px 14px rgba(0, 0, 0, .12);
}

.btn-card-small:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0, .10);
}

.btn-card {
	display: block;
	text-decoration: none;
	border-radius: 1rem;
	padding: 2.25rem 1.25rem;
	text-align: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
	border: 0;
}

.btn-card:focus {
	outline: none;
}

.btn-card:focus-visible {
	box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25), 0 4px 14px rgba(0, 0, 0, .12);
}

.btn-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.btn-card .icon-wrap {
	font-size: 2.5rem;
	line-height: 1;
	margin-bottom: .75rem;
}

.btn-card .label {
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: .2px;
}

/* Two themed variants */
.btn-card-primary {
	background: #00a19b;
	color: #fff;
}

.btn-card-primary:hover {
	color: #fff;
}

.btn-card-secondary {
	background: #763F98;
	color: #fff;
}

.btn-card-secondary:hover {
	color: #fff;
}

.btn-card-tertiary {
	background: #565f64;
	color: #fff;
}

.btn-card-tertiary:hover {
	color: #fff;
}

/* Make cards equal height in the grid */
.card-cell {
	display: flex;
}

.card-cell>a {
	flex: 1 1 auto;
}

/* custom colors */
.bg-custom-white {
	background-color: #ffffff !important;
}

.text-custom-white {
	color: rgb(255, 255, 255);
}

.bg-custom-black {
	background-color: #000000 !important;
}

.text-custom-black {
	color: rgb(0, 0, 0);
}

.bg-custom-primary {
	background-color: #00a19b !important;
}

.text-custom-primary {
	color: rgb(0, 161, 155);
}

.bg-custom-neutral {
	background-color: #F7FAFC !important;
}

.bg-custom-secondary {
	background-color: #565f64 !important;
}

.text-custom-secondary {
	color: rgb(86, 95, 100);
}

.bg-custom-tertiary {
	background-color: #763F98 !important;
}

.text-custom-tertiary {
	color: rgb(118, 63, 152);
}

/* override bootstrap */
.nav-item .dropdown-menu>a:hover {
	background-color: rgb(118, 63, 152);
}

/* override bootstrap */
.nav-active {
	color: #763F98;
}

/* override bootstrap */
.nav-active-white {
	color: #ffffff;
}

.hover-pointer {
	cursor: pointer;
}


/* bootstrap submenu */
.dropdown-submenu {
	position: relative;
}

.dropdown-submenu a::after {
	transform: rotate(-90deg);
	position: absolute;
	right: 6px;
	top: .8em;
}

.dropdown-submenu>a:hover {
	background-color: rgb(127, 18, 8);
}

.dropdown-submenu .dropdown-menu {
	top: 0;
	left: 100%;
	margin-left: .1rem;
	margin-right: .1rem;
}

.dropdown-item .dropdown-submenu .dropdown-menu>a:hover {
	background-color: rgb(127, 18, 8);
}

/* ChartJS print */
@media print {
	.chartjs-size-monitor {
		position: fixed !important;
	}

	.print-hidden {
		display: none !important;
	}

	body {
		background: #fff;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.container {
		max-width: 100% !important;
		padding: 0 !important;
	}

	.card {
		box-shadow: none !important;
		border: 1px solid #dee2e6;
	}

	.card,
	.table,
	.row,
	.col,
	.section {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.table {
		border-color: #dee2e6;
	}
}

/* Print-friendly layout */
@page {
	size: A4;
	margin: 12mm;
}

.logo-box {
	width: 64px;
	height: 64px;
	border: 1px dashed #adb5bd;
	background: #e9ecef;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c757d;
	font-size: .8rem;
}

.section {
	margin-bottom: 1rem;
}

.no-break {
	break-inside: avoid;
	page-break-inside: avoid;
}

.report-image {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.img-frame {
	border: 1px solid #dee2e6;
	border-radius: .5rem;
	padding: .5rem;
}

.print-hidden {
	display: inline-block;
}