/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

/*
dialog.css
============

This file styles dialogs and all widgets available inside of it (tabs, buttons,
fields, etc.).

Dialogs are a complex system because they're very flexible. The CKEditor API
makes it easy to create and customize dialogs by code, by making use of several
different widgets inside its contents.

All dialogs share a main dialog strucuture, which can be visually represented
as follows:

+-- .cke_dialog -------------------------------------------------+
| +-- .cke_dialog_body ----------------------------------------+ |
| | +-- .cke_dialog_title --+ +-- .cke_dialog_close_button --+ | |
| | |                       | |                              | | |
| | +-----------------------+ +------------------------------+ | |
| | +-- .cke_dialog_tabs ------------------------------------+ | |
| | |                                                        | | |
| | +--------------------------------------------------------+ | |
| | +-- .cke_dialog_contents --------------------------------+ | |
| | | +-- .cke_dialog_contents_body -----------------------+ | | |
| | | |                                                    | | | |
| | | +----------------------------------------------------+ | | |
| | | +-- .cke_dialog_footer ------------------------------+ | | |
| | | |                                                    | | | |
| | | +----------------------------------------------------+ | | |
| | +--------------------------------------------------------+ | |
| +------------------------------------------------------------+ |
+----------------------------------------------------------------+

Comments in this file will give more details about each of the above blocks.
*/

/* The outer container of the dialog. */
.cke_dialog
{
	/* Mandatory: Because the dialog.css file is loaded on demand, we avoid
	   showing an unstyled dialog by hidding it. Here, we restore its visibility. */
	visibility: visible;
}

