/* CSS Document */

* {
	border:none;
	margin:0;
	padding:0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Regular.eot'),
         url('../fonts/OpenSans-Regular.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Bold.eot'),
         url('../fonts/OpenSans-Bold.ttf') format("truetype");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Italic.eot'),
         url('../fonts/OpenSans-Italic.ttf') format("truetype");
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-BoldItalic.eot'),
         url('../fonts/OpenSans-BoldItalic.ttf') format("truetype");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-Light.eot'),
         url('../fonts/OpenSans-Light.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-Semibold.eot'),
         url('../fonts/OpenSans-Semibold.ttf') format("truetype");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-LightItalic.eot'),
         url('../fonts/OpenSans-LightItalic.ttf') format("truetype");
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-SemiboldItalic.eot'),
         url('../fonts/OpenSans-SemiboldItalic.ttf') format("truetype");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'OpenSansCond';
    src: url('../fonts/OpenSans-CondLight.eot'),
         url('../fonts/OpenSans-CondLight.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-CondBold.eot'),
         url('../fonts/OpenSans-CondBold.ttf') format("truetype");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-CondLightItalic.eot'),
         url('../fonts/OpenSans-CondLightItalic.ttf') format("truetype");
    font-weight: normal;
    font-style: italic;
}

html {
    font-size: 62.5%;
}
body {
    font-family:'OpenSansLight', Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: normal;
    line-height: 2rem;
    color: #333;
}

optgroup
{
    padding-top:3px;
    padding-bottom:3px;
}
    
table {
    border-collapse:collapse;
}
td, th {
    border: #fff groove 2px;
    padding:0 0.3rem;
    vertical-align:top;
    text-align:left;
    white-space:nowrap;
}
td:hover {
    background-color:#ff0;
}
tr:hover {
    background-color:#ffe;
}
tr {
    background:#f5f5f5;
}
th {
    background:#345;
    color:#31404f;
    font-size:1.1rem;
    color:#fff;
}
ul, li {
    list-style: none;
}
a {
    text-decoration: none;
    cursor: pointer;
    color: #b00;
}
button, .button {
    font-size: 2.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 3rem;
    padding: 1rem 3rem;
    background: #b00;
    border-radius: 0.4rem;
    cursor: pointer;
    user-select: none;
}
button.icon {
    height: 2rem;
    width: 2rem;
    margin: 1rem;
    line-height: 2rem;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: contain;
    color: #444;
    font-size: 2rem;
    transition-duration: 0.3s;
    transform-origin: center;
}
button.icon:hover {
    transform: scale(1.2);
    color: #b00;
}


input, select, textarea {
    font-family: 'OpenSansLight', Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    border: 1px solid #aaa;
    padding: 0.4rem;
    background: #fff;
    width: 100%;
    border-radius: 0.3rem;
}
label {
    font-size: 1.2rem;
    color: #666;
    display: inline-block;
    margin-top: 0.8rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.error-msg {
    color: #c00;
    font-weight: bold;
}
.error-field {
    background-color: #fdd;
    border-color: #c00;
}
form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.5rem;
}
form .formbuttons {
    width: 100%;
}
.userform .formfield {
    width: 48%;
}

header {
    background: #333;
    padding: 0 2rem;
    position: fixed;
    height: 5rem;
    width: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 1000;
}
.subheader {
    background: #ccc;
    padding: 1rem 2rem;
    position: fixed;
    height: 5rem;
    box-sizing: border-box;
    width: 100%;
    z-index: 999;
    top: 5rem;
}
div#container {
    display: flex;
    justify-content: center;
}
main{
    display: block;
    padding-top: 10rem;
}
/* navigations */

nav {
    position: absolute;
    z-index: 50;
}
nav#navimain {
    left: 2rem;
}
nav#naviuser {
    right: 2rem;
}
nav ul {
    
}
nav li {
    color: #ccc;
    list-style: none;
    text-indent: 0;
    padding: 0;
}
nav a {
    color: #ccc;
    text-decoration: none;
    padding: 0 1rem;
    display: block;
}
nav li.curr a, nav a:hover {
    color: #fff;
}
nav > ul > li {
    display: inline-block;
    float: left;
    position: relative;
    line-height: 5rem;
}


/* sub */
nav > ul > li > ul {
    background-color: rgba(0,0,0,0.8);
    position: absolute;
    transition-duration: 0.5s;
    transition-delay: 1s;
    transform: scale(1,0);
    transform-origin: top;
}
nav ul ul li {
    line-height: 3.5rem;
}
nav ul ul li:hover {
    background-color: #000;
}
nav > ul > li:hover > ul {
    transform: scale(1,1);
    transition-delay: 0s;
}

nav#naviuser > ul > li > ul {
    text-align: right;
    right: 0;
    white-space: nowrap;
    border-top: 1px solid #555;
}
nav#naviuser > ul > li > ul a {
    white-space: nowrap;
}


