/* This is a very basic stylesheet for the date-picker. Feel free to create your own. */

/* The wrapper div */
div.datePicker
        {
        position:absolute;
        min-width:24em;
        width:24em;
        z-index:9999;
        text-align:center;

        /* Change the font-size to suit your design's CSS. The following line is for the demo that has a 12px font-size defined on the body tag */
        font:900 0.8em/0.8em Verdana, Sans-Serif;

        /* For Example: If using the YUI font CSS, uncomment the following line to get a 10px font-size within the datePicker */
        /* font:900 77%/77% Verdana; */
        background:transparent;

        /* Mozilla & Webkit extensions to stop text-selection. Remove if you wish to validate the CSS */
        -moz-user-select:none;
        -khtml-user-select:none;
        }

/* You can add focus effects (for everything but IE6 and Safari) like so: */
div.datePicker:focus
        {
        /* Naughty, naughty - but we add a highlight using the table's border colour */
        outline:none;
        }
div.datePicker:focus table
        {
        border-color:#aaa;
        }
/* Make the wrapper div larger if weeks are to be displayed */
div.weeks-displayed
        {
        /*min-width:28em;
        width:28em;*/
        }
/* Styles for the static datePickers */
div.static-datepicker
        {
        position:relative;
        top:5px;
        left:0;
        /* Firefox redraws faster with a width set */
        min-width:27.4em;
        width:27.4em;
        overflow:visible;
        }
div.static-datepicker.weeks-displayed
        {
        /* Firefox redraws faster with a width set */
        min-width:29em;
        width:29em;
        }
div.drag-enabled
        {
        width:auto;
        height:auto;
        }
/* Draggable datepickers */
div.datePicker tfoot th.drag-enabled,
div.datePicker thead th.drag-enabled,
div.datePicker thead th.drag-enabled span
        {
        cursor:move;
        }
/* The iframe hack to cover selectlists in Internet Explorer <= v6 */
iframe.iehack
        {
        position:absolute;
        background:#fff;
        z-index:9998;
        padding:0;
        border:0;
        display:none;
        margin:0;
        }
/* The "button" created beside each input for non-static datePickers */
a.date-picker-control:link,
a.date-picker-control:visited,
a.date-picker-control:hover,
a.date-picker-control:active,
a.date-picker-control:focus
        {
        position:relative;
        /* Moz & FF */
        display: -moz-inline-stack;
        border:0 none;
        padding:0;
        margin:0 0 0 4px;
        background:url(../images/new-datepicker/cal.jpg) no-repeat 50% 50%;
        min-width:16px;
        line-height:1;
        cursor:pointer;
        visibility:visible;
        text-decoration:none;
        vertical-align:top;
        }
a.dp-button-active
        {
        background:#000;
        }
/* Feed IE6 the following rule, IE7 should handle the min-width declared above */
* html a.date-picker-control
        {
        width:16px;
        }
/* IE, Safari & Opera. Seperate CSS rule seems to be required. */
a.date-picker-control
        {
        display:inline-block;
        }
a.date-picker-control span
        {
        display:block;
        width:16px;
        height:16px;
        margin:auto 0;
        }
/* Default "button" styles */
div.datePicker th span
        {
        display:block;
        padding:0;
        margin:0;
        text-align:center;
        line-height:1em;
        border-width:0;
        font-family: georgia, times new roman, palatino, times, bookman, serif;
        background:transparent;
        font-weight:bold;
        cursor:pointer;
        }
/* The "month, year" display */
div.datePicker th span.month-display,
div.datePicker th span.year-display
        {
        display:inline;
        text-transform:uppercase;
        letter-spacing:1px;
        font:normal 1.2em Verdana, Sans-Serif;
        cursor:default;
        }
/* Next & Previous (month, year) buttons */
div.datePicker th span.prev-but,
div.datePicker th span.next-but
        {
        font-weight:lighter;
        font-size:2.4em;
        cursor:pointer !important;
        }