/* The inner boundary container. */
.cke_dialog_body
{
	z-index: 1;
	border: solid 1px #ddd;
	background-color: #fff;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

/* Due to our reset we have to recover the styles of some elements. */
.cke_dialog strong
{
	font-weight: bold;
}

/* The dialog title. */
.cke_dialog_title
{
	font-weight: bold;
	font-size: 14px;
	padding: 0 10px;
	cursor: move;
	position: relative;
	border-bottom: 1px solid #ddd;
	background: #EDEDED;
	height: 33px;
	line-height: 33px;
}

/* The outer part of the dialog contants, which contains the contents body
   and the footer. */
.cke_dialog_contents
{
	border-bottom: none;
	overflow: auto;
	padding: 10px 10px 5px 10px;
}

/* The contents body part, which will hold all elements available in the dialog. */
.cke_dialog_contents_body
{
	overflow: auto;
	padding: 10px 15px 10px 15px;
	margin-top: 22px;
}

/* The dialog footer, which usually contains the "Ok" and "Cancel" buttons as
   well as a rsizer handle. */
.cke_dialog_footer
{
	text-align: right;
	background-color: #EDEDED;
	border-top: 1px solid #DEDEDE;
}

.cke_rtl .cke_dialog_footer
{
	text-align: left;
}

.cke_dialog_footer .cke_resizer
{
	background-image: url(images/sprites.png);
	background-position: 0 -1426px;
	margin-top: 30px;
}

.cke_dialog_footer .cke_resizer_rtl
{
	background-position: 0 -1453px;
	position: relative;
	z-index: 100;
}

.cke_hc .cke_dialog_footer .cke_resizer
{
	margin-bottom: 1px;
}

.cke_hc .cke_dialog_footer .cke_resizer_ltr
{
	margin-right: 1px;
}

.cke_hc .cke_dialog_footer .cke_resizer_rtl
{
	margin-left: 1px;
}

/*
Dialog tabs
-------------

Tabs are presented on some of the dialogs to make it possible to have its
contents split on different groups, visible one after the other.

The main element that holds the tabs can be made hidden, in case of no tabs
available.

The following is the visual representation of the tabs block:

+-- .cke_dialog_tabs ------------------------------------+
|  +-- .cke_dialog_tab --+ +-- .cke_dialog_tab --+ ...   |
|  |                     | |                     |       |
|  +---------------------+ +---------------------+       |
+--------------------------------------------------------+

The .cke_dialog_tab_selected class is appended to the active tab.
*/

/* The main tabs container. */
.cke_dialog_tabs
{
	height: 28px;
	display: block;
	background: #E8E8E8;
	z-index: 2;
	/*border-bottom: 1px solid #fff;*/
	outline: 1px solid #dedede;
}

.cke_rtl .cke_dialog_tabs
{
}

/* A single tab (an <a> element). */
a.cke_dialog_tab
{
	height: 28px;
	line-height: 28px;
	padding: 0 10px;
	display: inline-block;
	cursor: pointer;
	border-right: 1px solid #dedede;
	border-bottom: 1px solid #fff;
	color: #aaa;
	position: relative;
	top: -1px;
}

a.cke_dialog_tab:hover
{
	background-color: #fff;
	color: #333;
}

.cke_hc a.cke_dialog_tab:hover
{
	padding: 2px 6px !important;
	border-width: 3px;
}

.cke_rtl a.cke_dialog_tab
{
	border-right: 0;
	border-left: 1px solid #dedede;
}

a.cke_dialog_tab_selected
{
	background-color: #fff;
	cursor: default;
	border-top: 3px solid #888;
	border-bottom: 0px;
	color: #333;
	top: 0px;
	height: 27px;
	line-height: 27px;
}

.cke_hc a.cke_dialog_tab_selected
{
	padding: 2px 6px !important;
	border-width: 3px;
}

/* The .cke_single_page class is appended to the dialog outer element in case
   of dialogs that has no tabs. */
.cke_single_page .cke_dialog_tabs
{
	display: none;
}

.cke_single_page .cke_dialog_contents
{
	padding-top: 5px;
	margin-top: 10px;
}

/* The close button at the top of the dialog. */

.cke_dialog_close_button
{
	background-image: url(images/sprites.png);
	background-repeat: no-repeat;
	background-position: -2px -1029px;
	position: absolute;
	cursor: pointer;
	text-align: center;
	height: 17px;
	width: 17px;
	top: 9px;
	background-color: #333;

	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
}

.cke_dialog_close_button span
{
	display: none;
}

.cke_dialog_close_button:hover
{
	background-color: #333;
	box-shadow: none;
}

.cke_ltr .cke_dialog_close_button
{
	right: 10px;
}

.cke_rtl .cke_dialog_close_button
{
	left: 8px;
}


/*
Dialog UI Elements
--------------------

The remaining styles define the UI elements that can be used inside dialog
contents.

Most of the UI elements on dialogs contain a textual label. All of them share
the same labelling structure, having the label text inside an element with
.cke_dialog_ui_labeled_label and the element specific part inside the
.cke_dialog_ui_labeled_content class.
*/

/* If an element is supposed to be disabled, the .cke_disabled class is
   appended to it. */
div.cke_disabled .cke_dialog_ui_labeled_content *
{
	background-color : #a0a0a0;
	cursor : default;
}

/*
Horizontal-Box and Vertical-Box
---------------------------------

There are basic layou element used by the editor to properly align elements in
the dialog. They're basically tables that have each cell filled by UI elements.

The following is the visual representation of a H-Box:

+-- .cke_dialog_ui_hbox --------------------------------------------------------------------------------+
|  +-- .cke_dialog_ui_hbox_first --+ +-- .cke_dialog_ui_hbox_child --+ +-- .cke_dialog_ui_hbox_last --+ |
|  +                               + +                               + +                              + |
|  +-------------------------------+ +-------------------------------+ +------------------------------+ |
+-------------------------------------------------------------------------------------------------------+

It is possible to have nested V/H-Boxes.
*/

.cke_dialog_ui_vbox table,
.cke_dialog_ui_hbox table
{
	margin: auto;
}

.cke_dialog_ui_vbox_child
{
	padding: 5px 0px;
}

.cke_dialog_ui_hbox
{
	width: 100%;
}

.cke_dialog_ui_hbox_first,
.cke_dialog_ui_hbox_child,
.cke_dialog_ui_hbox_last
{
	vertical-align: top;
}

.cke_ltr .cke_dialog_ui_hbox_first,
.cke_ltr .cke_dialog_ui_hbox_child
{
	padding-right: 10px;
}

.cke_rtl .cke_dialog_ui_hbox_first,
.cke_rtl .cke_dialog_ui_hbox_child
{
	padding-left: 10px;
}

/*
Text Input
------------

The basic text field to input text.

+-- .cke_dialog_ui_text --------------------------+
|  +-- .cke_dialog_ui_labeled_label ------------+ |
|  |                                            | |
|  +--------------------------------------------+ |
|  +-- .cke_dialog_ui_labeled_content ----------+ |
|  | +-- div.cke_dialog_ui_input_text --------+ | |
|  | | +-- input.cke_dialog_ui_input_text --+ | | |
|  | | |                                    | | | |
|  | | +------------------------------------+ | | |
|  | +----------------------------------------+ | |
|  +--------------------------------------------+ |
+-------------------------------------------------+
*/

input.cke_dialog_ui_input_text,
input.cke_dialog_ui_input_password
{
	background-color: white;
	border: none;
	padding: 0;
	width: 100%;
	height: 14px;
}

div.cke_dialog_ui_input_text,
div.cke_dialog_ui_input_password
{
	background-color: white;
	border: 1px solid #ccc;
	padding: 3px 7px;

	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

/*
Textarea
----------

The textarea field to input larger text.

+-- .cke_dialog_ui_textarea --------------------------+
|  +-- .cke_dialog_ui_labeled_label ----------------+ |
|  |                                                | |
|  +------------------------------------------------+ |
|  +-- .cke_dialog_ui_labeled_content --------------+ |
|  | +-- div.cke_dialog_ui_input_textarea --------+ | |
|  | | +-- input.cke_dialog_ui_input_textarea --+ | | |
|  | | |                                        | | | |
|  | | +----------------------------------------+ | | |
|  | +--------------------------------------------+ | |
|  +------------------------------------------------+ |
+-----------------------------------------------------+
*/

textarea.cke_dialog_ui_input_textarea
{
	background-color: white;
	border: none;
	padding: 0px;
	width: 100%;
	overflow: auto;
	resize: none;
}

div.cke_dialog_ui_input_textarea
{
	background-color: white;
	border: 1px solid #a0a0a0;
	padding: 1px 0px;
}


/*
Button
--------

The buttons used in the dialog footer or inside the contents.

+-- a.cke_dialog_ui_button -----------+
|  +-- span.cke_dialog_ui_button --+  |
|  |                               |  |
|  +-------------------------------+  |
+-------------------------------------+
*/

/* The outer part of the button. */
a.cke_dialog_ui_button
{
	border-collapse: separate;
	cursor: default;

	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	text-align: center;

	padding: 2px 0;
}

a.cke_dialog_ui_button span
{
	color: #fff;
	font-weight: bold;
}

/* The inner part of the button. */
a.cke_dialog_ui_button_ok span,
a.cke_dialog_ui_button_cancel span
{
	width:0px;
	padding-right: 15px;
	padding-left: 15px;
}

/* Special class appended to the Ok button. */
a.cke_dialog_ui_button_ok
{
	background: #ecf4c2;
	background: -moz-linear-gradient(top, #ecf4c2 0%, #d9e980 5%, #bdd921 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ecf4c2), color-stop(5%,#d9e980), color-stop(100%,#bdd921));
	background: -webkit-linear-gradient(top, #ecf4c2 0%,#d9e980 5%,#bdd921 100%);
	background: -o-linear-gradient(top, #ecf4c2 0%,#d9e980 5%,#bdd921 100%);
	background: -ms-linear-gradient(top, #ecf4c2 0%,#d9e980 5%,#bdd921 100%);
	background: linear-gradient(to bottom, #ecf4c2 0%,#d9e980 5%,#bdd921 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ecf4c2', endColorstr='#bdd921',GradientType=0 );
	border: 1px solid #bccb67;
}

a.cke_dialog_ui_button_ok:hover
{
	background: #ecf4c2;
	background: -moz-linear-gradient(top, #ecf4c2 0%, #bdd921 5%, #bdd921 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ecf4c2), color-stop(5%,#bdd921), color-stop(100%,#bdd921));
	background: -webkit-linear-gradient(top, #ecf4c2 0%,#bdd921 5%,#bdd921 100%);
	background: -o-linear-gradient(top, #ecf4c2 0%,#bdd921 5%,#bdd921 100%);
	background: -ms-linear-gradient(top, #ecf4c2 0%,#bdd921 5%,#bdd921 100%);
	background: linear-gradient(to bottom, #ecf4c2 0%,#bdd921 5%,#bdd921 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ecf4c2', endColorstr='#bdd921',GradientType=0 );
}

a.cke_dialog_ui_button_ok span
{
	background: transparent url(images/sprites.png) no-repeat scroll right -1217px;
	text-shadow: 0 -1px 0 #a4b25a;
}

.cke_rtl a.cke_dialog_ui_button_ok span
{
	background-position: left -1217px;
}

/* Special class appended to the Cancel button. */
a.cke_dialog_ui_button_cancel
{
	background: #999999;
	background: -moz-linear-gradient(top, #999999 0%, #444c4f 6%, #32393b 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#999999), color-stop(6%,#444c4f), color-stop(100%,#32393b));
	background: -webkit-linear-gradient(top, #999999 0%,#444c4f 6%,#32393b 100%);
	background: -o-linear-gradient(top, #999999 0%,#444c4f 6%,#32393b 100%);
	background: -ms-linear-gradient(top, #999999 0%,#444c4f 6%,#32393b 100%);
	background: linear-gradient(to bottom, #999999 0%,#444c4f 6%,#32393b 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#32393b',GradientType=0 );
	border: 1px solid #2b2b2b;
}

a.cke_dialog_ui_button_cancel:hover
{
	background: #999999;
	background: -moz-linear-gradient(top, #999999 0%, #32393b 6%, #32393b 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#999999), color-stop(6%,#32393b), color-stop(100%,#32393b));
	background: -webkit-linear-gradient(top, #999999 0%,#32393b 6%,#32393b 100%);
	background: -o-linear-gradient(top, #999999 0%,#32393b 6%,#32393b 100%);
	background: -ms-linear-gradient(top, #999999 0%,#32393b 6%,#32393b 100%);
	background: linear-gradient(to bottom, #999999 0%,#32393b 6%,#32393b 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#32393b',GradientType=0 );
}

a.cke_dialog_ui_button_cancel span
{
	background: transparent url(images/sprites.png) no-repeat scroll right -1244px;
}

.cke_rtl a.cke_dialog_ui_button_cancel span
{
	background-position: left -1244px;
}

span.cke_dialog_ui_button
{
	padding: 2px 10px;
	text-align: center;
	color: #222;
	display: inline-block;
	cursor: default;
	min-width: 60px;
}

/* .cke_disabled is appended to disabled buttons */
a.cke_dialog_ui_button span.cke_disabled
{
	border: #898980 1px solid;
	color: #5e5e55;
	background-color: #c5c5b3;
}

.cke_hc a.cke_dialog_ui_button:hover,
.cke_hc a.cke_dialog_ui_button:focus,
.cke_hc a.cke_dialog_ui_button:active
{
	border-width: 2px;
}

/* A special container that holds the footer buttons. */
.cke_dialog_footer_buttons
{
	display: inline-table;
	margin-right: 0px;
	margin-left: 15px;
	width: auto;
	position: relative;
}

.cke_dialog_footer_buttons span.cke_dialog_ui_button
{
	margin: 11px 0 0;
	text-align: center;
}


/*
Styles for other dialog element types.
*/
.cke_dialog_ui_input_select
{
	border: 1px solid #a0a0a0;
	background-color: white;
}

.cke_dialog_ui_input_file
{
	width: 100%;
	height: 25px;
}

/*
 * Some utility CSS classes for dialog authors.
 */
.cke_dialog .cke_dark_background
{
	background-color: #eaead1;
}

.cke_dialog .cke_light_background
{
	background-color: #ffffbe;
}

.cke_dialog .cke_centered
{
	text-align: center;
}

.cke_dialog a.cke_btn_reset
{
	float: right;
	background-position: 0 -32px;
	background-image: url(images/mini.gif);
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	border: 1px none;
	font-size: 1px;
}

.cke_rtl .cke_dialog a.cke_btn_reset
{
	float: left;
}

.cke_dialog a.cke_btn_locked,
.cke_dialog a.cke_btn_unlocked
{
	float: left;
	background-position: 0 0;
	background-image: url(images/mini.gif);
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	border: none 1px;
	font-size: 1px;
}
.cke_dialog a.cke_btn_locked .cke_icon
{
	display:none;
}

.cke_rtl .cke_dialog a.cke_btn_locked,
.cke_rtl .cke_dialog a.cke_btn_unlocked
{
	float: right;
}

.cke_dialog a.cke_btn_unlocked
{
	background-position: 0 -16px;
	background-image: url(images/mini.gif);
}

.cke_dialog .cke_btn_over
{
	border: outset 1px;
	cursor: pointer;
}

/*
The rest of the file contains style used on several common plugins. There is a
tendency that these will be moved to the plugins code in the future.
*/

.cke_dialog  .ImagePreviewBox
{
	border : 2px ridge black;
	overflow : scroll;
	height : 200px;
	width : 300px;
	padding : 2px;
	background-color : white;
}

.cke_dialog .ImagePreviewBox table td {
	white-space: normal;
}

.cke_dialog  .ImagePreviewLoader
{
	position: absolute;
	white-space : normal;
	overflow : hidden;
	height : 160px;
	width : 230px;
	margin : 2px;
	padding : 2px;
	opacity : 0.9;
	filter : alpha(opacity=90);

	background-color : #e4e4e4;
}

.cke_dialog  .FlashPreviewBox
{
	white-space : normal;
	border : 2px ridge black;
	overflow : auto;
	height : 160px;
	width : 390px;
	padding : 2px;
	background-color : white;
}

.cke_dialog .cke_pastetext
{
	width: 346px;
	height: 170px;
}

.cke_dialog .cke_pastetext textarea
{
	width: 340px;
	height: 170px;
	resize: none;
}

.cke_dialog iframe.cke_pasteframe
{
	width: 346px;
	height: 130px;
	background-color: white;
	border: 1px solid black;
}

.cke_dialog .cke_hand
{
	cursor: pointer;
}

.cke_disabled
{
	color: #a0a0a0;
}

/*
High Contrast Mode.
*/

.cke_hc .cke_dialog_title,
.cke_hc .cke_dialog_tabs,
.cke_hc .cke_dialog_contents,
.cke_hc .cke_dialog_footer
{
	border-left: 1px solid;
	border-right: 1px solid;
}

.cke_hc .cke_dialog_title
{
	border-top: 1px solid;
}

.cke_hc .cke_dialog_footer
{
	border-bottom: 1px solid;
}

.cke_hc .cke_dialog_close_button span
{
	display: inline;
	cursor: pointer;
	font-weight: bold;
	position: relative;
	top: 3px;
}

.cke_dialog_body .cke_label
{
	display: none;
}

.cke_dialog_body label
{
	display: inline;
	margin-bottom: auto;
	cursor: default;
}

.cke_dialog_body label.cke_required
{
	font-weight: bold;
}

.cke_hc .cke_dialog_body .cke_label
{
	display: inline;
	cursor: inherit;
}

.cke_hc a.cke_btn_locked,
.cke_hc a.cke_btn_unlocked,
.cke_hc a.cke_btn_reset
{
	border-style: solid;
	float: left;
	width: auto;
	height: auto;
	padding: 0 2px;
}

.cke_rtl.cke_hc a.cke_btn_locked,
.cke_rtl.cke_hc a.cke_btn_unlocked,
.cke_rtl.cke_hc a.cke_btn_reset
{
	float: right;
}
.cke_hc a.cke_btn_locked .cke_icon
{
	display:inline;
}

a.cke_smile img
{
	/* IE6 does not support transparent borders */
	border: 2px solid #eaead1;
}

a.cke_smile:focus img,
a.cke_smile:active img,
a.cke_smile:hover img
{
	border-color: #C7C78F;
}

.cke_hc .cke_dialog_tabs a,
.cke_hc .cke_dialog_footer a
{
	opacity: 1.0;
	filter: alpha(opacity=100);
	border: 1px solid white;
}

.cke_hc .ImagePreviewBox
{
	width: 260px;
}

/**
 * Styles specific to "cellProperties" dialog.
 */

.cke_dialog_contents a.colorChooser
{
	display:block;
	margin-top:6px;
	margin-left: 10px;
	width: 80px;
}

.cke_rtl .cke_dialog_contents a.colorChooser
{
	margin-right: 10px;
}

/* Compensate focus outline for some input elements. (#6200) */
.cke_dialog_ui_checkbox_input:focus,
.cke_dialog_ui_radio_input:focus,
.cke_dialog_ui_input_select:focus,
.cke_btn_over
{
	outline: 1px dotted #696969;
}

.cke_iframe_shim
{
	display:block;
	position:absolute;
	top:0;
	left:0;
	z-index:-1;
	filter:alpha(opacity=0);
	width:100%;
	height:100%;
}
