/* general */

* {
    font-family: Helvetica,Arial,sans-serif;
    font-size: 8.5pt;
    font-weight: normal;
}

img {
    border: none;
}

.jobstateDonePaid {
    background: #9C0;
    /*color: white;*/
}
.jobstateDoneUnpaid {
    background: #36F;
    color: white;
}
.jobstateLost {
    background: #c0c0c0;
}
.jobstateOpen {
    background: #f00;
    color: white;
}
.jobstateSigned {
    background: #f90;
}
.jobstateInvoice {
    background: #6AE8EA;
}
.jobstatePartialInvoiceProvided {
    background: #4FB3E6;
    color: white;
}

a:link, a:visited, a:active, a:hover {
    text-decoration: none;
    color: #000;
    max-width: 200px;
    display: inline-block;
}

div.hr {
    display: block;
    border-top: 1px #878787 solid;
    font-size: 1px;
    height: 2px;
    margin: 0px;
}


/* layout */

html, body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    background-color: #edede5;
    overflow: hidden;
}

#content, #contentLogin {
    /*    position: absolute;
        top: 9px;
        left: 9px;*/
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /*height: 594px;*/
    padding: 11px;
    background: #edede5;
}

#data {
    width: 100%;
    height: calc(100vh - 200px);
    overflow: auto;
}

#data table {
    width: 100%;
}

#footer {
    /*border-top: 10px #fff solid;*/
    padding: 11px;
    background: #edede5;
    display: block;
    position: absolute;
    width: 100%;
    max-width: 1200px;
    height: 10px;
    bottom: 9px;
}

@media screen and (min-width: 1200px) {
    #footer {
        left: calc((100% - 1222px) / 2);
    }
}

#footer div.hr {
    width: 910px;
}

div.legend {
    float: left;
    display: block;
    margin: 0px;
    margin-right: 40px;
    font-size: 9px;
    color: #878787;
}

div.legend div.icon, a.setState div.icon, a.setStateActive div.icon {
    float: left;
    font-size: 3px;
    margin: 3px 2px;
    width: 8px;
    height: 8px;
}

a.setState div.icon, a.setStateActive div.icon {
    margin-right: 8px;
}

a.setState div.icon {
    background-image: url('pics/icon_empty.gif');
    background-repeat: no-repeat;
    background-position: 2px 2px;
    background-size: 4px;
}


/* content: general */

#homeLink {
    display: block;
    margin-bottom: 10px;
    width: 1200px;
    height: 53px;
    /*    margin: 0 auto;*/
}

table {
    empty-cells: show;
    width: 100%;
}


/* login page */

#contentLogin {
    background:url(pics/login_bg.gif) #edede5 260px 80px no-repeat;
    height: 636px;
}

#decorativeBar {
    position: absolute;
    top: 74px;
    left: 10px;
    width: 10px;
    height: 480px;
    background: url(pics/login_bar_left.gif);
}

#contentLogin h1 {
    margin-top: 120px;
    font-size: 12pt;
    margin-left: 80px;
}

#contentLogin p {
    width: 320px;
    line-height: 11pt;
    margin-left: 80px;
    font-size: 9pt;
    margin-bottom: 25px;
}

#contentLogin input, #contentLogin select {
    margin-bottom: 7px;
    font-size: 9pt;
}

#contentLogin input {
    width: 140px;
}

#contentLogin select {
    width: 222px;
}

#contentLogin label {
    display: block;
    float: left;
    width: 80px;
}


/* top menu */

#menu .filter {
    text-align: center;
    font-size: 16px;
    color: #8B3132;
}



/* main table: header */

th, .editor h3 {
    background: url(pics/corner.gif) no-repeat;
    padding: 0 0 0 10px;
    color: #878787;
    font-size:9px;
    line-height: 9px;
    text-align: left;
    vertical-align: top;
}

tr.ruler td {
    padding: 0;
}

/* main table: data */

td {
    border: 0px #edede5 solid;
    border-width: 0px 0px 3px 1px;
    padding: 0px 2px;
}

