body, input, select {
	font-family: Arial, sans-serif;
	font-size: 13px;
	color: #1a1a1a;
}
.sans-serif {
	font-family: Arial, sans-serif;
}
div.col.day-col,
ul#courselist > li li,
#study-plan p small {
	font-family: "Courier New", monospace;
}
body, h1, h2, h3, h4, h5, h6, p {
	padding:0;
	margin:0;
}
body {
	background: #fafafa;
}
header h2, header p {
	display: inline-block;
}
ul {
	margin-top:0;
	padding-left:20px;
}
li {
	padding:15px 0;
}
ul.inst li {
	padding:10px 0 0 0;
	font-size: 13px;
}
li.inactive {
	color:#aaa;
}
li.inactive a,
li.inactive p,
li.inactive ul {
	display: none;
}
#courses-list li.inactive a.del {
	margin-top: 0;
}
#courses-list li.inactive h3 {
	display: inline-block;
	vertical-align: middle;
	width: 135px;
}
ul#courselist > li.inactive > h3 > span {
	height:22px;
}
#courses-list li.inactive {
	padding-top:3px;
	padding-bottom:3px;
}
li ul li {
	padding:5px 0;
}
body {
	padding:20px;
}
form {
	/*padding:5px 0 25px 0;*/
}
::placeholder {
	color: #ccc;
	font-size: 13px;
}
.upd-sp {
	background: dodgerblue;
	padding: 1px 4px;
	-webkit-border-radius:3px;
	border-radius: 3px;
	color: #fff;
}


span.line, span.line label {display: inline-block; vertical-align: middle;}
span.line label {line-height: 13px;}

div#wrapper {
	width:888px;
	overflow: hidden;
	position: relative;
	padding-top: 5px;
}
div#timetable {
	width:978px;
	position: relative;
	overflow: hidden;
	zoom:2;
	-webkit-transform:scale(0.5);
	-webkit-transform-origin:0 0;
	transform:scale(0.5);
	transform-origin:0 0;
	-moz-transform:scale(1);
	padding-top:30px;
	cursor: pointer;
}
div.col {
	width:130px;
	float:left;
	border:2px solid #ccc;
	border-top:0;
	border-bottom:0;
	margin:5px 0 5px 5px;
	position: relative;
	min-height: 840px;
}
div.col a {
	-webkit-box-shadow: -3px 0 0 rgba(255,255,255,.75);
	-moz-box-shadow: -3px 0 0 rgba(255,255,255,.75);
	box-shadow: -3px 0 0 rgba(255,255,255,.75);
	position: relative;
}
div.col a:hover {
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}
div.col a, div.col div {
	position: absolute;
	left:0;
	right:0;
	border:1px solid #1a1a1a;
	color:#1a1a1a;
	text-align: center;
	font-size:12px;
	overflow:hidden;
	text-decoration: none;
	padding:5px;
	-webkit-transition: left 0.15s ease-out;
	-moz-transition: left 0.15s ease-out;
	transition: left 0.15s ease-out;
}
.selected-course div.col a,
div.col.other-col a small {
	white-space: nowrap;
	/*text-overflow: ellipsis;*/
	letter-spacing: -1px;
}
div.col a span.text-marq {
	position: relative;
}
div.col.other-col a small {
	opacity: 0.3;
}
div.col.other-col a div.background {
	opacity: 0.1;
}
div.col div.header {
	top:-35px;
}
span.cross,
span.alt-text,
div.col div.background,
div#wrapper div#overlay {
	position: absolute;
	left:0;
	top:0;
	right:0;
	bottom:0;
}
/* div#wrapper div#overlay.lock {
	z-index:39;
}
div#wrapper div#overlay.unlock {
	display: none;
} */

div#wrapper div#overlay {
	display: none;
}

