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

/**
 * @package     OTRS Framework - Skin "Default"
 * @section     Customer
 */

button,
.Button {
    padding: 4px 11px !important;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    background: #DDD url(../img/button_bg.png) repeat-x;
    border: 1px solid #AAA;
    border-bottom: 1px solid #999;
    box-shadow: 0 1px 0 #E6E6E6;
    -moz-box-shadow: 0 1px 0 #E6E6E6;
    -webkit-box-shadow: 0 1px 0 #E6E6E6;
    border-radius: 11px;
    -moz-border-radius: 11px;
    -webkit-border-radius: 11px;
    text-shadow: 0 1px 0 #FFF;
    display: inline-block;
    cursor: pointer;
}

button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

button:hover,
.Button:hover {
    border-color: #888;
    color: #333;
}

button:active,
.Button:active {
    background: #000 url("../img/GradientSmall.png") repeat-x 0 0;
    border-color: #888;
    outline: none;
    text-shadow: 0 1px 0 #D9D9D9;
}

.SmallButton {
    padding: 0 8px;
    margin: 0 2px;
    color: #797979;
    font-size: 10px;
    line-height: 12px;
    font-weight: bold;
    background: #F9F9F9;
    background: -moz-linear-gradient(top, #FFF, #EEE);
    background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#EEE));
    border: 1px solid #DDD;
    border-bottom: 1px solid #CCC;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    text-shadow: 0 1px 0 #FFF;
}

.SmallButton:hover {
    color: #555;
}

.SmallButton:active {
    background: #EEE;
    background: -moz-linear-gradient(top, #CCC, #EEE);
    background: -webkit-gradient(linear, left top, left bottom, from(#CCC), to(#EEE));
    border-color: #CCC #CCC #D9D9D9;
    text-shadow: 0 1px 0 #EEE;
}

label {
    margin-right: 8px;
    padding: 4px 0;
    width: 120px;
    text-align: right;
    float: left;
    font-size: 12px;
}
.RTL label {
    margin: 0 0 0 8px;
    float: right;
    text-align: left;
}

/**
 * @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;
}

input[type=text],
input[type=password] {
    margin: 0;
    width: 250px;
    font-size: 14px;
}

input[type=text],
input[type=password],
textarea,
select[multiple=multiple] {
    border: 1px solid #C9C9C9;
    border-top-color: #C0C0C0;
    /* 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 {
    -moz-box-shadow: 0 1px 2px #E8E8E8 inset, 0 0 3px #CCC;
    -webkit-box-shadow: 0 1px 2px #E8E8E8 inset, 0 0 3px #CCC;
    box-shadow: 0 1px 2px #E8E8E8 inset, 0 0 3px #CCC;
}

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

input.DateSelection {
    width: auto;
}

select.TicketFreeKey,
select.ArticleFreeKey {
    margin-top: -2px;
    max-width: 90%;
}

#RichText {
    margin: 7px;
    border: 1px solid #D6D6D6;
}

.TicketCompose .Content,
.Preferences .Content,
.Search .Content {
    margin: 0;
    display: inline-block;
}

.Row {
    margin: -5px 4px 13px;
}

fieldset {
    margin: 8px 0 13px;
    padding-bottom: 5px;
    background: #F8F9F9;
    background: -moz-linear-gradient(center top , #FFF, #F8F9F9);
    background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#F8F9F9));
    border: 1px solid #EAEEEE;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

fieldset div {
    padding: 3px 8px 3px 0;
}

fieldset div:first-child {
    padding-top: 8px;
    border-top: 1px solid #FFF;
    border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
}

fieldset h2 {
    margin: 0;
    padding: 5px 8px 4px;
    font-size: 12px;
    font-weight: bold;
    border-top: 1px solid #FFF;
    border-bottom: 1px solid #E8E9E9;
    border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    text-shadow: 0 1px 0 #FFF;
}

fieldset h2 + div {
    padding-top: 13px;
    border-top: 1px solid #FFF;
    overflow: hidden;
}

fieldset p {
    margin: 1px 0 0 140px;
    font-size: 11px;
    color: #AAA;
}

.RTL fieldset p {
    margin: 1px 140px 0 0;
}

fieldset label {
    padding: 4px 9px 3px 0;
    margin: -1px 6px 0 0;
    color: #333;
    font-size: 11px;
    background: #ECEEEE;
    background: -moz-linear-gradient(center top , #F9F9F9, #ECEEEE);
    background: -webkit-gradient(linear, left top, left bottom, from(#F9F9F9), to(#ECEEEE));
    border-top: 1px solid #FFF;
    border-bottom: 1px solid #CCC;
    border-right: 1px solid #CCC;
    text-shadow: 0 1px 0 #FFF;
}

.RTL fieldset label {
    padding: 4px 0 3px 9px;
    margin-right: 0;
    margin-left: 8px;
}

fieldset select {
    margin-top: 2px;
}

.TicketCompose fieldset #Subject {
    width: 350px;
}

fieldset.Columns .Column {
    width: 50%;
    padding: 0;
    float: left;
    border: none;
}

.RTL fieldset.Columns .Column {
    float: right;
}

fieldset.Columns .Column div {
    padding: 13px 8px 3px;
}

fieldset.Columns label,
.TimeSearchType label {
    padding: 0;
    color: #000;
    font-size: 12px;
    float: none;
    border: none;
    background: none;
}

fieldset .RichTextHolder {
    padding: 0;
}

.Preferences .Content {
    padding: 5px 13px;
}

.Box {
    width: 50%;
    float: left;
}

.Box form {
    padding: 8px 8px 0;
    display: block;
}

.Box fieldset {
    height: 125px;
    margin-bottom: 0;
}

.Box label {
    padding: 3px 9px 3px 5px;
    width: 110px;
}

.Box input[type=password] {
    width: 160px;
    font-size: 12px;
}

.Box button {
    margin: 0 0 0 131px;
    display: block;
}

.RTL .Box button {
    margin: 4px 131px 0 0;
}

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

/**
* @note         Validation
*/
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    This will be displayed by Core.UI.Tooltips
 */
div.TooltipErrorMessage {
    display: none;
}

/*
 * @note    Special case: do display
 *          ServerError message divs when JavaScript is not active,
 *          otherwise the user will not see these messages
 */
.NoJavaScript .NoJavaScriptMessageServerError {
    display: block;
    padding: 2px 5px;
}

.NoJavaScript .NoJavaScriptMessageServerError,
.NoJavaScript .NoJavaScriptMessageServerError * {
    color: #ff505e;
}
