﻿
* {
    font-family: 'Titillium Web', sans-serif;
    line-height: 1.6;
    padding: 0;
    border: 0;
    margin: 0;
}

*, *:before, *:after, *:visited, *:focus, *:active{
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: transparent;
    outline: none;
}

html {
    min-height: 100%; /* make sure it is at least as tall as the viewport */
    position: relative;
}

body {
    height: 100%; /* force the BODY element to match the height of the HTML element */
    margin-top: 64px;
}

hr {
    display: block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: auto;
    margin-right: auto;
    border-style: inset;
    border-width: 1px;
} 

.page-frame {
    width:100%;
    display:flex;
    flex-direction: column;
}

.page-body {
    padding:16px 64px 16px 64px;
}

.nav-bar {
    display: flex;
    flex-direction:row;
    align-items:stretch;
    position: fixed;
    z-index:1000;
    top:0;
    left:0;
    width:100%;
    height:64px;
    box-shadow:0 1px 2px #aaa;
    background-color:#ddd;
}

.logo {
    width:64px;
    height:64px;
    display: flex;
    justify-content: center;
    align-items:center;
    background-color:rgba(255,255,255,0.5);
}

.logo img {
    height:48px;
}

.top-link-bar {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
}

.top-link {
    align-items:center;
    display:flex;
    cursor:pointer;
    padding:0 16px 0 16px;
}

.top-link:hover {
    background-color:#999;
    color:white;
}

.top-link + .top-link {
    margin-left:32px;
}

.user-info {
    flex: 0 1 auto;
    width:200px;
}

.form-title {
    font-size: 24px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0px;
    padding-bottom: 5px;
}

.view-sub-title {
    font-size: 18px;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 8px;
}

.form-body {
    padding-bottom:16px;
}

.form-buttons {
    border-top: 1px solid #ccc;
    padding-top:8px;
    display:flex;
    flex-direction:row;
    justify-content:flex-end;
}

.form-buttons-start {
    border-top: 1px solid #ccc;
    padding-top: 8px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.form-field {
    padding:8px;
}

.form-field-label {
    font-weight:400;
    margin-bottom:4px;
}

.view-field-label {
    font-weight: 600;
    margin-bottom: 4px;
    padding:1px;
}

.view-field-data {
    font-weight: 400;
    margin-bottom: 4px;
    padding: 1px;
}

.form-field-error {
    color: red;
    font-size:12px;
}

/*.form-field-mandatory {

}*/

button {
    font-size:18px;
    background-color:#eee;
    border-radius:4px;
    padding:4px 8px;
    cursor:pointer;
}

button:disabled {
    cursor :not-allowed;
}

button:disabled:hover {
    background-color: #eee;
}

button:hover {
    background-color:#ddd;
}

    button:focus {
        background-color: #eee;
        
    }

.anchor {
    height: 36px;
    padding: 8px 0 8px 8px;
}

.hidden {
    display: none;
}

.input-text {
    border-color: #d9d9d9 #ccc #b3b3b3;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #333;
    cursor: default;
    display: table;
    border-spacing: 0;
    border-collapse: separate;
    height: 36px;
    outline: none;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: none transparent;
    box-shadow: none;
    cursor: default;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    line-height: 17px;
    /* For IE 8 compatibility */
    padding: 8px 0 8px 8px;
    /* For IE 8 compatibility */
    -webkit-appearance: none;
}


.template-text {
    height: 250px;
}

.input-textarea {
    overflow-y: scroll;
    border-color: #d9d9d9 #ccc #b3b3b3;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #333;
    cursor: default;
    display: table;
    border-spacing: 0;
    border-collapse: separate;
    outline: none;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: none transparent;
    box-shadow: none;
    cursor: default;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    line-height: 17px;
    /* For IE 8 compatibility */
    padding: 8px 0 8px 8px;
    /* For IE 8 compatibility */
    -webkit-appearance: none;
}

.select-text {
    border-color: #d9d9d9 #ccc #b3b3b3;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #333;
    cursor: default;
    display: table;
    border-spacing: 0;
    border-collapse: separate;
    height: 38px;
    outline: none;
    overflow: hidden;
    position: relative;
    background: none transparent;
    box-shadow: none;
    cursor: default;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    margin-left:4px;
    line-height: 17px;
    /* For IE 8 compatibility */
    padding: 8px 0 8px 8px;
    /* For IE 8 compatibility */
    vertical-align:bottom
    
}








.switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 34px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eee;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "aaa";
        height: 36px;
        width: 60px;
        left: 0px;
        bottom: -1px;
        top: -1px;
        background-color: black;
        -webkit-transition: .4s;
        transition: .4s;
    }


input:checked + .slider {
    background-color: #999;
}


input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(60px);
    -ms-transform: translateX(60px);
    transform: translateX(60px);
}

.text {
    color: white;
}

    .text:after {
        position: absolute;
        top: 7px;
        right: 15px;
        content: "Hide";
        -webkit-transition: opacity 0.5s ease-in-out;
        -moz-transition: opacity 0.5s ease-in-out;
        transition: opacity 0.5s ease-in-out;
        color: black;
    }

    .text:before {
        position: absolute;
        top: 7px;
        left: 15px;
        content: "Show";
        -webkit-transition: opacity 0.5s ease-in-out;
        -moz-transition: opacity 0.5s ease-in-out;
        transition: opacity 0.5s ease-in-out;
    }

input + .slider + .text:after {
    opacity: 1;
}

input + .slider + .text:before {
    opacity: 0;
}


input:checked + .slider + .text:after {
    opacity: 0;
}

input:checked + .slider + .text:before {
    opacity: 1;
}


.loader {
    margin-top:12px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pagination {
    display: inline-block;
}

    .pagination div {
        color: black;
        float: left;
        padding: 8px 16px;
        text-decoration: none;
        border: 1px solid #ddd;
    }

        .pagination div.active {
            background-color: #999;
            color: white;
        }

        

            .pagination div:hover:not(.active) {
                background-color: #ddd;
                cursor: pointer;
            }

        .pagination div:first-child {
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
        }

        .pagination div:last-child {
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
        }


.header-actions {
    display: inline-block;
    font-size: 16px;
}

    .header-actions div {
        border-radius: 5px;
        color: black;
        float: left;
        padding: 8px 16px;
        text-decoration: none;
        border: 1px solid #ddd;
        margin-left: 7px;
    }

        .header-actions div.active {
            background-color: #999;
            color: white;
        }



        .header-actions div:hover:not(.active) {
            background-color: #ddd;
            cursor: pointer;
        }

