#contents {
	max-width: none;
}
#cards header {
	padding: 6px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
#cards {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}
#cards th, #cards td {
	border-width: 1px;
	border-style: solid;
}
#cards th {
	font-size: 12px;
	padding: 6px;
}
#cards td.chapter {
	padding: 8px;
	width: 80px;
}
#cards td.chapter select {
	width: 100%;
	font-size: 12px;
	padding: 4px 24px 4px 4px;
}
#cards td.chapter select:focus, #btn-add:focus {
	box-shadow: 0px 0px 0px 3px #ffce7f;
}
#cards td:first-child, #cards th:first-child {
	border-left: none;
}
#cards td:last-child, #cards th:last-child {
	border-right: none;
}
#cards textarea {
	font-size: 14px;
}
#cards textarea:focus {
	box-shadow: inset 0px 0px 0px 2px #ffce7f;
}
#filters {
	padding: 16px;
	padding-top: 0;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	width: 100%;
	max-width: 600px;
}
#chapters {
	flex-shrink: 1;
	flex-grow: 1;
	flex-basis: auto;
	width: 100px;
}
#keyword {
	padding: 4px 8px;
	border-radius: 3px;
	margin-left: 4px;
	flex-shrink: 1;
	flex-grow: 1;
	flex-basis: auto;
	width: 100px;
}
#btn-search {
	margin-left: 4px;
	width: 60px;
	flex-shrink: 0;
	flex-grow: 0;
}
.button-area {
	text-align: center;
	padding: 8px 0;
}
.button-area a {
	display: inline-flex;
	border-radius: 16px;
	color: #fff;
	background-color: #00488b;
	font-size: 14px;
	font-weight: bold;
	line-height: 100%;
	align-items: center;
}
#btn-add {
	padding: 8px 12px 8px 8px;
}
#btn-import {
	padding: 8px 12px;
}
.button-area a.disabled {
	opacity: 0.25;
	cursor: default;
}
.button-area a i {
	font-size: 18px;
	margin-right: 4px;
}
#import-dialog {
	text-align: center;
}
#import-dialog p.note {
	font-size: 14px;
	margin-bottom: 16px;
}
#import-form {
	margin-bottom: 24px;
}
#import-file {
	margin-bottom: 12px;
}
#download-excel {
	font-size: 12px;
}
body.light #cards th, body.light #cards td {
	border-color: #e7e7e7;
}
body.dark #cards th, body.dark #cards td {
	border-color: #393939;
}
body.light #cards th {
	background: #f2f2f2;
}
body.dark #cards th {
	background: #2e2e2e;
}
@media screen and (max-width:500px) {
	#filters {
		padding-top: 16px;
		max-width: 100%;
	}
	#cards td {
		display: block;
		width: 100%;
		border: none;
	}
	body.light #cards td {
		border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
	}
	body.dark #cards td {
		border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
	}
	#cards td:last-child {
		border: none;
	}
	#cards tr td.chapter {
		width: 100%;
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
	}
}