/*-----------------------------------------------------------------------------
 [TABLE OF CONTENTS]
    +datepick
     =datepcik-nav
     =datepcik-header
     =datepcik-month
     =datepcik-ctrl
     =ui-datepicker
-----------------------------------------------------------------------------*/

/* +datepick
*----------------------------------------------------------------------------*/
.datepick {
    position: relative;
    z-index: 100000; /*must have*/
    float: left;
    padding: 2px;
    border: 1px solid #444;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #fff;
    color: #222;
    font: 14px Arial,Helvetica,sans-serif;
}

.datepick-control,
.datepick-cmd-today,
.datepick-ctrl {
    /*display: none !important;*/
}

/**
*
* =datepcik-nav
*
**/

.datepick .datepick-nav .datepick-cmd-prev,
.datepick .datepick-nav .datepick-cmd-next {
    position: absolute;
    top: 6px;
    width: 20px;
    height: 20px;
    background: url(../i/datepick/btn.png) no-repeat 1px 1px;
    text-indent: -100000px;
}

.datepick .datepick-nav .datepick-cmd-prev {
    left: 5px;
}

.datepick .datepick-nav .datepick-cmd-next {
    right: 5px;
    background-position: -21px 1px;
}

.datepick .datepick-nav .datepick-cmd-prev:hover {
    border: 1px solid #999;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #ddd;
    background-position: 1px -21px;
}

.datepick .datepick-nav .datepick-cmd-next:hover {
    border: 1px solid #999;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #ddd;
    background-position: -21px -21px;
}

.datepick .datepick-nav .datepick-cmd-today {
    position: absolute;
    bottom: 5px;
    left: 50%;
    margin: 0 0 0 -25px;
}

/**
*
* =datepcik-header
*
**/

.datepick-month-header {
    height: 30px;
    line-height: 30px;
    margin-bottom: 3px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background: url(../i/datepick/bg-month-header.png) repeat-x;
    color: #555;
    font-weight: bold;
    text-align: center;
}

/**
*
* =datepcik-month
*
**/

.datepick .datepick-month table {
    margin: 0 auto;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
}

.datepick .datepick-month table th {
    margin: 0;
    padding: 2px;
    color: #555;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

.datepick .datepick-month table th span {
    display: block;
    width: 20px;
    height: 21px;
    line-height: 21px;
}

.datepick .datepick-month table td {
    padding: 2px;
    border: none;
}

.datepick .datepick-month table td a,
.datepick .datepick-month table td span {
    display: block;
    width: 20px;
    height: 21px;
    padding: 0;
    border: 1px solid #d3d3d3;
    background: url(../i/datepick/bg.png) repeat-x center;
    color: #555;
    font: 13px/22px Arial,Helvetica,sans-serif;
    text-align: center;
    text-decoration: none;
}

.datepick .datepick-month table td span {
    border: 1px solid #f0f0f0;
    background: none;
    color: #9d9d9d;
}

.datepick .datepick-month table td a:hover {
    border: 1px solid #999;
    background: url(../i/datepick/bg-hover.png) repeat-x center;
    color: #212121;
}

.datepick .datepick-month table td .datepick-selected {
    border: 1px solid #aaa;
    background: none;
    color: #212121;
}

.datepick .datepick-month table td .datepick-today {
    border: 1px solid #fcefa1;
    background: url(../i/datepick/bg-today.png) repeat-x center;
    color: #363636;
}

.datepick .datepick-month table td a.datepick-highlight {
    border: 1px solid #999;
    background: url(../i/datepick/bg-today.png) repeat-x center;
    color: #363636;
}

/**
*
* =datepcik-ctrl
*
**/

.datepick .datepick-ctrl {
    overflow: hidden;
    margin: 3px 0 0;
    padding: 5px 3px 3px;
    border-top: 1px solid #aaa;
}

.datepick .datepick-ctrl .datepick-cmd-clear {
    float: left;
}

.datepick .datepick-ctrl .datepick-cmd-close {
    float: right;
}

.datepick .datepick-nav  .datepick-cmd-today,
.datepick .datepick-ctrl .datepick-cmd-clear,
.datepick .datepick-ctrl .datepick-cmd-close {
    width: 50px;
    height: 25px;
    border: 1px solid #d3d3d3;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background: url(../i/datepick/bg.png) repeat-x center;
    color: #555;
    font: 13px/25px Arial,Helvetica,sans-serif;
    text-align: center;
    text-decoration: none;
}

.datepick .datepick-nav  .datepick-cmd-today:hover,
.datepick .datepick-ctrl .datepick-cmd-clear:hover,
.datepick .datepick-ctrl .datepick-cmd-close:hover {
    border: 1px solid #999;
    background: url(../i/datepick/bg-hover.png) repeat-x center;
    color: #212121;
}

/**
*
* =ui-datepicker
*
**/

.ui-datepicker .ui-datepicker-title select {
    margin: 2px;
}

.ui-datepicker .ui-datepicker-title select,
.ui-datepicker .ui-datepicker-title option {
    border: none;
    background-color: #f6a828;
    color: #ffffff;
}

.datepick-trigger,
.ui-datepicker-trigger {
    margin-right: 5px;
    vertical-align: middle;
}

/**
*
* =datepick-popup
*
**/

.datepick-popup {
    position: relative;
    z-index: 100000;
}

.datepick-popup .ui-datepicker > .ui-datepicker-header {
    padding: 5px 0;
    border: none;
    border-top: 1px solid #ccc;
    background: none;
}

.datepick-popup .ui-datepicker > .ui-datepicker-header:first-of-type {
    height: 0;
    padding: 0;
    border: none !important;
}

.datepick-popup .ui-datepicker .ui-datepicker-header {
    position: static;
}

.datepick-popup .ui-datepicker .ui-datepicker-cmd-prev {
    position: absolute;
    top: 10px;
    left: 8px;
    z-index: 100;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 1px solid #f7b64a;
    border-radius: 4px;
    background: url(../i/datepick/icon-prev.png) no-repeat center;
    text-indent: -100000px;
    outline: none;
}

.datepick-popup .ui-datepicker .ui-datepicker-cmd-next {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 100;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 1px solid #f7b64a;
    border-radius: 4px;
    background: url(../i/datepick/icon-next.png) no-repeat center;
    font-size: 0;
    text-indent: -100000px;
    outline: none;
}

.datepick-popup .ui-datepicker .ui-datepicker-cmd-prev:hover {
    border: 1px solid #f6a828;
    background: #fdf5ce url(../i/datepick/icon-prev-hover.png) no-repeat center;
}

.datepick-popup .ui-datepicker .ui-datepicker-cmd-next:hover {
    border: 1px solid #f6a828;
    background: #fdf5ce url(../i/datepick/icon-next-hover.png) no-repeat center;
}

.datepick-popup .ui-datepicker .ui-datepicker-disabled {
    opacity: 0.35;
}

.datepick-popup .ui-datepicker .ui-datepicker-cmd-today  {
    position: absolute;
    bottom: 6px;
    left: 43%;
    width: 45px;
    height: 2em;
    line-height: 2em;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #f6f6f6 url(../i/jquery-ui/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
    color: #1c94c4;
    font-weight: bold;
}

.datepick-popup .ui-datepicker .ui-datepicker-group .ui-datepicker-header {
    height: 2.2em;
}

.datepick-popup .ui-datepicker td span {
    border: 1px solid #ccc;
    color: #1c94c4;
    opacity: 0.35;
}

.datepick-popup .ui-datepicker td span.ui-datepicker-other-month {
    border: 1px solid transparent;
}
