/* web/css/move-ticket.css
   HEI brand-correct print-canvas styling.
   HEI Blue #005CB9 / HEI Yellow #FFCD00 / HEI Slate #1C355E.
   Proxima Nova preferred; Arial is the approved fallback per CLAUDE.md. */

:root {
  --hei-blue:   #005CB9;
  --hei-yellow: #FFCD00;
  --hei-slate:  #1C355E;
  --hei-neutral:#5B6670;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Proxima Nova", Arial, sans-serif; color: #111; }

.mt-loading, .mt-error {
  padding: 40px;
  font-size: 14px;
  text-align: center;
}
.mt-error { color: #b00020; }

.mt-toolbar {
  position: sticky; top: 0;
  display: flex; align-items: center;
  background: #f4f4f4; border-bottom: 1px solid #ddd;
  padding: 8px 16px; gap: 8px;
  font-size: 13px;
  z-index: 10;
}
.mt-toolbar-spacer { flex: 1; }
.mt-batch-id { font-weight: 700; color: var(--hei-slate); }
.mt-toolbar button {
  padding: 6px 12px; border: 1px solid var(--hei-blue); background: var(--hei-blue); color: white;
  border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.mt-toolbar button:hover { background: #00478f; }

main { padding: 24px 32px; }

.mt-page-header {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 4px solid var(--hei-yellow);
  padding-bottom: 8px; margin-bottom: 8px;
}
.mt-wordmark {
  font-size: 28px; font-weight: 900; letter-spacing: 1px;
  color: var(--hei-blue);
}
.mt-tagline {
  font-size: 10px; letter-spacing: 1.5px;
  color: var(--hei-slate); text-transform: uppercase;
}

.mt-meta {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 4px;
  margin: 16px 0 24px;
  font-size: 11px;
}
.mt-meta .label { color: var(--hei-neutral); }
.mt-meta .skipped { color: #b00020; font-weight: 700; }

.mt-group { page-break-after: always; margin-bottom: 24px; }
.mt-group:last-child { page-break-after: auto; }
.mt-group-header {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--hei-slate); color: white;
  padding: 6px 10px; margin-bottom: 6px;
  font-size: 13px; font-weight: 700;
}

table.mt-lines {
  width: 100%; border-collapse: collapse;
  font-size: 10px;
}
table.mt-lines th, table.mt-lines td {
  border: 1px solid #999; padding: 4px 6px;
  vertical-align: top; text-align: left;
}
table.mt-lines th {
  background: #eef3fa; color: var(--hei-slate);
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
table.mt-lines td.num    { width: 32px; text-align: center; }
table.mt-lines td.done   { width: 36px; text-align: center; }
table.mt-lines td.init   { width: 56px; text-align: center; }

@media print {
  .mt-toolbar { display: none !important; }
  main { padding: 0; }
}

/* Inline-render print scope: when body has .mt-printing (set by Print button in
   the picker modal), hide everything in the page except the modal's ticket
   content. Lets us print the tickets in-place without leaving the main app. */
@media print {
  body.mt-printing > *:not(#moveTicketModal) { display: none !important; }
  body.mt-printing #moveTicketModal {
    position: static !important;
    background: white !important;
    display: block !important;
  }
  body.mt-printing #moveTicketModal .modal-card {
    box-shadow: none !important;
    border: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  body.mt-printing #moveTicketHead,
  body.mt-printing #moveTicketFooter { display: none !important; }
  body.mt-printing #moveTicketInline {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
}
