/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Sun Microsystems code.
 *
 * The Initial Developer of the Original Code is
 *   Philipp Kewisch <mozilla@kewis.ch>
 * Portions created by the Initial Developer are Copyright (C) 2008
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Garth Smedley <garths@oeone.com>
 *   Mike Potter <mikep@oeone.com>
 *   Karl Guertin <grayrest@grayrest.com>
 *   Colin Phillips <colinp@oeone.com>
 *   ArentJan Banck <ajbanck@planet.nl>
 *   Eric Belhaire <belhaire@ief.u-psud.fr>
 *   Mark Swaffer <swaff@fudo.org>
 *   Christopher Cook <tangent@intraplanar.net>
 *   Kevin Gerich <webmail@kmgerich.com>
 *   Matthew Willis <mattwillis@gmail.com>
 *   Simon Paquet <bugzilla@babylonsounds.com>
 *   Berend Cornelius <berend.cornelius@sun.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/*--------------------------------------------------------------------
 *   Primary toolbar buttons
 *-------------------------------------------------------------------*/

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

.cal-toolbarbutton-1[type="menu"] {
    -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-vertical");
}

toolbarbutton[type="menu-button"] {
    -moz-box-orient: horizontal;
}

toolbarbutton[type="menu-button"] > toolbarbutton {
    -moz-box-orient: vertical !important;
}

.cal-toolbarbutton-1,
.cal-toolbarbutton-menubutton-button {
   padding-top: 5px;
   padding-bottom: 6px;
   -moz-padding-start: 4px;
   -moz-padding-end: 5px;
}

.cal-toolbarbutton-1:hover:active:not([disabled]),
.cal-toolbarbutton-1[open="true"],
.cal-toolbarbutton-menubutton-button:hover:active:not([disabled]),
.cal-toolbarbutton-menubutton-button[open="true"] {
   padding-top: 6px;
   padding-bottom: 5px;
   -moz-padding-start: 5px;
   -moz-padding-end: 4px;
}
 
.cal-toolbarbutton-1[checked="true"] {
   padding-top: 6px !important;
   padding-bottom: 5px !important;
   -moz-padding-start: 5px !important;
   -moz-padding-end: 4px !important;
}
 
 
.toolbarbutton-menu-dropmarker {
   -moz-padding-start: 3px;
}

.cal-toolbarbutton-1 .toolbarbutton-icon {
    -moz-margin-end: 0px;
}

toolbar[mode="full"] .cal-toolbarbutton-1 {
    min-width: 55px;
}

/*--------------------------------------------------------------------
 *   Primary toolbar buttons - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] .cal-toolbarbutton-1 {
    -moz-box-orient: vertical;
    min-width: 0px;
    list-style-image: url("chrome://calendar/skin/toolbar-small.png");
}

/*--------------------------------------------------------------------
 *   Cut button
 *-------------------------------------------------------------------*/

#calendar-cut-button {
    -moz-image-region: rect(0px 192px 24px 168px);
}
#calendar-cut-button[disabled="true"],
#calendar-cut-button[disabled="true"]:hover,
#calendar-cut-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 192px 72px 168px);
}
#calendar-cut-button:hover {
    -moz-image-region: rect(24px 192px 48px 168px);
}

/*--------------------------------------------------------------------
 *   Cut button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-cut-button {
    -moz-image-region: rect(0px 128px 16px 112px);
}
toolbar[iconsize="small"] #calendar-cut-button[disabled="true"],
toolbar[iconsize="small"] #calendar-cut-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-cut-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 128px 48px 112px);
}
toolbar[iconsize="small"] #calendar-cut-button:hover {
    -moz-image-region: rect(16px 128px 32px 112px);
}

/*--------------------------------------------------------------------
 *   Copy button
 *-------------------------------------------------------------------*/

