/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Sun Microsystems code.
 *
 * The Initial Developer of the Original Code is Oracle Corporation
 * Portions created by the Initial Developer are Copyright (C) 2005
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Berend Cornelius <berend.cornelius@sun.com>
 *   Simon Paquet <bugzilla@babylonsounds.com>
 *   Lars Wohlfahrt <thetux.moz@googlemail.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

.today-subpane {
  border-color: ThreeDShadow;
  border-style: solid;
  border-width: 1px 0;
  margin-bottom: 3px;
  padding: 0px;
}

#buttonspacer {
  width: 5px;
}

#today-pane-panel {
  background-color: -moz-Dialog;
  color: -moz-DialogText;
}

#today-pane-panel:-moz-lwtheme {
  background-color: transparent;
  border-top: 1px solid ThreeDShadow;
}

#agenda-panel:-moz-lwtheme > vbox,
#today-pane-splitter:-moz-lwtheme,
#todo-tab-panel:-moz-lwtheme {
  background-color: -moz-Dialog;
}

#today-pane-panel:-moz-lwtheme > vbox {
  text-shadow: none;
}

#mini-day-image {
  background-image: -moz-linear-gradient(transparent, transparent 48%,
                    rgba(0, 0, 0, .02) 52%, rgba(0, 0, 0, .1));
}

#mini-day-box,
#today-minimonth-box {
  background-color: -moz-field;
}

#weekdayNameContainer {
  font-family: Trebuchet MS, Lucida Grande, Arial, Helvetica;
  padding-top: 4px;
  font-weight: bold;
  font-size: 18px;
}

.monthlabel {
  -moz-margin-end: 0px;
}

.dateValue {
  font-family: Arial, Helvetica, Trebuchet MS, Lucida Grande, sans-serif;
  margin-top: 0px;
  padding-top: 0px;
  font-size: 36px;
  font-weight: bold;
}

.miniday-nav-buttons {
  margin-top: 2px;
  list-style-image: url("chrome://calendar/skin/widgets/nav-arrow.svg");
  min-width: 19px;
  -moz-user-focus: normal;
}

#previous-day-button:-moz-locale-dir(ltr),
#next-day-button:-moz-locale-dir(rtl) {
  -moz-transform: scaleX(-1);
}

#today-button {
  list-style-image: url("chrome://calendar/skin/widgets/nav-today.svg");
}

.miniday-nav-buttons[disabled] {
  opacity: .3;
}

.miniday-nav-buttons > .toolbarbutton-icon  {
  margin: 1px;
}

#miniday-dropdown-button {
  margin: 2px;
  -moz-user-focus: normal;
}

#miniday-dropdown-button > .toolbarbutton-icon,
#miniday-dropdown-button > .toolbarbutton-text,
  .miniday-nav-buttons > .toolbarbutton-text  {
  display: none;
}

#miniday-dropdown-button > .toolbarbutton-menu-dropmarker {
    -moz-padding-start: 0;
}

.today-closebutton {
  list-style-image: url("chrome://global/skin/icons/close-sidebar.png") !important;
  -moz-image-region: rect(0, 16px, 16px, 0);
}

.today-closebutton:hover {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

.today-closebutton:hover:active {
  -moz-image-region: rect(0, 48px, 16px, 32px);
}

.today-closebutton > .toolbarbutton-text {
   display: none;
}

#agenda-toolbar {
  border: none;
  padding: 1px;
  background-color: -moz-dialog;
  color: -moz-dialogtext;
}

#todaypane-new-event-button {
  -moz-user-focus: normal;
}

#todaypane-new-event-button > .toolbarbutton-text {
 -moz-padding-start: 5px;
}

#todaypane-new-event-button {
  list-style-image: url("chrome://calendar/skin/toolbar-small.png");
  -moz-image-region: rect(0px 24px 24px 0px);
}
#todaypane-new-event-button:active {
  -moz-image-region: rect(24px 24px 48px 0px);
}
#todaypane-new-event-button[disabled="true"] {
  -moz-image-region: rect(48px 24px 72px 0px);
}

#agenda-listbox {
  -moz-user-focus: normal;
  border: none;
  margin: 3px;
}

agenda-checkbox-richlist-item {
  -moz-binding: url("chrome://calendar/content/agenda-listbox.xml#agenda-checkbox-richlist-item");
  -moz-user-focus: normal;
}

agenda-richlist-item {
  -moz-binding: url("chrome://calendar/content/agenda-listbox.xml#agenda-richlist-item");
  -moz-user-focus: normal;
  overflow: hidden;
}

agenda-allday-richlist-item {
  -moz-binding: url("chrome://calendar/content/agenda-listbox.xml#agenda-allday-richlist-item");
  -moz-user-focus: normal;
  overflow: hidden;
}

.agenda-container-box {
  border-bottom: 1px dotted #C0C0C0;
  -moz-margin-start: 4px;
  -moz-margin-end: 4px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.agenda-allday-container-box {
  border-bottom: 1px dotted #C0C0C0;
  -moz-margin-start: 4px;
  -moz-margin-end: 4px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.agenda-container-box[selected="true"],
.agenda-allday-container-box[selected="true"],
.agenda-checkbox[selected="true"],
.agenda-container-box[selected="true"][current="true"],
.agenda-allday-container-box[selected="true"][current="true"],
.agenda-checkbox[selected="true"][current="true"] {
  background-image: url("chrome://mozapps/skin/extensions/itemEnabledFader.png");
  background-color: #FDF5A0;
  color: #000000;
}

.agenda-container-box[current="true"],
.agenda-alldaycontainer-box[current="true"],
.agenda-checkbox[current="true"],
.agenda-container-box[selected="true"][current="true"][disabled="true"],
.agenda-allday-container-box[selected="true"][current="true"][disabled="true"],
.agenda-checkbox[selected="true"][current="true"][disabled="true"] {
  background-image: url("chrome://mozapps/skin/extensions/itemEnabledFader.png");
  background-color: #DFEAF4;
}

.agenda-container-box[selected="true"][disabled="true"],
.agenda-allday-container-box[selected="true"][disabled="true"],
.agenda-checkbox[selected="true"][disabled="true"] {
  background-image: none;
  color: -moz-dialogText;
  background-color: -moz-dialog;
}

.agenda-event-title {
  margin-top: 0px;
}

.agenda-event-start {
  margin-bottom: 0px;
}

.agenda-new-date {
  width: 15px;
  height: 15px;
  border: 1px solid grey;
  cursor: pointer;
}

.agenda-calendar-image {
  list-style-image: url("chrome://calendar/skin/calendar-overlay.png");
  -moz-image-region: rect(0px 10px 10px 0px);
  margin-top: 3px;
  -moz-margin-start: 4px;
  width: 10px;
  height: 10px;
}

.agenda-multiDayEvent-image {
  list-style-image: url("chrome://calendar/skin/calendar-overlay.png");
  -moz-margin-start: 3px;
  width: 10px;
  height: 10px;
  display: none;
}

.agenda-multiDayEvent-image[type="start"] {
  -moz-image-region: rect(0px 20px 10px 10px);
  display: -moz-box;
}

.agenda-multiDayEvent-image[type="continue"] {
  -moz-image-region: rect(0px 30px 10px 20px);
  display: -moz-box;
}

.agenda-multiDayEvent-image[type="end"] {
  -moz-image-region: rect(0px 40px 10px 30px);
  display: -moz-box;
}
