/* ───────────────────────────────────────────────────
   Dashboard – guidance-first layout
   ─────────────────────────────────────────────────── */

.db-range {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
	flex-wrap: wrap;
}

.db-range-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6b7280;
}

.db-range select {
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0.4rem 2rem 0.4rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.db-range select:focus {
	outline: none;
	border-color: var(--a);
	box-shadow: 0 0 0 3px rgba(247,147,25,.12);
}

.db-range-sep {
	color: #9ca3af;
	font-size: 0.85rem;
}

.dashboard-sync-fab {
	display: none;
}

.db-summary-card {
	background: #fff;
	border-radius: 12px;
	padding: 0.95rem 1rem;
	box-shadow:
		0 0.46875rem 2.1875rem rgba(4,9,20,.03),
		0 0.9375rem 1.40625rem rgba(4,9,20,.03),
		0 0.25rem 0.53125rem rgba(4,9,20,.05),
		0 0.125rem 0.1875rem rgba(4,9,20,.03);
}

.db-summary-card--primary {
	border-left: 4px solid var(--a);
}

.db-summary-head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.4rem;
}

.db-summary-head h3 {
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #374151;
	margin: 0;
}

.db-summary-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 999px;
	background: rgba(247, 147, 25, 0.14);
	color: var(--a);
	font-size: 0.78rem;
}

.db-summary-value {
	margin: 0;
	font-size: 1.32rem;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.db-summary-sub {
	margin: 0.3rem 0 0;
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.4;
}

.db-panel {
	background: #fff;
	border-radius: 12px;
	padding: 0.95rem 1rem;
	box-shadow:
		0 0.46875rem 2.1875rem rgba(4,9,20,.03),
		0 0.9375rem 1.40625rem rgba(4,9,20,.03),
		0 0.25rem 0.53125rem rgba(4,9,20,.05),
		0 0.125rem 0.1875rem rgba(4,9,20,.03);
}

.db-panel-head h4 {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #374151;
}

.db-panel-head h4 i {
	color: var(--a);
}

.db-panel-head p {
	margin: 0.25rem 0 0.6rem;
	font-size: 0.84rem;
	color: #6b7280;
}

.db-progress-wrap + .db-progress-wrap {
	margin-top: 0.85rem;
}

.db-progress-meta {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.83rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.35rem;
}

.db-progress {
	position: relative;
	height: 0.6rem;
	background: #f3f4f6;
	border-radius: 999px;
	overflow: hidden;
}

.db-progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--a), #f8af0c);
	border-radius: inherit;
	transition: width 0.3s ease;
}

.db-progress-sub {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: #6b7280;
}

.db-chart-mini {
	height: 130px;
	margin-top: 0.75rem;
}

.db-actions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.db-action-item {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	padding: 0.6rem 0.65rem;
	border-radius: 10px;
	background:
		radial-gradient(circle at top right, rgba(247, 147, 25, 0.08), transparent 58%),
		linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
	border: 1px solid #f3f4f6;
}

.db-action-dot {
	margin-top: 0.28rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--a);
	flex-shrink: 0;
}

.db-action-title {
	margin: 0;
	font-size: 0.84rem;
	font-weight: 700;
	color: #1f2937;
}

.db-action-sub {
	margin: 0.2rem 0 0;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #6b7280;
}

.db-forecast-value {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
}

.db-forecast-sub {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #6b7280;
}

.db-forecast-grid {
	margin-top: 0.9rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
}

.db-forecast-item {
	border: 1px solid #e9eef5;
	border-radius: 12px;
	padding: 0.6rem 0.7rem;
	background:
		radial-gradient(circle at top right, rgba(247, 147, 25, 0.08), transparent 58%),
		linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
}

.db-forecast-item-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #667085;
}

.db-forecast-item-value {
	margin: 0.25rem 0 0;
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.db-forecast-item-sub {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #6b7280;
}

.db-forecast-focus {
	margin-top: 0.72rem;
	border-radius: 12px;
	padding: 0.65rem 0.75rem;
	background: linear-gradient(90deg, rgba(247, 147, 25, 0.12) 0%, rgba(247, 147, 25, 0.03) 75%);
	border-left: 4px solid var(--a);
}

.db-forecast-focus-label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #8a5a17;
}

