@page {
  size: 8.5in 11in;
  margin: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fa;
  color: #293f5f;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

html,
body {
  width: 612pt;
}

.invoice-page {
  width: 612pt;
  min-height: 792pt;
  background: #f5f7fa;
}

.top-rule {
  height: 6px;
  background: #31415d;
}

.sheet {
  padding: 34px 44px 50px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.brand-col {
  width: 58%;
}

.brand-line {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #111f3b;
  color: #ffffff;
  text-align: center;
  line-height: 42px;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.paper {
  display: block;
  width: 14px;
  height: 18px;
  border: 1.6px solid #ffffff;
  border-radius: 2px;
  position: relative;
}

.paper-line {
  display: block;
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  background: #ffffff;
}

.paper-line.one {
  top: 4px;
}

.paper-line.two {
  top: 8px;
}

.paper-line.three {
  top: 12px;
  right: 4px;
}

.brand-line h1 {
  margin: 0;
  color: #0f203e;
  font-size: 33px;
  line-height: 1.08;
  font-weight: 700;
}

.brand-col p {
  margin: 0 0 9px 0;
  color: #4e6380;
  font-size: 15px;
  line-height: 1.24;
}

.meta-col {
  width: 34%;
  text-align: right;
  padding-top: 4px;
}

.meta-col .kicker {
  margin: 0;
  color: #8391a6;
  font-size: 14px;
  font-weight: 500;
}

.meta-col .invoice-id {
  margin: 10px 0 28px 0;
  color: #0f203e;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.08;
}

.meta-col .date-row {
  margin: 7px 0 0 0;
  color: #6a7d99;
  font-size: 12px;
  line-height: 1.3;
}

.meta-col .date-row strong {
  color: #1d2d48;
  font-weight: 700;
  margin-left: 6px;
}

.bill-panel {
  margin-top: 46px;
  background: #eef2f7;
  border-radius: 10px;
  padding: 24px 24px 20px;
}

.bill-panel p {
  margin: 0 0 6px 0;
  color: #4a5f7d;
  font-size: 16px;
  line-height: 1.22;
}

.bill-panel .panel-kicker {
  color: #7287a4;
  font-size: 13px;
  margin-bottom: 12px;
}

.bill-panel .name {
  color: #1a2f4d;
  font-size: 17px;
  font-weight: 700;
}

.items {
  margin-top: 60px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table thead th {
  border-bottom: 3px solid #2d3e59;
  color: #344b68;
  font-size: 14px;
  font-weight: 730;
  padding: 0 0 14px 0;
}

.invoice-table thead th.qty,
.invoice-table thead th.rate,
.invoice-table thead th.amount {
  text-align: right;
}

.invoice-table tbody td {
  border-bottom: 1px solid #d6deea;
  color: #253c5b;
  font-size: 14px;
  line-height: 1.3;
  padding: 18px 0;
}

.invoice-table tbody td.qty,
.invoice-table tbody td.rate,
.invoice-table tbody td.amount {
  text-align: right;
  white-space: nowrap;
}

.invoice-table tbody td.qty {
  width: 68px;
}

.invoice-table tbody td.rate {
  width: 124px;
  color: #4e6380;
}

.invoice-table tbody td.amount {
  width: 132px;
}

.invoice-table tbody td.strong {
  color: #132744;
  font-weight: 760;
}
