:root {
	--sidebar: 250px;
}
body {
	background: #f5f7fb;
	color: #1e293b;
}
.sidebar {
	width: var(--sidebar);
	min-height: calc(100vh - 56px);
	background: #fff;
	border-right: 1px solid #e5e7eb;
}
.sidebar .nav-link {
	color: #475569;
	border-radius: 0.6rem;
	padding: 0.7rem 0.9rem;
}
.sidebar .nav-link:hover {
	background: #eff6ff;
	color: #0d6efd;
}
.sidebar .nav-link i {
	width: 24px;
}
.content {
	min-width: 0;
}
.stat-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	border-radius: 1rem;
	min-height: 140px;
}
.stat-card > i {
	font-size: 3rem;
	opacity: 0.8;
}
.card {
	border-radius: 1rem;
}
.table > :not(caption) > * > * {
	padding: 1rem;
}
.permission-box {
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1rem;
	background: #f8fafc;
}

/* Dashboard */
.dashboard-filter {
	border-radius: 1.25rem;
}

.year-select {
	min-width: 160px;
}

.dashboard-api-status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.82rem;
	font-weight: 600;
}

.dashboard-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #94a3b8;
	display: inline-block;
}

.dashboard-status-dot.status-loading {
	background: #f59e0b;
	animation: dashboard-pulse 1.2s ease-in-out infinite;
}

.dashboard-status-dot.status-success {
	background: #22c55e;
}

.dashboard-status-dot.status-error {
	background: #ef4444;
}

@keyframes dashboard-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

.summary-card {
	position: relative;
	padding: 1.15rem 1.25rem;
	border-radius: 1.25rem;
	background: linear-gradient(180deg, #ffffff, #fcfdff);
	border: 1px solid #eef1f6;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
	overflow: hidden;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.summary-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--summary-accent, #2563eb),
		transparent
	);
}

.summary-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.summary-title {
	color: #64748b;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.summary-icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: linear-gradient(
		135deg,
		var(--summary-accent-soft, #eff6ff),
		#ffffff
	);
	color: var(--summary-accent, #2563eb);
	font-size: 1.05rem;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.summary-number {
	margin-top: 0.7rem;
	color: #0f172a;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.summary-description {
	margin-top: 0.3rem;
	color: #94a3b8;
	font-size: 0.76rem;
}

.summary-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.8rem;
	padding-top: 0.7rem;
	border-top: 1px dashed #e2e8f0;
	color: #64748b;
	font-size: 0.8rem;
}

.summary-footer strong {
	color: #0f172a;
	font-size: 0.92rem;
}

.summary-blue {
	--summary-accent: #2563eb;
	--summary-accent-soft: #eaf1ff;
}

.summary-green {
	--summary-accent: #059669;
	--summary-accent-soft: #e7f9f2;
}

.summary-orange {
	--summary-accent: #d97706;
	--summary-accent-soft: #fef3e2;
}

.summary-red {
	--summary-accent: #e11d48;
	--summary-accent-soft: #fdeaf0;
}

.summary-purple {
	--summary-accent: #7c3aed;
	--summary-accent-soft: #f1ecfe;
}

.dashboard-filter-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.dashboard-filter-icon {
	width: 42px;
	height: 42px;
	display: grid;
	flex-shrink: 0;
	place-items: center;
	border-radius: 12px;
	background: linear-gradient(135deg, #eaf1ff, #dbeafe);
	color: #2563eb;
	font-size: 1.15rem;
}

.dashboard-filter-head h2 {
	margin: 0;
	color: #0f172a;
	font-size: 1.05rem;
	font-weight: 700;
}

.dashboard-filter-head p {
	margin: 0;
	color: #94a3b8;
	font-size: 0.82rem;
}

.dashboard-alert {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1rem 1.25rem 1rem 1.4rem;
	border: 1px solid #fde68a;
	border-radius: 1rem;
	background: #fffbeb;
	color: #92400e;
}

.dashboard-alert::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	border-radius: 1rem 0 0 1rem;
	background: #f59e0b;
}

.dashboard-alert-icon {
	width: 38px;
	height: 38px;
	display: grid;
	flex-shrink: 0;
	place-items: center;
	border-radius: 12px;
	background: #fef3c7;
	color: #b45309;
	font-size: 1.05rem;
}

.chart-card {
	height: 100%;
	padding: 1.6rem 1.6rem 1.4rem;
	border-radius: 1.5rem;
	background: #fff;
	border: 1px solid #eef1f6;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.chart-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.chart-card-head h2 {
	margin: 0 0 0.2rem;
	color: #0f172a;
	font-size: 1.02rem;
	font-weight: 700;
}

.chart-card-head p {
	margin: 0;
	color: #94a3b8;
	font-size: 0.8rem;
}

.chart-card-badge {
	flex-shrink: 0;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: #eaf1ff;
	color: #2563eb;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.chart-canvas-wrap {
	position: relative;
	width: 100%;
	height: 280px;
}

.chart-legend-list {
	list-style: none;
	display: grid;
	gap: 0.6rem;
	margin: 1.1rem 0 0;
	padding: 0;
}

.chart-legend-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	color: #475569;
	font-size: 0.82rem;
}

