.inline-popup {
  padding-left: 0.2em;
}

.inline-popup.edit {
  font-weight: bold;
}

span.delete {
  cursor: pointer;
}

span.delete.disabled {
  cursor: pointer;
  color: silver;
}

.invisible {
  display: none;
}

body {
  margin: 1ex 1em;
  padding: 0;
  background-color: #f4f4f4;
  background-image: inherit;
  font-size: 76%;
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
}

input,
select,
textarea {
  font-size: 100%;
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  margin: 0px;
}

div#content {
  border: 1px dashed silver;
  padding: 1ex 1em;
  background-color: white;
}

a {
  text-decoration: none;
  color: blue;
}

a:hover {
  text-decoration: underline;
  color: blue;
}

a:visited {
  color: blue;
}

fieldset {
  border: 1px solid silver;
}

fieldset.snippet {
  margin-top: 1ex;
  border: none;
  border-top: 1px solid silver;
}

fieldset.snippet legend {
  font-style: italic;
  color: grey;
  font-weight: normal;
}

legend {
  font-weight: bold;
}

ul.errorlist {
  list-style-type: none;
  color: red;
  font-weight: bold;
  padding: 0;
}

ul.multiple-choice-input {
  list-style-type: none;
}

.errors-p {
  margin: 2ex 2em;
  padding: 0 1em;
  font-size: larger;
  border: 2px solid red;
}

.error-text {
  color: red;
  font-weight: bold;
}

.rejected-reason {
  color: red;
}

span.calendar-input {
  white-space: nowrap;
}

span.calendar-input img {
  vertical-align: bottom;
}

table.properties label,
table.addresses label,
table.cpd-diary label,
table.cpd-summary label,
table.invoices label {
  padding-left: 0em;
  white-space: nowrap;
}

table.properties input.text-input,
table.addresses input.text-input,
table.cpd-diary input.text-input,
table.cpd-summary input.text-input,
table.invoices input.text-input,
table.properties textarea.text-input,
table.addresses textarea.text-input,
table.cpd-diary textarea.text-input,
table.cpd-summary textarea.text-input,
table.invoices textarea.text-input {
  width: 98%;
}

table.properties th,
table.addresses th,
table.cpd-diary th,
table.cpd-summary th,
table.invoices th,
table.properties td,
table.addresses td,
table.cpd-diary td,
table.cpd-summary td,
table.invoices td {
  padding: .6ex 0 .4ex .5em;
  vertical-align: top;
  text-align: left;
  font-weight: normal;
  border-bottom: 1px dashed silver;
}

table.properties thead th,
table.addresses thead th,
table.cpd-diary thead th,
table.cpd-summary thead th,
table.invoices thead th,
table.properties tfoot th,
table.addresses tfoot th,
table.cpd-diary tfoot th,
table.cpd-summary tfoot th,
table.invoices tfoot th {
  font-weight: bold;
}

table.properties th.delete,
table.addresses th.delete,
table.cpd-diary th.delete,
table.cpd-summary th.delete,
table.invoices th.delete {
  color: red;
}

table.properties td.delete,
table.addresses td.delete,
table.cpd-diary td.delete,
table.cpd-summary td.delete,
table.invoices td.delete {
  text-align: center;
}

table.properties span.required-star,
table.addresses span.required-star,
table.cpd-diary span.required-star,
table.cpd-summary span.required-star,
table.invoices span.required-star {
  font-weight: bold;
  color: red;
  cursor: pointer;
  visibility: hidden;
}

table.properties span.required-star.required,
table.addresses span.required-star.required,
table.cpd-diary span.required-star.required,
table.cpd-summary span.required-star.required,
table.invoices span.required-star.required {
  visibility: visible;
}

table.properties th.required,
table.addresses th.required,
table.cpd-diary th.required,
table.cpd-summary th.required,
table.invoices th.required {
  white-space: nowrap;
}

table.properties th.required span.required-star,
table.addresses th.required span.required-star,
table.cpd-diary th.required span.required-star,
table.cpd-summary th.required span.required-star,
table.invoices th.required span.required-star {
  visibility: visible;
}

