/* Flightpath - the iPrintManage client upload portal.
   Copyright (c) 2026 Sandyboy Design and Print Ltd. All rights reserved.
   Licensed to iPrintManage for its own business use - see LICENSE. */

/* ==========================================================================
   Flightpath skin - Flight Path brand guide v1.0, September 2026.

   The colours and fonts arrive as custom properties from branding.py (see
   templates/_head.html), so this file never hard-codes a brand value and can
   be cached. Two rules from the guide are baked in here on purpose:

     - text on orange is always navy, never white
     - Runway Cyan appears only as a focus ring or an "in progress" marker
   ========================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fp-paper);
  color: var(--fp-navy);
  font-family: var(--fp-font);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

/* --- layout -------------------------------------------------------------- */
.fp-shell { max-width: 1080px; margin: 0 auto; padding: 0 20px 56px; }
.fp-shell--narrow { max-width: 780px; }
.fp-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.fp-stack > * + * { margin-top: 18px; }
@media (max-width: 820px) { .fp-cols { grid-template-columns: 1fr; } }

/* --- header and the lockup ---------------------------------------------- */
.fp-header {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 0 22px;
}
.fp-lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.fp-lockup img { display: block; width: auto; }
.fp-wordmark {
  font-weight: 800; font-size: 25px; letter-spacing: -0.035em; line-height: 1.05;
  color: var(--fp-navy); white-space: nowrap;
}
.fp-wordmark em { font-style: normal; color: var(--fp-orange); }
.fp-endorse {
  display: block; font-family: var(--fp-font); font-weight: 600; font-size: 10px;
  letter-spacing: 0.01em; color: var(--fp-muted); margin-top: -2px;
}
.fp-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.fp-nav a {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--fp-navy);
  padding: 7px 13px; border-radius: 999px;
}
.fp-nav a:hover { background: #fff; }
.fp-nav a[aria-current="page"] { background: var(--fp-orange); color: var(--fp-navy); }
.fp-parent {
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--fp-ember);
  white-space: nowrap;
}
.fp-parent:hover { text-decoration: underline; }
.fp-avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--fp-navy); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}

/* --- type --------------------------------------------------------------- */
h1, .fp-h1 {
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.08;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); color: var(--fp-navy); margin: 0 0 8px;
}
h2, .fp-h2 { font-weight: 700; letter-spacing: -0.02em; font-size: 1.22rem; color: var(--fp-navy); margin: 0 0 10px; }
h3, .fp-h3 { font-weight: 700; letter-spacing: -0.015em; font-size: 1.02rem; color: var(--fp-navy); margin: 0 0 6px; }
p { margin: 0 0 12px; }
.fp-lede { font-size: 1.06rem; color: var(--fp-muted); max-width: 54ch; }
.fp-muted { color: var(--fp-muted); }
.fp-small { font-size: 13px; }
a { color: var(--fp-ember); }

