@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url(/static/fonts/BarlowCondensed-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; src: url(/static/fonts/IBMPlexSans-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; src: url(/static/fonts/IBMPlexSans-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; src: url(/static/fonts/IBMPlexMono-500.woff2) format("woff2"); }
:root {
  --bg: #E9EBEC; --card: #fff; --ink: #14202B; --muted: #4F5862; --line: #CDD2D7;
  --brand: #C2410C; --brand-ink: #fff; --ok: #2E7D4F; --warn: #b45309; --bad: #B42318; --info: #2F5F8F;
  --radius: 10px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.45; }
a { color: var(--info); }
h1 { font: 700 30px/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 12px; }
h2 { font: 700 18px/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.top { background: #14202B; color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.top .brand { font: 700 19px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.top .brand img { width: 28px; height: 28px; }
.top .brand span { color: #fb923c; }
.top .who { margin-left: auto; font-size: 13px; opacity: .85; }
.top button { background: transparent; color: #fff; border: 1px solid #ffffff55; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.narrow { width: 100%; max-width: 380px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #fb923c66; border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 14px; }
.check input { width: auto; margin-top: 3px; }

button { font: inherit; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.danger { color: var(--bad); }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.msg { margin-top: 12px; padding: 9px 12px; border-radius: 7px; font-size: 14px; }
.msg.err { background: #fde8e8; color: var(--bad); }
.msg.ok { background: #e7f6ec; color: var(--ok); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; border-bottom: none; }

.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 600; background: #eef0f4; color: var(--muted); }
.pill.open { background: #e0eaff; color: var(--info); }
.pill.accepted { background: #e7f6ec; color: var(--ok); }
.pill.expired, .pill.withdrawn, .pill.superseded { background: #f1f1f1; color: #777; }
.pill.draft { background: #fff4e0; color: var(--warn); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 10px 14px; color: var(--muted); }
.tabs button.active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

.quote-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.quote-head .total { font-size: 20px; font-weight: 700; }
.accept-box { background: #fff8f2; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 14px; margin-top: 14px; }
.done-box { background: #effaf2; border: 1px solid #bbe5c8; border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.linkbox { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; background: #f3f4f6; padding: 8px; border-radius: 6px; }
.lines td input { padding: 6px 8px; }
.lines .c-qty { width: 80px; } .lines .c-unit { width: 80px; } .lines .c-price { width: 120px; } .lines .c-x { width: 40px; }
.pre { white-space: pre-wrap; }
.mt { margin-top: 16px; }
.accent { color: var(--brand); }
@media (max-width: 560px) { .top .who { display: none; } .top { padding: 10px 14px; } .wrap { padding: 14px; } }

/* customer quote list */
.qcard { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; text-decoration: none; color: inherit; }
.qcard:hover { border-color: var(--info); }
.qcard .qno { font: 500 13px var(--mono); color: var(--muted); }
.qcard .qp { font-weight: 600; font-size: 16px; margin: 3px 0; }
.qcard .qt { font: 500 18px var(--mono); text-align: right; }
.qcard .go { color: var(--info); font-weight: 600; font-size: 14px; text-align: right; margin-top: 4px; }
.qcard.open { border-left: 4px solid var(--brand); }
.mono { font-family: var(--mono); }
.login-logo { width: 160px; display: block; margin: 0 0 14px; }
