/*
 * Copyright 2002-2007 Robert D Butler Jr <robert.butler@hoa-management.com>
 *
 * This file is part of HOAM.
 *
 * HOAM is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 *
 * HOAM is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * HOAM; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 * Suite 330, Boston, MA  02111-1307  USA
 *
 */

table {
  border-spacing: 0;
  padding: .5em;
  text-align: left;
  vertical-align: top;
  width: 100%;
}

col.center {
  background: yellow;
  text-align: center !important;
}

col.legend {
  background: #efefef;
}

col.notes, td.notes, tr.notes {
  background: #eeffee;
}
td.currency {
  text-align: right;
  padding-right: 2em;
}
thead, tfoot {
  background: silver;
}

th {
  border-bottom: 1px solid black;
  border-top: 1px solid black;
}

td {
  border-bottom: 1px solid silver;
  padding: .3em;
}

th {
  text-align: center;
}

td ul {
  padding-left: 1em;
}

td li {
  text-align: left;
}

table.vote_results_i_hate_ie {
  float: left;
}

form {
  text-align: center;
}

form div.mandatory {
  background-color: pink;
  border-left: 5px solid;
  border-right: 5px solid;
  border-color: red;
  text-align: left;
  padding: .5em 1% .5em 1%;
}

form div.optional {
  background-color: silver;
  border-left: 5px solid;
  border-right: 5px solid;
  border-color: gray;
  text-align: left;
  padding: .5em 1% .5em 1%;
}

form table {
  background-color: white;
}

button {
  cursor: pointer;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

label {
  display: block;
  font-weight: bold;
  font-style: italic;
}

label span {
  display: block;
}

textarea {
  padding-bottom: .5em;
  width: 100%;
}

.mini-vote h1 {
  font-size: 110%;
  font-weight: bold;
}

.mini-vote form div {
  background: white;
  border: 0;
  color: black;
  padding: 0;
  text-align: center;
}

input:focus, select:focus, textarea:focus {
  /* background-color: yellow; */
  background-color: #ffff99;
}

.text {
  width: 100%;
}

#letter_head {
  margin: 1em;
  text-align: center;
}

#letter_head h1 {
  font-size: 15pt;
  font-variant: small-caps;
  margin: 0px;
  text-transform: capitalize;
}

#letter_head h2 {
  font-size: 13pt;
  font-variant: small-caps;
  margin: 0px;
  text-transform: capitalize;
}

#letter_head h3 {
  font-size: 10pt;
  font-style: italic;
  font-weight: normal;
  margin: 0px;
}

#letter_salutation {
  text-align: left;
}

#letter_signature {
  text-align: left;
}

.violation_letter {
  background: white;
  color: black;
  font-size: 80%;
  margin: 2em;
  padding: 1em;
  text-align: left;
}

.violation_letter h1 {
  font-size: 16pt;
  font-variant: small-caps;
  margin: 0px;
  text-align: center !important;
  text-transform: capitalize;
}

.violation_letter h2 {
  display: block !important;
  font-size: 13pt;
  font-variant: small-caps;
  margin: 0px;
  text-align: center;
  text-transform: capitalize;
}

.violation_letter h3 {
  display: block !important;
  font-size: 10pt;
  font-style: italic;
  font-weight: normal;
  margin: 0px;
  text-align: center;
}

.violation_letter_description {
  font-weight: bold;
}

.violation_letter_head {
  page-break-before: always;
}

.violation_letter_salutation {
  margin-top: 1em;
  text-align: left;
}

.violation_letter_signature {
  margin-top: 1em;
  text-align: left;
}

tr.homeowner_violation {
  background-color: #eeeeee;
}
  
.owner_address {
  margin: 3em 0em;
  text-align: left;
}

/* This is generally used when printing out letters & notices to homeowners
 *
 * I would prefer for this to be positioned at the bottom of each page rather
 * than after the signatures. However, when viewing / printing multiple
 * violation letters at once, 'fixed' causes all of the barcodes to be on top
 * of each other on the first page, and 'absolute' is on top of each other on
 * every page.
 */
.barcode {
  font-family: 'C39HrP24DhTt';
  font-size: 24pt;
  margin: .5em 0em .5em .5em;
  text-align: right;
}

.quicknews {
  border: 2px solid purple;
  float: left;
  margin: 1em 2em 1em .1em;
  padding: 0.5em 1em;
  width: 30%;
}

.quicknews h3 {
  color: purple;
  font-family: 'Haettenschweiler';
  font-style: italic;
  font-size: 24pt;
  margin: 5px;
  text-align: center;
}

.classifieds {
  border: 2px solid gray;
  float: right;
  margin: 1em 0.1em 1em 2em;
  padding: 0.5em 1em;
  width: 40%;
}

.classifieds h3 {
  font-variant: small-caps;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: underline;
}

