/*!
 * Ling Ma ling@malingyun.com
 * 
 * FirstClassDepot Inc.
 */


.sc {
	direction: ltr;
	text-align: left;
}

body .sc { /* extra precedence to overcome jqui */
	font-size: 1em;
}

/* Colors
--------------------------------------------------------------------------------------------------*/

.sc th,
.sc td,
.sc hr,
.sc thead,
.sc tbody,
.sc .sc-row,
.sc .sc-popover {
	border-color: #ddd;
}

.sc .sc-popover {
	background-color: #fff;
}

.sc hr,
.sc .sc-popover .sc-header {
	background: #eee;
}

.sc .sc-popover .sc-header .sc-close {
	color: #666;
}

.sc .sc-today {
	background: #scf8e3;
}

.sc-highlight { /* when user is selecting cells */
	background: #bce8f1;
	opacity: .3;
	filter: alpha(opacity=30); /* for IE */
}


/* Icons (inline elements with styled text that mock arrow icons)
--------------------------------------------------------------------------------------------------*/

.sc-icon {
	display: inline-block;
	font-size: 2em;
	line-height: .7em;
	height: .3em; /* will make the total height 1em */
	font-family: "Courier New", Courier, monospace;
}

.sc-icon-left-single-arrow:after {
	content: "\02039";
	font-weight: bold;
}

.sc-icon-right-single-arrow:after {
	content: "\0203A";
	font-weight: bold;
}

.sc-icon-left-double-arrow:after {
	content: "\000AB";
}

.sc-icon-right-double-arrow:after {
	content: "\000BB";
}

.sc-icon-x:after {
	content: "\000D7";
}


/* Buttons (styled <button> tags, normalized to work cross-browser)
--------------------------------------------------------------------------------------------------*/

.sc button {
	/* force height to include the border and padding */
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	/* dimensions */
	margin: 0;
	height: 2.1em;
	padding: 0 .5em;

	/* text & cursor */
	font-size: 1em; /* normalize */
	white-space: nowrap;
	cursor: pointer;
}

/* Firefox has an annoying inner border */
.sc button::-moz-focus-inner { margin: 0; padding: 0; }
	
.sc-state-default { /* non-theme */
	border: 1px solid #ddd;
}

