﻿/* The main calendar widget.  DIV containing a table. */

div.calendar 
{
  position: relative;
  border: 1px solid #933;
  font-size: 11px;
  color: #000;
  background: #fff url(../images/bg_box.gif) repeat-x top center;
  z-index: 6000;  
}
.calendar table { cursor: default; border-collapse:separate; }
.calendar .hilite { cursor: pointer; }

/* Header part -- contains navigation buttons and day names. */

.calendar td.title { padding: 5px auto; }

.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
  text-align: center;    /* They are the navigation buttons */
  padding: 2px;          /* Make the buttons seem like they're pressing */
  color: #fff;
  font-size: 95%;
  border-bottom: 1px solid #655;
}

.calendar .nav {
  background: #ddd url(../images/menuarrow.gif) no-repeat 100% 100%;
  color: #fff;
}

.calendar thead td
{ text-align: center; padding: 4px; }
.calendar thead td div 
{ text-align: center; }

.calendar thead tr { /* This holds the current "month, year" */
  font-weight: bold;      /* Pressing it will take you to the current date */
  text-align: center;
  padding: 2px 3px;
  background: #522 url(../images/bg_headerbar.gif) repeat-x left top;
  color: #fff;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
  background: #ddd;
}
.calendar thead .headrow .button {
    color: #000;
}

.calendar thead .name { /* Cells <TD> containing the day names */
  border-bottom: 1px solid #D0CECD;
  text-align: center;
  color: #000;
}

.calendar thead .weekend { /* How a weekend day name shows in header */
  color: #a33;
}

.calendar thead .hilite { /* How do the buttons in header appear when hover */
  background-color: #622;
  color: #fff;
}
.calendar thead .headrow .hilite { /* How do the buttons in header appear when hover */
  background-color: #cbb;
  color: #000;
}

.calendar thead .active { /* Active (pressed) buttons in header */
  background-color: #a99;
  padding: 2px 0px 0px 2px;
}

.calendar thead .daynames { /* Row <TR> containing the day names */
  background: #eee;
  font-weight: normal;
}
.calendar thead .daynames .hilite { /* How do the buttons in header appear when hover */
  background-color: #edd;
  color: #000;
}

/* The body part -- contains all the days in month. */

.calendar tbody .day { /* Cells <TD> containing month days dates */
  width: 2em;
  color: #533;
  text-align: right;
  padding: 3px 3px 3px 1px;
}
.calendar tbody .day.othermonth {
  font-size: 75%;
  color: #ccc;
}
.calendar tbody .day.othermonth.oweekend {
  color: #f99;
}

.calendar table .wn {
  padding: 2px 3px 2px 2px;
  border-right: 1px solid #bbb;
  background: #eee;
}

.calendar tbody .rowhilite td {
  background: #edd;
}

.calendar tbody .rowhilite td.wn {
  background: #dcc;
}

.calendar tbody td.hilite { /* Hovered cells <TD> */
  background: #dcc;
  border: 1px solid #bbb;
  padding: 1px 2px 1px 0;
}

.calendar tbody td.active { /* Active (pressed) cells <TD> */
  background: #ecc;
  padding: 1px 2px 1px 0;
}

.calendar tbody td.selected { /* Cell showing today date */
  font-weight: bold;
  border: 1px solid #000;
  padding: 3px 2px 3px 0;
  background: #fdd;
  color: #000;
}

.calendar tbody td.weekend { /* Cells showing weekend days */
  color: #955;
}

.calendar tbody td.today { font-weight: bold; color: #a00; }

.calendar tbody .disabled { color: #999; }

.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
  visibility: visible;
}

.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
  display: none;
}

/* The footer part -- status bar and "Close" button */

.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
  text-align: center;
  background: #b50000 url(../images/bg_headerbar.gif) repeat-x left top;
  color: #fff;
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
  padding: 4px;
  background: #b50000 url(../images/bg_headerbar.gif) repeat-x left top;
  color: #fff;
  font-size: 90%;
  text-align: center;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
  background: #faa;
  border: 1px solid #822;
  color: #000;
  padding: 1px;
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
  background: #c77;
  padding: 2px 0px 0px 2px;
}

/* Combo boxes (menus that display months/years for direct selection) */

.calendar .combo {
  position: absolute;
  display: none;
  top: 0px;
  left: 0px;
  width: 4em;
  cursor: default;
  border: 1px solid #555;
  background: #ddd;
  color: #000;
  font-size: 90%;
  z-index: 100;
}

.calendar .combo .label,
.calendar .combo .label-IEfix {
  text-align: center;
  padding: 1px;
}

.calendar .combo .label-IEfix {
  width: 4em;
}

.calendar .combo .hilite {
  background: #ccc;
}

.calendar .combo .active {
  border-top: 1px solid #666666;
  border-bottom: 1px solid #666666;
  background: #eee;
  font-weight: bold;
}


.calendar td.time {
  border-top: 1px solid #655;
  padding: 3px 0px;
  text-align: center;
  background-color: #edd;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
  padding: 0px 3px 0px 4px;
  font-weight: bold;
}

.calendar td.time .ampm {
  text-align: center;
}

.calendar td.time .colon {
  padding: 0px 2px 0px 3px;
  font-weight: bold;
}

.calendar td.time span.hilite {
  padding: 0px 2px 0px 3px;
  border: 1px solid #030;
  border-bottom-color: #a99;
  border-right-color: #a99;
  background-color: #fee;
  color: #311;
  cursor: e-resize;
}
.calendar td.time span.ampm.hilite { cursor: pointer; }

.calendar td.time span.active {
  padding: 0px 2px 0px 3px;
  border: 1px solid #200;
  border-bottom-color: #744;
  border-right-color: #744;
  background-color: #866;
  color: #fff;
}

.Item .DatePicker, .Item .DatePicker:focus,
.Item .DateClear, .Item .DateClear:focus,
.Item .DateToday, .Item .DateToday:focus
{
    font-size: 110%;
    margin-left: 3px;
    margin-right: 3px;
    padding: 0;
    text-indent: -9999px;
    letter-spacing: -9999px;
    border: none;
    background: transparent url(../images/icon_date.png) no-repeat center center;
    height: 16px;
    width: 16px;
    cursor: pointer;    
}
.Item .DateClear, .Item .DateClear:focus 
{ background: transparent url(../images/icon_cleardate.png) no-repeat center center; }
.Item .DateToday, .Item .DateToday:focus 
{ background: transparent url(../images/icon_today.png) no-repeat center center; }

.Item .DatePicker:focus,
.Item .DateClear:focus,
.Item .DateToday:focus
{
    background-position: 1px 1px;
    margin-left: 2px;
    height: 17px; width: 17px;
}