/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

@import url(chrome://calendar-common/skin/today-pane.css);

#today-pane-panel {
  border-bottom: 1px solid ThreeDShadow;
}

#today-pane-panel:-moz-lwtheme {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset;
}

#today-pane-panel:-moz-lwtheme > sidebarheader {
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 19px);
}

#today-pane-splitter {
  -moz-appearance: none;
  border-bottom: 3px double ThreeDShadow;
  /* splitter grip area */
  height: 5px;
  /* make only the splitter border visible */
  margin-top: -3px;
  /* because of the negative margin needed to make the splitter visible */
  position: relative;
  z-index: 10;
}

.today-pane-cycler {
  padding-inline-end: 0 !important;
}

.today-pane-cycler {
  list-style-image: url("chrome://calendar-common/skin/today-pane-cycler.svg#normal");
}

.today-pane-cycler:-moz-lwtheme-brighttext {
  list-style-image: url("chrome://calendar-common/skin/today-pane-cycler.svg#inverted");
}

.today-pane-cycler[dir="prev"]:-moz-locale-dir(ltr) > .toolbarbutton-icon,
.today-pane-cycler[dir="next"]:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

.today-subpane {
  border-color: ThreeDShadow;
}

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

.miniday-nav-buttons {
  max-width: 19px;
}

#next-day-button > .toolbarbutton-icon {
  -moz-appearance: button-arrow-next;
}

#previous-day-button > .toolbarbutton-icon {
  -moz-appearance: button-arrow-previous;
}

#today-button {
  max-width: none;
}

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

#miniday-dropdown-button {
  max-width: 18px;
}

.today-closebutton {
  list-style-image: url("chrome://global/skin/icons/close.png");
  -moz-appearance: none;
  border: none !important;
  padding: 2px;
}

.today-closebutton:not([selected]):not(:hover):-moz-lwtheme-brighttext {
  -moz-image-region: rect(0 80px 16px 64px);
}

.today-closebutton > .toolbarbutton-icon {
  margin-inline-end: 0px; /* override toolkit's default value */
}

#todaypane-new-event-button {
  list-style-image: url(chrome://calendar-common/skin/calendar-toolbar.svg#newevent);
}

#todaypane-new-event-button[disabled="true"] > .toolbarbutton-icon {
  opacity: 0.4;
}

#todaypane-new-event-button > .toolbarbutton-icon {
  width: 18px;
  height: 18px;
  margin: -1px;
}