.newsletter-ad, .newsletter-ad-bcard, .newsletter-ad-half, .newsletter-ad-quarter {
  border: 2px solid gray;
  margin: 0.5em 1em;
  padding: 0.5em 1em;
}

.newsletter-ad-bcard {
  height: 2.25in;
  width: 4in;
}

.newsletter-ad-half {
  height: 50%;
  width: 100%;
}

.newsletter-ad-quarter {
  height: 50%;
  width: 50%;
}

.label_avery_5160 {
  float: left;
  font-family: "Trebuchet MS", "Verdana";
  font-size: 10pt;
  height: .875in;
  margin-right: .0875in;
  overflow: hidden;
  padding: .0625in;
  width: 2.5in;
}

.label_avery_5371 {
  float: left;
  height: 2in;
  overflow: hidden;
  padding: .125in;
  width: 3.5in;
}

img.yotm {
  border: 5px inset;
}

.violation_quickinfo {
  background: white;
  border: 1px solid black;
  color: black;
  float: right;
  font-size: 80%;
  height: 14.5em;
  max-width: 50%;
  padding: .5em;
  width: 35em;
}

.violation_quickinfo abbr {
  cursor: help;
}
  
.violation_quickinfo img {
  float: left;
  margin: 0 .5em .5em 0;
}

/*
 * Overriding the defaults used by the windows_js greenlighting theme.
 */
.greenlighting_content {
  text-align: justify;
}
.greenlighting_content h3 {
  text-align: center;
  text-decoration: underline;
  text-transform: capitalize;
}
/*
 * End greenlighting theme overrides.
 */
#letter dl {
  page-break-after: always;
  page-break-inside: avoid;
}
#letter_head {
  margin: 1em;
  text-align: center;
}
#letter_head h1 {
  color: green;
  border-bottom: 2px solid black;
  font-size: 1.75em;
  font-variant: small-caps;
  margin: 0px;
  padding: 0.25em;
  text-align: center;
  text-transform: capitalize;
}
#letter_head h2 {
  font-size: 1.25em;
  font-variant: small-caps;
  margin: 0px;
  padding: 0.25em;
  text-transform: capitalize;
}
#letter_head h3 {
  font-size: 0.9em;
  font-style: italic;
  font-weight: normal;
  margin: 0px;
}
#letter_salutation {
  text-align: left;
}
#letter_signature {
  text-align: left;
}
.less_emphasis {
  color: gray;
}
.less-opacity {
  opacity: 0.40;
}
.table_refresh {
  cursor: pointer;
}
.budget_action {
  text-align: center;
  vertical-align: center;
}
.budget_assessment {
  color: red;
}
.budget_balance {
  color: inherit;
}
.budget_body {
  min-height: 20em; /* This needs to be overridden by JS after checking the available screen size */
  overflow: auto;
}
.budget_check, .budget_date, .budget_detail {
  text-align: center;
}
.budget_id {
  display: none;
}
.budget_invoice_body {
  min-height: 20em; /* This needs to be overridden by JS after checking the available screen size */
  page-break-before: avoid !important;
  overflow: auto;
}
.budget_invoice_body tr, .budget_invoice_body td {
  page-break-inside: avoid !important;
}
.budget_invoice_container {
  border: 1px solid black;
  float: right;
  height: 7em;
  margin-top: 1em;
  padding: .5em 1em;
  page-break-inside: avoid !important;
  text-align: center;
  width: 15%;
}
.budget_invoice_container h2, .budget_invoice_total h2 {
  background: white !important;
  border: 1px solid black;
  font-size: 100%;
  margin-top: -1.75em;
  padding: .5em 1em;
  overflow: visible;
}
.budget_invoice_customer_container {
  border: 1px solid black;
  height: 7em;
  margin-top: 2em;
  margin-right: 20%;
  padding: .5em 1em;
}
.budget_invoice_customer_container h2 {
  background: white !important;
  border: 1px solid black;
  font-size: 100%;
  margin-top: -1.75em;
  padding: .5em 1em;
  overflow: visible;
}
.budget_invoice_customer_id {
  float: right;
  text-align: right;
}
.budget_invoice_item_number, .budget_invoice_item_date {
  text-align: center;
}
.budget_invoice_total {
  border: 1px solid black;
  float: right;
  margin-top: 2em;
  min-height: 7em;
  padding: .5em 1em;
  /* page-break-before: always !important; */
  page-break-inside: avoid !important;
  text-align: center;
  width: 15%;
}
.budget_memo, .budget_description {
  text-align: left;
}
.budget_loading {
  background-image: url('/images/icons/throbber.gif');
  background-position: center center;
  background-repeat: no-repeat;
  height: 15em;
  text-align: center;
}
.budget_not_posted {
  opacity: 0.5 !important;
}
.budget_payment {
  color: green;
}
.budget_window_move {
  opacity: .20;
}
