/* The portal is used in a bay, on a laptop, next to a car: dark, large hit areas,
   one column. The tokens are the ones the design file names. */

:root {
    --page: #0C1521;
    --field: #1B304B;
    --line: rgba(143, 163, 175, .2);
    --text: #EAF3F8;
    --muted: #8FA3AF;
    --focus: #4F94EE;
    --ok: #4FEEA8;
    --warn: #EEC64F;
    --error: #EE6F4F;
    --control: 56px;
    --radius: 10px;
    --column: 720px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 300 15px/1.5 "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1 { font-size: 34px; font-weight: 300; letter-spacing: -.4px; margin: 0 0 6px; }
h2 { font-size: 20px; font-weight: 300; margin: 0 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.shell { min-height: 100vh; }

.bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); text-decoration: none; letter-spacing: 2px; font-size: 14px; }
.brand span { color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.who { display: flex; align-items: center; gap: 14px; color: var(--muted); }

.column { max-width: var(--column); margin: 0 auto; padding: 32px 20px 80px; }

.card {
    background: rgba(27, 48, 75, .45);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin: 18px 0;
}

.field { display: block; margin: 0 0 16px; }
.field span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
input, select {
    width: 100%; height: var(--control);
    background: var(--field); color: var(--text);
    border: 1px solid transparent; border-radius: var(--radius);
    padding: 0 14px; font: inherit;
}
input[type=checkbox] { width: 22px; height: 22px; }
input:focus, select:focus { outline: none; border-color: var(--focus); }

button, .primary, .ghost {
    height: var(--control); padding: 0 22px;
    border-radius: var(--radius); border: 1px solid transparent;
    font: inherit; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.primary { background: var(--focus); color: #06101B; text-decoration: none; }
.ghost { background: transparent; color: var(--text); border-color: var(--line); text-decoration: none; }
.small { height: 40px; padding: 0 14px; font-size: 13px; }
.link { background: none; border: none; color: var(--focus); height: auto; padding: 0; cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > .field { flex: 1 1 180px; }

.notice { border-left: 2px solid var(--line); padding: 10px 14px; color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0; }
.notice.ok { border-color: var(--ok); color: var(--ok); background: rgba(79, 238, 168, .12); }
.notice.warn { border-color: var(--warn); color: var(--warn); background: rgba(238, 198, 79, .12); }
.notice.error { border-color: var(--error); color: var(--error); background: rgba(238, 111, 79, .12); }

.badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--field); color: var(--muted); }
.badge.ok { background: rgba(79, 238, 168, .12); color: var(--ok); }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0; flex-wrap: wrap; }
.steps li { color: var(--muted); font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--field); }
.steps li.now { color: var(--text); border: 1px solid var(--focus); }
.steps li.done { color: var(--ok); }

.jobs { list-style: none; padding: 0; margin: 0; }
.job {
    display: grid; grid-template-columns: 130px 1fr 150px 120px; gap: 16px; align-items: center;
    padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px;
}
.job.mine { border-color: rgba(79, 148, 238, .4); }
.job-when, .job-what, .job-state { display: flex; flex-direction: column; gap: 3px; }

.outputs { width: 100%; border-collapse: collapse; margin: 14px 0; }
.outputs th { text-align: left; color: var(--muted); font-weight: 300; font-size: 12px; padding-bottom: 8px; }
.outputs td { padding: 6px 8px 6px 0; }
.outputs tr.off { opacity: .45; }

.checks { list-style: none; padding: 0; }
.checks li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }

.hand { padding-left: 18px; }
.hand li { margin: 10px 0; }

.ble { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; flex-wrap: wrap; }

.bar-progress { height: 6px; background: var(--field); border-radius: 999px; overflow: hidden; margin: 12px 0 4px; }
.bar-progress div { height: 100%; background: var(--focus); transition: width .2s; }

.code-card { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.qr { background: #fff; padding: 10px; border-radius: var(--radius); line-height: 0; }
.code { font-size: 34px; letter-spacing: 6px; }

/* The printed card: half of A5, black on white, nothing that needs a screen. */
.print { background: #fff; color: #000; min-height: 100vh; padding: 20px; }
.print-card { width: 148mm; border: 1px solid #000; padding: 12mm; }
.print-card header { display: flex; justify-content: space-between; border-bottom: 1px solid #000; padding-bottom: 6mm; letter-spacing: 2px; }
.print-body { display: flex; gap: 10mm; padding: 8mm 0; }
.print-card .code { color: #000; font-size: 28px; letter-spacing: 5px; }
.print-card ol { padding-left: 16px; font-size: 12px; }
.print-card footer { display: flex; justify-content: space-between; border-top: 1px solid #000; padding-top: 4mm; font-size: 11px; }

@media print {
    .no-print { display: none; }
    .print { padding: 0; }
    .print-card { border: none; }
}

@media (max-width: 720px) {
    .job { grid-template-columns: 1fr; }
    .column { padding: 20px 16px 60px; }
}
