.modules.history {
	--history-accent: #15836f;
	--history-accent-dark: #0f6859;
	--history-ink: #1d282d;
	--history-muted: #6c777c;
	--history-line: #e6ebe9;
	color: var(--history-ink);
	font-family: Pretendard, sans-serif;
}

.modules.history *,
.history-form * {
	box-sizing: border-box;
}

.modules.history .history-admin {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 18px;
}

.modules.history .history-admin__add {
	min-height: 38px;
	padding: 7px 16px;
	border: 1px solid var(--history-accent);
	border-radius: 3px;
	color: #fff;
	background: var(--history-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.modules.history .history-admin__add:hover,
.modules.history .history-admin__add:focus {
	border-color: var(--history-accent-dark);
	background: var(--history-accent-dark);
}

.modules.history .history-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: min(100%, 540px);
	margin: 0 auto 56px;
	border: 1px solid #ddd;
}

.modules.history .history-tabs__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 52px;
	padding: 8px 12px;
	border-right: 1px solid #ddd;
	color: #1a1a1a;
	background: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}

.modules.history .history-tabs__btn:last-child {
	border-right: 0;
}

.modules.history .history-tabs__btn:hover,
.modules.history .history-tabs__btn:focus {
	color: var(--history-accent-dark);
	background: #f2f8f6;
}

.modules.history .history-tabs__btn.is-active {
	color: #fff;
	background: var(--history-accent);
}

