.calendar {
  position: relative;
  display: none;
  border-top: 0px solid #000;
  border-right: 0px solid #000;
  border-bottom: 0px solid #000;
  border-left: 0px solid #000;
  font-size: 9px;
  color: #fff;
  cursor: default;
  background: #c8d4d0;
  font-family: Arial, Helvetica, sans-serif;
}

.calendar table {
  border-top: 1px solid #F9F9F9;
  border-right: 1px solid #F9F9F9;
  border-bottom: 1px solid #F9F9F9;
  border-left: 1px solid #F9F9F9;
  font-size: 9px;
  color: #666;
  cursor: default;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  width:130px;
}

/* Cabecera */

.calendar .button { 
  text-align: center;
  padding: 1px;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
  border-bottom: 2px solid #999;
  border-left: 1px solid #999;
}

.calendar thead .title { /* imagen */
  font-weight: bold;
  padding: 1px;
  border: 0px solid #DDD;
  background: #000;
  color: #fff;
  text-align: center;
}

.calendar thead .headrow { /* <TR> botones navegación */
}

.calendar thead .daynames { /* <TR> nombre días */
}

.calendar thead .name { /* <TD> nombre días */
  border-bottom: 1px solid #DDD;
  padding: 0px;
  text-align: center;
  background: #fff;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.calendar thead .weekend { /* Color del nombre de los días de fin de semana */
  color: #f00;
}

.calendar thead .hilite { /* Color botones al pasar ratón */
  padding: 0px;
  background-color: #ddd;
}

.calendar thead .active { /* Color botones activos */
  padding: 2px 0px 0px 2px;
  border-top: 1px solid #DDD;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #DDD;
  background-color: #ddd;
}

/* BODY */

.calendar tbody .day { /* <TD> días */
  width: 2em;
  text-align: center;
  border-bottom: 1px solid #DDD;
  padding: 2px 2px 2px 2px;
  font-family: Arial, Helvetica, sans-serif;
}

.calendar table .wn { /* Semanas */
  width: 2em;
  text-align: center;
  padding: 2px 2px 2px 2px;
  border-bottom: 1px solid #DDD;
  background: #DDD;
}

/* COLORES PARA LAS CELDAS */

.calendar tbody td.ama { /* celdas color amarillo */
  background: #FFECBF;
  text-align: center;
}

.calendar tbody td.ver { /* celdas color verde */
  background: #E2FCBF;
  text-align: center;
}

.calendar tbody td.roj { /* celdas color rojo */
  background: #F3BFC6;
  text-align: center;
}

.calendar tbody td.fuc { /* celdas color fucsia */
  background: #FFCCEC;
  text-align: center;
}

.calendar tbody td.lil { /* celdas color lila */
  background: #D9CCD9;
  text-align: center;
}

.calendar tbody td.azu { /* celdas color azul */
  background: #D5DAE6;
  text-align: center;
}

.calendar tbody td.nar { /* celdas color naranja */
  background: #FFCC33;
  text-align: center;
}

.calendar tbody td.mor { /* celdas color morado */
  text-align: center;
  background: #3C288F;
  color: #FFFFFF;
}

.calendar tbody td.nar2 { /* celdas color naranja2 */
  text-align: center;
  background: #F7AF2B;
  color: #FFFFFF;
}

.calendar tbody td.azu2 { /* celdas color azul2 */
  text-align: center;
  background: #009CC0;
  color: #FFFFFF;
}

.calendar tbody td.ver2 { /* celdas color verde2 */
  text-align: center;
  background: #A5D341;
  color: #FFFFFF;
}

.calendar tbody td.ver3 { /* celdas color verde3 */
  text-align: center;
  background: #DFDD00;
  color: #FFFFFF;
}

.calendar tbody td.lil2 { /* celdas color lila2 */
  text-align: center;
  background: #A35CA4;
  color: #FFFFFF;
}

.calendar tbody td.weekend { /* Fin de semana */
  color: #f00;
}

.calendar tbody td.today { /* Fecha actual */
  font-weight: bold;
  color: #fff;
  background: #000;
}

.calendar tbody .emptycell { /* Celdas vacías */
  border-bottom: 1px solid #DDD;
}

.calendar tbody .emptyrow { /* Filas vacías */
  display: none;
}

/* Pie */

.calendar tfoot .footrow { 
}

.calendar tfoot .ttip { /* pie del calendario */
  padding: 1px;
  border: 0px solid #000;
  border-top: 1px solid #DDD;
  background: #F9F9F9;
  color: #666;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}