/**
 * @project     OTRS (http://www.otrs.org) - Agent Frontend
 * @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],
input[type=email],
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],
input[type=email],
textarea {
    padding: 3px;
    font-size: 12px;
    color: #333;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]: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],
input[type=password][readonly],
input[type=email][readonly],
textarea[readonly] {
    background-color: #DDD;
}

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

a.CertificateRelationAdd,
button.CertificateRelationAdd,
a.CertificateRead,
button.Add,
a.Add,
button.Remove,
a.Remove,
button.TrashCan,
a.TrashCan,
a.ViewAttachment,
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.CertificateRelationAdd,
a.CertificateRelationAdd {
    background: url(../img/icons/certificate-plus.png) no-repeat center;
}

a.CertificateRead {
    background: url(../img/icons/certificate.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;
}

a.ViewAttachment {
    background: url(../img/icons/monitor.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;
    right: 2px;
    left: auto;
}

.RTL form label.Mandatory span.Marker {
    left: 2px;
    right: auto;
}

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

.CustomerContainer .CustomerTicketText {
    transition: background-color 1s ease, border 1s ease;
}

.CustomerContainer .CustomerTicketText.MainCustomer {
    background-color: #FFD6BC;
    border: 1px solid #E77A34;
}

/**
 * @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,
fieldset.TableLike > .Row > label {
    display: block;
    float: left;
    line-height: 1.9em;
    width: 30%;
    text-align: right;
    color: #929292;
    min-height: 17px;
    padding-top: 5px;
    padding-bottom: 1px;
    text-shadow: 0 1px 0 #FAFAFA;
}

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

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

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

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

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

fieldset.TableLike > .Field > select,
fieldset.TableLike > .Row > .Field > select,
fieldset.TableLike > .Field > input,
fieldset.TableLike > .Row > .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 > .Row > .RichTextField,
fieldset.TableLike > .FloatingField,
fieldset.TableLike > .Row > .FloatingField {
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 0;
    float: left;
}

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

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

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

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

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

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

.RTL fieldset.TableLike.FixedLabel > .Field,
.RTL fieldset.TableLike.FixedLabel > .Row > .Field,
.RTL fieldset.TableLike.FixedLabel > .Value,
.RTL fieldset.TableLike.FixedLabel > .Row > .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,
fieldset.TableLike.FixedLabelSmall > .Row > label {
    width: 100px;
}

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

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

fieldset.TableLike.FixedLabelSmall > .FixedValueSmall,
fieldset.TableLike.FixedLabelSmall > .Row > .FixedValueSmall {
    width: 143px;
}
fieldset.TableLike.FixedLabelSmall > p.FixedValueSmall > em.Error {
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

fieldset.TableLike.Narrow > label,
fieldset.TableLike.Narrow > .Row > label {
    line-height: 1.3em;
}

fieldset.TableLike.Narrow > .Value,
fieldset.TableLike.Narrow > .Row > .Value {
    line-height: 1.3em;
}

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