.fp-label {
  font-family: var(--fp-label-font); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 12.5px; color: var(--fp-ember);
  display: block; margin: 0 0 6px;
}
.fp-label--onnavy { color: var(--fp-beacon); }
.fp-mono {
  font-family: var(--fp-mono); font-weight: 500; font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- cards -------------------------------------------------------------- */
.fp-card {
  background: var(--fp-card); border: 1px solid var(--fp-line); border-radius: 14px;
  padding: 20px 22px;
}
.fp-card--tight { padding: 16px 18px; }
.fp-checkin {
  background: var(--fp-card); border: 2px dashed var(--fp-orange); border-radius: 14px;
  padding: 24px 24px 22px; cursor: pointer; position: relative; overflow: hidden;
  transition: background .15s ease, border-color .15s ease;
}
.fp-checkin:hover { background: #FFFDFB; }
.fp-checkin.is-dragover { background: #FFF1E4; border-color: var(--fp-ember); }
.fp-checkin__dart { position: absolute; right: 18px; top: 12px;
  width: 158px; max-width: 32%; pointer-events: none; }
@media (max-width: 680px) { .fp-checkin__dart { display: none; } }
.fp-checkin__body { position: relative; max-width: 30rem; }
.fp-checkin input[type=file] { display: none; }

/* --- buttons ------------------------------------------------------------ */
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 20px; border-radius: 10px; border: 1px solid transparent;
  background: var(--fp-orange); color: var(--fp-navy); cursor: pointer;
  text-decoration: none; transition: background .14s ease;
}
.fp-btn:hover { background: var(--fp-beacon); }
.fp-btn--ghost { background: #fff; color: var(--fp-navy); border-color: #DCD3E4; }
.fp-btn--ghost:hover { background: #F7F3FB; }
.fp-btn--navy { background: var(--fp-navy); color: #fff; }
.fp-btn--navy:hover { background: #2A0F96; }
.fp-btn--block { width: 100%; }
.fp-btn--lg { font-size: 16px; padding: 15px 22px; }
.fp-btn:disabled, .fp-btn[disabled] {
  background: #EFE7E0; color: #A79DB4; border-color: transparent; cursor: not-allowed;
}
.fp-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }

/* Runway Cyan, used only here: the focus ring. */
:focus-visible { outline: 3px solid var(--fp-cyan); outline-offset: 2px; border-radius: 4px; }

/* --- figures and chips -------------------------------------------------- */
.fp-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.fp-tile { background: var(--fp-tile); border-radius: 12px; padding: 12px 16px; min-width: 88px; flex: 1 1 88px; }
.fp-tile__value {
  font-family: var(--fp-mono); font-weight: 500; font-size: 27px; line-height: 1.1;
  color: var(--fp-navy); font-variant-numeric: tabular-nums;
}
.fp-tile__label { font-size: 12px; color: var(--fp-muted); margin-top: 2px; }
.fp-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.fp-chip {
  font-family: var(--fp-mono); font-weight: 500; font-size: 12px; color: var(--fp-navy);
  background: #fff; border: 1px solid var(--fp-line); border-radius: 999px; padding: 4px 11px;
}

/* --- the departures board ---------------------------------------------- */
.fp-board { background: var(--fp-navy); border-radius: 14px; overflow: hidden; color: #fff; }
.fp-board__head {
  display: flex; align-items: baseline; gap: 12px; padding: 15px 20px 11px;
}
.fp-board__head .fp-label { margin: 0; font-size: 14px; letter-spacing: 0.16em; }
.fp-board__clock {
  margin-left: auto; font-family: var(--fp-mono); font-size: 12px; color: rgba(255,255,255,.62);
}
.fp-board table { width: 100%; border-collapse: collapse; }
.fp-board thead th {
  font-family: var(--fp-label-font); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 11.5px; color: rgba(255,255,255,.55);
  text-align: left; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.fp-board tbody td {
  padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.09);
  vertical-align: top; font-size: 14px;
}
.fp-board tbody tr:last-child td { border-bottom: 0; }
.fp-board__file { font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.fp-board__meta {
  font-family: var(--fp-mono); font-size: 11.5px; color: rgba(255,255,255,.6);
  display: block; margin-top: 3px;
}
.fp-board__warn {
  display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45;
  color: var(--fp-beacon); max-width: 62ch;
}
.fp-board__size { font-family: var(--fp-mono); font-size: 13px; color: rgba(255,255,255,.88); white-space: nowrap; }
.fp-board__num {
  font-family: var(--fp-mono); font-weight: 500; font-size: 19px; color: var(--fp-orange);
}
.fp-board__empty { padding: 26px 20px 30px; color: rgba(255,255,255,.62); font-size: 14px; }
.fp-board__note {
  padding: 12px 20px 15px; font-size: 13px; color: var(--fp-beacon);
  border-top: 1px solid rgba(255,255,255,.09);
}
.fp-board__foot { padding: 11px 20px 13px; font-size: 12px; color: rgba(255,255,255,.5); }
.fp-board a { color: var(--fp-beacon); }
.fp-board__drop { color: rgba(255,255,255,.55); cursor: pointer; font-size: 16px; line-height: 1;
  background: none; border: 0; padding: 2px 4px; }
.fp-board__drop:hover { color: var(--fp-beacon); }
.fp-tag {
  font-family: var(--fp-label-font); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: 10px; color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.28); border-radius: 4px; padding: 1px 5px; margin-left: 6px;
  white-space: nowrap;
}

/* --- status pills ------------------------------------------------------- */
.fp-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--fp-label-font); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
}
.fp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.fp-pill--cleared { color: var(--fp-cleared-navy); background: rgba(74,222,155,.14); }
.fp-pill--look { color: var(--fp-beacon); background: rgba(255,161,37,.16); }
.fp-pill--progress { color: var(--fp-cyan); background: rgba(0,191,249,.14); }
/* On a light background the green needs to be the darker one. */
.fp-onpaper .fp-pill--cleared { color: var(--fp-cleared); background: rgba(30,122,84,.1); }
.fp-onpaper .fp-pill--look { color: #8A5A00; background: rgba(255,161,37,.2); }

/* --- status line -------------------------------------------------------- */
.fp-status { margin-top: 14px; font-size: 14px; }
.fp-status--progress { color: var(--fp-navy); }
.fp-status--progress::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--fp-cyan); margin-right: 8px; vertical-align: 1px;
  animation: fp-pulse 1.1s ease-in-out infinite;
}
@keyframes fp-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.fp-status--error {
  color: var(--fp-ember); background: #FDEDE6; border: 1px solid #F3C7B2;
  border-radius: 10px; padding: 13px 15px;
}
.fp-status--done {
  background: #ECF8F2; border: 1px solid #BCE4D0; border-radius: 12px;
  padding: 17px 18px; color: #15573B;
}
.fp-status--done a { color: #15573B; font-weight: 600; }

/* --- progress bar ------------------------------------------------------- */
progress.fp-progress {
  width: 100%; height: 9px; margin-top: 12px; border: none; border-radius: 999px;
  -webkit-appearance: none; appearance: none; background: #EFE4DA; overflow: hidden; display: block;
}
progress.fp-progress::-webkit-progress-bar { background: #EFE4DA; border-radius: 999px; }
progress.fp-progress::-webkit-progress-value { background: var(--fp-orange); border-radius: 999px; }
progress.fp-progress::-moz-progress-bar { background: var(--fp-orange); border-radius: 999px; }
progress.fp-progress:indeterminate {
  background: linear-gradient(90deg, #EFE4DA 0%, #EFE4DA 30%, var(--fp-cyan) 50%, #EFE4DA 70%, #EFE4DA 100%);
  background-size: 250% 100%; animation: fp-sweep 1.3s linear infinite;
}
progress.fp-progress:indeterminate::-webkit-progress-bar { background: transparent; }
progress.fp-progress:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes fp-sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* --- forms -------------------------------------------------------------- */
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fp-grid .fp-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fp-grid { grid-template-columns: 1fr; } }
.fp-field { display: block; font-size: 13px; font-weight: 600; color: var(--fp-navy); }
.fp-field .fp-req { color: var(--fp-ember); margin-left: 2px; }
.fp-field input, .fp-field textarea, .fp-input, textarea.fp-input {
  margin-top: 6px; border-radius: 10px; border: 1px solid #DCD3E4; padding: 11px 12px;
  font-family: inherit; font-size: 14.5px; font-weight: 400; color: var(--fp-navy);
  background: #fff; width: 100%;
}
.fp-field textarea, textarea.fp-input { resize: vertical; min-height: 48px; }
.fp-field input:focus, .fp-field textarea:focus, .fp-input:focus { border-color: var(--fp-orange); }
.fp-field input::placeholder, .fp-input::placeholder { color: #A79DB4; }

/* --- tick boxes --------------------------------------------------------- */
.fp-tick {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  background: #FFF4E7; border: 1px solid #F4CFA4; border-radius: 12px;
  padding: 14px 16px; font-size: 14px; color: #6B4310;
}
.fp-tick input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--fp-navy); }
.fp-tick.is-ticked { background: #ECF8F2; border-color: #BCE4D0; color: #15573B; }
.fp-tick--info {
  background: #EAF8FE; border-color: #B3E3F6; color: #0F4C63; font-size: 13px;
}
.fp-tick--info input { accent-color: var(--fp-navy); }
.fp-scale {
  display: flex; align-items: center; gap: 15px; cursor: pointer;
  background: #FFF1DD; border: 3px solid var(--fp-beacon); border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 2px 0 rgba(255,161,37,.3);
}
.fp-scale input { width: 24px; height: 24px; flex: none; accent-color: var(--fp-navy); cursor: pointer; }
.fp-scale__title {
  display: block; font-family: var(--fp-label-font); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: 19px; color: #7A4300;
}
.fp-scale__sub { display: block; font-size: 13px; color: #6B4310; margin-top: 3px; }
.fp-scale.is-ticked { background: #EEEBFA; border-color: var(--fp-navy); }
.fp-scale.is-ticked .fp-scale__title { color: var(--fp-navy); }
.fp-scale.is-ticked .fp-scale__sub { color: #463A78; }

/* --- notes -------------------------------------------------------------- */
.fp-note {
  font-size: 13px; color: #0F4C63; background: #EAF8FE; border: 1px solid #B3E3F6;
  border-radius: 10px; padding: 12px 14px;
}
.fp-note--warn { color: #6B4310; background: #FFF4E7; border-color: #F4CFA4; }
.fp-note--ok { color: #15573B; background: #ECF8F2; border-color: #BCE4D0; }
.fp-note--ok a { color: #15573B; font-weight: 600; }
.fp-hint { font-size: 12.5px; color: var(--fp-muted); text-align: center; margin-top: 7px; }

/* --- tables on paper ---------------------------------------------------- */
.fp-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.fp-table thead th {
  font-family: var(--fp-label-font); font-weight: 600; text-transform: uppercase;
  letter-spacing: .13em; font-size: 11.5px; color: #fff; background: var(--fp-navy);
  text-align: left; padding: 10px 12px;
}
.fp-table tbody td { padding: 11px 12px; border-bottom: 1px solid var(--fp-line); vertical-align: top; }
.fp-table tbody tr:nth-child(even) td { background: #FFFCF9; }
.fp-table-wrap { border: 1px solid var(--fp-line); border-radius: 12px; overflow: hidden; }

/* --- footer ------------------------------------------------------------- */
.fp-foot {
  margin-top: 30px; border-top: 1px solid var(--fp-line); padding-top: 16px;
  font-size: 12px; color: var(--fp-muted);
}
.fp-foot p { margin: 4px 0; }
.fp-foot__legal { color: #9A91A8; }
.fp-foot__strap { font-weight: 600; color: var(--fp-navy); }

/* --- misc --------------------------------------------------------------- */
.fp-rule { border: 0; border-top: 1px solid var(--fp-line); margin: 26px 0; }
.fp-sticky { position: sticky; top: 18px; }
@media (max-width: 820px) { .fp-sticky { position: static; } }

/* Visible to screen readers only. */
.fp-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* On a phone the board stops being a table: each file becomes its own block,
   so long file names get the full width instead of a four-column squeeze. */
@media (max-width: 620px) {
  .fp-board thead { display: none; }
  .fp-board tbody tr {
    display: block; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .fp-board tbody tr:last-child { border-bottom: 0; }
  .fp-board tbody td { display: block; padding: 0; border: 0; }
  .fp-board tbody td:nth-child(2) { display: inline-block; margin: 7px 12px 0 0; }
  .fp-board tbody td:nth-child(3) { display: inline-block; margin-top: 7px; }
  .fp-board tbody td:nth-child(4) { float: right; text-align: right !important; }
  .fp-board__warn { max-width: none; }
}

/* --- the project-website offer ----------------------------------------- */
/* Shown over the page after "send" and before the first byte goes out, so it
   has to sit above everything, and scroll on a small screen rather than
   pushing its own buttons off the bottom. */
.fp-modal {
  position: fixed; inset: 0; z-index: 60; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(28, 0, 114, .55); overflow-y: auto;
}
.fp-modal[hidden] { display: none; }
.fp-modal__sheet {
  width: 100%; max-width: 540px; margin: auto; padding: 24px;
  background: var(--fp-card); border: 1px solid var(--fp-line);
  border-top: 5px solid var(--fp-orange); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(28, 0, 114, .32);
}
.fp-modal__title {
  margin: 7px 0 12px; font-size: 25px; line-height: 1.15; color: var(--fp-navy);
}
.fp-modal__sheet p { margin: 0 0 13px; }
.fp-modal__actions { margin-top: 18px; }
@media (max-width: 520px) {
  .fp-modal { padding: 12px; }
  .fp-modal__sheet { padding: 18px; }
  .fp-modal__title { font-size: 22px; }
  .fp-modal__actions .fp-btn { width: 100%; }
}

/* The Copy to hint sits under its input, inside the label. */
.fp-field .fp-small { display: block; margin-top: 5px; font-weight: 400; }
