* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6fa;
  color: #12294a;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 24px;
  padding: 11px 19px;
  font-weight: 700;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d69b00;
  outline-offset: 3px;
}
button.primary {
  background: #ffc729;
  color: #102743;
}
.outline {
  background: white;
  border: 1px solid #d9e0e9;
  color: #15355d;
}
.quiet {
  background: transparent;
  color: inherit;
}
.full {
  width: 100%;
}
.topbar {
  height: 94px;
  background: #0b2344;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
.brand {
  font-size: 12px;
  line-height: 1.2;
  color: white;
  text-decoration: none;
  letter-spacing: 2px;
}
.brand strong {
  font-size: 19px;
  letter-spacing: 0.5px;
}
.user,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.user small {
  display: block;
  color: #a9bdd6;
  text-transform: capitalize;
}
.shell {
  max-width: 1450px;
  margin: 0 auto;
  padding: 44px 4vw;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #6c7e96;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
h3 {
  font-size: 17px;
}
.heading p,
.muted {
  color: #738198;
}
.yellow {
  color: #e5a900;
}
.list-card {
  background: white;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 35px #10264a05;
}
.list-toolbar {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.list-toolbar h2 {
  margin: 0;
  font-size: 16px;
}
.count {
  display: inline-block;
  padding: 2px 9px;
  background: #edf2f7;
  border-radius: 15px;
  font-size: 12px;
  margin-left: 7px;
}
#search {
  display: flex;
  gap: 8px;
}
#search input {
  width: 330px;
  border-radius: 25px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a8aa1;
  background: #f8fafd;
}
th,
td {
  padding: 16px 24px;
  border-bottom: 1px solid #edf0f5;
}
td {
  font-size: 12px;
}
td strong,
td small {
  display: block;
}
td small {
  color: #7c8b9c;
  margin-top: 3px;
}
td button {
  font-size: 11px;
  padding: 8px 11px;
  margin: 2px;
}
.badge {
  font-size: 10px;
  border-radius: 13px;
  padding: 5px 9px;
  background: #e5f4ed;
  color: #26734c;
  display: inline-block;
}
.badge.pending {
  background: #fff3d4;
  color: #876318;
}
.empty {
  text-align: center;
  padding: 65px 20px;
  color: #7c8a9d;
}
.empty h3 {
  color: #263f60;
  margin: 18px 0 6px;
}
.empty-icon {
  border: 1px solid #e0e7f0;
  background: #f7f9fc;
  color: #8799b2;
  border-radius: 20px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-size: 28px;
  margin: auto;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  color: #6d7f96;
  font-size: 12px;
}
.pagination button {
  font-size: 12px;
  padding: 8px 12px;
}
.footer-copy {
  text-align: center;
  color: #8693a5;
  font-size: 10px;
  margin: 25px 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe2ec;
  background: white;
  color: #1c3656;
  border-radius: 9px;
  padding: 12px;
  margin-top: 7px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #95b9e0;
  outline-offset: 1px;
}
input[type='file'] {
  font-size: 12px;
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 18px;
  width: min(720px, calc(100vw - 26px));
  max-height: 92dvh;
  color: #163353;
  box-shadow: 0 20px 90px #07152945;
}
dialog.small {
  width: min(520px, calc(100vw - 26px));
}
dialog::backdrop {
  background: #071a36b0;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 23px 27px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dialog-header h2 {
  margin: 3px 0 0;
}
.close {
  background: #f1f4f8;
  padding: 0;
  width: 32px;
  height: 32px;
  font-size: 22px;
  color: #6d7c92;
}
.dialog-body {
  padding: 24px 27px;
}
.dialog-footer {
  padding: 18px 27px;
  border-top: 1px solid #edf0f4;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.span-two {
  grid-column: 1/-1;
}
.document-group {
  display: flex;
  gap: 7px;
}
.document-group select {
  width: 100px;
  flex-shrink: 0;
}
.error {
  color: #b23c3c;
  font-size: 12px;
}
.error:empty {
  display: none;
}
.search-inline {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.search-inline label {
  flex: 1;
  margin: 0;
}
.result-card {
  padding: 15px;
  margin: 12px 0;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
}
.result-card p {
  margin-bottom: 4px;
}
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-identity { min-width: 0; }
.result-identity > strong { display: block; font-size: 18px; }
.result-identity p { margin: 4px 0 0; }
.result-certificate { flex-shrink: 0; padding: 10px 18px; border-radius: 12px; background: #012b6f; text-align: center; }
.result-certificate span { display: block; color: #fff; font-size: 11px; font-weight: 600; }
.result-certificate strong { display: block; color: #ffd43a; font-size: 36px; line-height: 1.15; font-weight: 700; }
.result-pending { font-size: 12px; color: #7083a1; text-align: right; }
.result-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 20px; margin-top: 14px; }
.result-contacts span { color: #7083a1; font-size: 12px; }
.result-contacts p { margin: 2px 0 0; overflow-wrap: anywhere; }
.result-actions { display: flex; justify-content: flex-end; align-items: stretch; gap: 10px; margin-top: 16px; }
.result-actions button { margin: 0; }
@media (max-width: 480px) {
  .result-heading { gap: 10px; }
  .result-identity > strong { font-size: 16px; }
  .result-certificate { padding: 8px 12px; }
  .result-certificate strong { font-size: 30px; }
  .result-contacts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .result-actions button { flex: 1; min-width: 0; padding: 10px 12px; font-size: 12px; }
}
#ticket-form {
  border-top: 1px solid #e4e9f0;
  padding-top: 22px;
  margin-top: 24px;
}
dl {
  margin: 18px 0;
}
dt {
  color: #738198;
  font-size: 11px;
}
dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
#notice {
  padding: 13px 18px;
  border-radius: 10px;
  background: #e4f2e9;
  color: #285841;
  margin-bottom: 18px;
}
.operator-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}
.operator-row select {
  width: 130px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #edf1f7;
  padding: 25px;
}
.login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 80px #10264a15;
}
.login-card aside {
  background: linear-gradient(145deg, #092342, #174578);
  color: white;
  padding: 55px 45px;
  position: relative;
  overflow: hidden;
}
.login-card aside:after {
  content: '';
  width: 350px;
  height: 350px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  position: absolute;
  left: 120px;
  top: 180px;
  pointer-events: none;
}
.login-card aside .eyebrow {
  color: #f2c02b;
}
.login-card h1 {
  font-size: 43px;
  margin: 35px 0 20px;
}
.login-card aside p {
  color: #b7c8dc;
}
.seal {
  display: block;
  letter-spacing: 3px;
  font-size: 11px;
  margin-top: 65px;
  color: #e0e9f5;
}
.login-card section {
  padding: 70px 44px;
}
.login-card section h2 {
  font-size: 28px;
  margin-top: 15px;
}
.login-card section > p {
  color: #7b899d;
  margin-bottom: 28px;
}
@media (max-width: 1000px) {
  .heading {
    display: block;
  }
  .heading .actions {
    margin-top: 22px;
    flex-wrap: wrap;
  }
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  #search {
    width: 100%;
  }
  #search input {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 80px;
  }
  .brand strong {
    font-size: 15px;
  }
  .user {
    font-size: 11px;
  }
  .shell {
    padding-top: 30px;
  }
  h1 {
    font-size: 28px;
  }
  .actions {
    gap: 7px;
  }
  .actions button {
    padding: 10px 13px;
    font-size: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: auto;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-header,
  .dialog-footer {
    padding: 18px 20px;
  }
  .dialog-footer button {
    font-size: 12px;
  }
  .search-inline {
    align-items: stretch;
    flex-direction: column;
  }
  .pagination {
    padding: 16px 12px;
    gap: 10px;
  }
  .login-card {
    grid-template-columns: 1fr;
  }
  .login-card aside {
    padding: 30px;
  }
  .login-card h1 {
    font-size: 31px;
    margin: 20px 0;
  }
  .seal {
    display: none;
  }
  .login-card section {
    padding: 35px 28px;
  }
  .user span {
    max-width: 140px;
  }
  .operator-row {
    flex-wrap: wrap;
  }
  th,
  td {
    padding: 14px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand img {
  width: 52px;
  height: 52px;
}
.login-mark {
  width: 110px;
  height: 110px;
  margin-top: 35px;
}
td:nth-child(2) {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 260px;
}
td:last-child {
  white-space: normal;
  min-width: 180px;
}
td a {
  display: inline-block;
  font-size: 11px;
  margin: 5px;
  color: #234f84;
}
.operator-row small {
  display: block;
  color: #7c8a9d;
}
@media (max-width: 600px) {
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand {
    gap: 8px;
  }
  .brand strong {
    font-size: 12px;
  }
  .login-mark {
    display: none;
  }
}

.search-inline[hidden] {
  display: none;
}
#ticket-form {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.ticket-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.ticket-heading h3 {
  margin: 0;
}
.ticket-person-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px;
}
.operators-existing {
  border-top: 1px solid #e4e9f0;
  margin-top: 28px;
  padding-top: 24px;
}
.operators-existing h3 {
  margin-bottom: 8px;
}
.result-card > button,
#ticket-form > button,
#operator-form > button {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
}

#person-dialog .dialog-header > div:first-child,
#confirm-dialog .dialog-header > h2 {
  margin-right: auto;
}
.number-reservation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff5d0;
  border: 1px solid #f2ce66;
  padding: 10px 12px;
  border-radius: 13px;
  flex-shrink: 0;
}
.number-reservation[hidden],
[data-renew-reservation][hidden] {
  display: none;
}
.reservation-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.reservation-identity > span {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #796329;
  font-weight: 800;
}
.reservation-identity > strong {
  font-size: 16px;
  letter-spacing: -0.3px;
  color: #112f52;
}
.reservation-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 9px;
  background: #102e52;
  color: white;
  padding: 5px 10px;
  min-width: 64px;
}
.reservation-clock > span {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cfdaea;
}
.reservation-clock > strong {
  font-size: 18px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
[data-renew-reservation] {
  background: #ffc729;
  color: #102743;
  font-size: 11px;
  padding: 7px 10px;
}
.number-reservation.expired {
  border-color: #d78383;
  background: #fff0ec;
}
.number-reservation.expired .reservation-clock {
  background: #a83434;
}
#summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 18px;
}
#summary dt {
  font-size: 12px;
  margin-bottom: 5px;
}
#summary dd {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .dialog-header:has(.number-reservation) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .dialog-header:has(.number-reservation) > .close {
    grid-column: 2;
    grid-row: 1;
  }
  .number-reservation {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
  }
  .reservation-identity > strong {
    font-size: 16px;
  }
  #summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.registration-payment {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 16px;
  margin: 6px 0 18px;
}
.registration-payment legend {
  font-weight: 700;
  font-size: 12px;
  padding: 0 6px;
}
.payment-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.check input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}
.registration-payment[hidden],
#registration-reference[hidden],
#payment-reservation[hidden],
#payment-acknowledgement[hidden],
#payment-mail-choice[hidden] {
  display: none;
}
button.icon-action {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.icon-action svg {
  width: 18px;
  height: 18px;
}
.icon-action.pending {
  background: #fff6d5;
  color: #956d0b;
  border-color: #f1d27a;
}
.icon-action.done {
  background: #e7f5ed;
  color: #257447;
  border-color: #bddfc9;
}
.icon-action.danger,
button.danger {
  background: #b63737;
  color: white;
  border-color: #b63737;
}
.icon-action.danger {
  background: #fff0ef;
  color: #ac3333;
}
.row-reservation {
  font-variant-numeric: tabular-nums;
}
#payment-proof-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #234f84;
}
#payment-proof-link[hidden] {
  display: none;
}
#payment-dialog .dialog-header > div:first-child {
  margin-right: auto;
}
@media (max-width: 600px) {
  .payment-options {
    flex-direction: column;
    gap: 0;
  }
  #payment-dialog .dialog-header {
    flex-wrap: wrap;
  }
}

