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

#calendar-event-dialog,
#calendar-task-dialog {
    padding: 0px;
}

#yearly-period-of-label,
label.label {
    text-align: right;
}

#item-calendar,
#item-categories,
#item-repeat,
#item-alarm,
.datepicker-text-class {
    min-width: 12em;
}

/*--------------------------------------------------------------------
 *   Event dialog keep duration button
 *-------------------------------------------------------------------*/

#keepduration-button {
    list-style-image: url(chrome://calendar-common/skin/calendar-event-dialog.png);
    -moz-image-region: rect(0px 147px 24px 140px);
    padding-top: 3px;
    padding-bottom: 3px;
    -moz-margin-start: -3px;
    margin-bottom: -15px;
    position: relative;
    -moz-user-focus: normal;
}

#keepduration-button[keep="true"] {
    -moz-image-region: rect(0px 139px 24px 132px);
}

#keepduration-button[disabled="true"] {
    -moz-image-region: rect(0px 163px 24px 156px);
}

#keepduration-button[keep="true"][disabled="true"] {
    -moz-image-region: rect(0px 155px 24px 148px);
}

#keepduration-button > label {
    display: none;
}

.keepduration-link-image {
    list-style-image: url(chrome://calendar-common/skin/calendar-event-dialog.png);
    -moz-margin-start: -1px;
}

#link-image-top {
    -moz-image-region: rect(7px 174px 14px 164px);
    margin-top: 0.6em;
}

#link-image-top[keep="true"]{
    -moz-image-region: rect(0px 174px 7px 164px);
}

#link-image-bottom {
    -moz-image-region: rect(0px 184px 7px 174px);
    margin-bottom: 0.6em;
}

/*--------------------------------------------------------------------
 *   Event dialog statusbar images
 *-------------------------------------------------------------------*/

.cal-statusbar-1 {
    -moz-box-orient: vertical;
    min-width: 0px;
    list-style-image: url("chrome://calendar-common/skin/calendar-event-dialog.png");
}

/*--------------------------------------------------------------------
 *   Event dialog statusbarpanels
 *-------------------------------------------------------------------*/

#status-privacy,
#status-priority,
#status-status,
#status-freebusy {
    overflow: hidden;
}

/*--------------------------------------------------------------------
 *   priority "low" image
 *-------------------------------------------------------------------*/

#image-priority-low {
    -moz-image-region: rect(0px 100px 16px 84px);
}

/*--------------------------------------------------------------------
 *   priority "normal" image
 *-------------------------------------------------------------------*/

#image-priority-normal {
    -moz-image-region: rect(0px 116px 16px 100px);
}

/*--------------------------------------------------------------------
 *   priority "high" image
 *-------------------------------------------------------------------*/

#image-priority-high {
    -moz-image-region: rect(0px 132px 16px 116px);
}

/*--------------------------------------------------------------------
 *   Recurrence dialog preview border
 *-------------------------------------------------------------------*/
#preview-border {
    border: none;
    padding: 0px;
}

/*--------------------------------------------------------------------
 *   freebusy
 *-------------------------------------------------------------------*/
#freebusy-container {
    overflow: hidden;
    min-width: 100px;
}

#freebusy-grid {
    min-width: 1px;
}

#calendar-summary-dialog {
    min-width: 35em;
}

listbox[disabled="true"] {
    color: -moz-FieldText;
}

daypicker-weekday {
    margin-top: 2px;
}

daypicker-monthday {
    margin-top: 2px;
}

.headline {
    font-weight: bold;
}

.headline[align=end],
.headline[align=right]{
    text-align: right;
}

.default-spacer {
    width: 1em;
    height: 1em;
}

.default-indent {
    -moz-margin-start: 1.5em;
}

/*--------------------------------------------------------------------
 *   Attendees Dialog
 *-------------------------------------------------------------------*/

.listbox-noborder {
    -moz-appearance: none;
    margin: 0px 0px;
    border: 1px solid #8D8E90;
}

dialog[systemcolors] .listbox-noborder {
    border: 1px solid ThreeDShadow;
}

#timebar > .listbox-noborder {
    border-bottom-style: none;
}

#freebusy-grid > .listbox-noborder {
    border-top-color: transparent;
}

/* remove on Windows the double border with the splitter */
@media (-moz-windows-theme) {
    #attendees-list > .listbox-noborder {
        -moz-border-end-style: none;
    }
    #timebar > .listbox-noborder,
    #freebusy-grid > .listbox-noborder {
        -moz-border-start-style: none;
    }
}

.selection-bar {
    background-color: rgba(0, 128, 128, .2);
    border: 1px solid #008080;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.freebusy-container {
    overflow: hidden;
    clip: rect(0px 0px 0px 0px);
}

.freebusy-listitem {
    border-width: 0px;
}

freebusy-day {
    -moz-margin-end: 2px;
    -moz-border-start: 1px solid #8D8E90;
    -moz-border-end: 1px solid #8D8E90;
    border-bottom: 1px solid #8D8E90;
}

dialog[systemcolors] freebusy-day {
    -moz-border-start: 1px solid ThreeDShadow;
    -moz-border-end: 1px solid ThreeDShadow;
    border-bottom: 1px solid ThreeDShadow;
}

freebusy-day:first-child,
dialog[systemcolors] freebusy-day:first-child {
    -moz-border-start: 1px solid transparent;
}

freebusy-day:last-child,
dialog[systemcolors] freebusy-day:last-child {
    -moz-border-end: 1px solid transparent;
}

/* negative margins to clear freebusy-day's border and margin */
freebusy-day > box {
    -moz-margin-start: -1px;
    -moz-margin-end: -3px;
}

