html,body {
height:100%;
width:100%
}

/* fonts */
@font-face {
    font-family: "Comfortaa";
    font-style: normal;
    font-weight: 400;
    src: local("Comfortaa"),
    url("../fonts/Comfortaa.woff") format("woff");
}

@font-face {
    font-family: "Numans";
    font-style: normal;
    font-weight: 400;
    src: local("Numans-Regular"),
    url("../fonts/Numans-Regular.woff") format("woff");
}

@font-face {
    font-family: 'Inconsolata';
    font-style: normal;
    font-weight: 400;
    src: local('Inconsolata'),
    url("../fonts/Incosolata.woff") format("woff");
}

html body,.ui-widget {
font-family:Numans
}

#main-menu #welcome,#main-menu #help-button,#farm-button,#app_name,.simulabio,h2,h3,h4 {
font-family:Comfortaa
}

.ui-jqgrid tr th,.ui-jqgrid tr.jqgrow td {
font-family:Inconsolata;
font-size:1.1em
}

.ui-widget-content .ui-state-highlight {
background-color:#ff6e6e;
background-image:none
}

#main-menu #welcome,#main-menu #authentification,table#balance-fodder-table tr.header th,.inline-table th {
background-color:#aaa
}

#help,#farm-studies,#top,.menu-tooltip {
background-color:#000
}

ul#rotation_template_harvests li {
background-color:#f2f37a;
border:2px solid #000;
border-radius:2em;
color:#000;
display:inline-block;
margin:.5em 1em .5em 0;
padding:.5em 1em
}

#switches,#footer,#main-study-menu,table#balance-fodder-table tr th,table#balance-fodder-table td,table.inline-table td {
background-color:#fff
}

table#animals-primary-balance td.delta,table#harvest-production td.delta,.ui-widget-content a,#farm-studies .new a,a {
color:#212121
}

body {
background-color:#eff0ec;
background-image:url(../img/logo-big.png);
background-position:center top;
background-repeat:no-repeat;
color:#61615C;
font-family:Arial, Helvetica, sans-serif;
font-size:11pt;
margin:0
}

caption,h2,h3 {
color:#225304;
font-weight:700
}

button {
color:#444
}

#help,#main-menu a,#main-menu,#farm-studies a,table#balance-fodder-table tr.header th,.inline-table th {
color:#fff
}

.negative {
color:red
}

.positive {
color:#2bbd2b
}

.error {
color:#f55
}

#main-study-menu,#footer,#switches,table#balance-fodder-table,table#balance-fodder-table th,table#balance-fodder-table td {
border-color:#CCC
}

table#balance-fodder-table tr.header th,.inline-table th,.inline-table td {
border-color:#fff
}

.ui-button-text-only .ui-button-text {
padding:.3em .8em
}

.ui-buttonset .ui-button {
margin-right:-.4em
}

a {
text-decoration:none
}

h2 {
font-size:1.2em;
margin:0;
text-align:center
}

h3 {
margin:1em 0 .5em;
text-align:center
}

h4 {
font-variant:small-caps;
padding:.5em 0;
text-align:center
}

h4.ui-widget-header {
border-bottom-width:0;
font-size:1.1em;
margin-bottom:0;
margin-top:1em;
text-align:center
}

#app_name {
display:none;
font-size:3em;
margin:0 auto;
padding:0;
width:768px
}

form {
margin-top:10px;
width:100%
}

table#balance-fodder-table,table.inline-table {
border-collapse:collapse;
white-space:nowrap
}

table#litter-table input {
width:45px
}

table.inline-table td,table.inline-table th {
border-style:solid;
border-width:1px
}

form table.large input {
width:140px
}

p.form,p.validate {
margin:.5em 0;
text-align:center
}

.ui-jqgrid .ui-jqgrid-view {
font-size:1.1em
}

ul.list {
margin-left:auto;
margin-right:auto;
text-align:left;
width:300px
}

label {
display:block
}

label:first-letter {
text-transform:uppercase
}

textarea {
height:50px;
width:150px
}

textarea#id_comment {
height:100px;
width:60%
}

#comment-form label {
display:block;
margin-left:auto;
margin-right:auto;
text-align:center
}

td input {
display:block;
margin-left:auto;
margin-right:auto
}

.inline-table th {
border-style:solid;
border-width:0;
padding:.2em
}

h4.ui-widget-header.first-block {
margin-top:40px
}