.chart-legend-list .legend-label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.chart-legend-dot {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	border-radius: 50%;
}

.chart-legend-list strong {
	color: #0f172a;
}

.dashboard-footer-note {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #eef1f6;
	color: #64748b;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	background:
		radial-gradient(
			circle at top left,
			rgba(255, 255, 255, 0.28),
			transparent 28%
		),
		radial-gradient(
			circle at bottom right,
			rgba(17, 24, 39, 0.18),
			transparent 30%
		),
		linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #3b82f6 100%);
	padding: 2rem 0;
}

.login-shell {
	max-width: 1100px;
	padding: 0 1rem;
}

.login-frame {
	overflow: hidden;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.login-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 3rem 2.5rem;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.2),
		rgba(15, 23, 42, 0.55)
	);
	color: #fff;
}

.hero-badge {
	align-self: flex-start;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero-brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 1.5rem;
	font-size: 1.9rem;
	font-weight: 700;
}

.hero-brand img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.login-hero h1 {
	margin: 1.5rem 0 0.8rem;
	font-size: clamp(2.5rem, 3vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.login-hero p {
	max-width: 440px;
	margin-bottom: 1.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
	line-height: 1.7;
}

.hero-points {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
}

.hero-points li {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.hero-points i {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #dbeafe;
}

.login-panel {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2.2rem 2rem;
	background: rgba(255, 255, 255, 0.92);
}

.panel-header {
	width: min(100%, 440px);
	margin-bottom: 1.5rem;
	text-align: center;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 0.35rem;
	color: #2563eb;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.panel-header h2 {
	margin: 0;
	color: #0f172a;
	font-weight: 800;
	font-size: 2rem;
}

.login-card {
	width: min(100%, 440px);
	border-radius: 1.5rem;
	background: transparent;
}

.input-group-text {
	background: #f8fafc;
	border: 1px solid #dfe7f1;
	color: #64748b;
}

.form-control {
	height: 52px;
	border: 1px solid #dfe7f1;
	border-left: 0;
	border-radius: 0 0.9rem 0.9rem 0;
	background: #fff;
	box-shadow: none;
}

.input-group-lg .form-control,
.input-group-lg .input-group-text {
	height: 52px;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
	border-color: #93c5fd;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-label {
	margin-bottom: 0.6rem;
	color: #334155;
	font-weight: 600;
}

.captcha-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.9rem;
	min-width: 140px;
	min-height: 48px;
	border-radius: 0.75rem;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	border: 1px solid #bfdbfe;
	color: #1e3a8a;
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: 0.2rem;
}

.btn-login {
	border: 0;
	border-radius: 0.9rem;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.btn-login:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

.brand-icon {
	width: 74px;
	height: 74px;
	margin: auto;
	display: grid;
	place-items: center;
	border-radius: 22px;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	border: 1px solid rgba(37, 99, 235, 0.12);
}

.brand-icon img {
	width: 48px;
	height: auto;
}

.navbar-logo {
	width: 28px;
	height: auto;
	margin-right: 0.5rem;
	vertical-align: middle;
}

.captcha-fallback {
	width: 180px;
	height: 55px;
	background: #f5f7fa;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 3px;
	border: 1px solid #dce1e6;
}

@media (max-width: 991.98px) {
	.login-panel {
		padding: 2rem 1.25rem;
	}

	.login-frame {
		border-radius: 24px;
	}
}
@media (max-width: 991.98px) {
	.sidebar {
		min-height: 100vh;
	}
	.content {
		width: 100%;
	}
}

/* UNTUK HALAMAN AKSES DITOLAK */
.access-denied-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 190px);
	padding: 20px 0;
}

.access-denied-card {
	width: 100%;
	max-width: 620px;
	overflow: hidden;
	border-radius: 20px;
	background: #ffffff;
	text-align: center;
}

.access-denied-card::before {
	content: "";
	display: block;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, #ef4444, #f97316);
}

.access-denied-icon {
	display: grid;
	width: 82px;
	height: 82px;
	margin: 0 auto 16px;
	place-items: center;
	border-radius: 24px;
	background: #fff1f2;
	color: #ef4444;
	font-size: 38px;
	box-shadow: 0 10px 25px rgba(239, 68, 68, 0.14);
}

.access-denied-code {
	margin-bottom: 2px;
	color: #ef4444;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 3px;
}

.access-denied-title {
	margin-bottom: 10px;
	color: #0f172a;
	font-size: 30px;
	font-weight: 800;
}

.access-denied-message {
	max-width: 440px;
	margin: 0 auto;
	color: #64748b;
	font-size: 15px;
	line-height: 1.7;
}

.access-permission-info {
	max-width: 470px;
	margin: 25px auto 0;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	text-align: left;
}

.access-info-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 11px 15px;
	border-bottom: 1px solid #e2e8f0;
	color: #334155;
	font-size: 13px;
}

