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

@logo: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGESURBVFhH7ZevTsNQFIfbZgKxB9gjIHgABAIcS0CSQIJE4LEIEgQCyQNMIiHhIRAgEAgECWKIySUTCEjLd3t/Cyml3em6DtMvOTn33PM3XdvbBU2SJMmKlssnjuNtZIisa2t50HQNmXAFEvQHsi9X89CzR8M31/wXZwppDpp0aX7v++XBd41q7r5Qg1I0YE8pQYixqbWFpzAMx1pnoPA5vlOZpdDzHdWPoujZGVX4c1iaH8pvhpwJshOpxtxQawM18JYdrlYXdbKIAa4o1pFphrxX8g5qD0CRPsUeZZogfkzeLjJaxAAjZIuit9oqhbgv4veQl+lGFQqfGHwdbqpLH1YMMUdK8WjfysxHlgbHyKfiM7B/obAf5LNiemfQyB1E6VkwBfsGlb9ZvduM+aVFQ3cgDV0S+gHlHrs8LqAC5gEcxLuD6c5pbeVJy9qpNECLCV1aK+lPwO86kD0TF5s2KqD2m7Au7QDtAO0A7QD/PsBcf0zIWWVdfMRmcd+M/vsvRxB8A6+/IU2N93KYAAAAAElFTkSuQmCC);
@img-back-button: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAbrSURBVGhDzZpPaBRXHMdnZkMJsocchO4hJhYsBAm9GEVxYyJ4ULSQoEIpuQQqeOghpUorIlWsKNQSCx56KQgKFhQSUVBoS02yMYKR9hCk0FCN7mELOaSYSg7ZnX6+b94uyWY3zmw3u/lCMvP+zHvf7+/93m/ee7OuUyV07d69M+d53a7vv+u4brPvOAnH95tNoetm6ChD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9nG0opiKnjlJXxiCHAc5fhfeLNavAZ/TnflT8nYXn1ir2X4oRfwntc70iwCtcsHUAu3fNjRxM7KAQCi8t2j15Gnhr3b/8ToIm4DIHhqLz9rWiiU0K+BKOENTbWgO3+IVPGu8H6n9ZPYA+pyj+QJY7YqDgT4qPvjV+YO8ZdNGaDtg8RPHQ6o/k3K9UHKgXn7WBJgF9sa4OtLU26suqAWzG57Y1hdBrL3JQ0qkQbJX6tX9kXAgnfp0jtG9DdU4iTqq19RiUkHVgRs9N0Bf0meiTwNa6t+qwpAnoS+yNbzsM/Qae1CSkP7NrpU820LgppuGMYw4BY2qfBPoXvSVvy9jeGeNL4FZ4CjQOqm0S6I4zJivGDo/mnRc5JGfCGFfLJNAXr1XZy58aYK54seug40Vyrp7+lU8CfXGS64qxO4CvD/twLqLeeUQJoH9lk5Bur9HpVKQUZwoRxN+c6fnICoEP+6GwS1I/Z6Ji0EG/mgN1pVrGc9GwDWBba7M7Tzs4tOlQlI8sfXc1KrCp99OacwJQV3q/52qrEHTszkdqAdX2JLClXz44L9DWgTIdDAgvDYH26Fc+CcCGYr77SutnE5cDY3V31X3lo0RrcuauDNCtnSw+1mzf+Qwo6Lnyof2UIvuGGBnomkdn2OcF2vqxyoVNP6BIV07hyicDPOUqtfWWvsFhjOJ8ESq8voWSFmxIrw8DepXi1gfPWb4DehY0MmUzlHRS3kaZhDbfEOGimyK76JZjx6H5gi88pfMvw78EffbcMQMjuyFdboe1MSrQpdugK1Tru4vDmN4Xp6H17UzGnL4H6QzWk85JRXIIDQIOKPGl+7RjkMLE/bsNYeCyHMhcSEEKKf0fxb+Uf1O+pRwBU1PfACwo53PCh30zAAAAAElFTkSuQmCC);


