.bg-red { background-color: #cb4946; }
.bg-green { background-color: #66ACA2; }
.bg-yellow { background-color: #EDC86E; }
.bg-blue { background-color: #5F8AB7; }
.bg-orange { background-color: #FFA960; }
.bg-gray { background-color: #808080; }
.bg-default { background-color: #F0F0F0; }
.notices-box {
	width: 100%;
	margin-top: 10px;
}
.notices-box th, .notices-box td {
	padding: 4px 8px !important;
	vertical-align: middle !important;
}
.notices-box:last-child {
	margin-bottom: 10px;
}
.notices-header,
.notices-footer {
	width: inherit;
	height: 40px;
	text-overfloat: ellipsis;
}
.notices-header {
	border-width: 1px 1px 0 1px;
	border-style: solid;
	border-color: #ccc;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;	
}
.notices-footer {
	border-width: 0 1px 1px 1px;
	border-style: solid;
	border-color: #ccc;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;	
}
.notices-header h4 {
	padding: 5px 10px;
	color: #fff;
	white-space: nowrap;
	margin: 5px 0;
}
.notices-header:hover,
.notices-footer:hover {
	text-overfloat: inherit;
}
.bg-default h4 { color: #555; }
.notices-header > .btn-group,
.notices-footer > .btn-group {
	margin: 2px 4px;
}

.notices-header > .notices-msg {
	margin: 8px;
	border: 1px solid #eee;
	border-radius: 4px;
	padding: 6px 12px;
	background-color: #fff;
}
.notices-body,
.notices-autobody {
	background-color: #fff;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	border-color: #eee;
	padding: 0 2px;
	width: inherit;
}
.notices-box > .notices-body:last-child,
.notices-box > .notices-autobody:last-child {
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;	
}
@media (min-width: 768px) {
	.notices-body {
		height: 250px;		
	}
}

div[class*="-12"] .notices-body,
.notices-autobody {
	height: auto;
}
.notices-item {
	position: relative;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 10px;
	overflow: hidden;
}
.notices-item:hover {
	background-color: #f0f0f0;
}
.notices-item:not(:first-child) {
	margin-top: 10px;
}
.notices-item-title {
	width: 50%;
	float: left;
}
.notices-item-title h5 {
	position: absolute;
	top: 50%;
	transform: translateY(-75%);
	font-size: 1.6em;
	margin-left: 10px;
}
.notices-item-contents {
	width: 50%;
	float: right;
	text-align: right;
}
.notices-item-msg {
	width : 50%;
	float: left;
	padding: 5px;
}
.notices-item-msg p {
	margin: 5px 0;
	font-size: 1.3em;
}

/* notices-box 字體加大版 */
.notices-box.notices-xl > .notices-body .ui-grid th,
.notices-box.notices-xl > .notices-autobody .ui-grid th {
    font-size: 16px;
}
.notices-box.notices-xl > .notices-body .ui-grid td,
.notices-box.notices-xl > .notices-autobody .ui-grid td {
    font-size: 18px;
    line-height: 1.5;
}
.notices-box.notices-xl > .notices-body .ui-grid img,
.notices-box.notices-xl > .notices-autobody .ui-grid td {
    vertical-align: middle;
}
.notices-box.notices-xl > .notices-body .ui-grid .footer,
.notices-box.notices-xl > .notices-autobody .ui-grid td {
    font-size: 16px;
}
.notices-box.notices-xl > .notices-body .ui-grid .rowfuns,
.notices-box.notices-xl > .notices-autobody .ui-grid td {
    font-size: unset;
}

/* bootstrap fix */
.notices-header .dropdown-menu {
	padding: 0;
}
.notices-header .list-group-item:first-child {
	border-top: 0;
}
.notices-header .list-group-item:last-child {
	border-bottom: 0;
}

/* default fix */
.notices-body .ui-sqlid {
	position: absolute;
	top: 5px;
}

/* JSchart fix */
.notices-box a.jscitemselectable {
	border-radius: 0px;
	background-color: #eee;
	color: #777 !important;
	margin-right: -4px;
	margin-top: 3px;
	margin-bottom: 3px;
	border: 1px solid #ccc;
}
.notices-box a.jscitemselectable:first-child {
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	margin-left: 5px;
}
.notices-box a.jscitemselectable:last-child {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
	margin-right: 5px;
}
.notices-box a.jscitemselectable:hover {
	background-color: #ccc;
	color: #555 !important;
}