/**
 * @project     OTRS (http://www.otrs.org) - Agent Frontend
 * @version     $Revision: 1.26 $
 * @copyright   OTRS AG
 * @license     AGPL (http://www.gnu.org/licenses/agpl.txt)
 */

/**
 * @package     Skin "Default"
 * @section     Forms
 */

@media screen,projection,tv,handheld {

/**
 * @subsection  Input focus
 * @note        Does not work in IE6, only partially in IE7 (no focus)
 */

input[type=text],
input[type=password],
textarea,
select[multiple=multiple] {
    border: 1px solid #C9C9C9;
    border-top-color: #C0C0C0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* Opera 10.5 has per default a grey background */
    background-color: #FFF;
    -moz-box-shadow: 0 1px 2px #E8E8E8 inset, 0 1px 0 #FFF;
    -webkit-box-shadow: 0 1px 2px #E8E8E8 inset, 0 1px 0 #FFF;
    box-shadow: 0 1px 2px #E8E8E8 inset, 0 1px 0 #FFF;
}

input[type=text],
input[type=password],
textarea {
    padding: 3px;
    font-size: 12px;
    color: #333;
}

input[type=text]:focus,
input[type=password]:focus,
textarea:focus {
    border-color: #F92;
}

/**
 * @subsection  Textarea
 * @note        Fixed font needed in textareas because otherwise the line wrapping is incorrect.
 */
textarea {
    font-family: monospace,fixed;
}


/**
 * @subsection  Input Readonly
 */
input[type=text][readonly=readonly],
input[type=password][readonly=readonly],
textarea[readonly=readonly] {
    background-color: #DDD;
}

/**
 * @subsection  Buttons
 */
button.Primary {
    font-weight: bold;
}

button.Add,
a.Add,
button.Remove,
a.Remove,
button.TrashCan,
a.TrashCan,
button.Reset,
a.Reset {
    height: 16px;
    width: 16px;
    padding: 1px;
    margin-top: 0;
    margin-bottom: 1px;
    border-style: none;
    text-indent: -9999px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

button.Add,
a.Add {
    background: url(../img/filter_add.png) no-repeat center;
}

button.Add:hover,
button.Add:focus,
a.Add:hover,
a.Add:focus {
    background: url(../img/filter_add_hover.png) no-repeat center;
}

button.Remove,
a.Remove {
    background: url(../img/filter_remove.png) no-repeat center;
}

button.Remove:hover,
button.Remove:focus,
a.Remove:hover,
a.Remove:focus {
    background: url(../img/filter_remove_hover.png) no-repeat center;
}

button.TrashCan,
a.TrashCan {
    background: url(../img/icons/trash-can.png) no-repeat center;
}

button.Reset,
a.Reset{
    height: 22px;
    width: 22px;
    padding: 3px;
    background: transparent url(../img/icons/undo.png) no-repeat center;
}

/**
 * @note    Push-lookalike for active state
 */
button.Add:active,
a.Add:active,
button.Remove:active,
a.Remove:active,
button.TrashCan:active,
a.TrashCan:active,
button.Reset:active {
    margin-top: 1px;
    margin-bottom: 0;
}


.GetAllAJAX {
    width: 16px;
    height: 16px;
    margin-left: 3px;
    text-indent: -9999px;
    background: url(../img/icons/reload.png);
    display: inline-block;
}

.RTL .GetAllAJAX {
    margin: 0 3px 0 0;
}

/**
 * @subsection  Form
 */

form fieldset {
    display: block;
    border: none;
}

.FieldExplanation {
    color: #888;
    margin: 5px 0;
}

form label.Mandatory {
    color: black !important;
}

form label.Mandatory span.Marker {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    top: 0.35em;
    line-height: 1px;
}

form label.LabelError {
    color: #ff505e !important;
}

/**
 * @note        Give the user a hint about linked label elements (they are clickable and
 *                  give focus to the linked element.
 */

form label[for] {
    cursor: pointer;
}

form input.Error,
form textarea.Error {
    border-color: #ff505e;
}

/*
 * This will be displayed by Core.UI.Tooltips
 */
div.TooltipErrorMessage {
    display: none;
}

/**
 * @subsection  TableLike
 * @description Provides a table-like, aligned label-value structure
 */

fieldset.TableLike > label {
    display: block;
    float: left;
    line-height: 1.3em;
    width: 30%;
    text-align: right;
    color: #929292;
    padding-top: 3px;
    padding-bottom: 3px;
    text-shadow: 0 1px 0 #FAFAFA;
}

.RTL fieldset.TableLike > label {
    float: right;
    text-align: left;
}

fieldset.TableLike > .Field {
    line-height: 1.2em;
    margin-left: 30%;
    margin-right: 0;
    padding-top: 3px;
    padding-left: 10px;
    padding-right: 0;
    padding-bottom: 3px;
}

.RTL fieldset.TableLike > .Field {
    margin-left: 0;
    margin-right: 30%;
    padding-left: 0;
    padding-right: 10px;
}

fieldset.TableLike select {
    margin-top: 1px;
}

/**
 * @note     Also make labels grey which occur inside of a field,
 *          for example for complex input elements.
 */
fieldset.TableLike > .Field label {
    color: #929292;
}

fieldset.TableLike > .Field > select,
fieldset.TableLike > .Field > input {
    max-width: 100%;
}

/**
 * @note    The RichText field needs to float, otherwise it breaks
 *          in small screens.
 *          Additionally we have a generic FloatingField class,
 *          RichTextField is for backwards compatibility.
 */
fieldset.TableLike > .RichTextField, fieldset.TableLike > .FloatingField {
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 0;
    float: left;
}

.RTL fieldset.TableLike > .RichTextField, .RTL fieldset.TableLike > .FloatingField {
    padding-left: 0;
    padding-right: 10px;
    float: right;
}

fieldset.TableLike > .Value {
    margin-left: 30%;
    padding: 3px 0 3px 8px;
    line-height: 1.3em;
}

.RTL fieldset.TableLike > .Value {
    margin: 0 30% 0 0;
    padding: 3px 8px 3px 0;
}

fieldset.TableLike > .Value img {
    vertical-align: top;
}

/**
 * @note        FixedLabel - this additional class for TableLike
 *              makes the labels have a fixed size
 */
fieldset.TableLike.FixedLabel > label {
    width: 170px;
}

fieldset.TableLike.FixedLabel > .Field,
fieldset.TableLike.FixedLabel > .Value {
    margin-left: 170px;
    margin-right: 0;
    padding-left: 17px;
    padding-right: 0;
}

.RTL fieldset.TableLike.FixedLabel > .Field,
.RTL fieldset.TableLike.FixedLabel > .Value {
    margin-left: 0;
    margin-right: 170px;
    padding-left: 0;
    padding-right: 17px;
}

/**
 * @note        FixedLabelSmall - this additional class for TableLike
 *              makes the labels have a small fixed size
 */
fieldset.TableLike.FixedLabelSmall > label {
    width: 100px;
}

fieldset.TableLike.FixedLabelSmall > .Field,
fieldset.TableLike.FixedLabelSmall > .Value {
    margin-left: 100px;
    margin-right: 8px;
    word-wrap: break-word;
}

.RTL fieldset.TableLike.FixedLabelSmall > .Field,
.RTL fieldset.TableLike.FixedLabelSmall > .Value {
    margin-left: 0;
    margin-right: 100px;
}

iframe.Signature {
    border: 1px solid #888;
}

/**
 * @subsection AJAX Loader
 */

.AJAXLoader {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 2px;
    background: url("../img/loader.gif") no-repeat right center;
    vertical-align: bottom;
}

/**
 * @subsection freetext fields
 */

input[type=text].TicketFreeText, input[type=text].ArticleFreeText {
    width: 75%;
}

input[type=text].TicketFreeKey, input[type=text].ArticleFreeKey {
    width: 50%;
}


} /* end @media */