#calendar-copy-button {
    -moz-image-region: rect(0px 216px 24px 192px);
}
#calendar-copy-button[disabled="true"],
#calendar-copy-button[disabled="true"]:hover,
#calendar-copy-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 216px 72px 192px);
}
#calendar-copy-button:hover {
    -moz-image-region: rect(24px 216px 48px 192px);
}

/*--------------------------------------------------------------------
 *   Copy button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-copy-button {
    -moz-image-region: rect(0px 144px 16px 128px);
}
toolbar[iconsize="small"] #calendar-copy-button[disabled="true"],
toolbar[iconsize="small"] #calendar-copy-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-copy-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 144px 48px 128px);
}
toolbar[iconsize="small"] #calendar-copy-button:hover {
    -moz-image-region: rect(16px 144px 32px 128px);
}

/*--------------------------------------------------------------------
 *   Paste button
 *-------------------------------------------------------------------*/

#calendar-paste-button {
    -moz-image-region: rect(0px 240px 24px 216px);
}
#calendar-paste-button[disabled="true"],
#calendar-paste-button[disabled="true"]:hover,
#calendar-paste-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 240px 72px 216px);
}
#calendar-paste-button:hover {
    -moz-image-region: rect(24px 240px 48px 216px);
}

/*--------------------------------------------------------------------
 *   Paste button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-paste-button {
    -moz-image-region: rect(0px 160px 16px 144px);
}
toolbar[iconsize="small"] #calendar-paste-button[disabled="true"],
toolbar[iconsize="small"] #calendar-paste-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-paste-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 160px 48px 144px);
}
toolbar[iconsize="small"] #calendar-paste-button:hover {
    -moz-image-region: rect(16px 160px 32px 144px);
}

/*--------------------------------------------------------------------
 *   Choose date button
 *-------------------------------------------------------------------*/

#calendar-choose-date-button {
    -moz-image-region: rect(0px 432px 24px 408px);
}
#calendar-choose-date-button[disabled="true"],
#calendar-choose-date-button[disabled="true"]:hover,
#calendar-choose-date-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 432px 72px 408px);
}
#calendar-choose-date-button:hover {
    -moz-image-region: rect(24px 432px 48px 408px);
}

/*--------------------------------------------------------------------
 *   Choose date button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-choose-date-button {
    -moz-image-region: rect(0px 288px 16px 272px);
}
toolbar[iconsize="small"] #calendar-choose-date-button[disabled="true"],
toolbar[iconsize="small"] #calendar-choose-date-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-choose-date-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 288px 48px 272px);
}
toolbar[iconsize="small"] #calendar-choose-date-button:hover {
    -moz-image-region: rect(16px 288px 32px 272px);
}

/*--------------------------------------------------------------------
 *   delete event button
 *-------------------------------------------------------------------*/

#calendar-delete-button {
    -moz-image-region: rect(0px 72px 24px 48px);
}
#calendar-delete-button[disabled="true"],
#calendar-delete-button[disabled="true"]:hover,
#calendar-delete-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 72px 72px 48px);
}
#calendar-delete-button:hover {
    -moz-image-region: rect(24px 72px 48px 48px);
}

/*--------------------------------------------------------------------
 *   delete event button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-delete-button {
    -moz-image-region: rect(0px 48px 16px 32px);
}
toolbar[iconsize="small"] #calendar-delete-button[disabled="true"],
toolbar[iconsize="small"] #calendar-delete-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-delete-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 48px 48px 32px);
}
toolbar[iconsize="small"] #calendar-delete-button:hover {
    -moz-image-region: rect(16px 48px 32px 32px);
}

/*--------------------------------------------------------------------
 *   Print button
 *-------------------------------------------------------------------*/

#calendar-print-button {
    -moz-image-region: rect(0px 360px 24px 336px);
}
#calendar-print-button[disabled="true"],
#calendar-print-button[disabled="true"]:hover,
#calendar-print-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 360px 72px 336px);
}
#calendar-print-button:hover {
    -moz-image-region: rect(24px 360px 48px 336px);
}

