.form-error-wrapper{
    display: flex;
}

.media-tile{
    border: 5px solid transparent;
    border-radius: 8px;
}

.media-tile.selectable:hover{
    border-color: #f39c12;
}

.media-tile.selectable .thumbnail{
    cursor: pointer;
}

.loading-content::after{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
    background-color: rgba(0, 0, 0, 0.6);
    background-image: url('/images/bobcat-spinner.png')
}

.media-tile .thumbnail, .media-picker .thumbnail, .media-selector .thumbnail, .loading-thumbnail{
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 100%;
    margin-bottom: 5px;
}

.media-tile > .toolbar{
    display: block;
    width: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    color: darkgray;
    justify-content: flex-end;
    font-size: 130%;
}

.media-tile > .toolbar > .icon-btn{
    text-decoration: none;
    color: inherit;
    outline: 0;
    padding: 0 5px;
    cursor: pointer;
}

.media-tile.read-only > .toolbar > .icon-btn.edit-only{
    display: none;
}

.media-tile > .toolbar > .icon-btn:hover{
    color: #f39c12;
}

.media-tile > .name{
    display: flex;
    flex-wrap: nowrap;
    font-size: 120%;
    padding: 5px;
    cursor: default;
}

.media-tile > .name > .text {
    flex: 1 1 auto;
    font-weight: bolder;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.media-tile > .name > .date {
    color: gray;
    justify-content: flex-end;
    padding-left: 10px;
    flex: 0 0 auto;
}

.media-picker input[type='file']{
    display: none;
}

.media-picker input ~ .pick-btn{
    background-image: url('/images/file-upload-background.svg');
    cursor: pointer;
}

.media-selector:not(.small){
    position: relative;
    margin-bottom: 15px;
}

.media-selector .name{
    font-size: 130%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 10px;
}

.media-selector .btns{
    white-space: nowrap;
}

.media-selector .btns .remove-btn{
    margin-left: 5px;
}

.media-selector input.id-input[value=''] ~ .name,
.media-selector input.id-input[value=''] ~ .btns .remove-btn,
.media-selector input.id-input[value=''] ~ .btns .change-label,
.media-selector input.id-input:not([value='']) ~ .btns .select-label,
.media-selector.small input.id-input[value=''] ~ .thumbnail{
    display: none;
}

.media-selector:not(.small) .btns{
    position: absolute;
    top: 10px;
    right: 10px;
}

.media-selector.small{
    display: flex;
    align-items: center;
}

.media-selector.small .thumbnail{
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    padding-top: 0;
    margin-bottom: 0;
}

.media-selector.small .name{
    flex: 1 1 auto;
}

.form-group .form-error > *{
    color: red;
    font-size: 120%;
    padding-top: 5px;
    padding-right: 5px;
    vertical-align: initial;
}

.parameters-table tbody td:last-child {
    text-align: center;
}

.parameters-table .form-group, .attachment-list table .form-group {
    margin-bottom: 0;
}

.parameters-table a{
    text-decoration: none;
    color: inherit;
    outline: 0;
    padding: 0 5px;
    cursor: pointer;
    font-size: 150%;
}

.parameters-table a:hover{
    color: #f39c12;
}

.machine-embed-videos .url-warapper{
    display: flex;
    margin-bottom: 15px;
}

.machine-embed-videos .media-selector .name{
  display: none;
}

.machine-embed-videos .remove-embed-video{
    text-decoration: none;
    outline: 0;
    color: inherit;
    font-size: 150%;
    padding-left: 15px;
    text-align: center;
}

.loading-thumbnail{
    background-image: url('/images/bobcat-spinner.png') !important;
    background-size: auto !important;
}

.small .loading-thumbnail{
    background-size: contain !important;
}

#attachment-variants thead tr, #attachment-translations thead tr{
    height: 45px;
}

#attachment-translations .form-error-wrapper, #attachment-variants .form-error-wrapper {
  display: none;
}

#attachment-variants .remove-attachment-variant,
#attachment-translations .remove-attachment-column{
    text-decoration: none;
    outline: 0;
    color: inherit;
    font-size: 150%;
    padding: 0 6px;
    text-align: center;
}

#attachment-variants .remove-attachment-variant:hover,
#attachment-translations .remove-attachment-column:hover,
.machine-embed-videos .remove-embed-video:hover{
    color: #f39c12;
}

#attachment-translations tbody .column-wrapper, #attachment-translations .toolbar .btn{
    margin-top: 15px;
}

#attachment-translations th{
    min-width: 160px;
}

#attachment-translations th input{
    padding-right: 12px;
}

#attachment-translations th .devider ~ div input,
#attachment-translations th .devider ~ input{
    width: 50px;
}

#attachment-translations > tbody .variant-translation-wrapper{
    display: flex;
}

#attachment-translations > tbody .variant-translation-wrapper > *:first-child{
    margin: 5px 10px 0 0;
}
#attachment-translations > tbody .variant-translation-wrapper > *:last-child{
    flex: 1 1 auto;
}

#attachment-translations > tbody .column-wrapper{
    display: flex;
}

#attachment-translations > tbody .column-wrapper .form-group{
    flex: 1 1 auto;
}

#googleMapCanvas{
    width: 100%;
    height: 100%;
    min-height: 320px;
    position: absolute;
}

@media screen and (min-width: 992px) {
    .dealer-detail-content {
        display: flex;
    }
}

.map-canvas-wrapper{
    position: relative;
    flex: 1 1 auto;
}

.map-canvas-wrapper .coordinates-toolbar{
    background-color: rgba(255, 255, 255, 0.7);
    padding-top: 10px;
    font-size: 130%;
}

.import-detail-import-rows-table{
    overflow: auto;
    margin-bottom: 20px;
}

.import-detail-import-rows-table td{
    white-space: nowrap;
}

.dealer-import-row-detail .form-group,
.dealer-import-row-detail .table{
    margin-bottom: 0;
}

.dealer-import-row-detail.read-only .modal-footer{
    display: none;
}