.sc-state-default.sc-corner-left { /* non-theme */
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

.sc-state-default.sc-corner-right { /* non-theme */
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

/* icons in buttons */

.sc button .sc-icon { /* non-theme */
	position: relative;
	top: .05em; /* seems to be a good adjustment across browsers */
	margin: 0 .1em;
}
	
/*
  button states
  borrowed from twitter bootstrap (http://twitter.github.com/bootstrap/)
*/

.sc-state-default {
	background-color: #f5f5f5;
	background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
	background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
	background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
	background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
	background-repeat: repeat-x;
	border-color: #e6e6e6 #e6e6e6 #bfbfbf;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	color: #333;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-button-hover,
.sc-button-down,
.sc-button-active,
.sc-button-disabled {
	color: #333333;
	background-color: #e6e6e6;
}

.sc-button-hover {
	color: #333333;
	text-decoration: none;
	background-position: 0 -15px;
	-webkit-transition: background-position 0.1s linear;
	   -moz-transition: background-position 0.1s linear;
	     -o-transition: background-position 0.1s linear;
	        transition: background-position 0.1s linear;
}

.sc-button-down,
.sc-button-active {
	background-color: #cccccc;
	background-image: none;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-button-disabled {
	cursor: default;
	background-image: none;
	opacity: 0.65;
	filter: alpha(opacity=65);
	box-shadow: none;
}


/* Buttons Groups
--------------------------------------------------------------------------------------------------*/

.sc-button-group {
	display: inline-block;
}

/*
every button that is not first in a button group should scootch over one pixel and cover the
previous button's border...
*/

.sc .sc-button-group > * { /* extra precedence b/c buttons have margin set to zero */
	float: left;
	margin: 0 0 0 -1px;
}

.sc .sc-button-group > :first-child { /* same */
	margin-left: 0;
}


/* Misc Reusable Components
--------------------------------------------------------------------------------------------------*/

.sc hr {
	height: 0;
	margin: 0;
	padding: 0 0 2px; /* height is unreliable across browsers, so use padding */
	border-style: solid;
	border-width: 1px 0;
}

.sc-clear {
	clear: both;
}


/* Tables
--------------------------------------------------------------------------------------------------*/

.sc table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 1em; /* normalize cross-browser */
}

.sc th {
	text-align: center;
}
.sc th, .sc td {
	border-left: 1px solid #ddd;
}

.sc td {
	border-top: 1px solid #ddd;
	padding: 0;
	vertical-align: top;
}

.sc th:first-child,
.sc td:first-child {
    border-left: 0 none;
}

.sc td.sc-today {
	background: #ddd; /* overcome neighboring borders */
}

.sc td.infoTip {
	background: #ccc;
}
.sc td.sc-past {
	background: #dfdfdf;
}

.sc-tr td div {
	text-align: center;
}

.sc-tr .sc-other-month {
	background: #eeeeee;
	color: #bbb;
}
/* Toolbar
--------------------------------------------------------------------------------------------------*/

.sc-toolbar {
	text-align: center;
	margin-bottom: 1em;
}

.sc-toolbar .sc-left {
	float: left;
}

.sc-toolbar .sc-center {
	display: inline-block;
}

/* the things within each left/right/center section */
.sc .sc-toolbar > * > * { /* extra precedence to override button border margins */
	float: left;
	margin-left: .75em;
}

/* the first thing within each left/center/right section */
.sc .sc-toolbar > * > :first-child { /* extra precedence to override button border margins */
	margin-left: 0;
}
	
/* title text */

.sc-toolbar h4 {
	margin: 0;
}

/* button layering (for border precedence) */

.sc-toolbar button {
	position: relative;
}

.sc-toolbar .sc-button-hover{
	z-index: 2;
}

.sc-toolbar .sc-button-down {
	z-index: 3;
}

.sc-toolbar .sc-button-active {
	z-index: 4;
}

.sc-toolbar button:focus {
	z-index: 5;
}


/* View Structure
--------------------------------------------------------------------------------------------------*/

.sc-view-container, /* scope positioning and z-index's for everything within the view */
.sc-view > table { /* so dragged elements can be above the view's main element */
	position: relative;
	z-index: 1;
}

/* BasicView
--------------------------------------------------------------------------------------------------*/

/* day row structure */

.sc-view tbody .sc-row {
	min-height: 45px;
}

/* a "rigid" row will take up a constant amount of height because content-skeleton is absolute */

.sc-row.sc-rigid {
	overflow: hidden;
}

/* week and day number styling */

.sc-view .sc-week-number,
.sc-view .sc-day-number {
	padding: 0 2px;
}

.sc-view td.sc-week-number span,
.sc-view td.sc-day-number {
	padding-top: 2px;
	padding-bottom: 2px;
}

.sc-view .sc-week-number {
	text-align: center;
}

.sc-view .sc-week-number span {
	/* work around the way we do column resizing and ensure a minimum width */
	display: inline-block;
	min-width: 1.25em;
}

.sc .sc-view .sc-day-number {
	text-align: right;
}


.sc-info a { /* always an <a> tag */
	display: block; /* make the <a> tag block */
	text-decoration: none; /* if it has an href */
}

.sc-info[href] {
	cursor: pointer; /* give events with links and a hand mouse pointer */
}

.tooltip {
  min-width: 220px;
  max-width: 500px;
}
.tooltip .tooltip-inner {
  min-width: 220px;
  max-width: 500px;
  min-height: 80px;
  text-align: left;
}


.sc, .calList {
	width: 100%;
}
.calList {
	clear: both;
	margin-bottom: 20px;
	margin-top: 20px;
}

.itm {
  clear: both;
}

.itm .title, .itm .date {
  float: left;
}

.itm .title {
    padding-left: 10px;
}