/* CSS file for the calendar component
 * NOTE: TODO: combine this file with the new_main.css file.
 */

/* General styles */
/*table td {
  vertical-align: top;
}
*/

#cal_container {
  /*margin: 10px;*/
}
a.tab_lnk {
  font-weight: bold;
  color: #1C94C4;
}

div.ui-datepicker {
  z-index: 10000;
}
img.ui-datepicker-trigger {
  cursor: pointer;
}


/* Layout for the rotation */

table.rotation_tbl {
  table-layout: fixed;
}
table.rotation_tbl td.left_sidebar_td {
  vertical-align: top;
  width: 200px;
  padding: 0 10px 0 0;
}
table.rotation_tbl td.left_sidebar_td p {
  margin: 13px 0 0 0;
}
table.rotation_tbl td.content_td {
  padding: 0;
  vertical-align: top;
  width: auto;
}
table.rotation_tbl td.right_sidebar_td {
  padding: 0;
  vertical-align: top;
  padding-left: 10px;
  width: 200px;
}

div.rotation_calendar_content {
  background-color: #FFF;
  padding: 0 0 20px 10px;
  margin: 0;
  border: 1px solid #CCC;
  position: relative;
}
div.rotation_calendar_content h2 {
  font-size: 16px;
  text-align: center;
}

#step_1 h5 {
  margin-bottom: 2px;
  margin-top: 0px;
  color: #666666;
  font-weight: normal;
  font-size: 11px;
}

/* Spacers (not sure if there's a better way to do this) */
.tspacr5  {margin-top:  5px;}
.tspacr10 {margin-top: 10px;}
.tspacr15 {margin-top: 15px;}
.bspacr5  {margin-bottom:  5px;}
.bspacr10 {margin-bottom: 10px;}
.bspacr15 {margin-bottom: 15px;}
.tbspacr5 {
  margin-top: 5px;
  margin-bottom: 5px;
}
.tbspacr10 {
  margin-top: 10px;
  margin-bottom: 10px;
}
.tbspacr15 {
  margin-top: 15px;
  margin-bottom: 15px;
}





/* Multi-purpose box with a header */

div.mpbox {
  /*border: 1px solid #787878;*/
  border: 1px solid #CCC;
  font-size: 12px;
}
div.whitebox {background-color: #FFF;}
div.topspacer {margin-top: 10px;}
div.mpbox_header {
  color: #000;
  padding: 3px 5px; 
  border-bottom: 1px dotted #CCC;
  background: #EDF3FE;
}
div.mpbox_header h2 {
  font-size: 14px;
  margin: 0;
}
div.mpbox_content {
  /*padding: 10px 10px 5px 10px;*/
  padding: 10px;
  background: #FFF;
}
div.mpbox_content p.last {
  margin-top: 11px;
}
div.mpbox_header h3 {
  font-size: 13px;
  margin: 0;
}
div.mpbox_header h3 span.standout {
  color: #d60000;
  font-size: 14px;
}
div.mpbox_content_2 {   /* uses less padding than the standard mpbox_content */
  background: #FFF;
  padding: 0 5px 0 5px;
}
.mpbox input, .mpbox select, .mpbox textarea, .mpbox button {
  /* these are here to cancel out the styles applied by jQuery UI */
  font-size: 11px;
}

div.rotation_box {
  margin: 10px 0;
  border: 1px solid #CCC;
  /*border-bottom: 1px dotted #787878;*/
  background-color: #FFFFFF;
  padding: 5px 5px 5px 5px;
}
div.rotation_box div.rotation_box_header {
  padding: 3px 5px;
  border-bottom: 1px dotted #CCC;
  background: #EDF3FE;
}

/* Rotation Users Legend */
/*
table.rotation_users_legend div.user_color {
  border: 1px solid #000;
  height: 12px;
  width: 12px;
  margin: 0px 6px 0px 0px;
}
table.rotation_users_legend div.user_name {
  font-size: 12px;
}
*/
div#user_legend {
  /*
  border: 1px solid #CCCCCC;
  padding: 6px 10px;
  */
  margin-right: 18px;
  margin-top: 15px;
}
div#user_legend h4 {
  margin: 0 0 5px 0;
}
div#user_legend table td {
  width: 25%;
}


