* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #f4f6f8;
	color: #1f2933;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

a {
	color: #1f7a8c;
	cursor: pointer;
	text-decoration: none;
}

a:hover {
	color: #155e6d;
	text-decoration: underline;
}

.container-fluid {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px;
}

.row-fluid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
}

.span12,
.col-sm-12,
.col-lg-4 {
	width: 100%;
	padding: 0 8px;
}

@media (min-width: 992px) {
	.col-lg-4 {
		width: 33.333333%;
	}
}

form {
	margin: 0 auto;
	max-width: 560px;
}

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

legend {
	margin: 0 0 18px;
	color: #152536;
	font-size: 24px;
	font-weight: 700;
}

.panel,
form.bs-example,
.well {
	background: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(31, 41, 51, .06);
}

form.bs-example {
	padding: 24px;
}

.panel {
	margin-bottom: 16px;
	overflow: hidden;
}

.panel-heading {
	padding: 12px 16px;
	background: #e8f3f1;
	border-bottom: 1px solid #d9e2ec;
}

.panel-title,
.modal-title {
	margin: 0;
	color: #102a43;
	font-size: 16px;
	font-weight: 700;
}

.panel-body {
	padding: 16px;
}

.well {
	margin-bottom: 16px;
	padding: 16px;
}

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

.table th,
.table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e6edf3;
	text-align: left;
	vertical-align: middle;
}

.table th {
	color: #52606d;
	font-size: 12px;
	font-weight: 700;
	background: #f8fafc;
}

.table-hover tbody tr:hover {
	background: #f6fbfc;
}

.input-group {
	display: flex;
	width: 100%;
	align-items: stretch;
}

.input-group-addon,
.input-group-btn {
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.input-group-addon {
	min-width: 112px;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background: #f8fafc;
	color: #52606d;
}

.form-control {
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 0 6px 6px 0;
	background: #fff;
	color: #1f2933;
	font: inherit;
	outline: 0;
}

select.form-control {
	appearance: auto;
}

.form-control:focus {
	border-color: #1f7a8c;
	box-shadow: 0 0 0 3px rgba(31, 122, 140, .14);
}

.input-group-btn .btn {
	border-radius: 0 6px 6px 0;
}

.btn {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #1f2933;
	font: inherit;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover {
	background: #f3f6f9;
	text-decoration: none;
}

.btn.active {
	border-color: #1f7a8c;
	background: #e8f3f1;
	color: #155e6d;
}

.btn-success,
.btn-primary {
	border-color: #1f7a8c;
	background: #1f7a8c;
	color: #fff;
}

.btn-success:hover,
.btn-primary:hover {
	background: #155e6d;
	color: #fff;
}

.btn-info {
	border-color: #9fb3c8;
	background: #e6edf3;
	color: #334e68;
}

.btn-group {
	display: inline-flex;
	gap: 8px;
}

.link-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #1f7a8c;
	font: inherit;
	cursor: pointer;
}

.link-button:hover {
	color: #155e6d;
	text-decoration: underline;
}

.alert {
	max-width: 720px;
	margin: 14px auto;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: #eef2f7;
}

.alert-success {
	border-color: #9ae6b4;
	background: #f0fff4;
	color: #22543d;
}

.alert-danger {
	border-color: #feb2b2;
	background: #fff5f5;
	color: #742a2a;
}

.alert-warning {
	border-color: #fbd38d;
	background: #fffaf0;
	color: #744210;
}

.close {
	float: right;
	border: 0;
	background: transparent;
	color: #52606d;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(15, 23, 42, .46);
}

.modal.is-open {
	display: flex;
}

.modal-dialog {
	width: min(520px, 100%);
}

.modal-content {
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

.modal-header,
.modal-body,
.modal-footer {
	padding: 16px;
}

.modal-header {
	border-bottom: 1px solid #e6edf3;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	border-top: 1px solid #e6edf3;
}

body.modal-open {
	overflow: hidden;
}

.pagination {
	display: inline-flex;
	margin: 8px 0 18px;
	padding: 0;
	list-style: none;
}

.pagination li a {
	display: block;
	min-width: 36px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-right: 0;
	background: #fff;
	text-align: center;
}

.pagination li:first-child a {
	border-radius: 6px 0 0 6px;
}

.pagination li:last-child a {
	border-right: 1px solid #cbd5e1;
	border-radius: 0 6px 6px 0;
}

.pagination .active a {
	background: #1f7a8c;
	color: #fff;
}

.chart-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.chart-list {
	min-height: 224px;
	padding: 8px 0;
}

.chart-row {
	display: grid;
	grid-template-columns: minmax(80px, 1fr) 2fr 48px;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
}

.chart-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chart-track {
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: #e6edf3;
}

.chart-bar {
	height: 100%;
	border-radius: inherit;
	background: #1f7a8c;
}

.chart-count {
	color: #52606d;
	text-align: right;
}

.empty {
	padding: 48px 0;
	color: #829ab1;
	text-align: center;
}

.tracking-panel {
	margin-top: 16px;
}

.code-textarea {
	min-height: 76px;
	border-radius: 6px;
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 13px;
	resize: vertical;
}

.tracking-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.muted {
	color: #627d98;
}

@media (max-width: 560px) {
	.container-fluid {
		padding: 12px;
	}

	form.bs-example,
	.panel-body,
	.well {
		padding: 14px;
	}

	.input-group {
		display: block;
	}

	.input-group-addon {
		width: 100%;
		border-right: 1px solid #cbd5e1;
		border-radius: 6px 6px 0 0;
	}

	.form-control,
	.input-group-btn .btn {
		border-radius: 0 0 6px 6px;
	}

	.input-group-btn .btn {
		width: 100%;
	}

	.chart-row {
		grid-template-columns: 1fr 1.6fr 42px;
	}
}
