@import "../Declarations";
@import "../normalize";
@import "../FontAwesome/font-awesome";

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(to bottom, darken(@ButtonColour, 10%), @ButtonColour) left top repeat-x @ButtonColour;
    font-size: 16px;
    font-family: @FontFamilyBody;
    color: @white;
    cursor: auto;
}

h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
}

div#page {
    margin: 0px;
    padding: 0px;
    height: 100%;
}

header, #header {
    position: relative;
    background-color: @HeaderBackgroundColour;
    margin: 0;
    padding: 0;
    height: 34px;

    #heading {
        margin-left: 4px;
        display: inline-block;
        font-size: 1.1em;
        font-weight: bold;
        line-height: 34px;
        text-transform: uppercase;
    }

    #credits {
        font-family: @FontFamilyHeading;
        font-weight: @FontWeightHeading;
        font-stretch: @FontStretchHeading;
        font-size: .8em;
        position: absolute;
        top: 0;
        right: 4px;
        height: 34px;

        i {
            margin-bottom: -10px;
            display: inline-block;
            height: 34px;
            width: 34px;
            background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QwYAS0HjaWSWwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAGfklEQVRYw8WYyY8cVx3HP+/V2lW9zj7d9nhsj7GJnThWBMZIJCGAc4gPkZA4gBQucADBnwBCkThzhotjARHiwHLAYCJHLAokYBNCMsSOl4wntmfpWbqnu6q71sfB1abVmcU2Rinpp37VXaX36e/v1a++vyfY+RA8nEM9yCTiIcOonaD0LSC2igeFGIwPwYhNxrIvtCx65/ejTm+itC+SLHrnd68bVKQ3oZGF1Tfu/XY/IL0JoyyCvjF9MHdBetL3IGwgDxSyzx6Qdo9p6qUg6QPwgA2gnV0T9adJH0hNDyQPVIEZYBxwATMDl/cI0ktFmE2+BFwFbg+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oePzRKvdHh6aMVltZ8fnT2EpYheWR3ifqaj0oVQpqQRKg0wRzdv6MiaqsnJ1UJSteR4k551wwL09SYquX50lMzkCSceeUKq62ANE3ZaCc0vRCFQghJnARE3jpSNzGLk9saqO0UUWGYoBk2UhqQJiRBG5l30ITkwuU6s3Nr+EGMa+vEqYbXiXh/sU1txOXSe3PEXh2VdqntP8rkzMeZv481ovqdldANpF1CGA6kiqTbwiaP1zb42fn3MAxJyTFRCOIkJUoU0xMFnjw6wdhYnnC5QNjZxdxqSsPz+22jGvSs+jaGJtFMF6EZCE0HzaA2XqblByw0VjFMmzhVkAbYlo7XiZipljh1YoqvPL2XxUaXl87P49+exakdY3rSZtAMbQXSr0YEhJqmoxkOhp1nbGKYW+sh0ihg2SaFnInrGBycKlN0DPww5u2rq5w+e4lrt5rcWGwh8iPI8hTSqWBpAZlbizYD0jdRo+cx26ZbRqW7cZwyq11JcdilUrb42hcOcGhPmYUVn+v1No1WiK7rPDYzyuJah3/PrWObGrXJKu3iMGmSkrM1gFafO0s386yDZtcDlo58rEo3qqLpGq6tUR2yKeR0VtoRv379JkNFi4myzUy1SNOLaHcjpidiWn5IJ0zQDR2VJkSJQNdSgOXMKvZUubtWxIAP0TMHXxowz/kB83wvR795bmUQVzLz3MyUiXvKiC08a6+dKGb+1f4f24nuQDvRHVRF36Qr6zU/SXbD/6vBSjdLzUfecoqPqAlX2zXhm30vHsLWhNpkrO53E+ZhbdLsuFnzH7m0z70UYv1iAAAAAElFTkSuQmCC) /*Images/Heading.png*/;
        }
    }
}

#statusConnecting, #statusError {
    display: none;
}

#mainSection {
    display: block;
    position: relative;
    height: calc(~"100% - 34px");

    .list {
        height: calc(~"100% - 25px");
        float: left;
        margin: 15px 0 0 6px;

        h3 {
            font-family: @FontFamilyHeading;
            font-weight: @FontWeightHeading;
            font-stretch: @FontStretchHeading;
            text-transform: uppercase;
            margin-left: 10px;
            margin-bottom: 10px;
            font-size: 1.4em;
            height: 30px;
        }

        div.content {
            background: rgba(255, 255, 255, 0.2);
            height: calc(~"100% - 30px");
            overflow: hidden;

            div.noContent {
                font-family: @FontFamilyHeading;
                font-weight: @FontWeightHeading;
                font-stretch: @FontStretchHeading;
                font-size: 1.1em;
                text-align: center;
                text-transform: lowercase;
                margin-top: 40px;
                color: rgba(255, 255, 255, 0.8);
            }

            ul {
                padding: 0;
                margin: 0;
                list-style: none;

                li {
                    position: relative;
                    margin: 4px 2px;
                    background-color: #fff;
                    border: 1px solid lighten(@ButtonColour, 10%);
                    padding: 6px 8px;
                    color: @black;
                    clear: both;
                    overflow: hidden;
                    white-space: nowrap;
                    -ms-text-overflow: ellipsis;
                    -o-text-overflow: ellipsis;
                    text-overflow: ellipsis;

                    .small {
                        display: inline-block;
                        float: right;
                        font-size: 0.8em;
                        margin-top: 0.1em;
                    }

                    &.alert {
                        background-color: @StatusError;
                        color: @white;
                    }

                    &:after {
                        clear: both;
                        content: ".";
                        display: block;
                        height: 0;
                        visibility: hidden;
                        font-size: 0;
                    }
                }
            }
        }
    }

    #inProcess {
        width: calc(~"28% - 8px");
    }

    #readyForReturn {
        width: calc(~"36% - 8px");
    }

    #waitingForUserAction {
        width: calc(~"36% - 8px");
    }
}

footer, #footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, fadeout(@ButtonColour, 100%), @ButtonColour 90%) left top repeat-x;
    display: block;
}

body.status-connecting {
    #statusConnecting {
        display: inline-block;
        color: @StatusAlert;
        margin-left: 14px;
        line-height: 34px;

        span {
            padding-left: 4px;
            font-size: .8em;
        }
    }

    #mainSection {
        display: none;
    }
}

body.status-error {
    #statusError {
        display: inline-block;
        color: @StatusAlert;
        margin-left: 14px;
        line-height: 34px;

        span {
            padding-left: 4px;
            font-size: .8em;
        }
    }

    #mainSection {
        opacity: 0.3;
    }
}
