* {
	box-sizing: border-box;
}

body.admin-body {
	margin: 0;
	background: #f3f5f7;
	color: #263238;
	font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}

.admin-login {
	width: 360px;
	margin: 12vh auto 0;
	padding: 32px;
	border: 1px solid #dce1e5;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(28, 39, 49, .08);
}

.admin-login h1 {
	margin: 0 0 8px;
	font-size: 24px;
}

.admin-login p {
	margin: 0 0 24px;
	color: #6c757d;
	font-size: 13px;
}

.admin-field {
	margin-bottom: 16px;
}

.admin-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd2d8;
	border-radius: 4px;
	font: inherit;
}

.admin-error,
.admin-message {
	margin-bottom: 16px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
}

.admin-error {
	background: #fff0f0;
	color: #a12626;
}

.admin-message {
	background: #edf7e8;
	color: #3f671e;
}

.admin-button {
	display: inline-block;
	padding: 9px 15px;
	border: 0;
	border-radius: 4px;
	background: #567c24;
	color: #fff;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.admin-button.secondary {
	background: #65727e;
}

.admin-button.danger {
	background: #a13a3a;
}

.admin-login .admin-button {
	width: 100%;
}

.admin-home-link {
	display: block;
	margin-top: 18px;
	color: #66727d;
	font-size: 12px;
	text-align: center;
}

.admin-header {
	background: #263238;
	color: #fff;
}

.admin-header-inner,
.admin-container {
	width: min(1080px, calc(100% - 40px));
	margin: 0 auto;
}

.admin-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.admin-header h1 {
	margin: 0;
	font-size: 19px;
}

.admin-user {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}

.admin-user form {
	margin: 0;
}

.admin-container {
	padding: 32px 0 60px;
}

.admin-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.admin-toolbar h2 {
	margin: 0;
	font-size: 23px;
}

.admin-search {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
}

.admin-search input {
	flex: 1;
	max-width: 360px;
	padding: 9px 12px;
	border: 1px solid #cbd2d8;
	border-radius: 4px;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.admin-table th,
.admin-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #e3e7ea;
	font-size: 13px;
	text-align: left;
}

.admin-table th {
	background: #eef1f3;
}

.admin-table .center {
	text-align: center;
}

.admin-status {
	padding: 3px 7px;
	border-radius: 10px;
	background: #e9f5df;
	color: #466d24;
	font-size: 11px;
}

.admin-status.private {
	background: #eceff1;
	color: #65727e;
}

.admin-status.popup {
	display: inline-block;
	margin-top: 4px;
	background: #e8f0fb;
	color: #315f92;
}

.admin-row-actions {
	display: flex;
	justify-content: center;
	gap: 5px;
}

.admin-row-actions form {
	margin: 0;
}

.admin-row-actions .admin-button {
	padding: 5px 8px;
	font-size: 12px;
}

.admin-pagination {
	margin-top: 20px;
	text-align: center;
}

.admin-pagination a,
.admin-pagination strong {
	display: inline-block;
	padding: 6px 9px;
	color: #4e5c66;
	text-decoration: none;
}

.statistics-period {
	display: flex;
	gap: 6px;
}

.statistics-period a {
	padding: 7px 12px;
	border-radius: 4px;
	background: #e1e5e8;
	color: #52606a;
	text-decoration: none;
	font-size: 13px;
}

.statistics-period a.active {
	background: #567c24;
	color: #fff;
}

.statistics-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 18px;
}

.statistics-card {
	padding: 20px;
	border-left: 4px solid #668d31;
	background: #fff;
}

.statistics-card span {
	display: block;
	margin-bottom: 9px;
	color: #68757f;
	font-size: 12px;
}

.statistics-card strong {
	font-size: 25px;
}

.statistics-note {
	margin: 0 0 16px;
	padding: 11px 14px;
	background: #eef1f3;
	color: #5e6972;
	font-size: 12px;
}

.statistics-table td {
	height: 42px;
}

.statistics-table-wrap {
	overflow-x: auto;
}

.statistics-link {
	color: #466d24;
	font-weight: 700;
}

.statistics-section {
	margin-top: 30px;
}

.statistics-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.statistics-section-heading h3 {
	margin: 0;
	font-size: 18px;
}

.statistics-section-heading span {
	color: #68757f;
	font-size: 12px;
}

.statistics-detail-table {
	min-width: 760px;
}

.statistics-date-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 12px 14px;
	background: #fff;
}

.statistics-date-search label {
	font-size: 13px;
	font-weight: 700;
}

.statistics-date-search input {
	padding: 8px 10px;
	border: 1px solid #cbd2d8;
	border-radius: 4px;
	font: inherit;
}

.statistics-date-search .admin-button {
	padding: 8px 15px;
}

.statistics-date-error {
	margin-bottom: 12px;
}

.statistics-path,
.statistics-ip {
	font-family: Consolas, "Courier New", monospace;
	word-break: break-all;
}

.statistics-empty {
	padding: 28px 10px !important;
	color: #68757f;
	text-align: center !important;
}

.statistics-bar {
	min-height: 9px;
	border-radius: 5px;
}

.statistics-bar.visitors {
	background: #6f983b;
}

.statistics-bar.views {
	background: #6689a5;
}

.admin-form {
	padding: 24px;
	background: #fff;
}

.admin-form textarea {
	min-height: 360px;
	resize: vertical;
}

.admin-help {
	margin: 7px 0 0;
	color: #68757f;
	font-size: 12px;
	line-height: 1.5;
}

.admin-field .admin-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.admin-field .admin-checkbox input {
	width: auto;
	margin: 0;
	padding: 0;
}

.admin-attachments {
	margin-bottom: 16px;
	padding: 18px 24px;
	background: #fff;
}

.admin-attachments h3 {
	margin: 0 0 12px;
	font-size: 15px;
}

.admin-attachment-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid #edf0f2;
	font-size: 13px;
}

.admin-attachment-row form {
	margin: 0;
}

.admin-file-delete {
	padding: 4px 8px;
	border: 0;
	border-radius: 3px;
	background: #a13a3a;
	color: #fff;
	cursor: pointer;
}

.admin-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 700px) {
	.admin-header-inner,
	.admin-container {
		width: calc(100% - 24px);
	}

	.admin-table .optional {
		display: none;
	}

	.admin-toolbar {
		align-items: flex-start;
		gap: 12px;
	}

	.statistics-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.statistics-section-heading {
		display: block;
	}

	.statistics-section-heading span {
		display: block;
		margin-top: 6px;
	}

	.statistics-date-search {
		align-items: stretch;
		flex-direction: column;
	}

	.statistics-date-search > span {
		display: none;
	}

	.statistics-table th:nth-child(3),
	.statistics-table td:nth-child(3),
	.statistics-table th:nth-child(5),
	.statistics-table td:nth-child(5) {
		display: none;
	}
}