h1,h2,h3,h4,h5,h6 {
    font-weight: normal;
}
h1 {
    text-align: center;
    font-size: 3.2rem;
    line-height: 3.2rem;
    margin: 1.2rem 0 2rem;
}
.centered {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.list {
}
li ul.list {
    padding-left: 30px;
}
.list-entry {
    display: flex;
    flex-wrap: wrap;
    margin: 6px 0;
    background-color: #f2f2f2;
}
.list-entry.inactive {
    color: #bbb;
    background-color: #f9f9f9;
}
.list-entry.edit, .list-entry:hover {
    background-color: #e0e0e0;
}
.list-entry.new:not(.edit) {
    display: none;
}
.list-entry > div {
    padding: 3px 0.5rem;
}
.list-form {
    width: 100%;
}
.user-entry {
    width: 60rem;
}
.list-entry.new:not(.edit) {
    display: none;
}
.user-uid {
    width: 8%;
}
.user-login {
    width: 12%;
}
.user-email {
    width: 40%;
}
.user-name {
    width: 40%;
}
.expenditure-fiscalyear {
    width: 4rem;
}
.expenditure-billdate {
    width: 8rem;
}
.expenditure-paydate {
    width: 8rem;
}
.expenditure-net {
    width: 8rem;
    text-align: right;
}
.expenditure-net.neg {
    color: #C00;
}
.expenditure-ledger {
    width: 22rem;
}
.expenditure-text {
    width: calc(100% - 50rem);
}
.expenditure-description {
    font-size: 1.22rem;
    line-height: 1.5rem;
    padding-top: 0.2rem;
}
.expenditure-filter {
    width: calc(100vw - 50px);
}
.expenditure-filter form {
    display: block;
}
.expenditure-summary {
    display: flex;
}
.expenditure-summary p {
    width: 50%;
    padding: 4px;
}
.totalNet {
    text-align: right;
}
.expenditureform {
    width: 100%;
}
.expenditureform .formgroup:nth-of-type(1) {
    width: 19rem;
}
.expenditureform .formgroup:nth-of-type(2) {
    width: calc(100% - 66rem);
}
.expenditureform .formgroup:nth-of-type(3) {
    width: 32rem;
}
.expenditureform .formgroup:nth-of-type(4) {
    width: 13rem;
}
input[name="net"] {
    text-align: right;
}

/* range slider */
.rs-container * {
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.rs-container {
    height: 45px;
    position: relative;
    margin-top: 50px;
    width: calc(100% - 40px);
    margin-left: 20px;
}
.rs-container .rs-bg, .rs-container .rs-selected {
    background-color: #eee;
    border: 1px solid #ededed;
    height: 10px;
    left: 0;
    position: absolute;
    top: 5px;
    width: 100%;
    border-radius: 3px;
}
.rs-container .rs-selected {
    background-color: #555;
    border: 1px solid #333;
    transition: all 0.2s linear;
    width: 0;
}
.rs-container.disabled .rs-selected {
    background-color: #ccc;
    border-color: #bbb;
}
.rs-container .rs-pointer {
    background-color: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;
    cursor: pointer;
    height: 20px;
    left: -10px;
    position: absolute;
    top: 0;
    transition: all 0.2s linear;
    width: 30px;
    box-shadow: inset 0 0 1px #FFF, inset 0 1px 6px #ebebeb, 1px 1px 4px rgba(0, 0, 0, 0.1);
}
.rs-container.disabled .rs-pointer {
    border-color: #ccc;
}
.rs-container .rs-pointer::before,
.rs-container .rs-pointer::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 9px;
    background-color: #ddd;
    left: 12px;
    top: 5px;
}
.rs-container .rs-pointer::after {
    left: auto;
    right: 12px;
}
.rs-container.disabled .rs-pointer {
    cursor: default;
}
.rs-container.sliding .rs-selected,
.rs-container.sliding .rs-pointer {
    transition: none;
}
.rs-container .rs-scale {
    left: 0;
    position: absolute;
    top: 5px;
    white-space: nowrap;
}
.rs-container .rs-scale span {
    float: left;
    position: relative;
}
 .rs-container .rs-scale span::before {
    background-color: #ededed;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 1px;
}
.rs-container.rs-noscale span::before {
    display: none;
}
.rs-container.rs-noscale span:first-child::before,
.rs-container.rs-noscale span:last-child::before {
    display: block;
}
.rs-container .rs-scale span:last-child {
    margin-left: -1px;
    width: 0px;
}
.rs-container .rs-scale span ins {
    color: #333;
    display: inline-block;
    font-size: 12px;
    margin-top: 20px;
    text-decoration: none;
}
.rs-container.disabled .rs-scale span ins {
    color: #999;
}
.rs-tooltip {
    color: #333;
    width: auto;
    min-width: 40px;
    height: 26px;
    position: relative;
    background: #fff;
    border: 1px solid #333;
    border-radius: 3px;
    position: absolute;
    transform: translate(-50%, -35px);
    left: 13px;
    text-align: center;
    font-size: 13px;
    padding: 3px 6px 0;
}
.rs-container.disabled .rs-tooltip {
    border-color: #ccc;
    color: #999;
}
