.padhang-rekap {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 40px;
	padding: 16px;
	border-radius: 16px;
	background: #e1e7f8;
	color: #222222;
}

.padhang-rekap *,
.padhang-rekap *::before,
.padhang-rekap *::after {
	box-sizing: border-box;
}

.padhang-rekap__title {
	margin: 0 0 24px;
	padding: 8px 16px;
	border-radius: 12px;
	background: #353d97;
	color: #ffffff;
	font-family: Aileron, sans-serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.padhang-rekap__form {
	display: flex;
	flex-flow: row wrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.7);
}

.padhang-rekap__field {
	flex: 1 1 160px;
}

.padhang-rekap__field label {
	display: block;
	margin-bottom: 4px;
	color: #37475c;
	font-size: 13px;
	font-weight: 600;
}

.padhang-rekap__field select,
.padhang-rekap__field input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #c6d2ef;
	border-radius: 12px;
	background: #ffffff;
	color: #222222;
	font-size: 14px;
}

.padhang-rekap__field.is-disabled {
	opacity: 0.6;
}

.padhang-rekap__actions {
	display: flex;
	gap: 8px;
}

.padhang-rekap__actions button,
.padhang-rekap__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: 0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.padhang-rekap__actions button {
	background: #353d97;
	color: #ffffff;
}

.padhang-rekap__reset {
	background: #dddddd;
	color: #222222;
}

.padhang-rekap__section {
	margin-top: 16px;
}

.padhang-rekap__badge {
	width: 150px;
	margin: 0 auto 16px;
	padding: 8px;
	border: 1px solid #a4bbec;
	border-radius: 16px;
	background: transparent;
	font-family: Aileron, sans-serif;
	font-weight: 700;
	text-align: center;
}

.padhang-rekap__compare {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 3fr) minmax(0, 1fr);
	align-items: center;
	gap: 26px;
}

.padhang-rekap__term {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: inherit;
	cursor: pointer;
}

.padhang-rekap__compare-label {
	color: #353d97;
	font-family: Aileron, sans-serif;
	font-size: clamp(16px, 2vw, 23px);
	font-weight: 800;
	line-height: 1.05;
	text-align: right;
	text-transform: uppercase;
}

.padhang-rekap__compare-label--right {
	text-align: left;
}

.padhang-rekap__compare-bar {
	display: flex;
	width: 100%;
	height: 72px;
	overflow: hidden;
	border-radius: 999px;
	background: #bad8fb;
}

.padhang-rekap__compare-segment {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 0 28px;
	font-size: clamp(18px, 2.6vw, 24px);
	font-weight: 800;
	line-height: 1.05;
	white-space: nowrap;
}

.padhang-rekap__compare-segment div:last-child {
	font-size: 14px;
	font-weight: 600;
}

.padhang-rekap__compare-segment--left {
	align-items: flex-start;
	background: linear-gradient(180deg, #5685ef 0%, #4979e3 100%);
	color: #ffffff;
}

.padhang-rekap__compare-segment--right {
	align-items: flex-end;
	background: linear-gradient(180deg, #bddcff 0%, #a9cff7 100%);
	color: #353d97;
}

.padhang-rekap__pill {
	display: flex;
	width: 100%;
	height: 70px;
	overflow: hidden;
	border-radius: 999px;
	background: #d9e7fb;
}

.padhang-rekap__pill-segment {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	color: #ffffff;
	font-weight: 700;
}

.padhang-rekap__chart {
	position: relative;
	width: 100%;
	min-height: 220px;
}

.padhang-rekap__empty {
	margin: 0;
	text-align: center;
	color: #37475c;
	font-size: 14px;
	font-weight: 600;
}

body.padhang-rekap-modal-open {
	overflow: hidden;
}

.padhang-rekap-modal {
	position: fixed;
	inset: 0;
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
}

.padhang-rekap-modal[hidden] {
	display: none;
}

.padhang-rekap-modal__dialog {
	width: 100%;
	max-width: 768px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.padhang-rekap-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.padhang-rekap-modal__brand {
	font-size: 16px;
	font-weight: 600;
	color: #222222;
}

.padhang-rekap-modal__subtitle {
	display: inline-flex;
	margin-top: 4px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #37475c;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
}

.padhang-rekap-modal__close {
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: #f1f1f1;
	color: #222222;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.padhang-rekap-modal__body {
	padding: 16px 20px 20px;
}

.padhang-rekap-modal__state {
	color: #374151;
	font-size: 14px;
}

.padhang-rekap-modal__list {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.padhang-rekap-modal__item {
	display: flex;
	gap: 12px;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	text-decoration: none;
}

.padhang-rekap-modal__item:hover {
	background: #f8f8ff;
}

.padhang-rekap-modal__thumb {
	width: 72px;
	height: 54px;
	flex: 0 0 72px;
	border-radius: 12px;
	object-fit: cover;
	background: #f1f1f1;
}

.padhang-rekap-modal__item-body {
	min-width: 0;
	flex: 1;
}

.padhang-rekap-modal__date {
	display: block;
	margin-bottom: 4px;
	color: #6b7280;
	font-size: 13px;
}

.padhang-rekap-modal__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #353d97;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.padhang-rekap-modal__item:hover .padhang-rekap-modal__title {
	color: #f67619;
}

.padhang-rekap-modal__pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	color: #4b5563;
	font-size: 13px;
}

.padhang-rekap-modal__pager button {
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: #353d97;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.padhang-rekap-modal__pager button:hover {
	background: #e7580f;
}

.padhang-rekap-modal__pager button:disabled {
	background: #f1f1f1;
	color: #9ca3af;
	cursor: default;
}

@media (max-width: 1023px) {
	.padhang-rekap__compare {
		grid-template-columns: minmax(0, 1fr) minmax(180px, 2.2fr) minmax(0, 1fr);
		gap: 14px;
	}

	.padhang-rekap__compare-bar {
		height: 56px;
	}
}

@media (max-width: 639px) {
	.padhang-rekap__compare {
		grid-template-columns: minmax(0, 0.95fr) minmax(140px, 1.8fr) minmax(0, 0.95fr);
		gap: 10px;
	}

	.padhang-rekap__compare-label {
		font-size: 12px;
	}

	.padhang-rekap__compare-bar {
		height: 48px;
	}

	.padhang-rekap__compare-segment {
		padding: 0 8px;
		font-size: 14px;
	}
}
