/* v3.8.6 orders (internal) + the customer's order page (uses style.css and cost.css) */
.linklike { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.field.wide { width: 100%; margin-top: 8px; }
input.field, textarea.field { font: inherit; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; }
textarea.field { width: 100%; min-height: 64px; resize: vertical; }
.reqlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.reqlist li.req { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; cursor: pointer; }
.reqlist li.req:hover { border-color: var(--accent); }
.reqlist li.req.sel { border-color: var(--accent); background: #262420; }
.reqlist .r1 { display: flex; justify-content: space-between; gap: 6px; font-weight: 600; }
.reqlist .r2 { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.st-review { color: #e0b14b; } .st-changes { color: var(--warn); } .st-approved { color: #7fb3ff; } .st-paid { color: #6cc2c2; }
.st-in_progress { color: #b48cf2; } .st-shipped { color: #8fd18f; } .st-delivered { color: var(--ok); } .st-cancelled { color: var(--muted); }
.form2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 12px; }
.form2 label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); margin: 0; }
.form2 .full { grid-column: 1 / -1; }
.btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.btnrow .msg { font-size: 12px; }
.err { color: var(--bad); } .ok { color: var(--ok); }
.check { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.check label { display: flex; gap: 8px; align-items: center; margin: 0; }
.check .done { color: var(--muted); text-decoration: line-through; }
.check .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; white-space: nowrap; }
.check h3 { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 10px 0 2px; }
.progress { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
.progress > div { height: 100%; background: var(--accent); }
.hist { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.hist li { border-left: 2px solid var(--line); padding-left: 8px; }
.hist li.pub { border-left-color: var(--accent); }
.hist .when { color: var(--muted); font-size: 11px; }
.arts { display: flex; flex-wrap: wrap; gap: 10px; }
.arts figure { margin: 0; width: 120px; }
.arts .pic { width: 120px; height: 150px; background: #f3efe6; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.arts img { max-width: 100%; max-height: 100%; }
.arts figcaption { font-size: 11px; color: var(--muted); margin-top: 3px; }
.copy { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; color: var(--accent); }
/* the customer's page */
body.cust { display: block; }
.cust main { max-width: 720px; margin: 0 auto; padding: 28px 18px 60px; display: grid; gap: 16px; }
.cust h1 { color: var(--accent); margin: 0; font-size: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; position: relative; padding-bottom: 16px; }
.steps li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg); z-index: 1; }
.steps li.done .dot { background: var(--accent); border-color: var(--accent); color: #1d1f25; }
.steps li.now .dot { border-color: var(--accent); color: var(--accent); }
.steps .t { font-weight: 600; padding-top: 4px; }
.steps li:not(.done):not(.now) .t { color: var(--muted); }
.steps .d { font-size: 12px; color: var(--muted); }
.pay { display: inline-block; background: var(--accent); color: #1d1f25; font-weight: 700; padding: 10px 18px; border-radius: 8px; text-decoration: none; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; max-width: 560px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog h2 { margin: 0 0 6px; font-size: 16px; color: var(--accent); text-transform: none; letter-spacing: 0; }
/* v3.8.10 quotes */
.quote { margin: 10px 0 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #1b1b1f; font-size: 13px; }
.quote:empty { display: none; }
.quote table { width: 100%; border-collapse: collapse; }
.quote td { padding: 2px 0; }
.quote td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote .qtotal { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 15px; }
.qtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.qtable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 3px 6px; border-bottom: 1px solid var(--line); }
.qtable td { padding: 4px 6px; border-bottom: 1px solid #2a2a2e; }
.qtable .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qtable tr.tot td { font-weight: 700; border-bottom: 0; }
.qtable .miss { color: var(--warn); }
.qtable button.mini { padding: 0 6px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; font-size: 13px; }
.kv .n { text-align: right; font-variant-numeric: tabular-nums; }
.kv .bad, .bad { color: var(--bad); font-weight: 600; } .kv .low, .low { color: var(--warn); font-weight: 600; } .kv .good, .good { color: var(--ok); }
.expired { color: var(--bad); font-weight: 600; }
