
@namespace url(http://www.w3.org/1999/xhtml);

table {
  margin-top: 1em;
  margin-bottom: 1em;
}

table td.id,            table th[scope="row"].id,            table input.id,
table td.priority,      table th[scope="row"].priority,      table input.priority,
table td.count,         table th[scope="row"].count,         table input.count,
table td.percent,       table th[scope="row"].percent,       table input.percent,
table td.relevance,     table th[scope="row"].relevance,     table input.relevance,
table td.date,          table th[scope="row"].date,          table input.date,
table td.month,         table th[scope="row"].month,         table input.month,
table td.financialYear, table th[scope="row"].financialYear, table input.financialYear,
table td.time,          table th[scope="row"].time,          table input.time,
table td.timestamp,     table th[scope="row"].timestamp,     table input.timestamp,
table td.duration,      table th[scope="row"].duration,      table input.duration,
table td.hours,         table th[scope="row"].hours,         table input.hours,
table td.days,          table th[scope="row"].days,          table input.days,
table td.workingDays,   table th[scope="row"].workingDays,   table input.workingDays,
table td.money,         table th[scope="row"].money,         table input.money {
  text-align: right;
  white-space: nowrap; /* for Chrome */
}

.stdTable {
  border-collapse: collapse;
  border: 1px solid black;
}

.stdTable > * > tr > * {
  padding: 0.3ex;
}

.stdTable > tbody > tr > th {
  border-left: 1px solid black;
  border-right: 1px solid black;
}

.stdTable > thead > tr > th,
.stdTable > tfoot > tr > th,
.stdTable > caption {
  border: 1px solid black;
  background: rgb(70, 70, 70);
  color: white;
}

.stdTable > thead > tr > th :link:not(:active),
.stdTable > tfoot > tr > th :link:not(:active),
.stdTable > caption :link:not(:active) {
  color: rgb(164, 208, 238);
}

.stdTable > thead tr > th :visited:not(:active),
.stdTable > tfoot tr > th :visited:not(:active),
.stdTable > caption :visited:not(:active) {
  color: rgb(174, 159, 201);
}

.stdTable > caption {
  font-weight: bold;
  border-bottom: none;
}

.stdTable > * > tr > td:not(:first-child) {
  border-left: 1px solid rgb(153, 153, 153);
}

.stdTable > thead ~ tbody:first-of-type > tr:first-child > td,
.stdTable > tfoot > tr:first-child > td {
  border-top: 1px solid black;
}

.stdTable.hlines > tbody > tr > th {
  border-top: 1px solid black;
}

.stdTable.hlines > * > tr > td {
  border-top: 1px solid rgb(153, 153, 153);
}

.stdTable.stripy > tbody > tr:nth-child(2n) > *,
.stdTable.bStripy > tbody:nth-of-type(2n) > tr > * {
  background: rgb(234, 234, 234);
}

.stdTable.stripy > tbody > tr:nth-child(n):hover > *,
.stdTable.bStripy > tbody:nth-child(n):hover > tr > * {
  background: #ffff80;
}

