@import url('https://fonts.googleapis.com/css?family=Lato|Roboto');

body {
   font-family: 'Lato', sans-serif;
   margin: auto;
/*   width: 1200px; */
}

ul {
   -webkit-margin-before:0em;
   -webkit-margin-after:0em;
   -webkit-padding-start:0em;
}

.popup #main-menu {
	display: none;
}

.popup #secondary-menu {
	display: none;
}

nav#main-menu {
   display: none;
}

#content {
}

#content h1 {
   font-size: 1rem;
   padding: 0.5rem 1rem;
   margin: 0;
   background: #b1caf3;
   color: #444;
}

#content h2 {
   font-size: 1rem;
   font-weight: normal;
   color: #444;
   background-color: #eee;
   padding: 0.3rem 1rem;
   margin: 0;
}

#content h3 {
   font-size: 0.8rem;
   font-weight: normal;
   color: #444;
   background-color: #fcfcfc;
   padding: 0.5rem 1rem;
   margin: 0;
}

#footer {
   clear: both;
   background: #e0e0e0;
   color: #444;
   padding: 6px;
   font-size: 12px;
}

#blank-page {
   font-size: 1.5rem;
    vertical-align: middle;
    text-align: center;
    background: #f8f0f8;
    padding-top: 300px;
    padding-bottom: 288px;
}

ul.topmenu, ul.ui-menu {
   background-color: aliceblue;
}

#main-menu .selected {
   background-color: #64ADE0;
}

.edit-config .company-logo {
   width: 25rem;
}

/* Table styling */

.gestoptima-table {
   padding:0;
   margin: 0.8rem;
   border:1px solid #000000;
}

.gestoptima-table table {
   border-collapse: collapse;
   border-spacing: 0;
   width:100%;
   height:100%;
   margin:0px;padding:0px;
}

.gestoptima-table.half {
   width: 50%;
   margin: auto;
}

.gestoptima-table.quarter {
   width: 25%;
   margin: auto;
}