span.cross,
span.alt-text {
	font-size: 36px;
	margin: auto;
	opacity:0;
	padding:0 0 9px 0;
	color:#fff;
}
span.alt-text {
	font-size: 12px;
	padding:22px 0 0 0;
	-webkit-transform:scale(0.75);
	transform:scale(0.75);
	/*color:rgba(255,255,255,0.8);*/
}
div.col div.background {
	opacity:0.5;
	border:0;
}
/*div.col a.lab div.background {
	background-image: url("labbg2.png");
	background-position: center center;
	background-repeat: no-repeat;
}*/
div.col a:hover {
	z-index:10;
	-webkit-transform:scale(1.15);
	transform:scale(1.15);
}
div.col.other-col a:hover {
	z-index: initial;
	-webkit-transform:initial;
	transform:initial;
}
.selected-course div.col a:hover {
	color:rgba(255,255,255,0.2);
}
div.col a:hover div.background {
	opacity:0.8;
}
div.col a:hover span.cross,
div.col a:hover span.alt-text {
	opacity: 1;
}
div.col.timestamps {
	color:#ccc;
	border:0;
	width:40px;
}
div.col.timestamps div {
	text-align:right;
	font-size:11px;
	border:0;
	color:#aaa;
}
label, form p {
	font-size: 13px;
}
input[type="text"],
textarea {
	font-size:16px;
	padding:5px;
	border:1px solid #ddd;
	-webkit-border-radius:3px;
	border-radius:3px;
	outline:0;
	background: #fff;
}
textarea {
	overflow: hidden;
}
input[type="text"]:hover,
textarea:hover  {
	border-color:#999;
}
input[type="text"]:focus,
textarea:focus  {
	border-color:#0089ff;
}
#isw-form {
	margin-top: -10px;
	padding-top: 10px;
}
#isw-form textarea {
	width:100%;
	height:250px;
}
input[type="submit"],
a.button-like {
	padding:7px 12px;
	outline:0;
	background:#ddd;
	color:#444;
	border:0;
	-webkit-border-radius:3px;
	border-radius:3px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	font-size: 13px;
	font-weight: normal;
}
input[type="submit"]:hover,
a.button-like:hover {
	background:#ccc;
	color:#222;
}
input[type="submit"] {
	-webkit-appearance: none;
}
#isw-form input[type="submit"] {
	background: darkturquoise;
	color:#fff;
}
#isw-form input[type="submit"]:hover {
	background: #00c7ca;
}
#error {
	color:crimson;
	font-size:16px;
	display: block;
	font-weight: bold;
}
#error span {
	padding: 10px 0 3px 0;
	display: block;
}
/*a#lock, a#scroll-lock {
	display: block;
	text-align: center;
	height:48px;
	margin: 4px 0 5px;
	-webkit-border-radius:3px;
	border-radius:3px;
	text-decoration: none;
	font-size: 14px;
	line-height: 14px;
	overflow: hidden;
	background: #f1f1f1;
	width:140px;
	position: relative;
}*/
/*a#scroll-lock {*/

a#scroll-lock, a#lock {display: none;}

/* a#lock {
	position: fixed;
	right: 28%;
	margin: 10px 10px 0 0;
	top:0;
	width: 150px;
	background: dodgerblue;
	color:#fff;
	z-index:99;
} */