/* Schedule Exception Tiles */

div.exception_tile {
  border: 1px solid #CCC;
  padding: 5px 8px 5px 5px;
  /*margin-top: -1px;*/
}
div.exception_tile td {
  font-size: 11px;
  padding: 1px;
}
div.exception_tile th {
  font-size: 11px;
  font-weight: normal;
  font-style: italic;
  text-align: left;
  padding: 1px;
}
div.odd {
  background: #FFFFFF;
}
div.even {
  background: #F2F2F2;
}


/* Show Rotation page -- sidebar to navigate the different rotations */

div#rotation_list {
  margin: 0;
  margin-top: 14px;
  /* border-top: 1px solid #CCC; */
  /* padding: 5px 0; */
  margin-left: -1px;

}

div#rotation_list a.rotation_link {
  display: block;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 10px;
  padding-left: 30px;
  border-top: 1px solid #CCC;
  border-right: 1px solid #CCC;
  border-left: 1px solid #CCC;
  background: #EEEEEE none no-repeat scroll 0 0;
}

div#rotation_list a.last {
  border-bottom: 1px solid #CCC;
}

div#rotation_list a.selected {
  background: white url(/images/fugue/calendar_day.png) no-repeat scroll 5px 50%;
  border-left: 1px solid white;
  /* color: white; */
}
div#rotation_list a:hover {
  /* background: #666666 none repeat scroll 0 0; 
  color: white; */
  text-decoration: underline;
}

/* Show Rotation page -- rotation action links */
div.rotation_action_container {
  border: 1px dotted #999999;
  padding: 10px;
  margin-bottom: 16px;
}
div.rotation_action {
}
div.rotation_action a {
  font-size: 13px;
  text-decoration: underline;
}
div.rotation_action a:hover {
  background: #333333 none repeat scroll 0 0;
  color: white;
}


/* New Exception Lightview */

#new_exception {
  width: 350px;
  height: 300px;
}
#new_exception table td {
  padding: 5px 0 5px 0;
  vertical-align: middle;
}
#new_exception table th {
  padding-right: 10px;
  vertical-align: middle;
}
#new_exception p {
  margin: 13px 0;
}
div.rotation_name {
  font-weight: bold;
  font-size: 14px;
}
div.rotation_name input {
  font-size: 14px;
}
div.rotation_name table td { vertical-align: middle; }
div.rotation_name span.ex {
  font-weight: normal;
  font-size: 12px;
  color: #666666;
}

/* Rotation creation sidebar */

div.rotation_user_tile {
  padding-bottom: 10px;
}

a.accordion_h {
  font-weight: bold;
}
a.accordion_h span {
  color: #d60000;
}
div.user_tile {
  border: 1px solid #CCC;
  padding: 8px 6px 8px 6px;
  margin: 0;
  margin-top: -1px;
  cursor: move;
}
div.user_modify_links {
  float: right;
}
div.user_modify_links a {
  font-size: 11px;
  text-decoration: none;
}
div.user_modify_links a:hover { text-decoration: underline; }
/*img.move_user { cursor: move; }*/
div.user_color {
  float: left;
  border: 1px solid #000;
  height: 12px;
  width: 12px;
  margin-right: 6px;
}
div.user_name {
}
#empty_rotation {
  border: 1px solid #CCC;
  padding: 6px 0 6px 6px;
  height: 25px;
  font-style: italic;
  color: #666;
}

span.radio_grp {
  margin-right: 8px;
}

span.radio_grp input[type="radio"] {
  margin-right: 2px;
}

/* color picker */
div.color_picker {
  clear: left;
}
div.color_choice {
  height: 12px;
  width: 12px;
  border: 3px solid #CCC;
  cursor: pointer;
  float: left;
  margin: 4px;
}
div.color_picker div.selected {
  border: 3px solid #000;
}
div.color_picker a {
  text-decoration: none;
}
div.color_picker a:hover {
  text-decoration: underline;
}

/* Rotation Type box styles */
div.info_msg_box {
  padding: 5px 10px;
}
div.info_msg_box span.strong {
  font-weight: bold;
}


/* Calendar Styles */

div.calendar h2 {
  font-size: 13px;
  text-align: center;
  margin: 10px 0 10px 0;
}

div.grid {
  width: 100%;
  position: relative;
}

