/* Shared styles */

.ui-autocomplete {
     max-height: 200px;
     overflow-y: scroll;
     overflow-x: hidden;
}

.ui-autocomplete-loading {
    background: url('/imgcss/loading.gif') no-repeat right center;
}

/* Asset filter form */
#assetFilterForm input[type="checkbox"] {
    margin: -4px 0 0;
}

#assetFilterForm .checkbox-wrapper label {
    display: inline-block;
}

/* Asset list */
#assets-list li.selected {
    background-color: #b2ffb2;
}

.thumbnail:has(* input[type=checkbox]:checked) {
    outline: 3px solid red;
}

.asset {
    height: 220px;
    width: 220px;
    position: relative;
}

.asset:hover .icon_bar {
    display: block;
}

.asset .icon_bar {
    position: absolute;
    top: -9px;
    right: -5px;
    border: 1px solid #dddddd;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 0 4px 0 4px;
    background-color: #eeeeee;
    opacity: 0.7;
    height: 24px;
    width: 80px;
    padding: 4px;
    display: none;
}

.asset .icon_bar .icon {
    height: 24px;
    width: 24px;
    display: inline-block;
    text-decoration: none;
}

.asset .icon_bar .icon:hover {
    cursor: pointer;
}

.asset .icon_bar .delete {
    background: url('/imgcss/assetIconsSprite.png') -24px top no-repeat
}

.asset .icon_bar .edit {
    background: url('/imgcss/assetIconsSprite.png') left top no-repeat
}

.asset .icon_bar .preview {
    background: url('/imgcss/assetIconsSprite.png') right top no-repeat
}

.asset .img_container {
    height: 159px;
    width: 212px;
    margin: 4px;
    text-align: center;
    line-height: 159px;
}

.asset .img_container .tooltip {
    line-height: 20px;
}

.asset .img_container img {
    max-height: 159px;
    max-width: 212px;
    display: none;
}

.asset .img_container .loading {
    background:url('/imgcss/loading.gif') no-repeat center center;
    display: block;
    height: 100%;
    width: 100%;
}

.asset .asset_info {
    margin-left: 4px;
    margin-right: 4px;
    margin-top: 10px;
    border-top: 1px solid #dddddd;
    position: relative;
}

.asset .asset_info a {
    color: #232323;
    text-decoration: none;
}

.asset .asset_info a:hover {
    text-decoration: underline;
}

.asset .asset_info .asset_type_icon
{
    position: absolute;
    height: 20px;
    width: 20px;
    top: 5px;
    background-image: url('/imgcss/assetTypeIcons.png');
    background-repeat: no-repeat;
}

.asset .asset_info .asset_type_icon_image {
    background-position: 0 0;
}

.asset .asset_info .asset_type_icon_video {
    background-position: -20px 0;
}

.asset .asset_info .asset_type_icon_webcam {
    background-position: -40px 0;
}

.asset .asset_info .title_and_desc {
    margin-left: 25px;
}

.asset .asset_info p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset .asset_info .title {
    display: block;
    font-size: large;
    margin: 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset .DeleteLink {
    color:#0088cc;
    text-decoration:none;
}
.asset .DeleteLink:hover {
    color:#005580;
    text-decoration:underline;
    cursor: pointer;
}

/* Add/Edit asset */
.select-field-wrapper.input-append {
    margin-bottom: 10px;
}

.select-field-btn {
    display: none;
}

.select-field-btn.visible {
    display: inline-block;
}