/*a#lock {display: none;}

a#scroll-lock .textunlock,
.lockScreen a#scroll-lock .textlock {
	display: none;
}
a#scroll-lock .textlock,
.lockScreen a#scroll-lock .textunlock {
	display: inline;
}
a#scroll-lock:hover {
	background: #0678e6;
}
.lockScreen a#scroll-lock {
	background: #ffdada;
	color:#ff8080;
}
.lockScreen a#scroll-lock:hover {
	background: #ffc9c9;
}
a#lock span,
a#scroll-lock span {
	position: absolute;
	padding:10px 0 0;
	height:100px;
	overflow: hidden;
	-webkit-transition: left 0.2s ease-out, right 0.2s ease-out, background 0.2s ease-out;
	transition: left 0.2s ease-out, right 0.2s ease-out, background 0.2s ease-out;
}
a#scroll-lock span {
	width: 100%;
	left:0;
}
a #lock-off {
	left:0;
}
a #lock-on {
	right:0;
}
a #lock-off,
a #lock-on {
	width:70%;
}
a#lock.unlock #lock-off {
	background:#0A79F3;
	color:#fff;
	z-index:9;
}
a#lock.lock #lock-on {
	color:#666;
	background: #ccc;
	z-index:9;
}
a#lock.lock #lock-off,
a#lock.unlock #lock-on {
	color:#1a1a1a;
}
a#lock.lock #lock-off {
	left:-10px;
}
a#lock.unlock #lock-on {
	right:-10px;
}*/
li p {
	padding-top:8px;
}
li p, li li {
	font-size: 13px;
}
.daytime {
	position: absolute;
	z-index:-3;
	color:#ccc;
	font-size:28px;
	letter-spacing: 5px;
	left:55px;
	width:828px;
	text-align: center;
	overflow: hidden;
}
.daytime#morning {
	top:35px;
}
.daytime#night {
	bottom:5px;
}
.daytime#afternoon {
	border:5px dotted #ccc;
	border-left: 0;
	border-right: 0;
}
hr {
	border:0;
	background:transparent;
	border-top:1px dotted #1a1a1a;
	padding:0;
	margin:3px;
	display: block;
}
hr.full {
	margin:25px -5px;
	border-top:1px solid #ccc;
}
a.dodg {
	color:dodgerblue;
}
/*li.announce {
	padding:5px 0;
	color:#ff6a00;
	font-size: 14px;
}
li.announce a {
	color:#ff6a00;
}*/
.input-wrap {
	position: relative;
	display: inline-block;
}
ul#suggestion,
ul#suggestion li {
	margin:0;
	padding:0;
	outline:0;
}
ul#suggestion {
	position: absolute;
	width: 130%;
	background:#f1f1f1;
	z-index:101;
	margin-top:-1;
	margin-bottom:25px;
}
ul#suggestion li {
	display: block;
	margin:3px 3px 0 3px;
	padding:0;
}
ul#suggestion li a {
	background: #fff;
	display: block;
	text-decoration: none;
	font-size:12px;
	padding:10px;
	/*overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;*/
	color:#999;
	/*text-transform: lowercase;*/
}
ul#suggestion li a:hover {
	background:#f1f1f1;
}
ul#suggestion li a b {
	font-size:14px;
	font-weight: normal;
	color:#222;
}
ul#suggestion li a span {
	color:salmon;
}
ul#suggestion li a:hover b {
	font-weight:bold;
	color:#444;
}
ul#suggestion li:last-child {
	margin-bottom:8px;
}
a.pclear {
	width:40px;
	height:40px;
	line-height: 34px;
	color:#999;
	font-size: 20px;
	text-align:center;
	overflow: hidden;
	text-decoration: none;
	vertical-align: middle;
	display: inline-block;
	margin-left:-40px;
}
p.br {
	padding:20px;
	position: fixed;
	right: 5px;
	top:5px;
	background: #36ccdf;
	color:#fff;
	z-index:120;
	-webkit-border-radius:3px;
	border-radius: 3px;
}
@media screen and (min-width:1276px){
	div#courses-list {
		position: fixed;
		right: 0;
		bottom: 0;
		top: 0;
		left: 72%;
		background: #eee;
		padding:0 20px 20px;
		overflow-x: hidden;
		overflow-y: scroll;
	}
	div#courses-list h4 {
		margin-top: 10px;
		padding-top: 10px;
	}
	body {
		margin-right: 28%;
	}
	/*body.lockScreen {
		overflow: hidden;
	}*/
	p.br {
		right:28%;
		top: 0;
		margin:10px;
		/* top:58px; */
	}
	.max-only {
		display: none !important;
	}
}
@media screen and (max-width:1275px){
	/*a#scroll-lock {
		display: none;
	}*/
	div#courses-list h4 {
		margin-top: 8px;
		padding-top: 10px;
	}
	.min-only {
		display: none !important;
	}
}

