﻿@import "../../bootstrap/bootstrap.less";
@import "variables";
@import "mixins";
@import "utils";
@import "telerik-overrides";
@import "../../fontawesome/font-awesome";
@import "../icons/style.css";

body * {
    font-family: @font-family-sans-serif !important;
    //color: @gray;
}

// fixes an issue with 'body *' style 
[class^="icon-"], [class*=" icon-"] {
    font-family: 'ryder' !important;
    line-height: inherit !important;
}

// fixes an issue with 'body *' style 
[class^="fa"], [class*=" fa-"] {
    font-family: 'FontAwesome' !important;
    line-height: inherit !important;
}

body {
    background: @light-gray-a url("/images/ryder/tools-background.png") repeat;
}

//type
h1, h2, h3, h4, h5, h6 {
    color: @gray-darker !important;
    font-weight: bold !important;
    font-family: @font-family-sans-serif-b !important;
}

h1 { 
    text-transform: uppercase;
    i {
        margin-right: 12px;
        font-size: 22px;
    }
}
h2 { 
    i {
        margin-right: 12px;
        font-size: 22px;
    }
}
h3 {
    i {
        margin-right: 12px;
        font-size: 18px;
    }
}
h4 { 
    text-transform: uppercase !important;
    i {
        margin-right: 12px;
        font-size: 16px;
    }
}

p {
    text-align: left;
}

footer {
    margin: 20px 0;
    
    .container {
        hr {
            border-top: 2px solid darken(@light-gray-a, 10%);
        }

        ul {
            li {
                a.btn {
                    color: @gray-light !important;
                    padding: 6px 4px;
                    font-size: 11px;

                    &:hover, &:focus {
                        color: @gray !important;
                    }
                }

                &:first-child {
                    padding-left: 0;

                    a {
                        padding-left: 0;
                    }
                }
            }
        }

        .row {
            margin-bottom: 20px;
        } 
    }
}

.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
    margin-top: 1px;
}

.radio-inline, .checkbox-inline {
    label {
        font-weight: 400;
    }
}

.radio-list {
    td {
        margin-bottom: 0;
        padding-left: 20px;
        vertical-align: middle;

        label {
            font-weight: normal;
            margin-bottom: 5px;
            margin-right: 15px;
            margin-top: 3px;
        }

        input {
            margin-left: -20px;
            float: left;
        }
    }
}


// Buttons
.btn {
    text-transform: uppercase;
    font-weight: bold;
    //font-family: @font-family-sans-serif-b !important;
}

.btn-xs {
    //font-size: 10px;
}

.btn-md {
    font-size: 12px;
}

.btn-primary, .btn-info {

    &:hover, &:active {
        //color: @white !important;
        //text-decoration: none !important;
    }
}

/*.input-group-addon, .input-group-btn {
    vertical-align: top;

    .btn {
        padding: 6px 12px 7px;
        margin-left: -1px;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .btn {
        font-size: 12px;
    }

    .btn-lg-font {
        font-size: 18px;
        padding: 1px 9px 2px !important;
    }

    .input-group-addon, .input-group-btn {
        .btn {
            padding: 6px 12px;
        }
    }
}

@-moz-document url-prefix() {
    .input-group-addon, .input-group-btn {
        .btn {
            padding: 5px 12px 6px;
        }
    }
}*/


.nav > li > a:hover, .nav > li > a:focus {
    color: #fff;
}

// Alternate buttons
// --------------------------------------------------

.btn-default {
  .button-gradient-variant(@btn-default-color; lighten(@btn-default-bg, 10%); @btn-default-bg; @btn-default-border);
  color: @btn-default-color !important;
}
.btn-primary {
  .button-gradient-variant(@btn-primary-color; lighten(@btn-primary-bg, 10%); @btn-primary-bg; @btn-primary-border);
  color: @btn-primary-color !important;

   &.disabled,
    &[disabled],
    fieldset[disabled] & {
        &,
        &:hover,
        &:focus,
        &:active,
        &.active {
            background-color: @gray-light !important;
            background-image: none !important;
            border-color: @gray-light !important;
            cursor: default;
            filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
        }
    }
}

.btn-warning {
  color: @btn-warning-color !important;
}
// Danger and error appear as red
.btn-danger {
  color: @btn-danger-color !important;
}
// Success appears as green
.btn-success {
  color: @btn-success-color !important;
}
// Info appears as blue-green
.btn-info {
  color: @btn-info-color !important;
}