div.grid div.calendar_header {
  clear: left;
  position: relative;
  width: 100%;
}

div.grid div.calendar_header div {
  font-size: 10px;
  text-align: center;
  float: left;
  height: 100%;
  width: 14%;
}

div.grid div.week {
  width: 100%;
  clear: left;
  position: relative;   /* TODO: what does this do??? */
  /*border-left: 1px solid #000;*/

  overflow: hidden; /* XXXNEW */
}

div.grid div.week div.day {
  width: 14%;
  float: left;
  border-top: 1px solid #CCC;
  color: #333;
  font-size: 11px;
  text-align: right;
  height: 75px; /* original was 65px; */

  border-left: 1px solid #CCC;
  margin-left: -1px;

}
div.grid div.week div.last {
  /*border-right: 1px solid #CCC;*/
}
div.grid div.week div.bottom {
  border-bottom: 1px solid #CCC;
}
div.grid div.week div.today {
  background-color: #FFFFCC;
}
div.grid div.week div.past {
  background-color: #EEE;
}

div.grid div.week div.day div.day_title {
  padding: 3px 3px 3px 0;
}

div.grid div.week div.day .other_month {
  color: #CCC;
}

/** on-call entry tooltips **/
.cal_tooltip {
  font-size: 80%;
}
.cal_tooltip h4 {
  margin: 0;
  display: inline;
  font-size: 10px;
  font-weight: bold;
}
.cal_tooltip table th {
  text-align: left;
  font-weight: normal;
  font-style: italic;
}

/** on-call entry bubbles **/

div.grid div.week div.on_call_entries {
  height: 0;
  z-index: 500;
  overflow: hidden;   /* XXXNEW */
}
div.grid div.week div.on_call_entries div.on_call_entry {
  z-index: 500;
  height: 15px;
  overflow: hidden;   /* TODO: figure out what this means!!! */
  position: absolute;
}
div.grid div.week div.on_call_entries div.on_call_entry div.entry_container {
  z-index: 500;
  width: 100%;
}
div.on_call_entry div.entry_container span.title {
  z-index: 500;
  display: block;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  height: 13px;
  line-height: 13px;
  margin-left: 8px;
  margin-right: 8px;
  padding: 1px 0;
  width: 100%;
}
div.on_call_entry div.entry_container span.left {
  z-index: 500;
  background-position: left top;
  background-repeat: no-repeat;
  display: block;
  height: 15px;
  width: 7px;
  background-image: url(/images/corner-left-white.gif);
  float: left;
}
div.on_call_entry div.entry_container span.right {
  z-index: 500;
  background-position: left top;
  background-repeat: no-repeat;
  display: block;
  height: 15px;
  width: 7px;
  background-image: url(/images/corner-right-white.gif);
  float: right;
  /*COMMENTED OUT: //margin-right: 1px;*/
}

div.week div.on_call_entries div.on_call_exception_entry {
  z-index: 502;
  /*height: 15px;*/
  height: 13px;
  overflow: hidden;
  position: absolute;
  /*border-size: 1px;
  border-style: solid;*/
  margin-top: 0;
}
div.week div.on_call_entries div.on_call_exception_entry div.entry_container {
  z-index: 502;
  width: 100%;
  height: 13px;
}
div.on_call_exception_entry div.entry_container span.title {
  z-index: 502;
  display: block;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  /*height: 15px;*/
  height: 13px;
  line-height: 13px;
  margin-left: 8px;
  margin-right: 8px;
  padding: 1px 0;
  width: 100%;
}

div.calendar h2 span {
  margin: 0 30px;
}


/* Line which divides the past schedule entries from the future ones in the 
 * Edit Rotation calendar preview. 
 */
#starting_point_line {
  position: absolute;
  z-index: 600;
}
#starting_point_line div.line {
  position: absolute;
  border: 1px solid red;
  width: 0px;
  height: 20px;
  left: -1px;
  top: 0;
  z-index: 600;
}
#starting_point_line div.line_label {
  position: absolute;
  top: 22px;
  left: -50px;
  width: 100px;
  font-size: 9px;
  font-weight: bold;
  background-color: white;
  border: 1px solid #666;
  padding: 2px 2px;
  text-align: center;
  z-index: 600;
}