p.alink {
	padding:20px 0;
	font-weight: bold;
}
li.announce a,
form a,
p.max-only a {
	color:dodgerblue;
	font-weight: bold;
}
form b {
	font-size: 16px;
}
a.btn-like {
	padding:15px;
	display: inline-block;
	color:dodgerblue;
	text-decoration: none;
	font-size: 12px;
	border:1px dotted dodgerblue;
	margin-top: 20px;
	-webkit-border-radius:3px;
	border-radius:3px;
}
a.btn-like:hover {
	border-color:#222;
	color:#222;
	text-decoration: underline;
}
#courses-list li.no-dots {
	list-style-type: none;
}
#courses-list li a.course-hide {
	margin: 0 -91px -13px -24px;
	padding: 3px 99px 10px 5px;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-decoration: none;/*
	-webkit-border-radius: 2px;
	border-radius: 2px;*/
}
#courses-list li a.course-hide:hover {
	color: #4b4b4b !important;
}
#courses-list li a.course-hide:hover + b {
	text-decoration: line-through;
	color: #6a6a6a;
}
#courses-list li a.add,
#courses-list li a.del {
	padding:10px;
	-webkit-border-radius:3px;
	border-radius:3px;
	display: inline-block;
	background: dodgerblue;
	color:#fff;
	text-decoration: none;
	margin-top: 7px;
	font-size: 14px;
	height: 18px;
}
#courses-list li a.add:before,
#courses-list li a.del:before {
	padding-right: 5px;
}
#courses-list li a.add:before,
#courses-list li a.del:before, 
a.umacinfo:after {
	/*font-size: 30px;
	display: inline-block;
	vertical-align: top;
	padding-right: 3px;
	margin-top: -10px;*/

	/* from .fa */
	display: inline-block;
	font: normal normal normal 14px/1 FontAwesome;
	font-size: inherit;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/*padding-right: 5px;*/
}
#courses-list li a.del {
	background: #ffdada;
	color: #ff8080;
}
#courses-list li a.del:hover {
	background: #ffc9c9;
}
#courses-list li a.del:before {
	content:"\f00d";
}
#courses-list li a.add:hover {
	background: #0282ff;
}
#courses-list li a.add:before {
	content:"\f067";
}
#courses-list.active li a.add,
#courses-list.inactive li.inactive a.add,
#courses-list.inactive li a.del {
	display: none;
}
#courses-list.inactive li.inactive a.del {
	display: inline-block;
}
ul#courselist {
	padding-left: 0;
}
ul#courselist > li {
	list-style: none;
	padding-left: 20px;
	position: relative;
}
ul#courselist > li > h3 > span {
	-webkit-border-radius:3px;
	border-radius:3px;
	width:10px;
	height:35px;
	display: inline-block;
	position: absolute;
	left:5px;
	vertical-align: middle;
}
ul#courselist > li > h3 + p {
	padding-top: 3px;
}
#courses-list span.warning {
	margin:2px 0 0 0;
	-webkit-border-radius:2px;
	border-radius:2px;
	background: bisque;
	color:peru;
	display: inline-block;
	padding:3px;
	vertical-align: bottom;
}
.umac-info {
	display: block;
	padding: 0 13px 13px;
	background: #ccc;
	color:#666;
	-webkit-border-radius:3px;
	border-radius:3px;
	overflow: hidden;
	margin: 10px 0;
}
.umac-info .header {
	font-size: 13px;
	padding:10px 13px 8px;
	background: #222;
	color:#fff;
	margin-left: -13px;
	margin-right: -13px;
}
.umac-info .row.well,
.umac-info .col-md-4,
.umac-info .panel-collapse {
	display: none;
}
.umac-info a {
	color: #333;
	text-decoration: none;
	cursor: default;
	font-size: 16px;
	padding-top: 10px;
	display: block;
}
.umac-info a .pull-right {
	float: right;
}
#study-plan p {
	padding-bottom: 8px;
}
#study-plan a /*, p.br a*/ {
	color:dodgerblue;
	text-decoration: none;
}
p.br a {
	/*padding:5px 10px;*/
	display: block;
	color: #fff;
	text-decoration: none;
}
/*a#scroll-lock {
	z-index:120;
}*/
a.styled {
	padding: 8px 13px;
	/*background: #222;*/
	color: #fff;
	display: inline-block;
	text-decoration: none;
	-webkit-border-radius: 2px;
	font-size: 13px;
	margin:-5px 0 10px;
	white-space: nowrap;
	vertical-align: middle;
}
a.styled#undo {
	background: #ff865f url('undo.png') left center no-repeat;
}
a.styled#redo {
	background: #9ddc54 url('redo.png') right center no-repeat;
}
a.styled#undo,
a.styled#redo {
	background-size: 36px auto;
}

