﻿/**
* Consistent Font Size for content styled with different classes.
**/

/* Details message on workflow feedback (this class is not defined anywhere else). */
li.details,
/* Override some JQM styling applied to .ui-li-static class injected into the <li> and inherited by our field name and value <span> elements. */
.readOnlyFieldName, .readOnlyFieldValue,
.attachment-name,
.attachment-file-size,
.attachment-description {
    font-size: 12px;
}

/**
* logo element part of page header.
**/
.logo {
    /**
  * Dimension and position is proportional to the header's' styling controlled by JQM theme.
  * Hopefully the requirements will change such that a regular JQM button can be used instead.
  **/
    display: inline-block;
    background-size: 100%;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 10px;
    border: 0px;
    /* TODO: When a smaller icon will be available then use that one, for now this is the smallest reusable one. */
    background: url("../../../images/global/proliance_72x72.png");
}

/**
* override some of jquery ui-header settings so that we can
* render the buttons and image span vertically centered. this is used
* for custom header.
**/
.headerWrapper {
    /* Set the margin top to vertically shift elements down so that it can be centered. */
    margin-top: 3px;
    border: 0px;
    /* Override padding from ui-header class to reduce the height of the header. */
    padding: 0px;
}

/**
* progress indicator on workflow feedback page. This indicator
* is specific to li element. 
**/
li.spinner {
    background: url(../../Content/img/spinner.gif) no-repeat center;
    height: 40px;
}

/**
* Input fields have a vertical padding between them.
**/
div.inputField {
    padding-bottom: 12px;
}

/**
* Invalid input fields have a specific background color.
**/
.invalidInputField {
    background-color: #FBE0D8 !important;
}

/**
* Read-only field containers have a vertical margin to separate them.
**/
.readOnlyFieldContainer {
    margin-bottom: 3px;
}

/**
* Text-area field has a specific height.
* By default it displays 3 rows, this will reduce the height to one row.
**/
textarea.textAreaField {
    height: 25px;
}

.readOnlyFieldName {
    /**
  * Attributes common to all read-only field names, regardless of directionality.
  **/
    font-weight: bold;
    display: inline-block;
    width: 40%;
    /* Override some JQM styling applied to .ui-li-static classic injected into the <li> and inherited by our field name <span> element */
    vertical-align: text-top;
    /**
  * specific to read-only field names in a Left-to-Right language.
  **/
    text-align: left;
}

.readOnlyFieldValue {
    /**
  * Attributes common to all read-only field values, regardless of directionality.
  **/
    width: 50%;
    display: inline-block;
    /* Override some JQM styling applied to .ui-li-static classic injected into the <li> and inherited by our field value <span> element */
    font-weight: normal;
    vertical-align: text-top;
    /**
  * specific to read-only field values in a Left-to-Right language.
  **/
    text-align: left;
    margin-left: 2px;
}

/**
* Icon used for the download button - low resolution
**/
.ui-icon-proliance-download {
    background-image: url("../../Content/img/download_18x18.png");
}

/** 
* Icon used for the download button - high resolution
**/
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
    .ui-icon-proliance-download {
        background-image: url("../../Content/img/download_36x36.png");
        background-size: 18px 18px;
    }
}

/**
* Attachment name displayed on a single line alone.
**/
.attachment-name {
    font-weight: bold;
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
}

/**
* Attachment file size displayed on a single line together with the description.
**/
.attachment-file-size {
    margin-right: 20px;
    font-weight: normal;
    display: inline-block;
}

/**
* Attachment description displayed on a single line, alone for URL Attachments, or together with the file size for File Attachments.
**/
.attachment-description {
    font-weight: normal;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
}

/**
* Common settings for Hyperlink and File Type icons.
**/
.hyperlink-icon, .hyperlink-icon-no-description {
    background-size: 100%;
    width: 20px;
    /* TODO: use a smaller resolution image as large as the occupied size(20x20 px). */
    background: url("../../Content/img/hyperlink_182x182.gif") no-repeat bottom;
}

/**
* Override hyperlink-icon class to set a different height
* for cases where no description is available
**/
.hyperlink-icon-no-description {
    height: 25px;
}

.hyperlink-icon {
    height: 35px;
}

.tag-field {
    padding: .2em .4em;
    line-height: 1.4;
    font-size: 16px;
    border-radius: .6em;
    border: 1px solid #b3b3b3;
    margin: 5px 0 14px 0;
    min-height: 32px;
}

    .tag-field ul {
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

        .tag-field ul li {
            display: inline-block;
            border: solid 1px gray;
            margin: 5px 5px;
            padding: 5px;
            border-radius: 3px;
        }

            .tag-field ul li[data-read-only="false"] {
                cursor: pointer;
                background-color: lightgoldenrodyellow;
            }

            .tag-field ul li.input-list-item {
                background-color: inherit;
                border-style: none;
                display: block;
            }


            .tag-field ul li a {
                display: inline-block;
                font-weight: bolder;
                text-transform: uppercase;
                font-size: 15px;
                text-decoration: none;
                margin-left: 5px;
            }


            .tag-field li.message-error {
                display: none;
                color:red;
                font-size: smaller;
                border: none;
                background-color: inherit;
            }

span.twitter-typeahead {
    width: 100%;
}

.ui-content {
    overflow-x: visible;
}

.tt-menu {
    display: block;
    cursor: pointer;
    -moz-min-width: 160px;
    -ms-min-width: 160px;
    -o-min-width: 160px;
    -webkit-min-width: 160px;
    min-width: 160px;
    width: 98%;
    margin-top: 0;
    padding: 5px 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.15);
    -ms-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    -ms-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    -moz-background-clip: padding-box;
    -webkit-background-clip: padding-box;
    -ms-background-clip: padding-box;
    background-clip: padding-box;
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 100;
}

.tt-suggestion {
    padding: .2em .4em;
    line-height: 1.4;
    font-size: 16px;
}

    .tt-suggestion.tt-cursor {
        background-color: rgb(179, 198, 217);
    }

    textarea.ui-input-text,
    input.ui-input-text {
        background-color: white;
    }
    .ui-input-text[readonly="readonly"] {
        background-color: inherit;
    }