.db-forecast-focus-text {
	margin: 0.2rem 0 0;
	font-size: 0.83rem;
	line-height: 1.4;
	color: #374151;
}

@media (max-width: 991.98px) {
	.db-forecast-grid {
		grid-template-columns: 1fr;
	}
}

.db-details {
	margin-top: 0.7rem;
}

.db-details > summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.84rem;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	padding: 0.4rem 0.1rem;
}

.db-details > summary i.fa-chevron-up {
	color: #374151;
	transform: translateY(2px);
}

.db-details > summary::-webkit-details-marker {
	display: none;
}

.db-details > summary i {
	color: var(--a);
}

.db-details-body {
	margin-top: 0.45rem;
}

.db-chart-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow:
		0 0.46875rem 2.1875rem rgba(4,9,20,.03),
		0 0.9375rem 1.40625rem rgba(4,9,20,.03),
		0 0.25rem 0.53125rem rgba(4,9,20,.05),
		0 0.125rem 0.1875rem rgba(4,9,20,.03);
}

.db-chart-header {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 1rem 0;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #374151;
	letter-spacing: 0.02em;
}

.db-chart-header i {
	color: var(--a);
	font-size: 0.88rem;
}

.db-chart-card .kpi-body {
	padding: 0.75rem 1rem 1rem;
	background: #fff;
}

.db-chart-body-equal {
	height: 280px;
}

/* ── Recent enlistments (compact vertical list inside db-panel) ─── */

.db-panel--recent {
	border: 1px solid #edf2f7;
}

.db-recent-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem;
}

.db-recent-head-main {
	min-width: 0;
}

.db-recent-head-main h4 {
	margin: 0;
}

.db-recent-subtitle {
	margin: 0.22rem 0 0;
	font-size: 0.8rem;
	color: #6b7280;
}

.db-recent-link {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--a);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	transition: color .15s ease;
	white-space: nowrap;
}

.db-recent-link:hover {
	color: #c46a05;
}

.db-recent-list {
	list-style: none;
	margin: 0.72rem 0 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.db-recent-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.62rem 0.68rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
	border: 1px solid #eef2f7;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.db-recent-item:hover {
	background: #f8fafc;
	border-color: #dbe5f0;
	transform: translateY(-1px);
}

.db-recent-thumb {
	flex-shrink: 0;
	width: 3.4rem;
	height: 3.4rem;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

.db-recent-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.db-recent-thumb-fallback {
	color: #9ca3af;
	font-size: 1rem;
}

.db-recent-meta {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	min-width: 0;
	flex: 1;
}

.db-recent-name {
	font-size: 0.86rem;
	font-weight: 700;
	color: #1f2937;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.db-recent-name:hover {
	color: var(--a);
}

.db-recent-place {
	font-size: 0.78rem;
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.db-recent-date {
	font-size: 0.78rem;
	color: #9ca3af;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.db-recent-meta-row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.db-recent-position {
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
}

.db-recent-position i {
	color: var(--a);
}

.db-recent-empty {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 0.55rem;
	border-radius: 10px;
	background: #fafafa;
	color: #6b7280;
	font-size: 0.85rem;
}

.db-recent-empty i {
	color: var(--a);
	font-size: 1rem;
}

@media (max-width: 767.98px) {
	.db-range {
		justify-content: space-between;
	}

	.db-summary-value {
		font-size: 1.2rem;
	}

	.db-chart-mini {
		height: 110px;
	}

	.db-recent-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.db-recent-position {
		justify-content: center;
	}

	.dashboard-sync-fab {
		display: inline-flex;
		position: fixed;
		right: 1rem;
		bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
		width: 3.25rem;
		height: 3.25rem;
		padding: 0;
		border-radius: 9999px;
		align-items: center;
		justify-content: center;
		z-index: var(--z-fab);
	}

	.dashboard-sync-fab i {
		margin: 0;
	}
}
