﻿/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* END RESET */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
    padding: 0px;
    margin: 0px;
    background-color: #f1f3f6;
}

a, a:active, a:visited, a:hover {
    font-size: 12pt;
    color: #6699cc;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0px 20px;
    position: relative;
}

.site-name {
    position: fixed;
    top: 0px;
    z-index: 2;
    
}

.site-name img { 
    height: 120px;    
}

.top-header {
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #114477;
    color: #ffffff;    
    width: 100%;
    z-index: 90;
}

.top-header-content {
    height: 50px;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 0px 20px;
}

.top-header-content a {
    color: #ffffff;    
}

header {
    position: fixed;
    top: 50px;
    left: 0px;
    background-color: #336699;
    color: #ffffff;    
    z-index: 1;
    width: 100%;    
}

.header-content {
    padding: 0px 0px 0px 175px;
    display: flex;
    align-items: center;
    height: 60px;    
}

.header-content a {
    color: #ffffff;
}

    .header-content nav {
        flex-grow: 1;        
        display: flex;
        border-left: solid 1px #225588;
    }

    .header-content nav a {
        color: #ffffff;
        display: block;
        height: 60px;
        line-height: 60px;
        text-decoration: none;
        padding: 0px 20px 0px 20px;
        border-right: solid 1px #225588;        
    }

    .header-content nav a:hover, .header-content nav a.current {
        background-image: linear-gradient(#4477aa,#5588bb);
    }

    .subnav {
        background-color: #ffffff;
        margin: -20px 0px 20px 0px;
        padding: 15px 0px;
        border-bottom: solid 1px #cccccc;
    }

    .subnav-links{
        padding: 0px 10px;
    }

    .subnav a {
        display: inline-block;
        padding: 10px;
    }

    .subnav a.current {
        background-color: #f1f3f6;
        border-radius: 5px;            
                
    }

/*
.site-name a {
    text-decoration: none;
    display: block;
    height: 60px;
    line-height: 60px;
    
}
    */

.current-user {
    display: flex;
}

.current-user span {
    margin-right: 1em;    
}

main {
    padding: 130px 0px 0px 0px;
    flex-grow: 1;
}

.page-actions {    
    background-color: #ffffff;
    background-color: rgba(255,255,255,1);
    margin: 0px 0px 10px 0px;
    padding: 10px 10px 10px 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;    
    box-shadow: 0px 0px 5px #dfdfdf;
    border: solid 1px #cfcfcf;
}

.page-actions .buttons {
    display: flex;    
}

    .page-actions .buttons a, main .page-actions .buttons a:visited, a.button {
        text-decoration: none;
        color: #ffffff;
        display: block;
        background-color: #339966;
        padding: 10px 10px 10px 10px;
        border-radius: 5px;        
    }

        .page-actions .buttons a:hover, a.button:hover {
            background-color: #339966;
        }

        .page-actions .buttons a:active, a.button:active {
            background-color: #339966;
        }

table {
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0px 0px 5px #dfdfdf;
    border: solid 1px #cccccc;
    
}

    table th {
        background-color: #eeeeee;
        background-image: linear-gradient(#ffffff,#eeeeee);
        border: solid 1px #cfcfcf;
        text-align: left;
    }

table td, th {
    padding: 10px 10px 10px 10px;
}

table td {
    vertical-align: middle;
}

table tr {
    border-bottom: solid 1px #dddddd;
}

form {
    background-color: #ffffff;
    width: 100%;    
    border-radius: 5px;        
    box-shadow: 0px 0px 5px #dfdfdf;
    border: solid 1px #cccccc;
}

.filter form {
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding: 5px 10px;    
    width: auto;
    display: flex;
    align-items: center;        
}

.filter form .field {
    display: flex;
    align-items: center;
    padding: 0px 1em 0px 0px;
}

.filter form .field label {
    padding: 0px 5px 0px 0px;
}

form.data-form {
    padding: 20px;
}

form.data-form h2 {
    background-color: #eeeeee;
    padding: 10px;
    border-radius: 5px;
}

form.data-form > .field {
    display: flex;
    align-items: center;
    padding: 10px 0px 10px 0px;
    border-bottom: solid 1px #dddddd;
}

    form.data-form > .field > label {
        display: block;
        padding: 10px;
        min-width: 200px;
        align-self: start;
    }

    form.data-form > .field > .field-validation-error {
        color: #990000;
        margin: 0px 0px 0px 10px;
    }

    form.data-form > .field > .radio-group {
        display: flex;
        align-items: center;
    }

    form.data-form > .field > .radio-group > label {
        margin: 0px 10px 0px 0px;
    }

    form.data-form > .form-buttons {
        padding: 20px 0px 0px 200px;        
        display: flex;
        width: 100%;
        position: relative;        
    }

    form.data-form > .form-buttons > input {
        text-decoration: none;
        color: #ffffff;
        display: block;
        background-color: #339966;
        padding: 10px 10px 10px 10px;            
        cursor: pointer;
        margin: 0px 10px 0px 0px;
    }

    form.data-form > .form-buttons > .secondary {
        background-color: #ffffff;
        border: solid 1px #339966;
        color: #339966;
    }

    form.data-form > .form-buttons > .delete-only {
    }

    form.data-form > .form-buttons > .delete-only .delete {
        background-color: #ffffff;
        border: solid 1px #990000;
        color: #990000;
    }

    form.data-form > .form-buttons > .delete {
        background-color: #ffffff;
        border: solid 1px #990000;
        color: #990000;    
        position: absolute;
        right: 0px;
    }

    form.data-form > .form-buttons > .delete span {
        margin: 0px 0px 0px 0.5em;
    }

    form.data-form > .signin-error {
        color: #990000;
        margin: 10px 0px 0px 10px;
    }

        input, select, textarea {
            font-size: 12pt;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            border-radius: 5px;
            border: solid 1px #666666;
            padding: 5px;
        }

input[type=text].short {
    width: 100px;
}

input[type=text].long {
    width: 300px;
}

input[type=text].xl, textarea.xl {
    width: 600px;
}

input[type=submit] {
    cursor: pointer;
}

.breadcrumbs {
    background-color: #ffffff;    
    padding: 20px 20px;
    border-radius: 5px;
    margin: 0px 0px 10px 0px;
    box-shadow: 0px 0px 10px #dfdfdf;
    border: solid 1px #cfcfcf;
}

footer {
    margin: 50px 0px 0px 0px;
    background-color: #333333;
    background-image: linear-gradient(#333333,#444444);    
}

.img-preview {
    max-height: 50px;
}

.required:after {
    content: " *";
    color: #990000;
    font-weight: bold;
}

.form-instructions {
    background-color: #f1f3f6;
    padding: 10px;
    border-radius: 5px;
    margin: 0px 0px 10px 0px;
}

.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;    
}

.footer-content {
    background-color: rgba(255,255,255,0.05);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 20px 20px;
    margin: 20px 0px 0px 0px;
    color: #f1f3f6;
}

.htmleditor {
    flex-grow: 1;
    padding-right: 20%;
}

.ql-editor {    
    min-height: 150px;
    overflow: auto;
}

h2 {
    padding: 10px;
    border: solid 1px #cccccc;    
    margin: 20px 0px 0px 0px;    
    background-color: #e1e3e6;
}

.move-up, .move-down {
    cursor: pointer;
    margin-right: 1em;
}

.warning {
    border: solid 1px #990000;
    color: #990000;
    padding: 20px;
    border-radius: 5px;
    margin: 0px 0px 20px 0px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px #dfdfdf;
}