.modules.history .history-panel__body {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.modules.history .history-timeline {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0 32px;
	align-items: start;
	min-width: 0;
}

.modules.history .history-timeline__year {
	margin: 0;
	color: var(--history-accent);
	font-family: "Arita Bold", serif;
	font-size: clamp(30px, 4vw, 38px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
}

.modules.history .history-timeline__list {
	min-width: 0;
	margin: 7px 0 0;
	padding: 0;
	list-style: none;
}

.modules.history .history-timeline__item {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 21px 0;
	border-bottom: 1px solid var(--history-line);
}

.modules.history .history-timeline__item:first-child {
	padding-top: 0;
}

.modules.history .history-timeline__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.modules.history .history-timeline__date {
	position: relative;
	display: block;
	padding-left: 14px;
	color: var(--history-muted);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.7;
	white-space: nowrap;
}

.modules.history .history-timeline__date::before {
	position: absolute;
	top: .8em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #b8c2be;
	content: "";
	transform: translateY(-50%);
}

.modules.history .history-timeline__text {
	margin: 0;
	color: var(--history-ink);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.75;
	word-break: normal;
	overflow-wrap: anywhere;
}

.modules.history .history-timeline__edit {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	padding: 0;
	border: 0;
	color: inherit;
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.modules.history .history-timeline__edit:hover .history-timeline__text,
.modules.history .history-timeline__edit:focus .history-timeline__text {
	color: var(--history-accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.modules.history .history-timeline__status {
	flex: 0 0 auto;
	margin-top: 4px;
	padding: 2px 7px;
	border-radius: 10px;
	color: #666;
	background: #e7e9e8;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.modules.history .history-timeline__item.is-disabled {
	opacity: .62;
}

.modules.history .history-empty {
	min-height: 180px;
	margin-top: 7px;
	padding: 44px 28px;
	border: 1px solid var(--history-line);
	border-radius: 12px;
	background: #f7faf9;
	text-align: center;
}

.modules.history .history-empty p {
	margin: 0;
	color: var(--history-muted);
	font-size: 16px;
	line-height: 1.7;
}

.modules.history .history-visual {
	position: sticky;
	top: 32px;
	padding: 0 24px 36px 0;
}

.modules.history .history-visual__frame {
	position: relative;
	z-index: 1;
}

.modules.history .history-visual__frame::before {
	position: absolute;
	right: -24px;
	bottom: -24px;
	z-index: -1;
	width: 72%;
	height: 72%;
	background: #ebe6df;
	content: "";
}

.modules.history .history-visual__frame img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center top;
}

.history-form {
	color: #222;
	font-family: Pretendard, sans-serif;
}

.history-form .history-form__intro {
	margin-bottom: 16px;
	padding: 17px 20px;
	border-left: 4px solid #15836f;
	background: #f3f8f6;
}

.history-form .history-form__intro strong {
	display: block;
	color: #173b34;
	font-size: 18px;
	line-height: 1.4;
}

.history-form .history-form__intro p {
	margin: 4px 0 0;
	color: #65716d;
	font-size: 13px;
	line-height: 1.5;
}

.history-form table {
	width: 100%;
	border-top: 2px solid #333;
	border-collapse: collapse;
	table-layout: fixed;
}

.history-form table caption {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.history-form .history-form__label-col {
	width: 24%;
}

.history-form th,
.history-form td {
	padding: 13px 14px;
	border-bottom: 1px solid #e5e5e5;
	vertical-align: middle;
}

.history-form th {
	color: #222;
	background: #f7f8f8;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}

.history-form td {
	background: #fff;
}

.history-form .form-control {
	display: inline-block;
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid #cfd5d3;
	border-radius: 3px;
	color: #222;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	vertical-align: middle;
}

.history-form .form-control:focus {
	border-color: #15836f;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(21, 131, 111, .12);
}

.history-form .history-form__description {
	height: 124px;
	resize: vertical;
}

.history-form .history-form__date {
	width: 140px;
	text-align: center;
}

.history-form .ui-datepicker-trigger {
	width: 24px;
	height: 24px;
	margin-left: 8px;
	vertical-align: middle;
	cursor: pointer;
}

.history-form .history-form__radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.history-form .history-form__radios label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	cursor: pointer;
}

.history-form .history-form__radios input {
	margin: 0;
}

.history-form .note {
	margin: 7px 0 0;
	color: #737b78;
	font-size: 12px;
	line-height: 1.5;
}

.history-form .write_btn {
	margin-top: 18px;
}

.history-form .write_btn .right_area {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
}

.history-form .write_btn .right_area > button {
	min-width: 82px;
	height: 38px;
	padding: 0 16px;
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
}

.history-form .write_btn .right_area .btn_del {
	border: 1px solid #c53b2c;
	background: #c53b2c;
}

.history-form .write_btn .right_area .btn_wrt {
	border: 1px solid #15836f;
	background: #15836f;
}

img.ui-datepicker-trigger {
	display: inline-block;
	width: auto;
	max-width: none;
	height: auto;
	vertical-align: middle;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.modules.history .history-panel__body {
		grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr);
		gap: 32px;
	}

	.modules.history .history-timeline {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.modules.history .history-timeline__list {
		margin-top: 0;
	}
}

@media (max-width: 767px) {
	.modules.history .history-tabs {
		margin-bottom: 38px;
	}

	.modules.history .history-tabs__btn {
		min-height: 46px;
		font-size: 17px;
	}

	.modules.history .history-panel__body {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.modules.history .history-visual {
		position: relative;
		top: auto;
		order: -1;
		width: min(100%, 520px);
		margin: 0 auto;
	}

	.modules.history .history-timeline__item {
		grid-template-columns: 102px minmax(0, 1fr);
		gap: 14px;
		padding: 18px 0;
	}

	.modules.history .history-timeline__text {
		font-size: 16px;
		line-height: 1.7;
	}
}

@media (max-width: 520px) {
	.modules.history .history-admin {
		margin-bottom: 12px;
	}

	.modules.history .history-tabs {
		margin-bottom: 30px;
	}

	.modules.history .history-tabs__btn {
		padding: 7px 5px;
		font-size: 15px;
	}

	.modules.history .history-visual {
		padding: 0 12px 20px 0;
	}

	.modules.history .history-visual__frame::before {
		right: -12px;
		bottom: -12px;
	}

	.modules.history .history-timeline__item {
		grid-template-columns: 1fr;
		gap: 5px;
		padding: 16px 0;
	}

	.modules.history .history-timeline__date {
		white-space: normal;
	}

	.modules.history .history-timeline__edit {
		flex-wrap: wrap;
	}

	.history-form .history-form__intro {
		padding: 14px 16px;
	}

	.history-form colgroup {
		display: none;
	}

	.history-form tr,
	.history-form th,
	.history-form td {
		display: block;
		width: 100%;
	}

	.history-form th {
		padding: 11px 12px 6px;
		border-bottom: 0;
		background: #f7f8f8;
	}

	.history-form td {
		padding: 6px 12px 13px;
		background: #f7f8f8;
	}
}

@media (max-width: 650px) {
	.ui-dialog {
		width: 100% !important;
	}

	.write_box table {
		width: 100% !important;
		min-width: 100% !important;
	}
}