/* Cloud Agile order portal: the brand (navy, blue, teal as the highlight, grey), Space Grotesk and Inter, self-hosted. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
    --navy: #0B1F3B; --blue: #1E3A5F; --teal: #00B3A4; --teal-dark: #00756B; --grey: #D1D5DB;
    --bg: #F4F7FA; --card: #FFFFFF; --text: #0B1F3B; --muted: #5B677A; --border: #DDE4EC;
    --amber-bg: #FCEBD7; --amber: #8A4A00; --red-bg: #FBE7E5; --red: #A3261B;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
h1, h2 { font-family: "Space Grotesk", Arial, sans-serif; font-weight: 600; margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
a { color: var(--teal-dark); }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
.masthead { background: #FFFFFF; border-bottom: 3px solid var(--navy); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.masthead .logo { height: 44px; width: auto; }
.masthead .area { font-family: "Space Grotesk", Arial, sans-serif; font-weight: 600; color: var(--navy); font-size: 1.1rem; }
main.wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.4rem; margin: 0 0 1rem; }
.panel.narrow { max-width: 34rem; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pre { white-space: pre-line; }
.eyebrow { margin: 0 0 .2rem; color: var(--teal-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.title-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.valid { margin: 0; text-align: right; font-size: 14px; }
.notice { background: #E3F6F4; border-left: 4px solid var(--teal); padding: .6rem .8rem; border-radius: 6px; }
.alert { background: var(--red-bg); color: var(--red); border-left: 4px solid var(--red); padding: .6rem .8rem; border-radius: 6px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0; }
.stack.again { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
label { font-weight: 600; font-size: 14px; }
input, textarea, select { font: inherit; color: var(--text); padding: .6rem .7rem; border: 1px solid #B9C6D6; border-radius: 8px; background: #FFFFFF; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
input.code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
button { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 8px; padding: .7rem 1.1rem; background: var(--navy); color: #FFFFFF; }
button:hover { background: var(--blue); }
button.secondary { background: #FFFFFF; color: var(--navy); border: 1px solid var(--navy); }
button.sign-button { background: var(--teal-dark); font-size: 1.05rem; padding: .8rem 1.6rem; }
button.sign-button:hover { background: var(--navy); }

table { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #FFFFFF; background: var(--navy); padding: .5rem .6rem; }
.lines td { padding: .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.lines tr.off td { color: var(--muted); }
.lines tr.off td strong { font-weight: 500; }
.lines .pick { width: 2.2rem; text-align: center; }
.lines .pick input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--teal-dark); }
.included { color: var(--teal-dark); font-weight: 700; }
.lines input.qty { width: 5rem; text-align: right; padding: .3rem .4rem; }
.tag { display: inline-block; background: #E3F6F4; color: var(--teal-dark); border-radius: 999px; padding: 0 .5rem; font-size: 12px; font-weight: 600; margin-right: .3rem; }
.num { text-align: right; white-space: nowrap; }
.totals { margin: 1rem 0 0 auto; max-width: 28rem; background: var(--bg); border-radius: 8px; }
.totals th, .totals td { padding: .45rem .7rem; }
.totals thead th { font-size: 12px; color: var(--muted); font-weight: 500; }
.totals tbody th { text-align: left; }
.totals .gross { font-weight: 700; }
.totals tr.zero { display: none; }

.sign { border-left: 4px solid var(--teal); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .5rem 0; }
.check input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .2rem; accent-color: var(--teal-dark); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.fields label { display: block; margin-bottom: .25rem; }
.decline summary { cursor: pointer; font-weight: 600; color: var(--muted); }

.foot { color: var(--muted); font-size: 12px; padding: 1.5rem 0 2rem; border-top: 1px solid var(--border); }
.foot p { margin: .2rem 0; }

@media (max-width: 640px) {
    .lines thead { display: none; }
    .lines tr { display: grid; grid-template-columns: 2.2rem 1fr auto; padding: .4rem 0; border-bottom: 1px solid var(--border); }
    .lines td { border: 0; padding: .2rem .4rem; }
    .lines td:nth-child(2) { grid-column: 2 / 4; }
    .lines td:nth-child(3), .lines td:nth-child(4) { grid-column: 2; text-align: left; }
    .lines td.amount { grid-column: 3; grid-row: 2 / 4; align-self: center; }
    .valid { text-align: left; }
}

/* The three steps, then the signature (Vincent, 19 Nov 2026). */
.step { position: relative; }
.step-label { display: inline-block; margin: 0 0 .4rem; padding: .15rem .65rem; border-radius: 999px; background: var(--navy); color: #FFFFFF;
    font-family: "Space Grotesk", Arial, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .03em; }
.sign .step-label { background: var(--teal-dark); }
.doc-link { display: flex; align-items: center; gap: .9rem; margin: .75rem 0; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px;
    text-decoration: none; color: var(--text); background: var(--bg); max-width: 34rem; }
.doc-link:hover { border-color: var(--teal); background: #E3F6F4; }
.doc-link > span { display: flex; flex-direction: column; }
.doc-icon { width: 2.6rem; height: auto; flex: none; }
input.readonly { background: var(--bg); color: var(--muted); }

/* Staff preview (19 Nov 2026). */
.preview-banner { background: var(--amber-bg); color: var(--amber); border-left: 4px solid #D99A1E; border-radius: 8px; padding: .7rem .9rem; margin: 0 0 1rem; }
.sign-button:disabled { background: var(--grey); color: var(--muted); cursor: not-allowed; }