table.properties tr.legend th,
table.addresses tr.legend th,
table.cpd-diary tr.legend th,
table.cpd-summary tr.legend th,
table.invoices tr.legend th {
  padding: 1.5ex .5em .2ex .5em;
  font-weight: bold;
  border-bottom: 1px solid silver;
}

table.properties tr.odd,
table.addresses tr.odd,
table.cpd-diary tr.odd,
table.cpd-summary tr.odd,
table.invoices tr.odd {
  background-color: white;
}

table.properties tr.even,
table.addresses tr.even,
table.cpd-diary tr.even,
table.cpd-summary tr.even,
table.invoices tr.even {
  background-color: #eaeaea;
}

table.properties tr.sub-total th,
table.addresses tr.sub-total th,
table.cpd-diary tr.sub-total th,
table.cpd-summary tr.sub-total th,
table.invoices tr.sub-total th,
table.properties tr.sub-total td,
table.addresses tr.sub-total td,
table.cpd-diary tr.sub-total td,
table.cpd-summary tr.sub-total td,
table.invoices tr.sub-total td {
  font-weight: bold;
}

table.properties td.no,
table.addresses td.no,
table.cpd-diary td.no,
table.cpd-summary td.no,
table.invoices td.no {
  color: red;
}

table.properties td.yes,
table.addresses td.yes,
table.cpd-diary td.yes,
table.cpd-summary td.yes,
table.invoices td.yes {
  color: green;
}

table.properties div.help-text,
table.addresses div.help-text,
table.cpd-diary div.help-text,
table.cpd-summary div.help-text,
table.invoices div.help-text {
  margin: 1ex .1em;
  color: grey;
}

table.properties ul.errorlist,
table.addresses ul.errorlist,
table.cpd-diary ul.errorlist,
table.cpd-summary ul.errorlist,
table.invoices ul.errorlist {
  margin: 0.2ex 0;
}

table.cpd-summary tr.super-legend th,
table.cpd-summary tr.super-legend td {
  border-bottom: none;
  padding: 1.5ex 1em .2ex .5em;
  background-color: white;
  text-align: center;
}

table.cpd-summary tr.super-legend h3 {
  margin: 0;
  padding: 0;
}

table.cpd-summary tr.legend th {
  padding: 1.5ex 1em .2ex .5em;
  font-weight: bold;
  border-bottom: 1px solid silver;
  background-color: white;
}

table.cpd-summary tbody th,
table.cpd-summary tbody td {
  padding: .9ex 1em .9ex 1em;
}

table.cpd-summary tbody th.number,
table.cpd-summary tbody td.number {
  text-align: right;
}

table.cpd-diary th,
table.cpd-diary td {
  border-bottom: none;
}

table.cpd-diary td {
  padding-right: 0.5em;
}

table.cpd-diary tr.last th,
table.cpd-diary tr.last td {
  border-bottom: 1px dashed silver;
}

table.addresses th,
table.addresses td {
  border-bottom: none;
}

.IMP {
  font-weight: bold;
  color: #f90000;
}

table.invoices th,
table.invoices td {
  padding: 1ex .5em 1ex .5em;
  border-bottom: none;
}

table.invoices tr.invoice-header td {
  border-top: 1px dashed silver;
}

.left {
  text-align: left !important;
}

.right,
.number {
  text-align: right !important;
}

.center {
  text-align: center !important;
}

table.data-grid th,
table.data-grid td {
  text-align: left;
  padding: .3ex .4em;
}

table.data-grid thead th {
  border-bottom: 1px solid grey;
}

table.data-grid tr.odd {
  background-color: white;
}

table.data-grid tr.even {
  background-color: #eaeaea;
}

div.tabset {
  padding: .5ex 2em;
  border-bottom: 1px solid silver;
}

div.tabset a.tab {
  background-color: #eaeaea;
  padding: .5ex 2em;
}

div.tabset a.tab.active {
  background-color: white;
  border: 1px solid silver;
  border-bottom: 1px solid white;
}

a.info-popup {
  cursor: pointer;
}

