/* The account pages (portal.html): forms, lists, tables, the order timeline. */
.portal-body { height: auto; min-height: 100%; }
.portal-body .bar { position: relative; }
.portal-body .brand { color: inherit; text-decoration: none; }
.pnav { flex: 1; display: flex; gap: 14px; align-items: center; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
.pnav a, .link { color: var(--ink); text-decoration: none; font-weight: 550; border: 0; background: none; padding: 4px 0; }
.pnav a:hover, .link:hover { color: var(--accent-ink); }
.portal { max-width: 920px; margin: 0 auto; padding: 20px 16px 60px; display: flex; flex-direction: column; gap: 14px; }
.portal h1 { margin: 6px 0 4px; font-size: 26px; font-weight: 650; }
.portal h2 { margin: 14px 0 0; font-size: 15px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.form.wide { max-width: 640px; }
.form section { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form section h2 { margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.field input, .field select, .portal select, .portal input[type="month"] {
  font-size: 15px; color: var(--ink); padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0;
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0; }
.trio legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 4px; }
input.num { font-variant-numeric: tabular-nums; }
.hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.ok { margin: 0; color: #2d6a2d; font-weight: 600; }
.links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.links a, .portal a { color: var(--accent-ink); }
button.primary, a.button.primary { background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 11px 16px; font-weight: 600; }
button.ghost, a.button.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
a.button { display: inline-block; text-decoration: none; text-align: center; }
.small { padding: 6px 10px !important; font-size: 13px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.link-row:hover { border-color: var(--accent); }
.grow { flex: 1; min-width: 0; }
.grow b { display: block; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.badge.s-delivered, .badge.s-closed { background: #e3f1e3; color: #2d6a2d; }
.badge.s-cancelled, .badge.s-rejected { background: #f6e1dc; color: var(--danger); }
.badge.s-placed { background: #f3ecd9; color: var(--warn); }
.timeline { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; flex-wrap: wrap; }
.timeline li { flex: 1 1 100px; font-size: 12px; padding: 8px 6px; text-align: center; border-top: 4px solid var(--line); color: var(--muted); }
.timeline li.done { border-color: #7fa9e6; color: var(--ink); }
.timeline li.on { border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.moves { display: flex; gap: 8px; flex-wrap: wrap; }
.assign { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 550; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.table { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.kv dd.big { font-size: 22px; }
address { font-style: normal; line-height: 1.5; }
.terms { line-height: 1.7; padding-left: 20px; }
pre.yaml { max-height: 420px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: 12px; }
.opt.off { opacity: .55; }
.opt input { accent-color: var(--accent); }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.toggle.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 640px) {
  .pair, .trio { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .pnav { gap: 10px; font-size: 14px; }
}

/* the admin's contact and request messages */
.inquiry { border-bottom: 1px solid var(--line); padding: 10px 0; }
.inquiry summary { cursor: pointer; font-weight: 600; }
.inquiry .kv { margin-top: 10px; max-width: 520px; }
.inquiry .kv dd { text-align: left; font-weight: 400; }
.inquiry .message { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.inquiry .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inquiry .actions a.ghost { text-decoration: none; color: inherit; }