a.styled#undo:before,
a.styled#redo:after {
	position: relative;
	display: inline-block;
	-webkit-transform:scale(0.7,1);
	transform:scale(0.7,1);
}
a.styled.hidden#redo {
	display: none;
}
a.styled.hidden#undo {
	width:0;
	overflow: hidden;
	padding:0;
	margin-right:100px;
}
span#timeslots span span {
	display: inline-block;
	white-space: nowrap;
	padding: 10px;
}
small.location {
	color:#999;
	font-size:12px;
	display:block;
}
del {
	color:#999;
}
a.umacinfo, span.umacinfo {
	font-size:12px;
	display: inline-block;
	text-decoration: none;
	-webkit-border-radius:3px;
	border-radius:3px;
	margin:0;
	vertical-align: bottom;
}
span.umacinfo {
	color: #999;
	/*padding: 0 2px;*/
}
a.umacinfo {
	padding:2px 7px;
	background: rgba(255,255,255,0.8);
	color: #aaa !important;
	margin: 3px 0 0 3px;
	border:1px solid rgba(0,0,0,0.07);
}
a.umacinfo:after {
	content: "\f105";
	padding-left: 4px;
/*	content: '\ff1e';
	-webkit-transform: scale(0.4,0.9);
	transform: scale(0.4,0.9);
	position: relative;
	display: inline-block;
	padding-left: 2px;
*/
}

p.br { padding: 5px 10px; text-align: center; font-size: 12px;}
p.br a {padding: 5px; font-size: 17px;}

@media screen and (max-width:1275px){	
	p.br {
		padding: 0 15px;
	}
	p.br a {
		padding: 13px 10px;
		display: inline-block;
	}
	/*a#lock {
		position: relative;
		right: auto;
	}*/
}


@media screen and (max-width:799px){
	body {padding-top: 60px;}
}

/*p.br a { padding: 0; }*/
/*p.br a img { height: 23px; padding: 5px 15px; vertical-align: middle; }*/



/* 添加清除搜索按钮样式 */
.clear-search {
	display: inline-block;
	margin-left: 10px;
	padding: 5px 10px;
	color: #fff;
	background-color: #ff6b6b;
	border-radius: 3px;
	font-size: 13px;
	vertical-align: middle;
	transition: background-color 0.2s ease;
}

.clear-search:hover {
	background-color: #ff5252;
}

.clear-search i {
	margin-right: 5px;
}

/* 添加筛选器样式 */
.study-plan-header {
	margin-bottom: 15px;
}

.host-filter {
	margin-top: 10px;
	padding: 8px;
	background: #f5f5f5;
	border-radius: 3px;
}

.host-filter label {
	margin-right: 10px;
	color: #666;
}

