/*
 * hr16.css — penyesuaian kecil di atas template uBold.
 */

/* Footer di bawah content-page */
.footer {
	padding: 1.15rem 0;
	color: var(--theme-text-muted);
	background-color: var(--theme-secondary-bg);
	border-top: var(--theme-theme-card-border-width) solid var(--theme-theme-card-border-color);
}

/* Card statistik di list halaman */
.stat-card .stat-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

/* ===== Widget statistik (kartu ringkasan di semua halaman) ===== */
/* Pola markup: .card > .card-body.py-3 > label + angka .fs-4/.fs-5 */
.card-body.py-3 {
	position: relative;
	overflow: hidden;
}

.card-body.py-3::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	border-radius: 3px 0 0 3px;
	background: var(--stat-accent, var(--theme-primary, #6658dd));
}

/* Aksen bergantian per posisi kartu dalam baris */
.row > div:nth-child(6n+1) .card-body.py-3 { --stat-accent: #6658dd; }
.row > div:nth-child(6n+2) .card-body.py-3 { --stat-accent: #0acf97; }
.row > div:nth-child(6n+3) .card-body.py-3 { --stat-accent: #f1556c; }
.row > div:nth-child(6n+4) .card-body.py-3 { --stat-accent: #f7b84b; }
.row > div:nth-child(6n+5) .card-body.py-3 { --stat-accent: #43bfe5; }
.row > div:nth-child(6n+6) .card-body.py-3 { --stat-accent: #8a969c; }

/* Angka besar */
.card-body.py-3 .fs-4 {
	font-size: 2rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.5px;
	line-height: 1.25;
}

.card-body.py-3 .fs-5 {
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.3px;
	line-height: 1.25;
}

/* Label kapital kecil */
.card-body.py-3 .text-secondary.small {
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-size: 0.7rem;
	font-weight: 600;
}

/* Efek hover halus pada kartu widget */
.row > div > .card:has(> .card-body.py-3) {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.row > div > .card:has(> .card-body.py-3):hover {
	transform: translateY(-2px);
	box-shadow: 0 0.5rem 1.5rem rgba(18, 38, 36, 0.08);
}

/* Ikon tile untuk widget dashboard */
.stat-icon {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
}

.stat-label {
	color: var(--theme-gray-600, #8a969c);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-size: 0.7rem;
	font-weight: 600;
}

.stat-value {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.25;
}

/* Tabel: hindari teks meluber */
.table td, .table th {
	vertical-align: middle;
}

/* Form select/dropdown agar lebih rapi */
.form-control:focus, .form-select:focus {
	box-shadow: 0 0 0 0.15rem rgba(102, 88, 221, 0.15);
}

/* Datepicker: ikon kalender + kursor pointer agar terlihat dapat diklik */
.hr16-date {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a969c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.25rem;
}

/* Input angka: rata kanan */
.hr16-number {
	text-align: right;
}

/* Page title */
.page-title {
	font-weight: 700;
}

/* Bingkai kartu: skin "default" tidak didefinisikan di app.min.css sehingga
 * var border/shadow kartu kosong dan kartu tampak polos. Beri fallback di sini
 * agar konsisten di semua skin. */
:root {
	--theme-theme-card-border-width: 1px;
	--theme-theme-card-border-color: var(--theme-border-color, #e7e9eb);
	--theme-theme-card-box-shadow: var(--theme-box-shadow-sm, 0 0.75rem 6rem rgba(56, 65, 74, 0.03));
}

.text-secondary-emphasis {
	color: var(--theme-gray-600, #8a969c);
}