﻿html {
    position: relative;
    min-height: 100%;
}

body {
    font-family:   'Source Sans Pro',sans-serif;
    padding-bottom: 60px;
    background-color: #f8f9fa!important;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.clickable {
    cursor: pointer;
}

.k-list-scroller {
    position: relative;
    overflow: auto;
}
.k-window-titlebar .k-window-actions {
    text-align: center;
}

.k-link:link, .k-link:visited, .k-nav-current.k-state-hover .k-link {
    color: white!important;
}

.k-menu-link-text {
    color: white;
}

.k-state-border-right{
    background-color: #bcb4b0;
}
.k-menu-link:hover {
    background-color: #bcb4b0;
}
.k-active {
    background-color: #bcb4b0;
}
.k-menu-expand-arrow {
    color: white;
}
.k-pager-wrap .k-link.k-selected{
    background-color: #6c757d;
}
.k-pager-wrap .k-link:link{
    color: #6c757d !important;
}


/*Wrapping element 
 Set some basic padding to keep content from hitting the edges*/
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

.label {
    color: #337ab7;
}


/* Sticky footer styles */
.footer {
    position: absolute;
    bottom: 10px;
    height: 40px;
}

    .footer .text-muted {
        margin: 0;
        display: inline-block;
    }

.body-content > .row:first-child {
    margin-bottom: 15px;
}

.k-tabstrip ul li.k-item {
    width: 100px;
    background-color: #017fc4
}

h1 a {
    color: #e0e0e0;
    text-decoration: none;
}

    h1 a:hover,
    h1 a:active {
        color: #ffffff;
        text-decoration: none;
    }

.img-responsive {
    padding-top: 25px;
}

/* Header row uses flex layout (no fixed height) */
.header-row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to prevent overlap */
    align-items: center;
    background-color: #017fc4;
    color: white;
    padding: 5px 0;
    margin: 0;
}

/* Flexible title in the center */
.header-title {
    flex: 1; /* Let it grow/shrink in the center */
    text-align: center;
    white-space: nowrap; /* Prevents text from breaking */
    overflow: hidden; /* Will truncate if it can’t fit */
    text-overflow: ellipsis; /* Visual truncation indicator */
    font-size: 22px;
    font-weight: 300;
}

/* Container for the right-side actions */
.header-actions {
    gap: 10px; /* Spacing between links */
}

    .header-actions a {
        text-decoration: none;
        color: white;
        white-space: nowrap; /* Keep links on one line */
        padding: 5px 10px;
    }

        .header-actions a:hover {
            background-color: #bcb4b0 !important;
            color: black !important; /* Ensure hover text is visible */
        }

/* The grid container fills remaining space */
.grid-container {
    flex: 1;
    position: relative;
    min-height: calc(100vh - 600px); /* adjust as needed */
}

#GRID {
    height: 100% !important;
    width: 100%;
}

/* Styling menu toggle button */
.btn-toggle {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: none;
    height: 48px;
}

    .btn-toggle .k-icon {
        opacity: 1;
    }

    .btn-toggle,
    .btn-toggle:focus:active:not(.k-state-disabled):not([disabled]),
    .btn-toggle:focus:not(.k-state-disabled):not([disabled]) {
        box-shadow: none;
        border-radius: 0;
    }

        .btn-toggle .k-i-hbars,
        .btn-toggle:focus:active:not(.k-state-disabled):not([disabled]) .k-i-hbars,
        .btn-toggle:focus:not(.k-state-disabled):not([disabled]) .k-i-hbars {
            background-position: -80px -32px;
        }

/* Styling menu and header for smaller resolutions */
@media (max-width: 768px) {


    nav, #mainnav {
        height: 40px;
    }

        #mainnav .k-menu {
            border: 0;
            background-color: #017fc4;
            font-weight: bold;
            text-decoration: none;
        }

            #mainnav .k-menu .k-item {
                border-color: #666666;
                height: 40px;
                background-image: url('./themes/base/images/barbackground.png');
                background-repeat: repeat-x;
            }

            #mainnav .k-menu .k-item .k-state-hover:hover {
                height: 30px;
            }
    .k-state-border-down {
        background-color: burlywood;
    }
        #mainnav .k-menu .k-item .k-state-border-down {
                height: 30px;
                color:white;
            }

            #mainnav .k-menu .k-link {
                padding: 10px 20px 2px 20px;
                text-decoration: none;
                height: 40px;
                background-image: url('./themes/base/images/barbackground.png');
                background-repeat: repeat-x;
            }

            #mainnav .k-menu .k-link .k-state-hover:hover {
                height: 30px;
            }

            #mainnav .k-menu .k-link .k-state-border-down {
                height: 30px;
            }

    .logo-image {
        padding-left: 100px;
        padding-right: 100px;
        padding-top: 5px;
    }
    img.center {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    div.centered {
        height: 10em;
        position: relative
    }

        div.centered p {
            margin: 0;
            background: yellow;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-right: -50%;
            transform: translate(-50%, -50%)
        }
    .window-footer {
        position: absolute;
        bottom: 0;
        display: block;
        width: 98%;
        margin-top: 150px;
        padding: 19px 0 20px;
        text-align: right;
        border-top: 1px solid #e5e5e5;
    }
    .container {
        width: 90% !important;
        margin-left: auto;
        margin-right: auto;
    }
  
}