+
+// General table styles.
+table {
+ border: 1px solid $ruledefaultcolour;
+ border-collapse: collapse;
+ width: 100%;
+}
+
+table>* { font-size: 0.9em; }
+caption {
+ caption-side: top;
+ font-weight: bold;
+ font-size: 1em;
+ text-align: left;
+ margin: 0 0 0.5em 0;
+}
+
+td, th {
+ vertical-align: middle;
+ text-align: left;
+ padding: 1ex;
+ margin: 0;
+}
+
+thead>tr, tbody>tr { border: solid $ruledefaultcolour; }
+th, thead>tr { border-bottom: 1px solid $rulestrongcolour; }
+*>table, *>th { border: none; }
+thead>tr { border-width: 1px; }
+tbody>tr { border-width: 0 1px; }
+
+td + td { box-shadow: -1px 0 $backgroundcolour; }
+
+tbody>tr {
+ &:nth-of-type(even) { background-color: $tableshadecolour; }
+ &:last-child { border-bottom: solid 1px $ruledefaultcolour; }
+}
+
+// Specific table styles
+table.cc {
+ &>tr>*:first-child, &>*>tr>*:first-child {
+ &+* { text-align: center; }
+ text-align: center;
+ }