h4.ui-widget-header.first-block-3-menu {
margin-top:78px
}

table#balance-fodder-table {
border-top-width:0;
margin-left:auto;
margin-right:auto
}

table#balance-fodder-table th {
border-style:solid;
border-width:2px;
padding:.4em
}

table#balance-fodder-table td {
border-style:solid;
border-width:1px;
padding:.4em
}

table#balance-fodder-table td.spaced-vert {
border-width:0 2px
}

table#balance-fodder-table td.spaced-horiz {
border-width:2px 0
}

table#balance-fodder-table tr.header th {
border-width:1px
}

table#balance-fodder-table th.simple {
font-weight:400
}

#top {
box-shadow:0 0 10px #000;
display:none;
height:31px;
padding:0;
position:fixed;
width:100%;
z-index:20
}

#main-menu div {
text-align:center;
z-index:15
}

#main-menu #logo,#main-menu #welcome,#main-menu #farm-button,#main-menu #authentification,#main-menu #help-button {
display:block;
float:right;
height:21px;
min-width:100px;
padding:5px 10px;
top:0
}

#main-menu #welcome,#main-menu #help-button {
font-weight:700
}

#main-menu #logo,#main-menu #welcome,#main-menu #farm-button {
float:left
}

#main-menu-open,#main-menu-close {
background-repeat:no-repeat;
color:transparent;
cursor:pointer;
height:80px;
line-height:80px;
width:10px
}

#main-menu-close {
background-image:url(../img/fold-right-button.png);
left:91px;
position:absolute;
top:170px
}

#main-menu-open {
background-image:url(../img/fold-left-button.png);
display:none;
left:0;
position:fixed;
top:224px
}

#help-close,#help-button,#main-menu #farm-button {
cursor:pointer
}

#help,#farm-studies {
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
color:#FFF;
display:none;
margin-bottom:2em;
min-height:40px;
padding:5px;
position:fixed;
top:50px;
width:250px;
word-wrap:break-word;
z-index:100
}

#farm-studies {
cursor:pointer;
left:310px
}

#help {
background-color:#888;
margin:20px;
max-height:80%;
opacity:0.95;
overflow:auto;
padding:1em;
right:10px;
top:auto;
width:90%
}

#help-close {
-moz-border-radius:10px;
-webkit-border-radius:10px;
background-color:#fff;
border:1px solid #fff;
border-radius:10px;
color:#888;
font-weight:700;
line-height:10px;
padding:.2em;
position:fixed;
right:50px;
top:30px
}

#help:after,#farm-studies:after {
border-color:transparent transparent #000;
border-style:solid;
border-width:10px;
content:'';
display:block;
height:0;
position:absolute;
top:-20px;
width:0
}

#farm-studies:after {
left:40px
}

#help:after {
border-color:transparent transparent #888;
display:none;
right:40px
}

.menu {
margin:2px auto;
padding:0;
text-align:center;
width:auto
}

.menu li {
display:inline-block;
padding:.4em .2em;
text-align:center;
width:100px
}

.menu-tooltip {
-moz-border-radius:5px;
-webkit-border-radius:5px;
background-color:#777;
border-radius:5px;
color:#FFF;
cursor:pointer;
display:none;
left:80px;
margin-bottom:2em;
padding:5px;
position:absolute;
top:auto;
width:120px;
word-wrap:break-word;
z-index:100
}

.menu-tooltip:after {
border-color:transparent #777 transparent transparent;
border-style:solid;
border-width:6px;
content:'';
display:block;
height:0;
left:-12px;
position:absolute;
top:6px;
width:0
}

#switches {
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:0 0 5px 5px;
border-style:solid;
border-width:1px;
box-shadow:0 0 5px #000;
padding:5px 0;
position:fixed;
top:32px;
width:766px;
z-index:10
}

#steps {
left:30px;
position:absolute;
top:-32px
}

#menu,#harvest_category {
top:74px
}

#animals {
top:110px
}

#action-background {
background-position:right center;
background-repeat:no-repeat;
height:100%;
left:0;
position:fixed;
width:100%;
z-index:-100
}

#main-study-menu {
-moz-border-radius:0;
-webkit-border-radius:0;
background-color:transparent;
border-radius:0;
border-style:none;
border-width:0;
box-shadow:none;
left:-71px;
margin:0;
padding:0;
position:absolute;
top:-3px;
width:70px
}