.gestoptima-table tr:nth-child(odd)     { background-color:#f4f9fd; }
.gestoptima-table tr:nth-child(even)    { background-color:#ffffff; }

.gestoptima-table td {
   font-size: 16px;
   vertical-align:middle;
   text-align:left;
   padding: 4px 8px;
   color:#080808;
}

.gestoptima-table td.icons {
   padding: 0 2px;
   text-align: center;
   vertical-align: middle;
}

.gestoptima-table td.icons a {
   color: #97abbe;
}

.gestoptima-table tr:last-child td { border-width:0px 1px 0px 0px; }
.gestoptima-table tr td:last-child { border-width:0px 0px 1px 0px; }
.gestoptima-table tr:last-child td:last-child { border-width:0px 0px 0px 0px; }

.gestoptima-table tr:first-child th {
   font-size: 48px;
}

.gestoptima-table tr:first-child th {
   background:-o-linear-gradient(bottom, #3f3f82 5%, #3f3f82 100%);  
   background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #3f3f82), color-stop(1, #3f3f82) );
   background:-moz-linear-gradient( center top, #3f3f82 5%, #3f3f82 100% );
   padding: 0.3rem;
   background-color:#3f3f82;
   border:0px solid #000000;
   text-align:center;
   border-width:0px 0px 1px 1px;
   font-size:14px;
   font-family:Arial;
   font-weight:bold;
   color:#ffffff;
}

.gestoptima-table tr:first-child td:first-child{ border-width:0px 0px 1px 0px; }
.gestoptima-table tr:first-child td:last-child{ border-width:0px 0px 1px 1px; }

.gestoptima-table .number {
   text-align: right;
}

.gestoptima-table .amount {
   text-align: right;
}

.gestoptima-table .date {
   text-align: right;
}

.gestoptima-table tr.totals {
   background-color: #b1caf3;
}

.gestoptima-table tr.totals td.amount {
   font-weight: bold;
}

.gestoptima-table tr.overdue {
   background-color: #ffc0c0;
}

.gestoptima-table td.currency {
   min-width: 7rem;
}

.gestoptima-table td.currency .field-wrapper::after {
   content: "€";
   padding-left: 0.2rem;
}

/* Tax report specific */
.display-tax-bycustomer .total {
   margin-right: 1rem;
   margin-bottom: 2rem;
   font-size: 1.2rem;
   text-align: right;
}

.display-tax-bycustomer .total .amount {
   text-align: right;
   font-weight: bold;
}

/* Edit entry */
.edit-entry .gestoptima-table td {
}

.edit-entry .gestoptima-table .hidden {
   display: none;
}

.edit-entry tr.rgroup-header td {
   text-align: center;
   border-top: 1px solid #add0e8;
   background: #d0ecff;
}

.edit-entry tr.new-record-btn img {
   width: 16px;
}

.edit-entry #id_title { width: 30rem;}

tr.entry-totals input.error {
   color: red;
}

.related-entries a {
   color: #97abbe;
}

.edit-invoice .related-entries {
   display: table-cell;
   vertical-align: middle;
}


/* Company field lengths */
.edit-company #id_name { width: 30rem; }
.edit-company #id_address { width: 15rem; }
.edit-company #id_zip { width: 5rem; }
.edit-company #id_country { width: 3rem; }
.edit-company #id_tax_id { width: 5rem; }
.edit-company #id_nif { width: 5rem; }
.edit-company #id_it_tax_deduction_rate { width: 3rem; }

/* Edit invoice */
.edit-invoice .receivable #fw-issuer,
.edit-invoice .receivable .company-add-link.issuer,
.edit-invoice .receivable #fw-reference,
.edit-invoice .receivable #fw-type,
.edit-invoice .receivable #fw-vat_deductible,
.edit-invoice .receivable #fw-it_deductible,
.edit-invoice .receivable #fw-it_expense_cat,
.edit-invoice .receivable #fw-purchase_type,
.edit-invoice .receivable #fw-attachment,
.edit-invoice .payable #fw-pro_forma,
.edit-invoice .payable #fw-receiver,
.edit-invoice .payable .company-add-link.receiver,
.edit-invoice .payable #fw-serial_no,
.edit-invoice .payable #fw-type,
.edit-invoice .payable #fw-sale_type,
.edit-invoice .payable .gestoptima-table
{
   display: none;
}

/* Common elements */
.search {
   float: left;
   margin-top: 2px;
}

.search input[type=submit] {
    float: none;
    margin: 0;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    font-size: 0;
    background-image: url(../img/search.png);
    background-position: 2px 2px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-color: #ddd;
    border: #ccc;
    border-radius: 2px;
}

.controls {
   margin: 0 0.5rem;
}

.pager {
   float: left;
   margin-right: 1rem;
   height: 2.5rem;
}

.pager-links a {
   text-decoration: none;
   font-size: 0;
   padding: 12px;
   border: 1px solid #3f3f82;
   font-size: 0;
   background-position: 2px 2px;
   background-size: 20px;
   background-repeat: no-repeat;
   border: none;
}

.pager-links a.previous {
   background-image: url(../img/previous.png);
}

.pager-links a.next {
   background-image: url(../img/next.png);
}

/* Simple link */

.field-wrapper.simple-link {
   vertical-align: bottom;
}

.field-wrapper.simple-link a {
   padding: 0;
   margin: 0;
}

.simple-link a {
   float: right;
   padding: 0.4rem 1rem;
   margin: 0 0.5rem 0.5rem 0;
   color: #8391A0;
   font-size: 12px;
}


.button-new {
   width: 50%;
   float: right;
}

.field-wrapper .autocomplete-light-widget.modern-style .deck [data-value],
.field-wrapper .autocomplete-light-widget.modern-style .deck .choice {
    /* border: 1px solid lightgrey; */
    /* border-radius: 4px; */
    font-size: 80%;
    border: none;
}

.field-wrapper .readonly, .field-wrapper input[type="number"]:disabled {
   font-size: 14px;
   background: #f0f0f0;
   border: 1px solid #e0e0e0;
}

.field-wrapper .number {
   text-align: right;
}

.yourlabs-autocomplete {
   color: red!important;
}

.select2-results li {
   font-size: 12px;
}

select {
   width: 8rem;
   padding:3px;
   margin: 0;
   border-radius:4px;
   box-shadow: 0 2px 0 #ccc, 0 -1px #fff;
   background: #f8f8f8;
   color:#333;
   border:none;
   outline:none;
   display: inline-block;
   cursor:pointer;
}

select[multiple="multiple"] {
   height: 5rem;
}

input[type="text"], input[type="password"] {
   font-family: 'Lato', sans-serif;
   padding: 0.2rem;
   border: #c4dde4 1px solid;
   border-radius: 4px;
   background: #fdfde7;
   color: #333;
   font-size: 14px;
}

.gestoptima-table input[type="text"] {
   width: 98%;
}

.field-wrapper .select2-container {
   font-size: 12px;
}

input[type="text"].datepicker {
   width: 5rem;
   text-align: right;
}

input[type="submit"], .button-link a, button {
   font-family: 'Lato', sans-serif;
   padding: 0.3rem 1rem;
   margin: 0 0.5rem 0rem 0;
   border: #305979 1px solid;
   border-radius: 4px;
   background: #4D8FC2;
   font-size: 14px;
   text-decoration: none;
   text-shadow: #888 1px 1px;
   float: right;
   color: white;
   font-weight: bold;
}

input[type="submit"]:disabled, button:disabled {
   background: #9ec5e2;
   border: #8da8bd;

}


input[type="number"] {
   padding: 0.2rem;
   width: 5rem;
   border-radius: 4px;
   border: #c4dde4 1px solid;
   background: #fdfde7;
   text-align: right;
}

.field-wrapper.icon {
   vertical-align: middle;
}

.field-wrapper {
   margin-top: 2px;
}

.field-wrapper label {
   display: block;
   font-size: 12px;
   margin-bottom: 2px;
   color: #0F1067;
}

.field-wrapper.euro::after {
   content: '\20AC'; // Euro
}

.field-wrapper.button {
   vertical-align: bottom;
}

#messages {
   display: none;
}

#messages .message-wrapper {
   padding: 0.5rem 2rem;
   min-height: 60px;
}

#messages .info {
   color: #0A5F0A;
   background: #D8F1DE;
}

#messages .error {
   color: #6b0606;
   background: #ffa7a7;
}

