/* 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/calendar-views.css);

calendar-event-column {
    -moz-user-focus: normal;
}

/** Start time bar **/

.calendar-time-bar-label {
    margin: 2px 2px;
}

calendar-event-box[invitation-status="NEEDS-ACTION"],
calendar-editable-item[invitation-status="NEEDS-ACTION"],
calendar-month-day-box-item[invitation-status="NEEDS-ACTION"] {
    opacity: 0.5;
}

calendar-event-box[invitation-status="TENTATIVE"],
calendar-editable-item[invitation-status="TENTATIVE"],
calendar-month-day-box-item[invitation-status="TENTATIVE"],
calendar-event-box[status="TENTATIVE"],
calendar-editable-item[status="TENTATIVE"],
calendar-month-day-box-item[status="TENTATIVE"],
agenda-richlist-item[status="TENTATIVE"] {
    opacity: 0.5;
}

calendar-event-box[invitation-status="DECLINED"],
calendar-editable-item[invitation-status="DECLINED"],
calendar-month-day-box-item[invitation-status="DECLINED"],
calendar-event-box[status="CANCELLED"],
calendar-editable-item[status="CANCELLED"],
calendar-month-day-box-item[status="CANCELLED"],
agenda-richlist-item[status="CANCELLED"] {
    opacity: 0.5;
}

calendar-month-day-box-item[status="CANCELLED"] .calendar-color-box,
calendar-event-box[status="CANCELLED"] .calendar-color-box,
calendar-editable-item[status="CANCELLED"] .calendar-color-box,
agenda-richlist-item[status="CANCELLED"] .agenda-container-box {
    text-decoration: line-through;
}

/* Navigation controls for the views */
#calendar-nav-control {
    background-color: #e8e8e8;
    --calview-tabline-color: #0a84ff;
    --calview-border-color: #bdbdbd;
    --calview-border-bottom-color: #d2d2d2;
}

#view-deck {
    background-color: white;
    border-width: 0 0 0 1px;
}

.calview-tabs {
    -moz-box-align: stretch;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    position: static;
}

radio.calview[selected="true"] {
    background-color: #fff;
}

.view-header {
    margin-top: 3px;
    margin-bottom: 1px;
}

.navigation-bottombox {
    background-color: white;
}

.view-navigation-button {
    -moz-user-focus: normal;
    -moz-appearance: toolbarbutton;
    margin-top: 2px;
    margin-inline-start: 3px;
    margin-inline-end: 3px;
    margin-bottom: 0;
    min-width: 22px;
}

.today-navigation-button {
    margin-top: 2px;
    margin-bottom: 0;
    padding-top: 2px;
}

.view-navigation-button > .toolbarbutton-icon {
    margin: 1px;
}

@media (-moz-mac-yosemite-theme) {
    #calendar-nav-control:-moz-window-inactive {
        background: -moz-mac-chrome-inactive;
        --calview-border-bottom-color: hsl(0, 0%, 85%);
    }
}