.freebusy-content {
    overflow: hidden;
    clip: rect(0px 0px 0px 0px);
}

/* -moz-margin-end 2px is needed to take border-right from the grid elements into account */
.freebusy-timebar-title {
    -moz-margin-end: 2px;
    -moz-padding-start: 2px;
}

.freebusy-timebar-hour {
    -moz-padding-start: 2px;
    -moz-padding-end: 3px;
    margin-top: 2px;
    margin-bottom: 3px;
}

.freebusy-timebar-hour[scheduled="true"] {
    /* the 'sechuled'-attribute is used in the timebar to indicate
     which hours are affected of the currently schedued event.
     since we added the selection-bar this is no longer necessary
     but we keep the possibity to decorate those hours if it should
     become beneficial.
     text-decoration: underline;
   */
}

.freebusy-grid {
    -moz-border-start: 1px solid #BDBEC0;
    background-color: #E09EBD;
    color: #E09EBD;
    min-height: 16px;
    -moz-padding-start: 1px;
}

dialog[systemcolors] .freebusy-grid {
    -moz-border-start: 1px solid ThreeDShadow;
}

.freebusy-grid[state="busy"] {
    background-color: #153E7E;
    color: #153E7E;
}

.freebusy-grid[state="busy_tentative"] {
    background-color: #1589FF;
    color: #1589FF;
}

.freebusy-grid[state="busy_unavailable"] {
    background-color: #4E387E;
    color: #4E387E;
}

.freebusy-grid[state="free"] {
    background-color: #EBEBE4;
    color: #EBEBE4;
}

.freebusy-grid:first-child,
dialog[systemcolors] .freebusy-grid:first-child {
    -moz-border-start: 1px solid transparent;
}

.freebusy-grid.last-in-day {
    -moz-border-end: 1px solid #8D8E90;
    -moz-margin-end: 2px;
}

dialog[systemcolors] .freebusy-grid.last-in-day {
    -moz-border-end: 1px solid ThreeDShadow;
}

#dialog-box {
    padding-top: 8px;
    padding-bottom: 10px;
    -moz-padding-start: 8px;
    -moz-padding-end: 10px;
}

#addressingWidget {
    -moz-user-focus: none;
}

#typecol-addressingWidget {
    min-width: 9em;
    border-right: 1px solid #CACAFF;
}

/* This applies to rows of the attendee-list and the freebusy-grid */
.addressingWidgetItem,
.dummy-row {
    border: none !important;
    background-color: inherit !important;
    color: inherit !important;

    /* we set the minimal height to the height of the
     largest icon [the usertype-icon in this case] to
     ensure that the rows of the freebusy-grid and
     the attendee-list always have the same height,
     regardless of the font size. */
    min-height: 16px;
}

.addressingWidgetCell {
    border-bottom: 1px solid #CACAFF;
    padding: 0px;
}

dialog[systemcolors] .addressingWidgetCell {
    border-bottom: 1px solid ThreeDShadow;
}

.addressingWidgetCell:first-child {
    border-top: none;
}

.dummy-row-cell:first-child {
    border-top: none;
}

.zoom-in-icon {
    margin: 3px 3px;
    list-style-image: url(chrome://calendar/skin/calendar-event-dialog-attendees.png);
    -moz-image-region: rect(0px 97px 14px 84px);
}
.zoom-in-icon[disabled="true"] {
    -moz-image-region: rect(14px 97px 28px 84px);
}

.zoom-out-icon {
    margin: 3px 3px;
    list-style-image: url(chrome://calendar/skin/calendar-event-dialog-attendees.png);
    -moz-image-region: rect(0px 110px 14px 97px);
}
.zoom-out-icon[disabled="true"] {
    -moz-image-region: rect(14px 110px 28px 97px);
}

.left-icon {
    margin: 3px 3px;
    list-style-image: url(chrome://calendar/skin/calendar-event-dialog-attendees.png);
    -moz-image-region: rect(0px 124px 14px 110px);
}
.left-icon[disabled="true"] {
    -moz-image-region: rect(14px 124px 28px 110px);
}

.right-icon {
    margin: 3px 3px;
    list-style-image: url(chrome://calendar/skin/calendar-event-dialog-attendees.png);
    -moz-image-region: rect(0px 138px 14px 124px);
}
.right-icon[disabled="true"] {
    -moz-image-region: rect(14px 138px 28px 124px);
}

.legend {
    width: 3em;
    height: 1em;
    border-top: 1px solid #A1A1A1;
    border-right: 1px solid #C3C3C3;
    border-bottom: 1px solid #DDDDDD;
    border-left: 1px solid #C3C3C3;
}

.legend[status="FREE"] {
    background-color: #EBEBE4;
    color: #EBEBE4;
}

.legend[status="BUSY"] {
    background-color: #153E7E;
    color: #153E7E;
}

.legend[status="BUSY_TENTATIVE"] {
    background-color: #1589FF;
    color: #1589FF;
}

.legend[status="BUSY_UNAVAILABLE"] {
    background-color: #4E387E;
    color: #4E387E;
}

.legend[status="UNKNOWN"] {
    background-color: #E09EBD;
    color: #E09EBD;
}

#content-frame {
    border-left: 1px solid ThreeDDarkShadow;
    border-right: 1px solid ThreeDLightShadow;
    min-width: 10px;
    min-height: 10px;
    height: 400px;
}

.attendees-list-listbox > listboxbody { 
    overflow-y: hidden !important;
}

.selection-bar-left {
    width: 3px;
    cursor: w-resize;
}

.selection-bar-right {
    width: 3px;
    cursor: e-resize;
}

.selection-bar-spacer {
    cursor: grab;
}

.checkbox-no-label > .checkbox-label-box {
    display: none;
}