/*--------------------------------------------------------------------
 *   Print button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-print-button {
    -moz-image-region: rect(0px 240px 16px 224px);
}
toolbar[iconsize="small"] #calendar-print-button[disabled="true"],
toolbar[iconsize="small"] #calendar-print-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-print-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 240px 48px 224px);
}
toolbar[iconsize="small"] #calendar-print-button:hover {
    -moz-image-region: rect(16px 240px 32px 224px);
}

/*--------------------------------------------------------------------
 *   Go To Today button
 *-------------------------------------------------------------------*/

#calendar-go-to-today-button {
    -moz-image-region: rect(0px 408px 24px 384px);
}
#calendar-go-to-today-button[disabled="true"],
#calendar-go-to-today-button[disabled="true"]:hover,
#calendar-go-to-today-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 408px 72px 384px);
}
#calendar-go-to-today-button:hover {
    -moz-image-region: rect(24px 408px 48px 384px);
}

/*--------------------------------------------------------------------
 *   Go To Today button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-go-to-today-button {
    -moz-image-region: rect(0px 272px 16px 256px);
}
toolbar[iconsize="small"] #calendar-go-to-today-button[disabled="true"],
toolbar[iconsize="small"] #calendar-go-to-today-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-go-to-today-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 272px 48px 256px);
}
toolbar[iconsize="small"] #calendar-go-to-today-button:hover {
    -moz-image-region: rect(16px 272px 32px 256px);
}

/*--------------------------------------------------------------------
 *   Remote Reload button
 *-------------------------------------------------------------------*/

#calendar-remote-reload-button {
    -moz-image-region: rect(0px 480px 24px 456px);
}
#calendar-remote-reload-button[disabled="true"],
#calendar-remote-reload-button[disabled="true"]:hover,
#calendar-remote-reload-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 480px 72px 456px);
}
#calendar-remote-reload-button:hover {
    -moz-image-region: rect(24px 480px 48px 456px);
}

/*--------------------------------------------------------------------
 *   Remote Reload button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-remote-reload-button {
    -moz-image-region: rect(0px 320px 16px 304px);
}
toolbar[iconsize="small"] #calendar-remote-reload-button[disabled="true"],
toolbar[iconsize="small"] #calendar-remote-reload-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-remote-reload-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 320px 48px 304px);
}
toolbar[iconsize="small"] #calendar-remote-reload-button:hover {
    -moz-image-region: rect(16px 320px 32px 304px);
}

/*--------------------------------------------------------------------
 *   new event button
 *-------------------------------------------------------------------*/

#calendar-new-event-button {
    -moz-image-region: rect(0px 24px 24px 0px);
}
#calendar-new-event-button[disabled="true"],
#calendar-new-event-button[disabled="true"]:hover,
#calendar-new-event-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 24px 72px 0px);
}
#calendar-new-event-button:hover {
    -moz-image-region: rect(24px 24px 48px 0px);
}

/*--------------------------------------------------------------------
 *   new event button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-new-event-button {
    -moz-image-region: rect(0px 16px 16px 0px);
}
toolbar[iconsize="small"] #calendar-new-event-button[disabled="true"],
toolbar[iconsize="small"] #calendar-new-event-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-new-event-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 16px 48px 0px);
}
toolbar[iconsize="small"] #calendar-new-event-button:hover {
    -moz-image-region: rect(16px 16px 32px 0px);
}

/*--------------------------------------------------------------------
 *   New Task button
 *-------------------------------------------------------------------*/

#calendar-new-task-button {
    -moz-image-region: rect(0px 384px 24px 360px);
}
#calendar-new-task-button[disabled="true"],
#calendar-new-task-button[disabled="true"]:hover,
#calendar-new-task-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 384px 72px 360px);
}
#calendar-new-task-button:hover {
    -moz-image-region: rect(24px 384px 48px 360px);
}

