/*
 * Base structure
 */

.display-hidden {
    display: none;
}

body {
    padding-top: 50px; /* padding for fixed top for navbar */
}

h1, h2, h3, h4, h5, h6, legend {
    margin:0;
    padding: 0;
    font-weight: 300;
    font-family: 'Open Sans', sans-serif !important;
}

.custom-dropdown-menu {
    padding-top: 0 !important;
    min-width: 250px;
}


/* File input */
.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    background: red;
    cursor: inherit;
    display: block;
}
input[readonly] {
    background-color: white !important;
    cursor: text !important;
}


/* Margins, paddings, widths */
.width10 { width: 10% !important; }
.width20 { width: 20% !important; }
.width30 { width: 30% !important; }
.width40 { width: 40% !important; }
.width50 { width: 50% !important; }
.width60 { width: 60% !important; }
.width70 { width: 70% !important; }
.width80 { width: 80% !important; }
.width90 { width: 90% !important; }
.width100 { width: 100% !important; }

.margin0 { margin: 0 !important; }
.margin5 { margin: 5px !important; }
.margin10 { margin: 10px !important; }
.margin20 { margin: 20px !important; }
.margin30 { margin: 30px !important; }
.margin40 { margin: 40px !important; }
.margin50 { margin: 50px !important; }
.margin60 { margin: 60px !important; }

.padding0 { padding: 0 !important; }
.padding5 { padding: 5px !important; }
.padding10 { padding: 10px !important; }
.padding20 { padding: 20px !important; }
.padding30 { padding: 30px !important; }
.padding40 { padding: 40px !important; }
.padding50 { padding: 50px !important; }
.padding60 { padding: 60px !important; }

.padding-left0 { padding-left: 0 !important; }
.padding-left5 { padding-left: 5px !important; }
.padding-right0 { padding-right: 0 !important; }
.padding-right5 { padding-right: 5px !important; }

.margin-left0 { margin-left: 0 !important; }
.margin-left5 { margin-left: 5px !important; }
.margin-right0 { margin-right: 0 !important; }
.margin-right5 { margin-right: 5px !important; }

.margin-top5 { margin-top: 5px; }
.margin-top8 { margin-top: 8px; }
.margin-top10 { margin-top: 10px; }
.margin-top20 { margin-top: 20px; }
.margin-top30 { margin-top: 30px; }
.margin-top40 { margin-top: 40px; }
.margin-top50 { margin-top: 50px; }
.margin-top60 { margin-top: 60px; }

.margin-bottom8 { margin-bottom: 8px; }
.margin-bottom10 { margin-bottom: 10px; }
.margin-bottom20 { margin-bottom: 20px; }
.margin-bottom30 { margin-bottom: 30px; }
.margin-bottom40 { margin-bottom: 40px; }
.margin-bottom50 { margin-bottom: 50px; }
.margin-bottom60 { margin-bottom: 60px; }

/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Tablecontroller
 */
.table-input-box {
    font-size: 12px;
    font-weight: normal;
    height: 28px;
}
.pagination {
    margin: 0 !important;
}
.tablecontrol {
    margin-bottom: 5px !important;
}
.tablecontrol a {
    color: #000;
    font-weight: bold;
}
.tablecontrol td {
    background: #ffffff;
    transition:background-color 0.5s ease;
}


/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}
@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }

    .nav-sidebar {
        margin-top: -20px;
        margin-right: -20px; /* 20px padding + 1px border */
        margin-bottom: 20px;
        margin-left: -20px;
    }


}
@media (max-width: 768px) {
    .nav-sidebar {
        margin-right: -15px;
        margin-left: -15px;
    }
}

/* Sidebar navigation */
.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;
}
.nav-sidebar > .active > a {
    color: #fff;
    background-color: #428bca;
}
.nav-sidebar > .active > a:hover {
    color: #000;
    background-color: #428bca;
}


.nav-sidebar .nav-submenu {
    margin-bottom: 0;
}
.nav-sidebar ul {
    margin-bottom: 0;
}
.nav-sidebar ul li a {
    padding-left: 40px;
    margin-bottom: 0;
}


/*
 * Main content
 */

.main {
    margin-top: 20px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}
@media (max-width: 768px) {
    .main {
        margin-top: 0;
        padding-top: 20px;
    }
}
.main .page-header {
    margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}


/*
 * Custom Colors
 */

.text-black {
    color: #000 !important;
}
.text-white {
    color: #fff !important;
}
.text-blue {
    color: #428bca !important;
}
.text-success {
    color: #3c763d !important;
}
.text-info {
    color: #31708f !important;
}
.text-warning {
    color: #8a6d3b !important;
}
.text-danger {
    color: #a94442 !important;
}

 /*
 * Custom Background colors
 */
.background-success {
    color: #3c763d !important;
    background-color: #dff0d8 !important;
}
.background-info {
    color: #31708f !important;
    background-color: #d9edf7 !important;
}
.background-warning {
    color: #8a6d3b !important;
    background-color: #fcf8e3 !important;
}
.background-danger {
    color: #a94442 !important;
    background-color: #f2dede !important;
}

.background-black {
    color: #fff !important;
    background-color: #000 !important;
}
.background-purple {
    color: #fff !important;
    background-color: #5959a3 !important;
}
.background-white {
    color: #000 !important;
    background-color: #ffffff !important;
}
.background-white-dark {
    color: #000 !important;
    background-color: #f5f5f5 !important;
}
.background-grey {
    color: #000 !important;
    background-color: #cccccc !important;
}
.background-blue {
    color: #fff !important;
    background-color: #428bca !important;
}
.background-blue-light {
    color: #fff !important;
    background-color: rgba(66, 139, 202, 0.20);
}

.background-green-light {
    color: #fff !important;
    background-color: rgba(60, 118, 61, 0.20);
}
.background-red-light {
    color: #fff !important;
    background-color: rgba(255, 47, 47, 0.18);
}
.background-yellow-light {
    color: #fff !important;
    background-color: rgba(213, 252, 45, 0.17);
}




/*
 * Custom Main Design, Navbar etc
 */
/* Navbar */
@media (max-width: 767px) /* @grid-float-breakpoint -1 */
{
    /* Ändra tillbaka navbar till static vid collapse */
    .navbar-fixed-top
    {
        position: relative;
        top: auto;
    }

    body {
        padding-top: 0; /* comment if using fixed top for navbar */
    }
}


/* Section */
.section-content {
    padding-left: 20px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
}

/* Main Section */
.main-section {
    padding-left: 0 !important;
}
@media (max-width: 767px) {
    .main-section {
        margin-bottom: 10px;
        margin-left: 10px;
    }
}

.main-section h3 {
    margin-top: 0 !important;
    padding: 7px;
}

.section-content .container {
    width: 100%;
    margin-bottom: 20px;
}

/* Panel */
.panel-title {
    color: #000000;
}