/* 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://lightning-common/skin/lightning.css);

.lightning-notification-bar {
    background-color: #baeeff;
    color: #000;
    border-bottom: 1px solid ThreeDDarkShadow;
    padding: 3px;
}

#calendarContent {
    color: -moz-DialogText;
    background-color: -moz-Dialog;
}

#calsidebar_splitter {
  border-inline-start: 1px solid var(--splitter-color);
  /* make only the splitter border visible */
  margin-inline-end: -5px;
}

/* Calendar list rules */
#calendar-panel {
    padding-bottom: 5px;
}

/* Lightning sidebar background in calendar and task mode */
#ltnSidebar {
  background-color: -moz-field;
}

/* Today pane button in status bar */
#calendar-status-todaypane-button,
#calendar-status-todaypane-button[checked="true"] {
  padding: 1px 2px 0 !important;
}

#calendar-status-todaypane-button[hideLabel] > stack {
  margin-top: -1px;
  margin-inline-start: 5px;
}

#calendar-status-todaypane-button > stack > .toolbarbutton-day-text {
  margin-top: 4px;
}

/* shift the today pane button label up by one pixel to center it */
#calendar-status-todaypane-button > .toolbarbutton-text {
  margin: 0 0 1px !important;
}

#calMinimonthBox {
  margin-top: 3px;
}

#calsidebar_splitter,
#today-splitter {
  min-width: 0;
  background-color: transparent;
}

#today-splitter {
  border-inline-end: 1px solid var(--splitter-color);
  margin-inline-start: -5px;
  position: relative;
}

#today-splitter.calendar-sidebar-splitter:-moz-lwtheme {
  background-image: none;
}

#imip-view-toolbar {
  color: -moz-dialogText;
}

@media (-moz-windows-default-theme) {
  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button,
  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button > .toolbarbutton-menubutton-button,
  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button > .toolbarbutton-menubutton-dropmarker {
    border-color: var(--toolbarbutton-active-bordercolor);
    background-image: linear-gradient(-moz-dialog, -moz-dialog);
  }

  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button:not(:active):hover,
  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button:-moz-any(:hover,[open="true"]) >
    .toolbarbutton-menubutton-button,
  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button:hover >
    .toolbarbutton-menubutton-dropmarker {
    background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)),
                      linear-gradient(-moz-dialog, -moz-dialog);
  }

  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button:not([type="menu-button"]):hover:active,
  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button[type="menu-button"] >
    .toolbarbutton-menubutton-button:hover:active,
  #imip-view-toolbar > .toolbarbutton-1.msgHeaderView-button[open="true"] >
    .toolbarbutton-menubutton-dropmarker {
    background-image: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .15)),
                      linear-gradient(-moz-dialog, -moz-dialog);
  }
}

menupopup[anonid="years-popup"] .scrollbutton-up,
menupopup[anonid="years-popup"] .scrollbutton-down {
  -moz-appearance: none;
  border: 1px solid transparent;
  padding: 1px;
}

menupopup[anonid="years-popup"] .scrollbutton-up:not([disabled="true"]):hover,
menupopup[anonid="years-popup"] .scrollbutton-down:not([disabled="true"]):hover {
  margin: 1px;
  border: 1px inset ThreeDFace;
  padding-top: 2px;
  padding-bottom: 1px;
  padding-inline-start: 2px;
  padding-inline-end: 1px;
}