#main-study-menu.menu li {
background-position:center center;
background-repeat:no-repeat;
display:block;
height:50px;
margin-bottom:5px;
width:60px
}

#main-study-menu.menu li a {
color:transparent
}

.menu #study-link {
background-image:url(../img/icons/barn.png)
}

.menu #harvest-link {
background-image:url(../img/icons/wheat.png)
}

.menu #animals-link {
background-image:url(../img/icons/cow.png)
}

.menu #balance-link {
background-image:url(../img/icons/grass.png)
}

.menu #economy-link {
background-image:url(../img/icons/euro.png)
}

#content {
margin-left:auto;
margin-right:auto;
padding-top:90px;
width:768px
}

.centered {
margin-left:auto;
margin-right:auto;
margin-top:0;
padding:.2em;
text-align:center
}

.centered ul {
margin-left:auto;
margin-right:auto;
text-align:left;
width:250px
}

.overflow-box {
border:0;
margin-left:auto;
margin-right:auto;
max-width:90%;
overflow:auto
}

#remark {
margin:1em
}

#container {
height:auto;
min-height:100%
}

div#wrapper {
margin:0 auto;
min-height:100%;
position:relative
}

div#content {
padding-bottom:120px
}

div#footer {
border-top-style:solid;
border-top-width:1px;
bottom:0;
height:50px;
position:fixed;
width:100%
}

#footer_content {
font-size:.9em;
margin-left:auto;
margin-right:auto;
padding:.5em;
width:768px
}

.info.ui-state-highlight {
background-color:inherit
}

.info.ui-state-highlight,.warning.ui-state-error {
font-size:.9em;
margin:.5em 2em;
padding:.5em
}

.info.ui-state-highlight span,.warning.ui-state-error span {
display:inline-block;
overflow:hidden
}

th.ui-th-column div {
height:auto!important;
padding:2px;
white-space:normal!important
}

table#animals-primary-balance td.str {
padding:.1em;
text-align:left
}

table#harvest-production td,table#animals-primary-balance td,#form_rotationdominant .inline-table td {
padding:.2em;
text-align:right
}

#plot_list_div,#rotation_list_div {
margin-left:auto;
margin-right:auto;
overflow-x:auto;
width:700px
}

#harvest_plot_table_div {
margin-left:auto;
margin-right:auto;
overflow-x:auto;
width:405px
}

.ui-jqgrid #plot_list tr.jqgrow td {
white-space:normal
}

ul#rotation_template_harvests {
background-image:url(../img/harvest_link.png);
background-position:center center;
background-repeat:repeat-x;
display:inline;
padding:0
}

ul#rotation_template_harvests li.last-item {
margin:0
}

.rotation-image {
width:500px
}

#feed_template_graph {
height:300px;
width:500px
}

form.simple {
margin-left:auto;
margin-right:auto;
text-align:center
}

form.simple label {
display:inline-block;
text-align:left;
width:200px
}

#waiting {
background-color:#fff;
border:3px solid #777;
display:none;
left:18px;
padding:.5em 1em;
position:fixed;
top:18px;
z-index:1001
}

#waiting a {
margin-left:5px
}

.ajax-loader {
display:inline;
height:18px
}

.even,.even input {
background-color:#eee
}

table.inline-table td input {
border:1px solid #ccc
}

#main-study-menu li,.window,.study-pages #content,#contener {
border:3px solid #777
}

#farm-studies .new a,p a {
font-weight:700;
text-decoration:underline
}

.study-pages #content {
left:120px;
position:absolute;
right:60px;
top:100px;
width:auto
}

select {
-moz-appearance:none;
-webkit-appearance:none;
appearance:none;
background:transparent;
border:1px solid #999;
border-radius:0;
font-size:16px;
height:26px;
line-height:1;
width:154px
}

input[type=password],input[type=text] {
border:1px solid #999
}

.window {
background-color:#fff;
margin-left:auto;
margin-right:auto;
margin-top:160px;
padding:1.5em;
position:relative;
width:500px
}

#message {
position:absolute;
text-align:center;
width:100%;
z-index:1000
}

#message-close {
position:absolute;
right:50px;
text-decoration:none
}

#message p {
padding:.3em
}

#menu {
position:absolute;
right:20px;
top:20px
}

#harvest-link,#balance-link,#economy-link {
margin-top:30px
}

#welcome #menu {
position:static
}

