@page {
  margin: 15mm;
  @bottom-right {
    content: "Page " counter(page) " of " counter(pages);
    font: bold 7pt "Helvetica","Sans-Serif", "AR PL UMing", "UnGraphic";
    color: #999;
    white-space: nowrap;
  }
}
body,
pre {
  font-family: "Sans-Serif", "AR PL UMing", "UnGraphic";
  font-size: 9pt;
}
a {
  text-decoration: none;
  color: #000;
}
label {
  font-size: 8pt;
  color: #777;
}
h1 {
  margin: 0 0 10mm;
  font-weight: normal;
}
pre {
  margin: 0;
  white-space: pre-wrap;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
table th,
table td,
.field {
  padding: 2mm 1mm;
  vertical-align: top;
}
table th {
  text-align: left;
}
ul ul,
ul ol,
ol ol,
ol ul {
  margin: 1em 0 0;
  padding-left: 2em;
}
.separator td {
  padding-bottom: 3mm;
  border-bottom: 3px solid #ccc;
}
.spacer td {
  padding-top: 3mm;
}
.client-logo {
  width: 50mm;
  height: 5mm;
  text-align: right;
  overflow: hidden;
  position: absolute;
  top: -2mm;
  right: 0;
}
.client-logo img {
  height: 5mm;
}
.doc-title {
  margin: 2mm 0 5mm;
  padding-bottom: 1mm;
  border-bottom: 1px solid #999;
  font-size: 8pt;
  color: #999;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.doc-title {
  border-bottom-color: #600;
  color: #600;
}
.page-ft {
  font-size: 6pt;
  color: #999;
}
.page-ft .date-printed,
.page-ft .page-num {
  width: 30mm;
  height: 5mm;
  white-space: nowrap;
  position: fixed;
  bottom: -7mm;
}
.page-ft .date-printed {
  left: 0;
}
.page-ft .page-num {
  right: 0;
  text-align: right;
}
.unofficial-note {
  padding: 2mm;
  background: lightyellow;
  font-weight: bold;
  color: saddlebrown;
  text-align: center;
}

/* General ------------------------------ */
.report label {
  margin-bottom: 1mm;
  display: block;
}
.report table {
  width: 100%;
}
.report .field {
  line-height: 1.3em;
}

/* list */
.report.list table {
  font-size: 7.5pt;
  border-collapse: collapse;
}
.report.list table th {
  vertical-align: bottom;
}
.report.list table td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.report.list .row-count {
  position: relative;
  top: -1.3em;
  text-align: right;
}
.report.list .summary {
  margin-bottom: 3mm;
  font-size: 7.5pt;
}

/* view one */
.report.view .serial-num {
  font-weight: bold;
}
.report.view td.subject {
  padding-right: 5mm;
}
.report.view td.status {
  width: 38mm;
  font-weight: bold;
  text-transform: uppercase;
}
.report.view td.status > div {
  padding: 2mm;
  background: #f1f1f1;
}
.report.view td.status label {
  text-align: left;
  font-weight: normal;
}
.report.view td.status .primary {
  font-size: 13pt;
}
.report.view h2 small {
  font-weight: normal;
  color: #777;
}

/* Comments / Issues (ncr) ------------------------------ */
.comments h2,
.issues h2 {
  font-size: 9pt;
  text-transform: uppercase;
}

.comments .btn-reply-comments {
  padding: 1mm 3mm;
  background: lightsteelblue;
  border: 1px solid steelblue;
  font-size: 8pt;
  text-transform: uppercase;
  display: inline-block;
}

/* comments */
ul.comment-list {
  margin: 0;
  padding: 0;
}
ul.comment-list > li {
  list-style: none;
}
.comment-list > li {
  padding-top: 1mm;
  border-top: 1px solid #ccc;
  font-size: 9pt;
  page-break-inside: avoid;
}
.comment-list .author {
  margin: 0 0 3mm;
  font-size: 7pt;
  color: #777;
}
.report.view .comments li.builder {
  padding-left: 8mm;
}

/* attachments */
.file-name {
  font-size: 7pt;
  word-wrap: break-word;
  display: block;
}
.attachments {
  clear: both;
}
.attachments .image-list {
  width: 130mm;
}
.attachments .image-list img {
  width: 100mm;
  padding: 1mm;
  border: 1px solid #ccc;
}
.attachments .image-list .file-name {
  width: 42mm;
}
.attachments .file-list {
  padding-top: 6mm;
}
.attachments .file-list p {
  margin: 0 0 1mm;
}
.comment-list .file-list {
  margin: 2mm 0;
}
.comment-list .file-list label,
.comment-list .file-list p {
  margin: 0;
}

/* plan comments / ncr */
.issue-list .issue-status,
.plan-comment-status {
  width: 25mm;
  padding-bottom: 2mm;
  font-weight: bold;
  text-align: right;
  text-transform: capitalize;
}

/* ncr issues */
.issue-list .issue {
  margin-bottom: 2mm;
  border-top: 1px solid #ccc;
  clear: both;
}
.issue-list .issue-display-id {
  width: 10mm;
  padding-right: 1mm;
  font-weight: bold;
  float: left;
}
.issue-list .issue-content {
  width: 142mm;
  margin: 0 1mm 2mm 0;
  float: left;
}
.issue-list .issue-status {
  float: left;
}
.issue-list .attachments {
  margin-left: 11mm;
}

/* plan comments */
ol.comment-list {
  margin: 0;
}
.plan-comment-status {
  float: right;
}
.replies {
  clear: both;
}
.replies > li {
  margin-bottom: 2px;
  padding: 1mm;
  background: #eee;
  border: none;
}
.replies .author {
  margin-bottom: 0;
}
.draft-reply {
  margin-bottom: 2px;
  padding: 1mm;
  border: 1px dotted #ccc;
}

.comment-display-no {
  padding-right: 2em;
}

.comment-div {
  display: flex;
}

.comment-text {
  width: 100%;
  padding-left: 1rem;
}

/* Page Specific ------------------------------ */
/* list shipyard */
.report.list.shipyard .secthd td {
  background-color: #eee;
  font-weight: bold;
}
.report.list.shipyard .open-close td {
  font-size: 6pt;
  font-weight: bold;
}

/* view ncr */
.report.view.ncr .attachments span {
  margin-right: 5mm;
}
.report.view.ncr .correction {
  padding-top: 4mm;
  clear: both;
}

/* view drawing  */
.report.view.ncr .comments {
  margin-top: 4mm;
  border-top: 3px solid #ccc;
  clear: both;
}
.report.view.drawing .comment-meta .status {
  font-weight: bold;
}

.plan-approvals .days-left {
  padding-left: 6px;
  padding-right: 6px;
  float: right;
}
.badge-important {
  background-color: #fd6464;
}
.badge {
  border-radius: 9px;
  display: inline-block;
  padding: 2px 4px;
  font-weight: bold;
  line-height: 14px;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgb(0 0 0 / 25%);
  white-space: nowrap;
  vertical-align: baseline;
}
.days-left.draft {
  border: 1px solid #fd6464;
  background: none;
  color: #fd6464;
  text-shadow: none;
}
