:root {
  font:
    16px/1.45 Arial,
    sans-serif;
  color: #161a1e;
  background: #e7e8e3;
  --ink: #161a1e;
  --black: #171a1d;
  --acid: #d7ff45;
  --blue: #285b73;
  --paper: #fff;
  --muted: #596068;
  --line: #b8bdb8;
  --pale: #f2f3ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(
      90deg,
      transparent 0 70%,
      rgba(23, 26, 29, 0.05) 70% 70.4%,
      transparent 70.4%
    )
    fixed;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.file {
  background: var(--paper);
  border: 1px solid #7c8489;
  color: var(--ink);
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 2px;
}
.primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--acid);
}
button:hover,
.file:hover {
  box-shadow: 4px 4px 0 #979d98;
}
.primary:hover {
  background: #30363b;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
.file:focus-within {
  outline: 3px solid #237bad;
  outline-offset: 3px;
}
header {
  background: var(--black);
  color: #fff;
  padding: 18px 4%;
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 8px solid var(--acid);
}
.brand {
  font:
    900 22px Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
.brand b {
  color: var(--acid);
}
.tag {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #cbd1d4;
}
header button {
  margin-left: auto;
  background: transparent;
  border-color: #677077;
  color: #fff;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 34px 4%;
}
.mast {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
.mast h1 {
  font:
    800 43px/1.04 Arial,
    sans-serif;
  letter-spacing: -1.8px;
  margin: 0;
}
.kicker {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 900;
  color: #31566b;
  margin: 0 0 10px;
}
.mast-actions,
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.mast-actions {
  justify-content: flex-end;
  align-items: flex-start;
}
.mast p {
  max-width: 760px;
  color: var(--muted);
}
#details {
  padding: 7px 10px;
  font-size: 13px;
}
#notice {
  min-height: 42px;
  margin: 20px 0;
  padding: 10px 0;
  font-size: 14px;
}
.error {
  color: #8b2617 !important;
  background: #fff1ec !important;
  border-left: 5px solid #c44b28;
  padding: 12px !important;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--black);
  color: #fff;
  margin-bottom: 28px;
  border-bottom: 6px solid var(--acid);
}
.metrics div {
  padding: 22px;
  border-right: 1px solid #4e555a;
}
.metrics div:last-child {
  border: 0;
}
.metrics span {
  font:
    900 34px Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--acid);
}
.metrics p {
  font-size: 13px;
  color: #d2d6d8;
  margin: 7px 0 0;
}
.catalog-section,
.people-section {
  background: var(--pale);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 20px;
}
.people-section {
  background: #dce5e8;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.section-title h2 {
  font:
    850 26px Arial,
    sans-serif;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.card {
  background: var(--paper);
  border-top: 5px solid var(--black);
  padding: 15px;
  min-width: 0;
}
.people-section .card {
  border-top-color: var(--blue);
}
.card h3 {
  font-size: 17px;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.card .code {
  font:
    900 11px Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #31566b;
}
.card-stats {
  display: flex;
  gap: 17px;
  margin-top: 12px;
  font-size: 12px;
}
.card-stats b {
  font-size: 18px;
  display: block;
  color: var(--black);
}
.card button {
  padding: 6px 9px;
  font-size: 12px;
  margin-top: 12px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 28px 0 18px;
}
.filters {
  display: flex;
  gap: 10px;
  flex: 1;
}
.filters label:first-child {
  flex: 1;
  max-width: 390px;
}
.filters label:last-child {
  width: 200px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 800;
}
label span {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  background: var(--paper);
  border: 1px solid #7c8489;
  color: var(--ink);
  padding: 11px;
  margin-top: 7px;
  border-radius: 2px;
}
textarea {
  resize: vertical;
}
.file {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}
.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.column-head,
.loan-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) minmax(
      170px,
      1.15fr
    ) 115px 130px 120px 110px;
  gap: 14px;
  align-items: center;
}
.column-head {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 900;
  color: #4d555c;
  padding: 13px 18px;
  background: #d3d6d1;
}
.loan-row {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 18px;
}
.loan-row:last-child {
  border-bottom: 1px solid var(--line);
}
.identity {
  min-width: 0;
}
.identity .eyebrow {
  font-size: 11px;
  color: #31566b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.identity h2 {
  font-size: 18px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.identity p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.cell {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.cell small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}
.decision {
  font-size: 13px;
  font-weight: 900;
}
.decision small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.decision.out {
  color: #275e75;
}
.decision.overdue,
.decision.lost {
  color: #a23620;
}
.decision.returned {
  color: #356a3d;
}
.manage {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.manage button {
  font-size: 12px;
  padding: 6px 8px;
}
.mobile-label {
  display: none;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.foot p,
.privacy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 900px;
}
.privacy {
  max-width: none;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
#empty {
  text-align: center;
  background: var(--paper);
  border: 1px dashed #7c8489;
  padding: 64px 20px;
}
#empty h2 {
  font:
    850 28px Arial,
    sans-serif;
  margin: 0 0 14px;
}
#empty p {
  color: var(--muted);
}
dialog {
  border: 0;
  border-top: 8px solid var(--acid);
  width: calc(100% - 32px);
  max-width: 700px;
  max-height: 90vh;
  overflow: auto;
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #171a1ddd;
}
dialog h2 {
  font:
    850 25px Arial,
    sans-serif;
  margin: 0 0 20px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.dialog-top button {
  align-self: start;
  padding: 6px 9px;
  font-size: 13px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.two > * {
  min-width: 0;
}
dialog label {
  margin-bottom: 17px;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
}
.check input {
  width: auto;
  margin: 0;
}
.small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
#item-error,
#borrower-error,
#loan-error,
#return-error {
  color: #a23620;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
#print-label {
  display: none;
}
@media (max-width: 1100px) {
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .column-head,
  .loan-row {
    grid-template-columns: minmax(180px, 1.35fr) 150px 105px 115px 105px 95px;
    gap: 9px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tag {
    display: none;
  }
}
@media (max-width: 760px) {
  body {
    background: #e7e8e3;
  }
  header {
    padding: 18px 16px;
  }
  .brand {
    font-size: 18px;
  }
  header button {
    font-size: 12px;
  }
  main {
    padding: 25px 16px;
  }
  .mast {
    display: block;
  }
  .mast h1 {
    font-size: 32px;
  }
  .mast-actions {
    justify-content: start;
    margin-top: 20px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics div {
    padding: 19px 13px;
    border-bottom: 1px solid #4e555a;
  }
  .metrics span {
    font-size: 28px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .catalog-section .cards,
  .people-section .cards {
    max-height: 390px;
    overflow: auto;
  }
  .section-title {
    align-items: start;
  }
  .section-title > .actions {
    justify-content: flex-end;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label,
  .filters label:first-child,
  .filters label:last-child {
    width: 100%;
    max-width: none;
  }
  .column-head {
    display: none;
  }
  .loan-row {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    padding: 18px 16px;
  }
  .identity,
  .manage {
    grid-column: 1/-1;
  }
  .manage {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mobile-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 4px;
  }
  .foot {
    flex-direction: column;
  }
  .two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  header {
    gap: 8px;
    padding: 16px 9px;
  }
  .brand {
    font-size: 15px;
    letter-spacing: 0;
  }
  header button {
    padding: 9px 7px;
  }
  main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .metrics span {
    font-size: 23px;
  }
  .metrics div {
    min-width: 0;
    padding: 17px 8px;
  }
  .section-title {
    display: block;
  }
  .section-title > .actions,
  .section-title > button {
    margin-top: 12px;
  }
}
@media print {
  @page {
    margin: 8mm;
  }
  :root,
  html,
  body {
    background: #fff !important;
  }
  header,
  .mast-actions,
  #details,
  #notice,
  .toolbar,
  .manage,
  .foot button,
  dialog,
  .privacy,
  .catalog-section .actions,
  .catalog-section button,
  .people-section {
    display: none !important;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .mast {
    display: block;
  }
  .mast h1 {
    font-size: 20pt;
    margin: 0;
  }
  .mast p {
    margin: 3px 0;
  }
  #print-label {
    display: block !important;
    font-weight: bold;
    margin: 4px 0 7px;
  }
  .metrics {
    margin-bottom: 9px;
  }
  .metrics div {
    padding: 7px;
  }
  .metrics span {
    font-size: 16pt;
  }
  .catalog-section {
    padding: 7px;
    margin-bottom: 9px;
  }
  .catalog-section h2 {
    font-size: 14pt;
    margin: 2px 0 5px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .card {
    padding: 8px;
  }
  .card h3 {
    font-size: 9pt;
  }
  .card p,
  .card-stats {
    font-size: 7pt;
  }
  .column-head,
  .loan-row {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 75px 90px 80px;
    gap: 7px;
    padding: 6px 0;
  }
  .column-head {
    font-size: 7pt;
  }
  .column-head span:last-child {
    display: none;
  }
  .loan-row {
    break-inside: avoid;
  }
  .identity h2 {
    font-size: 9pt;
    margin: 2px 0;
  }
  .identity p,
  .metrics p {
    font-size: 6.8pt;
    margin: 2px 0;
  }
  .cell,
  .decision {
    font-size: 8pt;
  }
  .foot {
    display: block;
  }
  .foot p {
    font-size: 8pt;
    max-width: none;
  }
}
