/* Basic style for tiles */
.tile-title
{
    font-size: 120%;
    font-weight: bold;

    margin-bottom: 1em;
}
.tile-footer
{
    text-align: right;
}

/*loading mask*/
.loading-mask
{
    position: absolute;
    z-index: 99;
    top: 0;
    left: 0;

    display: none;

    width: 100%;
    height: 100%;

    opacity: .6 !important;
    background: #000 url('++resource++collective.cover/img/spinner.gif') scroll no-repeat center center;
    background-color: #000;
}
.loading-mask.show
{
    display: block;
}
.loading-mask.remove-tile
{
    background-color: #833434;
}

.template-compose #content .tile
{
    padding-top: 1.2em;

    outline: 1px dotted #999;
}
.template-compose #content .tile.ui-draggable:hover
{
    cursor: move;
}
.template-compose #content .tile.ui-draggable-dragging
{
    overflow: hidden;

    height: 114px;

    cursor: move;
}
.template-compose .tile-container
{
    position: relative;
}

.template-compose .tile-type-name
{
    font-size: 95%;
    font-weight: bolder;

    position: absolute;

    width: 100%;

    text-align: center;

    opacity: .3;
}
.template-compose .edit-tile-link,
.template-compose .contentbody-link,
.template-compose .collection-link
{
    line-height: 1em;

    position: absolute;
    top: 0;

    height: 1em;
}
.template-compose .contentbody-link,
.template-compose .collection-link
{
    right: 0;
}

.tile-select-button
{
    cursor: pointer;
}

.tile-move
{
    position: absolute;
    top: 0;
    right: 0;

    overflow: hidden;

    width: 16px;
    height: 16px;

    cursor: pointer;
    white-space: nowrap;
    text-indent: 101%;

    background: transparent url('++resource++collective.cover/img/move.png') scroll no-repeat top center;
    background-size: 100%;
}

.tile-remove-item
{
    font-size: 1px;

    position: absolute;
    top: 0;
    right: 0;

    width: 14px;
    height: 14px;

    cursor: pointer;

    background: transparent url('++resource++collective.cover/img/remove.png') scroll no-repeat top center;
    background-size: 100%;
}

.tile-remove-item:hover
{
    background: transparent url('++resource++collective.cover/img/remove.png') no-repeat scroll center -14px;
    background-size: 100%;
}
.tile-remove-item .text
{
    visibility: hidden;
}

/*drag and drop*/

.ui-sortable-placeholder
{
    visibility: visible !important;

    outline: 1px dashed green;
    background-color: #9ad39d !important;
}
.ui-sortable > div:hover
{
    cursor: move;
}
.tile > .ui-sortable > .ui-sortable-helper
{
    cursor: move;

    opacity: .5;
    outline: 1px solid #333;
}
.template-compose #content .tile
{
    min-height: 100px;
    margin-bottom: 1em;
}
.ui-state-default .loading-mask
{
    display: block;

    opacity: .8 !important;
    background: #eee url('++resource++collective.cover/img/drophere.png') scroll no-repeat center center;
}
.ui-state-hover .loading-mask
{
    display: block;

    background-color: #b4fca3;
}
.template-compose #content .sortable-tile .list-item:hover
{
    outline: 1px dotted #999;
}


/* images */
.tile img.right
{
    float: right;

    margin: 0 1em .5em 0;
}
.tile img.left
{
    float: left;

    margin: 0 1em .5em 0;
}

/* conflicts */
table.invisible
{
    visibility: visible;
}
.close
{
    opacity: 1;
}

/*Skins*/
.tile-edge
{
    padding: 5px;

    border: 1px solid #ddd;
    border-radius: 4px;
}

.tile-dark
{
    padding: 5px;

    border-radius: 4px;
    background: #ddd;
}

.tile-shadow
{
    padding: 5px;

    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-box-shadow: 0 5px 10px #c3c3c3;
       -moz-box-shadow: 0 5px 10px #c3c3c3;
            box-shadow: 0 5px 10px #c3c3c3;
}

.textline-sortable-element.expired
{
    border: 1px solid red;
}
.textline-sortable-element .tileProperties .tileExpired
{
    font-weight: bold;

    color: red;
}

/* Tile Calendar */
.cover-calendar-tile .calendar-tile-header
{
    font-weight: bold;
    line-height: normal;

    padding: .42em 1em;

    text-align: center;

    background: #ddd;
}
#content .cover-calendar-tile a.calendar-tile-prev,
#content .cover-calendar-tile a.calendar-tile-next
{
    margin: 0 -.5em;
    padding: 0 1em;

    border-bottom: none;
}
.cover-calendar-tile a.calendar-tile-prev
{
    float: left;
}
.cover-calendar-tile a.calendar-tile-next
{
    float: right;
}