tbody td {
    height: 24px;
}

td.no, td.taxrate, td.no a:link, td.no a:visited, td.no a:active, td.no a:hover {
    color: #663;
}
td.taxrate, td.jobstate {
    text-align: center;
}


td.no {
    background: #d9d4ba;
}

td.link {
    background: #fff;
    color: #1C1A19;
}

td.numeric, td.sum, td.calculated {
    text-align: right;
}

td.details {
    cursor: default;
    padding: 0px 1px;
    color: #fff;
    background: #C8C8A7;
}

.calculated {
    background: #e1e1d0;
    color:#00216e;
}
td.taxrate {
    background: #dad5bb;
}
td.endsGroup {
    border-right: 2px solid #edede5;
}

td.infoAvailable, td.infoNotAvailable {
    padding: 0;
}
td.infoAvailable {
    background: #FBD407;
}

td.infoAvailable a, td.infoNotAvailable a {
    display: block;
    height: 15px;
    width: 9px;
}


tr:hover td.no {
    background: #BAB49B;
}
tr:hover td.link {
    background: #D6D2BF;
}
tr:hover td.numeric {
    background: #D6D2BF;
}
tr:hover td.details {
    background: "#C8C8A7";
}
tr:hover td.calculated {
    background: #C2C2A9;
}

/* table footer */

tfoot {
    border-top: 7px solid #edede5;
}

td.sum {
    background: #d1d1af;
    color: #00216e;
}


/* tooltip */

#tooltip {
    position: absolute;
    display: block;
    z-Index: 10;
    width: 300px;
    padding: 15px;
    border: #EEB869 solid 2px;
    background: #F7F2C6;
}

#tooltip h1 {
    font-size: 11pt;
    margin:0;
}
#tooltip h1, #tooltip h2 {
    color: #DA2725;
}
#tooltip h2 {
    font-size: 9pt;
    font-weight: bold;
    margin: 0 0 5pt 0;
}
#tooltip h3 {
    margin: 3pt 0 0 0;
    font-weight: bold;
}
#tooltip p {
    margin: 1pt 0 0 0;
}
#tooltip p, #tooltip h3 {
    font-size: 9pt;
}



/* editor: general */

.invalid {
    color: red;
}
.highlight {
    background-color: #F7F2C6;
}

input, textarea {
    border: 0px #fff solid;
    padding: 3px 3px 0 3px;
    background-image: url('pics/shadow.gif');
    background-color: #fff;
}

input, select {
    height: 18px;
    max-height: 18px;
    margin: 0;
    width: 100px;
}

input.image {
    border: none;
    padding: 0;
    background: none;
    width: 30px;

}

select {
    height: 16px;
    font-size: 10px;
    padding: 0;
}

.editor {
    z-index: 50;
    background: #fff;
    position: absolute;
    width: 290px;
    left: 120px;
    top: 160px;
}

.editor .handle {
    height: 16px;
    border: #000 1px solid;
    border-bottom: none;
    background: #A39F8E url(pics/handle.gif) repeat-x;
}

.handle a.close {
    display: block;
    position: absolute;
    right: 3px;
    top: 2px;
}

div.labelDisplay, span.userDisplay {
    color: #663;
    background: #dad5bb;
    padding: 2px 0 0 0;
    text-align: center;
}

div.labelDisplay {
    font-size: 9px;
}

span.userDisplay {
    padding: 3px 3px 1px 3px;
    width: 33px;
}

.editor form {
    border: 1px #000 solid;
    margin: 0px;
    padding: 5px;
}

.editor form fieldset {
    cursor: default;
    padding: 16px 13px 7px 13px;
    border: none;
    margin: 0;
    background: #eaeae5;
}

.editor form fieldset h3 {
    position: relative;
    margin: 0 0 1px 1px;
}
.editor form fieldset h2 {
    margin: -7px 0 8px 0;
}

