﻿/* DEFAULTS
----------------------------------------------------------*/

/* Global font system */
html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1rem;
    color: #4d4d4d;
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f2f4f6;
}

/* Ensure consistency everywhere */
* {
    font-family: inherit;
    box-sizing: border-box;
}

/* Gridview hide column */
.hideGridColumn {
    display: none;
}

/* HEADINGS
----------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {

    font-weight: 400;
    margin-bottom: 0;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

h5, h6 {
    font-size: 1rem;
}

.rightColumn > h1,
.rightColumn > h2,
.leftColumn > h1,
.leftColumn > h2 {
    margin-top: 0;
}

/* HEADER TITLE */
.header h1 {
    margin: 0;
    padding-left: 20px;
    font-size: 1.6rem;
    font-weight: 500;
    color: #1c5082;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* FORM ELEMENTS
----------------------------------------------------------*/

fieldset {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ccc;
}

    fieldset p {
        margin: 2px 12px 10px 10px;
    }

    fieldset.login label,
    fieldset.register label,
    fieldset.changePassword label {
        display: block;
    }

    fieldset label.inline {
        display: inline;
    }

legend {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 2px 4px 8px 4px;
}

input.textEntry,
input.passwordEntry {
    width: 320px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

div.accountInfo {
    width: 40%;
}

/* MISC
----------------------------------------------------------*/

.clear {
    clear: both;
}

.title {
    float: left;
}
/* Login Display on header
----------------------------------------------------------*/
.loginDisplay {
    font-size: 0.95rem;
    text-align: right;
    padding: 0;
    color: #333333;
}

    .loginDisplay a {
        color: #1c5082;
        text-decoration: none;
    }

        .loginDisplay a:hover {
            text-decoration: underline;
        }

.failureNotification {
    font-size: 1.1rem;
    color: red;
}

.bold {
    font-weight: bold;
}

.submitButton {
    text-align: right;
    padding-right: 10px;
}

.hide {
    display: none;
}

.ammend {
    border-top: 5px solid #1c5082;
    margin-top: 3px;
    min-width: 300px;
}

/* LAYOUT
----------------------------------------------------------*/

.page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

/* HEADER */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #333333;
    height: 75px;
    min-height: 75px;
    padding: 0 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e5e5e5;
}

.logo {
    width: 95px;
    height: 75px;
    flex: 0 0 95px;
}

    .logo img {
        display: block;
        width: 95px;
        height: 75px;
    }
        
    /* MAIN */

.main {
    flex: 1;
    padding: 15px 15px;
    min-height: 420px;
}

/* FOOTER */

.footer {
    text-align: center;
    color: #ffffff;
    padding: 10px;
    background: #1c5082;
    margin-top: auto;
    font-size: 1.0rem;
}

/* NAVIGATION
----------------------------------------------------------*/

.nav-bar {
    background: #163f63;
    position: relative;
    z-index: 100;
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding-left: 15px;
    flex-wrap: wrap;
}

    .nav-menu > li > a,
    .nav-menu > li > span {
        display: block;
        padding: 10px 15px;
        color: #fff !important;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
    }

    /* DROPDOWN */

    .nav-menu li ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #163f63;
        min-width: 150px;
        min-width: 180px;
        z-index: 999;
    }

    .nav-menu li:hover > ul {
        display: block;
    }

    .nav-menu li ul li a {
        padding: 8px 15px;
        font-size: 1rem;

    }
    .nav-menu li.open > ul {
        display: block;
    }
    .nav-menu > li {
        position: relative;
    }
    .nav-menu a {
        text-decoration: none !important;
        color: #fff !important;
    }
    .nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

/* MOBILE */

@media screen and (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: calc(100% - 15px);
        background: #14433d;
    }

    #menu-toggle:checked + .hamburger + .nav-menu {
        display: flex;
    }

    #Main input,
    #Main select,
    #Main textarea {
        font-size: 1rem;
    }
}

/* NCR FORM
----------------------------------------------------------*/

.ncr-section-header {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1c5082;
    margin: 0;
    padding-bottom: 4px;
    line-height: 1.2;
    border-bottom: 1px solid #ccc;
}

.form-label {
    font-weight: 600;
    color: #14433d;
    font-size: 1rem;
}

.form-textarea {
    width: 100%;
    max-width: 500px;
    min-height: 150px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.validator {
    color: red;
    font-size: 0.9rem;
    font-weight: bold;
}

.ncr-form-table td {
    font-size: 1rem;
}

.form-select,
.form-input-small,
.btn-action {
    font-size: 1rem;
}

/* GRID */

.grid-violations th {
    font-size: 1rem;
}

.grid-violations td {
    font-size: 1rem;
}


.form-group .form-label {
    display: block;
    margin-bottom: 6px;
}

.form-group .form-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.form-group .form-label,
.form-group .form-label strong {
    color: #1c5082;
}