:root {
  font-family: system-ui, sans-serif;
  color: #253448;
  background: #f4f6f9;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #142a40;
  color: white;
  padding: 1rem 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header a {
  color: white;
}
a {
  color: #185786;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.brand {
  font-size: 1.3rem;
  font-weight: 750;
}
nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
nav form {
  margin: 0;
}
main {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
h1 {
  margin: 0.2rem 0 1rem;
  font-size: 1.9rem;
}
h2 {
  font-size: 1.2rem;
}
small {
  font-size: 0.8rem;
  color: #5d6b7e;
}
td small {
  display: block;
}
.auth {
  max-width: 440px;
  margin: 4rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #dce3ea;
}
label {
  display: block;
  margin: 0.8rem 0;
}
input,
select,
textarea,
button {
  font: inherit;
  border: 1px solid #bdc9d5;
  border-radius: 5px;
  padding: 0.55rem 0.7rem;
}
input:not([type="checkbox"]),
textarea {
  width: 100%;
}
input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
}
button {
  cursor: pointer;
  background: #fff;
  color: #253448;
}
button:hover {
  background: #e8eff5;
}
.primary {
  background: #185786;
  color: white;
}
.danger {
  color: #a02e27;
}
section,
.panel {
  background: white;
  border: 1px solid #dce3ea;
  border-radius: 9px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.toolbar,
.section-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.section-heading {
  justify-content: space-between;
}
.inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 1rem;
  align-items: end;
}
.filters label {
  margin: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid #e5eaf0;
}
th {
  font-size: 0.85rem;
  color: #57697a;
}
.table-wrap {
  overflow: auto;
}
.pagination {
  margin-top: 1rem;
}
.viewer {
  width: 100%;
  height: 70vh;
  border: 1px solid #ccc;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 60vh;
  overflow: auto;
}
.columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
}
textarea {
  min-height: 140px;
}
footer {
  text-align: center;
  color: #65788a;
  padding: 2rem;
}
[role="alert"] {
  background: #fff0dd;
  color: #713c05;
  padding: 1rem;
}
details {
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 750px) {
  header,
  .columns {
    display: block;
  }
  header nav {
    margin-top: 1rem;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 0.4rem;
  }
  main {
    padding: 0 0.7rem;
  }
  th,
  td {
    padding: 0.5rem;
  }
}
.pdf-canvas {
  overflow: auto;
  max-height: 75vh;
  background: #d9dfe6;
  text-align: center;
}
.pdf-canvas canvas {
  max-width: none;
  margin: 0.5rem;
  box-shadow: 0 1px 6px #6e7b88;
}
