/* Dock mockup additions on top of Nee's app.css (nee-app.css). External file only: CSP safe. */
.brand-mark { background: linear-gradient(135deg, #0073ea, #6161ff); }
.preview-banner { background: var(--yellow-l); color: #6b5300; font-size: 11px; letter-spacing: .04em; padding: 7px 32px; border-bottom: 1px solid #f1e3a0; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-row .grow, .grow { flex: 1; }
.strong { font-weight: 650; } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.btn-danger { background: var(--surface); border-color: #f4b5c0; color: #b0263b; }
.btn-danger:hover { background: var(--red-l); }
.btn-success { background: #00a35f; border-color: #00a35f; color: #fff; }
.btn-success:hover { background: #008a50; }
.btn-lg { height: 46px; font-size: 15px; padding: 0 22px; }
/* Steps (order progress) */
.steps { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); font-weight: 550; position: relative; padding-right: 10px; }
.steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eceef3; color: var(--muted); font-size: 12px; flex: none; }
.steps li::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--text); } .steps li.done b { background: var(--green-l); color: #007a48; }
.steps li.done::after { background: #a8e8cc; }
.steps li.now { color: var(--primary-d); } .steps li.now b { background: var(--primary); color: #fff; }
/* Key/value grid */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 24px; }
.kv .label-caps { margin-bottom: 4px; }
.addr { line-height: 1.6; }
/* Totals block: one value per line, right aligned */
.totals { margin: 14px 0 0 auto; width: 100%; max-width: 340px; border-collapse: collapse; }
.totals td { padding: 6px 0; font-variant-numeric: tabular-nums; }
.totals td:last-child { text-align: right; }
.totals tr.grand td { border-top: 1px solid var(--line-2); padding-top: 10px; font-size: 18px; font-weight: 700; }
.totals .muted { font-size: 13px; }
/* Order list group headings */
.group-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-left: 4px solid var(--primary); background: var(--hover); border-radius: 6px; font-weight: 650; margin: 4px 0 8px; }
.group-head.g-own { border-left-color: var(--green); } .group-head.g-partner { border-left-color: var(--orange); } .group-head.g-done { border-left-color: var(--faint); }
.tbl td.check, .tbl th.check { width: 36px; }
.tbl input[type=checkbox] { width: 18px; height: 18px; }
.bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 8px; background: #fbfcfe; }
/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.checklist li.ok .box { background: var(--green); border-color: var(--green); }
.checklist .qtybig { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Thumb */
.thumb { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--p1-bg), var(--p3-bg)); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--p3-fg); flex: none; }
.item-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.item-cell .meta-line { display: block; color: var(--muted); font-size: 12px; }
/* Warn note */
.note-warn { border-left: 4px solid var(--orange); background: var(--orange-l); color: #7a4700; padding: 10px 14px; border-radius: 6px; font-size: 13px; }
.note-ok { border-left: 4px solid var(--green); background: var(--green-l); color: #00613a; padding: 10px 14px; border-radius: 6px; font-size: 13px; }
.note-info { border-left: 4px solid var(--blue); background: var(--blue-l); color: #1f4f9c; padding: 10px 14px; border-radius: 6px; font-size: 13px; }
/* Stock number cells */
.stock-low { color: #b0263b; font-weight: 700; } .stock-ok { color: #007a48; font-weight: 650; }
/* Toggle */
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.switch i { width: 34px; height: 20px; border-radius: 10px; background: var(--line-2); position: relative; display: inline-block; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on i { background: var(--green); } .switch.on i::after { left: 16px; }
/* Mockup notes page */
.issue-list { margin: 0; padding-left: 20px; } .issue-list li { margin: 0 0 8px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--hover); font-size: 12px; color: var(--muted); }
.sitemap { columns: 2; } .sitemap li { margin-bottom: 6px; }
/* Mobile: tables become cards */
@media (max-width: 700px) {
  .preview-banner { padding: 7px 16px; }
  .steps li { font-size: 0; padding-right: 4px; } .steps li.now { font-size: 12px; }
  .before-after { grid-template-columns: 1fr; } .sitemap { columns: 1; }
  .tbl-cards thead { display: none; }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; width: 100%; }
  .tbl-cards tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; background: var(--surface); }
  .tbl-cards td { border: 0; padding: 6px 12px; text-align: left !important; display: flex; justify-content: space-between; gap: 12px; }
  .tbl-cards td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 600; }
  .tbl-cards td.check { display: none; }
  .top-actions { width: 100%; } .top { flex-wrap: wrap; }
  .totals { max-width: none; }
  .btn-lg { width: 100%; }
}
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.tbl input[type=checkbox], .field-inline input[type=checkbox] { height: 18px; width: 18px; min-height: 0; padding: 0; accent-color: var(--primary); }
/* v2 sharing model */
.switch.disabled { opacity: .45; cursor: not-allowed; }
.switch.partial i { background: var(--orange); } .switch.partial i::after { left: 9px; }
tr.row-off td { background: #fafafc; color: var(--faint); }
tr.row-off td strong { color: var(--muted); font-weight: 550; }
.price-in { width: 104px; height: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.price-in:disabled { background: var(--hover); color: var(--faint); }
.src { font-size: 11.5px; color: var(--faint); display: block; margin-top: 2px; }
.prod-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prod-head .grow { min-width: 200px; }
.prod-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: var(--hover); border-radius: 8px; margin-bottom: 10px; }
.prod-tools .field-inline input { width: 96px; height: 32px; }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); }
.pager2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 14px; }
.pager2 .pg { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-size: 13px; background: var(--surface); }
.pager2 .pg.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager2 .pg.dis { color: var(--faint); background: var(--hover); }
th a.sort { color: inherit; } th a.sort.on { color: var(--primary-d); }
.mini { font-size: 12px; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; width: 90px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.bar b { display: block; height: 100%; background: var(--green); }
.w10{width:10%}.w20{width:20%}.w30{width:30%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w70{width:70%}.w80{width:80%}.w90{width:90%}.w100{width:100%}
@media (max-width: 700px) { .price-in { width: 100%; } .prod-tools { flex-direction: column; align-items: stretch; } }
[data-toggle] { cursor: pointer; } [data-toggle]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
.pw-row { display: flex; gap: 8px; flex-wrap: wrap; } .pw-row input { flex: 1 1 180px; }
.danger { border-color: #f4b5c0; } .danger h2 { color: #b0263b; }
.danger-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); } .danger-row:last-child { border-bottom: 0; }
.danger-row > div:first-child { flex: 1 1 320px; }
.keybox { display: flex; gap: 8px; } .keybox input { flex: 1; font-family: var(--mono); font-size: 12.5px; }
.code { font-family: var(--mono); font-size: 12.5px; background: var(--hover); padding: 2px 6px; border-radius: 4px; }
pre.code { display: block; padding: 12px; overflow-x: auto; white-space: pre; }
.ro { color: var(--faint); font-size: 12px; }
/* round 3 */
td > .meta-line{display:block}
.qrow{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line,#e5e7eb);border-radius:10px;margin:6px 0;cursor:pointer}
.qrow input[type=radio]{width:16px;height:16px;flex:0 0 16px;margin:0}
.qrow:has(input:checked){border-color:#2563eb;background:#eff6ff}
.qrow.qerr{cursor:default;background:#fafafa}
.danger-row .note-info,.danger-row .note-warn{margin:4px 0}
/* round 4: item name component (brand · model + flavor) */
.iname{display:flex;flex-direction:column;gap:1px;line-height:1.25;min-width:0}
.iname-bm{font-size:15px;font-weight:600;color:var(--ink,#1f2937)}
.iname-fl{font-size:16px;font-weight:700;color:var(--ink,#111827)}
.iname-fl a{color:inherit}
.iname-sku{font-size:12px;color:var(--muted);margin-top:1px}
.iline{font-size:15px;font-weight:600;color:var(--ink,#1f2937)}
.iline strong{font-weight:700;font-size:15.5px}
.items-cell{display:flex;flex-direction:column;gap:3px;min-width:230px}
.iline-row .qty{font-weight:700;margin-left:2px}
.checklist .iname{flex:1}
.span-all{grid-column:1/-1}
.mini-details{margin:8px 0}
.mini-details summary{cursor:pointer}
/* quotes: cheapest first, select, gray others */
.qlist{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.qopt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;border:1.5px solid var(--line,#e5e7eb);border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:inherit;transition:opacity .15s,border-color .15s}
.qopt-main{flex:1;display:flex;flex-direction:column;gap:2px}
.qopt-sub{font-size:13px}
.qopt-box{font-size:12px;color:var(--muted)}
.qopt-price{font-size:18px}
.qopt.sel{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.qlist.has-sel .qopt:not(.sel){opacity:.45;filter:grayscale(1)}
.qlist.has-sel .qopt:not(.sel):hover{opacity:.8}
.buybar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0}
.toast{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;background:#111827;color:#fff;margin:6px 0}
.toast .btn{background:#fff;color:#111827}
.hidden{display:none !important}
.qopt-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.items-cell{min-width:290px}
.keybox{align-items:flex-start}
.keyfull{flex:1;display:block;font-family:var(--mono,monospace);font-size:12.5px;word-break:break-all;padding:8px 10px;border:1px solid var(--line,#e5e7eb);border-radius:8px;background:var(--hover,#f6f7f9);user-select:all}
/* round 5 */
.steps-list{margin:6px 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.45}
.feature-list{margin:8px 0 12px;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.lang-switch{display:inline-flex;gap:4px}
.lang-switch .tab{border:0;background:none;font:inherit;cursor:pointer}
.sku-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:6px}
.ro-in{background:var(--hover,#f3f4f6) !important;color:var(--ink,#111);cursor:not-allowed}
.field .hint{display:block;font-size:12px;color:var(--muted);margin-top:3px}
@media (max-width:700px){.sku-row{grid-template-columns:1fr}}
/* round 7 */
.photo-row{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 10px}
.ph{width:96px;height:96px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);background:#f6f7f9;text-align:center}
.ph.drop{width:180px;border-style:dashed;flex-direction:column;gap:6px}
.grp-row td{background:#f3f4f6;padding-top:8px;padding-bottom:8px}
.note-in{min-width:220px;flex:1;padding:6px 10px;border:1px solid var(--line);border-radius:8px;font:inherit}
.stack-form{display:flex;flex-direction:column;gap:16px}
.ro-in{background:#f3f4f6;color:#374151}
.sku-ok{color:#047857}
.sku-bad{color:#b91c1c}
.perm-pills{display:flex;flex-wrap:wrap;gap:4px}
.perm-set{display:flex;flex-wrap:wrap;gap:4px 12px;border:0;padding:0;margin:0}
.perm-set legend{font-size:13px;font-weight:600;margin-bottom:4px}
.perm-set .field-inline{font-size:13px}
.tbl td.num,.tbl th.num{white-space:nowrap}
.sync-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px}
.grp-row2 td{background:#fafafa;padding-top:6px;padding-bottom:6px;font-size:13px}
.tbl-wrap{padding-bottom:6px;margin-bottom:10px}
.tbl-compact{font-size:12.5px;width:100%;table-layout:auto}
.tbl-compact th{white-space:normal;line-height:1.2;font-size:11.5px;vertical-align:bottom}
.tbl-compact th,.tbl-compact td{padding:6px 5px}
.tbl-compact td.num{font-variant-numeric:tabular-nums;font-size:12.5px}
.note-block{margin-top:12px;clear:both}
.tbl td.num .iname-sku{display:block;font-weight:400;white-space:nowrap}
/* round 7s: Cartdock logo (white Lucide truck on teal #00a9b5) */
.brand-logo { width: 36px; height: 36px; display: block; flex: none; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 169, 181, .25); }