#mail-address-save {
  display: block;
  margin: 0 0 20px auto;
}
#mail-address-save[hidden],
#payment-remove-label[hidden] {
  display: none;
}
.mail-delivery {
  padding: 18px;
  background: #f5f8fc;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  margin-top: 20px;
}
.mail-delivery strong {
  display: block;
  font-size: 16px;
}
.mail-delivery p {
  margin: 7px 0 0;
  font-size: 12px;
}

.payment-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  cursor: pointer;
}
.payment-switch input {
  appearance: none;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  padding: 0;
  margin: 0;
  border: 1px solid #c6d2e1;
  border-radius: 20px;
  background: #dce4ed;
  cursor: pointer;
  transition: background .15s;
}
.payment-switch input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0e294c33;
  transition: transform .15s;
}
.payment-switch input:checked { background: #ffcc29; border-color: #ffcc29; }
.payment-switch input:checked::after { transform: translateX(18px); }
.payment-switch input:focus-visible { outline: 2px solid #609be9; outline-offset: 3px; }
.payment-switch:has(input:checked) { margin-bottom: 18px; }

@font-face {
  font-family: Neusharp;
  src: url('/Neusharp-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.topbar { background: #012b6f; }
.brand { gap: 24px; letter-spacing: normal; }
.brand img { width: 144px; height: 48px; object-fit: contain; }
.brand-text {
  border-left: 1px solid #ffffff4d;
  padding-left: 23px;
  font-family: Neusharp, Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: .3px;
  white-space: nowrap;
}
.brand-text span { display: block; }
.login-card aside > .brand { margin-bottom: 30px; }
@media (max-width: 600px) {
  .brand { gap: 10px; }
  .brand img { width: 85px; height: 36px; }
  .brand-text { padding-left: 10px; font-size: 12px; }
}

@font-face {
  font-family: Neusharp;
  src: url('/Neusharp-ThinCondensed.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
h1, h2, .brand-text {
  font-family: Neusharp, "Instrument Sans", sans-serif;
  font-weight: 700;
  font-synthesis: none;
}
h1, h2 { line-height: 1.08; }
h3, h4, .eyebrow {
  font-family: Neusharp, "Instrument Sans", sans-serif;
  font-weight: 100;
  font-synthesis: none;
  text-transform: uppercase;
}
h3, h4 { line-height: 1.2; }

/* Same button roles, colors and pill shape as the Web account interface. */
button { transition: background .18s, color .18s, transform .18s, border-color .18s; }
button:where(:not(.icon-action):not(.close):not(.quiet)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
}
button.primary { background: #012b6f; color: #fff; }
button.primary:hover:not(:disabled) { background: #17468a; transform: translateY(-2px); }
button.outline:not(.icon-action) { border-color: #c6d2e1; background: transparent; color: #012b6f; }
button.outline:not(.icon-action):hover:not(:disabled) { background: #eaf0f7; transform: translateY(-2px); }
button.danger:not(.icon-action) { background: #b63737; color: #fff; border-color: #b63737; }
button.danger:not(.icon-action):hover:not(:disabled) { background: #942b2b; }
button:focus-visible { outline: 3px solid #ffd43a; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
button[data-busy]:disabled { cursor: progress; }
button.icon-action { border-radius: 999px; }
button.icon-action:hover:not(:disabled) { filter: brightness(.96); }
@media (max-width: 600px) {
  button:where(:not(.icon-action):not(.close):not(.quiet)) { min-height: 44px; padding: 12px 14px; }
}

button[hidden] { display: none !important; }
