/* 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/. */

/* ::: new tab buttons ::: */
#calendar-tab-button,
#newMsgButton-calendar-menuitem {
    list-style-image: url(chrome://calendar-common/skin/icons/calendar-tab.svg);
    -moz-image-region: auto;
}

#task-tab-button,
#newMsgButton-task-menuitem {
    list-style-image: url(chrome://calendar-common/skin/icons/task-tab.svg);
    -moz-image-region: auto;
}

/* ::: tab icons ::: */
.icon-holder[type="calendar"],
.tabmail-tab[type="calendar"] {
    list-style-image: url(chrome://calendar-common/skin/icons/calendar-tab.svg);
    -moz-image-region: auto;
}

.icon-holder[type="tasks"],
.tabmail-tab[type="tasks"] {
    list-style-image: url(chrome://calendar-common/skin/icons/task-tab.svg);
    -moz-image-region: auto;
}

:root[lwt-tree] #ltnSidebar {
    background-color: var(--sidebar-background-color);
    color: var(--sidebar-text-color);
}

/* avoids contributing to the min width when Lightning is not selected */
#calendarTabPanel:not([selected]) {
  visibility: collapse;
}

/* Today pane button in status bar */
#calendar-status-todaypane-button,
#calendar-status-todaypane-button[checked="true"] {
  min-width: 0;
  min-height: 0;
  margin: 1px 0 0;
  -moz-appearance: none;
  border-radius: var(--toolbarbutton-border-radius);
  border: 1px solid transparent;
}

#calendar-status-todaypane-button:hover {
  background: var(--toolbarbutton-hover-background);
  border-color: var(--toolbarbutton-hover-bordercolor);
  box-shadow: var(--toolbarbutton-hover-boxshadow);
}

:root[lwthemetextcolor="bright"] #calendar-status-todaypane-button:hover {
  background: rgba(255, 255, 255, .25);
  border-color: rgba(255, 255, 255, .5);
}

#calendar-status-todaypane-button:hover:active {
  background: var(--toolbarbutton-active-background);
  border-color: var(--toolbarbutton-active-bordercolor);
  box-shadow: var(--toolbarbutton-active-boxshadow);
  transition-duration: 10ms;
}

:root[lwthemetextcolor="bright"] #calendar-status-todaypane-button:hover:active {
  background: rgba(255, 255, 255, .4);
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 0 rgba(255, 255, 255, .4) inset;
}

#calendar-status-todaypane-button > stack > .toolbarbutton-icon-begin {
    list-style-image: url(chrome://calendar-common/skin/icons/pane.svg);
    width: 16px;
    height: 16px;
    -moz-context-properties: fill, fill-opacity;
    fill: currentColor;
    fill-opacity: var(--toolbarbutton-icon-fill-opacity);
}

#calendar-status-todaypane-button > stack > .toolbarbutton-day-text {
  text-align: center;
  margin-inline-start: 0;
  margin-bottom: -4px;
  font-size: 7pt;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-shadow: none;
  background-color: transparent;
}

#calendar-status-todaypane-button[hideLabel] > .toolbarbutton-text,
#calendar-status-todaypane-button[hideLabel] > .toolbarbutton-icon-end {
  display: none;
}

#calendar-status-todaypane-button > .toolbarbutton-icon-end {
  -moz-context-properties: fill;
  fill: currentColor;
  list-style-image: url(chrome://lightning-common/skin/todayButton-arrow.svg);
}

#calendar-status-todaypane-button[checked="true"] > .toolbarbutton-icon-end {
  transform: scaleY(-1);
}

/* iMIP notification bar */
#imip-bar > image {
  -moz-context-properties: fill;
  fill: currentColor;
  list-style-image: url(chrome://calendar-common/skin/icons/imip-bar.svg);
}

.imipMoreButton > .toolbarbutton-icon {
  display: none;
}

/* Write button */
#newMsgButton-mail-menuitem {
  list-style-image: url(chrome://messenger/skin/icons/newmsg.svg);
}

.imipAcceptRecurrencesButton,
.imipAcceptButton {
    list-style-image: url(chrome://calendar-common/skin/icons/complete.svg);
}

.imipDeclineCounterButton,
.imipDeclineRecurrencesButton,
.imipDeclineButton {
    list-style-image: url(chrome://calendar-common/skin/icons/decline.svg);
}

.imipTentativeRecurrencesButton,
.imipTentativeButton {
    list-style-image: url(chrome://calendar-common/skin/icons/tentative.svg);
}

.imipDetailsButton {
    list-style-image: url(chrome://calendar-common/skin/icons/find.svg);
}

.imipAddButton {
    list-style-image: url(chrome://calendar-common/skin/icons/newevent.svg);
}

.imipRescheduleButton,
.imipUpdateButton {
    list-style-image: url(chrome://calendar-common/skin/icons/synchronize.svg);
}

.imipDeleteButton {
    list-style-image: url(chrome://calendar-common/skin/icons/delete.svg);
}

.imipReconfirmButton {
    list-style-image: url(chrome://calendar-common/skin/icons/priority.svg);
}

.imipAcceptLabel {
    font-weight: bold;
    font-style: italic;
}

#calsidebar_splitter,
#today-splitter {
  /* splitter grip area */
  width: 5px;
  border-width: 0;
  min-width: 0;
  margin-top: 0;
  /* because of the negative margin needed to make the splitter visible */
  position: relative;
  z-index: 10;
  transition: border-width .3s ease-in;
}

#calsidebar_splitter[state="collapsed"] {
  border-inline-start: 1px solid transparent;
}

#calsidebar_splitter[state="collapsed"]:hover {
  border-inline-start: 4px solid highlight;
}
