/*
 * Metro UI CSS
 * (c) 2012-2013 by Sergey Pimenov
 * Licensed under the MIT License and Commercial
 *
 * Tiles.less
 *
 */

@badge-activity-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGMSURBVDhPvZMtTwNBEIbv2mtScaICcQJRgSgJCQIEhqSiAlEHAlFRwU/ov0AgUEgUsrIkiJIgMOAQJFSQQAIJJBWIu95Hj2eGvXIpB3W8yWTn452Z3dld25pDmqZuFEWdcrm8jr6JK7Bt+wb9Ft85+vsXswBxHHdIfmFNi4TYG7InXAp6ss52kCTJIc6e6KzSVbrdYzrYDaSFXZU4uEQ8x3FW1ZpMJge5Tn3IdQ3kID5iw4zHTqIsUEP3TWCA7WhgDjRZg/eUFRCR3Fl3KYJjyfALIUU46jHcsSlQl8FdmQJnhrcQJFbJ6QZB0LDDMNyS4XBFo1Kp9Gw4/wi247GLHmvNuBaC47Y5gtzIQB1mBmMGdDSdTpfV+QdM8vfcsqkap6ClgQIQa+a4bXViPGRO5ILjuBqYAwk7yIfhXcNz9CljDFkkST6P4JGjnHA7d+gBxAY3tIve1Khljbi1beKvakHQp0uhfTrMjvOL9H3fX9FE8OM7yxAhdem4QWHZkSufSoTYaaVSkY9kYFmfXgyTciI3uacAAAAASUVORK5CYII%3D);
@badge-alert-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFeSURBVDhPpZMtT8RAEIbb7YoTJ04gkQgQuBNIEpB4LD8AwQ9AkCCQhGAvQSAuKHCIE0gEP+DEISAhQYK4pE0/eWa65a7lSvh4k8nsvDv77sxs67UhSZLNNE0LZ3uO/gLj/J+hAkVRWI1+geqMCuR5fkKZoyiKViX+DuQu094wy7KhEmEYrkAk0qt4Nk5R77GszQCuE8fxIXxY8ZJjgiBY8n3/UcTwlsQDNifGmF29AcBtITyGOyan47gXXFfW2g/q+yi+VeptJhVgR1KRHp4HZI+bzknQlhYcvpQZuHRF8xmnCDyLL8MZEI9o4YkW3h1VB+o73DJp3to08l7xsw9Lng5i1EiSSV/Pcbdwzfk8MLcNqjIyye1STnHD5joln7lYcGWtXaP8gYsFfeJyHvR9waExt3wKsV74L3Brn/geu3OUDqiL1T7nNoEK8mLi9RUoZYqlsv4pqtf459/oeR8seozS7mDHCwAAAABJRU5ErkJggg%3D%3D);
@badge-attention-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEbSURBVDhPtZI9bsJAEIVZ7ANQ5gApEomChjoNBUUOkSJFivSUQE3JEThCCo4BkotcIVKKNEi2vP7hveVZrMFgKPJJo915szOzf51/Jc/zhbV2Jfc+kiR5QrLNsqzEMJJ8O0hcM1kWlWUZKtQOOo69ZGdpmn4ofB12QsI3k1BoRtP8F7Gell0GnT6rrpJ4HOfzUiU1ww7o9HepAGI2juNHyeegw7Ja3FRA9iW5jv9slSl0WqD2rEYjF7Hy68E7gCPNORpjpk44sg2CYAg969JTxVoywYIXmlyfAS77jRPDZ8PZN5j3KfiEYeh2yG07wQN5P4g/d9H9Hf5ZMkHM/QO5NbCzh6IoJgbVI/iNBdrALnY8An9X+w9rpLPbA/sADga+JgSiAAAAAElFTkSuQmCC);
@badge-available-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAKvSURBVHjahJA/bJR1HMY/31977x33r2LuClc1LYM9TSAUr5gqtkVJj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7sA4RTpdQKv20fcbcuy/IOZrGVbIHLpz7RHr52TJCYukuMeU+6WDBjdxej4UyLubMbm0KdBDyTzHWEyY01UEVRnA4Q8IEdaZVAFEW3yD/g+IzzFc6VuTFAHAPXO7vLKQi5q+suuOD+X15yx4ToEXON1QB3B6ZkC3Qd+q8Kaxzbo0TMCTLPefPAfPS8nTeOtnk1YEfMsf11pIm+y/P8BLusmaCZrevsLE1QO3F51FzopJyCQil2pAnFoLLxI7X6z8SxkVjgeMn4H/jGQz3Ht/BrY2MC85nrsI/sjNpDKzMTSODzHPELQ9EY1H9ndFqCHxC/JEnyrgs1guAPTvwreuY0IiIAAAAASUVORK5CYII%3D);
@badge-newMessage-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAC/SURBVDhP1ZE9DgIhFIQhobDYg1haWniMbSw9j0exsfMAeg9L7Sy2kPATnCFI2LgYtjJOMjx4vPkoED+X5OK934cQ+thpFOYvSqmdMMascVDOuQMcGn1GptNaL4W1dgBkMwOSw8jeBJszIKMwexFAN0A+wnQG0Lh4wv0EJIb5AO4fRX8MoDFAlZAyPJSztOSSfiYLAYeyxTcdURcIrqSUJ7iLA4UmAdQbgnqvhakqgEoQXQtTXwEtIuCa9n8pIV67VJf6AmhGmgAAAABJRU5ErkJggg%3D%3D);
@badge-paused-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAArSURBVDhPY/j9+7fDnz9//mPBCQxQgE8NE1QN2WDUgFEDQGDUgIE3gIEBAArtNKc4HT7sAAAAAElFTkSuQmCC);
@badge-playing-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEXSURBVDhPY4CBnz9/pvz+/dsFyiUaMEFpBiYmJhkgtf3v37/t////Z4GIEgZwA0CAkZGRBai5AmjIYSCtABXGC1AMQAIWf/78OQ/EEVA+ToDLAJBrBIDUcqBrZgNdwwMRxQQ4DYABoOYUoCGngYFsABVCAQQNgAINYCAf//XrVwGUDwfEGgDyEgfQkH5guGwGukoEKky8AUhA5sePH6DwAQOSDAC6YgIzM7MpJyfnHagQcQYAnfwGiD2BmguBhvyBCoMBMQbsYWFh0WVlZd0B5aMAnAYAbfzz79+/SqBmV6CtL6DCGACXAQ+ABliysbF1QPk4AYYBQI0rgH7VBWo+AxXCC+AGADV+AVKJQL9GAp0MYhMBGBgA8v5j1f90TA8AAAAASUVORK5CYII%3D);
@badge-unavailable-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAIGNIUk0AAHolAACAgwAA+f8AAIDoAABSCAABFVgAADqXAAAXb9daH5AAAAKASURBVHjalJK9axxXFMV/772ZzOysVqvRDgtaSSwpJYFwY3ATEpIm5KNLawgp3Ljz/5E2bu20CYQUBoMNNnaRMkUKqYiQtIgdCQ0TaVc7M29n3nspzC7GMYYcuMWFe7jnHI4YjUY453DOYYyh0+l8opT63vO8L8MwbAshqKqq0lo/c849rqrquXMOIcSbGY1GWGsxxny0urr6MI7jH5RSAFhrAZBSLvc8z3+dTqf3lFL/SCnxAIwxwdra2tP19fXPAC4vL8myjKIoAIiiiF6vR7/fJ0mS75RSH19dXX0hpbwWx8fHrKys/JwkyV1rLYeHh5yenuKc420lzjm2trbY3d3F8zzyPH8ynU6/ERcXF3fiOP7D930ODg44OjoiDMOl7AWstZRlyXA4ZH9/H2MM4/H4K+l53n3f98myjJOTE4Ig+A95kUMURZydnXF+fo5SiiiKHkjf9z9f+AaWst+HRfKL2yiKbssgCNrOOWaz2Xs/vwulFLPZjLquCcPwDcM5x//B2/dyPp9XC3/WWoQQHyQbY2i32/i+T1VVTtZ1/QogSZJlGz/02VpLkiQAlGX5l2ya5mHTNPT7fba3tynLctnAd8llWTIYDNjY2MBaS1EUP0qt9YvJZPI7wM7ODsPhEK01WmuapqFpGrTWVFXFYDBgb28PIQTX19ev67r+TYzHY7TW3W63+zKO41sAaZqSZRk3NzcAtNtter0em5ubAEwmk7/zPP9USjkWaZoyn89xziWdTudRt9v9etGFuq4B8H1/aSXP89dFUdx1zp065xBpmlLXNUIIjDG0Wq1vPc+7H4bhnVarhRCCsiwpiuJPY8xPRVH8EgQBxhistfw7ABpxTL93U9x/AAAAAElFTkSuQmCC);