ul.error {
   margin-left: 1rem;
}

.message {
   background: #D8F1DE;
   padding: 12px;
   margin: 12px;
   border: #3ACE14 1px solid;
   color: #0A5F0A;
   position: absolute;
   top: 30%;
   left: 50%;
}

.errors {
   background: #FFCBB5;
   padding: 12px;
   margin: 12px;
   border: #FF0F73 1px solid;
   color: #961919;
}

.helptext {
   font-size: 12px;
   margin-top: 4px;
   color: #444;
}

fieldset.field-group {
   display: table-row;
   padding-top: 0.5rem;
   margin-bottom: 0.5rem;
   background: #fefefe;
   border: none;
   border-bottom: 1px solid #ccc;
}

.field-group .field-wrapper {
   display: table-cell;
   padding-right: 1rem;
}

input[type="checkbox"]#display-zero {
   margin-top: 0.5rem;
   margin-left: 1rem;
}

/* Login form */

.io-login .login-title {
   color: #444;
   font-size: 1.5rem;
   border-bottom: 1px solid #ccc;
   padding-bottom: 0.3rem;
   margin-bottom: 0.75rem;
}

.io-login #content {
   min-height: 800px;
   min-width: 1200px;
}

.io-login .form-wrapper {
    width: 12rem;
    margin: auto;
    border: #a0a0a0 1px solid;
    padding: 2rem;
    border-radius: 4px;
    background: #f8f8f8;
}

.io-login .auth-failure {
   color: #d01c1c;
   font-size: 0.8rem;
   padding-top: 0.5rem;
}

.io-login input[type="submit"] {
   margin: 1rem 0 0 0;
   float: none;
}

.io-login #footer, .popup #footer {
   display: none;
}