.btn-link {
    color: @link-color !important;
    height: auto !important;
    text-transform:none !important;

    &:hover, &:focus, &:active {
        color: @link-hover-color !important;
        //text-decoration: none !important;
    }

    &.blue {
        color: @blue !important;

        &:hover, &:focus, &:active {
            color: darken(@blue, 5%) !important;
            //text-decoration: none !important;
        }
    }

    .btn-link-no-pad {
        padding: 0px !important;
    }
}

.btn-link[disabled]:hover,
.btn-link[disabled]:focus {
    color: @gray-dark !important;
    text-decoration: none !important;
}


// Navs
.main-nav {
    box-shadow: 0 5px 5px rgba(0,0,0,0.3);
    //.pie();
    clear: both;
    margin-bottom:20px;
    background: #f9f9f9;
    border: 0;
    height: 73px;

    .container {

        ul {
            margin-left: 0;
            margin-top: 10px;
            
            li {
                text-align: right;
                vertical-align: top;
                padding: 0 20px;

                &.last-child {
                    padding-right: 0;
                }

                a {
                    color: @gray-darkest;
                    font-family: @font-family-sans-serif-b !important;
                    font-size: 13px;
                    text-transform: uppercase;
                    padding-left: 0;
                    padding-right: 0;

                    &:hover {
                        color: @ryder-red;
                        text-decoration: none;
                        background: none;
                    }
                }
            }
        }

        .navbar-brand {
            margin-top: 10px;
        }
    }
}

.sub-nav {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    #gradient > .vertical(#8b8b8b, #7c7c7c);

    a {
        text-shadow: none !important;
        text-decoration: none;
    }

    .search-bar {
        margin-top: 0px;
        background: @light-gray-a;
        height: 32px;

        .search-query {
            .box-shadow(~"inset 1px 1px 2px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.15)");
            border: 0 solid;
            height: 21px;
            margin: 5px 14px;
            font-size: 11px;
            padding-left: 35px;
            outline: 0;
            border-radius: 10px;
            //.pie();
            width: 150px;
            background-color: @gray-light;
            color: @white;

            &:focus,
            &.focused {
                border: 0 solid;
                .transition(none);
                text-shadow: none;
                //.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
                //.box-shadow(0 0 3px rgba(0,0,0,.15));
                outline: 0;
            }
        }

        .search-icons {
            position: absolute;
            top: 9px;
            margin-left: 24px;

            i, span {
                color: @white !important;
            }
        }
    }

    .toolbox {
        font-size: 12px;
        height: 32px;

        li {
            a {
                color: @white;
                #gradient > .vertical(@gray-dark, @gray-darker);
                text-transform: uppercase;
                font-weight: bold;
                
                span[class^="icon-"], span[class^="fa-"] {
                    font-size: 10px;
                    padding-right: 5px;
                    margin-bottom: 3px;
                    display: inline-block;
                    vertical-align: middle;
                    color: @red-darkest;

                    &:hover, &.active {
                        color: @red-darkest;
                    }
                }

                &:hover, &.active {
                    color: @gray-dark;
                    background: @light-gray-e url("/images/ryder/tools-background.png") repeat;
                    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
                }
            }

            &:first-child {
                a {
                    filter: none;
                    background: @red-darkest;
                    color: @white;

                    &:hover, &.active {
                        background: @light-gray-e url("/images/ryder/tools-background.png") repeat;
                        color: @red-darkest;

                        span[class^="icon-"] {
                            color: @red-darkest;
                        }

                        span[class^="fa-"] {
                            color: @red-darkest;
                        }
                    }

                    span[class^="icon-"] {
                        color: @white;
                    }

                    span[class^="fa-"] {
                        color: @white;
                    }
                }
            }
        }
    }
}

.hidden-nav {
    ul {
        li {
            border-left: 1px solid @light-gray-b;
            color: @gray;

            &:first-child {
                border-left: 0;
            }
        }
    }
}

.hidden-menu {
    background: #ededed url("/images/ryder/tools-background.png") repeat;
    top: 0;

    ul {
        margin: 0;
        padding: 0;

        li {
            margin: 10px 0 10px 20px;
            padding: 0 0 0 20px;
            line-height: 17px;

            a {
                color: @gray !important;
                text-decoration: none;
                text-transform: uppercase;
            }
        }
    }
}

.required {
    &:before {
        content: "\f069\00a0\00a0";
        font-family: 'FontAwesome';
        color: @ryder-red;
        font-size: 7px;
        vertical-align: super;
    }
}