/*--------------------------------------------------------------------
 *   New Task button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-new-task-button {
    -moz-image-region: rect(0px 256px 16px 240px);
}
toolbar[iconsize="small"] #calendar-new-task-button[disabled="true"],
toolbar[iconsize="small"] #calendar-new-task-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-new-task-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 256px 48px 240px);
}
toolbar[iconsize="small"] #calendar-new-task-button:hover {
    -moz-image-region: rect(16px 256px 32px 240px);
}

/*--------------------------------------------------------------------
 *   edit event button
 *-------------------------------------------------------------------*/

#calendar-edit-button {
    -moz-image-region: rect(0px 48px 24px 24px);
}
#calendar-edit-button[disabled="true"],
#calendar-edit-button[disabled="true"]:hover,
#calendar-edit-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 48px 72px 24px);
}
#calendar-edit-button:hover {
    -moz-image-region: rect(24px 48px 48px 24px);
}

/*--------------------------------------------------------------------
 *   edit event button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-edit-button {
    -moz-image-region: rect(0px 32px 16px 16px);
}
toolbar[iconsize="small"] #calendar-edit-button[disabled="true"],
toolbar[iconsize="small"] #calendar-edit-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-edit-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 32px 48px 16px);
}
toolbar[iconsize="small"] #calendar-edit-button:hover {
    -moz-image-region: rect(16px 32px 32px 16px);
}

/*--------------------------------------------------------------------
 *   Unifinder button
 *-------------------------------------------------------------------*/

#calendar-unifinder-button {
    -moz-image-region: rect(0px 528px 24px 504px);
}
#calendar-unifinder-button[disabled="true"],
#calendar-unifinder-button[disabled="true"]:hover,
#calendar-unifinder-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 528px 72px 504px);
}
#calendar-unifinder-button:hover {
    -moz-image-region: rect(24px 528px 48px 504px);
}

/*--------------------------------------------------------------------
 *   Unifinder button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-unifinder-button {
    -moz-image-region: rect(0px 352px 16px 336px);
}
toolbar[iconsize="small"] #calendar-unifinder-button[disabled="true"],
toolbar[iconsize="small"] #calendar-unifinder-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-unifinder-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 352px 48px 336px);
}
toolbar[iconsize="small"] #calendar-unifinder-button:hover {
    -moz-image-region: rect(16px 352px 32px 336px);
}

/*--------------------------------------------------------------------
 *   Import button
 *-------------------------------------------------------------------*/

#calendar-import-button {
    -moz-image-region: rect(0px 264px 24px 240px);
}
#calendar-import-button[disabled="true"],
#calendar-import-button[disabled="true"]:hover,
#calendar-import-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 264px 72px 240px);
}
#calendar-import-button:hover {
    -moz-image-region: rect(24px 264px 48px 240px);
}

/*--------------------------------------------------------------------
 *   Import button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-import-button {
    -moz-image-region: rect(0px 176px 16px 160px);
}
toolbar[iconsize="small"] #calendar-import-button[disabled="true"],
toolbar[iconsize="small"] #calendar-import-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-import-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 176px 48px 160px);
}
toolbar[iconsize="small"] #calendar-import-button:hover {
    -moz-image-region: rect(16px 176px 32px 160px);
}

/*--------------------------------------------------------------------
 *   Export button
 *-------------------------------------------------------------------*/

#calendar-export-button {
    -moz-image-region: rect(0px 288px 24px 264px);
}
#calendar-export-button[disabled="true"],
#calendar-export-button[disabled="true"]:hover,
#calendar-export-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 288px 72px 264px);
}
#calendar-export-button:hover {
    -moz-image-region: rect(24px 288px 48px 264px);
}

/*--------------------------------------------------------------------
 *   Export button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-export-button {
    -moz-image-region: rect(0px 192px 16px 176px);
}
toolbar[iconsize="small"] #calendar-export-button[disabled="true"],
toolbar[iconsize="small"] #calendar-export-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-export-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 192px 48px 176px);
}
toolbar[iconsize="small"] #calendar-export-button:hover {
    -moz-image-region: rect(16px 192px 32px 176px);
}

/*--------------------------------------------------------------------
 *   Subscribe button
 *-------------------------------------------------------------------*/

