/* general calendar styles */

/* cal frame */

table.calFrame tr.header td
{
  padding:0px;
  height:20px;
  background:#96130b;
}

table.calFrame tr.header td div
{
  margin:0px;
  float:left;
}

table.calFrame tr.header td div.hl
{
/*  width:5px;
  height:17px;
  background:url( 'img/cHead_l.gif' ) no-repeat;
*/
  display:none;
}

table.calFrame tr.header td div.close
{
  float:right;
  padding: 5px 10px;
}

table.calFrame tr.header td div.hr
{
  display:none;
/*
  width:5px;
  height:17px;
  background:url( 'img/cHead_r.gif' ) no-repeat top right;
*/
}

div#calHeadline
{
  width:210px;
  display:block;
  color:#fff;
  font-weight:bold;
  padding-left:10px;
  padding-top:2px;
}

td.calHeaderOff
{
  border-bottom:1px solid #96130b;
}

td.calHeaderOff div
{
  display:none !important;
}

table.calFrame tr.header td a
{
  color:#fff !important;
}

table.calFrame tr.frameBody td.leftBorder
{
  width:1px;
}

table.calFrame tr.frameBody td.body
{
  padding:10px;
  padding-left:14px;
  padding-right:0px;
  padding-top:0px;
}

table.calFrame tr.frameBody td.bodyBottom
{
  padding-bottom:10px;
  padding-left:14px !important;
}

table.calFrame tr.frameBody td.rightBorder
{
  width:1px;
}

table.calFrame tr.frameBot td
{
  display:none;
}
table.calFrame {
  border:1px solid #96130b;
}
table.calFrame tr.seperator td
{
  padding:0px !important;
  height:1px;
}

table.calFrame tr.frameBody td.leftBorder, table.calFrame tr.frameBody td.body, table.calFrame tr.frameBody td.bodyBottom, table.calFrame tr.frameBody td.rightBorder, table.calFrame tr.seperator td, table.calFrame tr.frameBot td
{
  background:#efdbba;
}

table.calFrame tr.seperator div
{
  width:100%;
  display:block;
  margin-top:5px;
  margin-bottom:5px;
  border-top:1px solid #96130b;
/*   background: url( '' ) no-repeat top; */
}

table.closeButton {
  display:none;
}
table.closeButton td
{
  border:0px !important;
  padding-right:5px;
}

a.closeLink
{
  text-decoration:none;
}

img.closeButton
{
  border:1px solid #96130b;
  background:#96130b;
}


/* cal  */

div#caLay
{
  position:absolute;
  left:210px;
  bottom:-2em;
  display:none;
}

div.calBgCol
{
  margin-right:14px;
  background:#fff;
/*   border-bottom:1px solid #d9ad62; */
}

div.calLeftBorder
{
  width:1px;
  height:131px;
/*   background:#d7ad65; */
  position:relative;
  top:-132px;
  margin-bottom:-132px;
}
table.cal {
  width:220px;
}
td.body table.cal tr td
{
  white-space:nowrap !important;
  padding:0px;
  padding-top:3px;
  padding-bottom:3px;
  text-align:center;
  width:27px;
  height:19px;
  color:#951e0a;
}

table.cal tr td a:link, table.cal tr td a:active, table.cal tr td a:visited
{
  color:#951e0a;
  text-decoration:none;
}

table.cal tr td a:hover
{
  color:#000 !important;
}

table.cal tr.kwDay td.kw
{
  color:#000;
  font-weight:normal;
}

table.cal tr.calRow td.wn
{
  font-weight:normal !important;
  border-left:1px solid #e5d0a3;
  border-right:1px solid #daaa62;
  width:27px !important;
  color:#000;
}

table.cal tr.kwDay td
{
  border-top:1px solid #96130b;
  font-weight:bold;
  background:#d7ad63;
  color:#000;
}

table.cal tr.calRow td.right
{
  width:30px !important;
  border:0px !important;
  border-right:1px solid #d9ad62 !important;
  border-bottom:1px solid #d9ad62 !important;
}

table.cal tr.calRow td.rightMarkedTimespan
{
  width:30px !important;
  border:0px !important;
  border-right:1px solid #96130b !important;
  border-bottom:1px solid #96130b !important;
}

table.cal tr.calRow td.rightMarkedTimespanTop
{
  width:30px !important;
  border:0px !important;
  border-right:1px solid #d9ad62 !important;
  border-bottom:1px solid #96130b !important;
}

table.cal tr.calRow td.rightBottom
{
  width:25px !important;
  border:0px !important;
  border-right:1px solid #d9ad62 !important;
  border-bottom:1px solid #d9ad62 !important;
}

table.cal td.bottom
{
/*   border-bottom:0px !important; */
}


/* day styles  */

table.cal tr.calRow td
{
  border:1px solid #d9ad62;
  border-left:0px;
  border-top:0px;
  width:27px;
}

table.cal td.today
{
  padding-top:2px !important;
  padding-bottom:2px !important;
  border:1px solid #930 !important;
  width:25px !important;
}

table.cal td.sunday
{
  background:#e8cfa3 !important;
  font-weight:bold;
}

table.cal td.yasumi, div.yasumi
{
  background:#f4e8d3 !important;
  font-weight:bold;
}

table.cal td.holiday, div.holiday
{
  background:#e8cfa3 !important;
  font-weight:bold;
}
table.cal td.otherMonth,
table.cal td.otherMonth a {
color: #555 !important;
}


table.cal td.nowSelecting
{
  background:#96130b !important;
  width:25px !important;
}

table.cal td.nowSelecting a, table.cal td.otherSelectedDate a
{
  color:#fff !important;
}

table.cal td.otherSelectedDate
{
  background:#808080 !important;
  width:25px !important;
}

table.cal td.inactive, .inactiveLink, table.cal td.inactive a:link, table.cal td.inactive a:visited
{
  color:#aaa !important;
}

table.cal td.unmarked
{
  border-right:1px solid #d9ad62 !important;
  border-bottom:1px solid #d9ad62 !important;
  background:#fff !important;
}

table.cal td.ismarked
{
  border-right:1px solid #96130b !important;
  border-bottom:1px solid #96130b !important;
  background:#f4e7e6 !important;
}


/* selectors */

table.cal div#selPrev
{
  margin-top:3px;
}

table.cal td#selDate
{
  padding-left:0px;
  padding-right:0px;
  padding-top:10px;
  padding-bottom:10px;
  text-align:left;
  background:#efdbba;
}

table.cal td#selDate select#mSelect
{
  width:187px;
  border:1px solid #aaa;
  margin-left:10px;
  margin-right:10px;
}

table.cal div#selNext
{
  margin-top:3px;
}

table.cal tr.selectorFull td
{
  color:#000;
  text-align:left;
  padding-left:0px;
}

table.cal select#holBL
{
  border:1px solid #aaa;
  margin-top:10px;
  margin-bottom:10px;
  width:220px;
}

div.yasumi, div.holiday
{
  border:1px solid #dbaa67;
  width:27px;
  height:12px;
  overflow:hidden;
  margin:0px !important;
  margin-bottom:-1px !important;
  margin-right:10px !important;
}


table.explain
{
}

table.explain td
{
  margin:0px;
  border:0px !important;
  padding:3px !important;
  padding-left:0px !important;
}

div.selActive
{
  position:relative;
  left:-5px;
  padding-left:5px;
  margin-right:-10px;
  background: #97130E;
  color:#fff;
}
#agent #endDay,
#agent #startDay {
  width:50px;
}
#agent #endMY,
#agent #startMY {
  width:95px;
}