@tileSmall:             150px;
@tileLarge:             310px;
@tileMargin:            5px;
@tileDouble:            @tileSmall * 2 + @tileMargin * 2;
@tileTriple:            @tileSmall * 3 + @tileMargin * 4;
@tileQuadro:            @tileSmall * 4 + @tileMargin * 6;


.tile-group {
    margin: 0;
    margin-right: @unit * 4;
    float: left;
    width: auto;
    height: auto;
    min-height: 1px;
    width: 802px;
}

.tile {
    display: block;
    float: left;
    background-color: @grayDark;
    width: @tileSmall;
    height: @tileSmall;
    cursor: pointer;
    box-shadow: inset 0px 0px 1px #FFFFCC;
    text-decoration: none;
    color: @white;
    .no-overflow;
    .pos-rel;
    #font > .normal;
    margin: 0 10px 10px 0;
    overflow: hidden;


    .offset1tile {
        margin-left: @tileSmall + @tileMargin *2;
    }
    
    .upset1tile {
        margin-top: -1 * (@tileSmall + @tileMargin *2);
    }
    
    .offset1tile {
        margin-left: @tileDouble + @tileMargin *2;
    }
    
    .upset1tile {
        margin-top: -1 * (@tileDouble + @tileMargin *2);
    }

    * {
        color: @white;
    }

    .tile-content {
        width: 100%;
        height: 100%;
        padding: 0;
        padding-bottom: 30px;
        vertical-align: top;
        padding: 10px 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        position: relative;

        .tertiary-text;
        color: @white;
        line-height: 16px;

        &:hover {
            color: @white;
        }

        h1,h2,h3,h4,h5,h6 {
            font-size: 14pt;
        }
        h1,h2,h3,h4,h5,h6,p {
            padding: 0;
            margin: 0;
            line-height: 24px;

            &:hover {
                color: @white;
            }
        }

        p {
            .tertiary-text;
            color: @white;
            line-height: 16px;
            overflow: hidden;
            text-overflow: ellipsis;
            &:hover {
                color: @white;
            }
        }
    }

    &.icon {
        & > .tile-content {
            padding: 0;

            & > img {
                position: absolute;
                width: 64px;
                height: 64px;
                top: 50%;
                left: 50%;
                margin-left: -32px;
                margin-top: -32px;
            }
 
            & > i {
                position: absolute;
                width: 64px;
                height: 64px;
                top: 30%;
                left: 50%;
                margin-left: -32px;
                //margin-top: -32px;
                font-size: 64px;
                -webkit-margin-before: -6px; // Workaround for webkit browsers
            }
        }
    }

    &.image, &.image-slider {
        & > .tile-content {
            padding: 0;

            & > img {
                width: 100%;
                height : auto;
                min-height: 100%;
                max-width: 100%;
            }
        }
    }

    &.image-set {
        & > .tile-content {
            margin: 0;
            padding: 0;
            width: 25% !important;
            height: 50%;
            float: left;
            border: 1px #1e1e1e solid;

            & > img {
                min-width: 100%;
                width: 100%;
                height : auto;
                min-height: 100%;
            }
        }

        .tile-content:first-child {
            width: 50% !important;
            float: left;
            height: 100%;
        }
    }

    &.double {
        width: @tileDouble;
    }
    &.triple {
        width: @tileTriple;
    }
    &.quadro {
        width: @tileQuadro;
    }
    &.double-vertical {
        height: @tileDouble;
    }
    &.triple-vertical {
        height: @tileTriple;
    }
    &.quadro-vertical {
        height: @tileQuadro;
    }


    .brand, .tile-status {
        .pos-abs;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: 30px;
        background-color: transparent;
        .clearfix;

        & > .badge {
            .bottom-right;
            right: 5px;
            margin-bottom: 0;
            color: @white;
            width: 34px;
            height: 28px;
            text-align: center;
            #font > .small-subheader;
            padding-top: 3px;

            &.activity {
                background: @blue @badge-activity-image 50% no-repeat;
            }
            &.alert {
                background: @blue @badge-alert-image 50% no-repeat;
            }
            &.available {
                background: @blue @badge-available-image 50% no-repeat;
            }
            &.unavailable {
                background: @blue @badge-unavailable-image 50% no-repeat;
            }
            &.away {
                background: @blue @badge-away-image 50% no-repeat;
            }
            &.busy {
                background: @blue @badge-busy-image 50% no-repeat;
            }
            &.newMessage {
                background: @blue @badge-newMessage-image 50% no-repeat;
            }
            &.paused {
                background: @blue @badge-paused-image 50% no-repeat;
            }
            &.playing {
                background: @blue @badge-playing-image 50% no-repeat;
            }
            &.error {
                background: @blue @badge-error-image 50% no-repeat;
            }
            &.attention {
                background: @blue @badge-attention-image 50% no-repeat;
            }
        }

        & > .name {
            .bottom-left;
            margin-bottom: 5px;
            margin-left: 15px;
            #font > .tertiary;

            color: @white;
            &:hover {
                color: @white;
            }

            & > [class*=icon-] {
                font-size: 24px;
            }

        }

        & > .icon {
            margin: 5px 15px;
            width: 32px;
            height: 32px;

            & > [class*=icon-] {
                font-size: 32px;
            }

            & > img {
                width: 100%;
                height: 100%;
            }
        }

        & > img ~ .text {
            .pos-abs;
            left: 60px;
            width: auto;
        }

        & > .text {
            position: relative;
            left: 8px;
            top: 5px;
            right: 50px;
            .tertiary-text;
            color: @white;
            line-height: 14px;
            width: 60%;
            padding: 0;
          margin: 0;

            &:hover {
                color: @white;
            }
        }
    }

    &:hover {
        outline: 3px #3a3a3a solid;
    }
}

.tiles {
    &.scale {}
}