#calendar-subscribe-button {
    -moz-image-region: rect(0px 312px 24px 288px);
}
#calendar-subscribe-button[disabled="true"],
#calendar-subscribe-button[disabled="true"]:hover,
#calendar-subscribe-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 312px 72px 288px);
}
#calendar-subscribe-button:hover {
    -moz-image-region: rect(24px 312px 48px 288px);
}

/*--------------------------------------------------------------------
 *   Subscribe button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-subscribe-button {
    -moz-image-region: rect(0px 208px 16px 192px);
}
toolbar[iconsize="small"] #calendar-subscribe-button[disabled="true"],
toolbar[iconsize="small"] #calendar-subscribe-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-subscribe-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 208px 48px 192px);
}
toolbar[iconsize="small"] #calendar-subscribe-button:hover {
    -moz-image-region: rect(16px 208px 32px 192px);
}

/*--------------------------------------------------------------------
 *   Publish button
 *-------------------------------------------------------------------*/

#calendar-publish-button {
    -moz-image-region: rect(0px 336px 24px 312px);
}
#calendar-publish-button[disabled="true"],
#calendar-publish-button[disabled="true"]:hover,
#calendar-publish-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 336px 72px 312px);
}
#calendar-publish-button:hover {
    -moz-image-region: rect(24px 336px 48px 312px);
}

/*--------------------------------------------------------------------
 *   Publish button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-publish-button {
    -moz-image-region: rect(0px 224px 16px 208px);
}
toolbar[iconsize="small"] #calendar-publish-button[disabled="true"],
toolbar[iconsize="small"] #calendar-publish-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-publish-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 224px 48px 208px);
}
toolbar[iconsize="small"] #calendar-publish-button:hover {
    -moz-image-region: rect(16px 224px 32px 208px);
}

/*--------------------------------------------------------------------
 *   edit event button
 *-------------------------------------------------------------------*/

#calendar-edit-button {
    -moz-image-region: rect(0px 48px 24px 24px);
}
#calendar-edit-button[disabled="true"],
#calendar-edit-button[disabled="true"]:hover,
#calendar-edit-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 48px 72px 24px);
}
#calendar-edit-button:hover {
    -moz-image-region: rect(24px 48px 48px 24px);
}

/*--------------------------------------------------------------------
 *   edit event button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-edit-button {
    -moz-image-region: rect(0px 32px 16px 16px);
}
toolbar[iconsize="small"] #calendar-edit-button[disabled="true"],
toolbar[iconsize="small"] #calendar-edit-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-edit-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 32px 48px 16px);
}
toolbar[iconsize="small"] #calendar-edit-button:hover {
    -moz-image-region: rect(16px 32px 32px 16px);
}

/*--------------------------------------------------------------------
 *   Unifinder button
 *-------------------------------------------------------------------*/

#calendar-unifinder-button {
    -moz-image-region: rect(0px 528px 24px 504px);
}
#calendar-unifinder-button[disabled="true"],
#calendar-unifinder-button[disabled="true"]:hover,
#calendar-unifinder-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 528px 72px 504px);
}
#calendar-unifinder-button:hover {
    -moz-image-region: rect(24px 528px 48px 504px);
}

/*--------------------------------------------------------------------
 *   Unifinder button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-unifinder-button {
    -moz-image-region: rect(0px 352px 16px 336px);
}
toolbar[iconsize="small"] #calendar-unifinder-button[disabled="true"],
toolbar[iconsize="small"] #calendar-unifinder-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-unifinder-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 352px 48px 336px);
}
toolbar[iconsize="small"] #calendar-unifinder-button:hover {
    -moz-image-region: rect(16px 352px 32px 336px);
}

/*--------------------------------------------------------------------
 *   Import button
 *-------------------------------------------------------------------*/

