﻿body {
    background-color: #f0f0f0;
}

.h1, .h2, .h3, h1, h2, h3 {
    margin-bottom: 20px;
}

.tile {
    position: relative;
    margin-bottom: 20px;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: zoomIn;
    animation-name: zoomIn;
    border-radius: 4px;
}

    .tile > .tile-header, .tile > .tile-footer {
        border-width: 0;
        padding: 8px 15px;
        position: relative;
        min-height: 41px;
    }

    .tile > .tile-header {
        border-bottom-width: 1px;
    }

    .tile > .tile-footer {
        margin-top: 20px;
        border-top-width: 1px;
    }

        .tile > .tile-footer + .tile-footer {
            margin-top: 0;
        }

        .tile > .tile-header > *, .tile > .tile-footer > * {
            padding: 0;
            margin: 0;
            display: block;
            font-weight: 400;
            font-size: 20px;
            line-height: 26px;
        }

    .tile > .tile-header > :first-child:not(.dropdown) {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .tile > .tile-header > .dropdown:not(:first-child) {
        width: 25px;
    }

    .tile > .tile-header > .dropdown > .dropdown-menu {
        min-width: 100%;
    }

        .tile > .tile-header > .dropdown > .dropdown-menu > li {
            margin-top: 5px;
            margin-bottom: 5px;
        }

            .tile > .tile-header > .dropdown > .dropdown-menu > li > input.form-control,
            .tile > .tile-header > .dropdown > .dropdown-menu > li > .ui-select-container {
                margin: 0 10px;
                width: auto;
                min-width: 200px;
            }

    .tile > .tile-header > .text-ellipsis {
        width: calc(100% - 100px);
    }

    .tile > .tile-header strong {
        font-size: 130%;
    }

    .tile > .tile-header > .tile-controls {
        position: absolute;
        top: 0;
        z-index: 9;
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
    }

        .tile > .tile-header > .tile-controls.tile-controls-toggle:not(.tile-controls-tabs) > *:not(.tile-dropdown) {
            border-top: 3px solid;
            border-top-color: transparent;
        }

        .tile > .tile-header > .tile-controls.tile-controls-toggle.tile-controls-tabs > * {
            border-bottom: 3px solid;
            border-bottom-color: transparent;
        }

        .tile > .tile-header > .tile-controls.tile-controls-toggle > *:last-child {
            border-top-right-radius: 4px;
        }

        .tile > .tile-header > .tile-controls.tile-controls-toggle a {
            padding-bottom: 3px;
            display: block;
        }


    .tile > .tile-header.tile-search .tile-controls input,
    .tile > .tile-header.tile-search .tile-controls .ui-select-match .ui-select-toggle {
        height: 30px;
        margin-top: 5px;
        line-height: 1.3;
    }

    .tile > .tile-header.tile-search .tile-controls .ui-select-match .ui-select-toggle {
        margin-top: -5px;
    }

    .tile > .tile-header > .tile-controls > li.tile-dropdown:first-child:last-child {
        border-left: none;
    }

    .tile > .tile-header > .tile-controls > li.tile-dropdown {
        width: 300px;
    }

        .tile > .tile-header > .tile-controls > li.tile-dropdown .ui-select-bootstrap > .ui-select-match > .btn {
            margin-top: -4.7px;
        }

        .tile > .tile-header > .tile-controls > li.tile-dropdown .ui-select-bootstrap > .ui-select-search {
            margin-top: 3px;
        }

    /*.tile > .tile-header > .tile-controls > li > input[placeholder="Search"] {
        margin-top: 3px;
    }*/

    .tile > .tile-header > .tile-controls > * {
        -moz-transition: all .2s ease-out;
        -o-transition: all .2s ease-out;
        -webkit-transition: all .2s ease-out;
        transition: all .2s ease-out;
        line-height: 43px;
        min-width: 41px;
        text-align: center;
        display: inline-block;
        height: 100%;
        padding: 0 5px;
    }

    .tile > .tile-header > .tile-controls.tile-controls-toggle > * {
        padding: 0 10px;
    }

    .tile > .tile-header > .tile-controls a,
    .tile > .tile-header > .dropdown a {
        text-decoration: none;
        font-size: 14px;
        width: 100%;
        height: 100%;
        display: block;
        /*padding: 0 10px;*/
    }

    .tile > .tile-body {
        position: relative;
        padding: 15px;
        height: calc(100% - 40px);
    }

        .tile > .tile-body .form-group {
            margin-left: 0;
            margin-right: 0;
        }

        .tile > .tile-body .btn[type="reset"],
        .tile > .tile-body .btn[type="submit"] {
            font-size: 15px;
            border: none;
            border-radius: 0;
        }

        .tile > .tile-body .btn.btn-default[type="reset"],
        .tile > .tile-body .btn.btn-default[type="submit"] {
            border: 1px solid #cdd3d7;
        }

            .tile > .tile-body .btn.btn-default[type="submit"]:hover,
            .tile > .tile-body .btn.btn-default[type="reset"]:hover {
                background-color: #f2f3f4;
            }

@-webkit-keyframes zoomIn {
    from {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3);
    }

    50% {
        opacity: 1;
    }
}

@-moz-keyframes zoomIn {
    from {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3);
    }

    50% {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
        transform: scale3d(.3, .3, .3);
    }

    50% {
        opacity: 1;
    }
}

@media(max-width: 768px) {
    .tile > .tile-header > :first-child:last-child:not(.dropdown) {
        width: 100%;
    }

    .tile > .tile-header > :first-child:not(.dropdown) {
        width: calc(100% - 25px);
    }

    .tile > .tile-header > .dropdown:not(:first-child) {
        display: block !important;
    }

    .tile > .tile-header > .dropdown + .tile-controls {
        display: none !important;
    }
}

@media(min-width: 768px) {
    .tile > .tile-header > :first-child:last-child:not(.dropdown) {
        width: 100%;
    }

    .tile > .tile-header > :first-child:not(.dropdown) {
        width: calc(100% - 120px);
    }

    .tile > .tile-header > .dropdown:not(:first-child) {
        display: none !important;
    }

    .tile > .tile-header > .dropdown + .tile-controls {
        display: block !important;
    }
}

.modal-content .tile {
    margin-bottom: 0;
    animation-name: none;
}

    .modal-content.tile.tile-default {
        box-shadow: 0;
    }

    .modal-content .tile > .tile-header > .tile-controls > * {
        -moz-transition: none;
        -o-transition: none;
        -webkit-transition: none;
        transition: none;
    }