.modern-ui-logo, .metro-ui-logo {
    height: 28px;
    width: 28px;
    display: block;
    background-image: @logo;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.back-button {
    height: 32px;
    width: 32px;
    display: block;
    background-image: @img-back-button;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    &.big {
        height: 48px;
        width: 48px;
        left: 36px;
        top: 40px;
    }
    &.page-back {
    }

    &.white {
        background-image: @img-back-button-white;
    }
}

button, .button {
    #font > .control;
    font-size: 14px;

    display: inline-block;
    padding: 4px 12px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle !important;

    min-width: 90px;
    min-height: 32px;
    height: 32px;
    background-color: #ccc;
    border: 1px transparent solid;
    color: #353535;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 0;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 4px 10px;
    position: relative;
    outline: none;

    &.standart {
        min-width: 90px;
        min-height: 32px;
    }

    &:active, &.default:active {
        //background: inherit;
        //color: inherit; 
        top: 1px;
        left: 1px;
    }

    &:disabled, &.disabled {
        background-color: #eaeaea;
        color: #bebebe;
        cursor: not-allowed;
    }

    &.default {
        background-color: #008287;
        color: #fff;
    }

    &:hover, &.default:hover {
        color: inherit;
    }

    &:focus {
        outline: 0;
        border: 1px #353535 dotted;
    }
}

a.button {
    //padding: 8px 10px;
    &:hover, &:active {
        color: inherit;
    }
    &.big {
        padding: 14px 10px;
    }
    &.disabled:hover {
        color: #bebebe;
    }
}

button, .button, .tool-button {
    &.mini {
        min-height: 20px;
        min-width: 20px;
        height: 14px;
        font-size: .75em !important;
        padding-top: 0px !important;
    }
    &.big {
        min-height: 48px;
        height: 48px;
        font-size: 1.2em;
    }
}

.tool-button {
    &.mini {
        min-width: 22px;
        width: 22px;
    }

    &.big {
        min-width: 48px;
        width: 48px;
    }
}

.command-button {
    display: inline-block;
    width: 330px;
    text-align: left;
    padding: 10px 20px;
    height: auto;
    color: #000;
    background-color: #ccc;
    #font > .normal;

    & > small {
        display: block;
        #font > .normal;
        font-size: 10pt;
        color: #505050;
    }

    &.default {
        & > small {
            color: #ccc;
        }
    }
}

.tool-button {
    .button;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    text-align: center;
    position: relative;
    padding: 0;

    img {
        width: 16px;
        height: 16px;
        position: absolute;
        top: 8px;
        left: 8px;
    }
}

.toolbar {
    a, button {
        .tool-button;
        margin-right: 0px;
    }

    a {
        padding: 5px 0;
    }
    .clearfix;

    .toolbar-group {
        margin-right: 20px;
        margin-bottom: 10px;
        float: left;
    }
}
.toolbar-vertical {
    width: 33px;
    float: left;
    margin-right: 10px;

    a, button {
        .tool-button;
        margin-bottom: 5px;
    }

    a {
        padding: 5px 0;
    }
    .clearfix;

    .toolbar-group {
        margin-bottom: 20px;
    }
}

.image-button {
    position: relative;
    border: 0;
    padding-right: 45px;

    img, &:active img {
        position: absolute;
        right: 0;
        margin-left: 32px;
        padding: 5px;
        height: 100%;
        top: 0px;
        margin-left: 0px;
        box-sizing: border-box;
        border: 1px transparent solid;
        z-index: 2;
    }
}

.button-set {
    a, button {
        margin-right: 0;
        text-align: center;
        img {
            background-color: transparent;
        }
    }
    a {
        padding: 5px 0;
    }
    button.active {
        background-color: #008287;
        color: #fff;
    }
}

.shortcuts {
    margin-bottom: 10px;
}

.shortcut {
    width: 92px;
    height: 92px;
    display: inline-block;
    //padding: 18px 0;
    margin: 0 10px 10px 0;
    vertical-align: top;
    text-decoration: none;
    background: #F3F3F3;
    text-align: center;
    cursor: pointer;
    border: 0;
    border-bottom: 2px transparent solid;
    position: relative;

    &:hover {
        border-color: red;
        //box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    &:active {
        //box-shadow: none;
        background: #F3F3F3;
        top: 1px;
        left: 1px;
    }

    &:last-child {

    }

    & > .icon {
        margin-top: .25em;
        margin-bottom: .25em;
        font-size: 32px;
        color: #888;
        display: block;
        float: none;
    }
    & > .label {
        display: block;
        font-weight: 400;
        color: #666;
        background: transparent !important;
    }

    & > .badge {
        position: absolute;
        right: 0;
        top: 0;
        background-color: @blue;
        padding: 5px;
        margin: 0 !important;
        text-align: center;
        display: block;
        font-size: 9pt;
        color: #fff;
        line-height: 11pt;
    }
}

a.shortcut {
    padding: 12px 0;
    .label {
        font-size: 9pt;
    }
}

.pagination {
    width: auto;
    //padding: 10px 10px 5px;
    margin-bottom: 10px;

    & > ul {
        .unstyled;
        margin: 0;

        li {
            display: inline-block;
            margin-right: 1px;
            position: relative;

            a {
                .tool-button;
                position: relative;
                display: block;
                float: left;
                font-size: 10pt;
                padding: 5px;
                min-width: 32px;
                height: 32px;
                text-align: center;
                //background-color: #fff;
                vertical-align: middle;
                cursor: pointer;
                //border: 1px @blue solid;
                margin-right: 1px;

                &:hover {
                    background-color: @darken;
                    color: @white;
                }

                &:active {
                    top: 1px;
                    left: 1px;
                    //background-color: @blueDark;
                }
            }

            &.first, &.prev, &.next, &.last {
                a {
                    font-size: 20pt;

                    &:before {
                        position: absolute;
                        left: 50%;
                        top: 0;
                        margin-left: -7px;
                        content: "\25C4";
                        font-size: 1.5em;
                    }
                }
            }

            &.first {
                a {
                    &:before {
                        content: "\AB";
                        margin-left: -10px;
                    }
                }
            }
            &.prev {
                a {
                    &:before {
                        content: "\2039";
                    }
                }
            }
            &.next {
                a {
                    &:before {
                        content: "\203A";
                    }
                }
            }
            &.last {
                a {
                    &:before {
                        content: "\BB";
                        margin-left: -10px;
                    }
                }
            }

            &.active {
                a {
                    background-color: #008287 ;
                    color: @white;
                }
            }
            &.disabled, &.spaces {
                a {
                    background-color: darken(@white, 5%);
                    color: #1e1e1e;
                    cursor: not-allowed;

                    &:active {
                        top: 0;
                        left: 0;
                    }
                }
            }
            &.disabled {
                a {
                    //border-color: @lighten;
                    color: #1e1e1e;
                }
            }


            &.spaces {
                a {
                    background-color: @white;
                    cursor: default;
                }
            }
        }
    }
}
