﻿/*
 * Bootstrap customizations
 */

/* Scaffolding */
a.text-link {
    color: #333;
}

a.text-link:hover {
    color: #000;
}

/* Buttons */
.btn-icon, .btn-image {
    color: inherit;
    padding: 3.5px 9px;
}

.btn-icon .glyphicon {
    font-size: 20px;
}

.btn-icon.btn-lg, .btn-image.btn-lg,
.btn-group-lg > .btn-icon, btn-group-lg > .btn-image {
    padding: 7px 13px;
}

.btn-icon.btn-lg .glyphicon, .btn-group-lg > .btn-icon .glyphicon {
    font-size: 24px;
}

.btn-icon.btn-sm, .btn-image.btn-sm,
.btn-group-sm > .btn-icon, btn-group-sm > .btn-image {
    padding: 2.5px 7px;
}

.btn-icon.btn-sm .glyphicon, .btn-group-sm > .btn-icon .glyphicon {
    font-size: 18px;
}

.btn-icon.btn-xs, .btn-image.btn-xs,
.btn-group-xs > .btn-icon, btn-group-xs > .btn-image {
    padding: 0.5px 4px;
}

.btn-icon.btn-xs .glyphicon, .btn-group-xs > .btn-icon .glyphicon {
    font-size: 14px;
}

/* Dropdowns */
.dropdown-toggle .glyphicon {
    top: 3px;
    float: right;
}

/* Dropright */
.dropright {
    position: relative;
}

.dropright > .btn > .caret {
    border-left-color: #000 !important;
}

.dropright .caret {
    content: "";
    border-top: 4px solid transparent;
    border-left: 4px solid;
    border-right: 0;
    border-bottom: 4px solid transparent;
}


@media(min-width: 768px) {
    .dropright .dropdown-menu {
        top: 0;
        left: 100%;
    }
}

@media(max-width: 767px) {
    .dropright .dropdown-menu {
        right: 0;
        margin-left: 2px;
    }
}
.dropright .btn-lg .caret {
    border-width: 5px 0 5px 5px;
}

.nav .dropright .caret {
    float: right;
}

/* Inputs */
input[type="file"].form-control {
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* Forms */
span.control-label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-horizontal .checkbox-list {
    min-height: 27px;
    padding-top: 7px;
    vertical-align: middle !important;
}

/* Images */
.img-svg {
    height: 100%;
}

/* Media */
.media.media-center, .media.media-inline {
    display: table;
}

.media.media-center .media-body, .media.media-inline .media-body {
    width: auto;
}

.media.media-center {
    margin-right: auto;
    margin-left: auto;
}

/* Modals */
.modal-full {
    margin: 0;
    height: 100%;
    width: 100%;
}

.modal-full .modal-content {
    border: none;
    border-radius: unset;
    min-height: 100%;
}

@media (max-width: 767px) {
    .modal-xs-full {
        margin: 0;
        height: 100%;
        width: 100%;
    }

    .modal-xs-full .modal-content {
        border: none;
        border-radius: unset;
        min-height: 100%;
    }
}

@media (max-width: 991px) {
    .modal-sm-full {
        margin: 0;
        height: 100%;
        width: 100%;
    }

    .modal-sm-full .modal-content {
        border: none;
        border-radius: unset;
        min-height: 100%;
    }
}

@media (max-width: 1199px) {
    .modal-md-full {
        margin: 0;
        height: 100%;
        width: 100%;
    }

    .modal-md-full .modal-content {
        border: none;
        border-radius: unset;
        min-height: 100%;
    }
}

/* Pagination */
.pagination {
    margin: 5px 0;
}

.pagination .form-control {
    display: inline-block;
    line-height: normal;
    height: 20px;
    padding: 0;
    text-align: center;
    width: 20px;
}

/* Sidebar */
.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        border: 1px solid transparent;
        border-radius: 4px;
        display: block;
        padding: 20px;
        z-index: 1000;
    }

    .sidebar-default {
        background-color: #f5f5f5;
        border-color: #e7e7e7;
    }

    .sidebar-fixed-left,
    .sidebar-fixed-right {
        border: none;
        border-radius: 0;
        top: 0;
        bottom: 0;
        position: fixed;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .sidebar-fixed-left {
        border-right: 1px solid #eee;
        left: 0;
    }

    .sidebar-fixed-right {
        border-left: 1px solid #eee;
        right: 0;
    }
}

