/* calendar-small.css */

#cal, #caldates {
    width: 160px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 12px;
}
#cal h3 {
    margin: 0 0 0 0;
    color: #fff;
    font-size: 12px;
    padding: 1px;
    line-height: 18px;
    text-shadow: -1px -1px #333;
;
}
table#daynames {
    margin: 0 0 0 18px;
    border-right-width: 1px;
    border-right-style: solid;
}

#daynames tr {
    height: 18px;
}
#daynames td {
    width: 25px;
}

#caldates {
    height: 242px;
    overflow: auto;
    background-color: #eee;
    /*position: relative;*/
}

#caldates::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px;
}

#caldates::-webkit-scrollbar-thumb {
    background-color: #999999;
    -webkit-border-radius: 13px;
}

.cal-inner {
    margin:0;
    border-spacing: 0;
    border-collapse: collapse;
}
.cal-inner td {
    margin: 0;
    padding: 0;
    text-align:center;
    vertical-align:middle;
    /*background-repeat : no-repeat;*/
    /*background-position: top center;*/
    width: 25px;
    height: 25px;
    line-height: 21px;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
/*    background-color: #ccc; */
}

.cal-inner td.ym {
    width:19px;
    border-bottom: 1px solid #ccc;
    vertical-align:middle;
}

.cal-inner tbody td, .cal-inner tbody td.h  {
    color: #999;

    /*background-image: url('../images/x.png');*/
}

.cal-inner tbody td, #legend dt {
    background-color: #ddd;
}

.cal-inner tbody td.e {
    background-color: #eee;
}
.cal-inner tbody td.a, .cal-inner tbody td.am, .cal-inner tbody td.pm {
    font-weight: bold;
}

.cal-inner tbody td div, #legend dt div {
    margin: 1px;
    -webkit-border-radius: 13px;
    -moz-border-radius: 13px;
    border-radius: 13px;
}
.cal-inner tbody td div, #legend dt div.u  {
    background-image: url('/images/x_new.png');
    background-position: center;
}

.cal-inner tbody td.a div, #legend dt div.a {
    color: #000;
    background-image: none;
    background-color: #ffffff;
}

.cal-inner tbody td.h div {
    background-image: none;
}

.cal-inner tbody td.am div, #legend dt div.am {
    color: #000;
    background-image: url('../images/bgh.png');
    background-position: center 90%;
    background-color: inherit;
}
.cal-inner tbody td.pm div, #legend dt div.pm {
    color: #000;
    background-image: url('../images/bgh.png');
    background-position: center 10%;
    background-color: inherit;
}

.cal-inner tbody td.ym div.v-outer {
    position: relative;
    display: block;
}

 span.v-inner {
    display:block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(-90deg);
    -moz-transform: translateX(-50%) translateY(-50%) rotate(-90deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(-90deg);
    transform: translateX(-50%) translateY(-50%) rotate(-90deg);
    white-space:nowrap;
}

 #calmsg {
     font-weight: normal;
     font-size: 10px;
     line-height: 1;
 }

#cal-footer {
    padding: 0 5px 5px;
}
#cal-footer p {
    font-size: 10px;
    color: #ccc;
    /*text-align:center;*/
    margin: 3px 0;
    /*line-height: 1;*/
    /*padding: 3px;*/
}

#legend {
    font-size: 10px;
    display:none;
    background-color: white;
    position:absolute;
    z-index:10;
    left: 15px;
    top: 125px;
    width: 125px;
    padding: 0;
    text-align: center
}

#legend div.closer {
    height: 5px;
}

#legend div.closer a {
    font-size: 14px;
    float: right;
    padding-right: 5px
}

#legend dl {
    float: left;
    margin: 10px;
    padding: 0;
}

#legend dt {
    float: left;
    clear: both;
    margin: 0;
    padding: 0;
    border: solid 1px #ccc;
}
#legend dd {
    margin: 0;
    padding: 8px 0 8px 8px;
    clear: none;
    float: left;
}

#legend dt div {
    margin: 2px;
    width: 20px;
    height: 20px;
}
#legend-link {
    margin-top: 5px;
}

#legend-link a {
    padding-left: 9px;
    font-size: 9px;
    color: #999;
}

#legend-link a:hover {
    color: #333;
}
