@charset "ISO-8859-1";

/*
 * Copyright 2009, 2013 Newport Software Technologies, UNICEN
 *
 * This file is part of XGAP.
 *
 * XGAP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * XGAP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with XGAP.  If not, see <http://www.gnu.org/licenses/>.
 */

/* The main calendar widget.  DIV containing a table. */
div.calendar {
    position: relative;
}

.calendar, .calendar table {
    border: 2px solid #96ABC4;
/*  font-size: 11px;*/
    color: #000;
    cursor: default;
    background: #F1F2F3;
    font-family: "DejaVu Sans", FreeSans, "Liberation Sans", Verdana, Tahoma, Arial, Helvetica, sans-serif;
}

/* Header part -- contains navigation buttons and day names. */

.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
    text-align: center;    /* They are the navigation buttons */
    padding: 2px;
    background: #D5D9DC;
    color: #00458E;
    font-size: 0.875em;
}

.calendar .nav {
    background: #D5D9DC;
    color: #00458E;
    font-size: 0.875em;
}

.calendar thead .title { /* This holds the current "month, year" */
    font-weight: bold;      /* Pressing it will take you to the current date */
    font-size: 0.875em;
    text-align: center;
    background: #506D91;
    color: #FFF;
    padding: 2px;
}

.calendar thead .headrow { /* Row <TR> containing navigation buttons */
    background: #00458E;
    color: #00458E;
}

.calendar thead .daynames { /* Row <TR> containing the day names */
    background: #D7DFE8;
    color: #00458E;
}
.calendar thead .daynames td {
    border-top: 1px solid #96ABC4;
}

.calendar thead .name { /* Cells <TD> containing the day names */
    border-bottom: 1px dotted #96ABC4;
    padding: 2px;
    text-align: center;
    color: #00458E;
    font-size: 0.75em;
}

.calendar thead .weekend { /* How a weekend day name shows in header */
    color: #600;
}

.calendar thead .hilite { /* How do the buttons in header appear when hover */
    background: #E3E6E8;
    color: #006ADA;
    padding: 2px;
}
.calendar thead .weekend.hilite {
    color: #800;
}

.calendar thead .active { /* Active (pressed) buttons in header */
    border: 1px solid #006ADA;
    padding: 1px;
}

/* The body part -- contains all the days in month. */

.calendar tbody .day { /* Cells <TD> containing month days dates */
    width: 2em;
    background: #F1F2F3;
    color: #00458E;
    text-align: right;
    padding: 2px;
    font-size: 0.875em;
}
.calendar tbody .day.othermonth {
    font-size: 0.75em;
    color: #616161;
}
.calendar tbody .day.othermonth.oweekend {
    color: #FF6161;
}

.calendar table .wn {
    padding: 2px 2px 2px 1px;
    border-right: 1px dotted #96ABC4;
    background: #D7DFE8;
    color: #000;
    font-size: 0.75em;
}
.calendar thead .name.wn {
    border-bottom: 1px dotted #96ABC4;
    padding: 2px;
}

.calendar tbody td {
    font-size: 0.875em;
}

.calendar tbody .rowhilite td {
    background: #FAFBFC;
}
/*.calendar tbody .rowhilite td.wn {
  background: #eef;
}*/

.calendar tbody td.hilite { /* Hovered cells <TD> */
    padding: 2px;
    background: #FFF;
    color: #006ADA;
    /*border: 1px solid #006ADA;*/
}

.calendar tbody td.active { /* Active (pressed) cells <TD> */
    border: 1px solid #006ADA;
    padding: 1px;
}

.calendar tbody td.selected { /* Cell showing today date */
    font-weight: bold;
    border: 1px solid #96ABC4;
}

.calendar tbody td.weekend { /* Cells showing weekend days */
    color: #600;
}

.calendar tbody td.today { /* Cell showing selected date */
    font-weight: bold;
    border: 1px dotted #96ABC4;
}

.calendar tbody .disabled {
    color: #616161;
}

.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
    visibility: hidden;
}

.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
    display: none;
}

/* The footer part -- status bar and "Close" button */

.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
    text-align: center;
}

.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
    background-color: #D7DFE8;
    color: #2C3D51;
    border-top: 1px solid #96ABC4;
    padding: 1px 5px;
    font-size: 0.75em;
    text-align: left;
}

.calendar tfoot .hilite { /* Hover style for buttons in footer */
    background: #E3E6E8;
    color: #006ADA;
    padding: 2px;
}

.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
    border: 1px solid #006ADA;
    padding: 1px;
}

/* Combo boxes (menus that display months/years for direct selection) */

.calendar .combo {
    position: absolute;
    display: none;
    top: 0px;
    left: 0px;
    width: 4em;
    cursor: default;
    border: 1px solid #00458E;
    background: #D5D9DC;
    color: #00458E;
    font-size: 0.75em;
    z-index: 100;
}

.calendar .combo .label,
.calendar .combo .label-IEfix {
    text-align: center;
    padding: 1px;
}

.calendar .combo .label-IEfix {
    width: 4em;
}

.calendar .combo .hilite {
    background: #E3E6E8;
    color: #006ADA;
}

.calendar .combo .active {
    font-weight: bold;
    background: #D5D9DC;
    color: #006ADA;
}

.calendar td.time {
    border-top: 1px solid #96ABC4;
    padding: 3px 0;
    text-align: center;
    font-size: 0.875em;
    background-color: #F1F2F3;
}
.calendar td.time:first-child {
    text-align: right;
}

.calendar td.time .hour,
.calendar td.time .minute,
.calendar td.time .ampm {
    padding: 1px;
    background: #FAFBFC;
    color: #000;
    border: 1px solid #00458E;
}
.calendar td.time span.active {
    background: #FFF;
    border: 1px solid #006ADA;
    outline: 2px solid #FFF;
}
.calendar td.time span.hilite {
    background: #FFF;
    border: 1px solid #006ADA;
}

.calendar td.time .ampm {
    text-align: center;
}

.calendar td.time .colon {
    padding: 0px 2px 0px 3px;
}