/* Sidebar navigation */
.sidebar-nav {
    margin-right: -21px; /* 20px padding + 1px border */
    /*margin-bottom: 20px;*/
    margin-left: -20px;
}
.sidebar-nav > li > a {
    padding-right: 20px;
    padding-left: 20px;
}
.sidebar-nav > .active > a,
.sidebar-nav > .active > a:hover,
.sidebar-nav > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}

/* Tables */
/* I hate this override... I am going to remove it and hope for the best... 
    the only place I think we might be using it is in the admin, which we want to re-do anyway.
.table .btn {
    padding-top: 0;
    padding-bottom: 0;
} */

.table .btn-link {
    padding-left: 0;
}

.table .checkbox {
    margin: 0;
}

.table .form-control-static {
    min-height: 0;
    padding: 0;
}

.table > thead > tr > th, 
.table > tbody > tr > th, 
.table > tfoot > tr > th, 
.table > thead > tr > td, 
.table > tbody > tr > td, 
.table > tfoot > tr > td {
    vertical-align: middle;
}

.table > thead > tr > th.text-center, 
.table > tbody > tr > th.text-center, 
.table > tfoot > tr > th.text-center, 
.table > thead > tr > td.text-center, 
.table > tbody > tr > td.text-center, 
.table > tfoot > tr > td.text-center {
    text-align: center;
}

.table > thead > tr > th.text-left, 
.table > tbody > tr > th.text-left, 
.table > tfoot > tr > th.text-left, 
.table > thead > tr > td.text-left, 
.table > tbody > tr > td.text-left, 
.table > tfoot > tr > td.text-left {
    text-align: left;
}

.table > thead > tr > th.text-right, 
.table > tbody > tr > th.text-right, 
.table > tfoot > tr > th.text-right, 
.table > thead > tr > td.text-right, 
.table > tbody > tr > td.text-right, 
.table > tfoot > tr > td.text-right {
    text-align: right;
}

.table > thead > tr > th.middle-align, 
.table > tbody > tr > th.middle-align, 
.table > tfoot > tr > th.middle-align, 
.table > thead > tr > td.middle-align, 
.table > tbody > tr > td.middle-align, 
.table > tfoot > tr > td.middle-align {
    vertical-align: middle;
}

.table > thead > tr > th.top-align, 
.table > tbody > tr > th.top-align, 
.table > tfoot > tr > th.top-align, 
.table > thead > tr > td.top-align, 
.table > tbody > tr > td.top-align, 
.table > tfoot > tr > td.top-align {
    vertical-align: top;
}

.table > thead > tr > th.bottom-align, 
.table > tbody > tr > th.bottom-align, 
.table > tfoot > tr > th.bottom-align, 
.table > thead > tr > td.bottom-align, 
.table > tbody > tr > td.bottom-align, 
.table > tfoot > tr > td.bottom-align {
    vertical-align: bottom;
}

/* Utilities */
.middle-align {
    vertical-align: middle;
}

.top-align {
    vertical-align: top;
}

.bottom-align {
    vertical-align: bottom;
}

@media (min-width: 480px) {
    .text-xs-center {
        text-align: center;
    }

    .text-xs-left {
        text-align: left;
    }

    .text-xs-right {
        text-align: right;
    }
}

@media (min-width: 768px) {
    .text-sm-center {
        text-align: center;
    }

    .text-sm-left {
        text-align: left;
    }

    .text-sm-right {
        text-align: right;
    }
}

@media (min-width: 992px) {
    .text-md-center {
        text-align: center;
    }

    .text-md-left {
        text-align: left;
    }

    .text-md-right {
        text-align: right;
    }
}

@media (min-width: 1200px) {
    .text-lg-center {
        text-align: center;
    }

    .text-lg-left {
        text-align: left;
    }

    .text-lg-right {
        text-align: right;
    }
}


/* This fixes the overflow of text on the error page in the stack trace section, but it shouldn't hurt on all bootstrap
    because it will only affect elements inside <code><pre></pre></code> which kinda makes bootstrap better in this scenario I think.
*/
code pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
}

/* END SHELL CHANGES.  Please place all custom site work in the next section. */

/* BEGIN CUSTOM SITE CHANGES */

