/* Quotes and invoices, the simple way (docflow.js): the hub's and the customer portal's Quotes / Invoices tabs. */
.qt-panel { display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.qt-panel h2 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qt-steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; font-size: 13px; color: var(--text-3); }
.qt-steps li { display: flex; align-items: center; gap: 6px; }
.qt-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--stroke); margin-right: 2px; }
.qt-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--stroke); font-weight: 700; font-size: 12px; }
.qt-steps li.on { color: var(--text); font-weight: 600; }
.qt-steps li.on span { background: var(--accent); color: #0b1222; border-color: transparent; }
.qt-steps li.done span { background: rgba(127, 224, 176, 0.25); border-color: rgba(127, 224, 176, 0.6); }
.qt-list, .qt-pick, .qt-lines { display: flex; flex-direction: column; gap: 8px; }
.qt-row, .qt-cust, .qt-mode { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.04); transition: border-color .15s, background .15s; }
.qt-row:hover, .qt-cust:hover, .qt-mode:hover { border-color: var(--stroke); background: rgba(128, 140, 200, 0.10); }
.qt-row:focus-visible, .qt-cust:focus-visible, .qt-mode:focus-visible { outline: 2px solid var(--accent); }
.qt-row .grow, .qt-cust .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qt-mode { flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; }
.qt-mode b { font-size: 16px; }
.qt-no { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 72px; }
.qt-total { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 90px; text-align: right; }
.qt-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qt-mode.on, .qt-cust.on { border-color: var(--accent); background: rgba(56, 189, 248, 0.10); }
.qt-pick { max-height: 420px; overflow: auto; padding-right: 2px; }
.qt-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--stroke); flex: none; box-sizing: border-box; }
.qt-cust.on .qt-radio { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.qt-tag { font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--stroke-soft); color: var(--text-2); white-space: nowrap; }
.qt-create .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Create customer: kind → group → details, with how it will look on the quote beside it */
.cc-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.cc-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cc-step { display: flex; flex-direction: column; gap: 12px; }
.cc-step-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.cc-step-title span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent); color: #0b1222; flex: none; }
.cc-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.cc-kind { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.04); transition: border-color .15s, background .15s; }
.cc-kind b { font-size: 15px; }
.cc-kind:hover { border-color: var(--stroke); background: rgba(128, 140, 200, 0.10); }
.cc-kind:focus-visible { outline: 2px solid var(--accent); }
.cc-kind.on { border-color: var(--accent); background: rgba(56, 189, 248, 0.12); box-shadow: 0 6px 16px rgba(56, 189, 248, 0.14); }
.cc-group { display: flex; flex-direction: column; gap: 10px; }
.cc-pick { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--stroke); background: rgba(255,255,255,0.04); }
.cc-pick:hover, .cc-pick:focus-visible { border-color: var(--accent); outline: none; }
.cc-pick.chosen { border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }
.cc-pick .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-caret { color: var(--text-2); }
.cc-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,0.03); }
.cc-options { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.cc-option[hidden] { display: none; }
.cc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.cc-field .input { border-radius: 16px; min-height: 46px; }
.cc-field textarea.input { min-height: 64px; padding-top: 10px; }
.cc-field .input.bad { border-color: var(--defect); }
.cc-wide { grid-column: 1 / -1; }
.cc-already { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--progress, #ffd98a); background: rgba(255, 217, 138, 0.10); font-size: 14px; }
.cc-already[hidden] { display: none; }
.cc-already .grow { flex: 1; min-width: 200px; }
.cc-preview { position: sticky; top: 90px; padding: 16px; border-radius: 18px; border: 1px solid var(--stroke-soft); background: #fff; color: #1b1f24; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cc-preview-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.cc-preview [data-cc-preview] { display: flex; flex-direction: column; gap: 8px; font: 13px/1.4 Arial, Helvetica, sans-serif; }
.cc-pv-name { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cc-pv-group { display: flex; align-items: center; gap: 8px; color: #374151; }
.cc-preview .df-logos img { height: 34px; width: 56px; filter: none !important; }
.cc-preview .df-mono { color: #1b1f24; background: #eef1f5; }
@media (max-width: 860px) { .cc-form { grid-template-columns: 1fr; } .cc-preview { position: static; } }
@media (max-width: 560px) { .cc-fields { grid-template-columns: 1fr; } }
.qt-create label, .qt-line label, .qt-bottom label, .qt-valid { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.qt-foot { border-top: 1px solid var(--stroke-soft); padding-top: 14px; }
.qt-line { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.04); }
.qt-line-top { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.qt-line-top .grow { flex: 1; min-width: 160px; }
.qt-qty { width: 80px; }
.qt-price { width: 130px; }
.qt-amount { display: flex; flex-direction: column; gap: 6px; min-width: 100px; text-align: right; padding-bottom: 10px; font-variant-numeric: tabular-nums; }
.qt-line textarea { resize: vertical; }
.qt-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qt-photo { position: relative; }
.qt-photo img { width: 92px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid var(--stroke-soft); display: block; }
.qt-x { all: unset; cursor: pointer; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1b2236; color: #fff; border: 1px solid var(--stroke); font-size: 14px; }
.qt-x:hover { background: var(--defect); }
.qt-line label.qt-addphoto { flex-direction: row; align-items: center; justify-content: center; width: 92px; height: 70px; border-radius: 10px; border: 1px dashed var(--stroke); cursor: pointer; box-sizing: border-box; }
.qt-line label.qt-addphoto:hover { border-color: var(--accent); color: var(--text); }
.qt-line-foot [data-saved] { color: var(--clear); }
.qt-line-foot [data-saved].error { color: var(--defect); }
.qt-addline { align-self: flex-start; border-style: dashed; }
.qt-bottom { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.qt-bottom .grow { flex: 1; min-width: min(240px, 100%); }
.qt-totals { min-width: min(240px, 100%); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qt-totals td { padding: 6px 4px; }
.qt-totals td:last-child { text-align: right; }
.qt-totals .grand td { border-top: 1px solid var(--stroke); font-weight: 700; font-size: 17px; padding-top: 10px; }
.qt-valid { min-width: 170px; }
@media (max-width: 700px) {
  .qt-modes, .qt-create .two { grid-template-columns: 1fr; }
  .qt-row { flex-wrap: wrap; }
  .qt-total { min-width: 0; }
  .qt-qty, .qt-price { flex: 1; width: auto; }
}
.qt-modes.three { grid-template-columns: repeat(3, 1fr); }
.qt-stats { margin: 0; }
.qt-catalog { width: auto; max-width: 340px; }
.qt-pay { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255, 255, 255, 0.03); }
.qt-payrow { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--stroke-soft); font-variant-numeric: tabular-nums; }
.qt-payrow .grow { flex: 1; min-width: 0; }
.qt-x.static { position: static; }
.qt-payform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.qt-payform label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.qt-payform label.grow { flex: 1; min-width: 160px; }
.qt-payform [name=amount] { width: 130px; }
.qt-head .qt-valid { min-width: 150px; }
@media (max-width: 900px) { .qt-modes.three { grid-template-columns: 1fr; } }
/* (the file picker inside "+ Photos": invisible but still tappable on older iPhones, unlike display:none) */
.qt-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.qt-line label.qt-addphoto { position: relative; }

/* logos (transparent; dark ones are inverted on the dark theme: /logos.css) and the shops under a picked group */
.df-logos { display: inline-flex; gap: 4px; flex: none; align-items: center; }
.df-logos img { height: 34px; width: 48px; object-fit: contain; box-sizing: border-box; }
.df-mono { width: 48px; height: 34px; justify-content: center; border-radius: 9px; background: rgba(128, 140, 200, 0.18); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--text-2); }
.df-shops { display: flex; flex-direction: column; gap: 6px; margin: -2px 0 6px 28px; padding-left: 12px; border-left: 2px solid var(--accent); }
.df-shops > p { margin: 2px 0; }
.df-shop { padding: 9px 12px; }
.df-for { display: flex; gap: 14px; align-items: flex-start; }
.df-for .df-logos img, .df-for .df-mono { height: 52px; width: 72px; }
/* Each item's order bar: ⠿ drag handle, its number, ↑ ↓ */
.qt-lines { counter-reset: dfitem; }
.qt-line { counter-increment: dfitem; transition: box-shadow .3s, opacity .15s; }
.df-order { display: flex; align-items: center; gap: 8px; margin: -4px 0 2px; }
.df-order .grow { flex: 1; }
.df-order-n { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.df-order-n::after { content: " " counter(dfitem); }
.df-grip { cursor: grab; user-select: none; font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 8px; color: var(--text-2); }
.df-grip:hover { background: rgba(128, 140, 200, 0.16); color: var(--text); }
.df-grip:active { cursor: grabbing; }
.df-ordbtn { all: unset; box-sizing: border-box; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--stroke); font-size: 16px; color: var(--text-2); }
.df-ordbtn:hover { color: var(--text); border-color: var(--accent); }
.df-ordbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qt-lines > .qt-line:first-child .df-ordbtn[data-move="-1"], .qt-lines > .qt-line:last-child .df-ordbtn[data-move="1"] { visibility: hidden; }
.qt-line.df-dragging { opacity: .35; }
.qt-line.df-moved { box-shadow: 0 0 0 2px var(--accent); }
/* The box by the customer's name: click (or drop / paste) to add a picture of the shop. */
.df-shoppic-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.df-shoppic { position: relative; display: grid; place-items: center; min-width: 72px; min-height: 52px; border-radius: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.df-shoppic:hover, .df-shoppic:focus-visible, .df-shoppic.drag { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--accent); outline: none; }
.df-shoppic.has { width: 112px; height: 84px; overflow: hidden; }
.df-shoppic.has img { width: 100%; height: 100%; object-fit: cover; display: block; }
span.df-shoppic.has { cursor: default; }
.df-shoppic .df-badge { position: absolute; right: -6px; bottom: -6px; }
.df-shoppic.has .df-badge { right: 4px; bottom: 4px; }
.df-shoppic-busy { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(8, 12, 24, 0.7); color: #fff; border-radius: inherit; }
.df-shoppic-busy[hidden] { display: none; }
.df-shoppic-hint { font-size: 11px; }
.cp-photo img { object-fit: cover !important; border-radius: 8px; }
.qt-row .df-logos img { height: 30px; width: 42px; }
.qt-row .df-mono { height: 30px; width: 42px; }
@media (max-width: 700px) { .df-shops { margin-left: 8px; } .df-for { flex-direction: column; } }
/* narrow screens: the type label goes under the name instead of over it */
@media (max-width: 560px) {
  .qt-cust { flex-wrap: wrap; row-gap: 6px; }
  .qt-cust .grow { flex: 1 1 120px; }
  .qt-cust .qt-tag { margin-left: auto; }
}

/* proposal details, PDFs (docflow.js) */
.qt-details { border: 1px solid var(--stroke-soft); border-radius: 14px; padding: 10px 14px; background: rgba(255, 255, 255, 0.03); }
.qt-details summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.qt-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.qt-detail-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.qt-checks label.inline { flex-direction: row !important; align-items: center; gap: 6px; }
.qt-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 217, 138, 0.14); border: 1px solid rgba(255, 217, 138, 0.5); font-size: 13px; }
.qt-attach { display: flex; flex-direction: column; gap: 8px; }
.qt-attrow { display: flex; align-items: center; gap: 12px; }
.qt-attrow a { color: var(--accent); }
label.btn { position: relative; cursor: pointer; }

/* ═════════ the phone app's look (docflow.js): big titles, glass cards, rounded fields, a bottom bar ═════════ */
.qt-panel { gap: 18px; padding-bottom: 0; }
.df-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.df-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.df-display { margin: 2px 0 6px; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.df-display.small { font-size: 30px; }
.df-top p { margin: 0; max-width: 560px; }
.df-iconbtns { display: flex; gap: 8px; flex: none; }
.df-circle { all: unset; box-sizing: border-box; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--glass-strong, rgba(255,255,255,0.12)); border: 1px solid var(--stroke); flex: none; transition: transform .15s, background .15s; }
.df-circle:hover { transform: scale(1.06); }
.df-circle:focus-visible, .df-pill:focus-visible, .df-chip:focus-visible, .df-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.df-head { display: flex; align-items: center; gap: 14px; }
.df-stats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.df-stat { flex: 1 0 150px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 20px; background: var(--glass, rgba(255,255,255,0.06)); border: 1px solid var(--stroke-soft); }
.df-stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.df-stat span { font-size: 12px; color: var(--text-2); }
.df-search { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; border-radius: 999px; background: var(--glass, rgba(255,255,255,0.06)); border: 1px solid var(--stroke); color: var(--text-2); }
.df-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14); }
.df-search input { all: unset; flex: 1; min-width: 0; font-size: 15px; color: var(--text); }
.df-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.df-chip { all: unset; cursor: pointer; white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--glass, rgba(255,255,255,0.06)); border: 1px solid var(--stroke-soft); }
.df-chip.on { color: var(--text); background: var(--glass-strong); border-color: var(--clear); box-shadow: inset 0 0 0 1px var(--clear); }
.df-cards { display: flex; flex-direction: column; gap: 10px; }
.df-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: var(--glass, rgba(255,255,255,0.06)); border: 1px solid var(--stroke); transition: border-color .15s, transform .15s, background .15s; }
.df-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.df-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.df-card .df-logos img, .df-card .df-mono { width: 54px; height: 54px; }
.df-card .df-mono { border-radius: 16px; }
.df-title { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-sub { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.df-right { display: flex; align-items: center; gap: 10px; flex: none; }
.df-right b { font-size: 16px; font-variant-numeric: tabular-nums; }
.df-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); }
.df-empty { padding: 36px 16px; text-align: center; border-radius: 22px; border: 1px dashed var(--stroke); }
.df-bar { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 14px 0 18px; margin-top: 4px; background: linear-gradient(to bottom, transparent, var(--bg, rgba(8, 12, 26, 0.92)) 38%); }
.df-bar.wide { justify-content: flex-end; }
.df-pill { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text); background: var(--glass-strong, rgba(255,255,255,0.14)); border: 1px solid var(--stroke); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .15s; }
.df-pill:hover { transform: translateY(-1px); }
.df-pill:active { transform: scale(0.98); }
.df-pill.solid { color: #fff; border: 0; background: var(--grad, var(--accent)); box-shadow: 0 10px 28px rgba(99, 102, 241, 0.42); min-width: 180px; }
.df-pill.danger { color: #ffd4cc; border-color: rgba(255, 155, 138, 0.55); }
.df-pill:disabled { opacity: .55; cursor: progress; }
/* step 1 */
.qt-modes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass, rgba(255,255,255,0.06)); border: 1px solid var(--stroke-soft); }
.qt-modes.three { display: flex; }
.qt-mode { flex: 1; align-items: center !important; text-align: center; padding: 10px 12px !important; border-radius: 999px !important; border: 0 !important; background: transparent !important; }
.qt-mode .faint { display: none; }
.qt-mode b { font-size: 14px !important; font-weight: 600; color: var(--text-2); }
.qt-mode.on { background: var(--glass-strong) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.qt-mode.on b { color: var(--text); }
.qt-cust { border-radius: 20px !important; padding: 12px 14px !important; }
.qt-cust.on { border-color: var(--clear) !important; background: rgba(74, 222, 128, 0.10) !important; box-shadow: 0 0 0 1px var(--clear), 0 0 24px rgba(74, 222, 128, 0.18); }
.qt-cust.on .qt-radio { border-color: var(--clear); background: radial-gradient(var(--clear) 45%, transparent 50%); }
.qt-pick { max-height: none; overflow: visible; }
.qt-create .input, .qt-detail-grid .input, .qt-line .input, .qt-payform .input, .qt-bottom .input, .qt-head .input { border-radius: 16px; min-height: 46px; }
.qt-line textarea.input, .qt-bottom textarea.input { border-radius: 18px; }
/* step 2: an item like the app's asset card */
.qt-line { border-radius: 24px; padding: 16px; gap: 12px; border-color: var(--stroke); }
.qt-line.df-card-next { border-color: var(--clear); box-shadow: 0 0 0 1px var(--clear), 0 0 28px rgba(74, 222, 128, 0.16); }
.df-hero { display: flex; gap: 14px; align-items: stretch; }
.df-photo { position: relative; flex: none; width: 118px; height: 118px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: rgba(128, 140, 200, 0.14); border: 1px solid var(--stroke-soft); color: var(--text-2); cursor: pointer; }
.df-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.df-badge { position: absolute; right: 7px; bottom: 7px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad, var(--accent)); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.df-hero-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.df-caps { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.df-big { all: unset; box-sizing: border-box; width: 100%; font-size: 32px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); border-bottom: 1px dashed transparent; }
.df-big:focus, .df-brand:focus { border-bottom-color: var(--accent); }
.df-big::placeholder { color: var(--text-3); opacity: .6; }
.df-brand { all: unset; box-sizing: border-box; width: 100%; font-size: 15px; color: var(--text-2); border-bottom: 1px dashed transparent; }
.df-hero-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; text-align: right; }
.df-hero-right b { font-size: 20px; font-variant-numeric: tabular-nums; }
.df-tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 217, 138, 0.2); border: 1px solid rgba(255, 217, 138, 0.55); }
.df-next { position: relative; }
label.df-next > .input, .df-next.df-big { border-color: var(--clear) !important; box-shadow: 0 0 0 1px var(--clear), 0 0 18px rgba(74, 222, 128, 0.25); }
label.df-next::before { content: "NEXT"; position: absolute; right: 0; top: 0; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 99px; background: var(--clear); color: #052e16; }
.df-add { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 1px dashed var(--stroke); color: var(--text); font-weight: 600; }
.df-add:hover { border-color: var(--accent); }
/* Add item: green, at the top of the items; Saved item: blue */
.df-add.go { border: 0; background: var(--clear); color: #052e16; font-weight: 700; box-shadow: 0 8px 22px rgba(74, 222, 128, 0.28); }
.df-add.go:hover { filter: brightness(1.07); }
.df-add.alt { border: 1px solid var(--accent); color: var(--accent); }
.df-add:disabled { opacity: .6; cursor: progress; }
.df-addbar { align-items: center; }
/* a picture being dragged onto an item */
.qt-line.df-drop { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 28px rgba(125, 211, 252, 0.25); }
.qt-line.df-drop .df-photo { border: 2px dashed var(--accent); }
.df-photo-hint { font-size: 11px; line-height: 1.2; text-align: center; color: var(--text-3); pointer-events: none; padding: 0 8px; }
.df-photo:has(.df-photo-hint) { align-content: center; gap: 6px; padding-bottom: 18px; box-sizing: border-box; }
.df-link { all: unset; cursor: pointer; font-size: 13px; color: var(--text-2); }
.df-link.danger:hover { color: var(--defect); }
.qt-head { padding: 16px; border-radius: 24px; background: var(--glass, rgba(255,255,255,0.05)); border: 1px solid var(--stroke-soft); }
.qt-bottom { padding: 16px; border-radius: 24px; background: var(--glass, rgba(255,255,255,0.05)); border: 1px solid var(--stroke-soft); }
.qt-pay, .qt-details, .qt-attach { border-radius: 24px; }
.qt-attach { padding: 14px 16px; background: var(--glass, rgba(255,255,255,0.04)); border: 1px solid var(--stroke-soft); }
@media (max-width: 700px) {
  .df-display { font-size: 34px; }
  .df-display.small { font-size: 26px; }
  .df-photo { width: 92px; height: 92px; }
  .df-big { font-size: 24px; }
  .df-hero-right b { font-size: 16px; }
  .df-card { padding: 12px; gap: 10px; }
  .df-card .df-logos img, .df-card .df-mono { width: 46px; height: 46px; }
  .df-go { display: none; }
  .df-bar .df-pill { flex: 1; padding: 0 16px; min-width: 0; }
  .df-bar.wide .row { width: 100%; }
  .df-bar.wide .df-pill { flex: 1 1 140px; }
}
.df-bar { background: linear-gradient(to bottom, transparent, rgba(10, 14, 30, 0.88) 40%); }
:root[data-theme="light"] .df-bar { background: linear-gradient(to bottom, transparent, rgba(240, 244, 252, 0.94) 40%); }
.df-bar, :root[data-theme="light"] .df-bar { background: none; } /* (the pills carry their own glass) */
.qt-panel > * { flex-shrink: 0; } /* (nothing squashed when the page is long) */
label.df-search { flex-direction: row !important; }
.df-search svg { flex: none; }
.df-hero-mid.df-next { position: relative; }
.df-hero-mid.df-next::before { content: "NEXT"; position: absolute; right: 0; top: 0; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 99px; background: var(--clear); color: #052e16; }
.df-hero-mid.df-next .df-big { border-bottom: 2px solid var(--clear); }

/* Saved items: the drop-down under Model / part # and Description, and the Saved item picker (docflow.js) */
.df-sug { position: fixed; z-index: 1000; display: none; max-height: min(420px, 60vh); overflow: auto; padding: 6px; border-radius: 14px; background: var(--surface, #101a2e); border: 1px solid var(--line, var(--stroke)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); box-sizing: border-box; }
.df-sug.open { display: block; }
.df-sug-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 6px 8px 4px; }
.df-sug-search { padding: 4px 4px 8px; position: sticky; top: -6px; background: var(--surface, #101a2e); z-index: 1; }
.df-sug-search .input { width: 100%; box-sizing: border-box; }
.df-sug-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.df-sug-row:hover, .df-sug-row.on { background: rgba(128, 140, 200, 0.16); }
.df-sug-pic { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(128, 140, 200, 0.14); color: var(--text-3); }
.df-sug-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.df-sug-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.df-sug-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-sug-text span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-sug-x { all: unset; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); font-size: 16px; cursor: pointer; opacity: .6; }
.df-sug-x:hover { opacity: 1; background: rgba(239, 68, 68, 0.15); color: var(--defect, #ef4444); }
.df-sug-none { margin: 0; padding: 12px 10px; font-size: 13px; color: var(--text-3); }
.df-sug-addpic { position: relative; cursor: pointer; flex-direction: column; gap: 1px; font-size: 10px; font-weight: 600; border: 1px dashed var(--stroke); box-sizing: border-box; }
.df-sug-addpic:hover { border-color: var(--accent); color: var(--text); }
.df-sug-addpic:has(img) { border: 0; }

/* ───────── Select customer: the Dashboard's tree (accounts → groups → shops), Create / Existing on every row ───────── */
.cp-tree { display: flex; flex-direction: column; gap: 18px; }
.cp-section { display: flex; flex-direction: column; gap: 10px; }
.cp-section-title { margin: 4px 2px 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cp-tree .dash-row-head { padding: 10px 14px; gap: 12px; }
.cp-tree .dash-row-head .grow { min-width: 160px; }
.cp-btns { display: flex; gap: 8px; flex: none; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.df-pill.small { min-height: 36px; padding: 0 14px; font-size: 13px; gap: 6px; }
.df-pill.small.solid { min-width: 0; box-shadow: 0 6px 16px rgba(99, 102, 241, 0.32); }
.df-pill.small:disabled { cursor: default; opacity: .45; transform: none; }
.cp-n { min-width: 20px; padding: 1px 7px; border-radius: 99px; text-align: center; font-size: 12px; font-weight: 600; background: rgba(128, 140, 200, 0.22); }
.cp-existing:not(:disabled) .cp-n { background: var(--accent); color: #0b1222; }
.cp-novisit .t { color: var(--text-2); }
.cp-novisit .dash-row-logo, .cp-novisit .dash-logos { opacity: .7; }
/* "Existing Quotes" opened from a customer: the list says whose they are */
.df-for-customer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--accent); background: rgba(56, 189, 248, 0.08); }
.df-for-customer .grow { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.df-for-customer b { font-size: 17px; }
@media (max-width: 700px) {
  .cp-tree .dash-row-body { padding-left: 8px; padding-right: 8px; }
  .cp-btns { width: 100%; margin-left: 0; justify-content: stretch; }
  .cp-btns .df-pill { flex: 1 1 0; }
}

/* Taxes (federal + provincial) and a trade-in, above the totals (docflow.js moneyHtml) */
.qt-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; margin: 14px 0; }
.qt-money-box { padding: 16px; border-radius: 24px; background: var(--glass, rgba(255,255,255,0.05)); border: 1px solid var(--stroke-soft); display: flex; flex-direction: column; gap: 10px; }
.qt-money-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.qt-money-box .input { border-radius: 16px; min-height: 46px; }
.qt-money-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.qt-money-row .grow { flex: 1; min-width: 150px; }
.qt-money-row .qt-rate { width: 110px; }
.qt-money-box label.qt-before { flex-direction: row; align-items: center; gap: 8px; min-height: 46px; }