.access-info-item:last-child {
	border-bottom: 0;
}

.access-info-label {
	color: #64748b;
}

.access-info-item code {
	padding: 4px 8px;
	border-radius: 6px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 12px;
}

.access-denied-help {
	max-width: 470px;
	margin: 24px auto 0;
	padding-top: 18px;
	border-top: 1px dashed #dbe3ee;
	color: #94a3b8;
	font-size: 12px;
	line-height: 1.6;
}

@media (max-width: 575.98px) {
	.access-denied-wrapper {
		align-items: flex-start;
		min-height: auto;
		padding-top: 5px;
	}

	.access-denied-card {
		border-radius: 15px;
	}

	.access-denied-title {
		font-size: 25px;
	}

	.access-info-item {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	/* Rekapan NOP */
	.recap-search-card {
		border-radius: 15px;
	}

	.recap-empty-icon {
		display: grid;
		width: 76px;
		height: 76px;
		margin: auto;
		place-items: center;
		border-radius: 22px;
		background: #eff6ff;
		color: #2563eb;
		font-size: 34px;
	}

	.recap-info-label {
		margin-bottom: 5px;
		color: #94a3b8;
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
	}

	.recap-info-value {
		color: #0f172a;
		font-size: 15px;
		font-weight: 700;
	}

	.recap-stat-card {
		--recap-color: #2563eb;
		--recap-background: #eff6ff;

		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 125px;
		padding: 20px;
		border: 1px solid #e2e8f0;
		border-top: 4px solid var(--recap-color);
		border-radius: 14px;
		background: #ffffff;
		box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
	}

	.recap-stat-card > i {
		display: grid;
		width: 44px;
		height: 44px;
		place-items: center;
		border-radius: 12px;
		background: var(--recap-background);
		color: var(--recap-color);
		font-size: 21px;
	}

	.recap-stat-label {
		color: #64748b;
		font-size: 13px;
		font-weight: 600;
	}

	.recap-stat-number {
		margin-top: 7px;
		color: #0f172a;
		font-size: 30px;
		font-weight: 800;
	}

	.recap-stat-money {
		margin-top: 7px;
		color: #0f172a;
		font-size: 20px;
		font-weight: 800;
	}

	.recap-stat-blue {
		--recap-color: #2563eb;
		--recap-background: #eff6ff;
	}

	.recap-stat-green {
		--recap-color: #16a34a;
		--recap-background: #ecfdf3;
	}

	.recap-stat-red {
		--recap-color: #ef4444;
		--recap-background: #fff1f2;
	}

	.recap-stat-orange {
		--recap-color: #f97316;
		--recap-background: #fff7ed;
	}

	.recap-money-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 15px;
		min-height: 60px;
		padding: 14px;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		background: #f8fafc;
	}

	.recap-money-item span {
		color: #64748b;
		font-size: 13px;
	}

	.recap-money-item strong {
		color: #0f172a;
		font-size: 15px;
	}

	@media (max-width: 575.98px) {
		.recap-stat-number {
			font-size: 25px;
		}

		.recap-stat-money {
			font-size: 18px;
		}

		.recap-money-item {
			align-items: flex-start;
			flex-direction: column;
			gap: 5px;
		}
	}
}
.recap-search-card {
	overflow: hidden;
	border-radius: 16px;
}

.recap-search-group {
	overflow: hidden;
	border: 1px solid #dbe3ee;
	border-radius: 10px;
	background: #ffffff;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.recap-search-group:focus-within {
	border-color: #86b7fe;
	box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.recap-search-group .input-group-text {
	border: 0;
}

.recap-search-group .form-control {
	border: 0;
	box-shadow: none;
}

.recap-search-group .btn {
	border-top: 0;
	border-right: 0;
	border-bottom: 0;
}

.recap-search-icon {
	min-width: 52px;
	justify-content: center;
	background: #f8fafc;
	color: #475569;
}

.recap-nop-input {
	min-height: 52px;
	color: #0f172a;
	font-family: "Courier New", monospace;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.4px;
}

.recap-search-button {
	min-width: 230px;
	min-height: 52px;
	padding-right: 25px;
	padding-left: 25px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.recap-search-button:disabled {
	cursor: wait;
	opacity: 0.8;
}

@media (max-width: 767.98px) {
	.recap-search-group {
		display: grid;
		grid-template-columns: 48px 1fr;
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.recap-search-icon {
		min-height: 52px;
		border: 1px solid #dbe3ee !important;
		border-right: 0 !important;
		border-radius: 10px 0 0 10px !important;
	}

	.recap-nop-input {
		border: 1px solid #dbe3ee !important;
		border-left: 0 !important;
		border-radius: 0 10px 10px 0 !important;
	}

	.recap-search-button {
		grid-column: 1 / -1;
		width: 100%;
		min-width: 0;
		margin-top: 10px;
		border: 0 !important;
		border-radius: 10px !important;
	}

	.recap-search-group:focus-within {
		box-shadow: none;
	}
}