#main-study-menu li {
border-radius:10px 0 0 10px
}

#main-study-menu li.ui-state-active#study-link {
border-right-color:#eabb4f
}

table.generic-form th,table.generic-form td {
padding:.8em
}

table.generic-form textarea {
height:100px;
width:700px
}

.harvests-gen #content {
background-color:#f2e2c4
}

#main-study-menu li.ui-state-active#harvest-link {
border-right-color:#f2e2c4
}

#main-study-menu li.ui-state-active#animals-link {
border-right-color:#bfa07a
}

#pasturable {
border-collapse:collapse;
margin-left:auto;
margin-right:auto;
width:780px
}

#pasturable td {
background-color:#fff;
border:1px solid #000;
text-align:center
}

#pasturable th {
background-color:#92D050;
border:1px solid #92D050;
width:65px
}

table#pasturable .subhead {
border-left:1px solid #fff;
border-right:1px solid #fff;
font-size:.8em;
font-style:italic;
text-align:left
}

#main-study-menu li.ui-state-active#balance-link {
border-right-color:#baca42
}

.inline-table th.loan,.economy-gen #content {
background-color:#79bee3
}

#main-study-menu li.ui-state-active#economy-link {
border-right-color:#79bee3
}

#extra-revenues-table tbody th {
min-width:100px
}

body.study-pages #menu {
right:-40px;
top:-80px
}

#login-form {
padding:1em;
text-align:center
}

.action-icon {
padding:1em
}

#contener {
background-color:#fff;
margin:0 30px 30px;
padding:0 30px 30px
}

#study-title,#option-study-menu.menu,#study-menu {
position:absolute
}

#study-title,#option-study-menu.menu li,#study-menu.menu li {
border:3px solid #777;
height:19px;
margin-bottom:5px
}

#option-study-menu.menu li,#study-menu.menu li {
background-color:#ccc;
min-width:180px;
width:auto
}

#option-study-menu.menu {
right:0;
top:-4px
}

#study-title {
background-color:#fff;
left:28px;
padding:.4em 1em;
top:-2px
}

#study-menu.menu {
left:30px;
top:54px
}

#study-menu.menu li {
border-radius:10px 10px 0 0
}

#study-title,#option-study-menu.menu li {
border-radius:0 0 10px 10px
}

.simple-overflow-box {
border:0;
overflow:auto
}

#eco-harvest,#eco-workshop {
top:125px
}

#help-close:hover {
background-color:#888;
color:#fff
}

#help li {
margin:0 1em;
padding:.5em
}

#help p {
padding:.5em 0
}

#help table {
border-collapse:collapse;
display:block;
overflow:auto
}

#help table th,#help table td {
border:1px solid #FFF;
min-width:150px;
padding:.5em
}

.vmenu-tooltip {
-moz-border-radius:5px;
-webkit-border-radius:5px;
background-color:#777;
border-radius:5px;
color:#FFF;
cursor:pointer;
display:none;
margin-left:-22px;
margin-top:6px;
padding:5px;
position:absolute;
text-align:center;
width:120px;
word-wrap:break-word;
z-index:100
}

.vmenu-tooltip:after {
border-color:transparent transparent #777;
border-style:solid;
border-width:6px;
content:'';
display:block;
height:0;
left:60px;
position:absolute;
top:-10px;
width:0
}

#menu ul {
display:inline
}

#static-expenses-table td,#extra-revenues-table td,#purchases-table td,#expenses-table td,#revenues-table td,#harvest-expense td,#workshop-expense td,#crop-selling td,#harvest-production td,#synthesis-table td {
font-family:monospace;
text-align:right
}

.inline-table td.production,.inline-table th.production,.extra-revenues th,.extra-revenues,.depreciation th,.financial-expenses th,.depreciation,.financial-expenses,.loans-capital th,.loans-interest th,.loans-total-annuity th,.loans-capital,.loans-interest,.loans-total-annuity {
background-color:#f2e2c4;
color:#444
}

#synthesis-table td {
padding:0 18px
}

table.inline-table {
margin-left:0;
margin-right:0
}

.inline-table th.harvest {
color:#000
}

#expenses-table th.header,#purchases-table th.header,#revenues-table th.header,#extra-revenues-table th.header,#workshop-expense th.header,#crop-selling th.header,#crop-selling th.header2,#harvest-production.inline-table th.header,#harvest-expense th.header,#harvest-expense tbody th {
border-right:1px solid #fff;
height:16px;
left:66px;
margin-top:-1px;
position:absolute;
top:auto
}