.host-filter select {
	padding: 3px;
	border: 1px solid #ccc;
	border-radius: 3px;
	min-width: 150px;
}

.host-filter i {
	margin-right: 5px;
}

div.col a .action-buttons {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	background: rgba(255, 255, 255, 0.9);
	z-index: 10;
}

div.col a:hover .action-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.action-button {
	width: 50%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.action-button.umeh {
	background-color: rgba(30, 144, 255, 0.8);
}

.action-button.remove {
	background-color: rgba(255, 69, 0, 0.8);
}

.action-button:hover {
	background-color: rgba(0, 0, 0, 0.7);
}

/* 修改课程操作按钮容器样式 */
.course-actions {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	z-index: 20;
}

div.col a:hover .course-actions {
	display: flex;
	flex-direction: row; /* 确保水平排列 */
}

/* 修改操作按钮样式 */
.course-action {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #fff;
	font-size: 12px; /* 减小字体大小 */
	transition: background-color 0.2s;
	cursor: pointer;
	border: none; /* 移除边框 */
	padding: 0; /* 移除内边距 */
	margin: 0; /* 移除外边距 */
}

/* UMEH按钮样式 */
.course-action.umeh {
	top: 20%;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 60%;
	background-color: rgba(30, 144, 255, 0.8);
	border-radius: 4px 4px 4px 4px; /* 左侧圆角 */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
	transition: all 0.2s ease; /* 平滑过渡效果 */
}

/* 删除按钮样式 */
.course-action.remove {
	top: 60%;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 60%;
	background-color: rgba(255, 69, 0, 0.8);
	border-radius: 4px 4px 4px 4px; /* 右侧圆角 */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
	transition: all 0.2s ease; /* 平滑过渡效果 */
}

.course-action.umeh:hover {
	background-color: rgba(30, 144, 255, 1); /* UMEH按钮hover时加深蓝色 */
}

.course-action.remove:hover {
	background-color: rgba(150, 40, 0, 0.9); /* 删除按钮hover时加深红色 */
}

.course-action i {
	margin-right: 3px; /* 减小图标和文字的间距 */
	font-size: 12px; /* 减小图标大小 */
}

/* 修改原有hover效果 */
div.col a:hover {
	overflow: visible; /* 确保按钮可见 */
}

div.col a:hover span.cross,
div.col a:hover span.alt-text {
	display: none;
}

/* 确保按钮文字不换行 */
.course-action span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 移动端适配样式 */
@media screen and (max-width: 768px) {
	/* 基础布局调整 */
	body {
		padding: 10px;
		margin: 0;
	}

	/* 包装器宽度调整 */
	div#wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* 课程表缩放调整 */
	div#timetable {
		zoom: normal;
	}

	/* 表单元素调整 */
	input[type="text"],
	select,
	.input-wrap {
		width: 100%;
		max-width: 100%;
		margin: 5px 0;
	}

	/* 搜索建议下拉框调整 */
	ul#suggestion {
		width: 100%;
		left: 0;
	}

	/* 课程列表调整 */
	div#courses-list {
		position: static;
		width: 100%;
		margin: 20px 0;
		padding: 10px;
	}

	/* 操作按钮调整 */
	.course-action {
		padding: 8px;
		font-size: 14px;
	}

	/* 筛选器调整 */
	.host-filter {
		margin: 10px 0;
	}

	.host-filter select {
		width: 100%;
	}

	/* 清除搜索按钮调整 */
	.clear-search {
		display: block;
		margin: 10px 0;
		text-align: center;
	}

	/* 课程操作按钮调整 */
	.course-actions {
		flex-direction: column;
	}

	.course-action {
		width: 100%;
		margin: 2px 0;
	}
}

/* 针对超小屏幕的额外调整 */
@media screen and (max-width: 320px) {
	div#timetable {
		zoom: 0.35;
		-webkit-transform: scale(0.35);
		transform: scale(0.35);
	}
}