/* Hover effect for Next & Previous (month, year) buttons */
div.datePicker th span.prev-but:hover,
div.datePicker th span.next-but:hover,
div.datePicker th span.today-but:hover
        {
        color:#a84444;
        }
/* Today button */
div.datePicker th span.today-but
        {
        text-align:center;
        margin:0 auto;
        font:normal 1em Verdana, Sans-Serif;
        width:100%;
        text-decoration:none;
        padding-top:0.3em;
        text-transform:uppercase;
        vertical-align:middle;
        cursor:pointer !important
        }
/* Disabled buttons */
div.datePicker th span.prev-but.fd-disabled:hover,
div.datePicker th span.next-but.fd-disabled:hover,
div.datePicker thead th span.fd-disabled
        {
        color:#aaa;
        cursor:default !important;
        }
/* Disabled Today button */
div.datePicker th span.today-but.fd-disabled
        {
        display:none;
        }
/* The mon, tue, wed etc day buttons */
div.datePicker th span.fd-day-header
        {
        text-align:center;
        margin:0 auto;
        font:900 1em Verdana, Sans-Serif;
        text-decoration:none;
        text-transform:lowercase;
        cursor:pointer;
        }
/* The table */
div.datePicker table
        {
        position:relative;
        margin:0;
        padding:0px;
        border:1px solid #ccc;
        background:#fff url(../images/new-datepicker/gradient-e5e5e5-ffffff.gif) repeat-x 0 -20px;
        text-align:center;
        border-spacing:2px;
        table-layout:fixed;
        empty-cells:show;
        -moz-border-radius:0.8em;
        padding:0.3em;
        }
/* Common TD & TH styling */
div.datePicker table td
        {
        border:0 none;
        padding:0;
        text-align:center;
        vertical-align:middle;
        /*line-height:2.8em;*/
        cursor:pointer;
        background:#fff url(../images/new-datepicker/gradient-e5e5e5-ffffff.gif) repeat-x 0 -40px;
        width:3em;
        height:3em;
        outline:none;
        /*padding:0.1em;*/
        line-height:3em;
        border:1px solid #ccc;
        -moz-border-radius:2px;
        }
div.datePicker table td,
div.datePicker table tbody th
        {

        -webkit-border-radius:2px;
        border-radius:2px;
        }
div.datePicker table td span
        {
        display:inline;

        width:3em;
        background:transparent;
        border:0 none;
        padding:0;
        text-decoration:none;
        font-size:100%;
        }
div.datePicker table th
        {
        border:0 none;
        padding:0;
        font-weight:bold;
        color:#222;
        text-align:center;
        vertical-align:middle;
        }
div.datePicker table thead th
        {
        height:auto !important;
        }
div.datePicker table tbody th
        {
        width:2.8em;
        height:2.8em;
        padding:0.1em;
        border:1px solid #dcdcdc;
        }
/* Week number display */
div.datePicker table thead th.date-picker-week-header,
div.datePicker table tbody th.date-picker-week-header
        {
        font-style:oblique;
        background:transparent;
        cursor:default;
        }
div.datePicker table thead th.date-picker-week-header
        {
        cursor:help;
        border:0 none;
        }
/* tfoot status bar */
div.datePicker tfoot th
        {
        cursor:default;
        font-weight:normal;
        text-transform:uppercase;
        letter-spacing:0.1em;
        border:0 none;
        background:transparent;
        height:2.8em;
        }
/* TD cell that is _not_ used to display a day of the month */
div.datePicker table tbody td.date-picker-unused
        {
        background:#fff url(../images/new-datepicker/backstripes.gif);
        border-color:#dcdcdc;
        cursor:default !important;
        }

/* The TH cell used to display the "month, year" title */
div.datePicker table thead th.date-picker-title
        {
        width:auto;
        height:auto;
        padding:0.4em 0;
        }