.editor form fieldset input {
    margin-top: 6px;
}
.editor form fieldset textarea {
    margin-top: 17px;
    margin-bottom: 14px;
    height: 54px;
}

input.hidden {
    display:none;
}

/* editor: bottom-controls part */

.editor .saveBg {
    margin-top: 5px;
    padding: 8px 12px 10px 12px;
    height: 1px;
    background: #eaeae5;
}

.editor div.saveBg div.hr {
    width: 250px;
}

a.save, a.logout {
    position: absolute;
    right: 36px;
    bottom: 11px;
    background: #eaeae5;
    padding: 0px 2px;
}

a.logout {
    top: 5px;
}

.editor form fieldset h2,
a.save:link, a.save:visited, a.save:hover, a.save:active,
a.login:link, a.login:visited, a.login:hover, a.login:active,
a.logout:link, a.logout:visited, a.logout:hover, a.logout:active {
    color: #8B3132;
    font-weight: bold;
    font-size: 9pt;
}



/* editor: add/remove input lines */

.listControl {
    margin-bottom: 12px;
}
.listControl div {
    position:relative;
    width: 248px;
    padding: 0px;
}
.listControl div input {
    width: 224px;
}

.add, .remove, .removeDisabled {
    position: absolute;
    border: #8B3132 solid 1px;
    right: 0;
}
.add {
    top: 7px;
}
.remove, .removeDisabled {
    top: 16px;
}
.removeDisabled {
    border-color: #808080;
}



/* editor: add-entry large */

.buttonAdd {
    position: absolute;
    right: 20px;
    top: 36px;
}



/* editor: add-project-specifics */

.editor form fieldset h3.firstReferee {
    position: absolute;
    left: 162px;
    top: 39px;
}

.fLabelDate {
    width: 65px;
}

.fLabelPlace {
    position: relative;
    top: 1px;
    width: 60px;
}

.fLabel {
    width: 103px;
}

.fReferee {
    margin-left: 10px;
    width: 90px;
}

/* editor: project-specifics */

#dLabel {
    position: absolute;
    width: 92px;
    right: 17px;
    top: 34px;
}

a.setState, a.setStateActive {
    display: block;
    padding: 0;
    line-height: 11px;
    font-size: 11px;
    color: #878787;
    margin-top: 8px;
    margin-bottom: 8px;
}
a.setStateActive {
    color: #000;
}

.col1 {
    float: right;
    width: 140px;
    padding: 0px;
    margin: 0px;
    margin-left: 10px;
}

#fClient {
    width: 181px;
}
#fVat {
    width: 55px;
}
#fName, #fDescription {
    width: 248px;
}
#fDescription {
    margin-top: 4px;
}


/* editor: firstOffer / bargain / rates / bills specifics */

.editorBillsItem, .editorRatesItem {
    position: relative;
    width: 343px;
    height: 50px;
}

.editorBillsItem input, .editorRatesItem input {
    position: relative;
    top: -1px;
}

input.amount {
    width: 97px;
    padding-left: 0;
    text-align: right;
}

input.date {
    width: 71px;
    padding-left: 0;
    text-align: right;
}

input.billNo, select.billNo {
    position: absolute;
    left: 212px;
    top: 0;
    padding-right:0;
    width: 128px;
}

select.billNo {
    right: 0;
    top: 6px;
    padding:0;
    margin:0;
    height: 16px;
    width: 126px;
}

input.remark {
    position: absolute;
    opacity: 0.6;
    filter:Alpha(opacity=60);
    top: 20px;
    padding-right:0;
    width: 340px;
}

#editorBills, #editorRates {
    width: 390px;
}

#editorRates form fieldset,
#editorBills form fieldset {
    padding-right: 0!important;
    margin-right: 0!important;
}

#editorBillsList, #editorRatesList {
    max-height: 400px;
    width: 365px;
    overflow: auto;
    margin-right: 0;
}

#editorBills div.saveBg div.hr, #editorRates div.saveBg div.hr {
    width: 340px;
}

