/* Calendar 2D layout */

@import url("layout-common.css");

div.calendar { position: relative; }

.calendar, .calendar table {
  border: 1px solid;
  cursor: default;
  font-family: arial;
}

.calendar td {
  font-size: 12px;
  font-weight: bold;
  font-family: arial;
}

/* Header part -- contains navigation buttons and day names. */

.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
  text-align: center;    /* They are the navigation buttons */
  padding: 2px;          /* Make the buttons seem like they're pressing */
  border: none;
}

.calendar .nav {
}

.calendar thead .title { /* This holds the current "month, year" */
  font-weight: bold;      /* Pressing it will take you to the current date */
  text-align: center;
  padding: 6px 2px 6px 2px;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
}

.calendar thead .name { /* Cells <TD> containing the day names */
  padding: 3px 2px 3px 2px;
  text-align: center;
}

.calendar thead .weekend { /* How a weekend day name shows in header */
}

.calendar thead .hilite { /* How do the buttons in header appear when hover */
  padding: 1px;
  border: none;
}

.calendar thead .active { /* Active (pressed) buttons in header */
  padding: 2px 0px 0px 2px;
}

.calendar thead .daynames { /* Row <TR> containing the day names */
}



/* The body part -- contains all the days in month. */

.calendar tbody .day { /* Cells <TD> containing month days dates */
  text-align: center;
  padding: 1px 1px 1px 2px;
  width: 20px;
  height: 21px;
}

.calendar tbody .day.othermonth {
  font-size: 80%;
}
.calendar tbody .day.othermonth.oweekend {
}

.calendar table .wn {
  padding: 2px 3px 2px 2px;
  border-right: 1px solid;
}

.calendar tbody .rowhilite td {
}

.calendar tbody .rowhilite td.wn {
}

.calendar tbody td.hilite { /* Hovered cells <TD> */
  padding: 0px 0px 0px 1px;
  border: 1px solid;
}

.calendar tbody td.active { /* Active (pressed) cells <TD> */
  padding: 0px 0px 0px 1px;
}

.calendar tbody td.selected { /* Cell showing today date */
  font-weight: bold;
  border: 1px solid;
  padding: 0px 0px 0px 1px;
}

.calendar tbody td.edges { /* Cell showing edge date */
  border: 1px solid;
  padding: 0px 0px 0px 1px;
}



/* in 2+ horizontal calendar, separate the months */
.calendar thead .month-left-border { 
}
.calendar thead .month-right-border { 
  border-right: 1px solid;
}
.calendar tbody .month-left-border { 
}
.calendar tbody .month-right-border { 
  border-right: 1px solid;
}



.calendar tbody td.weekend { /* Cells showing weekend days */
}

.calendar tbody td.today { font-weight: bold; }

.calendar tbody .disabled { }

.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
  visibility: hidden;
}

.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;
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
  padding: 3px 2px 3px 2px;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
}

/* Combo boxes (menus that display months/years for direct selection) */

.calendar .combo .active {
  border-top: 1px solid;
  border-bottom: 1px solid;
  font-weight: bold;
}