/* The "mon tue wed etc" day header styles */
div.datePicker table thead th.date-picker-day-header
        {
        text-transform:lowercase;
        cursor:help;
        height:auto;
        }
/* The "todays date" style */
div.datePicker table tbody td.date-picker-today
        {
        background:#fff url(../images/new-datepicker/bullet2.gif) no-repeat 0 0;
        color:rgb(100,100,100) !important;
        }

/* The "highlight days" style */
div.datePicker table tbody td.date-picker-highlight,
div.datePicker table thead th.date-picker-highlight,
div.datePicker table tbody td.date-picker-highlight.month-out
        {
        color:#a86666 !important;
        }
/* The "active cursor" style */
div.datePicker table tbody td.date-picker-hover
        {
        background:#fff url(../images/new-datepicker/bg_header.jpg) no-repeat 0 0;
        cursor:pointer;
        border-color:rgb(100,130,170) !important;
        color:rgb(100,130,170);
        }
/* The "disabled days" style */
div.datePicker table tbody td.day-disabled
        {
        background:#fff url(../images/new-datepicker/backstripes.gif) no-repeat 0 0;
        color:#aaa !important;
        cursor:default;
        text-decoration:line-through;
        }
div.datePicker table tbody td.month-out
        {
        border-color:#ddd;
        color:#aaa !important;
        background:#fff url(../images/new-datepicker/gradient-e5e5e5-ffffff.gif) repeat-x 0 -40px;
        }
/* The "selected date" style */
div.datePicker table tbody td.date-picker-selected-date
        {
        color:#333 !important;
        border-color:#333 !important;
        }
/* The date "out of range" style */
div.datePicker table tbody td.out-of-range,
div.datePicker table tbody td.not-selectable
        {
        color:#ccc !important;
        font-style:oblique;
        background:#fcfcfc !important;
        cursor:default !important;
        opacity:0.6;
        }
div.datePicker table tbody tr
        {
        display:table-row;
        }
div.datePicker table tbody tr.dp-row-highlight td
        {
        /*border-color:#a80000;*/
        }   /*,div.datePicker table tbody tr:hover td */
/* INTERNET EXPLORER WOES
   ======================

   Hover Effects
   -------------

   Cannot deal with :focus and so the datePicker script adds the class "dp-row-highlight" to the
   row currently being hovered over. This should enable you to add hover effects if desired.

   e.g. the following rule will make highlight the cell borders in another colour when a row is moused over,
   it looks like crap though:

div.datePicker table tbody tr.dp-row-highlight td
        {
        border-color:#aaa;
        }

   Quirksmode necessity?
   ---------------------

   If your HTML document renders in quirksmode (i.e. has no doctype declaration)
   then uncomment the following CSS rule to set a less drastic font-size in IE

div.datePicker table th,
div.datePicker table td
        {
        font-size:100%;
        }
*/

/* Remove the images for Internet Explorer <= v6 using the "* html" hack - (NTS: move this to it's own file)*/
* html div.datePicker table td
        {
        background-image:none;
        }
* html div.datePicker table td.date-picker-unused
        {
        background:#f2f2f2;
        }

@media screen and (-webkit-min-device-pixel-ratio:0) {
        div.datePicker table
                {
                border-spacing:0.3em;
                /* Naughty, naughty */
                -webkit-box-shadow:0px 0px 5px #aaa;
                -webkit-border-radius:0.8em;
                }
        div.static-datepicker table
                {
                -webkit-box-shadow:0 0 0 transparent;
                }
        div.static-datepicker:focus table
                {
                -webkit-box-shadow:0px 0px 5px #aaa;
                }
        div.datePicker table td,
        div.datePicker table tbody th
                {
                padding:0.1em;
                -webkit-border-radius:2px;
                }
        div.datePicker table tbody td.date-picker-hover
                {
                text-shadow:0px 0px 1px #fff;
                -webkit-box-shadow:0px 0px 1px rgb(100,130,170);
                }

}