#calendar-import-button {
    -moz-image-region: rect(0px 264px 24px 240px);
}
#calendar-import-button[disabled="true"],
#calendar-import-button[disabled="true"]:hover,
#calendar-import-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 264px 72px 240px);
}
#calendar-import-button:hover {
    -moz-image-region: rect(24px 264px 48px 240px);
}

/*--------------------------------------------------------------------
 *   Import button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-import-button {
    -moz-image-region: rect(0px 176px 16px 160px);
}
toolbar[iconsize="small"] #calendar-import-button[disabled="true"],
toolbar[iconsize="small"] #calendar-import-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-import-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 176px 48px 160px);
}
toolbar[iconsize="small"] #calendar-import-button:hover {
    -moz-image-region: rect(16px 176px 32px 160px);
}

/*--------------------------------------------------------------------
 *   Export button
 *-------------------------------------------------------------------*/

#calendar-export-button {
    -moz-image-region: rect(0px 288px 24px 264px);
}
#calendar-export-button[disabled="true"],
#calendar-export-button[disabled="true"]:hover,
#calendar-export-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 288px 72px 264px);
}
#calendar-export-button:hover {
    -moz-image-region: rect(24px 288px 48px 264px);
}

/*--------------------------------------------------------------------
 *   Export button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-export-button {
    -moz-image-region: rect(0px 192px 16px 176px);
}
toolbar[iconsize="small"] #calendar-export-button[disabled="true"],
toolbar[iconsize="small"] #calendar-export-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-export-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 192px 48px 176px);
}
toolbar[iconsize="small"] #calendar-export-button:hover {
    -moz-image-region: rect(16px 192px 32px 176px);
}

/*--------------------------------------------------------------------
 *   Subscribe button
 *-------------------------------------------------------------------*/

#calendar-subscribe-button {
    -moz-image-region: rect(0px 312px 24px 288px);
}
#calendar-subscribe-button[disabled="true"],
#calendar-subscribe-button[disabled="true"]:hover,
#calendar-subscribe-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 312px 72px 288px);
}
#calendar-subscribe-button:hover {
    -moz-image-region: rect(24px 312px 48px 288px);
}

/*--------------------------------------------------------------------
 *   Subscribe button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-subscribe-button {
    -moz-image-region: rect(0px 208px 16px 192px);
}
toolbar[iconsize="small"] #calendar-subscribe-button[disabled="true"],
toolbar[iconsize="small"] #calendar-subscribe-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-subscribe-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 208px 48px 192px);
}
toolbar[iconsize="small"] #calendar-subscribe-button:hover {
    -moz-image-region: rect(16px 208px 32px 192px);
}

/*--------------------------------------------------------------------
 *   Publish button
 *-------------------------------------------------------------------*/

#calendar-publish-button {
    -moz-image-region: rect(0px 336px 24px 312px);
}
#calendar-publish-button[disabled="true"],
#calendar-publish-button[disabled="true"]:hover,
#calendar-publish-button[disabled="true"]:hover:active {
    -moz-image-region: rect(48px 336px 72px 312px);
}
#calendar-publish-button:hover {
    -moz-image-region: rect(24px 336px 48px 312px);
}

/*--------------------------------------------------------------------
 *   Publish button - small
 *-------------------------------------------------------------------*/

toolbar[iconsize="small"] #calendar-publish-button {
    -moz-image-region: rect(0px 224px 16px 208px);
}
toolbar[iconsize="small"] #calendar-publish-button[disabled="true"],
toolbar[iconsize="small"] #calendar-publish-button[disabled="true"]:hover,
toolbar[iconsize="small"] #calendar-publish-button[disabled="true"]:hover:active {
    -moz-image-region: rect(32px 224px 48px 208px);
}
toolbar[iconsize="small"] #calendar-publish-button:hover {
    -moz-image-region: rect(16px 224px 32px 208px);
}