#harvest-expense tbody th {
text-align:left;
width:170px
}

#crop-selling th.header {
width:74px
}

#crop-selling th.header2 {
left:146px;
width:80px
}

#harvest-production.inline-table th.header {
width:65px
}

#expenses-table th.header,#purchases-table th.header,#revenues-table th.header,#extra-revenues-table th.header,#workshop-revenue th.header,#workshop-expense th.header {
text-align:left;
width:200px
}

#crop-selling th.header2.rowspan2,#crop-selling th.header.rowspan2,#harvest-expense th.header.rowspan2 {
height:36px
}

#harvest-production.inline-table th.header.rowspan3 {
height:80px
}

#expenses-table .firstcol-spacer,#purchases-table .firstcol-spacer,#revenues-table .firstcol-spacer,#extra-revenues-table .firstcol-spacer,#workshop-revenue .firstcol-spacer,#workshop-expense .firstcol-spacer {
width:205px
}

#crop-selling .firstcol-spacer {
width:165px
}

#harvest-production .firstcol-spacer {
width:63px
}

#harvest-expense .firstcol-spacer {
width:172px
}

.total-revenues,.operational-expenses,.gop,.current-result,.gop-by-revenue {
border:3px solid
}

#extra-revenues-table input,#purchases-table input,#expenses-table input,#revenues-table input,#harvest-expense input,#workshop-expense input,#crop-selling input,#synthesis-table input,table.inline-table#crop-selling td input,table.inline-table#crop-prices td input {
border:1px solid #000;
width:50px
}

*,#login-form h4 {
margin:0;
padding:0
}

th,.ui-widget {
font-size:.9em
}

table#balance-fodder-table td.spaced-horiz,table#balance-fodder-table td.spaced-vert,table#balance-fodder-table td.spaced,table#balance-fodder-table tr th,table#balance-fodder-table td,table.inline-table td {
background-color:transparent
}

.emphasis,#help table td {
font-style:italic
}

.validate-bar,.hidden,#plot_list_div,#plot_form,#rotation_template_remove_confirm,#footer {
display:none
}

form table,#rotation_template_container {
margin-left:auto;
margin-right:auto
}

form table input,table#harvest-production td {
width:70px
}

form table th label,td {
text-align:left
}

.align-right,#static-expenses-table input,#extra-revenues-table input,#purchases-table input,#expenses-table input,#revenues-table input,#harvest-expense input,#workshop-expense input,#crop-selling input,#synthesis-table input {
text-align:right
}

.align-center,#comment-form,#welcome {
text-align:center
}

.ui-dialog form table input,table.large-table th,table.large-table td {
width:150px
}

table#balance-fodder-table .pourc,.total-revenues,.operational-expenses,.fixed-expenses,.total-revenue,.total-expenses,.gop,.current-result,.total-disposable-income,.total-disposable-income-by-man-work-unit,.gop-by-revenue {
font-size:1.2em;
font-weight:700
}

table#balance-fodder-table td.spaced,table#balance-fodder-table tr.header td.spaced {
border-width:0
}

table#balance-fodder-table input[type=text],#animals_feed_update input[type=text] {
width:50px
}

table.large-table input[type=text],table#animals-primary-balance td {
width:100px
}

#main-menu #logo,#harvest-expense th.header.rowspan2 {
width:170px
}

#form_rotationdominant .inline-table th.small,#form_rotationdominant .inline-table input[readonly=readonly] {
width:40px
}

body.study-pages,.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default
.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error
.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,.ui-widget-header {
background-image:none
}

.inline-table th.amortization,.study-gen #content,.inline-table td.delta,.inline-table th.delta,.total-expenses th,.total-expenses {
background-color:#eabb4f
}

.animals-gen #content,.bovine-workshop-revenues th,.bovine-workshop-revenues,.bovine-workshop-expenses th,.bovine-workshop-expenses {
background-color:#bfa07a
}

.balance-gen #content,.vegetal-expenses th,.vegetal-expenses,.vegetal-revenues th,.vegetal-revenues,.inline-table th.sau,.inline-table td.sau,.total-revenue th,.total-revenue {
background-color:#baca42
}

#menu ul li,.firstcol-spacer {
display:inline-block
}
