/* Lato and Merriweather are SIL Open Font License. Files are local. No Google Fonts request. */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/merriweather-400.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/merriweather-700.woff2") format("woff2");
}

:root {
  --blue: #00538e;
  --blue-press: #004272;
  --green: #82b965;
  --alert: #dd3c00;
  --ink: #4a4a4a;
  --muted: #777;
  --line: #d8d8d8;
  --paper: #f9f9f9;
  --white: #fff;
  --header-gray: #f2f2f2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.adxseq {
  background: var(--paper);
  color: var(--ink);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.adxseq h1, .adxseq h2, .adxseq h3, .adxseq h4 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
}

.adxseq h1 { font-size: 1.6rem; margin: 0 0 0.6rem; }
.adxseq h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }

.adxseq a { color: var(--blue); }
.adxseq a:hover { color: var(--green); }

.site-header,
.site-nav {
  font-family: "Lato", sans-serif;
}

.site-header {
  background: var(--white);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  padding: 18px 24px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-logo { justify-self: start; }

.site-header img {
  display: block;
  max-height: 72px;
  width: auto;
}

.site-title {
  justify-self: center;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1.2;
}

.site-header-meta {
  justify-self: end;
  text-align: right;
  color: var(--blue);
  font-size: 0.95rem;
}

.site-nav {
  background: var(--green);
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 12px 16px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
}

.site-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 48px;
  flex: 1;
}

.site-footer {
  background: var(--blue);
  color: var(--paper);
  border-top: 3px solid var(--green);
  box-shadow: 0 -2px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 0.85rem;
  padding: 22px 16px;
}

.lead { margin-top: 0; }

.card {
  background: var(--white);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  margin: 0 0 20px;
}

.card-header {
  background: var(--header-gray);
  border: 1px solid var(--line);
  padding: 12px 16px;
}

.card-header h1,
.card-header h2 { margin: 0; }

.card-content,
.card-footer {
  border: 1px solid var(--line);
  border-top: none;
  padding: 20px;
}

.card-footer { text-align: center; color: var(--muted); }

.hint { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.login-wrap {
  max-width: 440px;
  margin: 12px auto 0;
}

.field { margin: 0 0 14px; }

.field label,
.sample-grid label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.adxseq input[type="text"],
.adxseq input[type="password"],
.adxseq input[type="email"],
.adxseq select,
.adxseq textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.55rem 0.6rem;
  width: 100%;
}

.adxseq input:focus, .adxseq select:focus, .adxseq textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: var(--white);
}

.field:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field:has(input[type="checkbox"]) label {
  margin: 0;
  font-weight: 400;
  order: 1;
}

.adxseq input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.button {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: var(--blue-press);
  border-color: var(--blue-press);
  color: var(--white);
  box-shadow: none;
}

.button.expand { width: 100%; }

.button.secondary {
  background: var(--white);
  color: var(--green);
  border-color: var(--green);
}

.button.secondary:hover,
.button.secondary:focus {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.form-error,
.errorlist,
.messages .error {
  color: var(--alert);
  font-weight: 700;
}

.errorlist { list-style: none; margin: 4px 0 0; padding: 0; }

.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.table-scroll { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}

table.data th,
table.data td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

table.data th {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

table.data tr.even td { background: var(--paper); }
table.data tr.odd td { background: var(--white); }

.status-failed { color: var(--alert); font-weight: 700; }
.status-running { color: var(--blue); font-weight: 700; }
.status-queued { font-weight: 700; }
.status-done { color: var(--green); font-weight: 700; }
.status-canceled { color: var(--muted); }

.button.small {
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
}

table.data form { margin: 0; }

.pager { margin: 0 0 12px; }
.pager a { margin-right: 12px; }

.queue-panel { margin-bottom: 20px; }
.queue-panel .card-content { padding: 0; }
.queue-scroll {
  overflow: auto;
  max-height: calc(2.4rem + 3 * 2.45rem);
}
.queue-panel table.data th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.queue-panel table.data td {
  white-space: nowrap;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.45rem;
  box-sizing: border-box;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}
.modal {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  max-width: 34rem;
  padding: 20px;
}
.modal p { margin: 0; }
.modal-actions { display: flex; gap: 12px; margin-top: 16px; }
.modal-actions .button { text-align: center; }

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr; justify-items: start; }
  .site-title,
  .site-header-meta { justify-self: start; text-align: left; }
  .site-nav a { padding: 10px 12px; letter-spacing: 0.5px; }
  .sample-grid { grid-template-columns: 1fr; }
}
